/* Layout, phone first: a floating bar with side-opening menus, one "do this next" card, then one collapsed header per
   table, colored by its most urgent row and sorted red first. Everything else sits behind "Go to". Dark and matte,
   one warm sand accent, so the five urgency colors carry the meaning. Big tap targets everywhere (48px or more). */
:root {
  --bg: #16171b;
  --surface: #202126;
  --surface-2: #28292f;
  --surface-3: #313238;
  --edge: rgba(255, 255, 255, .055);
  --input-edge: #6a6b73; /* a box you type in has a border you can see */
  --fg: #eceae6;
  --muted: #a2a2aa;
  --faint: #9d9ea6;      /* readable on every surface, the lightest included (4.5:1 or better) */
  --accent: #e8dcc8;      /* warm sand: brand mark, primary buttons, focus */
  --accent-ink: #26211a;
  --red: #f0968b;   --red-soft: rgba(240, 150, 139, .13); /* 4.5:1 or better on its own soft fill */
  --yellow: #e6bd62; --yellow-soft: rgba(230, 189, 98, .12);
  --green: #8cc79c; --green-soft: rgba(140, 199, 156, .12);
  --amber: #eb9c62; --amber-soft: rgba(235, 156, 98, .13);
  /* older names, kept for the rules below */
  --late: var(--red); --late-soft: var(--red-soft);
  --accent-soft: var(--yellow-soft);
  --ok: var(--green); --ok-soft: var(--green-soft);
  --lift: 0 1px 0 var(--edge) inset, 0 14px 34px -18px rgba(0, 0, 0, .75);
  --f-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* Anything marked hidden stays hidden, even where a rule below sets display (the demo panel did). */
[hidden] { display: none !important; }
html, body { background: var(--bg); color: var(--fg); }
body { margin: 0; font: 15px/1.55 var(--f-body); min-height: 100vh; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Skip to the work: the first thing a keyboard reaches, shown only when it has focus. */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Background: two boxy robots sparring in a ring. A faint texture behind everything, never competing with the work. */
.bots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .16; }
.bots .mat { fill: #23252b; } .bots .post { fill: #3a3f49; }
.bots .rope { fill: none; stroke: #6b6f78; stroke-width: 5; stroke-linecap: round; } .bots .rope.back { stroke: #4a4e57; stroke-width: 4; }
.bots .shadow { fill: #0e0f12; opacity: .7; }
.bots .shell-a { fill: #4a5361; } .bots .shell-b { fill: #6a5446; }
.bots .panel { fill: #1b1d22; } .bots .visor { fill: #c99a74; } .bots .lamp { fill: #d58f5c; }
.bots .limb { fill: none; stroke: #565c68; stroke-width: 18; stroke-linecap: round; } .bots .b2 .limb { stroke: #6e5a4c; }
.bots .glove { fill: #8d8f98; } .bots .b2 .glove { fill: #a08572; }
.bot { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite; }
.b2 { animation-name: rock; }
.punch { transform-box: fill-box; transform-origin: 0% 50%; animation: jab 3.2s ease-in-out infinite; }
.b2 .head { transform-box: fill-box; transform-origin: 50% 100%; animation: snap 3.2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(6px); } 50% { transform: translateX(12px); } 60% { transform: translateX(0); } }
@keyframes jab { 0%, 38%, 62%, 100% { transform: scaleX(.55); } 48% { transform: scaleX(1.12); } }
@keyframes rock { 0%, 46%, 100% { transform: rotate(0); } 52% { transform: rotate(3deg); } 70% { transform: rotate(0); } }
@keyframes snap { 0%, 46%, 100% { transform: rotate(0); } 52% { transform: rotate(9deg) translateY(-4px); } 72% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .bot, .punch, .b2 .head { animation: none; } }

/* Shell */
.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px 40px; }
.bar { position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 6px;
  background: rgba(32, 33, 38, .94); border-radius: var(--r-lg); box-shadow: var(--lift); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 8px; padding: 0 10px; min-height: 48px; border: 0; background: none; color: var(--fg);
  font: 650 17px var(--f-head); letter-spacing: -.01em; cursor: pointer; border-radius: var(--r); }
.mark { position: relative; width: 22px; height: 22px; }
.mark i { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--accent); }
.mark i:first-child { left: 0; top: 0; } .mark i:last-child { right: 0; bottom: 0; border-color: var(--yellow); }
.menus { display: flex; gap: 6px; flex: 1; min-width: 0; }
.menu { position: relative; min-width: 0; }
.menu-btn { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 48px; padding: 4px 30px 4px 12px; max-width: 100%;
  border: 0; border-radius: var(--r); background: var(--surface-2); color: var(--fg); cursor: pointer; position: relative; text-align: left; }
.menu-k { font: 500 11px var(--f-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.menu-v { font: 600 14px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chev { position: absolute; right: 11px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.menu-btn[aria-expanded="true"] .chev { transform: translateY(-30%) rotate(-135deg); }
.flyout { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 6px; background: var(--surface-2); border-radius: var(--r);
  box-shadow: var(--lift); display: none; }
.menu.open > .flyout { display: block; animation: side-out .22s var(--ease); }
.fly-row { position: relative; }
.fly-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 12px; border: 0;
  background: none; color: var(--fg); font: 500 15px var(--f-body); text-align: left; border-radius: var(--r-sm); cursor: pointer; animation: drop-in .2s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 30ms); }
.fly-item:hover, .fly-item:focus-visible, .fly-row.open > .fly-item { background: var(--surface-3); }
.fly-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fly-item[aria-current]::after { content: "✓"; color: var(--accent); }
.fly-item .sub { width: 7px; height: 7px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); }
.fly-kids { position: absolute; top: -6px; left: calc(100% + 6px); min-width: 220px; padding: 6px; background: var(--surface-3); border-radius: var(--r);
  box-shadow: var(--lift); display: none; z-index: 2; }
.fly-row.open > .fly-kids { display: block; animation: side-out .2s var(--ease); }
.fly-kids.left { left: auto; right: calc(100% + 6px); animation-name: side-out-l; }
.fly-kids .fly-item:hover { background: #3a3b42; }
.fly-sep { height: 1px; margin: 6px 8px; background: var(--edge); }
.icon-btn { flex: none; width: 48px; height: 48px; border: 0; border-radius: var(--r); background: var(--surface-2); color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@keyframes side-out { from { clip-path: inset(0 100% 0 0 round var(--r)); transform: translateX(-6px); } to { clip-path: inset(0 0 0 0 round var(--r)); transform: none; } }
@keyframes side-out-l { from { clip-path: inset(0 0 0 100% round var(--r)); transform: translateX(6px); } to { clip-path: inset(0 0 0 0 round var(--r)); transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.sample-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 10px 14px;
  border-radius: var(--r); background: var(--surface); color: var(--muted); font-size: 14px; box-shadow: var(--lift); }
.note { margin: 12px 0 0; padding: 12px 16px; border-radius: var(--r); background: var(--surface-2); box-shadow: var(--lift); font-size: 15px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.note[hidden] { display: none; }
/* An empty note stays in the page for screen readers, out of sight and taking no room. */
.note.quiet { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; box-shadow: none; }
.note .note-t { flex: 1 1 220px; min-width: 0; }
.note .note-btns { display: flex; gap: 6px; flex: none; margin-left: auto; }
.note .btn { min-height: 44px; }
.note.bad { background: #3a2624; color: #f4c7c0; }
.note.warn { background: #3a3222; color: #f0dcae; }
/* On a computer the Saved and error notes stay pinned under the bar while you scroll. */
@media (min-width: 760px) { .note { position: sticky; top: calc(max(8px, env(safe-area-inset-top)) + 72px); z-index: 19; } }
main { outline: none; }
.foot { margin-top: 28px; text-align: center; color: var(--faint); font-size: 13px; }

/* Type and controls */
h1, h2, h3 { font-family: var(--f-head); font-weight: 650; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.15; }
h2 { font-size: 20px; } h3 { font-size: 16px; }
p { margin: 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .mono { font-family: var(--f-mono); font-size: 13px; }
.hero { margin: 26px 4px 16px; } .hero p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.btn { min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--r); background: var(--surface-3); color: var(--fg); font: 600 15px var(--f-body);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: #3a3b42; } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); } .btn.primary:hover { background: #f2e8d6; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn.link, .link { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 10px 4px; min-height: 44px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=time], input:not([type]), textarea, select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--input-edge); border-radius: var(--r-sm); background: var(--bg); color: var(--fg);
  font: 15px var(--f-body); }
input[type=date], input[type=time] { color-scheme: dark; -webkit-appearance: none; appearance: none; display: block; text-align: left; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }
textarea { resize: vertical; min-height: 80px; }
label.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card { margin: 14px 0; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--lift); }
.card > h2 + p, .card > h3 + p { margin-top: 6px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.stack > * + * { margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font: 500 13px var(--f-mono); background: var(--surface-3); color: var(--muted); white-space: nowrap; }

/* Urgency: five steps. Overdue pulses so it can't be missed; the motion stops for people who ask for less. */
.lv-green { --c: var(--green); --cs: var(--green-soft); }
.lv-yellow { --c: var(--yellow); --cs: var(--yellow-soft); }
.lv-amber { --c: var(--amber); --cs: var(--amber-soft); }
.lv-red, .lv-overdue { --c: var(--red); --cs: var(--red-soft); }
.clock { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 99px; background: var(--cs, var(--surface-3)); color: var(--c, var(--muted));
  font: 500 13px var(--f-mono); white-space: nowrap; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--faint)); }
.lv-overdue .dot, .lv-overdue.dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 125, 113, .55); } 60% { box-shadow: 0 0 0 9px rgba(226, 125, 113, 0); } }

/* One-line forms (spec lookup, where is it) */
.capture { display: flex; gap: 8px; margin: 14px 0; }
.capture input { flex: 1; }

/* Home: the app name, the job and the headers. Nothing else. */
.lv-none { --c: #5a5b63; --cs: rgba(255, 255, 255, .025); }
.job { flex: 1; min-width: 0; padding: 0 6px; display: none; }
.job-1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.job-no { flex: none; font: 500 13px var(--f-mono); color: var(--accent); }
.job-nm { font: 600 15px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-at { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.home .job { display: block; }
body.home .menu[data-menu="project"], body.home .bar > .icon-btn, body.home .foot { display: none; }
body.home .menus { flex: none; }
body.home .menu[data-menu="go"] .menu-btn { width: 48px; padding: 0; align-items: center; }
body.home .menu[data-menu="go"] .menu-k, body.home .menu[data-menu="go"] .menu-v, body.home .menu[data-menu="go"] .chev { display: none; }
body.home .menu[data-menu="go"] .flyout { left: auto; right: 0; }
.burger { display: none; width: 18px; } .burger i { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--fg); }
body.home .burger { display: block; }
@media (min-width: 900px) { body.home .wrap { max-width: 1180px; } }

/* Headers down the left */
.board { display: grid; grid-template-columns: minmax(124px, 36%) minmax(0, 1fr); gap: 12px; margin-top: 16px; align-items: start; }
@media (min-width: 900px) { .board { grid-template-columns: 300px minmax(0, 1fr); gap: 18px; } }
.heads { position: relative; display: grid; gap: 6px; }
.head { position: relative; display: grid; gap: 2px; width: 100%; min-height: 56px; padding: 9px 14px 9px 16px; border: 0; border-radius: var(--r);
  background: linear-gradient(90deg, var(--cs), var(--surface) 85%); box-shadow: var(--lift); color: var(--fg); text-align: left; font: inherit; cursor: pointer;
  border-left: 5px solid var(--c); transition: background .2s var(--ease), transform .2s var(--ease); }
.head:hover { transform: translateX(2px); }
.head .name { font: 650 15px var(--f-head); line-height: 1.2; overflow-wrap: anywhere; }
.head .count { color: var(--muted); font-size: 13px; }
.head.lv-none .name { color: var(--muted); font-weight: 500; }
.head.lv-none { box-shadow: none; }
.head[aria-pressed="true"] { background: var(--surface-3); transform: translateX(4px); }
.head[aria-pressed="true"]::after { content: ""; position: absolute; right: -9px; top: 50%; width: 14px; height: 14px; margin-top: -7px; transform: rotate(45deg);
  background: var(--surface-3); border-radius: 2px; }
.head.lv-overdue { animation: late-glow 2.4s ease-in-out infinite; }
@keyframes late-glow { 0%, 100% { box-shadow: var(--lift); } 50% { box-shadow: var(--lift), -4px 0 18px -6px rgba(226, 125, 113, .7); } }

/* Hover a header and its steps line up to the right, level with it, in one row of chevrons colored by what's inside */
.pane { position: relative; min-width: 0; }
.fly { min-width: 0; animation: side-out .22s var(--ease); }
.chevs { position: relative; display: flex; flex-wrap: nowrap; align-items: stretch; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: none; padding: 2px 0; }
.chevs::-webkit-scrollbar { display: none; }
.chevs.more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.chevron { --notch: 14px; position: relative; flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 52px;
  margin-left: calc(var(--notch) * -1 + 4px); padding: 0 calc(var(--notch) + 14px) 0 calc(var(--notch) + 14px);
  border: 0; background: var(--cs, var(--surface-2)); color: var(--c); font: 600 14px var(--f-body); cursor: pointer; white-space: nowrap; scroll-snap-align: start;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%, var(--notch) 50%);
  animation: chev-in .26s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); transition: background .15s var(--ease), filter .15s var(--ease); }
@keyframes chev-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.chevron.first { margin-left: 0; padding-left: 18px; border-radius: var(--r-sm) 0 0 var(--r-sm);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%); }
.chevron.lv-none { background: var(--surface); }
.chevron .nm { color: var(--fg); }
.chevron.lv-none .nm { color: var(--faint); font-weight: 500; }
.chevron .n { min-width: 24px; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, .3); color: var(--c, var(--faint)); font: 500 12px var(--f-mono); text-align: center; }
.chevron:hover, .chevron:focus-visible { filter: brightness(1.22); }
.chevron:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.chevron:focus-visible .nm { text-decoration: underline; text-underline-offset: 4px; }
.chevron[aria-expanded="true"] { background: var(--c, var(--surface-3)); filter: none; }
.chevron.lv-none[aria-expanded="true"] { background: var(--surface-3); }
.chevron[aria-expanded="true"]:not(.lv-none) .nm, .chevron[aria-expanded="true"]:not(.lv-none) .n { color: #17181c; }
.chevron[aria-expanded="true"] .n { background: rgba(255, 255, 255, .34); }
.chevron.lv-overdue:not([aria-expanded="true"]) { animation: chev-in .26s var(--ease) both, chev-pulse 1.8s ease-in-out infinite; }
@keyframes chev-pulse { 50% { background: rgba(226, 125, 113, .28); } }

/* Hover a chevron and its tasks drop down right under it, each colored by its own clock */
.drop-panel { position: relative; margin-top: 14px; padding: 10px; border-radius: var(--r); background: var(--surface); box-shadow: var(--lift);
  border-top: 3px solid var(--c, var(--surface-3)); animation: drop-in .2s var(--ease); }
.drop-panel::before { content: ""; position: absolute; top: -10px; left: var(--caret, 40px); margin-left: -8px; border: 8px solid transparent; border-top: 0;
  border-bottom: 8px solid var(--c, var(--surface-3)); }
.drop-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 6px 8px; }
.drop-k { font: 650 15px var(--f-head); }
.drop-n { font: 500 12px var(--f-mono); color: var(--muted); }
.drop { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.drop > li { animation: drop-in .22s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.drop .empty { padding: 10px 6px 6px; color: var(--faint); }
.item { display: grid; gap: 4px; width: 100%; min-height: 64px; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--surface-2); color: var(--fg);
  text-align: left; font: inherit; cursor: pointer; border-left: 4px solid var(--c, transparent); }
.drop .item { background: linear-gradient(90deg, var(--cs), var(--surface-2) 70%); box-shadow: var(--lift); }
@media (max-width: 520px) {
  .board { gap: 10px; } .head { padding: 8px 10px 8px 12px; } .head .name { font-size: 14px; }
  .chevron { --notch: 10px; min-height: 46px; gap: 7px; font-size: 13px; padding: 0 calc(var(--notch) + 10px); }
  .chevron.first { padding-left: 12px; }
  .drop-panel { padding: 8px; }
  body.home .brand { font-size: 15px; gap: 6px; }
}
.item:hover { background: var(--surface-3); }
.item .t { font-weight: 600; } .item .s { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 14px; }
.item .ball { color: var(--fg); } .item .ball b { color: var(--accent); font-weight: 600; }
.badge { padding: 2px 8px; border-radius: 6px; font: 500 12px var(--f-mono); background: var(--yellow-soft); color: var(--yellow); }

/* Lists in panels */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.entry { padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.entry .t { font-weight: 600; } .entry .why { margin-top: 4px; color: var(--muted); font-size: 14px; }
.entry .who { margin-top: 6px; font-size: 14px; }
.ok { color: var(--green); } .gap { color: var(--yellow); } .bad { color: var(--red); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; } .kv dt { color: var(--faint); } .kv dd { margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: var(--surface-2); min-height: 56px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.cite { margin-top: 4px; font: 500 13px var(--f-mono); color: var(--faint); }
pre.spec { white-space: pre-wrap; margin: 8px 0 0; padding: 12px; border-radius: var(--r-sm); background: var(--bg); font: 13px/1.5 var(--f-mono); color: var(--muted); }
.phase { margin: 14px 0 6px; font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.diamond { display: inline-block; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); margin-right: 6px; }
.steps { display: flex; gap: 6px; margin: 8px 0 14px; } .steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); } .steps span.on { background: var(--accent); }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1px solid var(--edge);
  border-radius: var(--r); background: var(--surface-2); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-3); }
.choice:disabled { opacity: .55; cursor: not-allowed; }
.grid2 { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; } table.mini th, table.mini td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--edge); vertical-align: top; }
table.mini th { color: var(--faint); font-weight: 500; } .scroll { overflow-x: auto; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch input { width: 48px; height: 28px; accent-color: var(--green); flex: none; }

/* Detail sheet: slides up from the bottom on a phone, sits centred on a wide screen. */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(8, 8, 10, .6); }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; padding: 8px 18px max(22px, env(safe-area-inset-bottom));
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px -20px #000; animation: rise .25s var(--ease); }
@media (min-width: 760px) { .sheet { left: 50%; width: 640px; margin-left: -320px; bottom: 6vh; border-radius: 22px; } }
.sheet-grip { width: 44px; height: 5px; margin: 4px auto 14px; border-radius: 3px; background: var(--surface-3); }
@keyframes rise { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* The demo: a full-screen story that plays itself, then hands over to the sample job. */
.demo { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: 1fr auto auto; background: var(--bg); padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.demo-stage { display: grid; place-items: center; overflow: hidden; }
.demo-cap { max-width: 640px; margin: 10px auto; min-height: 3.2em; text-align: center; font: 600 18px/1.45 var(--f-body); color: var(--fg); }
.demo-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.demo-prog { flex: 1 1 100%; max-width: 640px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; margin-bottom: 6px; }
.demo-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.scene { width: min(640px, 100%); animation: drop-in .45s var(--ease); }
.scene .big { font: 650 clamp(26px, 6.5vw, 40px)/1.15 var(--f-head); text-align: center; }
.demo-board { grid-template-columns: 132px minmax(0, 1fr) !important; } .demo-board .chevron { animation: none; }
.scene .sub { margin-top: 14px; text-align: center; color: var(--muted); font-size: 17px; }
.phone { width: 280px; margin: 0 auto; padding: 16px 14px 22px; border-radius: 34px; background: #0f1013; border: 2px solid var(--surface-3); }
.phone .from { text-align: center; font: 500 12px var(--f-mono); color: var(--faint); margin-bottom: 12px; }
.bubble-in, .bubble-out { max-width: 86%; padding: 10px 13px; border-radius: 18px; font-size: 15px; margin: 6px 0; animation: drop-in .35s var(--ease) both; }
.bubble-in { background: var(--surface-3); border-bottom-left-radius: 6px; }
.bubble-out { margin-left: auto; background: #3c6e53; border-bottom-right-radius: 6px; }
.chain { display: grid; gap: 8px; }
.chain div { padding: 14px; border-radius: var(--r); background: var(--surface-2); color: var(--faint); transition: all .4s var(--ease); }
.chain div.on { background: var(--red-soft); color: var(--fg); }
.chain div.on b { color: var(--red); }

@media (max-width: 759.98px) {
  .menu-k { display: none; } .menu-btn { min-height: 48px; padding-right: 26px; } .brand { padding: 0 11px; font-size: 0; gap: 0; min-width: 48px; justify-content: center; }
  .fly-kids { position: static; margin: 4px 0 4px 12px; box-shadow: none; background: var(--surface-3); }
}
/* Voice entry: a mic inside every box you'd type in (web/voice.js). Tap it, talk, check the words, then save as usual. */
.voice { position: relative; display: block; width: 100%; min-width: 0; }
.capture .voice, .switch > .voice { flex: 1; }
.voice > input, .voice > textarea { padding-right: 54px; }
.mic { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.voice-area .mic { top: 2px; transform: none; }
.mic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mic:hover { color: var(--fg); background: var(--surface-3); }
.mic:disabled { opacity: .4; cursor: not-allowed; }
.mic.on { color: #fff; background: #c4473c; animation: pulse 1.6s ease-in-out infinite; }
.sheet-x { display: none; }

/* Phones and small tablets only. Wider screens keep the computer look exactly as it was. */
@media (max-width: 759.98px) {
  /* 16px text stops iPhone Safari zooming the page every time a box is tapped. */
  input[type=text], input[type=search], input[type=number], input[type=date], input[type=time], input:not([type]), textarea, select { font-size: 16px; }
  /* The menus open full width under the bar instead of running off the right edge, and scroll on short screens. */
  .menu { position: static; }
  .flyout { left: 6px; right: 6px; min-width: 0; max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
  /* Saved and error messages float just under the bar, so they show wherever you are on the page. */
  .note { position: fixed; z-index: 50; left: 12px; right: 12px; top: calc(max(8px, env(safe-area-inset-top)) + 70px); margin: 0; box-shadow: 0 12px 30px -10px #000; }
  /* The sheet sits above the keyboard, and has a close button you can reach with a thumb. */
  .sheet { bottom: var(--kb, 0px); max-height: calc(88dvh - var(--kb, 0px)); }
  .sheet-x { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
    background: var(--surface-2); color: var(--fg); font: 400 28px/1 var(--f-body); cursor: pointer; z-index: 1; }
  #sheet-body > h2:first-child { padding-right: 52px; }
  /* Table headers: the count goes on its own line under the name, so neither gets squeezed. */
  .tbl-h { display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 2px; }
  .tbl-h .dot { grid-column: 1; grid-row: 1; } .tbl-h .name { grid-column: 2; grid-row: 1; }
  .tbl-h .count { grid-column: 2; grid-row: 2; white-space: normal; }
  .tbl-h .chev { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  /* Buttons in a list or a sheet share the row evenly and stack when they don't fit, instead of wrapping ragged. */
  .entry .row-btns > .btn, .sheet .row-btns > .btn:not(.link) { flex: 1 1 140px; }
}

/* Mark up a sheet: a big drawing area, big tool buttons, two fingers to zoom. Only these new classes; nothing else changes. */
.mk-pick { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; cursor: pointer; }
.mk-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.mk-file { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.mk-info { margin-top: 10px; font-size: 14px; overflow-wrap: anywhere; }
.mk-pages { align-items: center; }
.mk-plabel { font-size: 14px; color: var(--muted); padding: 0 4px; }
.mk-pnum { width: 96px !important; flex: 0 0 auto; }
/* The page box gets a mic like every box; its wrapper must not take the whole row. */
.mk-pages .voice { flex: 0 0 120px; width: 120px; }
.mk-pages .voice > .mk-pnum { width: 100% !important; }
.mk-card { padding: 12px; }
.mk-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-tool { flex: 1 1 64px; min-height: 52px; padding: 0 10px; }
.mk-tool[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.mk-colors { display: flex; gap: 10px; margin-top: 8px; }
.mk-color { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 3px solid transparent; }
.mk-color[aria-pressed="true"] { border-color: var(--bg); box-shadow: 0 0 0 3px var(--fg); }
.mk-color-red { background: #e2453a; }
.mk-color-blue { background: #2f7de1; }
.mk-color-green { background: #25a35a; }
.mk-color-black { background: #1b1b1b; outline: 1px solid var(--muted); }
.mk-hint { margin: 8px 2px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.mk-stage { position: relative; height: 560px; border-radius: var(--r); background: var(--surface-3); overflow: hidden; }
.mk-canvas { display: block; width: 100%; height: 100%; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: crosshair; }
.mk-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); pointer-events: none; }
.mk-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.mk-z { min-height: 48px; min-width: 52px; padding: 0 12px; background: rgba(22, 23, 27, .82); }
.mk-sum { margin: 8px 2px 0; font-size: 14px; }
.mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.mk-screen label.field + label.field, .mk-screen .mk-two + label.field { margin-top: 10px; }
.mk-small { font-size: 13px; margin-top: 6px; }
.mk-send { flex: 1 1 200px; min-height: 56px; font-size: 16px; }
.mk-pic { display: block; width: 100%; height: auto; margin: 10px 0; border-radius: var(--r-sm); background: #fff; }
@media (max-width: 759.98px) {
  .mk-stage { height: max(320px, min(60vh, 620px)); height: max(320px, min(60dvh, 620px)); }
  .mk-two { grid-template-columns: 1fr; }
  .mk-pages .btn { flex: 1 1 120px; }
}
/* Job photos: big pick buttons, the photo full width, a plain spot map. Only these new classes; nothing else changes. */
.ph-pick { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 180px; min-height: 56px; cursor: pointer; }
.ph-preview { margin-top: 14px; }
.ph-preview label.field { margin-top: 10px; }
.ph-img { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: var(--r-sm); background: var(--surface-3); }
.ph-line { margin: 8px 2px 0; overflow-wrap: anywhere; }
.ph-switch p + p { margin-top: 6px; }
.ph-roles { display: grid; gap: 8px; margin: 10px 0; }
.ph-map { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--surface-3); }
.ph-pin { fill: var(--accent); stroke: var(--accent-ink); stroke-width: 2; cursor: pointer; }
.ph-pin.mk { fill: var(--red); cursor: default; }
.ph-north { fill: var(--muted); font-size: 12px; text-anchor: end; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* The Stop the moving pictures switch: the same, on any phone. */
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
.foot[hidden] { display: none; }
/* Saves kept on the phone with no signal: two small pills under the bar. */
.save-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.save-pills[hidden] { display: none; }
.pill-btn { border-radius: 99px; font: 500 14px var(--f-mono); }
.pill-btn.wait { background: var(--yellow-soft); color: var(--yellow); }
.pill-btn.needs { background: var(--red-soft); color: var(--red); }
/* A suggested date waiting for the PM, under the due line. */
.suggest { margin: 4px 8px 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--yellow-soft); }
.suggest-t { margin: 0; color: var(--yellow); font-size: 14px; }
.suggest .row-btns { margin-top: 8px; }
.kv dd .suggest { margin: 0; }
/* Messages for you, and who has seen a record's notices. */
.msgs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.msg { display: grid; gap: 4px; width: 100%; min-height: 44px; text-align: left; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--edge);
  background: var(--surface-2); color: var(--fg); font: inherit; cursor: pointer; }
.msg.new { border-left: 4px solid var(--yellow); }
.msg .t { font-weight: 600; }
.msg .s { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg-body { white-space: pre-wrap; }
.seen { margin-top: 18px; }
.lang-row { margin-top: 10px; }
.lang-row select, .field select { min-height: 44px; }

/* ---- Polish: a dark matte base with thin brushed-metal edges. Only looks change here: no layout, no new parts. ----
   The edge is a 1px gradient border (light on top, dark at the bottom), the way light catches a machined edge. */
:root {
  --chrome: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, .02) 62%, rgba(0, 0, 0, .35));
  --chrome-hi: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08) 40%, rgba(0, 0, 0, .3));
  --brushed: repeating-linear-gradient(90deg, rgba(255, 255, 255, .011) 0 1px, transparent 1px 3px);
  --lift: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 rgba(0, 0, 0, .35), 0 14px 34px -18px rgba(0, 0, 0, .8);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
}
/* A faint grain on the page so the dark reads as matte, not flat. */
body { background: radial-gradient(1200px 600px at 50% -200px, rgba(232, 220, 200, .045), transparent 70%), var(--bg); }
.bar, .card, .drop-panel, .flyout, .fly-kids, .sheet, .sample-bar, .note, .entry, .msg, .check, .choice {
  border: 1px solid transparent; }
.bar { background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 60%) padding-box, var(--brushed) padding-box,
  linear-gradient(rgba(32, 33, 38, .94), rgba(32, 33, 38, .94)) padding-box, var(--chrome-hi) border-box; }
.card, .drop-panel, .sample-bar { background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 40%) padding-box, linear-gradient(var(--surface), var(--surface)) padding-box, var(--chrome) border-box; }
.drop-panel { border-top: 3px solid var(--c, var(--surface-3)); }
.flyout, .entry, .msg, .check, .choice, .note { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--chrome) border-box; }
.fly-kids { background: linear-gradient(var(--surface-3), var(--surface-3)) padding-box, var(--chrome) border-box; }
.note.bad { background: linear-gradient(#3a2624, #3a2624) padding-box, var(--chrome) border-box; }
.note.warn { background: linear-gradient(#3a3222, #3a3222) padding-box, var(--chrome) border-box; }
.choice[aria-pressed="true"] { background: linear-gradient(var(--surface-3), var(--surface-3)) padding-box, linear-gradient(var(--accent), var(--accent)) border-box; }
.msg.new { border-left: 4px solid var(--yellow); }
.sheet { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--chrome-hi) border-box; border-bottom: 0; }
/* Headers: the colored stripe stays; the rest of the edge is metal. */
.head { border: 1px solid transparent; border-left: 5px solid var(--c);
  background: linear-gradient(90deg, var(--cs), transparent 85%) padding-box, linear-gradient(var(--surface), var(--surface)) padding-box, var(--chrome) border-box; }
.head:hover { background: linear-gradient(90deg, var(--cs), transparent 85%) padding-box, linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--chrome-hi) border-box; }
.head[aria-pressed="true"] { background: linear-gradient(var(--surface-3), var(--surface-3)) padding-box, var(--chrome-hi) border-box; }
.head.lv-none { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .02)) border-box; }
.item { border: 1px solid transparent; border-left: 4px solid var(--c, transparent); background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--chrome) border-box; }
.drop .item { background: linear-gradient(90deg, var(--cs), transparent 70%) padding-box, linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--chrome) border-box; }
.item:hover { background: linear-gradient(var(--surface-3), var(--surface-3)) padding-box, var(--chrome-hi) border-box; }
/* Buttons: a soft top light, a pressed state you can feel, and focus that is always visible. */
.btn, .icon-btn, .menu-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 0 rgba(0, 0, 0, .3);
  transition: background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease); }
.btn:active:not(:disabled), .icon-btn:active, .menu-btn:active, .chevron:active, .head:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: linear-gradient(180deg, #f1e7d6, var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 0 rgba(0, 0, 0, .35), 0 8px 18px -10px rgba(232, 220, 200, .45); }
.btn.primary:hover { background: linear-gradient(180deg, #f7efe2, #ede2cf); }
.btn.link, .link { box-shadow: none; }
.btn.danger { box-shadow: inset 0 0 0 1px rgba(238, 144, 133, .28); }
/* Type: one scale, numbers that line up, headings a touch tighter. */
.card > h2 { font-size: 19px; letter-spacing: -.02em; }
.card > h2 + p { color: var(--muted); }
.count, .n, .drop-n, .clock, .pill, .badge, .cite, .job-no, .menu-k { font-variant-numeric: tabular-nums; }
.card { padding: var(--s4) calc(var(--s4) + 2px); }
.row-btns { gap: var(--s2); }
/* Brand mark and job line: a little metal on the name. */
.brand { background: linear-gradient(180deg, #f6f2ea, #c9c3b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .mark { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.job-no { padding: 1px 6px; border-radius: 6px; background: rgba(232, 220, 200, .08); box-shadow: inset 0 0 0 1px rgba(232, 220, 200, .16); }
/* Chevrons: a hairline of light along the top so each step reads as a solid piece. */
.chevron { background-image: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 45%, rgba(0, 0, 0, .12)); }
.chevron.lv-none { background-color: var(--surface); }
.chevron[aria-expanded="true"] { background-image: linear-gradient(180deg, rgba(255, 255, 255, .3), transparent 55%); }
/* Icons: crisp lines at every size. */
.icon-btn svg, .mic svg { shape-rendering: geometricPrecision; stroke-width: 2; stroke-linejoin: round; }
/* Empty and loading states: quiet, centered, never a blank box. */
.drop .empty { display: grid; place-items: center; gap: 4px; min-height: 72px; padding: 14px; text-align: center; border-radius: var(--r);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 8px, transparent 8px 16px); }
.loading { display: block; position: relative; color: transparent !important; border-radius: var(--r-sm); min-height: 44px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* Urgency colors stay readable: the late pulse uses the new red. */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(238, 144, 133, .55); } 60% { box-shadow: 0 0 0 9px rgba(238, 144, 133, 0); } }
@keyframes late-glow { 0%, 100% { box-shadow: var(--lift); } 50% { box-shadow: var(--lift), -4px 0 18px -6px rgba(238, 144, 133, .7); } }
@keyframes chev-pulse { 50% { background-color: rgba(238, 144, 133, .28); } }
/* The suggested sheet number on a markup. */
.mk-suggest { align-items: center; margin-top: 6px; }
.mk-suggest[hidden] { display: none; }
/* Less motion when asked for: nothing slides, pulses or shimmers. Colors still carry the urgency. */
@media (prefers-reduced-motion: reduce) { .loading { animation: none; } .btn:active, .head:active, .chevron:active { transform: none; } }
/* A sheet on a phone keeps its metal top edge only. */
@media (max-width: 759.98px) { .sheet { border-left: 0; border-right: 0; } }

/* ---- Phones: the traffic-light board (design B, with a chrome finish). Wider screens never see any of this. ----
   The job on top, then one solid red, yellow or green band per list, worst first. Nothing moves or flashes; a band
   opens only when it's tapped. Dark is the default; Sun is a bright look for reading outdoors, kept on the phone. */
@media (max-width: 759.98px) {
  :root {
    --rb1: #ec8b7f; --rb2: #d4685a; --rb-deep: #9a3427; --on-rb: #1c0f0c;
    --yb1: #f3d07a; --yb2: #dfac43; --yb-deep: #7a5200; --on-yb: #1d1606;
    --gb1: #a2d6b0; --gb2: #6aab7c; --gb-deep: #245c35; --on-gb: #0e1a11;
    --qb1: #34353c; --qb2: #2a2b31; --on-qb: #b9b8c0;
    --r-ink: #f29a8f; --y-ink: #f2cf80; --g-ink: #a9dcb6;
    --band-sh: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .35), 0 10px 20px -12px rgba(0, 0, 0, .85);
    --chrome-txt: linear-gradient(180deg, #ffffff 0%, #b9bdc4 52%, #eef0f2 100%);
    --hair: rgba(255, 255, 255, .22);
  }
  /* The bar on the board: the name in chrome on the left, the menu on the right. The job moves down to the page. */
  body.home .bar .job { display: none; }
  body.home .menus { flex: 1; justify-content: flex-end; }
  body.home .brand { font: 650 14px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; gap: 8px; padding: 0 10px; background: var(--chrome-txt);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
  body.home .board { display: none; }

  .bhead { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 2px 22px; }
  .bhead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: linear-gradient(90deg, transparent, var(--hair) 20%, var(--hair) 80%, transparent); }
  .bjob { min-width: 0; }
  .bno { display: block; width: max-content; max-width: 100%; margin-bottom: 8px; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--edge);
    background: var(--surface); font: 500 14px/1 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
  .bname { margin: 0; font: 650 25px/1.15 var(--f-head); letter-spacing: -.01em; overflow-wrap: anywhere; }
  .bloc { margin-top: 3px; color: var(--muted); font-size: 15px; }
  .bsun { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--fg);
    background: linear-gradient(180deg, var(--surface-2), var(--bg)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px var(--edge), 0 5px 12px -7px rgba(0, 0, 0, .7); }
  .bsun svg, .band .sq svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

  .bands { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
  .band { position: relative; overflow: hidden; width: 100%; min-height: 82px; border: 0; border-radius: 20px; padding: 0 12px; display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 10px; gap: 10px; align-items: center; text-align: left; font: inherit; cursor: pointer; box-shadow: var(--band-sh); }
  .band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .1) 45%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, .06) 100%); }
  .band > * { position: relative; }
  .band.r { background: linear-gradient(180deg, var(--rb1), var(--rb2)); color: var(--on-rb); }
  .band.y { background: linear-gradient(180deg, var(--yb1), var(--yb2)); color: var(--on-yb); }
  .band.g { background: linear-gradient(180deg, var(--gb1), var(--gb2)); color: var(--on-gb); }
  .band.q { min-height: 64px; background: linear-gradient(180deg, var(--qb1), var(--qb2)); color: var(--on-qb); box-shadow: 0 0 0 1px var(--edge); }
  .band.q::before { opacity: .25; }
  .band .sq { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(160deg, #fdfdfe 0%, #d9dce1 40%, #a7acb4 55%, #eceef1 100%);
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .18), 0 3px 8px -3px rgba(0, 0, 0, .5); }
  .band.q .sq { width: 40px; height: 40px; border-radius: 12px; justify-self: center; color: #5b5e66; }
  .band.r .sq { color: var(--rb-deep); } .band.y .sq { color: var(--yb-deep); } .band.g .sq { color: var(--gb-deep); }
  .band .sq svg { stroke-width: 2.2; }
  .bn { font: 650 19px/1.15 var(--f-head); letter-spacing: -.01em; overflow-wrap: anywhere; }
  .band.q .bn { font-size: 17px; }
  .bw { font: 600 12px/1.15 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; text-align: right; white-space: nowrap; }
  .bw small { display: block; margin-bottom: 3px; font: 500 26px/1 var(--f-mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .band.q .bw small { font-size: 20px; }
  .band .cv { width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); opacity: .75; }
  .band[aria-expanded="true"] { border-radius: 20px 20px 8px 8px; }
  .band[aria-expanded="true"] .cv { transform: rotate(45deg) translate(-2px, -2px); }
  .band:focus-visible, .bchev:focus-visible, .bitm:focus-visible, .bsun:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
  .band:active { transform: translateY(1px); }

  /* Under an open band: its steps as chevrons, then the items at the step you tap. */
  .bpanel { margin-top: -8px; padding: 16px 12px 12px; border-radius: 0 0 18px 18px; background: var(--surface);
    box-shadow: 0 0 0 1px var(--edge), 0 12px 24px -16px rgba(0, 0, 0, .8); }
  .bchevs { display: flex; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .bchevs::-webkit-scrollbar { display: none; }
  .bchev { flex: 1 0 84px; min-width: 84px; min-height: 58px; margin-left: -7px; padding: 6px 4px 6px 13px; border: 0; cursor: pointer; font: inherit;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%, 11px 50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 55%); }
  .bchev:first-child { margin-left: 0; padding-left: 6px; border-radius: 10px 0 0 10px; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%); }
  .bchev b { font: 500 17px/1.1 var(--f-mono); }
  .bchev span { font-size: 12.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bchev.r { background-color: var(--rb2); color: var(--on-rb); }
  .bchev.y { background-color: var(--yb2); color: var(--on-yb); }
  .bchev.g { background-color: var(--gb2); color: var(--on-gb); }
  .bchevs.sel .bchev:not([aria-pressed="true"]) { opacity: .42; }
  .bhint, .bnone { margin: 0; padding: 12px 2px 2px; color: var(--muted); font-size: 14.5px; }
  .bitems { list-style: none; margin: 10px 0 0; padding: 0; }
  .bitems li { border-top: 1px solid var(--edge); }
  .bitems li:first-child { border-top: 0; }
  .bitm { width: 100%; min-height: 52px; padding: 13px 2px; border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; text-align: left;
    display: grid; grid-template-columns: 14px minmax(0, 1fr) 12px; gap: 12px; align-items: start; }
  .bdot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; }
  .bdot.r { background: var(--rb2); } .bdot.y { background: var(--yb2); } .bdot.g { background: var(--gb2); }
  .btxt { min-width: 0; }
  .bit { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
  .bwho { display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; }
  .bwho .r { color: var(--r-ink); font-weight: 600; } .bwho .y { color: var(--y-ink); font-weight: 600; } .bwho .g { color: var(--g-ink); font-weight: 600; }
  .cv2 { width: 8px; height: 8px; margin-top: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
  .bitm[aria-expanded="true"] .cv2 { transform: rotate(-135deg); margin-top: 10px; }
  .bcard { margin: 0 0 14px; padding: 14px 14px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--edge); display: grid; gap: 12px; }
  .bdet { margin: 0; display: grid; gap: 12px; }
  .bdet div { display: grid; gap: 3px; }
  .bdet dt { font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .bdet dd { margin: 0; font-size: 15px; line-height: 1.38; overflow-wrap: anywhere; }
  .bopen { justify-self: start; min-height: 48px; }
  .bquiet { list-style: none; margin: 0; padding: 0; display: grid; }
  .bquiet li { padding: 11px 2px; border-top: 1px solid var(--edge); color: var(--muted); font-size: 15px; }
  .bquiet li:first-child { border-top: 0; }

  /* Sun: bright, high-contrast colors for reading in daylight. Same layout; only colors change. */
  html.sun {
    --bg: #fbfaf7; --surface: #f1eee8; --surface-2: #e8e4dc; --surface-3: #ddd8ce; --edge: rgba(20, 18, 14, .12); --input-edge: #8a857b;
    --fg: #14120e; --muted: #46433c; --faint: #57534b; --accent: #6b4f22; --accent-ink: #ffffff;
    --red: #b02a17; --red-soft: #fbe5e0; --yellow: #7a5200; --yellow-soft: #fcf0cc; --green: #19693a; --green-soft: #dff0e5; --amber: #8f430c; --amber-soft: #fde6d4;
    --rb1: #d4432f; --rb2: #ad2a1a; --rb-deep: #ad2a1a; --on-rb: #ffffff;
    --yb1: #f7c632; --yb2: #e3a400; --yb-deep: #6b4600; --on-yb: #1d1606;
    --gb1: #22804a; --gb2: #1a6b3c; --gb-deep: #1a6b3c; --on-gb: #ffffff;
    --qb1: #ece8e0; --qb2: #e2ddd3; --on-qb: #46433c;
    --r-ink: #9b210e; --y-ink: #6b4600; --g-ink: #135a31;
    --band-sh: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 0 0 1px rgba(0, 0, 0, .08), 0 8px 16px -10px rgba(70, 45, 20, .45);
    --chrome-txt: linear-gradient(180deg, #6d737c 0%, #22262b 52%, #7b818a 100%);
    --hair: rgba(0, 0, 0, .18);
    --chrome: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .1));
    --chrome-hi: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .14));
    --lift: 0 1px 2px rgba(60, 40, 20, .08), 0 10px 24px -16px rgba(60, 40, 20, .35);
    color-scheme: light;
  }
  html.sun body { background: var(--bg); }
  html.sun .bots { opacity: .05; }
  html.sun body::before { background: var(--bg); }
  html.sun .bar { background: linear-gradient(rgba(251, 250, 247, .94), rgba(251, 250, 247, .94)) padding-box, var(--chrome-hi) border-box; }
  html.sun .brand { background: var(--chrome-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
  html.sun .burger i { background: var(--fg); }
  html.sun .btn.primary { background: linear-gradient(180deg, #84652f, var(--accent)); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
  html.sun .note.bad { background: linear-gradient(var(--red-soft), var(--red-soft)) padding-box, var(--chrome) border-box; color: #7a1a0c; }
  html.sun .note.warn { background: linear-gradient(var(--yellow-soft), var(--yellow-soft)) padding-box, var(--chrome) border-box; color: #5a3d00; }
  html.sun .sheet-back { background: rgba(20, 18, 14, .35); }
  html.sun .band.q .sq { color: #46433c; }
  html.sun .bcard { background: var(--bg); }
  html.sun .bsun { background: linear-gradient(180deg, #ffffff, var(--surface)); box-shadow: 0 0 0 1px var(--edge), 0 4px 10px -6px rgba(60, 40, 20, .45); }
}
/* The response spot: calm, one column, nothing moves on its own. */
.resp { display: grid; gap: 14px; margin-top: 12px; }
.resp-pick { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.resp-pick legend { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.resp-pick .check input { accent-color: var(--accent); }
.resp-earlier summary { cursor: pointer; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.resp textarea { min-height: 140px; }
/* The schedule as bars (web/gantt.js). Solid red, yellow and green, nothing flashing. The names stay pinned on the left
   while the bars scroll sideways; the whole chart scrolls as one, so the rows always line up. */
.g-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.g-h { border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; color: #14110f; }
.g-h b { font: 700 22px/1 var(--f-head); } .g-h span { font-size: 13px; font-weight: 600; }
.g-h.red { background: var(--red); } .g-h.yellow { background: var(--yellow); } .g-h.green { background: var(--green); }
.g-card { padding: 8px 0; }
.gantt { --dw: 26px; }
.g-zoom { display: inline-flex; gap: 2px; margin: 0 0 10px; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.g-zb { min-height: 40px; min-width: 72px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--fg); font: 600 14px var(--f-body); cursor: pointer; }
.g-zb[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.g-zb:focus-visible { outline: 3px solid var(--fg); outline-offset: 1px; }
.g-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.g-inner { position: relative; min-width: 100%; padding-bottom: 4px; }
/* Weekends shaded, so whole days are easy to see while sliding. The chart always starts on a Monday. */
.g-inner.g-fine { background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--dw) * 5), var(--surface-2) calc(var(--dw) * 5) calc(var(--dw) * 7)); }
.g-ruler { position: relative; height: 26px; border-bottom: 1px solid var(--surface-3); }
.g-tick { position: absolute; top: 4px; padding-left: 4px; border-left: 1px solid var(--surface-3); font: 500 12px var(--f-mono); color: var(--muted); white-space: nowrap; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: calc(var(--dw) / 2); background: var(--accent, #e8dcc4); opacity: .55; pointer-events: none; }
.g-row { position: relative; padding: 6px 0 4px; border-bottom: 1px solid var(--surface-2); }
.g-name { position: sticky; left: 0; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: 80vw; padding: 0 8px; font-size: 14px; font-weight: 600;
  background: var(--surface); border-radius: 6px; }
.g-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.g-dot.red { background: var(--red); } .g-dot.yellow { background: var(--yellow); } .g-dot.green { background: var(--green); }
.g-track { position: relative; height: 44px; margin-top: 4px; }
.g-bar { position: absolute; top: 0; height: 44px; min-width: 24px; border: 0; border-radius: 9px; padding: 0 8px; text-align: left; cursor: grab; touch-action: pan-y;
  transition: left .12s ease-out, width .12s ease-out;
  font: 600 12px var(--f-body); color: #14110f; background: var(--muted); overflow: visible; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.g-bar.red { background: var(--red); } .g-bar.yellow { background: var(--yellow); } .g-bar.green { background: var(--green); }
.g-bar.done { background: var(--surface-3); color: var(--muted); cursor: default; }
.g-bar.ms { border-radius: 50%; width: 44px !important; padding: 0; }
.g-bar.dragging { cursor: grabbing; outline: 2px solid var(--fg); z-index: 3; transition: none; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); }
.g-ghost { position: absolute; top: 0; height: 44px; border: 2px dashed var(--fg); border-radius: 9px; opacity: .55; pointer-events: none; }
.g-tip { position: absolute; top: -32px; z-index: 4; padding: 4px 9px; border-radius: 8px; background: var(--fg); color: var(--surface);
  font: 600 13px var(--f-body); white-space: nowrap; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .g-bar { transition: none; } }
.g-bar:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.g-lab { position: relative; z-index: 1; display: inline-block; line-height: 44px; pointer-events: none; }
/* The handles: 28px of thumb room at each end, marked with two short lines. A short bar keeps its middle for sliding:
   it has no start handle, and its end handle sits just past its right end as a small tab. */
.g-grip { position: absolute; top: 0; bottom: 0; width: 28px; cursor: ew-resize; touch-action: none; z-index: 2;
  background: linear-gradient(90deg, transparent 0 10px, rgba(0, 0, 0, .3) 10px 12px, transparent 12px 16px, rgba(0, 0, 0, .3) 16px 18px, transparent 18px); }
.g-end { right: 0; border-radius: 0 9px 9px 0; }
.g-start { left: 0; border-radius: 9px 0 0 9px; }
.g-bar.narrow .g-start { display: none; }
.g-bar.narrow .g-end { right: -26px; width: 24px; border-radius: 0 9px 9px 0; background-color: inherit; }
.g-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 14px; }
.g-facts dt { color: var(--muted); font-size: 14px; } .g-facts dd { margin: 0; }
.g-lineup { margin: 4px 0 10px; padding-left: 20px; } .g-lineup li { margin: 3px 0; }
.g-nudge { flex-wrap: wrap; }
.g-la { border-left: 6px solid var(--c); padding: 8px 0 8px 12px; margin: 10px 0; }
.g-la .t { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.g-la .why, .g-la .s { color: var(--muted); font-size: 14px; margin-top: 3px; }
.g-msg { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.g-notes .t { white-space: pre-wrap; }
.g-rights { display: grid; gap: 0; margin: 6px 0 12px; }
.g-rr { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px; align-items: center; gap: 8px; padding: 10px 2px; border-top: 1px solid var(--edge); }
.g-rr input { justify-self: center; width: 22px; height: 22px; }
.g-rh { border-top: 0; font-size: 13px; color: var(--muted); }
.g-rh span + span { text-align: center; }
.bsched { margin: 0 0 10px; }
.bquiet li.bqsched { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* ---- The two charts under the board: how long it's sat, and the countdown to due. Folded until tapped; each bar is a
   button that opens its record. The board's own red, yellow and green; nothing moves or flashes. */
.charts { display: grid; gap: 10px; margin: 18px 0 8px; }
.ch-fold { width: 100%; min-height: 64px; padding: 10px 16px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--fg);
  box-shadow: 0 0 0 1px var(--edge); display: grid; grid-template-columns: 14px minmax(0, 1fr) 10px; gap: 12px; align-items: center;
  text-align: left; font: inherit; cursor: pointer; }
.ch-fold[aria-expanded="true"] { border-radius: var(--r) var(--r) 6px 6px; }
.ch-fold .cv { width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); opacity: .7; }
.ch-fold[aria-expanded="true"] .cv { transform: rotate(45deg) translate(-2px, -2px); }
.ch-fold:focus-visible, .ch-bar:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.ch-dot { width: 12px; height: 12px; border-radius: 50%; }
.ch-dot.r, .ch-fill.r { background: var(--red); } .ch-dot.y, .ch-fill.y { background: var(--yellow); } .ch-dot.g, .ch-fill.g { background: var(--green); }
.ch-fn { display: grid; gap: 2px; min-width: 0; }
.ch-name { font: 650 18px/1.2 var(--f-head); letter-spacing: -.01em; }
.ch-sub { color: var(--muted); font-size: 14.5px; }
.ch-panel { margin-top: -6px; padding: 8px 12px 12px; border-radius: 0 0 var(--r) var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--edge); }
.ch-who { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 2px 4px; font: 650 15px var(--f-head); }
.ch-who small { color: var(--muted); font: 500 13px var(--f-mono); }
.ch-list { list-style: none; margin: 0; padding: 0; }
.ch-list li { border-top: 1px solid var(--edge); }
.ch-list li:first-child { border-top: 0; }
.ch-bar { width: 100%; min-height: 64px; padding: 11px 2px; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer;
  display: grid; gap: 6px; }
.ch-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ch-t { min-width: 0; font-weight: 600; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.ch-w { flex: none; font: 600 13px var(--f-mono); white-space: nowrap; }
.ch-w.r { color: var(--red); } .ch-w.y { color: var(--yellow); } .ch-w.g { color: var(--green); }
.ch-track { display: block; height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.ch-fill { display: block; height: 100%; border-radius: 6px; }
.ch-meta { color: var(--muted); font-size: 13.5px; }
.ch-none, .ch-key { margin: 10px 2px 2px; color: var(--muted); font-size: 14px; }
.ch-more { margin-top: 8px; min-height: 48px; }
@media (min-width: 760px) { .charts { max-width: 760px; } }
/* Job money: the summary in the job's color, the bars and the line. */
.band .bn .bsub { display: block; font-size: 13px; font-weight: 500; opacity: .85; margin-top: 2px; }
.m-sum.r { box-shadow: inset 4px 0 0 var(--red); } .m-sum.y { box-shadow: inset 4px 0 0 var(--yellow); } .m-sum.g { box-shadow: inset 4px 0 0 var(--green); }
.m-flag { font: 600 13px var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.m-sum.r .m-flag { color: var(--red); } .m-sum.y .m-flag { color: var(--yellow); } .m-sum.g .m-flag { color: var(--green); }
.m-big { font-size: 24px; margin: 4px 0; }
.m-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 12px 0; }
.m-grid4 dt { color: var(--muted); font-size: 13px; } .m-grid4 dd { margin: 2px 0 0; font: 600 17px var(--f-mono); }
.m-row { padding: 10px 0; border-top: 1px solid var(--edge); } .m-row:first-of-type { border-top: 0; }
.m-chart svg { display: block; max-width: 100%; height: auto; }
.m-lbl { fill: var(--fg); font: 500 12px var(--f-body); } .m-val { fill: var(--muted); font: 12px var(--f-mono); }
.m-budget { fill: var(--surface-3); } .m-fill.g { fill: var(--green); } .m-fill.y { fill: var(--yellow); } .m-fill.r { fill: var(--red); } .m-fill.q { fill: var(--muted); }
.m-done { fill: var(--fg); } .m-over { fill: var(--red); }
.m-grid { stroke: var(--edge); } .m-axis { fill: var(--faint); font: 11px var(--f-mono); }
.m-ldone { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; } .m-lspent { fill: none; stroke: var(--fg); stroke-width: 2.5; }
.m-pt.g { fill: var(--green); } .m-pt.y { fill: var(--yellow); } .m-pt.r { fill: var(--red); } .m-pt.q { fill: var(--muted); }
.m-key { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.m-key .k-spent::before, .m-key .k-done::before { content: ""; display: inline-block; width: 18px; margin-right: 6px; vertical-align: middle; border-top: 2.5px solid var(--fg); }
.m-key .k-done::before { border-top: 2px dashed var(--muted); }
/* Status: front end styles v17 (v16 plus a skip link, a motion switch, and focus rings on every control).
   v16 (v15 plus Job money: the band's second line, the summary, the bars and the line).
   Earlier: v15 (the sitting-time and countdown charts under the board); v14 (thumb-sized bars, handles at both ends, drag outline and tip, zoom); v13 (schedule notes, who-can-change, Open the schedule); v12 (schedule bars and look-ahead); v11 (v10 plus the response spot, and solid panels: no see-through open items, cards or menus). */
