:root {
  --green-950: #0b261b;
  --green-900: #103325;
  --green-850: #143c2b;
  --green-800: #174a35;
  --green-700: #1f5c42;
  --green-600: #2b7555;
  --green-500: #3b8b68;
  --green-100: #e5efe8;
  --green-50: #f0f6f2;
  --gold: #c7a25a;
  --gold-light: #f0e3c4;
  --cream: #f2efe7;
  --paper: #fffdf8;
  --ink: #22322b;
  --ink-soft: #40544a;
  --muted: #78857e;
  --line: rgba(20, 60, 43, 0.13);
  --line-strong: rgba(20, 60, 43, 0.24);
  --red: #b24a44;
  --red-bg: #fbefed;
  --amber: #a76e1f;
  --amber-bg: #fbf3e2;
  --radius: 14px;
  --shadow-sm: 0 6px 20px rgba(16, 51, 37, 0.055);
  --shadow-md: 0 18px 50px rgba(16, 51, 37, 0.12);
  --font-sans: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font-sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }
svg { display: block; }
::selection { background: var(--gold-light); color: var(--green-950); }

.admin-noscript { padding: 14px 20px; background: var(--red-bg); color: var(--red); text-align: center; }

.seal { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--font-serif); font-size: 24px; font-weight: 700; }
.seal-sm { width: 36px; height: 36px; font-size: 20px; flex: 0 0 auto; }
.admin-eyebrow { margin: 0 0 3px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 0.2em; }

