/* The new look's shell (owner, 18 Nov): the bar, the menu, a screen's heading
   and its headline tiles. Additive like the layers above it -- take this
   file's one line out of index.html and the platform is as it was.

   What it never touches: a sheet. `table.grid`, `.res-sheet`, `.fo-sheet`,
   a card's navy title bar and full screen keep the Excel look the owner asked
   to keep, so every rule here names a part of the shell, and the tokens are
   `--d-*` so no colour a sheet reads can move. scratchpad `measure.js` holds
   18,027 sheet cells on 103 screens to that, before and after. */

@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url(/static/fonts/sofia-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url(/static/fonts/sofia-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Sofia Sans SC"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url(/static/fonts/sofia-sans-semi-condensed-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --d-paper: #F4F5F8; --d-surface: #FFFFFF; --d-sunk: #ECEEF3; --d-hover: #EAEEF6;
  --d-ink: #0E1B36; --d-ink-2: #3F4B66; --d-ink-3: #5E6982; --d-line: #D9DEE8; --d-line-2: #BEC6D5;
  --d-accent: #1D46C9;
  --d-sans: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --d-cond: "Sofia Sans SC", "Sofia Sans", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --d-paper: #0C1220; --d-surface: #121A2C; --d-sunk: #0A0F1B; --d-hover: #1A2438;
  --d-ink: #E7ECF6; --d-ink-2: #B4BED3; --d-ink-3: #8D99B3; --d-line: #24304A; --d-line-2: #34425F;
  --d-accent: #7FA0FF;
}

body { background: var(--d-paper); }
body::before { background: none; }
#topbar, #sidebar, .screen-head, .tile-row, #main .screen > :is(.toolbar, .bld-settings), #main .tower-tabs:not(.card *) { font-family: var(--d-sans); }

/* ---- the bar: one solid surface and a hairline. Nothing scrolls under it,
   so glass there would be decoration. ---- */
#topbar { background: var(--d-surface); border-bottom: 1px solid var(--d-line); box-shadow: none; color: var(--d-ink); }
#topbar .project-name { font-size: 14px; font-weight: 650; color: var(--d-ink); letter-spacing: -.005em; }
#topbar .project-sub { font: 500 12px/1.3 var(--d-cond); color: var(--d-ink-3); }
#topbar :is(.palette-btn, .approvals-btn, .theme-btn) { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 8px;
  color: var(--d-ink-2); box-shadow: none; transition: background .14s ease, border-color .14s ease, transform .1s ease-out; }
#topbar :is(.palette-btn, .approvals-btn, .theme-btn):hover { background: var(--d-hover); border-color: var(--d-line-2); color: var(--d-ink); }
#topbar :is(.palette-btn, .approvals-btn, .theme-btn):active { transform: scale(.97); }
#topbar .theme-btn { width: 32px; height: 32px; }

/* The kinds: a segmented switch whose lit segment is the open project's kind. */
.kinds { display: flex; gap: 2px; padding: 3px; margin: 0 14px 0 4px; background: var(--d-sunk); border-radius: 9px; flex: none; }
.kinds a { padding: 5px 12px; border-radius: 7px; font: 600 13px/1.3 var(--d-cond); letter-spacing: .01em; color: var(--d-ink-2);
  text-decoration: none; white-space: nowrap; transition: color .16s ease, background .16s ease; }
.kinds a:hover { color: var(--d-ink); }
#app.kind-tdd:not(.no-project, .admin-area) .kinds [data-k="tdd"],
#app.kind-valuation:not(.no-project, .admin-area) .kinds [data-k="valuation"],
#app:not(.kind-tdd, .kind-valuation, .no-project, .admin-area, .booting) .kinds [data-k="qs"] {
  background: var(--d-surface); color: var(--d-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
/* Where the bar has room, it reads logo, kinds, project; the project's own
   figures are on its Dashboard, not repeated over every screen. */
@media (min-width: 901px) {
  #topbar .brand { display: contents; }
  /* Its hairline and its "Administration" / "QS Platform" words are the
     old bar's: loose in this one they sat on the logo (owner, 19 Nov). */
  #topbar .brand::before, #topbar .brand::after { display: none; }
  #topbar .logo-link { order: 1; margin-right: 10px; }
  #topbar .kinds { order: 2; }
  #topbar .brand > div { order: 3; min-width: 0; }
  #topbar .back-to { order: 4; }
  #topbar #headline { display: none; }
  #topbar .bar-tools { order: 9; margin-left: auto; }
}
#topbar #buildStamp { font: 500 12px/1 var(--d-cond); color: var(--d-ink-3); }

/* ---- the menu: on the page's own paper, the open screen a white slip ---- */
#sidebar { background: var(--d-paper); border-right: 1px solid var(--d-line); }
#sidebar a[data-nav] { font-size: 13.5px; line-height: 1.25; padding: 6px 10px; border-radius: 7px; color: var(--d-ink-2);
  transition: background .12s ease, color .12s ease; }
