[hidden] { display: none !important; }
:root {
  --bg: #f5f6f4;
  --panel: #ffffff;
  --ink: #1b1f1d;
  --muted: #5d6662;
  --line: #d9ddd9;
  --brand: #1f4d3a;
  --go: #1d7a46;
  --go-bg: #e3f3e9;
  --caution: #9a6100;
  --caution-bg: #fdf1dc;
  --nogo: #b42318;
  --nogo-bg: #fde7e5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131615; --panel: #1c201e; --ink: #e9ecea; --muted: #9aa39f; --line: #2f3532; --brand: #7cc4a0;
    --go: #6fd39a; --go-bg: #173323; --caution: #f0b553; --caution-bg: #3a2b10; --nogo: #ff8a80; --nogo-bg: #3d1714;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--brand); color: #fff; padding: 20px 0 16px; margin-bottom: 24px; }
@media (prefers-color-scheme: dark) { .top { color: #0d1411; } a { color: var(--brand); } a:visited { color: #a9d9c0; } }
.top h1 { margin: 0; font-size: 1.5rem; }
.tag { margin: 2px 0 0; opacity: .85; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 10px 0 4px; }
.row { display: flex; gap: 8px; }
.row.two > * { flex: 1; }
input, select, textarea { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
button { font: inherit; font-weight: 600; padding: 9px 18px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; margin-top: 10px; }
.row button { margin-top: 0; }
@media (prefers-color-scheme: dark) { button { color: #0d1411; } }
details { margin-top: 10px; }
summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
details .row { margin-top: 8px; }
.status { color: var(--muted); min-height: 1.5em; }
.muted { color: var(--muted); }
.small { font-size: .8rem; padding-bottom: 24px; }
.matches { list-style: none; padding: 0; margin: 0 0 16px; }
.matches button { width: 100%; text-align: left; background: var(--panel); color: var(--ink); border: 1px solid var(--line); margin: 0 0 6px; font-weight: 400; }
.verdict { border-radius: 10px; padding: 16px; margin-bottom: 16px; border: 2px solid; }
.verdict.go { background: var(--go-bg); border-color: var(--go); }
.verdict.caution { background: var(--caution-bg); border-color: var(--caution); }
.verdict.no_go { background: var(--nogo-bg); border-color: var(--nogo); }
.verdict-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.verdict h2 { margin: 0; font-size: 1.3rem; }
.badge { font-weight: 700; font-size: 1.1rem; }
.go .badge { color: var(--go); } .caution .badge { color: var(--caution); } .no_go .badge { color: var(--nogo); }
.reasons { margin: 12px 0 0; padding-left: 0; list-style: none; }
.reasons li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.pts { min-width: 3em; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin: 0; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.panel h2 { margin-top: 0; }
.report-list { list-style: none; padding: 0; margin: 0; }
.report-list li { border-top: 1px solid var(--line); padding: 8px 0; }
.report-type { font-weight: 600; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top a { color: inherit; text-decoration: none; }
.account-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-nav button, .account-nav a { margin: 0; padding: 7px 14px; background: rgba(255, 255, 255, .16); color: inherit; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.account-nav .who { font-size: .9rem; opacity: .85; }
button.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.account-nav button.ghost { color: inherit; border-color: rgba(255, 255, 255, .35); }
button.link { background: none; border: 0; padding: 0; margin: 0; color: var(--brand); text-decoration: underline; font-weight: 600; }
button.danger { background: var(--nogo); }
h3 { margin: 16px 0 4px; font-size: 1rem; }
.pill { font-size: .8rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.pill.pending { background: var(--caution-bg); color: var(--caution); }
.pill.approved { background: var(--go-bg); color: var(--go); }
.pill.rejected { background: var(--nogo-bg); color: var(--nogo); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tabs button { margin: 0; background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .tabs button[aria-pressed="true"] { color: #0d1411; } }
.queue { list-style: none; padding: 0; margin: 0; }
.queue p { margin: 6px 0; }
.small-text { font-size: .85rem; }
.moderate .row { margin-top: 8px; }
.moderate button { margin-top: 0; }
.count { display: inline-block; min-width: 1.4em; padding: 0 5px; border-radius: 999px; background: var(--nogo); color: #fff; font-size: .75rem; text-align: center; }
.pill.go { background: var(--go-bg); color: var(--go); }
.pill.caution { background: var(--caution-bg); color: var(--caution); }
.pill.no_go { background: var(--nogo-bg); color: var(--nogo); }
.watch-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-list li.unread { border-left: 3px solid var(--nogo); padding-left: 8px; }
.verdict-actions { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.watch-btn { background: var(--panel); }
.broker-reply { margin: 8px 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--bg); border-radius: 0 8px 8px 0; }
.reply-form { margin-top: 8px; }
.reply-form button { margin-top: 6px; }
.warning { background: var(--caution-bg); color: var(--ink); border-left: 4px solid var(--caution); border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 0 0 10px; }
.lane h2 { font-size: 1.15rem; margin-bottom: 4px; }
.lane-compare { margin: 8px 0 12px; padding: 8px 12px; border-radius: 8px; border-left: 4px solid var(--line); }
.lane-compare.below { background: var(--caution-bg); border-color: var(--caution); }
.lane-compare.within { background: var(--bg); }
.lane-compare.above { background: var(--go-bg); border-color: var(--go); }
.lane .facts dd + dd { font-weight: normal; }
.lane-lookup summary { font-weight: 600; color: var(--brand); }
.lane-lookup form { margin-top: 4px; }
#result .verdict button.ghost { margin-top: 10px; background: var(--panel); }
#result .verdict-actions .ghost-link { margin-top: 10px; font-weight: 600; }
.load-actions { align-items: center; margin-top: 10px; }
.load-actions button { margin-top: 0; }
.file-button { display: inline-block; margin: 0; padding: 9px 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); cursor: pointer; font-weight: 600; font-size: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#user-search { margin-bottom: 12px; }
#user-search input { flex: 1; }
label.inline { display: flex; align-items: center; gap: 6px; font-weight: normal; }
label.inline input { width: auto; margin: 0; }
.suspend .row { margin-top: 8px; }
.load-row { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.load-row > div { min-width: 0; }
.load-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.add-load { margin-top: 8px; }
.add-load summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.settings { margin-top: 16px; }
.settings summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.how h2 { font-size: 1.05rem; }
.how ol { margin: 0 0 12px; padding-left: 20px; }
.how li { margin-bottom: 8px; }
.legend { display: grid; gap: 6px; margin: 0; }
.legend div { display: flex; gap: 10px; align-items: baseline; }
.legend dt { flex: 0 0 72px; font-weight: 700; text-align: center; border-radius: 6px; padding: 2px 0; }
.legend dt.go { background: var(--go-bg); color: var(--go); }
.legend dt.caution { background: var(--caution-bg); color: var(--caution); }
.legend dt.no_go { background: var(--nogo-bg); color: var(--nogo); }
.legend dd { margin: 0; }
textarea.dropping { outline: 2px dashed var(--go); outline-offset: 2px; }
.load-preview { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.load-preview img { max-height: 72px; max-width: 120px; border: 1px solid var(--line); border-radius: 6px; }
.install-tip { margin: 14px 0 0; font-size: .9rem; }

/* Keyboard users always see where they are */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.top :focus-visible { outline-color: #fff; }
.sr-only:focus-visible + .file-button { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--panel); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }

/* Help and policy pages */
.prose { line-height: 1.55; padding-bottom: 24px; }
.prose h1 { font-size: 1.5rem; margin: 0 0 6px; }
.prose h2 { font-size: 1.15rem; margin: 24px 0 6px; }
.prose li { margin-bottom: 6px; }
.site-links a { color: inherit; display: inline-block; padding: 10px 2px; }
.site-links { padding-bottom: 16px; }

/* Phone: everything tappable is at least about 44px tall (Apple's and Google's minimum), and the
   moderator tabs wrap instead of widening the page. */
@media (pointer: coarse), (max-width: 640px) {
  button, .file-button, .account-nav a { min-height: 44px; }
  summary { padding: 11px 0; }
  button.link { min-height: 0; padding: 10px 0; }
  a[href^="tel:"] { display: inline-block; padding: 12px 0; }
  input[type="checkbox"], label.inline input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
  .tabs button { padding: 9px 12px; }
}
/* Moderator stats */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.stat strong { font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: 0.9rem; }
.table-scroll { overflow-x: auto; }
.stats-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.stats-table th, .stats-table td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.stats-table th[scope="row"], .stats-table thead th:first-child { text-align: left; }
.stats-table thead th { white-space: normal; vertical-align: bottom; font-weight: 600; }
.stats-table .total { font-weight: 700; }
/* /status page */
.state-pill { display: inline-block; font-weight: 700; font-size: .85rem; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.state-pill.go { color: var(--go); background: var(--go-bg); }
.state-pill.caution { color: var(--caution); background: var(--caution-bg); }
.state-pill.no_go { color: var(--nogo); background: var(--nogo-bg); }
