/* Additions to kit.css for the MARC console, built from the kit's tokens. */

.tabs { grid-template-columns: repeat(3, 1fr); }
.side .bottom .signout { height: auto; padding: 0; justify-content: flex-start; text-align: left; }

.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--crit); }
.btn:disabled { opacity: .55; cursor: default; }

/* device cards: the latest screenshot is what the reader looks for */
.devices { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .devices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dev { display: block; padding: 0; overflow: hidden; }
.dev:hover { border-color: var(--line-2); }
.dev .body { padding: 13px 16px 15px; display: grid; gap: 4px; }
.dev .name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dev .name b { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.dev .doing { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev .meta { font-size: 13px; color: var(--ink-3); }

.thumb { position: relative; aspect-ratio: 16 / 10; background: var(--sunken); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.thumb .none { font-size: 13px; color: var(--ink-3); padding: 0 18px; text-align: center; }
.thumb .age { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--mark); }
.pill.rec { background: color-mix(in srgb, var(--pos) 12%, transparent); color: var(--pos); }
.pill.rec .dot { background: var(--pos); }

/* device page */
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--sunken); }
.shot img { width: 100%; display: block; }
.shot .none { padding: 60px 18px; text-align: center; color: var(--ink-3); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kv dd { overflow-wrap: anywhere; text-align: right; }
.kv dd .sub { display: block; font-weight: 450; }
.path { font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; color: var(--ink-2); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 14px; font-weight: 550; color: var(--accent-ink); }

/* frames browser */
.hours { display: flex; flex-wrap: wrap; gap: 6px; }
.hours button { height: 32px; min-width: 52px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; font-size: 14px; }
.hours button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--accent-ink); font-weight: 600; }
.frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (min-width: 720px) { .frames { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .frames { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.frame { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; }
.frame .thumb { aspect-ratio: 16 / 10; }
.frame span { display: block; padding: 6px 9px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* enrollment code */
.code { font: 650 34px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; margin: 6px 0 4px; overflow-wrap: anywhere; }
.steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); max-width: 62ch; }
.steps b { color: var(--ink); font-weight: 600; }
.form { display: grid; gap: 14px; max-width: 460px; }
.lbl-field { display: grid; gap: 6px; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.form-err { color: var(--crit); font-size: 14px; min-height: 0; }
.form-err:empty { display: none; }

/* sign-in */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; display: grid; gap: 14px; padding: 24px; }
.login-card h1 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }

/* bottom sheet on a phone, centred dialog on a desktop */
dialog.sheet { border: 1px solid var(--line-2); border-radius: 18px; padding: 0; background: var(--surface); color: var(--ink);
  width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--shadow); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .45); }
.sheet-in { padding: 16px; display: grid; gap: 14px; }
.sheet-in header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-in header h2 { font-size: 16px; font-weight: 650; }
.sheet-in img { width: 100%; border-radius: 10px; display: block; background: var(--sunken); }
.sheet-in p { color: var(--ink-2); max-width: 60ch; }
.sheet-in.narrow { max-width: 460px; }
dialog.sheet:has(.narrow) { width: min(460px, calc(100vw - 24px)); }
.hero .figure .of { font-size: .42em; font-weight: 550; color: var(--ink-3); letter-spacing: -.01em; }
.stat .v small { font-size: 14px; font-weight: 500; }
@media (max-width: 719px) {
  .dev { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: stretch; }
  .dev .thumb { aspect-ratio: auto; min-height: 84px; }
  .dev .thumb .none { font-size: 12px; padding: 0 8px; }
  .dev .thumb .age { display: none; }
  .dev .body { padding: 11px 13px 12px; }
  .dev .name { flex-wrap: wrap; gap: 4px 8px; }
  .dev .doing { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.kv { margin: 0; }
.facts .kv { grid-template-columns: auto minmax(0, 1fr); }
.facts .kv dt { white-space: nowrap; }
.kv .wide { grid-column: 1 / -1; text-align: left; }
.kv dd.wide { margin-top: -4px; font-weight: 450; }
.kv dt.wide { margin-top: 4px; }
.link.small { display: inline-flex; align-items: center; min-height: 32px; margin: -6px 0; }
/* Light: white on the darker accent ink. Dark: dark text on the light accent ink. Both >= 4.5:1. */
.btn.primary { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0b0b0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0b0b0b; } }
.kv dd.wide .path { display: block; }
.link.small { padding: 0 3px; }

/* language switch: two buttons, the pressed one is filled */
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.lang button { height: 34px; min-width: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent-ink); }
.lang button + button { border-left: 1px solid var(--line); }
.login-card .lang { justify-self: end; }