#sidebar a[data-nav]:hover { background: var(--d-hover); color: var(--d-ink); }
/* The screen you are on (owner, 18 Nov: "i didnt like the switch motion ...
   make it something unique"). It no longer grows to 114% -- that pushed the
   white slip past the rail's edge. The slip fills in from the left, as a Work
   Status cell fills to 100%, while the one you left drains back; and the tick
   at its edge rises into place, one whole dash ("whole dash or nothing": the
   four floors were turned down). Both on clip-path; quick, since this is
   seen dozens of times an hour; the leaving one faster than the arriving. */
#sidebar a[data-nav] { isolation: isolate; }
#sidebar a[data-nav].active { color: var(--d-ink); font-weight: 650; transform: none; }
#sidebar a[data-nav]::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 7px; background: var(--d-surface);
  box-shadow: inset 0 0 0 1px var(--d-line), 0 1px 2px rgba(0, 0, 0, .05);
  clip-path: inset(0 100% 0 0); transition: clip-path .14s cubic-bezier(.23, 1, .32, 1); }
#sidebar a[data-nav].active::after { clip-path: inset(-4px); transition: clip-path .22s cubic-bezier(.23, 1, .32, 1); }
#sidebar a[data-nav]::before { left: 3px; width: 3px; height: 16px; border-radius: 3px; transform: translateY(-50%);
  background: var(--d-accent); clip-path: inset(100% 0 0 0 round 3px); transition: clip-path .1s cubic-bezier(.23, 1, .32, 1); }
#sidebar a[data-nav].active::before { clip-path: inset(0 round 3px); transition: clip-path .22s cubic-bezier(.23, 1, .32, 1) .05s; }
@media (prefers-reduced-motion: reduce) {
  #sidebar a[data-nav]::after, #sidebar a[data-nav]::before { transition: none; }
}
/* Dashboard stands beside the fold button: its slip stops short of it. */
#sidebar a.nav-solo { box-sizing: border-box; width: calc(100% - 34px); align-self: flex-start; }
#sidebar .nav-sec-name { font: 600 12px/1.3 var(--d-cond); letter-spacing: .03em; text-transform: none; color: var(--d-ink-3); }
#sidebar .nav-sec-head:hover .nav-sec-name { color: var(--d-ink); }
#sidebar :is(.nav-out, .legend) { color: var(--d-ink-2); }
#sidebar .legend { border-top-color: var(--d-line); font-size: 12px; }

/* ---- a screen's heading ---- */
.screen-head h1 { font-size: 21px; line-height: 1.15; font-weight: 700; letter-spacing: -.012em; color: var(--d-ink); text-wrap: balance; }
.screen-head p { font-size: 13.5px; color: var(--d-ink-2); max-width: 74ch; text-wrap: pretty; }

/* ---- headline figures: one flat strip divided by hairlines. No boxes, no
   glow, no icon in a tinted square: the number is what it is for. ---- */
#main .tile-row { background: none; border: 0; border-block: 1px solid var(--d-line); border-radius: 0; box-shadow: none;
  padding: 0; gap: 0; }
#main .tile-row .tile { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 12px 22px 13px; }
#main .tile-row .tile + .tile { border-left: 1px solid var(--d-line); }
#main .tile-row .tile:first-child { padding-left: 0; }
#main .tile-row .tile :is(.tile-glow, .tile-sweep, .tile-line, .tile-icon) { display: none; }
#main .tile-row .tile .k { font: 500 12px/1.3 var(--d-cond); letter-spacing: .03em; text-transform: none; color: var(--d-ink-3); margin-bottom: 3px; }
#main .tile-row .tile .v { display: inline; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--d-ink); font-variant-numeric: tabular-nums; }
#main .tile-row .tile .s { display: inline; margin-left: 8px; font: 500 12px/1.3 var(--d-cond); color: var(--d-ink-3); }
#main .tile-row .tile.clickable { transition: background .14s ease; }
#main .tile-row .tile.clickable:hover { background: var(--d-hover); }

