:root {
    --admin-primary: #5b5cf0;
    --admin-primary-dark: #4849dc;
    --admin-blue: #4e8df8;
    --admin-cyan: #23b9cf;
    --admin-ink: #192238;
    --admin-ink-2: #3a465f;
    --admin-muted: #7d879c;
    --admin-line: #e7eaf2;
    --admin-soft: #f6f7fb;
    --admin-surface: #ffffff;
    --admin-shadow: 0 22px 70px rgba(42, 50, 91, .11);
    --admin-radius: 24px;
    --admin-container: 1180px;
    --admin-ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--admin-ink); background: #f8f9fd; font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
code { padding: 2px 7px; border: 1px solid #e4e7f0; border-radius: 7px; color: #5d5fdb; background: #f6f6ff; font-family: Consolas, Monaco, monospace; font-size: .92em; }
::selection { color: #fff; background: var(--admin-primary); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f0f2f8; }
::-webkit-scrollbar-thumb { border: 2px solid #f0f2f8; border-radius: 20px; background: #c6ccdc; }

.admin-body { position: relative; overflow-x: hidden; }
.admin-orb { position: fixed; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.orb-one { width: 520px; height: 520px; top: -250px; right: -150px; background: radial-gradient(circle, rgba(106, 105, 247, .16), rgba(106, 105, 247, 0) 70%); }
.orb-two { width: 460px; height: 460px; left: -230px; bottom: -230px; background: radial-gradient(circle, rgba(44, 190, 216, .11), rgba(44, 190, 216, 0) 70%); }
.admin-container { width: min(calc(100% - 48px), var(--admin-container)); margin-inline: auto; }
.admin-topbar { position: sticky; z-index: 100; top: 0; height: 76px; border-bottom: 1px solid rgba(226, 230, 240, .82); background: rgba(255, 255, 255, .86); box-shadow: 0 8px 30px rgba(36, 45, 80, .035); backdrop-filter: blur(18px) saturate(1.4); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.admin-brand { display: inline-flex; align-items: center; gap: 12px; }
.admin-brand-logo { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border: 1px solid #e6e8f1; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(48, 55, 98, .1); }
.admin-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.admin-brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.admin-brand strong { font-size: 16px; line-height: 1; }
.admin-brand small { color: #9da5b7; font-size: 8px; line-height: 1; letter-spacing: .18em; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.topbar-link, .topbar-logout { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 15px; border: 1px solid #e2e5ee; border-radius: 11px; color: #626d83; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; transition: .25s ease; }
.topbar-link:hover { color: var(--admin-primary); border-color: #cfd2f7; transform: translateY(-1px); }
.topbar-logout { color: #e05e68; border-color: #f1dfe2; }
.topbar-logout:hover { border-color: #eebdc3; background: #fff7f8; }
.admin-online { display: inline-flex; align-items: center; gap: 7px; color: #69748a; font-size: 12px; font-weight: 700; }
.admin-online i { width: 7px; height: 7px; border-radius: 50%; background: #38c78e; box-shadow: 0 0 0 4px rgba(56, 199, 142, .12); }
.inline-form { display: inline; margin: 0; }

.admin-main { min-height: calc(100vh - 146px); padding: 54px 0 75px; }
.admin-alert { display: flex; align-items: flex-start; gap: 13px; width: min(100%, 920px); margin: 0 auto 18px; padding: 16px 18px; border: 1px solid; border-radius: 15px; background: #fff; box-shadow: 0 10px 30px rgba(35, 44, 81, .05); animation: alertIn .4s var(--admin-ease) both; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-8px); } }
.admin-alert .alert-icon { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 9px; font-size: 14px; font-weight: 900; }
.admin-alert strong { display: block; margin-bottom: 3px; font-size: 13px; }
.admin-alert p, .admin-alert ul { margin: 0; color: #6f798e; font-size: 12px; line-height: 1.7; }
.admin-alert ul { padding-left: 18px; }
.alert-success { border-color: #cdebdc; background: #f8fffb; }
.alert-success .alert-icon { color: #15975f; background: #dff6ea; }
.alert-error { border-color: #f2d2d6; background: #fffafb; }
.alert-error .alert-icon { color: #d9515e; background: #fce6e9; }
.alert-warning { border-color: #f0e1bc; background: #fffdf7; }
.alert-warning .alert-icon { color: #b6811b; background: #fff0c8; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .78fr); align-items: center; gap: clamp(55px, 8vw, 110px); min-height: calc(100vh - 205px); padding: 30px 0 42px; }
.auth-intro { padding-left: 26px; }
.intro-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: #6264e2; font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.intro-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #6566ec; box-shadow: 0 0 0 5px rgba(101, 102, 236, .11); }
.auth-intro h1, .dashboard-heading h1, .state-card h1 { margin: 0; color: #202a41; font-size: clamp(38px, 5vw, 58px); line-height: 1.3; letter-spacing: -.045em; }
.auth-intro h1 em { color: var(--admin-primary); font-style: normal; }
.auth-intro > p { max-width: 610px; margin: 21px 0 34px; color: var(--admin-muted); font-size: 15px; line-height: 1.95; }
.setup-points { display: grid; gap: 14px; max-width: 540px; }
.setup-points > div { display: flex; align-items: center; gap: 15px; padding: 13px 16px; border: 1px solid rgba(227, 230, 240, .85); border-radius: 16px; background: rgba(255, 255, 255, .65); transition: transform .28s var(--admin-ease), border-color .28s ease, background .28s ease; }
.setup-points > div:hover { transform: translateX(7px); border-color: #d8daf6; background: #fff; }
.setup-points > div > span { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; color: #6264e5; background: #eeefff; font-size: 11px; font-weight: 900; }
.setup-points p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.setup-points strong { color: #39445b; font-size: 13px; }
.setup-points small { color: #919bad; font-size: 11px; }
.auth-card { position: relative; padding: 35px 36px 28px; border: 1px solid #e5e8f1; border-radius: 28px; background: rgba(255, 255, 255, .94); box-shadow: var(--admin-shadow); overflow: hidden; }
.auth-card::before { position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--admin-primary), #8a6cf5, var(--admin-cyan)); content: ""; }
.auth-card-head { margin-bottom: 25px; }
.auth-step { display: inline-flex; margin-bottom: 11px; padding: 6px 10px; border-radius: 8px; color: #6465e5; background: #f0f1ff; font-size: 10px; font-weight: 800; }
.auth-card h2 { margin: 0 0 8px; color: #263149; font-size: 27px; letter-spacing: -.025em; }
.auth-card-head p { margin: 0; color: #8993a7; font-size: 12px; line-height: 1.75; }
.admin-form { display: grid; gap: 17px; }
.field { position: relative; display: grid; gap: 8px; }
.field > span { color: #445069; font-size: 12px; font-weight: 800; }
.field input, .field textarea { width: 100%; outline: 0; border: 1px solid #dfe3ed; border-radius: 12px; color: #253048; background: #fbfcfe; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.field input { height: 48px; padding: 0 14px; }
.field textarea { min-height: 135px; padding: 13px 14px; resize: vertical; line-height: 1.75; }
.field input::placeholder, .field textarea::placeholder { color: #b2b8c7; }
.field input:focus, .field textarea:focus { border-color: #8c8df2; background: #fff; box-shadow: 0 0 0 4px rgba(91, 92, 240, .095); }
.field > small { color: #9ba3b4; font-size: 10px; line-height: 1.55; }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.password-toggle { position: absolute; top: 50%; right: 8px; height: 33px; padding: 0 9px; border: 0; border-radius: 8px; color: #747f94; background: #f0f2f7; cursor: pointer; font-size: 10px; font-weight: 700; transform: translateY(-50%); }
.password-toggle:hover { color: var(--admin-primary); background: #e9eaff; }
.admin-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; margin-top: 3px; padding: 0 17px 0 20px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #696af6, #5354e6); box-shadow: 0 14px 28px rgba(81, 82, 229, .24); cursor: pointer; font-size: 13px; font-weight: 800; transition: transform .28s var(--admin-ease), box-shadow .28s ease, opacity .25s ease; }
.admin-submit b { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: rgba(255, 255, 255, .16); font-size: 16px; }
.admin-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(81, 82, 229, .32); }
.admin-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.admin-submit.is-submitting { pointer-events: none; opacity: .7; }
.auth-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; color: #9ba3b4; font-size: 10px; }
.auth-footnote i { color: #39bf8b; font-size: 7px; font-style: normal; }

.login-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); }
.login-intro { max-width: 680px; }
.login-preview { max-width: 575px; overflow: hidden; border: 1px solid #e6e9f2; border-radius: 20px; background: rgba(255, 255, 255, .83); box-shadow: 0 18px 50px rgba(43, 52, 91, .08); }
.preview-top { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 17px; border-bottom: 1px solid #eceef4; }
.preview-top > span { display: flex; gap: 5px; }
.preview-top i { width: 7px; height: 7px; border-radius: 50%; background: #dddfea; }
.preview-top i:first-child { background: #ff958b; }
.preview-top i:nth-child(2) { background: #ffc76c; }
.preview-top i:last-child { background: #6bd4aa; }
.preview-top b { color: #8490a5; font-size: 10px; }
.preview-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #ebeef5; }
.preview-body > div { display: flex; flex-direction: column; gap: 7px; padding: 21px 17px; background: #fff; }
.preview-body small { color: #9ba4b6; font-size: 9px; }
.preview-body strong { color: #424e66; font-size: 12px; }
.login-security { display: flex; align-items: center; gap: 11px; margin-top: 22px; padding: 12px 13px; border-radius: 12px; background: #f7f8fc; }
.login-security > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; font-size: 14px; }
.login-security p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.login-security strong { color: #576278; font-size: 10px; }
.login-security small { color: #9aa3b4; font-size: 9px; }

.state-card { max-width: 720px; margin: 75px auto; padding: 55px; border: 1px solid #eadfe1; border-radius: 28px; background: #fff; box-shadow: var(--admin-shadow); text-align: center; }
.state-symbol { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 21px; color: #d95a66; background: #fff0f2; font-size: 30px; font-weight: 900; }
.state-card h1 { font-size: 35px; }
.state-card > p { max-width: 590px; margin: 17px auto 25px; color: #7d879a; font-size: 13px; line-height: 1.9; }
.state-help { margin: 0 0 25px; padding: 20px 23px; border: 1px solid #e8eaf1; border-radius: 16px; background: #fafbfe; text-align: left; }
.state-help strong { color: #3d4860; font-size: 12px; }
.state-help ol { margin: 10px 0 0; padding-left: 20px; color: #758095; font-size: 12px; line-height: 2; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid #dfe2ed; border-radius: 11px; color: #59657d; background: #fff; cursor: pointer; font-size: 12px; font-weight: 800; transition: .25s ease; }
.secondary-button:hover { color: var(--admin-primary); border-color: #cfd2f7; background: #fbfbff; transform: translateY(-1px); }

.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 31px; }
.dashboard-heading h1 { font-size: clamp(32px, 4vw, 46px); }
.dashboard-heading p { margin: 12px 0 0; color: #7f899e; font-size: 13px; line-height: 1.8; }
.visit-site-button { display: inline-flex; align-items: center; gap: 10px; flex: none; height: 45px; padding: 0 17px; border: 1px solid #dfe2ed; border-radius: 12px; color: #5b657c; background: #fff; box-shadow: 0 9px 25px rgba(39, 48, 84, .045); font-size: 11px; font-weight: 800; transition: .25s ease; }
.visit-site-button:hover { color: var(--admin-primary); border-color: #cfd2f7; transform: translateY(-2px); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-bottom: 20px; }
.metrics-grid article { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 21px 19px; border: 1px solid #e6e9f1; border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(38, 46, 81, .045); transition: transform .3s var(--admin-ease), box-shadow .3s ease; }
.metrics-grid article:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(38, 46, 81, .08); }
.metric-icon { display: grid; place-items: center; flex: none; width: 45px; height: 45px; border-radius: 14px; font-size: 12px; font-weight: 900; }
.metric-icon.purple { color: #6666e8; background: #eeefff; }
.metric-icon.blue { color: #4c88e7; background: #edf5ff; }
.metric-icon.cyan { color: #17a7bd; background: #eafafd; }
.metric-icon.orange { color: #e68c3d; background: #fff4e9; }
.metrics-grid p { display: flex; min-width: 0; flex-direction: column; gap: 5px; margin: 0; }
.metrics-grid small { color: #929caf; font-size: 10px; }
.metrics-grid strong { overflow: hidden; color: #344058; font-size: 24px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.metrics-grid strong em { color: #9aa3b4; font-size: 10px; font-style: normal; }
.metrics-grid .metric-version { font-size: 17px; line-height: 1.2; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(280px, .72fr); gap: 20px; margin-bottom: 20px; }
.panel { border: 1px solid #e6e9f1; border-radius: var(--admin-radius); background: #fff; box-shadow: 0 12px 38px rgba(37, 45, 79, .055); }
.upload-panel { padding: 30px; }
.side-panel { padding: 28px 26px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.panel-kicker { display: block; margin-bottom: 8px; color: #6a6ce5; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.panel-head h2, .security-copy h2 { margin: 0; color: #2d3850; font-size: 21px; letter-spacing: -.02em; }
.panel-head p, .security-copy p { margin: 7px 0 0; color: #8d96a8; font-size: 11px; line-height: 1.7; }
.limit-chip { display: inline-flex; flex: none; height: 28px; align-items: center; padding: 0 10px; border-radius: 8px; color: #6d70d6; background: #f0f1ff; font-size: 9px; font-weight: 800; }
.release-form { gap: 19px; }
.field-row { display: grid; grid-template-columns: 1fr .75fr; gap: 15px; }
.character-hint { position: absolute; right: 4px; bottom: -17px; }
.character-hint b { color: #6a6ce5; }
.upload-dropzone { display: grid; place-items: center; min-height: 165px; margin-top: 6px; padding: 22px; border: 1.5px dashed #cfd4e2; border-radius: 17px; background: #fafbfe; cursor: pointer; text-align: center; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.upload-dropzone:hover, .upload-dropzone.is-dragging { border-color: #8385ef; background: #f6f6ff; transform: translateY(-2px); }
.upload-dropzone.has-file { border-style: solid; border-color: #afafea; background: #f8f8ff; }
.upload-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.upload-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 15px; color: #6163e6; background: #ebecff; font-size: 21px; font-weight: 300; }
.upload-dropzone strong { max-width: 90%; overflow: hidden; color: #49556d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.upload-dropzone small { margin-top: 6px; color: #98a1b3; font-size: 9px; }
.upload-submit { width: auto; min-width: 220px; justify-self: end; }
.panel-head.compact { margin-bottom: 20px; }
.check-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; }
.check-list li > span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; color: #686ae6; background: #eff0ff; font-size: 9px; font-weight: 900; }
.check-list p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.check-list strong { color: #46526a; font-size: 11px; }
.check-list small { color: #959eaf; font-size: 9px; line-height: 1.65; }
.storage-note { display: flex; gap: 11px; margin-top: 24px; padding: 14px; border-radius: 14px; background: #f7f8fc; }
.storage-note > span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 9px; color: #5f62da; background: #e8e9ff; font-family: Georgia, serif; font-size: 12px; font-weight: 900; }
.storage-note p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.storage-note strong { color: #566177; font-size: 10px; }
.storage-note small { color: #969fb0; font-size: 9px; line-height: 1.65; }
.releases-panel { margin-bottom: 20px; padding: 29px 30px 25px; }
.release-list-head { margin-bottom: 20px; }
.admin-empty { display: grid; place-items: center; min-height: 230px; border: 1px dashed #d8dce7; border-radius: 18px; background: #fbfcfe; text-align: center; }
.admin-empty > span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 15px; color: #7779e7; background: #eff0ff; font-size: 23px; }
.admin-empty h3 { margin: 0; color: #4d5870; font-size: 15px; }
.admin-empty p { margin: 8px 0 0; color: #969fb1; font-size: 10px; }
.release-table-wrap { overflow-x: auto; border: 1px solid #eaecf2; border-radius: 16px; }
.release-table { width: 100%; border-collapse: collapse; }
.release-table th { padding: 13px 15px; color: #939caf; background: #f8f9fc; font-size: 9px; font-weight: 800; text-align: left; white-space: nowrap; }
.release-table td { padding: 15px; border-top: 1px solid #edf0f5; vertical-align: middle; }
.release-table tbody tr:hover:not(.release-note-row) { background: #fdfdff; }
.release-name { display: flex; align-items: center; gap: 11px; min-width: 175px; }
.release-name > span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; color: #6567e4; background: #eeefff; font-size: 11px; font-weight: 900; }
.release-name p, .file-info { display: flex; min-width: 0; flex-direction: column; gap: 4px; margin: 0; }
.release-name strong, .file-info strong { max-width: 220px; overflow: hidden; color: #455168; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.release-name small, .file-info small { color: #949daf; font-size: 9px; white-space: nowrap; }
.release-name em { margin-left: 6px; padding: 2px 5px; border-radius: 5px; color: #fff; background: #6264e4; font-size: 7px; font-style: normal; }
.table-muted { color: #7f899d; font-size: 10px; white-space: nowrap; }
.download-count { color: #46526b; font-size: 12px; }
.table-actions { display: flex; align-items: center; gap: 9px; }
.table-actions a, .table-actions button { padding: 6px 9px; border: 1px solid #e0e3ec; border-radius: 8px; background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.table-actions a { color: #5b5ddd; }
.table-actions button { color: #d55e68; }
.table-actions a:hover { border-color: #cfd1f4; background: #f8f8ff; }
.table-actions button:hover { border-color: #efcbd0; background: #fff8f9; }
.release-note-row td { padding-top: 0; background: #fdfdff; }
.release-note { padding: 12px 14px; border-radius: 10px; background: #f7f8fc; }
.release-note strong { color: #667187; font-size: 9px; }
.release-note p { margin: 5px 0 0; color: #8992a5; font-size: 10px; line-height: 1.75; }
.security-panel { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 42px; padding: 29px 30px; }
.security-copy p { max-width: 370px; }
.password-change-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 12px; }
.password-change-form .field { gap: 6px; }
.password-change-form .field input { height: 43px; }
.password-change-form .secondary-button { height: 43px; }

.admin-footer { min-height: 70px; border-top: 1px solid #e7eaf1; color: #9aa3b3; background: rgba(255, 255, 255, .72); }
.admin-footer .admin-container { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.admin-footer p { margin: 0; font-size: 9px; }

@media (max-width: 1050px) {
    .auth-layout { gap: 50px; }
    .auth-intro { padding-left: 0; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .side-panel { display: grid; grid-template-columns: minmax(190px, .7fr) 1fr; gap: 30px; }
    .side-panel .panel-head { margin: 0; }
    .storage-note { grid-column: 1 / -1; margin-top: 0; }
    .security-panel { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 850px) {
    .admin-main { padding-top: 38px; }
    .auth-layout { grid-template-columns: 1fr; min-height: auto; padding-top: 20px; }
    .auth-intro { text-align: center; }
    .auth-intro > p, .setup-points, .login-preview { margin-inline: auto; }
    .auth-card { width: min(100%, 520px); margin-inline: auto; }
    .setup-points { text-align: left; }
    .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
    .password-change-form { grid-template-columns: repeat(2, 1fr); }
    .password-change-form .secondary-button { width: 100%; }
}

@media (max-width: 680px) {
    .admin-container { width: min(calc(100% - 28px), var(--admin-container)); }
    .admin-topbar { height: 68px; }
    .admin-brand-logo { width: 41px; height: 41px; border-radius: 12px; }
    .admin-brand strong { font-size: 14px; }
    .admin-brand small { font-size: 7px; }
    .topbar-link, .admin-online { display: none; }
    .topbar-logout { height: 36px; padding-inline: 12px; }
    .admin-main { padding: 27px 0 55px; }
    .admin-alert { padding: 13px 14px; }
    .auth-layout { gap: 30px; padding-top: 13px; }
    .auth-intro h1 { font-size: 36px; }
    .auth-intro > p { margin: 15px auto 24px; font-size: 13px; }
    .setup-points { gap: 10px; }
    .setup-points > div { padding: 11px 13px; }
    .auth-card { padding: 30px 22px 24px; border-radius: 23px; }
    .preview-body { grid-template-columns: 1fr; }
    .preview-body > div { flex-direction: row; justify-content: space-between; padding: 13px 15px; }
    .state-card { margin: 30px auto; padding: 36px 22px; }
    .state-card h1 { font-size: 28px; }
    .dashboard-heading { margin-bottom: 23px; }
    .dashboard-heading h1 { font-size: 34px; }
    .metrics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metrics-grid article { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px; }
    .metric-icon { width: 39px; height: 39px; }
    .metrics-grid strong { font-size: 21px; }
    .dashboard-grid { gap: 14px; }
    .upload-panel, .side-panel, .releases-panel, .security-panel { padding: 22px 18px; border-radius: 20px; }
    .field-row { grid-template-columns: 1fr; }
    .upload-submit { width: 100%; min-width: 0; }
    .side-panel { display: block; }
    .side-panel .panel-head { margin-bottom: 20px; }
    .storage-note { margin-top: 23px; }
    .release-table-wrap { overflow: visible; border: 0; }
    .release-table, .release-table tbody { display: block; }
    .release-table thead { display: none; }
    .release-table tr:not(.release-note-row) { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 12px; padding: 17px; border: 1px solid #e8eaf2; border-radius: 15px; background: #fff; }
    .release-table td { display: block; padding: 0; border: 0; }
    .release-table td::before { display: block; margin-bottom: 7px; color: #a0a8b7; content: attr(data-label); font-size: 8px; font-weight: 800; }
    .release-table td:first-child, .release-table td:nth-child(2) { grid-column: 1 / -1; }
    .release-table td:last-child { text-align: right; }
    .release-table td:last-child::before { text-align: right; }
    .release-name strong, .file-info strong { max-width: calc(100vw - 125px); }
    .release-note-row { display: block; margin: -20px 12px 12px; }
    .release-note-row td { display: block; padding: 13px; border: 1px solid #e8eaf2; border-top: 0; border-radius: 0 0 13px 13px; }
    .password-change-form { grid-template-columns: 1fr; }
    .admin-footer .admin-container { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}

@media (max-width: 420px) {
    .admin-container { width: min(calc(100% - 22px), var(--admin-container)); }
    .admin-brand { gap: 9px; }
    .auth-intro h1 { font-size: 32px; }
    .auth-card h2 { font-size: 24px; }
    .metrics-grid { grid-template-columns: 1fr; }
    .metrics-grid article { align-items: center; flex-direction: row; }
    .panel-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .limit-chip { align-self: flex-start; }
    .upload-dropzone { min-height: 145px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}