/* Additions to the design system for the live app (forms, links styled as controls, skeleton rows). */
.week .wk-btn { width: 34px; display: grid; place-items: center; color: var(--ink-2); text-decoration: none; }
.week .wk-btn:hover { background: var(--surface-3); }
.initials { text-decoration: none; }
.rowlink { color: inherit; text-decoration: none; }
.note-link { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.note-link:hover .mark { text-decoration: underline; }
.ledger td .sub { white-space: nowrap; }
a.btn { text-decoration: none; }
a.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.rowlink:focus-visible { box-shadow: var(--focus); border-radius: 2px; }
.initials:hover { background: #4a4f55; }
.sk-row { display: flex; gap: 24px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.sk-row:last-child { border-bottom: 0; }
.banner.info { background: var(--info-tint); border-color: var(--accent); }
.banner.info > .icon { color: var(--accent); }
.form { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.form label { color: var(--ink-2); }
.form .full { grid-column: 1 / -1; }
.input, select.input { height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); min-width: 220px; }
.input:focus-visible { box-shadow: var(--focus); }
.check { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); }
.log { margin: 0; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font: 12px/1.5 var(--mono); white-space: pre-wrap; max-height: 260px; overflow: auto; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
/* Narrow windows: keep the app bar on one line and let wide tables scroll inside their panel. */
@media (max-width: 1000px) {
  .appbar { gap: 8px; padding: 0 12px; }
  .appbar .lbl, .wordmark .co, .appbar .sys .sys-text { display: none; }
  .appbar .sys .sys-short { display: inline; }
  .tabs a { padding: 0 10px; }
  .page { padding: 16px 12px 32px; }
  .scroll, .split > .sheet { overflow-x: auto; }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .subnav { flex-direction: row; flex-wrap: wrap; border-left: 0; border-bottom: 1px solid var(--line); }
  .settings .subnav .subnav-out { margin: 0 0 0 auto; padding-top: 7px; border-top: 0; }
  .kv, .form { grid-template-columns: minmax(0, 1fr); }
}
/* Phone width: the tabs scroll sideways inside the bar (not the page), the wordmark keeps only the logo. */
@media (max-width: 600px) {
  .appbar { gap: 4px; padding: 0 8px; }
  .wordmark .name, .appbar .initials { display: none; }
  .tabs { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding: 0 8px; white-space: nowrap; }
  .appbar .right { gap: 2px; }
}
.changed-note { padding: 8px 16px; font-size: var(--fs-13); background: var(--warn-tint); color: var(--ink); border-bottom: 1px solid var(--line); }
/* Date ranges, the audit runner and multi-week ledgers. */
.menu a { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.menu a:hover, .menu a:focus-visible { background: var(--surface-3); }
.menu a[aria-current="true"] { font-weight: 600; }
.range-menu { min-width: 300px; }
.range-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 4px 10px 10px; }
.range-form label { font-size: var(--fs-13); color: var(--ink-2); }
.range-form .input { min-width: 0; width: 100%; }
.range-form .btn { justify-self: start; }
.runbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 16px; }
.runbar .fld { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.runbar .full { flex-basis: 100%; }
.ledger tbody tr.wk-sep { cursor: default; }
.ledger tbody tr.wk-sep td { height: 28px; background: var(--surface-2) !important; color: var(--ink-2); font-size: var(--fs-12); font-weight: 600; letter-spacing: .02em; box-shadow: none !important; }
.ledger tbody tr.wk-sep td span { float: right; font: 400 var(--fs-12) var(--mono); color: var(--muted); }
.split > .audit-days { display: flex; flex-direction: column; }
.split > .audit-days > .scroll { flex: 1; min-height: 0; }
details.setup { font-size: var(--fs-13); }
details.setup ul { margin: 6px 0 0; padding-left: 28px; columns: 2; }
.ledger-strip .m .v.sans { font: 500 var(--fs-14)/1.6 var(--font); }
/* Decision history and a save error that stays until the next save. */
ol.history { list-style: none; margin: 8px 0 0; padding: 0; font-size: var(--fs-13); }
ol.history li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 2px 12px; padding: 6px 0; border-top: 1px solid var(--line); align-items: center; }
ol.history .note { grid-column: 2 / -1; color: var(--ink-2); }
ol.history .reason { color: var(--ink); font-weight: 500; }
/* The decision bar's reason, and days ticked on the ledger for one decision (the batch bar, under the ledger). */
.decide select.input[data-reason] { flex: 0 1 300px; min-width: 0; height: 32px; }
.ledger th.pick, .ledger td.pick { width: 28px; min-width: 28px; padding-right: 0; }
.ledger td.pick input { display: block; width: 15px; height: 15px; margin: 0; cursor: pointer; }
.ledger tbody tr.ticked:not([aria-current="true"]) td { background: var(--surface-2); }
.batch-bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px var(--s-3);
  border-top: 1px solid var(--line-strong); background: var(--surface-2); font-size: var(--fs-13); }
.batch-bar .input { min-width: 0; height: 28px; }
.batch-bar select.input { flex: 0 1 auto; max-width: 240px; }
.batch-bar input.input { flex: 1 1 140px; }
.batch-bar .refused { flex-basis: 100%; margin: 0; }
.save-error { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--review); background: var(--review-tint); border-radius: var(--r); font-size: var(--fs-13); }
.save-error .icon { color: var(--review); margin-top: 1px; }
/* Escalations: who to and when it's due (decision bar, batch bar), the follow-up in the day panel, and the Inbox. */
.decide .escalate-row { flex-wrap: wrap; gap: 6px 16px; }
.decide .escalate-row .fld { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--fs-13); }
.decide .escalate-row .fld:first-child { flex: 1 1 260px; }
.decide .escalate-row .input { min-width: 0; height: 32px; }
.decide .escalate-row input[type="text"] { flex: 1; }
.batch-bar input.input[type="date"] { flex: 0 0 auto; }
.followup-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px; font-size: var(--fs-13); background: var(--info-tint); border-bottom: 1px solid var(--line); }
.followup-note > span { flex: 1 1 280px; }
.followup-note.overdue { background: var(--warn-tint); }
.followup-note.done { color: var(--ink-2); background: var(--surface-2); }
.resolve-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex-basis: 100%; }
.resolve-form .input { flex: 1 1 320px; min-width: 0; height: 30px; }
.inbox-sec .sheet-head h2 .n { font: 500 var(--fs-12) var(--mono); color: var(--review); margin-left: 4px; }
.inbox-sec .sheet-head h2 .n.zero { color: var(--muted); }
.inbox-sec .sheet-head .fld { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.inbox-sec .sheet-head select.input { min-width: 200px; height: 30px; }
.inbox-sec .reason { font-weight: 500; }
/* Driver matches. */
.ledger.drivers tbody tr { cursor: default; }
.ledger.drivers tbody tr.off td { color: var(--muted); }
.ledger.drivers tbody tr.editing td { background: var(--accent-tint); height: auto; padding: 12px 16px; }
.driver-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.driver-form .fld { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.driver-form select { min-width: 360px; max-width: 100%; }
/* Drivers › History: a driver's trucks by date, newest first; Edit dates opens a span's dates in place. */
.truck-history { display: block; margin-top: 2px; }
.truck-history ol.spans { list-style: none; margin: 4px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 4px; white-space: normal; }
.truck-history ol.spans li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.span-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.span-form .fld { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.span-form .input { height: 30px; }
.sheet-head { flex-wrap: wrap; } .seg-tabs { flex: none; }
/* ACS logo (white on transparent) with the product name in small capitals under it, so the name doesn't read as a tab.
   The name starts under the logo's lettering, which begins 38% of the way across the image. */
.wordmark { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; margin-right: var(--s-3); }
.wordmark .logo { display: block; height: 24px; width: auto; }
.wordmark .name { font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: #9d9a93; padding-left: 46px; }
@media (max-width: 1000px) { .wordmark { gap: 3px; margin-right: 0; } .wordmark .logo { height: 18px; } .wordmark .name { font-size: 9px; padding-left: 34px; } }
/* Findings: address mismatches; Rules: plain lists. */
table.mismatches td { vertical-align: top; }
table.mismatches td.when { white-space: nowrap; }
ul.plain { margin: 0 0 6px; padding-left: 18px; }
/* Feedback: the count of New notes on the Settings button; the dialog; Settings › Feedback's list. */
.barbtn.gear { position: relative; }
.bar-badge:empty { display: none; }
.bar-badge .bar-n { position: absolute; top: 1px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e8b55a;
  color: #1c1e20; font: 600 10px/16px var(--mono); text-align: center; }
.fb-modal { width: min(560px, calc(100vw - 24px)); }
.fb-kinds { align-self: flex-start; flex-wrap: wrap; }
.fb-where { margin-top: -6px; overflow-wrap: anywhere; }
.fb-context { overflow-wrap: anywhere; }
.dp-feedback { padding-top: 0; }
.fb-modal textarea { width: 100%; min-height: 128px; height: auto; resize: vertical; }
.fb-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.fb-item { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fb-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-review { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fb-review input[name="note"] { flex: 1 1 240px; min-width: 0; }
.fb-review select.input { flex: 0 0 auto; width: auto; min-width: 0; }
/* Export dialog. */
html.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(20, 22, 24, .45); }
.modal { position: fixed; z-index: 61; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-2); box-shadow: 0 12px 40px rgba(0, 0, 0, .3); display: flex; }
.modal form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { display: flex; align-items: center; gap: 8px; }
.modal-head button { margin-left: auto; }
.modal-body { overflow: auto; padding: 4px 16px 12px; flex: 1; min-height: 0; }
.modal-foot { border-top: 1px solid var(--line); padding: 10px 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.step { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.step:last-child { border-bottom: 0; }
.step h3 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14); }
.step .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); font: 600 var(--fs-12) var(--mono); }
.step .fld { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.step .fld .input { min-width: 0; }
/* The Export dialog's list of technicians to pick from (a div); not the week grid's tick-box cells (td.pick). */
div.pick { display: flex; flex-direction: column; gap: 8px; }
.picklist { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; }
.picklist .check { padding: 3px 0; color: var(--ink); }
.picklist .mark { font-size: var(--fs-11); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; }
.card-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.opt input, .card-opt input { margin-top: 3px; }
.opt .hint, .card-opt .hint { display: block; font-size: var(--fs-12); color: var(--ink-2); }
.opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.warn-text { color: var(--warn); font-weight: 500; }
@media (max-width: 700px) { .cards, .opts { grid-template-columns: 1fr; } }
/* Settings › Rules: the rule list wraps its sentences; the rule form; matching settings. */
.ledger.rules tbody tr { cursor: default; }
.ledger.rules td { white-space: normal; height: auto; padding-top: 10px; padding-bottom: 10px; vertical-align: top; }
.ledger.rules td.rule-cell .sub { white-space: normal; max-width: 70ch; }
.ledger.rules tbody tr.off td { color: var(--muted); }
.ledger.rules tbody tr.editing td { background: var(--accent-tint); padding: 14px 16px; }
.rule-form h3 { font-size: var(--fs-14); margin: 0 0 10px; }
.rule-form .form { grid-template-columns: 120px minmax(0, 1fr); }
.rule-form .lbl { color: var(--ink-2); }
.inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.input.num { min-width: 0; width: 96px; }
.input.wide { min-width: 0; width: min(440px, 100%); }
.rule-form .input:not(.num):not(.wide) { min-width: 0; }
.rule-form .checks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rule-form [hidden] { display: none !important; }
.rule-preview { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); font-weight: 500; }
.btn.danger { color: var(--review); }
.settings-form { grid-template-columns: 200px minmax(0, 1fr); }
.settings-form .setting { display: flex; flex-direction: column; gap: 4px; }
.rules-note { margin: 0; }
ol.rule-history li { grid-template-columns: 130px minmax(0, 1fr) auto; }
@media (max-width: 1000px) { .rule-form .form, .settings-form { grid-template-columns: minmax(0, 1fr); } ol.rule-history li { grid-template-columns: minmax(0, 1fr); } }
.rule-form .input:disabled, .rule-form input:disabled + * { opacity: .6; cursor: not-allowed; }
/* Settings › Rules: how the rules are doing (a table that wraps its sentences), and a rule change's preview. */
.ledger.precision tbody tr, .ledger.precision tfoot tr { cursor: default; }
.ledger.precision td { white-space: normal; height: auto; padding-top: 8px; padding-bottom: 8px; vertical-align: top; }
.ledger.precision td .sub { white-space: normal; max-width: 70ch; }
.ledger.precision tbody tr.off td { color: var(--muted); }
.ledger.precision tfoot td { border-top: 1px solid var(--line-strong); }
.precision-note { margin: 0; padding: 8px var(--s-4); background: var(--surface-2); border-bottom: 1px solid var(--line); }
/* Settings › Sites: the lists wrap their places and reasons; the site form under a row. */
.sites-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.sites-bar p { margin: 0; flex: 1 1 420px; }
.sites-bar .tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.sites-bar .tools > span { white-space: nowrap; }
.sites-note { margin: 0; padding: 8px var(--s-4); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ledger.sites tbody tr { cursor: default; }
.ledger.sites td { white-space: normal; height: auto; padding-top: 8px; padding-bottom: 8px; vertical-align: top; }
.ledger.sites td .sub { white-space: normal; max-width: 60ch; }
.ledger.sites td .row-actions { justify-content: flex-end; flex-wrap: nowrap; }
.ledger.sites tbody tr.editing td { background: var(--accent-tint); padding: 14px 16px; }
.site-form h3 { font-size: var(--fs-14); margin: 0 0 10px; }
.site-form .form { grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
.site-form .lbl { color: var(--ink-2); }
.site-choices { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1000px) { .site-form .form { grid-template-columns: minmax(0, 1fr); } }
/* Settings › Fleetio: the same compact lists as Sites; Link… opens a form row under its row. */
.ledger.fleetio tbody tr { cursor: default; }
.ledger.fleetio td { white-space: normal; height: auto; padding-top: 8px; padding-bottom: 8px; vertical-align: top; }
.ledger.fleetio td .sub { white-space: normal; max-width: 60ch; }
.ledger.fleetio td .tag { margin-left: 6px; vertical-align: 1px; }
.ledger.fleetio td select.input { width: auto; min-width: 160px; }
.ledger.fleetio tbody tr.editing td { background: var(--accent-tint); padding: 10px 16px; }
.ledger.fleetio tr.editing select.input { width: min(420px, 100%); }
.fleetio-last { margin: 0; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 2px; border: 1px solid var(--line-strong); vertical-align: 0; }
.whatif { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.whatif.bad { border-color: var(--review); background: var(--review-tint); }
.whatif p { margin: 0 0 6px; }
.whatif .whatif-list li { margin: 2px 0; }
.whatif-stale { color: var(--warn); font-weight: 500; }
.whatif details { margin: 6px 0; }
.whatif summary { cursor: pointer; font-weight: 500; }
.whatif-days { list-style: none; margin: 6px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.whatif-days li { padding: 6px 0; border-top: 1px solid var(--line); }
.whatif-days .why { display: block; font-size: var(--fs-12); color: var(--ink-2); }
/* Phones: each rule is a stacked block, so the rule form isn't cut off inside a scrolling table. */
@media (max-width: 700px) {
  .ledger.rules thead { display: none; }
  .ledger.rules, .ledger.rules tbody, .ledger.rules tr, .ledger.rules td { display: block; width: auto; }
  .ledger.rules tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .ledger.rules td { border-bottom: 0; padding: 4px 12px; }
  .ledger.rules td:first-child { float: left; padding-right: 0; }
  .ledger.rules td.r { text-align: left; }
  .rule-form .input.wide { width: 100%; }
}
/* Findings: overview tiles, filter bar, sections with ranked tables. */
.f-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f-tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-right: 1px solid var(--line); min-width: 0; }
.f-tile:last-child { border-right: 0; }
.f-tile:hover { background: var(--surface-2); }
.f-tile:focus-visible { box-shadow: var(--focus-inset); }
.f-tile[aria-pressed="true"] { background: var(--accent-tint); box-shadow: inset 0 -3px 0 var(--accent); }
.f-tile[aria-pressed="true"]:focus-visible { box-shadow: inset 0 -3px 0 var(--accent), var(--focus-inset); }
.f-tile .k { font-size: var(--fs-12); color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.f-tile .v { font-size: var(--fs-13); color: var(--ink-2); }
.f-tile .v b { font-size: var(--fs-24, 24px); font-weight: 600; color: var(--muted); margin-right: 2px; }
.f-tile.has .v b { color: var(--review); }
.f-tile .sub { font-size: var(--fs-12); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.f-sec .sheet-head h2 { margin-right: 4px; }
.f-sec .sheet-head.sub { border-top: 1px solid var(--line); min-height: 0; padding: 8px 16px; }
.f-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 16px 8px; border-top: 1px solid var(--line); font-size: var(--fs-14); }
.f-sec > .sheet-head + .f-sub { border-top: 0; }
.f-sub .n { font: 500 var(--fs-12) var(--mono); color: var(--review); }
.f-sub .hint { font-weight: 400; font-size: var(--fs-12); color: var(--ink-2); }
.f-table td.wrap { white-space: normal; min-width: 160px; max-width: 360px; }
.f-table td { padding-top: 6px; padding-bottom: 6px; height: auto; }
.f-table.static tbody tr { cursor: default; }
.f-table a.open { white-space: nowrap; font-size: var(--fs-13); text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.f-table a.open:hover { text-decoration: underline; }
.f-table .swap { color: var(--muted); margin: 0 4px; }
.chips { white-space: normal !important; }
.chip { display: inline-flex; gap: 4px; align-items: center; margin: 2px 6px 2px 0; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 var(--fs-12) var(--mono); color: var(--ink); text-decoration: none; background: var(--surface); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.f-empty { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; color: var(--ink-2); font-size: var(--fs-13); }
.f-empty .icon { color: var(--ok); }
.f-mix { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.mixbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-3); }
.mixbar i { display: block; height: 100%; box-sizing: border-box; }
/* a hairline of the card colour between segments keeps their edges crisp */
.mixbar i + i { border-left: 2px solid var(--surface); }
.mixbar i.ok, .f-mix .legend i.ok { background: var(--chart-ok); }
.mixbar i.warn, .f-mix .legend i.warn { background: var(--chart-warn); }
.mixbar i.bad, .f-mix .legend i.bad { background: var(--chart-bad); }
.f-mix .legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--fs-13); color: var(--ink-2); }
.f-mix .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
@media (max-width: 1000px) { .f-tiles { grid-template-columns: 1fr 1fr; } .f-tile:nth-child(2) { border-right: 0; } .f-tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.f-sub .n.zero { color: var(--muted); }
.f-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .f-tiles { grid-template-columns: minmax(0, 1fr); } .f-tile { border-right: 0; border-bottom: 1px solid var(--line); } .f-tile:last-child { border-bottom: 0; } }
/* Findings: marking rows handled. */
.f-prog { display: block; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.f-prog i { display: block; height: 100%; background: var(--ok); }
.f-handled { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; white-space: nowrap; }
.f-handled .f-note { flex-basis: 100%; white-space: normal; color: var(--ink-2); max-width: 280px; }
.f-table tr.f-done td { color: var(--ink-2); }
.f-table tr.f-edit { cursor: default; }
.f-table tr.f-edit td { background: var(--surface-2); padding: 10px 16px; }
.f-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.f-form fieldset.opts-set { flex-direction: row; gap: 6px 18px; flex-wrap: wrap; }
.f-form .input[name="note"] { flex: 1 1 320px; min-width: 220px; }
.chip.done { border-style: dashed; color: var(--ink-2); }
.chip.done .icon { color: var(--ok); }
/* The status opens the Data page: drawn as a button so it reads as one; on narrow windows it just says "Data". */
a.sys { text-decoration: none; height: 28px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 0 12px 0 10px; }
a.sys:hover, a.sys[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
a.sys:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sys .sys-short { display: none; }
/* Settings: a way out to the Data page, under the settings' own links. */
.subnav .subnav-out { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 400; font-size: var(--fs-13); }
fieldset.opts-set { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.opts-set legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
/* Settings › Connections. */
.cx-body { display: flex; flex-direction: column; }
.cx-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.cx-row:last-child { border-bottom: 0; }
.cx-row .k { color: var(--ink-2); padding-top: 7px; }
.cx-row .v { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cx-row .v .input { min-width: 0; width: min(420px, 100%); }
.cx-row .v .input.narrow { width: auto; }
/* Settings > Logs: the server log's lines as written (kept on their lines), problem lines marked. */
.server-log td { vertical-align: top; }
.server-log .nowrap { white-space: nowrap; }
.server-log .log-line { margin: 0; font: 12px/1.45 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.server-log tr.problem td:first-child { box-shadow: inset 3px 0 0 var(--review); }
.server-log tr.problem .log-line { color: var(--ink); }
.server-log tr:not(.problem) .log-line { color: var(--ink-2); }
/* A field's help text (Connections, Nightly & cache): not .help, which is the Help panel (fixed on the right). */
.cx-row .field-help { font-size: var(--fs-12); color: var(--ink-2); }
.field-error { font-size: var(--fs-12); color: var(--review); font-weight: 600; }
.cx-unused { padding: 8px 16px; border-bottom: 1px solid var(--line); }
.cx-actions { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; }
@media (max-width: 1000px) { .cx-row { grid-template-columns: minmax(0, 1fr); } .cx-row .k { padding-top: 0; } }
/* Review: four tiles (flagged days, address, costing, off the clock), the facts line, chips for High days. */
.f-tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .f-tiles.four { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .f-tiles.four .f-tile { border-bottom: 1px solid var(--line); } }
.review-facts { margin: -4px 2px 0; }
.chip .sev-high { font: 600 var(--fs-11) var(--font); color: var(--review); }
.linkbtn { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline; }
.linkbtn:focus-visible { box-shadow: var(--focus); }
/* Repeat patterns: the marker next to a technician on Review (its patterns in the popover), and the callout under the
   technician week's strip with each pattern's days as chips. */
.tag.pattern { margin-left: 6px; vertical-align: 1px; border-color: var(--warn); color: var(--warn); cursor: help; }
.tag.pattern:focus-visible { box-shadow: var(--focus); }
.pattern-note { flex: none; padding: 6px var(--s-4); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--s-4); align-items: baseline;
  font-size: var(--fs-13); }
/* The heading carries the warning, as a status mark does (a dot and the colour), not a stripe down the box. */
.pattern-note > .def { display: inline-flex; align-items: center; gap: 7px; color: var(--warn); white-space: nowrap; }
.pattern-note > .def::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--warn); }
.pattern-note ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pattern-note li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pattern-note .def:focus-visible { box-shadow: var(--focus); }
.pattern-note .chips { display: inline-flex; flex-wrap: wrap; }
.pattern-note .chip { margin: 1px 4px 1px 0; }
/* Audit: the technician picker (a button that opens a search box and a list), the sub-tabs, History. */
.combo { position: relative; }
.combo-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 240px; cursor: pointer; text-align: left; }
.combo-btn .icon { color: var(--ink-2); flex: none; }
.combo-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; width: max(100%, 300px); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); padding: 8px; }
.combo-pop .field { display: flex; width: 100%; box-sizing: border-box; }
.combo-pop .field input { width: 100%; }
.combo-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 280px; overflow-y: auto; }
.combo-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer; color: var(--ink); }
.combo-list li:hover { background: var(--surface-2); }
.combo-list li.active { background: var(--accent-tint); }
.combo-list li[aria-selected="true"] { font-weight: 600; }
.combo-list li .icon { color: var(--accent); flex: none; }
.combo-list li b { font-weight: 700; color: var(--accent); }
.combo-empty { padding: 10px; }
.sub-tabs { margin-top: 8px; align-self: flex-start; width: max-content; }
.sub-tabs a { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-right: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 500; }
.sub-tabs a:last-child { border-right: 0; }
.sub-tabs a:hover { background: var(--surface-3); color: var(--ink); }
.sub-tabs a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.history-head { margin: 0 0 4px; }
.ledger.runs tr.quiet td { color: var(--ink-2); }
.sheet.runbar-sheet { overflow: visible; } /* the technician list opens below the run bar */
/* The Review tab's count of days to decide: its own link (to the oldest week with any), next to the tab. */
.tabs .tab-n { display: flex; align-items: center; margin-left: -10px; }
.tabs .tab-n:empty { display: none; }
.tabs .tab-n a.n { display: inline-block; padding: 0 6px; border: 0; color: #1c1e20; text-decoration: none; }
.tabs .tab-n a.n:hover { background: #f0c97a; color: #1c1e20; }
.tabs .tab-n a.n:focus-visible { box-shadow: 0 0 0 2px #1c1e20, 0 0 0 4px #66b8ca; }
/* Open in Dynamics: links to a record on the Dynamics site (a new tab), with a small arrow. */
a.dyn { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
a.dyn .icon { width: 12px; height: 12px; }
.dyn-line { margin: 0 0 6px; color: var(--ink-2); }
.dyn-head { white-space: nowrap; }
/* Insights (views/insights.js, charts.js) and coverage (views/coverage.js). Charts take their colours from the chart
   tokens; gridlines and axes are hairlines one step off the surface; figures are tabular. */
.ins-tabs a { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-right: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.ins-tabs a:last-child { border-right: 0; }
.ins-tabs a:hover { background: var(--surface-3); color: var(--ink); }
.ins-tabs a[aria-current="true"] { background: var(--ink); color: var(--surface); }
.ins-tabs a[aria-current="true"]:focus-visible { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 4px var(--surface); }
.week .wk-btn.off, .week .wk-btn.off:hover { opacity: .35; background: none; } /* no later dates to step to */
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--s-4); }
.ins-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 10px; }
.ins-card .ins-plot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; } /* the charts of a row line up */
.ins-card-head { display: flex; flex-direction: column; gap: 2px; }
.ins-big { font: 600 var(--fs-20)/1.2 var(--font); }
.ins-vs { color: var(--muted); font-weight: 400; margin: 0 2px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart text { font-size: 10px; fill: var(--muted); }
.ch-grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.ch-base { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.ch-gap line, .ch-zero { stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; }
.ch-series path { fill: var(--chart-series); }
.ch-stake path { fill: var(--chart-stake); }
.ch-gps path { fill: var(--chart-gps); }
.ch-hit rect, .ch-hitbox { fill: transparent; }
.ch-hit rect:hover { fill: var(--ink); fill-opacity: .05; }
.ch-mark { stroke: var(--ink-2); stroke-width: 1; }
.spark { display: block; overflow: visible; }
.spark a:hover path { opacity: .75; }
.ledger td.spark-cell { padding-top: 4px; padding-bottom: 4px; }
.ins-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ins-legend i, .cov .legend i.rest { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.ins-legend i.stake { background: var(--chart-stake); }
.ins-legend i.gps { background: var(--chart-gps); }
.cov .legend i.rest { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ins-table tbody tr, .cov-table tbody tr { cursor: default; }
.ins-table tbody tr:hover td, .cov-table tbody tr:hover td { background: none; }
.ins-table th[scope="row"] { position: static; background: none; height: var(--row-h); font-size: var(--fs-14); color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.ins-table tfoot th, .ins-table tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); }
.ins-table td.wrap { white-space: normal; min-width: 200px; }
.ins-change { display: block; }
.cov-table td .sub { white-space: normal; max-width: 640px; }
.cov-big { font: 600 var(--fs-28)/1 var(--font); margin-right: 4px; }

/* Sign-in (views/account.js): the page shown instead of the app until this browser signs in. */
.signin-page { display: grid; place-items: start center; padding-top: 12vh; min-height: 100vh; }
.signin { width: min(100%, 400px); }
.signin-head { display: flex; align-items: center; gap: 12px; padding: 14px var(--s-4); background: #1c1e20; color: #e9e7e2; font-weight: 600; }
.signin-head .logo { height: 24px; width: auto; padding-right: 12px; border-right: 1px solid #4a4d50; }
.signin h1 { font-size: var(--fs-20, 20px); margin: 0; }
.signin .input { width: 100%; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.form-error { margin: 0; color: var(--review); }
dl.roles { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--s-4); margin: 0 0 var(--s-3); }
dl.roles dt { font-weight: 600; } dl.roles dd { margin: 0; }
.account-form { padding: var(--s-3) 0; }
/* A manager's departments: shown only while the role picked (or set in Microsoft Entra) is Manager. */
.account-form .scope-row { display: none; }
.account-form:has(select[name="role"] option[value="manager"]:checked) .scope-row,
.account-form:has(input[name="locked_role"][value="manager"]) .scope-row { display: block; }
.scope-list, .scope-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.scope-list ul { padding: 4px 0 2px 24px; }
.scope-list { max-height: 320px; overflow: auto; margin-bottom: 6px; }
.view-only-note { margin-bottom: 12px; }
[aria-disabled="true"][title] { cursor: not-allowed; }
.ms-btn { gap: 10px; }
.ms-logo { width: 18px; height: 18px; flex: none; }
.signin .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--fs-12, 12px); }
.signin .or::before, .signin .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---- the day panel's map (dayMap.js) ---- */
.map-slot { height: 280px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--neutral-tint); }
.map-host { width: 100%; height: 100%; }
.map-key { margin: 6px 0 0; }
.map-key .mk { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.map-key .mk.stop { background: var(--seg-site); }
.map-key .mk.pin { background: var(--surface); box-shadow: inset 0 0 0 3px var(--accent); }
.map-pop { font: 12px/1.4 var(--font); color: #1c1e20; }
.map-pop div:first-child { font-weight: 600; }
@media print { .map-slot, .map-key { display: none; } }
.map-key .mk.start { width: 14px; height: 14px; line-height: 12px; text-align: center; font-size: 9px; font-weight: 600; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); vertical-align: -3px; }
.site-map { margin: 4px 0 12px; }
.site-map .map-slot { height: 300px; }
.map-imagery { width: auto !important; padding: 0 8px !important; font: 600 12px var(--font); color: #1c1e20; }
/* The larger map (dayMap.js): over the page, the map with the day's list and address check in a column beside it. */
html.map-open { overflow: hidden; }
.map-tools { margin: 6px 0 0; }
.map-big-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.45); }
.map-big { position: fixed; inset: 16px; z-index: 61; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-2); overflow: hidden; }
.map-big-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.map-big-head button { margin-left: auto; }
.map-big-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 30%); min-height: 0; }
.map-big .map-slot { height: 100%; margin: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.map-big-side { overflow: auto; padding: 10px 14px 16px; }
.map-big-side .map-key { margin-top: 0; }
@media (max-width: 900px) { .map-big-body { grid-template-columns: 1fr; grid-template-rows: 55% minmax(0, 1fr); } .map-big .map-slot { border-right: 0; border-bottom: 1px solid var(--line); } }

/* "The day, in order" under the day panel's map (dayMap.js): stops and the drives between them, top to bottom. */
.itin-head { margin: 12px 0 4px; }
.itin { list-style: none; margin: 0; padding: 0; }
.it-row { display: grid; grid-template-columns: 22px 9.5em minmax(0, 1fr); align-items: baseline; gap: 2px 8px; padding: 3px 6px; border-radius: var(--r-sm); font-size: var(--fs-13); }
.it-row[tabindex] { cursor: default; }
.it-row[tabindex]:hover, .it-row[tabindex]:focus-visible { background: var(--neutral-tint); outline: none; }
.it-row[tabindex]:focus-visible { box-shadow: var(--focus-inset); }
.it-badge { align-self: center; justify-self: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font: 600 11px/20px var(--font); text-align: center; }
.it-badge.it-s { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); line-height: 20px; }
.it-line { align-self: stretch; justify-self: center; width: 4px; min-height: 16px; border-radius: 2px; }
.it-drive { font-size: var(--fs-12); }
.it-drive .it-time, .it-drive .it-what { color: var(--ink-2); }
.it-time { white-space: nowrap; }

/* ---- Getting started (onboarding.js, tour.js): the Help panel, the welcome, a tour's step ---- */
.help-btn { position: relative; }
.help-btn .dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--review); }
.help { position: fixed; top: 52px; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 40; display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface); border-left: 1px solid var(--line-strong); }
.help-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.help-head h2 { font-size: var(--fs-16); margin: 0; }
.help-head button { margin-left: auto; }
.help-body { overflow: auto; padding: 4px 16px 20px; font-size: var(--fs-13); }
.help-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.help-sec:last-of-type { border-bottom: 0; }
.help-sec h3 { margin: 0 0 6px; font-size: var(--fs-13); }
.help-sec h3 .n { color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.help-sec p { margin: 0 0 6px; line-height: 1.45; }
.help-sec ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
/* Words: each one above its definition (a label like "Decision (Accepted, Corrected, …)" is too long for a side column
   in a narrow panel). Keys are short, so they keep two columns. */
.help .terms { margin: 0; }
.help .terms dt { font-weight: 600; }
.help .terms dt:not(:first-child) { margin-top: 10px; }
.help .terms dd { margin: 2px 0 0; color: var(--ink-2); line-height: 1.4; }
.help .terms.keys { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; }
.help .terms.keys dt { margin-top: 0; }
.help .terms.keys dd { margin: 0; }
.help kbd { font: 600 11px var(--mono); padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); }
.help .news { margin-bottom: 8px; }
.help .news ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.checklist { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.checklist li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.checklist .box { width: 16px; height: 16px; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 3px; display: grid; place-items: center; }
.checklist li.ok .box { border-color: var(--ok); color: var(--ok); }
.checklist li.ok > span:not(.box), .checklist li.ok a { color: var(--ink-2); }
.checklist .sub { display: block; color: var(--ink-2); font-size: var(--fs-12); }
.welcome-back { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.45); }
.welcome { position: fixed; z-index: 71; top: 18vh; left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-2); }
.welcome h2 { margin: 0 0 8px; font-size: var(--fs-20); }
.welcome p { line-height: 1.5; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.tour { position: fixed; z-index: 80; width: min(340px, calc(100vw - 16px)); padding: 12px 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--accent); border-radius: var(--r-2); font-size: var(--fs-13); }
.tour .tour-count { color: var(--ink-2); font-size: var(--fs-11); text-transform: uppercase; letter-spacing: .04em; }
.tour h2 { margin: 4px 0 6px; font-size: var(--fs-14); }
.tour h2:focus, .tour h2:focus-visible { outline: none; box-shadow: none; }
.tour p { margin: 0 0 8px; line-height: 1.45; }
.tour .tour-do { color: var(--accent); font-weight: 600; }
.tour-actions { display: flex; align-items: center; gap: 8px; }
.tour-actions .linkbtn { margin-left: auto; }
.tour-target { outline: 3px solid var(--accent) !important; outline-offset: 3px; border-radius: 4px; scroll-margin-top: 64px; }
@media (prefers-reduced-motion: no-preference) { .tour, .welcome { animation: fade-in .12s ease-out; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Claude (public/js/ai.js): its suggestions carry this mark, so they're never mistaken for the audit's own results. */
.tag.claude { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); cursor: help; }
.claude-box { border: 1px dashed var(--accent); border-radius: var(--r); background: var(--accent-tint); padding: var(--s-3) var(--s-4); }
.claude-box .head { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-2); }
/* Settings › Claude: the requests, each with what it sent and got back. */
.ai-calls { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ai-call { border-bottom: 1px solid var(--line); padding-bottom: var(--s-3); }
.ai-call pre.log { max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
/* Claude sorts the Nearby (verify) address checks (views/addressTriage.js): its bar above the list, its answer under a row's Why. */
.triage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 16px; border-top: 1px solid var(--line); }
.triage-row { margin-top: 4px; white-space: nowrap; }
.triage-why { margin-top: 2px; white-space: normal; max-width: 36ch; }
/* Draft messages (public/js/drafts.js): Claude's draft of a message, as it would be pasted. */
.draft-box { margin: 0 0 var(--s-3); }
.draft-box .draft-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-2); line-height: 1.5; }
.draft-box .draft-text p { margin: 0 0 var(--s-2); }
.draft-box .draft-body { white-space: pre-wrap; word-break: break-word; }
.draft-box .draft-points { margin: 0 0 var(--s-2); padding-left: 1.4em; display: grid; gap: var(--s-2); }
.draft-box .row-actions { margin-bottom: var(--s-1); }
/* Suggest rule changes (Claude): under Settings › Rules › How the rules are doing (views/ruleImpact.js tuningBox). */
.tuning { border-top: 1px solid var(--line); }
.tuning p { margin: 0 0 var(--s-2); }
.tuning .claude-box .head .tools { margin-left: auto; }
.tuning-list { list-style: none; margin: 0 0 var(--s-2); padding: 0; display: grid; gap: var(--s-3); }
.tuning-item { display: grid; gap: 4px; }
/* Claude's first pass over flagged days (public/js/daySuggest.js): the bar above the days, the ledger's chip (a line of
   its own under the Result, small and in the page's font, so the column doesn't widen), the day panel's box and the Review line. */
.ai-pass { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px var(--s-3); border-bottom: 1px solid var(--line); }
.tag.claude.ai-chip { display: table; margin: 3px 0 0; padding: 2px 4px; font: 500 var(--fs-11)/1 var(--font); text-transform: none; letter-spacing: 0; }
.tag.claude.ai-chip.closer { font-weight: 600; }
.claude-box.ai-day p { margin: 0 0 var(--s-2); }
.ai-agree { margin: -4px 2px 0; }
/* Claude's decision reasons from the notes, feedback summary and failed-run explanation (views/reasonIdeas.js, feedbackSummary.js, logExplain.js). */
.claude-box .ai-list { margin: 0 0 var(--s-2); padding-left: 20px; display: grid; gap: var(--s-2); }
.claude-box .ai-list > li > .row-actions { gap: var(--s-2); }
.claude-box .ai-quotes { margin: 2px 0 0; padding-left: 16px; }
.claude-box > p { margin: 0 0 var(--s-2); }
.fb-item:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