/* ---- a screen's own controls: tabs, buttons, the settings line ---- */
#main .tower-tabs:not(.card *) { gap: 2px; border-bottom: 1px solid var(--d-line); }
#main .tower-tabs:not(.card *) .tower-tab { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none;
  margin-bottom: -1px; padding: 8px 12px 9px; font: 600 13px/1.3 var(--d-cond); color: var(--d-ink-3);
  transition: color .14s ease, border-color .14s ease; }
#main .tower-tabs:not(.card *) .tower-tab:hover { background: none; color: var(--d-ink); }
#main .tower-tabs:not(.card *) .tower-tab.on { color: var(--d-ink); border-bottom-color: var(--d-ink); }

#main :is(.screen > .toolbar, .head-acts, .bld-settings, .review-acts) .btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--d-line-2);
  background: var(--d-surface); color: var(--d-ink); font: 600 13px/1 var(--d-sans); box-shadow: none; white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, transform .1s ease-out; }
#main :is(.screen > .toolbar, .head-acts, .bld-settings, .review-acts) .btn:hover { background: var(--d-hover); }
#main :is(.screen > .toolbar, .head-acts, .bld-settings, .review-acts) .btn:active { transform: scale(.97); }
#main :is(.screen > .toolbar, .head-acts, .list-toolbar, .review-acts) .btn.primary { background: var(--d-accent); border-color: var(--d-accent); color: #fff; }
#main :is(.screen > .toolbar, .head-acts, .list-toolbar, .review-acts) .btn.primary:hover { background: color-mix(in srgb, var(--d-accent) 88%, var(--d-ink)); }
:root[data-theme="dark"] #main :is(.screen > .toolbar, .head-acts, .list-toolbar, .review-acts) .btn.primary { color: #0B1220; }
#main .bld-settings .btn:is(.quiet, #bldUseChange) { border-color: transparent; background: none; color: var(--d-ink-2); font-weight: 500; }
#main .bld-settings .btn:is(.quiet, #bldUseChange):hover { background: var(--d-hover); color: var(--d-ink); }
#main .screen > .toolbar .muted { color: var(--d-ink-2); font-size: 13px; }

/* A heading with its actions: title and lead on the left, buttons on the right. */
.screen-head.with-acts { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: end; }
.screen-head.with-acts > :is(h1, p) { grid-column: 1; }
.screen-head.with-acts > .head-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.screen-head.with-acts > .head-acts .btn { flex: none; width: auto; }

/* The settings line under the tabs: plain words, one quiet control each. */
#main .bld-settings { font-size: 13px; color: var(--d-ink-2); align-items: center; gap: 6px 18px; }
#main .bld-settings .bld-k { color: var(--d-ink-2); font-weight: 400; }
#main .bld-settings .use-now { border: 0; background: none; padding: 0; border-radius: 0; color: var(--d-ink); font-weight: 650; }
/* What the type means for the Cost Sheet is a line of its own under the controls. */
#main .bld-settings .bld-note { order: 9; flex: 1 1 100%; font-size: 12.5px; color: var(--d-ink-3); }
#main .bld-settings .bld-note:empty { display: none; }
#main .bld-settings .bld-gap { flex: 1 1 0; }
#main .bld-settings .seg { background: var(--d-sunk); border: 0; border-radius: 8px; padding: 2px; gap: 2px; box-shadow: none; }
#main .bld-settings .seg button { border: 0; background: none; border-radius: 6px; padding: 4px 10px; font: 600 13px/1.3 var(--d-cond); color: var(--d-ink-2); box-shadow: none; }
#main .bld-settings .seg button.on { background: var(--d-surface); color: var(--d-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
/* Work Status names its tower in that line, so the tabs' own button rests. */
#main .screen:has(> .bld-settings) > .tower-tabs [data-rename-tower] { display: none; }

/* A sheet's card sits on the paper as a plain white sheet. */
#main .card { background: var(--d-surface); border: 1px solid var(--d-line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .18); }