/* charts: pure SVG strings drawn at their own width; 12 px labels, text in ink tokens */
svg.ch { display: block; max-width: 100%; height: auto; overflow: visible; }
svg.ch text { font: 12px/1 var(--font); fill: var(--ink-2); }
svg.ch text.v { fill: var(--ink); font-weight: 550; }
svg.ch text.ax { fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.ch-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.ch-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ch-empty { padding: 18px 4px; font-size: 14px; color: var(--ink-3); }

/* gallery: each component under both palettes, side by side on a desktop */
.gallery-pair { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .gallery-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pane { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); color: var(--ink); min-width: 0; overflow: hidden; }
.pane h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.pane.pane-light { color-scheme: light; --surface: #fdfdfc; --ink: #0b0b0b; --ink-2: #52514e; --ink-3: #666560; --line: rgba(11, 11, 11, .09); --line-2: rgba(11, 11, 11, .16);
  --grid: #e6e5df; --axis: #c3c2b7; --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s-other: #b4b3ab; }
.pane.pane-dark { color-scheme: dark; --surface: #1a1a19; --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #a3a199; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18);
  --grid: #2c2c2a; --axis: #3d3d3a; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s-other: #5c5b56; }

/* phone header: title, language switch and theme fit in 390 px; the "updated" pill shows only when stale */
.top h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .tools { flex-shrink: 0; }
@media (max-width: 519px) { .top .sync:not(.stale) { display: none; } }

/* org switcher: its own row under the title on a phone, inline on a desktop */
.top { flex-wrap: wrap; }
.orgbar { order: 3; flex: 1 0 100%; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.orgbar select { flex: 1; min-width: 0; max-width: 320px; }
@media (min-width: 720px) { .orgbar { order: 0; flex: 0 1 auto; margin-left: auto; } .orgbar select { flex: none; } }

/* home */
.home-top { margin-top: 4px; }
.home-week b { min-width: 0; flex: 1; font-size: 14px; }
.home-week .icon-btn { display: inline-flex; align-items: center; justify-content: center; }
.hero.home { margin-top: 14px; }
.hero.home .figure { font-size: 28px; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
@media (min-width: 720px) { .hero.home .figure { font-size: 44px; max-width: 24ch; } }
.home-grid { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 980px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-tools { grid-column: 1 / -1; } }
.home-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.home-head h3 { font-size: 15px; font-weight: 650; }
.card .home-head { margin-bottom: 10px; }
.home-row { grid-template-columns: minmax(0, 1fr) auto; }
.home-chart { min-width: 0; }
.home-opp { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.home-opp .home-head { align-self: stretch; margin-bottom: 0; }
.home-opp p { margin: 0; }
.home-opp-name { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.home-opp-sugg { padding-left: 12px; border-left: 3px solid var(--accent-wash); }
.home-opp-sugg p { margin-top: 2px; overflow-wrap: anywhere; }
.home-opp-link { margin-top: auto; display: inline-flex; align-items: center; min-height: 32px; }
.home-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 20px; }
.home-team { display: inline-flex; align-items: center; min-height: 32px; }
.hero.home .home-cov { margin-top: 10px; color: var(--ink-2); }
.hero.home .home-logged { margin-top: 4px; max-width: 64ch; }
.home-back { margin-top: 14px; }
.home-back .btn { display: inline-flex; align-items: center; }
/* team */
.team-bar { margin: 10px 0 4px; }
.team-week b { min-width: 0; display: grid; gap: 1px; line-height: 1.2; }
.team-week b .sub { font-weight: 450; }
.team-week .icon-btn { display: grid; place-items: center; font-size: 20px; }
.team-cols { display: grid; gap: 0 20px; grid-template-columns: minmax(0, 1fr); }
.team-col { display: contents; }
.team-cols [data-tools] { order: 1; } .team-cols [data-days] { order: 2; } .team-cols [data-people] { order: 3; } .team-cols [data-workflows] { order: 4; }
@media (min-width: 980px) {
  .team-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .team-col { display: block; min-width: 0; }
}
.team-person .m.why { color: var(--ink-2); }
.team-person .av.out { background: var(--warn-wash); color: var(--warn); }
.team-tool .bar-track.last { height: 4px; margin-top: -2px; }
.team-tool .bar-track.last .bar-fill { background: var(--mark); }
.team-key { margin-top: 6px; }
.team-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.team-day { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.team-day .v { font-size: 13px; font-weight: 600; white-space: nowrap; }
.team-day .col { height: 110px; width: 100%; max-width: 44px; display: flex; align-items: flex-end; background: var(--sunken); border-radius: 8px; overflow: hidden; }
.team-day .col i { display: block; width: 100%; background: var(--s1); border-radius: 6px 6px 0 0; }
.team-day .wd { font-size: 13px; font-weight: 550; text-transform: capitalize; }
.team-person { color: inherit; text-decoration: none; }
a.team-person:hover, a.team-wf:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.team-wf { color: inherit; text-decoration: none; }
.team-person .t, .team-person .m, .team-wf .t, .team-wf .m { display: block; }
/* person */
.person-week { margin-top: 14px; max-width: 100%; }
.person-week .stepper b { min-width: 0; font-size: 15px; }
.person-days .bar-val small { min-width: 0; margin-left: 0; }
.person-days .stack { display: flex; height: 100%; border-radius: 999px; overflow: hidden; min-width: 3px; gap: 1px; }
.person-days .stack i { display: block; height: 100%; min-width: 2px; }
.person-wf .bar-note { grid-row: auto; }
.person-wf .nw, .nw { white-space: nowrap; }
#person-tools text { fill: var(--ink); font-size: 13px; }
#person-tools text.v { fill: var(--ink-2); font-weight: 600; }
.person-note { margin: 18px 0 0; max-width: 60ch; color: var(--ink-3); font-size: 13px; }
/* workflows */
.wf-back { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: 4px; }
.wf-row .wf-main { display: contents; }
.wf-row { row-gap: 4px; }
.wf-row .wf-name { grid-column: 1; grid-row: 1; min-width: 0; }
.wf-row .a { grid-column: 2; grid-row: 1; }
.wf-line, .wf-chips, .wf-bar { grid-column: 1 / -1; min-width: 0; }
.wf-row .wf-name { position: static; }
.wf-row .wf-name::after { content: ""; position: absolute; inset: 0; }
.wf-line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.wf-opp { position: relative; z-index: 1; display: inline-block; padding: 10px 0; margin: -10px 0; font-size: 13px; }
.wf-chips { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.wf-chip { display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: 0 1 auto; }
.wf-chip > span { overflow: hidden; text-overflow: ellipsis; }
.wf-chip i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.wf-sep { color: var(--ink-3); flex: none; }
.wf-plus { color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.wf-x2, .wf-sep:has(+ .wf-x2) { display: none; }
.wf-plus4 { display: none; }
@media (min-width: 720px) {
  .wf-x2 { display: inline-flex; }
  .wf-sep:has(+ .wf-x2) { display: inline; }
  .wf-x4, .wf-sep:has(+ .wf-x4), .wf-plus2 { display: none; }
  .wf-plus4 { display: inline; }
}
.wf-bar { height: 6px; }
.wf-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.hero .wf-note { margin-top: 6px; max-width: 60ch; }
.wf-change { white-space: nowrap; }
.wf-change::before { content: "·"; margin-right: 10px; color: var(--ink-3); }
.wf-people { list-style: none; margin: 0; padding: 0; }
.wf-people li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.wf-people li:first-child { border-top: 0; }
.wf-pname { font-weight: 550; font-size: 15px; overflow-wrap: anywhere; }
.wf-pcount { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.wf-steps, .wf-flow { list-style: none; margin: 0; padding: 0; counter-reset: wfs; }
.wf-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.wf-steps li { counter-increment: wfs; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.wf-steps li::before { content: counter(wfs) "."; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 1.4em; flex: none; }
.wf-steps li i, .wf-flow li i { width: 8px; height: 8px; margin-top: 7px; border-radius: 3px; flex: none; }
.wf-steps li span, .wf-flow li span { min-width: 0; }
.wf-flow { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.wf-flow li { display: inline-flex; align-items: flex-start; gap: 5px; overflow-wrap: anywhere; }
.wf-flow li + li::before { content: "›"; color: var(--ink-3); margin-right: 1px; }
.wf-variant { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.wf-only { font-size: 14px; line-height: 1.4; }
.wf-start { margin: 0; padding: 12px 16px 0; }
.wf-more summary { cursor: pointer; padding: 12px 16px; min-height: 44px; color: var(--accent-ink); font-weight: 550; font-size: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; }
.wf-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; min-height: 64px; padding-block: 11px; }
.wf-row .a { white-space: nowrap; text-align: right; }
/* opportunities */
.opp-week { margin-bottom: 18px; }
.opp-week b { display: flex; flex-direction: column; min-width: 11em; line-height: 1.2; }
.opp-week b .sub { font-weight: 400; }
.opp-estimate { margin-top: 10px; max-width: 62ch; }
.opp-list { display: grid; gap: 14px; }
.opp { display: grid; gap: 14px; min-width: 0; }
.opp-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.opp-head h3 { font-size: 17px; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.opp-head h3 .link { font-size: inherit; display: inline-flex; align-items: center; min-height: 32px; }
.opp-gain { font-size: 28px; line-height: 1.1; font-weight: 650; letter-spacing: -.03em; }
.opp-basis { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 68ch; }
.opp-facts { grid-template-columns: minmax(0, 1fr) auto; }
.opp-sugg p { margin-top: 4px; color: var(--ink); font-size: 15px; max-width: 68ch; overflow-wrap: anywhere; }
.opp-runs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.opp-runs li { display: flex; justify-content: flex-start; gap: 16px; color: var(--ink-2); }
.opp-none { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; max-width: 34ch; }
.opp-main { display: grid; gap: 14px; min-width: 0; align-content: start; }
.opp-runs li b { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .opp { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .opp-head, .opp-gain { grid-column: 1 / -1; }
  .opp-slow { padding-left: 24px; border-left: 1px solid var(--line); }
}
/* tools */
a.bar.tl-tool { color: inherit; text-decoration: none; cursor: pointer; border-radius: 10px; min-height: 44px; }
.tl-tool .bar-val { display: inline-flex; align-items: center; gap: 4px; }
.tl-tool .chev { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
a.bar.tl-tool:hover .chev, a.bar.tl-tool:focus-visible .chev { color: var(--accent-ink); }
a.bar.tl-tool:hover .bar-name, a.bar.tl-tool:focus-visible .bar-name { color: var(--accent-ink); }
.tl-head { margin-top: 18px; }
.tl-week a.icon-btn { display: inline-grid; place-items: center; }
.tl-week b { min-width: 7.5em; }
a.back.tl-back { margin: 12px 0 0 2px; }
.tl-sec > .card { max-width: 860px; }
.tl-sec .row + .row::before { left: 18px; }
/* report */
.report .print-only { display: none; }
#view .report { padding-left: 0; padding-right: 0; }
.report .masthead .btn { margin-left: auto; }
@media (min-width: 560px) { .report .masthead { align-items: center; } }
.report .legend { margin: 6px 0 8px; }
.report .chart svg { width: 100%; height: auto; }
.report .chart text.nm { fill: var(--ink); font-weight: 550; }
.report .chart text.v { fill: var(--ink-2); font-weight: 600; }
.report .changes-h { margin: 16px 0 6px; font-size: 14px; font-weight: 650; color: var(--ink); }
.report .changes { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; max-width: 62ch; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.report .changes b { color: var(--ink); font-weight: 650; }
.report .report-more { margin-top: 8px; color: var(--ink-2); }
.report .report-table { margin: 14px 0 0; padding: 0; }
.report .report-table th { white-space: normal; vertical-align: bottom; }
.report .report-table th.r, .report .report-table td.r { padding-left: 10px; }
@media print {
  @page { margin: 14mm; }
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    color-scheme: light;
    --page: #fff !important; --surface: #fff !important; --sunken: #eeede8 !important;
    --ink: #0b0b0b !important; --ink-2: #3b3a37 !important; --ink-3: #52514e !important; --mark: #85837d !important;
    --line: rgba(11, 11, 11, .12) !important; --line-2: rgba(11, 11, 11, .25) !important;
    --accent: #2a78d6 !important; --accent-ink: #1c5cab !important; --s1: #2a78d6 !important; --s-other: #b4b3ab !important;
  }
  .side, .tabs, .top, .login, .orgbar, .lang, #theme, [data-signout], .report-actions, #report-print, dialog.sheet { display: none !important; }
  .report .print-only { display: inline !important; }
  .app { display: block !important; }
  .main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  #view .report { max-width: none; padding: 0; }
  .report .lead { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px 28px; padding-top: 18px; }
  .report .lead .figure { font-size: 64px; }
  .report .lead .claim { max-width: none; font-size: 17px; }
  .report h2 { margin-top: 30px; }
  .report svg, .report .bar-fill, .report .legend i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report .lead, .report table, .report .callout, .report figure { break-inside: avoid; }
}

/* phone tab bar: the "More" tab is a button that looks like its siblings; the sheet lists the rest */
.tabs .more-tab { display: grid; justify-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 12px; min-height: 44px;
  font: inherit; font-size: 12px; font-weight: 550; color: var(--ink-3); background: none; border: 0; cursor: pointer; }
.tabs .more-tab svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.tabs .more-tab.on { color: var(--accent-ink); }
.tabs.has-more > a[data-signout] { display: none; }
.tabs a, .tabs .more-tab { min-height: 44px; min-width: 44px; }
dialog.more-sheet { width: min(460px, 100vw - 24px); margin: auto auto 12px; }
.more-nav { display: grid; gap: 2px; }
.more-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; font-weight: 550; color: var(--ink-2); }
.more-nav a svg { width: 20px; height: 20px; }
.more-nav a.on { background: var(--accent-wash); color: var(--accent-ink); }
.more-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.more-foot .btn { min-height: 44px; }
.more-foot .lang button { min-height: 44px; min-width: 44px; }

/* directory */
.dir-lead { color: var(--ink-2); max-width: 64ch; margin: 0 0 12px; }
.dir-todo { display: grid; gap: 10px; margin-top: 18px; }
.dir-tabs { margin-top: 22px; }
.dir-tabs .seg { display: flex; width: 100%; }
.dir-tabs .seg button { flex: 1 1 auto; min-height: 40px; }
.dir-list .dir-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) auto; gap: 8px 16px; align-items: center; padding: 12px 18px; position: relative; }
.dir-list .dir-row + .dir-row::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; border-top: 1px solid var(--line); }
.dir-row .t { font-weight: 550; overflow-wrap: anywhere; }
.dir-row .m { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.dir-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) auto; gap: 8px 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.dir-head span:last-child { min-width: 61px; }
.dir-pcs { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.dir-pc { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.dir-pcname { overflow-wrap: anywhere; }
.dir-pick .field { width: 100%; }
.dir-act { display: flex; justify-content: flex-end; gap: 8px; }
.dir-act .btn, .dir-btns .btn, .dir-pcrow .btn { min-height: 40px; }
.section > header .btn { flex: none; }
.dir-form { display: grid; gap: 14px; }
.dir-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.dir-form label small, .dir-form fieldset small { font-weight: 450; color: var(--ink-3); }
.dir-form .field { height: 42px; width: 100%; font-weight: 450; color: var(--ink); }
.dir-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.dir-form legend { font-size: 14px; font-weight: 550; color: var(--ink-2); padding: 0 6px; }
.dir-form .dir-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 450; color: var(--ink); min-height: 32px; }
.dir-form .dir-check input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.dir-radio span { display: grid; gap: 1px; }
.dir-radio b { font-weight: 600; }
.dir-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dir-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dir-push { margin-left: auto; }
.dir-pcrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dir-error { color: var(--crit); background: var(--crit-wash); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.dir-error[hidden] { display: none; }
.dir-sheet { max-width: 480px; }
.dir-code { margin-bottom: 14px; display: grid; gap: 10px; border-color: var(--accent); }
.dir-code h3 { font-size: 15px; font-weight: 650; margin: 0; }
.dir-code-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; font-weight: 650; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.dir-code .dir-lead { margin: 0; }
.notice.ok { background: var(--accent-wash); }
.dir-form.card { margin-bottom: 4px; }
@media (max-width: 640px) {
  .dir-head { display: none; }
  .dir-list .dir-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .dir-list .dir-row .dir-pcs, .dir-list .dir-row .dir-pick { grid-column: 1 / -1; grid-row: 2; }
  .dir-list .dir-row.dir-link .dir-act { grid-row: 3; grid-column: 1 / -1; }
  .dir-list .dir-row.dir-link .dir-act .btn { width: 100%; }
  .dir-tabs .seg button { padding: 0 8px; font-size: 13px; }
  .dir-two { grid-template-columns: 1fr; }
  .dir-code-val { font-size: 21px; }
}
@media (max-width: 640px) {
  .dir-tabs .seg { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .dir-tabs .seg button { white-space: normal; min-height: 40px; }
}
.dir-btns a.btn { display: inline-flex; align-items: center; }
/* me */
.me-head .hero .figure { display: flex; align-items: center; gap: 12px; }
.me-head .hero .dot { width: .38em; height: .38em; flex: none; }
.me-lead { margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--ink); max-width: 56ch; }
.me-pause { margin-top: 18px; display: grid; gap: 6px; max-width: 640px; }
.me-pause h3, .me-excl h3, #me-week .card > h3 { font-size: 15px; font-weight: 600; }
.me-pause p { color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.me-keep { margin-top: 10px; max-width: 68ch; }
.me-chips { list-style: none; margin: 8px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.me-chips li { padding: 6px 12px; border-radius: 999px; background: var(--sunken); font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.me-excl h3:first-child { margin-top: 0; }
.me-excl > :last-child { margin-bottom: 0; }
.me-week-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
#me-week .card + .card { margin-top: 12px; }
.me-active-fig { font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0; }
.me-looks { list-style: none; margin: 0; padding: 0; }
.me-look { padding: 14px 18px; display: grid; gap: 2px; }
.me-look + .me-look { border-top: 1px solid var(--line); }
.me-look-t { font-weight: 600; }
.me-look-m { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.me-look-r { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.me-more { padding: 12px 18px; border-top: 1px solid var(--line); }
.me-unlinked { font-size: 16px; }
@media (min-width: 720px) { .me-lead { font-size: 19px; } }
.me-first { margin-top: 18px; display: grid; gap: 12px; align-items: start; }
.me-first .me-pause { margin-top: 0; max-width: none; }
.me-rec { display: grid; gap: 14px 28px; }
.me-rec h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.me-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.me-list li { overflow-wrap: anywhere; }
.me-never .me-list { list-style: none; padding-left: 0; }
.me-never .me-list li::before { content: "\2715"; color: var(--ink-2); margin-right: 8px; font-size: 12px; }
.item.me-keep { margin-top: 0; max-width: none; }
.me-keep .me-list { margin-top: 4px; }
.me-looked-lead { margin: 0 0 12px; max-width: 62ch; color: var(--ink-2); }
.me-look-n { font-size: 14px; font-weight: 600; }
.me-noreason { color: var(--ink-2); }
.me-look-more { margin-top: 4px; font-size: 14px; }
.me-look-more summary { cursor: pointer; color: var(--accent-ink); min-height: 24px; }
.me-look-times { margin: 6px 0 0; padding-left: 22px; color: var(--ink-2); }
@media (min-width: 900px) {
  .me-first { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .me-rec { grid-template-columns: 1fr 1fr; }
}
.me-head .hero .dot { background: var(--pos); }
/* privacy */
.pv { max-width: 860px; }
.pv .hero .figure { font-size: 32px; }
@media (min-width: 900px) { .pv .hero .figure { font-size: 40px; } }
.pv .section > header.stack .sub { display: block; margin-top: 2px; text-align: left; }
.pv .section > header a.pv-log-link { margin: 0; font-size: inherit; font-weight: inherit; min-height: 44px; }
.pv-two { display: grid; gap: 18px; }
.pv-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv-facts li { position: relative; padding-left: 26px; }
.pv-facts li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; }
.pv-yes::before { background: color-mix(in srgb, var(--pos) 25%, transparent); border: 2px solid var(--pos); }
.pv-no::before { background: color-mix(in srgb, var(--crit) 20%, transparent); border: 2px solid var(--crit); }
.pv-no { color: var(--ink-2); }
.pv-records .eyebrow { margin-bottom: 8px; }
.pv-radios { display: grid; gap: 4px; }
.pv-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 10px; border-radius: 12px; cursor: pointer; min-height: 44px; }
.pv-radio:has(input:checked) { background: var(--accent-wash); }
.pv-radio input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pv-radio b { display: block; font-weight: 600; }
.pv-radio .sub { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.pv-lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.pv-lists > section { min-width: 0; }
.pv-chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pv-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 2px 4px 2px 12px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); }
.pv-chip span { overflow-wrap: anywhere; }
.pv-x { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.pv-x:hover { background: var(--line); color: var(--ink); }
.pv-add { display: flex; gap: 8px; }
.pv-add .field { flex: 1 1 auto; min-width: 0; }
.pv-ret { display: grid; gap: 16px; }
.pv-ret-row { display: grid; gap: 6px; }
.pv-ret-row label b { display: block; font-weight: 600; }
.pv-num { display: flex; align-items: center; gap: 8px; }
.pv-num .field { width: 120px; }
.pv-err { color: var(--crit); font-size: 14px; font-weight: 550; }
.pv-err:empty { display: none; }
.pv-save { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn:disabled { opacity: .5; cursor: default; }
@media (min-width: 900px) {
  .pv-two { grid-template-columns: 1.4fr 1fr; }
  .pv-lists { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
  .pv-ret-row { grid-template-columns: 1fr auto; align-items: center; }
  .pv-ret-row .pv-err { grid-column: 1 / -1; }
}
/* audit */
.al-lead { margin: 0 0 14px; color: var(--ink-2); max-width: 62ch; }
.al-f { min-width: 0; flex: 1 1 200px; max-width: 320px; }
.al-f .field { width: 100%; font-weight: 450; color: var(--ink); }
.al-filters { align-items: flex-end; margin-bottom: 0; }
.al-views { margin: 14px 0 0; font-weight: 600; }
/* One row, no positioned parts: time and who on the first line, the action sentence at full width under them,
   then the reason. Columns on a desktop keep the same order. */
.al-row { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 4px 12px; }
.al-row::before { left: 18px; }
.al-time { grid-column: 1; grid-row: 1; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.al-who { grid-column: 2; grid-row: 1; min-width: 0; hyphens: none; }
.al-who b { font-weight: 600; white-space: nowrap; }
.al-who .sub { white-space: normal; overflow-wrap: normal; word-break: normal; }
.al-sentence { grid-column: 1 / -1; grid-row: 2; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.al-reason { grid-column: 1 / -1; grid-row: auto; font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--line-2); padding-left: 10px; min-width: 0; overflow-wrap: anywhere; }
/* repeats and disclosure sit under the sentence, in the sentence's column */
.al-repeat { grid-column: 1 / -1; grid-row: 3; font-size: 14px; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.al-noreason { border-left-style: dashed; }
.al-more { grid-column: 1 / -1; font-size: 14px; min-width: 0; }
.al-more summary { cursor: pointer; color: var(--accent-ink); min-height: 24px; }
.al-times, .al-pcs { margin: 6px 0 0; padding-left: 22px; color: var(--ink-2); columns: 1; }
.al-pcs { columns: 2 220px; }
.al-all { margin-left: 8px; font-weight: 500; }
.al-day { padding-left: 18px; }
.al-foot { display: flex; justify-content: center; padding: 16px 0 4px; }
.al-foot .btn { min-width: 160px; min-height: 44px; }
@media (max-width: 640px) {
  .al-f { flex-basis: 100%; max-width: none; }
}
@media (min-width: 900px) {
  .al-row { grid-template-columns: 56px minmax(0, 300px) minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .al-sentence { grid-column: 3; grid-row: 1; }
  .al-repeat { grid-column: 3; grid-row: 2; }
  .al-reason { grid-column: 3; grid-row: auto; }
  .al-more { grid-column: 3; }
}
/* ops */
.ops-looks { list-style: none; margin: 0; padding: 0; }
.ops-look { padding: 16px 18px; display: grid; gap: 6px; border-left: 4px solid var(--warn-mark); }
.ops-look + .ops-look { border-top: 1px solid var(--line); }
.ops-look h3 { font-size: 17px; font-weight: 650; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.ops-why { margin: 0; font-weight: 500; max-width: 62ch; }
.ops-facts { margin: 0; }
.ops-name { display: inline-flex; align-items: center; min-height: 44px; }
.ops-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.ops-cost { display: grid; gap: 12px; }
.ops-cost h3 { font-size: 16px; font-weight: 650; }
.ops-cost-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ops-cost-total { font-size: 28px; font-weight: 650; letter-spacing: -.03em; }
.ops-cost-msg { margin: 0; }
.ops-cost-rows { margin: 0 -18px -6px; }
.ops-runbook { margin: 24px 0 0; max-width: 62ch; }
.ops-name { font-weight: 600; }
.ops-ok .t { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }

/* person page: a leader's screenshots, opened with a reason */
.shots { display: grid; gap: 12px; }
.shots p { margin: 0; max-width: 64ch; }
.shots-lead { color: var(--ink-2); }
.shots-receipt { font-weight: 550; }
.shots-form { display: grid; gap: 14px; }
.shots-form[hidden] { display: none; }
.shots-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 550; color: var(--ink-2); min-width: 0; }
.shots-form label small { font-weight: 450; color: var(--ink-3); }
.shots-form textarea.field { width: 100%; min-height: 76px; resize: vertical; font: inherit; font-weight: 450; color: var(--ink); }
.shots-form select.field, .shots-form input.field { height: 42px; width: 100%; font-weight: 450; color: var(--ink); }
.shots-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shots-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.shots-btns .btn, .shots > div > .btn { min-height: 40px; }
.shots-error { color: var(--crit); background: var(--crit-wash); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.shots-error[hidden] { display: none; }
.shots-count { font-size: 14px; color: var(--ink-2); }
@media (max-width: 600px) { .shots-pick { grid-template-columns: 1fr; } }

/* people & teams: data requests on one person */
.dir-dsr { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.dir-dsr h3 { margin: 0; font-size: 15px; }
.dir-dsr p { margin: 0; color: var(--ink-2); font-size: 14px; }
.dir-dsr .dir-btns .btn { min-height: 40px; }
.dir-dsr-out { display: grid; gap: 6px; background: var(--sunken); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.dir-dsr-out a { font-weight: 600; overflow-wrap: anywhere; }
.dir-dsr-out[hidden] { display: none; }
.dir-erase-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.dir-erase-list b { color: var(--ink); }
