:root {
  color-scheme: light;
  font: 14px/1.45 Inter, system-ui, sans-serif;
  --bg: #f5f6f8; --paper: #fff; --ink: #172322; --muted: #6f7c78;
  --line: #e2e8e5; --green: #16745c; --soft: #e9f4ef;
  --amber: #9b6810; --red: #a33d2b;
  background: var(--bg); color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 3px solid #4fa99280; outline-offset: 2px; }
.shell { min-height: 100vh; padding: 1rem; }
.app-shell { margin-left: 214px; padding: 26px 30px; max-width: 1700px; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; width: 214px; padding: 26px 18px; display: flex; flex-direction: column; background: var(--paper); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 5px 32px; font-size: 16px; font-weight: 750; text-decoration: none; }
.brand-icon { display: flex; align-items: end; justify-content: center; gap: 3px; width: 32px; height: 32px; padding: 8px; border-radius: 9px; background: var(--green); }
.brand-icon i { width: 4px; border-radius: 1px; background: white; }
.brand-icon i:nth-child(1) { height: 7px; }.brand-icon i:nth-child(2) { height: 12px; }.brand-icon i:nth-child(3) { height: 17px; }
.page-nav { display: grid; gap: 5px; }
.page-nav a { padding: 11px 12px; border-radius: 7px; color: var(--muted); font-weight: 650; text-decoration: none; }
.page-nav a:hover { background: #f1f6f3; }
.page-nav a[aria-current="page"] { color: var(--green); background: var(--soft); }
.side-bottom { margin-top: auto; display: grid; gap: 10px; color: var(--muted); font-size: 11px; }
.side-bottom form { margin-top: 5px; }.owner { color: var(--ink); font-weight: 650; }
.hero { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.hero h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.15; letter-spacing: -.8px; }
.hero p { margin: 0; color: var(--muted); }
.eyebrow { margin-bottom: 8px !important; color: var(--green) !important; font-size: 10px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.filters label, .note-form > label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.filters select, .filters input, .note-form select, .note-form textarea, .exclusions textarea { min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); }
.filters .search { flex: 1; min-width: 220px; }
.filters .check, .note-form .check { display: flex; align-items: center; gap: 7px; min-height: 38px; color: var(--ink); font-size: 11px; }
.check input { width: auto; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: #f1f6f3; }.btn.primary { border-color: var(--green); background: var(--green); color: white; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis article { padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.kpis span, .kpis small { display: block; color: var(--muted); font-size: 11px; }
.kpis strong { display: block; margin: 4px 0; font-size: 28px; }.kpis progress { width: 100%; accent-color: var(--green); }
.panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.section-title h2 { margin: 0; font-size: 14px; }.section-title span { color: var(--muted); font-size: 11px; }
summary.section-title { cursor: pointer; list-style: none; }
summary.section-title::-webkit-details-marker { display: none; }
summary.section-title::before { content: '▸'; color: var(--green); }
details[open] > summary.section-title::before { content: '▾'; }
summary.section-title h2 { flex: 1; }
details:not([open]) > summary.section-title { border-bottom: 0; }
summary.section-title:focus-visible, .route-tab:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.coverage-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.coverage-list li { display: grid; grid-template-columns: minmax(120px, 1fr) auto 1fr 1fr; gap: 10px; padding: 11px 17px; border-bottom: 1px solid var(--line); font-size: 11px; }.coverage-list li:last-child { border: 0; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.status-success { color: var(--green); background: var(--soft); }.status-error { color: var(--red); background: #fcece8; }.status-skipped, .status-not_recorded { color: var(--amber); background: #fff4dd; }
.table-wrap { overflow: auto; } table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 11px; }
th { padding: 10px 12px; background: #fafbf9; color: var(--muted); text-align: left; font-weight: 650; } td { padding: 11px 12px; border-top: 1px solid #eef1ef; vertical-align: top; }
td strong, td small { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; } td small { margin-top: 3px; color: var(--muted); }.num { font-variant-numeric: tabular-nums; }
.external { display: inline-block; margin-top: 5px; color: var(--green); font-size: 10px; }.mono { font-family: ui-monospace, monospace; }
.row-open { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--green); cursor: pointer; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 13px 17px; color: var(--muted); font-size: 11px; }
.empty-state { max-width: 720px; margin: 70px auto; padding: 35px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: center; }.empty-state.compact { margin: 0; border: 0; }.empty-state h2 { margin-top: 0; }.empty-state p, .muted { color: var(--muted); }
.route-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }.route-tabs strong { display: block; color: var(--ink); font-size: 20px; }
.route-option { position: relative; }
.route-tab { display: block; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); text-align: center; font-size: 10px; text-decoration: none; }
.route-tab:hover, .route-tab[aria-current] { border-color: var(--green); background: var(--soft); color: var(--green); }
.tooltip { display: none; position: absolute; z-index: 5; top: 100%; left: 0; width: min(280px, calc(100vw - 48px)); padding: 12px; border-radius: 8px; background: var(--ink); color: white; font-size: 12px; box-shadow: 0 4px 16px #0003; }
.route-option:last-child .tooltip { left: auto; right: 0; }
.route-option:hover .tooltip, .route-option:focus-within .tooltip { display: block; }
.app-description p { white-space: pre-wrap; }
.notice { padding: 10px 13px; border: 1px solid #ead9b1; border-radius: 8px; background: #fff9e9; color: #735820; font-size: 11px; }
.candidate-list { display: grid; gap: 14px; }.candidate-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }.candidate-card > header { display: flex; justify-content: space-between; gap: 16px; }.candidate-card h2 { display: inline; margin: 0 0 0 8px; font-size: 18px; }.candidate-card header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.rank { color: var(--green); font-weight: 750; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 15px 0; }.evidence-grid section { padding: 12px; border-radius: 8px; background: #f8faf9; }.evidence-grid h3 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }.evidence-grid ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 11px; }
.history { margin: 15px 0; }.history h3 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }.history ol { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; overflow: auto; }.history li { display: grid; gap: 4px; padding: 8px; border-radius: 7px; background: #f8faf9; }.history time, .history small { color: var(--muted); font-size: 9px; }
.note-form { display: grid; grid-template-columns: auto 150px minmax(220px, 1fr) auto auto; align-items: end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }.note-form .idea textarea { min-height: 64px; resize: vertical; }.note-form fieldset { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; }.note-form legend { color: var(--muted); font-size: 9px; }.save-status { color: var(--muted); font-size: 10px; }.save-status.error { color: var(--red); }
.exclusions { padding: 17px; }.exclusions h2 { margin-top: 0; font-size: 15px; }.exclusions p { color: var(--muted); font-size: 11px; }.exclusions form { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: end; gap: 10px; }.exclusions textarea { resize: vertical; }
dialog { position: fixed; inset: 0 0 0 auto; width: min(510px, 94vw); height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: white; color: var(--ink); box-shadow: -10px 0 70px #17232220; } dialog::backdrop { background: #13231c42; }.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }.drawer-head h2 { margin: 0; font-size: 18px; }.drawer-head button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: white; }.drawer-body { padding: 20px; overflow-wrap: anywhere; }.drawer-body dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.drawer-body dt { color: var(--muted); font-size: 10px; }.drawer-body dd { margin: 2px 0 0; }.artifact-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.login-card { width: min(24rem, 100%); margin: 12vh auto; padding: 2rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 .5rem 2rem #0002; }.login-card label { display: grid; gap: 5px; margin: 1rem 0; }.login-card input { width: 100%; padding: .7rem; border: 1px solid var(--line); border-radius: 7px; }.login-card button { width: 100%; }.error { color: var(--red); }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, 1fr); }.evidence-grid { grid-template-columns: 1fr; }.note-form { grid-template-columns: 1fr 1fr; }.note-form .idea, .note-form fieldset { grid-column: 1 / -1; } }
@media (max-width: 760px) { .sidebar { position: static; width: 100%; padding: 13px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { margin: 0; }.page-nav { grid-template-columns: 1fr 1fr; margin-top: 10px; }.side-bottom { grid-template-columns: 1fr auto; align-items: center; margin-top: 10px; }.side-bottom > span:not(.owner) { display: none; }.side-bottom form { margin: 0; }.app-shell { margin-left: 0; padding: 18px 13px; }.filters { align-items: stretch; }.filters > label { flex: 1 1 140px; }.filters .check { flex-basis: 100%; }.kpis { grid-template-columns: 1fr 1fr; }.coverage-list li { grid-template-columns: 1fr auto; }.route-tabs { grid-template-columns: repeat(2, 1fr); }.note-form, .exclusions form { grid-template-columns: 1fr; }.note-form .idea, .note-form fieldset { grid-column: auto; } }