/* ---- the project's review line over every screen (owner, 18 Nov: "also
   this is not change as the html file"): the trial's milestone line -- no box,
   a diamond a step, the steps done filled, the one it is at in the accent with
   a soft ring, a thin rule between. The steps and words are review.js's. ---- */
#main .review-bar { background: none; border: 0; border-bottom: 1px solid var(--d-line); border-radius: 0; box-shadow: none;
  padding: 2px 0 10px; margin-bottom: 14px; font-family: var(--d-sans); }
#main .review-chip { padding: 0 12px 0 0; border-radius: 0; background: none; border-right: 1px solid var(--d-line);
  font: 650 12.5px/1.3 var(--d-cond); color: var(--rv); }
#main .review-chain { gap: 0; font: 500 12.5px/1.3 var(--d-cond); color: var(--d-ink-3); }
#main .review-chain li { gap: 6px; }
#main .review-chain li::before { width: 8px; height: 8px; border-radius: 1px; rotate: 45deg; border: 1.5px solid var(--d-line-2);
  background: var(--d-surface); box-shadow: none; }
#main .review-chain li:not(:last-child)::after { width: 22px; height: 1px; margin: 0 8px 0 4px; background: var(--d-line-2); }
#main .review-chain [data-done] { color: var(--d-ink-2); }
#main .review-chain [data-done]::before { background: var(--d-ink-2); border-color: var(--d-ink-2); }
#main .review-chain [data-done]::after { background: var(--d-ink-2); }
#main .review-chain [aria-current] { color: var(--d-ink); font-weight: 650; }
#main .review-chain [aria-current]::before { background: var(--d-accent); border-color: var(--d-accent);
  outline: 3px solid color-mix(in srgb, var(--d-accent) 18%, transparent); }
#main .review-hist { color: var(--d-ink-2); font: 600 13px/1.3 var(--d-sans); }
#main .review-hist:hover { color: var(--d-accent); }
#main .review-meta { color: var(--d-ink-3); font: 500 12px/1.3 var(--d-cond); }

/* ---- TDD Dashboard: the towers on the programme's line (the trial's). A
   floor where the Schedule has its frame, in Work Status's own fills; every
   position the engine's (`--l`, `--w`, `--at`, `--h`). ---- */
.site-line { --lab: 190px; position: relative; padding: 100px 18px 14px; overflow: visible; font-family: var(--d-sans); }
.site-line.is-empty { padding: 0; }
.sl-head, .sl-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); }
.sl-ticks { position: relative; height: 22px; border-bottom: 1px solid var(--d-line); }
.sl-ticks span { position: absolute; bottom: 5px; left: calc(var(--at) * 100%); transform: translateX(-50%);
  font: 500 12px/1 var(--d-cond); color: var(--d-ink-3); white-space: nowrap; }
