:root {
  color-scheme: light;
  --ink: #18243a;
  --muted: #69758b;
  --line: #e1e7f0;
  --paper: #fff;
  --wash: #f4f6fb;
  --blue: #365ae8;
  --blue-dark: #2749ce;
  --mint: #1a9878;
  --danger: #bd4754;
  --shadow: 0 18px 50px rgba(27, 43, 78, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 76px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: linear-gradient(145deg,#526ff1,#263fb7); font-size: 25px; font-weight: 750; }
.brand strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.top-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22aa87; box-shadow: 0 0 0 4px #e4f6f0; }
.page-shell { width: min(100% - 40px, 960px); margin: 0 auto; padding: 58px 0 96px; }
.intro { max-width: 610px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 10px; line-height: 1.3; font-weight: 800; letter-spacing: .15em; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); line-height: 1.04; letter-spacing: -.055em; }
h1 span { color: var(--blue); }
.intro-copy { max-width: 560px; margin: 18px 0 16px; color: #53617a; font-size: 15px; line-height: 1.65; }
.privacy-note { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #dce5f6; border-radius: 10px; background: #edf2fc; color: #465879; font-size: 11px; }
.privacy-note span { color: var(--blue); font-size: 15px; }
.review-panel, .question-card, .review-form, .empty-state { border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); }
.review-panel { padding: 25px 28px 28px; }
.section-heading, .queue-head, .form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.count-badge { padding: 7px 10px; border-radius: 100px; background: #eef2ff; color: #425ac0; font-size: 11px; font-weight: 700; white-space: nowrap; }
.filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-top: 23px; }
.filters label, .comment-label { display: grid; gap: 8px; color: #4c5a72; font-size: 12px; font-weight: 700; }
select, textarea { width: 100%; border: 1px solid #d8e0ec; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; }
select { height: 46px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; line-height: 1.5; }
select:focus, textarea:focus { border-color: #8095f0; box-shadow: 0 0 0 3px #edf0ff; }
select:disabled { color: #98a2b2; background: #f7f8fb; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 10px; font-size: 12px; font-weight: 750; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 7px 16px rgba(54,90,232,.18); }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button-secondary { color: #40516c; background: #edf1f7; }
.button-secondary:hover:not(:disabled) { background: #e3e9f2; }
.inline-error { margin: 12px 0 0; color: var(--danger); font-size: 12px; }
.question-section { margin-top: 54px; }
.queue-head { align-items: end; margin-bottom: 17px; }
.queue-progress { display: grid; gap: 3px; text-align: right; }
.queue-progress strong { font-size: 16px; }
.queue-progress span { color: var(--muted); font-size: 10px; }
.question-card { overflow: hidden; }
.question-meta { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 10px 17px; border-bottom: 1px solid var(--line); }
.meta-pill { padding: 6px 9px; border-radius: 7px; background: #f0f3fa; color: #465674; font-size: 10px; font-weight: 750; }
.meta-code { color: #7d8799; font-size: 10px; }
.question-index { margin-left: auto; color: #8993a4; font-size: 10px; }
.image-wrap { display: grid; place-items: center; min-height: 240px; padding: 18px; background: #fff; }
.image-wrap img { display: block; width: auto; max-width: 100%; max-height: 920px; object-fit: contain; }
.review-form { margin-top: 18px; padding: 26px 28px 25px; }
.form-heading { align-items: end; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.form-heading > p { margin: 0; color: var(--muted); font-size: 10px; }
.rubric-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.rubric-row { min-height: 69px; display: grid; grid-template-columns: 1fr 168px; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f5; }
.rubric-row label { color: #35435b; font-size: 12px; font-weight: 650; line-height: 1.4; }
.rubric-row select { height: 36px; padding: 0 9px; font-size: 11px; }
.decision-fieldset, .issue-fieldset { margin: 25px 0 0; padding: 0; border: 0; }
.decision-fieldset legend, .issue-fieldset legend { margin-bottom: 12px; color: #29364d; font-size: 13px; font-weight: 800; }
.issue-fieldset legend span { color: var(--muted); font-size: 10px; font-weight: 500; }
.decision-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.decision-option { position: relative; display: flex; gap: 9px; min-height: 67px; align-items: flex-start; padding: 12px; border: 1px solid #dce3ed; border-radius: 10px; background: #fff; cursor: pointer; }
.decision-option:has(input:checked) { border-color: #748af0; background: #f5f6ff; box-shadow: 0 0 0 2px #e7eaff; }
.decision-option input { margin: 2px 0 0; accent-color: var(--blue); }
.decision-option span { display: grid; gap: 4px; }
.decision-option strong { color: #29374f; font-size: 11px; }
.decision-option small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.issue-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.issue-tag { position: relative; }
.issue-tag input { position: absolute; opacity: 0; }
.issue-tag span { display: block; padding: 8px 10px; border: 1px solid #dce3ed; border-radius: 8px; color: #506078; background: #fff; font-size: 10px; cursor: pointer; }
.issue-tag input:checked + span { border-color: #748af0; color: #344fc4; background: #f1f3ff; }
.issue-tag input:focus-visible + span { outline: 3px solid #dce2ff; }
.comment-label { margin-top: 22px; }
.comment-label textarea { font-size: 12px; font-weight: 400; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.empty-state { margin: 48px 0 0; padding: 45px 32px; text-align: center; }
.empty-state h2 { margin-top: 14px; }
.empty-state p { max-width: 540px; margin: 10px auto 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; color: #187c64; background: #e7f7f1; font-size: 20px; }
.skipped-state { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.skipped-state p { margin: 0; }
.text-button { padding: 4px; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 700; }
.site-footer { padding: 18px; border-top: 1px solid var(--line); color: #8993a4; text-align: center; font-size: 10px; }
.admin-shell { width: min(100% - 36px, 1240px); margin: 0 auto; padding: 38px 0 70px; }
.admin-login { width: min(100%, 430px); margin: 70px auto; padding: 27px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.admin-login p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-login form { display: grid; gap: 13px; }
.admin-login label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 22px 0; }
.admin-toolbar label { display: grid; gap: 5px; min-width: 145px; color: var(--muted); font-size: 10px; }
.admin-toolbar select { height: 38px; font-size: 11px; }
.admin-stats { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin: 18px 0; }
.stat-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.stat-card strong { display: block; font-size: 22px; }
.stat-card span { color: var(--muted); font-size: 10px; }
.admin-list { display: grid; gap: 12px; }
.admin-question { display: grid; grid-template-columns: 145px 1fr; gap: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.admin-question > img { width: 145px; height: 115px; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; background: #fff; }
.admin-question-main { min-width: 0; }
.admin-question-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px; }
.admin-question-title h3 { margin: 0; font-size: 13px; }
.admin-question-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.status-control { display: flex; gap: 6px; align-items: center; }
.status-control select { width: 150px; height: 34px; font-size: 10px; }
.status-control button, .small-button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.review-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.summary-chip { padding: 6px 8px; border-radius: 7px; color: #455570; background: #f0f3f8; font-size: 10px; }
.review-details { margin-top: 10px; }
.review-details summary { color: var(--blue); font-size: 10px; font-weight: 700; cursor: pointer; }
.review-comment { margin-top: 8px; padding: 10px; border-left: 2px solid #a4b1f7; background: #f7f8fc; color: #495770; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.admin-error { color: var(--danger); font-size: 11px; }
.no-results { padding: 35px; border: 1px dashed #ccd5e4; border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; }
@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 16px; }
  .top-note { font-size: 0; }
  .top-note .live-dot { margin-right: 1px; }
  .page-shell { width: min(100% - 26px, 600px); padding-top: 37px; }
  .intro { margin-bottom: 26px; }
  .intro-copy { font-size: 13px; }
  .review-panel, .review-form { padding: 20px 17px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .button { grid-column: 1 / -1; }
  .rubric-grid { grid-template-columns: 1fr; }
  .rubric-row { grid-template-columns: 1fr 145px; }
  .decision-options { grid-template-columns: 1fr; }
  .decision-option { min-height: 58px; }
  .queue-head { align-items: start; }
  .queue-progress span { max-width: 116px; line-height: 1.35; }
  .form-heading { align-items: start; }
  .form-heading > p { padding-top: 4px; text-align: right; }
  .image-wrap { min-height: 180px; padding: 8px; }
  .image-wrap img { max-height: 72vh; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .admin-question { grid-template-columns: 92px 1fr; gap: 10px; }
  .admin-question > img { width: 92px; height: 92px; }
  .admin-question-title { display: grid; }
  .status-control { flex-wrap: wrap; }
  .status-control select { width: 130px; }
}
