:root {
  color-scheme: light;
  --ink: #122132;
  --muted: #607082;
  --navy: #0b233f;
  --navy-2: #153858;
  --teal: #177d7a;
  --teal-soft: #e5f3f2;
  --amber: #d99a24;
  --amber-soft: #fff4d9;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --line: #dce3ea;
  --shadow: 0 14px 35px rgba(11, 35, 63, .08);
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.65;
}

button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: white;
  background: linear-gradient(115deg, var(--navy), var(--navy-2));
  box-shadow: 0 8px 24px rgba(6, 24, 43, .18);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-size: 1.08rem; letter-spacing: .04em; }
.brand small { display: block; color: #bdd3e1; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px;
  color: var(--navy);
  background: #f4c35e;
  font-weight: 900;
}

.version-badge {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #e7f2f2;
  font-size: .85rem;
}

.app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 74px); }

.sidebar {
  position: sticky;
  top: 74px;
  height: calc(100vh - 74px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 26px 16px;
  background: #eef2f6;
  border-right: 1px solid var(--line);
}

.nav-group { min-width: 0; }
.nav-group + .nav-group { margin-top: 16px; padding-top: 16px; border-top: 1px solid #d6dfe8; }
.nav-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin: 0 10px 7px;
  color: #637489;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
}
summary.nav-group-label { cursor: pointer; list-style: none; }
summary.nav-group-label::-webkit-details-marker { display: none; }
summary.nav-group-label::after { content: "＋"; color: currentColor; font-size: 1rem; letter-spacing: 0; }
details[open] > summary.nav-group-label::after { content: "−"; }
.nav-group-body { padding-top: 1px; }
.role-commissioner-nav .nav-group-label { color: #0f6d73; }
.role-school-nav .nav-group-label { color: #89600e; }
.nav-group-end { margin-top: 20px !important; }
.nav-group-end .nav-item { color: #526579; }

.nav-item {
  width: 100%;
  min-height: 44px;
  margin-bottom: 5px;
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  color: #394a5c;
  background: transparent;
  text-align: left;
  font-size: .92rem;
  font-weight: 650;
}

.nav-item:hover { background: #e3e9ee; }
.nav-item.active { color: #fff; background: var(--navy); }

.workspace { min-width: 0; padding: 24px 34px 64px; }
.toolbar { display: flex; gap: 10px; margin: 0 auto 30px; max-width: 1180px; }
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 5px 20px rgba(18,33,50,.04);
}
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.filter-button, .secondary-button, .primary-button {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.filter-button:hover, .secondary-button:hover { border-color: #91a2b3; background: #f8fafc; }
.primary-button { color: white; border-color: var(--navy); background: var(--navy); }

.page-section { display: none; max-width: 1180px; margin: 0 auto; }
.page-section.active { display: block; }
.section-kicker { color: var(--teal); font-size: .82rem; font-weight: 850; letter-spacing: .16em; }
h1 { max-width: 820px; margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; letter-spacing: -.035em; }
.lead { max-width: 820px; margin: 0 0 26px; color: var(--muted); font-size: 1.1rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card {
  min-height: 150px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card strong { display: block; margin: 5px 0 4px; color: var(--navy); font-size: 2.3rem; line-height: 1.1; }
.metric-card.accent { border-color: #b9d9d6; background: var(--teal-soft); }
.metric-card.warning { border-color: #edd5a0; background: var(--amber-soft); }

.content-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 18px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; font-size: 1.1rem; }
.panel-heading > span { color: var(--muted); font-size: .82rem; }
.principles { margin: 0; padding-left: 1.4rem; }
.principles li + li { margin-top: 8px; }
.lock-chip { padding: 3px 8px; border-radius: 999px; color: #76510c !important; background: var(--amber-soft); }
.source-panel p { color: var(--muted); }

.dialog { width: min(520px, calc(100% - 30px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 28px 90px rgba(5,20,37,.35); }
.dialog::backdrop { background: rgba(7,23,40,.62); backdrop-filter: blur(3px); }
.dialog form { position: relative; padding: 28px; }
.dialog-close { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 1.7rem; }
.dialog-eyebrow { color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .13em; }
.dialog h2 { margin: 7px 0 8px; }
.dialog p { color: var(--muted); }
.indicator-dialog { width: min(760px, calc(100% - 30px)); max-height: min(86dvh, 900px); overflow-y: auto; }
.indicator-verbatim { margin: 18px 0 !important; padding: 18px; border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0; background: #f2f8f8; color: var(--ink) !important; line-height: 1.9; white-space: pre-wrap; }
.indicator-source { margin-top: 18px; font-size: .84rem; }
.indicator-text-button { display: inline-flex; align-items: baseline; gap: .35em; padding: 0; border: 0; color: var(--navy); background: transparent; text-align: left; font: inherit; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 850; white-space: nowrap; cursor: pointer; }
.indicator-text-button span { color: var(--teal); font: inherit; }
.indicator-text-button:hover span { text-decoration: underline; }
.unlisted-indicator { color: var(--muted); font: 750 .75rem/1.3 inherit; white-space: nowrap; }

a { color: #0f6d73; text-underline-offset: 3px; }
.button-link { display: inline-flex; align-items: center; text-decoration: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 34px 0 14px; }
.section-heading span { color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .13em; }
.section-heading h2 { margin: 3px 0 0; font-size: 1.3rem; }

.question-card {
  margin: 24px 0 18px;
  padding: 22px;
  border-left: 5px solid var(--amber);
  border-radius: 0 14px 14px 0;
  background: var(--navy);
  color: #f2f7fb;
  box-shadow: var(--shadow);
}
.question-card > span { display: block; margin-bottom: 10px; color: #f4c35e; font-size: .78rem; font-weight: 850; letter-spacing: .15em; }
.question-card > div { white-space: pre-wrap; }
.qa-document { padding: clamp(22px, 4vw, 50px); border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.qa-document h2 { margin: 2.2rem 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); font-size: 1.65rem; }
.qa-document h3 { margin: 1.8rem 0 .55rem; color: var(--navy-2); }
.qa-document h4 { margin: 1.5rem 0 .5rem; color: var(--teal); }
.qa-document p, .qa-document li { color: #314357; }
.qa-document li + li { margin-top: .35rem; }

.filter-strip {
  position: sticky;
  top: 86px;
  z-index: 9;
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 24px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 22px rgba(11,35,63,.07);
  backdrop-filter: blur(10px);
}
.filter-strip label { display: grid; gap: 4px; color: var(--muted); font-size: .78rem; font-weight: 750; }
select, .password-field input { min-height: 42px; padding: 7px 34px 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; }
.result-count { margin-left: auto; padding-bottom: 9px; color: var(--muted); font-size: .86rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 740px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #eaf3f8; background: var(--navy); font-size: .82rem; letter-spacing: .03em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f7fafc; }
.code { color: var(--navy); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; }
.area-chip, .status-chip { display: inline-flex; width: max-content; padding: 3px 8px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.area-chip { color: #0f6462; background: var(--teal-soft); }
.status-chip { color: #6d4b0b; background: var(--amber-soft); }
.cross-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.cross-sources > span { color: var(--muted); font-size: .72rem; font-weight: 800; }
.cross-sources .source-button { min-height: 28px; padding: 3px 7px; font-size: .7rem; }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 28px 0; }
.timeline-item { position: relative; min-height: 150px; padding: 26px 16px 16px; border-top: 3px solid var(--teal); background: white; }
.timeline-item::before { content: ''; position: absolute; top: -8px; left: 16px; width: 13px; height: 13px; border-radius: 50%; background: var(--teal); }
.timeline-item:first-child { border-radius: 12px 0 0 12px; }
.timeline-item:last-child { border-radius: 0 12px 12px 0; }
.timeline-item time { color: var(--navy); font-weight: 900; }
.timeline-item p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.evidence-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.evidence-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1rem; }
.evidence-card ul { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: .9rem; }
.evidence-card li + li { margin-top: 5px; }

.source-button, .law-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #bed7d5;
  border-radius: 8px;
  color: #0d6461;
  background: #eff9f8;
  font-size: .78rem;
  font-weight: 800;
}
.law-button { border-color: #cad6e0; color: var(--navy); background: #f5f8fb; }
.callout { margin-top: 22px; padding: 22px; border: 1px solid #b9d9d6; border-radius: 14px; background: var(--teal-soft); }
.callout b { color: var(--teal); }
.callout p { margin: 6px 0 14px; }
.callout .law-button + .law-button { margin-left: 8px; }
.warning-callout { border-color: #ecd39d; background: var(--amber-soft); }
.warning-callout b { color: #875a08; }

.risk-list { display: grid; gap: 13px; }
.risk-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(11,35,63,.05); }
.risk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.risk-level { padding: 4px 9px; border-radius: 999px; color: #7e341f; background: #ffebe5; font-size: .76rem; font-weight: 850; }
.risk-card h2 { margin: 10px 0 15px; font-size: 1.12rem; }
.risk-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.risk-card dl > div { padding: 13px; border-radius: 9px; background: #f6f8fa; }
.risk-card dt { color: var(--muted); font-size: .75rem; font-weight: 800; }
.risk-card dd { margin: 4px 0 0; }

.penalty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.penalty-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 8px 24px rgba(11,35,63,.05); }
.penalty-card > span { color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .08em; }
.penalty-card h2 { margin: 7px 0 12px; font-size: 1rem; line-height: 1.55; }
.penalty-card p { margin: 0; color: var(--muted); font-size: .85rem; }

.check-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin: 24px 0 16px; padding: 18px; border-radius: 14px; color: white; background: var(--navy); }
.check-summary span { display: block; color: #bcd1df; font-size: .78rem; }
.check-summary strong { font-size: 1.7rem; }
.progress { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.progress i { display: block; height: 100%; border-radius: inherit; background: #f2bb4f; transition: width .25s ease; }
.switch-row { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.indicator-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.indicator-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.indicator-card.done { border-color: #84c2bd; background: #f3fbfa; }
.indicator-card > label { display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: 11px; cursor: pointer; }
.indicator-card input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--teal); }
.indicator-id { padding: 2px 7px; border-radius: 6px; color: white; background: var(--navy); font-size: .76rem; font-weight: 850; }
.indicator-card label b, .indicator-card label small { display: block; }
.indicator-card label small { color: var(--muted); font-size: .75rem; }
.indicator-card > p { margin: 12px 0; color: #3f5062; }
.indicator-card details { padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.indicator-card summary { color: var(--teal); font-weight: 800; cursor: pointer; }
.indicator-card details ul { padding-left: 1.2rem; }
.action-panel { margin-top: 20px; padding: 24px; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--navy), #174f67); }
.action-panel h2 { margin-top: 0; }
.action-panel li + li { margin-top: 6px; }

.source-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.law-list, .restricted-list { display: grid; gap: 9px; }
.law-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.law-list h3 { margin: 0; font-size: .98rem; }
.law-list p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.law-list button { flex: 0 0 auto; }
.restricted-source { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; text-align: left; }
.restricted-source:hover { border-color: #9bb0c1; }
.restricted-source b, .restricted-source small { display: block; }
.restricted-source small { color: var(--muted); }
.restricted-source i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #6d4b0b; background: var(--amber-soft); font-style: normal; font-size: .75rem; font-weight: 850; }
.policy-note { margin-top: 20px; padding: 18px; border-left: 4px solid #8798a8; background: white; }
.policy-note p { margin: 5px 0 0; color: var(--muted); }

.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.search-results button { padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; text-align: left; }
.search-results button:hover { border-color: var(--teal); transform: translateY(-1px); }
.search-results span { color: var(--teal); font-size: .75rem; font-weight: 850; }
.search-results h2 { margin: 5px 0; font-size: 1rem; }
.search-results p { margin: 0; color: var(--muted); font-size: .86rem; }
.empty-state { grid-column: 1 / -1; padding: 40px; border: 1px dashed #a9b6c1; border-radius: 12px; color: var(--muted); text-align: center; }

.password-field { display: grid; gap: 5px; margin: 16px 0 4px; color: var(--ink); font-size: .82rem; font-weight: 800; }
.form-error { min-height: 1.4em; color: #a93c28 !important; font-size: .85rem; }
.source-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.source-meta span { padding: 4px 8px; border-radius: 999px; color: var(--navy); background: #eaf0f5; font-size: .78rem; font-weight: 800; }
.excerpt-label { margin: 18px 0 5px !important; color: var(--teal) !important; font-size: .78rem; font-weight: 850; }
blockquote { margin: 0; padding: 16px; border-left: 4px solid var(--teal); background: var(--teal-soft); }
.source-warning { margin-top: 14px; color: #76510c; font-size: .8rem; }
.private-mode .version-badge { color: #17314a; border-color: #f4c35e; background: #f4c35e; font-weight: 850; }
.private-mode.sources-unlocked .restricted-source i { color: #0f6462; background: var(--teal-soft); }

.role-intro { margin: 24px 0; padding: 26px; border-radius: 16px; color: #eff7fa; background: linear-gradient(135deg, var(--navy), #1d5267); box-shadow: var(--shadow); }
.role-intro.school-intro { color: #17314a; background: linear-gradient(135deg, #fff4d9, #fde8af); }
.role-intro > span { color: #acd5d2; font-size: .77rem; font-weight: 900; letter-spacing: .14em; }
.role-intro.school-intro > span { color: #875a08; }
.role-intro h2 { margin: 6px 0 8px; font-size: 1.45rem; }
.role-intro p { max-width: 780px; margin: 0; opacity: .92; }
.shared-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shared-topic-card { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(11,35,63,.05); }
.shared-chip { display: inline-flex; padding: 3px 8px; border-radius: 999px; color: #0f6462; background: var(--teal-soft); font-size: .72rem; font-weight: 900; }
.shared-topic-card h2 { margin: 10px 0 7px; color: var(--navy); font-size: 1.12rem; }
.topic-rule { min-height: 3.2em; margin: 0 0 14px; color: #425468; }
.role-lenses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-lenses > div { padding: 13px; border-radius: 10px; background: #f5f8fa; }
.role-lenses > div:last-child { background: #fff7e5; }
.role-lenses b { color: var(--teal); font-size: .8rem; }
.role-lenses > div:last-child b { color: #875a08; }
.role-lenses p { margin: 5px 0 0; color: #425468; font-size: .88rem; }
.topic-actions, .workflow-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.navigate-button { min-height: 34px; padding: 5px 10px; color: var(--navy); font-size: .78rem; }
.workflow-panel { margin-top: 22px; padding: 25px; border-radius: 15px; color: white; background: linear-gradient(135deg, #0c4355, #116f6c); }
.workflow-panel.school-workflow { color: #17314a; background: linear-gradient(135deg, #fff0c7, #f6d477); }
.workflow-panel h2 { margin-top: 0; font-size: 1.25rem; }
.workflow-panel li + li { margin-top: 8px; }
.workflow-panel .secondary-button { border-color: rgba(255,255,255,.36); color: inherit; background: rgba(255,255,255,.13); }
.school-workflow .secondary-button { border-color: #c5901e; background: rgba(255,255,255,.55); }

.usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.usage-grid article { min-height: 160px; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(11,35,63,.05); }
.usage-grid span { color: var(--teal); font-size: .76rem; font-weight: 900; letter-spacing: .08em; }
.usage-grid p { margin: 8px 0 0; color: #3e5063; }
.usage-grid .law-button { margin-top: 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.welcome-dialog h2 { max-width: 430px; }
.welcome-dialog p { color: #4d6073; }

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: block; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-group { display: block; overflow: visible; padding-bottom: 4px; }
  .nav-group + .nav-group { margin-top: 10px; padding-top: 10px; }
  .nav-group-label { margin: 0 0 7px; padding: 0 7px; font-size: .78rem; }
  .nav-group-body { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 4px; }
  .nav-item { width: auto; min-width: max-content; margin: 0; }
  .nav-group-end .nav-item { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; }
  .timeline-item { min-height: auto; border-top: 0; border-left: 3px solid var(--teal); border-radius: 0 !important; }
  .timeline-item::before { top: 21px; left: -8px; }
  .evidence-grid, .penalty-grid, .shared-topic-grid, .usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-columns { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .brand small { display: none; }
  .workspace { padding: 20px 16px 50px; }
  .metric-grid, .content-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 125px; }
  h1 { font-size: 2rem; }
  .filter-strip { top: 8px; align-items: stretch; flex-direction: column; }
  .result-count { margin-left: 0; padding: 0; }
  .evidence-grid, .penalty-grid, .indicator-list, .search-results, .shared-topic-grid, .usage-grid { grid-template-columns: 1fr; }
  .risk-card dl { grid-template-columns: 1fr; }
  .role-lenses { grid-template-columns: 1fr; }
  .check-summary { grid-template-columns: 1fr; }
  .law-list article { align-items: stretch; flex-direction: column; }
}