.sl-ticks span.is-year { color: var(--d-ink-2); font-weight: 650; }
.sl-body { position: relative; }
.sl-row { border-bottom: 1px solid var(--d-line); }
.sl-label { padding: 14px 12px 12px 0; display: grid; align-content: start; gap: 3px; }
.sl-label b { font: 700 14.5px/1.25 var(--d-sans); color: var(--d-ink); }
.sl-label span { font: 500 12.5px/1.3 var(--d-cond); color: var(--d-ink-3); }
.sl-plot { position: relative; padding: 14px 0 12px; }
.sl-grid { position: absolute; top: 0; bottom: 0; left: calc(var(--at) * 100%); width: 1px; background: var(--d-line); }
.sl-grid.is-year { background: var(--d-line-2); }
.sl-floors { position: relative; display: flex; flex-direction: column-reverse; gap: 3px; }
.sl-floor { display: block; height: 7px; margin-left: calc(var(--l) * 100%); width: max(calc(var(--w) * 100%), 4px);
  border-radius: 1.5px; background: var(--d-surface); box-shadow: inset 0 0 0 1px var(--ws-edge, #8A93A6); }
.sl-floor.is-built { background: #00B050; box-shadow: none; }
.sl-floor.is-in_hand { background: #FFFF00; box-shadow: inset 0 0 0 1px #B8B800; }
.sl-floor.is-due { background: #FFC000; box-shadow: none; }
.sl-rows { position: relative; display: grid; gap: 4px; margin-top: 10px; min-height: 14px; }
.sl-bar { position: relative; display: block; height: 7px; margin-left: calc(var(--l) * 100%); width: max(calc(var(--w) * 100%), 4px);
  border-radius: 1.5px; background: var(--d-sunk); box-shadow: inset 0 0 0 1px var(--d-line-2); }
.sl-bar em { position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); font: 500 12px/1 var(--d-cond);
  font-style: normal; color: var(--d-ink-3); white-space: nowrap; }
.sl-last { justify-self: start; margin-left: calc(var(--at) * 100%); transform: translateX(calc(-100% + 5px)); display: flex; align-items: center;
  gap: 6px; flex-direction: row-reverse; font: 600 12px/1 var(--d-cond); color: var(--d-ink-2); white-space: nowrap; }
.sl-last i { width: 9px; height: 9px; rotate: 45deg; border: 1.5px solid var(--d-ink); background: var(--d-surface); margin-right: -5px; }
.sl-cash { position: relative; height: 64px; }
.sl-cash i { position: absolute; bottom: 0; left: calc(var(--l) * 100%); width: calc(var(--w) * 100% - 1px); height: calc(var(--h) * 100%);
  border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--d-accent) 28%, transparent); }
.sl-cash i:hover { background: color-mix(in srgb, var(--d-accent) 55%, transparent); }
.sl-now { position: absolute; top: -22px; bottom: 0; z-index: 3; left: calc(var(--lab) + var(--at) * (100% - var(--lab)));
  width: 2px; margin-left: -1px; background: var(--d-accent); cursor: ew-resize; touch-action: none; }
.sl-now::before { content: ""; position: absolute; inset: 0 -9px; }
.sl-now:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 3px; }
.sl-read { position: absolute; bottom: calc(100% + 6px); left: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 2px 14px;
  padding: 8px 12px; border: 1px solid var(--d-line); border-radius: 8px; background: var(--d-surface); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .18); font: 500 12.5px/1.35 var(--d-cond); color: var(--d-ink-2); }
.sl-read b { grid-column: 1 / -1; font: 650 13px/1.3 var(--d-sans); color: var(--d-accent); }
.sl-now.to-left .sl-read { left: auto; right: 0; }
.sl-back { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; background: none; font: 600 12.5px/1.3 var(--d-sans);
  color: var(--d-accent); cursor: pointer; }
