:root {
  --bg: #f5f4f1;
  --surface: #fff;
  --surface-soft: #f1f2f4;
  --text: #171b23;
  --muted: #747c89;
  --line: #e2e4e8;
  --brand: #397df2;
  --brand-soft: #edf3ff;
  --danger: #c2414d;
  --shadow: 0 24px 70px rgba(32, 42, 58, .11);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 20% 0%, rgba(255,215,160,.15), transparent 25rem), var(--bg); color: var(--text); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.5; }
button, input, textarea, select { font: inherit; color: inherit; }
button, .file-button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.eyebrow { margin: 0 0 7px; color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.muted { color: var(--muted); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 82% 12%, rgba(57,125,242,.17) 0, transparent 28%), radial-gradient(circle at 14% 84%, rgba(255,170,70,.15), transparent 26%), #f6f5f2; }
.login-card { position: relative; width: min(430px, 100%); padding: 42px; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 30px 90px rgba(31, 45, 68, .15); backdrop-filter: blur(18px); }
.login-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -90px; border-radius: 50%; background: linear-gradient(135deg, rgba(57,125,242,.23), rgba(93,227,208,.15)); }
.login-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 28px 0 22px; border-radius: 15px; background: linear-gradient(145deg, #162238, #397df2); color: #fff; box-shadow: 0 12px 30px rgba(57,125,242,.22); font-weight: 900; }
.login-card h1 { margin: 0; font-size: 34px; }
.login-card form { display: grid; gap: 17px; margin-top: 26px; }
.back-link { color: var(--muted); font-size: 13px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface); padding: 11px 12px; font-weight: 400; transition: .16s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(33,107,80,.1); }
textarea { resize: vertical; }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.45; }
select[multiple] { min-height: 146px; padding: 8px; }
select[multiple] option { padding: 7px 9px; border-radius: 8px; }
.primary, .secondary, .danger { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border: 0; border-radius: 10px; font-weight: 750; }
.primary { background: linear-gradient(135deg, #4b8bff, #286ce5); color: #fff; box-shadow: 0 8px 20px rgba(57,125,242,.18); }
.secondary { background: var(--surface-soft); color: var(--text); }
.danger { background: #f8e8e8; color: var(--danger); }
.wide { width: 100%; min-height: 46px; }
.form-error { min-height: 22px; color: var(--danger); font-size: 13px; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 250px; padding: 22px 16px; display: flex; flex-direction: column; background: linear-gradient(180deg, #121a28, #111721); color: #e4e9f1; box-shadow: 12px 0 45px rgba(14,22,34,.08); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 4px 7px 28px; }
.sidebar-brand span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #53a0ff, #4ee1c2); color: #102033; box-shadow: 0 9px 24px rgba(57,125,242,.24); font-weight: 900; }
.sidebar-brand div { display: grid; }
.sidebar-brand small { color: #6f7f95; font-size: 8px; letter-spacing: .14em; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { padding: 11px 13px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #95a1b3; text-align: left; }
.nav-item:hover, .nav-item.active { border-color: rgba(115,164,255,.14); background: linear-gradient(90deg, rgba(67,126,233,.22), rgba(70,218,196,.08)); color: #fff; }
.sidebar-footer { margin-top: auto; display: grid; gap: 5px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer a, .sidebar-footer button { padding: 9px 11px; border: 0; background: transparent; color: #8997aa; text-align: left; font-size: 13px; }
.admin-main { grid-column: 2; min-width: 0; }
.admin-header { position: sticky; z-index: 20; top: 0; height: 64px; padding: 0 32px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(16px); }
.admin-top-brand { display: flex; align-items: center; gap: 10px; }
.admin-top-brand > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.admin-top-brand div, .admin-account { display: grid; }
.admin-top-brand small, .admin-account small { color: var(--muted); font-size: 9px; }
.admin-account { margin-left: auto; text-align: right; }
.menu-toggle { display: none; margin-right: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.view { display: none; width: min(1260px, calc(100% - 64px)); margin: 0 auto; padding: 38px 0 80px; }
.view.active { display: block; }
.page-title { min-height: 84px; display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 24px; }
.page-title h1 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.page-title p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat-card { position: relative; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 9px 28px rgba(40,48,61,.045); }
.stat-card::after { content: ""; position: absolute; width: 58px; height: 58px; right: -20px; bottom: -23px; border-radius: 50%; background: var(--brand-soft); }
.stat-card strong { display: block; font-size: 34px; }
.stat-card span { color: var(--muted); font-size: 12px; }
.analytics-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.analytics-card { position: relative; min-height: 145px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(240,246,255,.9)); box-shadow: 0 12px 34px rgba(39,46,57,.06); }
.analytics-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -30px; bottom: -34px; border-radius: 50%; background: linear-gradient(145deg, rgba(57,125,242,.13), rgba(78,225,194,.13)); }
.analytics-card small { color: var(--brand); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.analytics-card strong { position: relative; z-index: 1; display: block; margin: 11px 0 2px; font-size: 38px; line-height: 1; }
.analytics-card span { color: var(--muted); font-size: 13px; }
.analytics-panel { margin-top: 20px; padding: 24px 26px 26px; }
.download-stats-panel { margin-top: 20px; padding: 20px; }
.download-stats-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 12px; align-items: end; }
.download-stats-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.download-stats-toolbar input, .download-stats-toolbar select { min-height: 44px; }
.download-stats-table { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.download-stats-row { min-width: 720px; display: grid; grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(82px, .55fr)); align-items: center; border-bottom: 1px solid var(--line); }
.download-stats-row:last-child { border-bottom: 0; }
.download-stats-row > * { padding: 15px 14px; }
.download-stats-head { color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.download-stats-content { min-width: 0; display: flex; align-items: center; gap: 12px; }
.download-stats-content > span:last-child { min-width: 0; display: grid; gap: 4px; }
.download-stats-content strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-stats-content small { color: var(--muted); }
.download-stats-rank { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 900; }
.download-stats-metric { font-size: 18px; font-variant-numeric: tabular-nums; }
.analytics-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.analytics-head h2 { margin: 0; font-size: 23px; }
.analytics-head small { color: var(--muted); font-size: 11px; }
.analytics-chart { height: 300px; display: grid; grid-template-columns: repeat(7, minmax(42px, 1fr)); gap: 18px; align-items: stretch; padding: 18px 8px 0; border-top: 1px solid var(--line); }
.analytics-column { min-width: 0; display: grid; grid-template-rows: 24px 1fr 24px; gap: 8px; text-align: center; }
.analytics-column > strong { color: var(--text); font-size: 12px; }
.analytics-column > span { color: var(--muted); font-size: 11px; }
.analytics-bar-track { min-height: 180px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 10px 10px 5px 5px; background: linear-gradient(180deg, rgba(57,125,242,.03), rgba(57,125,242,.09)); }
.analytics-bar { width: 100%; min-height: 4px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, #58a2ff, #3378ed 60%, #2ac3ac); box-shadow: 0 8px 22px rgba(57,125,242,.2); transition: height .28s ease; }
.welcome-panel { position: relative; margin-top: 22px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; border-radius: 19px; background: linear-gradient(125deg, #142137, #245a8f 58%, #2ba68f); color: #fff; box-shadow: 0 18px 45px rgba(28,70,115,.15); }
.welcome-panel::after { content: ""; position: absolute; width: 240px; height: 240px; right: 8%; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 60px rgba(77,205,224,.18); }
.welcome-panel > * { position: relative; z-index: 1; }
.welcome-panel h2 { margin: 0; font-size: 29px; }
.welcome-panel p:not(.eyebrow) { max-width: 650px; margin: 8px 0 0; color: rgba(255,255,255,.7); }
.welcome-panel .primary { background: linear-gradient(135deg, #ffbd55, #ff913d); color: #2b1a07; white-space: nowrap; }
.toolbar { display: flex; margin-bottom: 14px; }
.toolbar input { max-width: 360px; }
.table-card, .panel { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.94); overflow: hidden; box-shadow: 0 10px 34px rgba(39,46,57,.045); }
.data-list { display: grid; }
.list-row { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(120px, 1fr) 100px 170px; gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.list-row:hover { background: #fafbfc; }
.list-row:last-child { border-bottom: 0; }
.list-main { min-width: 0; }
.list-main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-main small, .list-cell { color: var(--muted); font-size: 12px; }
.list-actions { display: flex; justify-content: flex-end; gap: 7px; }
.list-actions button { padding: 7px 10px; border: 0; border-radius: 8px; background: var(--surface-soft); font-size: 12px; }
.list-actions .delete { color: var(--danger); background: #faeeee; }
.status { width: max-content; padding: 4px 8px; border-radius: 99px; background: #e7f8f1; color: #16805a; font-size: 11px; font-weight: 700; }
.status.draft { background: #f1eee5; color: #756640; }
.empty-list { padding: 50px 20px; color: var(--muted); text-align: center; }
.category-admin-grid { display: grid; gap: 16px; }
.category-admin-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.95); box-shadow: 0 10px 34px rgba(39,46,57,.05); }
.category-admin-head { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; }
.category-admin-title { min-width: 0; display: flex; align-items: center; gap: 13px; }
.category-admin-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, var(--brand-soft), #e7fff8); color: var(--brand); font-weight: 900; }
.category-admin-copy { min-width: 0; }
.category-admin-copy strong { display: block; font-size: 17px; }
.category-admin-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.category-admin-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.category-admin-meta span { padding: 4px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 10px; }
.category-admin-meta .enabled { background: #e7f8f1; color: #16805a; }
.category-admin-meta .disabled { background: #f1eee5; color: #756640; }
.category-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.category-admin-actions button, .subcategory-actions button { padding: 7px 10px; border: 0; border-radius: 8px; background: var(--surface-soft); font-size: 12px; }
.category-admin-actions .delete, .subcategory-actions .delete { color: var(--danger); background: #faeeee; }
.subcategory-list { border-top: 1px solid var(--line); background: #fafbfc; }
.subcategory-empty { padding: 17px 20px; color: var(--muted); font-size: 12px; }
.subcategory-row { display: grid; grid-template-columns: minmax(190px, 1fr) 110px 105px auto; gap: 14px; align-items: center; padding: 13px 20px 13px 76px; border-bottom: 1px solid var(--line); }
.subcategory-row:last-child { border-bottom: 0; }
.subcategory-name strong { display: block; font-size: 13px; }
.subcategory-name small, .subcategory-cell { color: var(--muted); font-size: 11px; }
.subcategory-actions { display: flex; justify-content: flex-end; gap: 7px; }
.banner-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.banner-admin-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 12px 34px rgba(39,46,57,.06); }
.banner-admin-image { position: relative; aspect-ratio: 2.4 / 1; display: grid; place-items: center; background: linear-gradient(135deg, #17263d, #256c8e); background-position: center; background-size: cover; color: rgba(255,255,255,.72); font-weight: 800; }
.banner-admin-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,12,22,.72), rgba(5,12,22,.08)); }
.banner-admin-image span { position: relative; z-index: 1; }
.banner-admin-body { padding: 16px; }
.banner-admin-topline { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.banner-admin-body h3 { margin: 0; font-size: 18px; }
.banner-admin-body p { min-height: 40px; margin: 7px 0 14px; color: var(--muted); font-size: 12px; }
.banner-admin-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.banner-admin-meta span { padding: 4px 7px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-size: 10px; }
.banner-admin-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.banner-admin-actions button { padding: 7px 11px; border: 0; border-radius: 8px; background: var(--surface-soft); font-size: 12px; }
.banner-admin-actions .delete { color: var(--danger); background: #faeeee; }
.panel-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel-admin-card { display: flex; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 30px rgba(39,46,57,.05); }
.panel-admin-icon { flex: 0 0 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 15px; background: linear-gradient(145deg, #e8f2ff, #d9fff7); color: var(--brand); font-size: 20px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(57,125,242,.1); background-position: center; background-size: cover; }
.panel-admin-content { min-width: 0; flex: 1; }
.panel-admin-topline { display: flex; justify-content: space-between; gap: 10px; }
.panel-admin-content small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.panel-admin-content h3 { margin: 2px 0 4px; font-size: 18px; }
.panel-admin-content p { margin: 0; min-height: 38px; color: var(--muted); font-size: 12px; }
.panel-admin-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel-admin-actions button { padding: 7px 11px; border: 0; border-radius: 8px; background: var(--surface-soft); font-size: 12px; }
.panel-admin-actions .delete { color: var(--danger); background: #faeeee; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 9px 28px rgba(40,48,61,.045); transition: transform .18s, box-shadow .18s; }
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.media-preview { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface-soft); color: var(--brand); font-size: 30px; font-weight: 800; background-size: cover; background-position: center; }
.media-body { padding: 14px; }
.media-body strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.media-body small { color: var(--muted); }
.media-actions { display: flex; gap: 6px; margin-top: 11px; }
.media-actions button { flex: 1; padding: 7px; border: 0; border-radius: 8px; background: var(--surface-soft); font-size: 11px; }
.media-actions .delete { color: var(--danger); }
.settings-form { padding: 26px; }
.settings-divider { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 18px 0 2px; border-top: 1px solid var(--line); color: var(--text); }
.settings-divider span { font-size: 16px; font-weight: 800; }
.settings-divider small { color: var(--muted); font-weight: 400; }
.password-panel { margin-top: 18px; }
.password-copy { margin-bottom: 20px; }
.password-copy h2 { margin: 0; font-size: 22px; }
.password-copy p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.full { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 44px; color: var(--text); }
.check-row input { width: 18px; height: 18px; }
fieldset { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
legend { padding: 0 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.platform-checks { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.platform-checks label { display: flex; align-items: center; gap: 6px; color: var(--text); }
.platform-checks input { width: 16px; height: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.file-button { position: relative; overflow: hidden; }
.file-button input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-row { display: flex; gap: 8px; }
.upload-row > input { flex: 1; }
.upload-row .file-button { white-space: nowrap; }
.banner-preview { min-height: 190px; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--line); border-radius: 13px; background: linear-gradient(135deg, #17263d, #256c8e); background-position: center; background-size: cover; color: rgba(255,255,255,.75); }
.editor-dialog { width: min(650px, calc(100% - 24px)); max-height: calc(100vh - 30px); overflow: auto; padding: 0; border: 0; border-radius: 19px; background: var(--surface); color: var(--text); box-shadow: 0 30px 90px rgba(17,28,44,.24); }
.wide-dialog { width: min(880px, calc(100% - 24px)); }
.editor-dialog::backdrop { background: rgba(9,16,11,.7); backdrop-filter: blur(4px); }
.editor-dialog form { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.dialog-head h2 { margin: 0; font-size: 27px; }
.close-button { width: 39px; height: 39px; border: 0; border-radius: 50%; background: var(--surface-soft); font-size: 24px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 26px; transform: translate(-50%, 25px); padding: 11px 16px; border-radius: 10px; background: #17251d; color: #fff; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .analytics-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .banner-admin-grid { grid-template-columns: 1fr; }
  .panel-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .admin-shell { display: block; }
  .sidebar { transform: translateX(-105%); transition: transform .22s; }
  .sidebar.open { transform: none; }
  .admin-main { min-width: 0; }
  .menu-toggle { display: block; }
  .view { width: min(100% - 28px, 1260px); padding-top: 28px; }
  .admin-header { padding-inline: 14px; }
  .list-row { grid-template-columns: 1fr auto; }
  .list-row .list-cell { display: none; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-panel { align-items: flex-start; flex-direction: column; }
  .category-admin-head { grid-template-columns: 1fr; }
  .category-admin-actions { justify-content: flex-start; }
  .subcategory-row { grid-template-columns: 1fr auto; padding-left: 20px; }
  .subcategory-row .subcategory-cell { display: none; }
}

@media (max-width: 720px) {
  .download-stats-toolbar { grid-template-columns: 1fr 1fr; }
  .download-stats-toolbar > input { grid-column: 1 / -1; }
  .download-stats-panel { padding: 14px; }
}
@media (max-width: 560px) {
  .login-card { padding: 30px 22px; }
  .page-title { flex-direction: column; }
  .page-actions { width: 100%; justify-content: stretch; }
  .page-actions > * { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .analytics-card { min-height: 120px; padding: 17px; }
  .analytics-card strong { font-size: 30px; }
  .analytics-panel { padding: 20px 14px; }
  .analytics-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .analytics-chart { gap: 7px; padding-inline: 0; }
  .analytics-column > span { font-size: 9px; }
  .stat-card { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .media-grid { grid-template-columns: 1fr; }
  .upload-row { align-items: stretch; flex-direction: column; }
  .editor-dialog form { padding: 20px; }
}