/* Login */
.admin-login {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 440px 1fr;
  align-items: center;
  gap: 30px;
  color: #f7f1e2;
  background:
    radial-gradient(circle at 18% 20%, rgba(199, 162, 90, 0.18), transparent 32%),
    radial-gradient(circle at 90% 80%, rgba(76, 143, 107, 0.2), transparent 38%),
    linear-gradient(130deg, #091f16, #103325 52%, #174a35);
  overflow: hidden;
  padding: 40px;
}
.admin-login::before { content: ""; position: absolute; inset: 0; opacity: 0.35; background-image: linear-gradient(rgba(240,227,196,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(240,227,196,.04) 1px, transparent 1px); background-size: 60px 60px; }
.login-mark { position: relative; z-index: 1; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; opacity: 0.9; }
.login-mark .seal { width: 150px; height: 150px; font-size: 82px; border-width: 1px; background: rgba(199,162,90,.06); box-shadow: inset 0 0 0 12px rgba(199,162,90,.035); }
.login-lines { display: flex; flex-direction: column; gap: 6px; width: 160px; }
.login-lines i { display: block; height: 1px; background: rgba(240,227,196,.22); }
.login-lines i:nth-child(2) { width: 70%; margin-left: auto; background: rgba(199,162,90,.45); }
.login-lines i:nth-child(3) { width: 40%; margin-left: auto; }
.login-card { position: relative; z-index: 2; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 38px 34px; box-shadow: 0 36px 90px rgba(4, 19, 12, 0.36); }
.login-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(199,162,90,.18); border-radius: 12px; pointer-events: none; }
.login-card h1 { position: relative; margin: 6px 0 4px; font-family: var(--font-serif); font-size: 27px; color: var(--green-900); letter-spacing: 0.02em; }
.login-sub { position: relative; margin: 0 0 24px; color: var(--muted); font-size: 11.5px; }
.admin-field { display: block; margin-bottom: 15px; }
.admin-field > span { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 11.5px; font-weight: 600; }
.admin-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.admin-field input, .admin-field select, .admin-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  height: 41px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.admin-field textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.65; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(43,117,85,.09); }
.admin-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.admin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; height: 39px; padding: 0 16px; font-size: 12.5px; font-weight: 700; text-decoration: none; transition: .16s ease; white-space: nowrap; }
.admin-btn.primary { color: #fffaf0; background: var(--green-800); box-shadow: 0 7px 18px rgba(23,74,53,.18); }
.admin-btn.primary:hover { background: var(--green-700); transform: translateY(-1px); }
.admin-btn.ghost { color: var(--green-800); border-color: var(--line-strong); background: transparent; }
.admin-btn.ghost:hover { background: var(--green-50); }
.admin-btn.sm { height: 34px; padding: 0 12px; font-size: 11.5px; }
.admin-btn.block { width: 100%; height: 44px; margin-top: 4px; }
.admin-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.login-hint { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.login-back { display: inline-block; margin-top: 16px; color: var(--green-700); font-size: 11.5px; text-decoration: none; font-weight: 600; }
.admin-login footer { position: absolute; bottom: 18px; left: 40px; color: rgba(247,241,226,.35); font-size: 10px; letter-spacing: .04em; }

/* Shell */
.admin-shell { min-height: 100vh; display: flex; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 226px; display: flex; flex-direction: column; padding: 24px 16px 18px; color: #e8e4d7; background: linear-gradient(180deg, #0d2b1f, #123a29 60%, #174a35); z-index: 50; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 7px 22px; border-bottom: 1px solid rgba(240,227,196,.12); }
.admin-brand b { display: block; font-family: var(--font-serif); font-size: 16px; color: #fffaf0; letter-spacing: .03em; }
.admin-brand small { display: block; margin-top: 1px; color: rgba(247,241,226,.45); font-size: 9.5px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 20px; }
.admin-nav-btn { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 8px; background: transparent; color: rgba(247,241,226,.62); text-align: left; padding: 9px 10px; font-size: 12px; font-weight: 600; transition: .16s; }
.admin-nav-btn span { width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(240,227,196,.17); border-radius: 6px; font-family: var(--font-serif); font-size: 11px; color: var(--gold-light); flex: 0 0 auto; }
.admin-nav-btn:hover { background: rgba(255,253,248,.06); color: #fffaf0; }
.admin-nav-btn.is-active { background: rgba(255,253,248,.11); color: #fffaf0; }
.admin-nav-btn.is-active span { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 7px 0; border-top: 1px solid rgba(240,227,196,.12); font-size: 10px; }
.sidebar-status { display: flex; align-items: center; gap: 6px; color: rgba(247,241,226,.5); }
.sidebar-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright); }
.sidebar-foot a, .sidebar-foot button { color: rgba(247,241,226,.58); text-decoration: none; background: transparent; border: 0; padding: 0; text-align: left; font-size: 10px; }
.sidebar-foot a:hover, .sidebar-foot button:hover { color: #fffaf0; }

.admin-main { flex: 1; min-width: 0; margin-left: 226px; }
.admin-topbar { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; padding: 12px 30px; background: rgba(255,253,248,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.admin-title { display: flex; align-items: center; gap: 10px; }
.admin-title h1 { margin: 1px 0 0; font-family: var(--font-serif); font-size: 22px; color: var(--green-900); letter-spacing: .02em; }
.mobile-menu { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 7px; width: 34px; height: 34px; color: var(--green-800); }
.admin-top-actions { display: flex; align-items: center; gap: 8px; }
.campaign-chip { padding: 5px 10px; border-radius: 999px; background: var(--green-50); border: 1px solid rgba(43,117,85,.18); color: var(--green-700); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.export-menu { position: relative; }
.export-dropdown { position: absolute; right: 0; top: calc(100% + 6px); width: 168px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); z-index: 60; }
.export-dropdown a { display: block; padding: 8px 9px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; font-size: 11.5px; }
.export-dropdown a:hover { background: var(--green-50); color: var(--green-800); }

.admin-content { padding: 24px 30px 50px; max-width: 1460px; margin: 0 auto; }
.admin-panel { animation: panelIn .24s ease both; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-stat { display: flex; align-items: center; gap: 12px; padding: 17px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.admin-stat-icon { width: 37px; height: 37px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--green-50); color: var(--green-700); font-family: var(--font-serif); font-size: 15px; flex: 0 0 auto; }
.admin-stat small { display: block; color: var(--muted); font-size: 10.5px; }
.admin-stat b { display: block; font-family: var(--font-serif); font-size: 25px; line-height: 1.2; color: var(--green-900); }
.admin-stat em { display: block; margin-top: 1px; color: var(--muted); font-size: 9.5px; font-style: normal; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); gap: 12px; margin-bottom: 16px; }
.admin-card { padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.admin-overview-grid .admin-card { margin-bottom: 0; }
.admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.admin-card-head h2 { margin: 0; font-family: var(--font-serif); font-size: 18px; color: var(--green-900); letter-spacing: .01em; }
.admin-card-head > span { color: var(--muted); font-size: 10px; white-space: nowrap; }

.trend-chart { position: relative; height: 188px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; align-items: end; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.trend-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.trend-bars { position: relative; width: 100%; height: calc(100% - 22px); display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.trend-bar { width: 38%; min-height: 2px; border-radius: 3px 3px 0 0; transition: height .3s ease; }
.trend-bar.active { background: linear-gradient(180deg, var(--green-600), var(--green-800)); }
.trend-bar.done { background: linear-gradient(180deg, var(--gold), #b18743); }
.trend-col span { color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.trend-col b { position: absolute; top: 0; font-size: 8px; color: var(--green-700); font-family: var(--font-serif); font-weight: 400; }
.trend-legend { display: flex; gap: 15px; margin-top: 10px; color: var(--muted); font-size: 9.5px; }
.trend-legend span { display: inline-flex; align-items: center; gap: 4px; }
.trend-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.trend-legend i.active { background: var(--green-700); }
.trend-legend i.done { background: var(--gold); }
.trend-legend i.score { background: transparent; border: 1px solid var(--gold); border-radius: 50%; }

.big-progress { display: flex; align-items: center; gap: 20px; padding: 8px 0 4px; }
.big-progress-ring { --p: 0; width: 116px; height: 116px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), #e6ebe7 0); display: grid; place-items: center; position: relative; }
.big-progress-ring::before { content: ""; position: absolute; inset: 8px; background: var(--paper); border-radius: 50%; }
.big-progress-ring div { position: relative; z-index: 1; text-align: center; }
.big-progress-ring b { display: block; font-family: var(--font-serif); font-size: 26px; line-height: 1.1; color: var(--green-800); }
.big-progress-ring span { color: var(--muted); font-size: 9px; }
.big-progress-meta { display: flex; flex-direction: column; gap: 11px; }
.big-progress-meta b { display: block; font-family: var(--font-serif); font-size: 18px; color: var(--green-800); }
.big-progress-meta span { color: var(--muted); font-size: 9px; }
.progress-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th { padding: 9px 10px; text-align: left; background: #f8f6ef; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.admin-table td { padding: 9px 10px; border-bottom: 1px solid rgba(20,60,43,.07); color: var(--ink-soft); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #fbf9f2; }
.admin-table .strong { color: var(--ink); font-weight: 700; }
.admin-table .muted { color: var(--muted); font-size: 9.5px; }
.admin-table .score { font-family: var(--font-serif); font-size: 13px; color: var(--green-700); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge.green { background: var(--green-100); color: var(--green-700); }
.badge.gold { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.gray { background: #f0f2ef; color: var(--muted); }
.rate-bar { width: 88px; height: 4px; background: #e8ece8; border-radius: 99px; margin-top: 3px; overflow: hidden; }
.rate-bar i { display: block; height: 100%; background: var(--green-500); border-radius: inherit; }

.admin-two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.module-rate-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 3px; }
.module-rate-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 44px; gap: 10px; align-items: center; }
.module-rate-name { font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-rate-bar { height: 5px; background: #edf0ed; border-radius: 99px; overflow: hidden; }
.module-rate-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--gold)); border-radius: inherit; }
.module-rate-row b { text-align: right; color: var(--green-700); font-size: 10.5px; }
.recent-list { display: flex; flex-direction: column; }
.recent-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.recent-row:last-child { border-bottom: 0; }
.recent-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 11px; flex: 0 0 auto; }
.recent-main { flex: 1; min-width: 0; }
.recent-main b { display: block; font-size: 10.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-main span { display: block; color: var(--muted); font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-score { color: var(--green-700); font-family: var(--font-serif); font-size: 13px; font-weight: 700; }
.recent-score.is-fail { color: var(--red); }

.admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.admin-filters select, .admin-filters input { height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); padding: 0 9px; font-size: 11px; outline: none; }
.admin-filters input { min-width: 190px; flex: 1 1 190px; max-width: 280px; }
.admin-filters select { max-width: 180px; }
.admin-filters .admin-btn { margin-left: 0; }
.admin-filters .admin-btn:last-child { margin-left: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 14px; }
.pager button { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; min-width: 28px; height: 28px; color: var(--ink-soft); font-size: 10.5px; }
.pager button.is-active { background: var(--green-800); border-color: var(--green-800); color: #fffaf0; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.admin-empty { padding: 42px 20px; text-align: center; color: var(--muted); font-size: 12px; border: 1px dashed var(--line-strong); border-radius: 10px; }

.question-list { display: flex; flex-direction: column; gap: 8px; }
.question-row { display: flex; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfa; }
.question-row.is-inactive { opacity: .58; background: #f8f7f2; }
.question-type { flex: 0 0 auto; width: 36px; height: 21px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--green-50); color: var(--green-700); font-size: 9px; font-weight: 700; }
.question-type.multiple { background: var(--amber-bg); color: var(--amber); }
.question-type.judge { background: #f0edf6; color: #6d5a91; }
.question-main { flex: 1; min-width: 0; }
.question-stem { margin: 0; font-size: 11.5px; line-height: 1.65; color: var(--ink); font-weight: 600; }
.question-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 8.5px; }
.question-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.icon-btn { border: 1px solid var(--line); background: var(--paper); border-radius: 5px; height: 25px; padding: 0 8px; color: var(--ink-soft); font-size: 9.5px; }
.icon-btn:hover { background: var(--green-50); color: var(--green-800); }
.icon-btn.danger:hover { background: var(--red-bg); color: var(--red); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 14px; align-items: start; }
.settings-form { display: flex; flex-direction: column; }
.admin-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-check { display: flex; align-items: center; gap: 8px; margin: 3px 0 15px; color: var(--ink-soft); font-size: 11.5px; }
.admin-check input { width: 15px; height: 15px; accent-color: var(--green-700); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.form-actions span { color: var(--muted); font-size: 10px; }
.settings-side .admin-card:last-child { margin-bottom: 0; }
.notice-card { background: #fbf7ed; border-color: rgba(199,162,90,.3); }
.notice-card h3 { margin: 0 0 7px; font-family: var(--font-serif); font-size: 14px; color: #715326; }
.notice-card p { margin: 0 0 7px; color: #796844; font-size: 10.5px; line-height: 1.7; }
.notice-card p:last-child { margin-bottom: 0; }

/* Modal */
body.modal-open { overflow: hidden; }
.admin-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 28, 19, .5); backdrop-filter: blur(3px); }
.modal-card { position: relative; z-index: 1; width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px 26px; background: var(--paper); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-family: var(--font-serif); font-size: 21px; color: var(--green-900); }
.modal-close { border: 0; background: transparent; color: var(--muted); font-size: 25px; line-height: 1; padding: 0 2px; }
.modal-close:hover { color: var(--ink); }

/* Toast / loading */
.admin-toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translateX(-50%); padding: 10px 16px; border-radius: 8px; background: rgba(16,51,37,.96); color: #f8f3e7; font-size: 11.5px; box-shadow: var(--shadow-md); max-width: min(520px, calc(100% - 30px)); animation: toastIn .22s ease both; }
.admin-toast.is-error { background: rgba(126,48,42,.97); }
.admin-toast.is-success { background: rgba(23,74,53,.97); }
.admin-loading { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10,36,25,.22); backdrop-filter: blur(2px); }
.admin-loading > div { display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-radius: 9px; background: var(--paper); box-shadow: var(--shadow-md); color: var(--ink-soft); font-size: 11.5px; }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(43,117,85,.2); border-top-color: var(--green-600); border-radius: 50%; animation: spin .8s linear infinite; }

@media (max-width: 1100px) {
  .admin-login { grid-template-columns: 1fr 420px; }
  .login-mark { display: none; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-two-col { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .admin-login { display: flex; justify-content: center; align-items: center; padding: 22px; }
  .login-card { width: min(440px, 100%); padding: 30px 24px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .24s ease; width: 236px; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .admin-shell.nav-open .admin-sidebar { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .mobile-menu { display: inline-flex; align-items: center; justify-content: center; }
  .admin-topbar { padding: 11px 16px; min-height: 64px; }
  .admin-title h1 { font-size: 19px; }
  .admin-content { padding: 16px 14px 40px; }
  .admin-top-actions { gap: 5px; }
  .campaign-chip { display: none; }
  .admin-stat-grid { gap: 8px; }
  .admin-stat { padding: 13px; gap: 8px; }
  .admin-stat b { font-size: 21px; }
  .admin-card { padding: 16px 14px; }
  .admin-card-head h2 { font-size: 16px; }
  .admin-filters input { max-width: none; }
  .admin-filters .admin-btn:last-child { margin-left: 0; }
  .admin-field-row { grid-template-columns: 1fr; gap: 0; }
  .question-row { flex-wrap: wrap; }
  .question-actions { width: 100%; justify-content: flex-end; }
  .trend-chart { gap: 4px; height: 160px; }
  .trend-col span { font-size: 7.5px; }
  .big-progress-ring { width: 95px; height: 95px; }
  .big-progress-ring b { font-size: 21px; }
}

@media (max-width: 480px) {
  .admin-login { padding: 14px; }
  .login-card { padding: 26px 18px; }
  .login-card h1 { font-size: 23px; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-stat-icon { display: none; }
  .admin-stat b { font-size: 19px; }
  .admin-top-actions .admin-btn.ghost { display: none; }
  .admin-filters select, .admin-filters input { flex: 1 1 100%; max-width: none; }
  .admin-filters .admin-btn { flex: 1 1 auto; }
  .export-dropdown { right: -50px; }
  .modal-card { padding: 20px 16px; }
}

@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