.site-line.is-dragging, .site-line.is-dragging * { cursor: ew-resize; user-select: none; }
.sl-key { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0 0; font: 500 12.5px/1.3 var(--d-cond); color: var(--d-ink-2); }
.sl-key span { display: inline-flex; align-items: center; gap: 6px; }
.sl-key i { width: 18px; height: 7px; border-radius: 1.5px; background: var(--d-surface); box-shadow: inset 0 0 0 1px #8A93A6; }
.sl-key i.is-built { background: #00B050; box-shadow: none; } .sl-key i.is-in_hand { background: #FFFF00; box-shadow: inset 0 0 0 1px #B8B800; }
.sl-key i.is-due { background: #FFC000; box-shadow: none; } .sl-key i.is-cash { background: color-mix(in srgb, var(--d-accent) 28%, transparent); box-shadow: none; height: 10px; }
.sl-open { padding: 10px 0 0; font-size: 13px; color: var(--d-ink-2); }
.sl-open b { margin-right: 8px; color: var(--d-ink); }
.sl-open a { color: var(--d-ink); }
.sl-open span { display: block; margin-top: 2px; font: 500 12px/1.3 var(--d-cond); color: var(--d-ink-3); }
@media (max-width: 900px) {
  .site-line { --lab: 0px; padding: 110px 12px 12px; overflow-x: auto; }
  .sl-head, .sl-row { grid-template-columns: minmax(0, 1fr); min-width: 640px; }
  .sl-head > span:first-child { display: none; }
  .sl-label { grid-auto-flow: column; justify-content: start; gap: 10px; padding-bottom: 0; }
}

/* ---- Home: every project on one calendar (the trial's), a lane a kind; a
   bar from a project's first day to its last, tinted up to today. Every
   position is the engine's (`--at`, `--l`, `--w`, `--p`, shares of the line). */
.cal-axis, .cal-lane { display: grid; grid-template-columns: 180px minmax(0, 1fr); font-family: var(--d-sans); }
.cal-axis { margin-top: 20px; border-bottom: 1px solid var(--d-line); }
.cal-line { position: relative; height: 26px; }
.cal-tick, .cal-today { position: absolute; bottom: 6px; left: calc(var(--at) * 100%); transform: translateX(-50%);
  font: 500 12px/1 var(--d-cond); color: var(--d-ink-3); white-space: nowrap; }
.cal-tick.is-year { color: var(--d-ink-2); font-weight: 650; }
.cal-today { bottom: 4px; color: var(--d-accent); font-weight: 650; }
.cal-lane { border-bottom: 1px solid var(--d-line); }
.cal-kind { padding: 14px 12px 14px 0; display: grid; align-content: start; gap: 4px; }
.cal-kind a { font: 700 15px/1.25 var(--d-sans); color: var(--d-ink); text-decoration: none; }
.cal-kind a:hover { color: var(--d-accent); }
.cal-kind span { font: 500 12.5px/1.3 var(--d-cond); color: var(--d-ink-3); }
.cal-rows { position: relative; padding: 12px 0 14px; display: grid; gap: 8px; min-height: 52px; }
.cal-grid, .cal-now { position: absolute; top: 0; bottom: 0; left: calc(var(--at) * 100%); width: 1px; background: var(--d-line); }
.cal-grid.is-year { background: var(--d-line-2); }
.cal-now { width: 1.5px; background: var(--d-accent); z-index: 2; }
.cal-bar { position: relative; z-index: 1; margin-left: calc(var(--l) * 100%); width: max(calc(var(--w) * 100%), 4px); height: 26px;
  display: flex; align-items: center; border: 1px solid var(--d-line-2); border-radius: 3px; background: var(--d-surface);
  color: var(--d-ink-2); text-decoration: none; transition: border-color .14s ease; }
.cal-bar:hover { border-color: var(--d-accent); }
.cal-past { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--d-sunk); border-radius: 2px 0 0 2px; }
.cal-name { position: relative; padding: 0 10px; font: 500 13px/1 var(--d-cond); white-space: nowrap; }
.cal-name b { font: 650 13.5px/1 var(--d-sans); color: var(--d-ink); }
.cal-undated { margin: 0; font-size: 13px; color: var(--d-ink-2); position: relative; z-index: 1; }
.cal-undated span { font: 500 12.5px/1.3 var(--d-cond); color: var(--d-ink-3); }
.cal-undated a { color: var(--d-ink); text-decoration: none; }
.cal-undated a:hover { color: var(--d-accent); text-decoration: underline; }
.home-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 32px; }
.home-cols .home-list { max-width: none; }
.hw-what { grid-column: 2 / -1; font-size: 13px; color: var(--d-ink-2); }
.home-cols .home-list li a { grid-template-columns: 150px minmax(0, 1fr) auto; }

/* ---- Home: the three kinds of work, then what waits on you ---- */
#main .ws-tiles { gap: 0; border-block: 1px solid var(--d-line); margin-top: 18px; }
#main .ws-tile { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 22px 20px; gap: 6px;
  transition: background .14s ease; }
#main .ws-tile + .ws-tile { border-left: 1px solid var(--d-line); }
#main .ws-tile:hover { background: var(--d-hover); }
#main .ws-tiles .ws-name { font: 700 19px/1.25 var(--d-sans); letter-spacing: -.01em; color: var(--d-ink); }
#main .ws-tiles .ws-note { font-size: 13.5px; color: var(--d-ink-2); }
#main .ws-tiles .ws-go { color: var(--d-accent); }
.home-list { margin-top: 32px; max-width: 760px; font-family: var(--d-sans); }
.home-list-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--d-line); }
.home-list-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--d-ink); }
.home-list-head a { font-size: 13px; color: var(--d-accent); text-decoration: none; }
.home-list ul { list-style: none; margin: 0; padding: 0; }
.home-list li a { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 12px 6px; border-bottom: 1px solid var(--d-line); color: inherit; text-decoration: none; transition: background .14s ease; }
.home-list li a:hover { background: var(--d-hover); }
.hw-asks { font: 600 12px/1.3 var(--d-cond); color: var(--d-accent); }
.hw-name { font-size: 14px; font-weight: 650; color: var(--d-ink); }
.hw-by { font-size: 12.5px; color: var(--d-ink-3); text-align: right; }
.home-none { margin: 14px 0 0; font-size: 13.5px; color: var(--d-ink-2); }

