:root {
  --ink: #182524;
  --muted: #61706e;
  --paper: #f7f5ef;
  --surface: #fffefb;
  --line: #d9ded9;
  --green: #153d3a;
  --green-2: #276b61;
  --green-soft: #e5efeb;
  --gold: #a57b2a;
  --red: #9a3f36;
  --blue: #325f78;
  --shadow: 0 18px 45px rgba(26, 43, 40, .09);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: Inter, "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 30; min-height: 76px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: white; background: rgba(17, 54, 51, .97); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #e9d8a8; font: 700 12px/1 var(--serif); letter-spacing: .12em; }
.brand strong { display: block; font-family: var(--serif); font-size: 17px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 1px; color: rgba(255,255,255,.62); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { padding: 25px 0 20px; border-bottom: 2px solid transparent; color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; }
nav a:hover, nav a.active { color: white; border-bottom-color: #d4b56f; }

main { min-height: calc(100vh - 190px); }
.loading-view { min-height: 60vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.loader { width: 32px; height: 32px; border: 2px solid #cfd8d3; border-top-color: var(--green-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero { position: relative; overflow: hidden; padding: 78px clamp(20px, 7vw, 110px) 70px; color: white; background: var(--green); }
.hero::after { content: ""; position: absolute; right: -120px; top: -190px; width: 540px; height: 540px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.hero-grid { position: relative; z-index: 1; max-width: 1260px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .7fr); gap: 80px; align-items: end; }
.eyebrow { margin: 0 0 16px; color: #d8c180; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; font: 500 clamp(38px, 5.2vw, 72px)/1.18 var(--serif); letter-spacing: .02em; }
.hero-copy { max-width: 680px; margin: 25px 0 0; color: rgba(255,255,255,.72); font-size: 16px; }
.hero-note { padding: 23px 0 5px 28px; border-left: 1px solid rgba(255,255,255,.32); }
.hero-note strong { display: block; font: 400 25px/1.35 var(--serif); }
.hero-note span { display: block; margin-top: 8px; color: rgba(255,255,255,.58); font-size: 12px; letter-spacing: .06em; }

.stat-strip { max-width: 1260px; margin: -1px auto 0; padding: 0 clamp(20px, 3vw, 40px); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat { padding: 24px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { display: block; color: var(--green); font: 500 31px/1.1 var(--serif); }
.stat span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.content { max-width: 1260px; margin: auto; padding: 54px clamp(20px, 3vw, 40px) 86px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; font: 500 30px/1.3 var(--serif); }
.section-heading p { margin: 7px 0 0; color: var(--muted); }
.result-count { white-space: nowrap; color: var(--muted); font-size: 13px; }

.filters { display: grid; grid-template-columns: 2.1fr repeat(3, 1fr) 1.15fr; gap: 10px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 650; }
.input, .select, textarea { width: 100%; color: var(--ink); background: var(--surface); border: 1px solid #cbd3ce; border-radius: 6px; outline: none; transition: border-color .16s, box-shadow .16s; }
.input, .select { min-height: 44px; padding: 9px 12px; }
textarea { min-height: 105px; padding: 11px 12px; resize: vertical; }
.input:focus, .select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(39,107,97,.11); }

.case-table-wrap { overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 32px rgba(30,48,44,.06); }
.case-table { width: 100%; border-collapse: collapse; }
.case-table th { padding: 13px 18px; color: #5f6b68; background: #f1f2ed; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; letter-spacing: .08em; }
.case-table td { padding: 17px 18px; border-bottom: 1px solid #e7e9e5; vertical-align: middle; font-size: 13px; }
.case-table tbody tr { transition: background .14s; }
.case-table tbody tr:hover { background: #f4f8f5; }
.case-table tbody tr:last-child td { border: 0; }
.case-name { display: block; color: var(--green); font: 600 15px/1.5 var(--serif); text-decoration: none; }
.case-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-no { color: #81908b; font-size: 11px; letter-spacing: .08em; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 11px; white-space: nowrap; }
.tag.gold { color: #755816; background: #f3ead2; }
.qca-mini { display: flex; align-items: center; gap: 4px; }
.qca-dot { width: 8px; height: 8px; border-radius: 50%; background: #cdd5d1; }
.qca-dot[data-score="1"] { background: #176b56; }
.qca-dot[data-score="0.67"] { background: #56a087; }
.qca-dot[data-score="0.33"] { background: #d4a54e; }
.qca-dot[data-score="0"] { background: #d8d8d3; }
.empty-state { padding: 70px 25px; text-align: center; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 18px; background: #f8f8f5; border-top: 1px solid var(--line); }
.pagination-buttons { display: flex; gap: 8px; }

.btn { min-height: 40px; padding: 8px 15px; border: 1px solid transparent; border-radius: 5px; font-weight: 650; font-size: 13px; }
.btn:disabled { cursor: not-allowed; opacity: .45; }
.btn-primary { color: white; background: var(--green); }
.btn-primary:hover { background: #0d302d; }
.btn-secondary { color: var(--green); background: white; border-color: #b8c6c0; }
.btn-secondary:hover { background: var(--green-soft); }
.btn-danger { color: white; background: var(--red); }

.breadcrumb { margin-bottom: 27px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--green-2); text-decoration: none; }
.detail-hero { padding: 54px clamp(20px, 7vw, 110px) 47px; background: #e8eeea; border-bottom: 1px solid #ccd5cf; }
.detail-hero-inner { max-width: 1180px; margin: auto; }
.detail-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-hero h1 { max-width: 920px; margin: 0; font: 500 clamp(29px, 4vw, 48px)/1.28 var(--serif); color: var(--green); }
.detail-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.detail-title-row h1 { flex: 1; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 13px 24px; margin-top: 22px; color: #4f5f5a; font-size: 13px; }
.detail-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.detail-layout { max-width: 1180px; margin: auto; padding: 42px 20px 86px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 38px; align-items: start; }
.panel { margin-bottom: 22px; padding: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 9px 30px rgba(30,48,44,.05); }
.panel h2 { margin: 0 0 20px; font: 600 22px/1.35 var(--serif); color: var(--green); }
.panel h3 { margin: 0 0 14px; font: 600 16px/1.4 var(--serif); }
.abstract { margin: 0 0 25px; padding: 18px 20px; color: #394845; background: #f3f3ee; border-left: 3px solid var(--gold); }
.abstract p { margin: 4px 0 0; }
.fact-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.fact-with-action, .fact-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.fact-with-action > div, .fact-card > div { min-width: 0; flex: 1; }
.definition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.definition-grid > div { min-height: 83px; padding: 15px 17px; background: var(--surface); }
.definition-grid dt { color: var(--muted); font-size: 11px; }
.definition-grid dd { margin: 5px 0 0; font-size: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { min-height: 92px; padding: 14px; background: #f2f5f1; border: 1px solid #e1e6e0; }
.metric span { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 6px; color: var(--green); font: 500 20px/1.35 var(--serif); }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.metric-head span { flex: 1; }

.question-btn { flex: 0 0 auto; min-height: 27px; padding: 4px 9px; color: var(--green-2); background: transparent; border: 1px solid #a9c0b7; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: color .15s, background .15s, border-color .15s; }
.question-btn:hover, .question-btn:focus-visible { color: white; background: var(--green-2); border-color: var(--green-2); outline: none; }
.cell-with-action { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cell-with-action > span { min-width: 0; flex: 1; }

.qca-table { width: 100%; border-collapse: collapse; }
.qca-table th, .qca-table td { padding: 14px 10px; border-bottom: 1px solid #e2e6e2; text-align: left; vertical-align: top; font-size: 12px; }
.qca-table th { color: var(--muted); font-size: 11px; }
.qca-code { color: var(--gold); font-weight: 800; letter-spacing: .05em; }
.score { display: inline-grid; place-items: center; width: 41px; height: 28px; border-radius: 3px; color: white; background: var(--green-2); font-weight: 750; }
.score.s0 { color: #66716d; background: #e4e7e4; }
.score.s033 { color: #684d13; background: #ead59d; }
.score.s067 { background: #5a917d; }
.evidence { max-width: 420px; color: #50605c; line-height: 1.55; }
.qca-review-row td { padding: 0 10px 14px; background: #fbfbf8; }

.side-panel { position: sticky; top: 98px; }
.side-panel .panel { padding: 22px; }
.toc a { display: block; padding: 10px 0; color: #52635e; border-bottom: 1px solid #e3e6e2; text-decoration: none; font-size: 13px; }
.toc a:hover { color: var(--green-2); }
.source-box { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.review-guide { display: flex; gap: 12px; margin-top: 19px; padding: 15px; background: var(--green-soft); border: 1px solid #cbdcd5; }
.review-guide-icon { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; color: white; background: var(--green-2); border-radius: 50%; font-weight: 800; }
.review-guide strong { color: var(--green); font: 600 14px var(--serif); }
.review-guide p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.feedback-form { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { margin: 0; color: var(--muted); font-size: 11px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.feedback-item { margin-top: 12px; padding: 18px; background: #f7f7f2; border: 1px solid #e1e4de; }
.feedback-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status.accepted { color: #155642; background: #d9ede5; }
.status.rejected { color: #84352f; background: #f3dfdc; }
.status.pending { color: #735618; background: #f2e7c8; }
.status.private { color: #505c59; background: #e7e9e7; }
.review-reply { margin-top: 10px; padding: 10px 12px; color: #33423e; background: white; border-left: 2px solid var(--green-2); font-size: 12px; }
.inline-reviews { margin-top: 10px; }
.inline-review { overflow: hidden; margin-top: 6px; background: #eef4f0; border: 1px solid #d2dfd9; border-radius: 5px; }
.inline-review summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.inline-review summary::-webkit-details-marker { display: none; }
.inline-review summary::after { content: "+"; margin-left: auto; font-size: 15px; }
.inline-review[open] summary::after { content: "−"; }
.inline-review-body { padding: 2px 11px 12px; color: #43524f; font-size: 11px; }
.inline-review-body p { margin: 7px 0; }

.feedback-dialog { width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 0; color: var(--ink); background: var(--surface); border: 0; border-radius: 10px; box-shadow: 0 28px 90px rgba(12, 33, 30, .28); }
.feedback-dialog::backdrop { background: rgba(10, 28, 26, .58); backdrop-filter: blur(3px); }
.dialog-shell { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.dialog-head .eyebrow { margin-bottom: 4px; color: var(--gold); }
.dialog-head h2 { margin: 0; font: 600 25px/1.35 var(--serif); color: var(--green); }
.dialog-close { width: 36px; height: 36px; padding: 0; color: var(--muted); background: #f0f2ee; border: 0; border-radius: 50%; font-size: 24px; line-height: 1; }
.dialog-close:hover { color: white; background: var(--green); }
.dialog-intro { margin: 17px 0; color: var(--muted); font-size: 13px; }
.selected-field { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--green); background: var(--green-soft); border-left: 3px solid var(--green-2); }
.selected-field span { color: var(--muted); font-size: 11px; }
.selected-field strong { font: 600 15px var(--serif); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }

.method-hero { padding: 72px 20px 56px; color: white; background: var(--green); text-align: center; }
.method-hero h1 { margin: 0; font: 500 clamp(34px, 4vw, 52px)/1.25 var(--serif); }
.method-hero p { max-width: 680px; margin: 18px auto 0; color: rgba(255,255,255,.68); }
.prose { max-width: 900px; margin: auto; padding: 55px 20px 90px; }
.prose section { margin-bottom: 38px; }
.prose h2 { margin: 0 0 15px; font: 600 24px/1.4 var(--serif); color: var(--green); }
.prose p, .prose li { color: #43524f; }
.calibration-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0; }
.legend-item { padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.legend-item strong { display: block; font: 500 25px var(--serif); color: var(--green); }
.legend-item span { color: var(--muted); font-size: 11px; }

.admin-shell { max-width: 1120px; margin: auto; padding: 55px 20px 90px; }
.admin-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-head h1 { margin: 0; font: 500 34px var(--serif); color: var(--green); }
.login-card { max-width: 430px; margin: 60px auto; padding: 34px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card h1 { margin: 0 0 8px; font: 600 28px var(--serif); color: var(--green); }
.recovery-card { max-width: 500px; }
.security-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.text-button { padding: 5px 0; color: var(--green-2); background: none; border: 0; border-bottom: 1px solid transparent; font: 600 12px var(--sans); cursor: pointer; }
.text-button:hover { color: var(--green); border-bottom-color: currentColor; }
.security-question { display: grid; gap: 5px; margin: 18px 0; padding: 15px 16px; background: var(--green-soft); border-left: 3px solid var(--gold); }
.security-question span { color: var(--muted); font-size: 11px; }
.security-question strong { color: var(--green); font: 600 16px/1.45 var(--serif); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.data-sync { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 28px; align-items: center; margin: 0 0 26px; padding: 27px 29px; background: linear-gradient(115deg, #edf3ef 0%, #f9f8f3 72%); border: 1px solid #d4dfd8; border-left: 4px solid var(--gold); }
.data-sync .eyebrow { margin-bottom: 7px; color: var(--gold); }
.data-sync h2 { margin: 0 0 9px; font: 600 24px var(--serif); color: var(--green); }
.data-sync p { margin: 0; color: #53635f; font-size: 13px; line-height: 1.7; }
.data-sync .data-sync-note { margin-top: 8px; color: var(--muted); font-size: 11px; }
.data-sync-actions { display: grid; gap: 10px; justify-items: start; }
.import-form { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.file-picker { display: inline-flex; align-items: center; min-height: 39px; max-width: 230px; padding: 0 12px; color: var(--green); background: white; border: 1px dashed #98aba5; cursor: pointer; font-size: 12px; }
.file-picker:hover { border-color: var(--green-2); background: #fbfdfb; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.import-file-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.account-security { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 30px; margin: 0 0 26px; padding: 27px 29px; background: var(--surface); border: 1px solid var(--line); }
.account-security .eyebrow { margin-bottom: 7px; color: var(--gold); }
.account-security h2 { margin: 0 0 9px; color: var(--green); font: 600 24px var(--serif); }
.account-security p { margin: 0 0 8px; color: #53635f; font-size: 13px; line-height: 1.7; }
.security-form { display: grid; gap: 11px; }
.security-form .field { margin: 0; }
.admin-filter { max-width: 260px; margin-bottom: 18px; }
.admin-stat { padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.admin-stat strong { display: block; font: 500 27px var(--serif); color: var(--green); }
.admin-feedback { margin-bottom: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.admin-feedback h3 { margin: 0; font: 600 17px var(--serif); color: var(--green); }
.status-stack { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.admin-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 7px 0 16px; color: var(--muted); font-size: 11px; }
.change-box { display: grid; grid-template-columns: 1fr 42px 1fr; gap: 10px; align-items: center; margin: 12px 0; }
.change-value { min-height: 62px; padding: 10px; background: #f3f4f0; border: 1px solid #e1e4df; font-size: 12px; }
.arrow { color: var(--gold); text-align: center; font-size: 20px; }
.review-actions { display: flex; gap: 8px; margin-top: 10px; }
.publish-choice { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 12px 14px; background: #f2f5f1; border: 1px solid #dce3de; cursor: pointer; }
.publish-choice input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--green-2); }
.publish-choice span { display: grid; }
.publish-choice strong { font-size: 13px; }
.publish-choice small { color: var(--muted); font-size: 11px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: min(380px, calc(100vw - 48px)); padding: 13px 17px; color: white; background: #173f3b; border-radius: 6px; box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }
.muted { color: var(--muted); }
footer { padding: 35px 20px; color: rgba(255,255,255,.75); background: #102f2d; text-align: center; font-size: 12px; }
footer p { margin: 3px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-note { max-width: 520px; }
  .filters { grid-template-columns: 2fr 1fr 1fr; }
  .filters .field:nth-child(4), .filters .field:nth-child(5) { grid-column: span 1; }
  .detail-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; order: -1; }
  .toc { display: none; }
  .qca-table .evidence-col { display: none; }
  .data-sync { grid-template-columns: 1fr; }
  .account-security { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { min-height: 66px; padding: 0 16px; }
  .brand small { display: none; }
  .brand strong { font-size: 14px; }
  .brand-mark { width: 35px; height: 35px; }
  nav { gap: 13px; }
  nav a { padding: 21px 0 17px; font-size: 12px; }
  nav a[data-nav="admin"] { display: none; }
  .hero { padding: 55px 20px 48px; }
  .hero h1 { font-size: 37px; }
  .stat-strip { margin: 0; padding: 0; grid-template-columns: 1fr 1fr; border-width: 0 0 1px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filters { grid-template-columns: 1fr 1fr; }
  .data-sync { padding: 22px 18px; }
  .import-form { align-items: stretch; }
  .file-picker { max-width: none; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .case-table th:nth-child(4), .case-table td:nth-child(4), .case-table th:nth-child(5), .case-table td:nth-child(5), .case-table th:nth-child(6), .case-table td:nth-child(6) { display: none; }
  .case-table th, .case-table td { padding: 14px 11px; }
  .detail-hero { padding: 38px 20px; }
  .detail-title-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .detail-layout { padding: 25px 14px 65px; gap: 12px; }
  .panel { padding: 20px 16px; }
  .definition-grid, .metric-grid, .form-row, .change-box { grid-template-columns: 1fr; }
  .feedback-dialog { max-height: calc(100vh - 18px); }
  .dialog-shell { padding: 20px 16px; }
  .arrow { transform: rotate(90deg); }
  .qca-table th:nth-child(2), .qca-table td:nth-child(2) { display: none; }
  .calibration-legend { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .section-heading, .admin-head { align-items: start; flex-direction: column; }
}

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