/* ---- Projects: the list drawn as a sheet -- the blue column heads and
   ruled columns of every other table, one project a compact row. ---- */
#main .list-card { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 10px; overflow: hidden; box-shadow: none; }
#main .list-card .list-table { font-family: var(--d-sans); border-collapse: separate; border-spacing: 0; }
#main .list-card .list-table thead th { background: var(--wb-header); color: var(--d-ink); font: 600 12.5px/1.3 var(--d-sans);
  text-transform: none; letter-spacing: 0; padding: 8px 10px; border-bottom: 1px solid var(--wb-header-line); }
#main .list-card .list-table thead th + th { border-left: 1px solid var(--wb-header-line); }
#main .list-card .list-table td { padding: 7px 10px; border-bottom: 1px solid var(--d-line); font-size: 13.5px; color: var(--d-ink); }
#main .list-card .list-table td + td { border-left: 1px solid var(--d-line); }
#main .list-card .list-table tbody tr:hover > td { background: var(--d-hover); }
#main .list-card .list-table .proj-mark { display: none; }
#main .list-card .list-table .proj, #main .list-card .list-table .proj:is(:hover, :focus-within) { align-items: center; gap: 6px; padding: 0; background: none; box-shadow: none; }
#main .list-card .list-table .proj-text { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1px 8px; }
#main .list-card .list-table .proj-name { font-weight: 650; color: var(--d-ink); }
#main .list-card .list-table .proj-link { order: 1; }
#main .list-card .list-table .proj-sub { order: 2; flex-basis: 100%; font: 500 12px/1.3 var(--d-cond); color: var(--d-ink-3); }
#main .list-card .list-table .proj-link .chip { padding: 1px 7px; font: 600 12px/1.3 var(--d-cond); }
#main .list-card .list-table .stamp { font-size: 13px; }
#main .list-card .list-table .stamp .by { font: 500 12px/1.3 var(--d-cond); color: var(--d-ink-3); }
#main .list-toolbar :is(.btn, .text-input, .sel-input) { font-family: var(--d-sans); }

/* ---- sign in (owner, 18 Nov: "login page also"): the navy page of towers
   beside a plain white form, as the design trial drew it. The flow, the
   fields, the password rules and every message are login.js's own. ---- */
#app.signed-out { background: var(--d-surface); }
.signin-stage { display: block; min-height: 100vh; padding: 0; background: var(--d-surface); color: var(--d-ink); font-family: var(--d-sans); }
.signin-stage :is(.signin-ground, .signin-halo, .signin-beams, .signin-edge, .go-glow, .go-shimmer, .sf-icon) { display: none; }
.signin-stage :is(.signin-3d, .signin-tilt) { display: contents; }
.signin-stage .signin-card { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); min-height: 100vh; border: 0; border-radius: 0;
  box-shadow: none; background: var(--d-surface); overflow: visible; }
.signin-stage .signin-card::before { display: none; }
.signin-stage .signin-brand { background: #002060; border: 0; padding: 44px 48px; gap: 0; overflow: hidden; }
.signin-stage .brand-tag { margin: 0; padding: 0; max-width: 15ch; font-size: 34px; line-height: 1.12; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.signin-stage .brand-lead { margin: 14px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.signin-stage .brand-foot { margin: 14px 0 0; font: 500 12px/1.3 var(--d-cond); letter-spacing: .03em; text-transform: none; color: rgba(255, 255, 255, .6); }
.brand-rise { flex: 1 1 auto; min-height: 160px; margin-top: 40px; display: flex; align-items: flex-end; gap: 22px; padding: 0 6px;
  border-bottom: 1.5px solid rgba(255, 255, 255, .6); }
.brand-rise div { flex: 1 1 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.brand-rise i { height: 10px; border-radius: 1.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  animation: d-floor .5s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--i) * 34ms + 120ms); }
.brand-rise .done { background: #00B050; box-shadow: none; }
.brand-rise .part { background: #FFFF00; box-shadow: none; }
.brand-rise .late { background: #FFC000; box-shadow: none; }
@keyframes d-floor {
  from { opacity: 0; transform: translateY(6px); }
}
.signin-stage .signin-form { align-self: center; justify-self: center; width: min(340px, 86%); padding: 40px 0; }
.signin-stage .signin-logo { display: inline-flex; margin: 0 0 22px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.signin-stage .signin-logo img { height: 40px; }
:root[data-theme="dark"] .signin-stage .signin-logo { padding: 6px 12px; border-radius: 8px; background: #fff; }
.signin-stage .signin-head { margin-bottom: 18px; }
.signin-stage .signin-head h1 { padding: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; color: var(--d-ink); }
.signin-stage .signin-head p { margin-top: 4px; font-size: 13.5px; color: var(--d-ink-2); }
.sf-name { display: block; margin: 0 0 5px; font: 600 12px/1.3 var(--d-cond); color: var(--d-ink-2); }
.signin-stage .sf { margin-bottom: 14px; }
.signin-stage .sf-input { height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--d-line-2); background: var(--d-surface);
  color: var(--d-ink); font-size: 14px; transition: border-color .14s ease, box-shadow .14s ease; }
.signin-stage .sf-input.has-eye { padding-right: 40px; }
.signin-stage .sf-input::placeholder { color: transparent; }
.signin-stage .sf-input:hover { border-color: var(--d-ink-3); }
.signin-stage .sf-input:focus { background: var(--d-surface); border-color: var(--d-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-accent) 18%, transparent); }
.signin-stage .sf-input:-webkit-autofill { -webkit-text-fill-color: var(--d-ink); box-shadow: 0 0 0 1000px var(--d-surface) inset; }
.signin-stage .sf-eye { right: 12px; color: var(--d-ink-3); }
.signin-stage .sf-eye:is(:hover, :focus-visible) { color: var(--d-ink); }
.signin-stage :is(.signin-note, .signin-foot) { color: var(--d-ink-3); }
.signin-stage :is(.signin-foot strong, .signin-link) { color: var(--d-ink); }
.signin-stage .signin-error { border-radius: 8px; background: #FDECEA; color: #B42318; border-color: #F5C2BC; }
.signin-stage .signin-form .pw-meter { color: var(--d-ink-2); --ok: #0A7A3D; --warn: #8A5200; --bad: #B42318; }
.signin-stage .signin-go { margin-top: 18px; }
.signin-stage .go-face { height: 38px; border-radius: 8px; background: var(--d-accent); color: #fff; font-size: 14px; transition: background .14s ease, transform .1s ease-out; }
.signin-stage .signin-go:hover:not(:disabled) .go-face { background: color-mix(in srgb, var(--d-accent) 88%, var(--d-ink)); }
.signin-stage .signin-go:active:not(:disabled) .go-face { transform: scale(.97); }
.signin-stage .signin-go:focus-visible .go-face { box-shadow: 0 0 0 2px var(--d-surface), 0 0 0 4px var(--d-accent); }
.signin-stage .go-spin { border-color: rgba(255, 255, 255, .85); border-top-color: transparent; }
:root[data-theme="dark"] .signin-stage :is(.go-face, .go-face .go-text) { color: #0B1220; }

/* A phone: no kinds switch (the drawer has the way out); the figures strip
   wraps, so its divider would push the second row's first figure in; a
   heading's buttons go under its words. */
@media (max-width: 900px) {
  .kinds { display: none; }
  #main .tile-row .tile, #main .tile-row .tile:first-child { padding: 10px 12px 11px 0; }
  #main .tile-row .tile + .tile { border-left: 0; }
  .screen-head.with-acts { grid-template-columns: minmax(0, 1fr); }
  .screen-head.with-acts > .head-acts { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 10px; }
  #main .ws-tile + .ws-tile { border-left: 0; border-top: 1px solid var(--d-line); }
  .home-list li a { grid-template-columns: minmax(0, 1fr); }
  .cal-axis, .cal-lane { grid-template-columns: minmax(0, 1fr); }
  .cal-axis > span:first-child { display: none; }
  .cal-kind { padding-bottom: 0; grid-auto-flow: column; justify-content: start; gap: 10px; }
  .hw-by { text-align: left; }
  .signin-stage .signin-card { grid-template-columns: minmax(0, 1fr); }
  .signin-stage .signin-brand { padding: 28px; }
  .signin-stage .brand-tag { font-size: 26px; }
  .brand-rise { min-height: 120px; margin-top: 24px; gap: 12px; }
  .signin-stage .brand-foot { display: none; }
  .signin-stage .signin-form { padding: 32px 0; }
}

@media (prefers-contrast: more) {
  :root { --d-line: #8A93A6; --d-ink-3: #3F4B66; }
}
