/* Weekboard: the week's shifts and what they cost. This sheet is the whole look of the product.
   kit.css still loads first for the shared patterns (dialog, the File menu, toast, print);
   everything it draws is restyled here. Nothing is fetched from anywhere: the type ships in fonts/. */

@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/SourceSans3VF-Upright.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("fonts/SourceSans3VF-Italic.woff2") format("woff2");
}

/* ---------- tokens ----------
   Cool neutral grays. One accent, a deep iris, for the thing that's selected and the thing to press.
   Each role has a soft tint (--t*) and a deeper tone of it (--n*) for its shape and the edge of its shifts.
   "Over" is a brick red and "within" a deep teal, and both always come with words or a mark. */
:root {
  --paper: #F3F4F6;
  --card: #FFFFFF;
  --sunk: #E8EAEE;
  --sel: #DFE2E8;
  --ink: #1A1D23;
  --ink-2: #3B414B;
  --muted: #59606B;
  --rule: #DCDFE5;
  --rule-2: #C5C9D1;
  --edge: #767C88;
  --accent: #3D4EAC;
  --accent-ink: #FFFFFF;
  --good: #1D6656;
  --over: #A5361F;
  --mark: var(--accent);
  --focus: var(--accent);
  --toast-err: #F2A28F;
  --t0: #E2E8F6; --n0: #4A62A8;
  --t1: #DBEDE8; --n1: #2C7667;
  --t2: #F2EAD6; --n2: #856618;
  --t3: #F5E3E6; --n3: #A04C5E;
  --t4: #E9E4F5; --n4: #6C54A6;
  --t5: #E5EBDB; --n5: #5A6F2F;
  --sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --radius: 7px;
  --radius-2: 12px;
  --wrap: 100rem;
  --measure: 40rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14161A; --card: #1B1E24; --sunk: #0F1114; --sel: #272B33; --ink: #E8EAEE; --ink-2: #C3C7CF; --muted: #9BA1AC;
    --rule: #272B33; --rule-2: #373C46; --edge: #727987; --accent: #A9B5F6; --accent-ink: #14161A; --good: #7FCDB9; --over: #F2A28F; --toast-err: #A5361F;
    --t0: #232C47; --n0: #9FB2EE; --t1: #1A3531; --n1: #7CCBBB; --t2: #393120; --n2: #D9BC78;
    --t3: #40262D; --n3: #E9A3B1; --t4: #2F2947; --n4: #BBA8EE; --t5: #2A3320; --n5: #B3C788;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14161A; --card: #1B1E24; --sunk: #0F1114; --sel: #272B33; --ink: #E8EAEE; --ink-2: #C3C7CF; --muted: #9BA1AC;
  --rule: #272B33; --rule-2: #373C46; --edge: #727987; --accent: #A9B5F6; --accent-ink: #14161A; --good: #7FCDB9; --over: #F2A28F; --toast-err: #A5361F;
  --t0: #232C47; --n0: #9FB2EE; --t1: #1A3531; --n1: #7CCBBB; --t2: #393120; --n2: #D9BC78;
  --t3: #40262D; --n3: #E9A3B1; --t4: #2F2947; --n4: #BBA8EE; --t5: #2A3320; --n5: #B3C788;
  color-scheme: dark;
}
@media (min-width: 62rem) and (pointer: fine) { :root { --tap: 2.375rem; } }
@media (min-width: 80rem) { :root { --gutter: 2.5rem; } }

[data-tone="0"] { --tint: var(--t0); --tone: var(--n0); }
[data-tone="1"] { --tint: var(--t1); --tone: var(--n1); }
[data-tone="2"] { --tint: var(--t2); --tone: var(--n2); }
[data-tone="3"] { --tint: var(--t3); --tone: var(--n3); }
[data-tone="4"] { --tint: var(--t4); --tone: var(--n4); }
[data-tone="5"] { --tint: var(--t5); --tone: var(--n5); }

/* ---------- base ---------- */
body {
  font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  font-variant-numeric: tabular-nums lining-nums; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-weight: 600; }
a:hover { text-decoration-color: currentColor; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.num, .fig { font-family: inherit; font-feature-settings: normal; font-variant-numeric: tabular-nums lining-nums; }
.skip { font-family: inherit; font-size: .9375rem; font-weight: 600; border-radius: var(--radius); }
.note { font-style: normal; font-size: .875rem; color: var(--muted); }

/* The small capitals that name a column or a group. */
.eyebrow, .key-label, .week-name > label, .grid thead th, .lines-head, .ledger thead th, .roles caption, .custom-kicker, .cover > .label, .numbers > h2, .check-text .note, .db-days {
  font-size: .6875rem; font-weight: 600; line-height: 1.35; letter-spacing: .075em; text-transform: uppercase; color: var(--muted); font-style: normal;
}

/* ---------- top bar: the name, the parts of the sheet, and the file ---------- */
header.strip {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "views views";
  align-items: center; gap: .375rem 1rem; padding: .5rem 0 1rem; border-bottom: 0;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: .5625rem; min-width: 0; min-height: var(--tap); }
.brand h1 { font-size: 1.3125rem; font-weight: 700; line-height: 1; letter-spacing: -.012em; }
.logo { display: block; }
.logo-a { fill: var(--ink); }
.logo-b { fill: var(--accent); }
.tagline { display: none; margin-left: .5rem; padding-left: 1rem; border-left: 1px solid var(--rule-2); font-size: .875rem; line-height: 1.25rem; color: var(--muted); white-space: nowrap; }
.actions { grid-area: actions; flex-wrap: nowrap; gap: 0 .125rem; margin: 0 -.5rem 0 0; }

/* The parts of the sheet, as one control. */
.views { grid-area: views; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 3px; overflow: visible; background: var(--sunk); border: 0; border-radius: 11px; }
.view-tab {
  flex: 1 1 auto; min-height: 2.75rem; margin: 0; padding: .25rem .5rem; border: 0; border-radius: 8px;
  font-family: inherit; font-size: .9375rem; font-weight: 600; color: var(--ink-2);
}
.view-tab:first-child { padding-left: .5rem; }
.view-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--card) 55%, transparent); border-bottom-color: transparent; }
.view-tab[aria-selected="true"] { color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--edge), 0 1px 2px rgba(16, 20, 28, .12); font-weight: 600; }
.view-tab:focus-visible { outline-offset: 1px; border-radius: 8px; }
#check-count { font-weight: 400; color: var(--ink-2); }
@media (max-width: 29.99rem) { .tab-x { display: none; } .view-tab { font-size: .875rem; padding: .25rem; } }
@media (min-width: 62rem) {
  header.strip { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand views actions"; gap: 0 1.75rem; padding: .75rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
  .views { justify-self: start; }
  .view-tab { min-height: 2.125rem; padding: .25rem .875rem; }
}
@media (min-width: 62rem) and (pointer: coarse) { .view-tab { min-height: 2.75rem; } }
@media (min-width: 86rem) { .tagline { display: block; } }

/* The File menu, at every width (kit.css folds it only on a phone). Without the script the four actions sit in the bar. */
.more[data-ready] { display: block; position: relative; }
.more[data-ready] .more-btn { display: inline-flex; }
.more[data-ready] .more-btn::after {
  content: ""; width: .375rem; height: .375rem; margin: -.2rem .125rem 0 .25rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.more[data-ready].is-open .more-btn { background: var(--sunk); color: var(--ink); }
.more[data-ready] .more-list {
  display: none; position: absolute; top: calc(100% + .25rem); right: 0; z-index: 20; min-width: 12.5rem; padding: .375rem;
  background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius-2); box-shadow: 0 .75rem 2.5rem rgba(16, 20, 28, .18);
}
.more[data-ready].is-open .more-list { display: grid; }
.more[data-ready] .more-list .btn { justify-content: flex-start; width: 100%; min-height: var(--tap); padding-left: .75rem; white-space: nowrap; font-size: .9375rem; color: var(--ink); }
@media (max-width: 39.99rem) {
  .actions:has(.more[data-ready]) { gap: 0 .125rem; margin: 0 -.5rem 0 0; }
  .actions:has(.more[data-ready]) > .btn.quiet, .more[data-ready] .more-btn { padding-left: .625rem; padding-right: .625rem; }
  .strip:has(.more[data-ready]) .theme-btn { position: static; }
}

/* ---------- buttons ---------- */
.btn {
  gap: .4rem; padding: .375rem .875rem; font-family: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2;
  border-color: var(--rule-2); border-radius: var(--radius);
}
.btn:hover { background: var(--sunk); border-color: var(--edge); }
.btn:active { background: var(--sel); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); border-color: transparent; }
.btn.quiet { border-color: transparent; color: var(--ink-2); font-weight: 600; padding-left: .625rem; padding-right: .625rem; }
.btn.quiet:hover { border-color: transparent; color: var(--ink); background: var(--sunk); }
.btn.danger { color: var(--over); }
.btn.quiet.danger:hover { color: var(--over); }
.btn.danger.primary { background: var(--over); border-color: var(--over); color: var(--paper); }
.btn.danger.primary:hover { background: color-mix(in srgb, var(--over) 88%, var(--ink)); border-color: transparent; }
.btn.add { border: 0; padding-left: .625rem; padding-right: .75rem; color: var(--ink-2); }
.btn.add:hover { color: var(--ink); background: var(--sunk); }

/* ---------- form controls ---------- */
.label, .field > label { font-family: inherit; font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.hint { font-family: inherit; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.input {
  padding: 0 .625rem; font-family: inherit; font-size: 1rem;
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--ink-2); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
select.input {
  padding-right: 1.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - .8rem) 52%, calc(100% - .55rem) 52%; background-size: .25rem .25rem;
}
.affix > .pre, .affix > .suf { font-family: inherit; font-size: .9375rem; color: var(--muted); }
.affix.wide-suf > .input { padding-right: 3.5rem; }
.field-msg { font-family: inherit; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.field-msg.is-error { color: var(--over); font-weight: 600; }
.field-msg.is-error::before { width: .375rem; height: .375rem; margin-right: .4rem; vertical-align: .08em; }
.field-msg.ask { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.field-msg.ask[hidden] { display: none; }
.check { display: flex; align-items: center; gap: .625rem; min-height: var(--tap); cursor: pointer; }
.check input { flex: none; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--accent); }

/* ---------- section heads ---------- */
.sec-head { margin-bottom: 1.5rem; }
.sec-head h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -.014em; }
.sec-head p { max-width: 44rem; margin-top: .375rem; color: var(--ink-2); }

/* ---------- notices ---------- */
.notice {
  gap: .25rem 1rem; margin: 0 0 1.25rem; padding: .375rem .375rem .375rem 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2);
  font-size: .9375rem; color: var(--ink-2);
}
.notice p { padding: .3rem 0; }
.notice.is-error { box-shadow: inset 3px 0 0 var(--over); }
.notice.toast {
  max-width: 38rem; padding: .5rem .5rem .5rem 1.125rem; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius-2);
  box-shadow: 0 .75rem 2.5rem rgba(16, 20, 28, .28);
}
.notice.toast.is-error { box-shadow: inset 3px 0 0 var(--toast-err), 0 .75rem 2.5rem rgba(16, 20, 28, .28); }
.notice.toast .btn { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 45%, transparent); }
.notice.toast .btn.quiet { border-color: transparent; color: color-mix(in srgb, var(--paper) 84%, var(--ink)); }
.notice.toast .btn:hover { background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); }
.notice.toast :focus-visible { outline-color: var(--paper); }

/* A verdict in words, with a small mark. */
.signal { gap: .5rem; margin-top: 1rem; padding: 0; border: 0; border-radius: 0; background: none; font-size: .9375rem; line-height: 1.45; font-weight: 600; }
.signal svg { width: 1rem; height: 1rem; margin-top: .19rem; }
.signal.good, .signal.over { border: 0; background: none; }
.signal.good { color: var(--good); }
.signal.over { color: var(--over); }
.signal.idle { color: var(--ink-2); font-weight: 400; }

/* ================= Schedule: the week, with its labor beside it ================= */
.plan { display: flex; flex-direction: column; }
.week-bar { order: 1; display: grid; gap: .75rem; margin-bottom: 1rem; }
.rail { display: contents; }
.labor { order: 2; }
.plan-main { order: 3; min-width: 0; }
.numbers { order: 4; }

.week-name { gap: .125rem; max-width: 26rem; }
.week-name .input {
  height: 2.75rem; padding: 0; font-size: 1.625rem; font-weight: 600; letter-spacing: -.014em; text-overflow: ellipsis;
  background: transparent; border: 0; border-radius: 0;
}
.week-name .input:hover { box-shadow: 0 1px 0 var(--edge); }
.week-name .input:focus-visible { outline: none; box-shadow: 0 2px 0 var(--focus); }
.week-name .input::placeholder { font-weight: 400; }

/* Role pills: a shape and a name, and the tint the role's shifts carry. */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.filter .label { margin-right: .25rem; font-weight: 400; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: .25rem .8125rem;
  font-family: inherit; font-size: .9375rem; font-weight: 600; color: var(--ink-2); background: transparent;
  border: 1px solid var(--rule-2); border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pill:hover { border-color: var(--edge); color: var(--ink); background: var(--card); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.mark { flex: none; color: var(--tone, var(--ink-2)); }
.pill[aria-pressed="true"] .mark { color: inherit; }
.filter-note { margin: 0; }
@media (min-width: 62rem) {
  .week-bar { grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr); align-items: end; gap: .5rem 2rem; }
  .filter { justify-content: flex-end; }
  .filter .pill { min-height: 2rem; padding: .125rem .75rem; font-size: .875rem; }
  .filter-note { grid-column: 1 / -1; text-align: right; }
}
@media (min-width: 62rem) and (pointer: coarse) { .filter .pill { min-height: 2.75rem; } }

/* ---------- labor this week: the one number, quietly ---------- */
.labor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 12.5rem); grid-template-areas: "label label" "key bars" "sub sub" "signal signal"; align-items: end; gap: 0 1.5rem; margin-bottom: 1.5rem; padding: 1rem 0 1.125rem; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule); }
.labor .headline { display: contents; }
.result { padding-top: 0; border-top: 0; }
.result .key-label { grid-area: label; font-size: .6875rem; font-style: normal; color: var(--muted); }
.result .key { grid-area: key; margin: .375rem 0 0 -.03em; font-family: inherit; font-size: 3rem; line-height: 1; font-weight: 300; letter-spacing: -.025em; color: var(--ink); white-space: nowrap; }
.result .key-sub { grid-area: sub; margin-top: .625rem; font-family: inherit; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.labor .signal { grid-area: signal; margin-top: .625rem; }

/* Seven bars, one a day, and the target as a line across them. */
.daybars { grid-area: bars; }
.db-plot { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 .3125rem; height: 3.5rem; padding-right: 2.75rem; border-bottom: 1px solid var(--edge); }
.db { position: relative; display: block; }
.db-bar { position: absolute; left: 0; right: 0; bottom: 0; background: var(--edge); border-radius: 2px 2px 0 0; }
.db.is-over .db-bar { background: var(--over); }
/* Over days also carry a small raised cap, so the difference isn't colour alone. */
.db.is-over .db-bar::after { content: ''; position: absolute; left: 50%; top: -7px; transform: translateX(-50%); border: 4px solid transparent; border-top: 0; border-bottom: 5px solid var(--over); }
.db-target { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--ink-2); }
.db-target span { position: absolute; right: 0; top: -.4375rem; width: 2.5rem; white-space: normal; padding-left: .375rem; font-size: .6875rem; line-height: 1.1; color: var(--ink-2); background: var(--paper); }
.db-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 .3125rem; padding: .25rem 2.75rem 0 0; text-align: center; letter-spacing: 0; }

/* ---------- the week grid (wide screens and paper) ---------- */
@media screen and (max-width: 61.99rem) { .week-grid { display: none; } }
.week-grid .table-wrap { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); }
.week-grid .table-wrap:focus-visible { outline-offset: 2px; border-radius: var(--radius-2); }
.grid { width: 100%; min-width: 54rem; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.grid .g-who { width: 10.25rem; text-align: left; }
.grid .g-tot { width: 5.75rem; }
.grid thead th { padding: .75rem .5rem .5rem; text-align: left; border-bottom: 1px solid var(--rule-2); }
.grid thead .g-who { padding-left: 1rem; }
.grid thead .g-day { padding-left: .6875rem; }
.grid thead .g-tot { text-align: right; padding-right: 1rem; }
.grid tbody th, .grid tbody td { padding: 3px; border-bottom: 1px solid var(--rule); vertical-align: top; height: 3.375rem; }
.grid tbody th { padding-left: .375rem; font-weight: 400; }
.grid .g-cell { border-left: 1px solid var(--rule); }
.grid tbody .g-tot { border-left: 1px solid var(--rule); padding: .5625rem 1rem .375rem .5rem; }
.grid .g-cell.is-off { background: color-mix(in srgb, var(--sunk) 62%, var(--card)); }

.who {
  display: flex; align-items: center; gap: .5625rem; width: 100%; min-height: 2.875rem; padding: .25rem .375rem .25rem .625rem; text-align: left;
  font: inherit; background: none; border: 0; border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.who:hover { background: var(--sunk); }
.who:focus-visible { outline-offset: -2px; }
.who-text { display: grid; min-width: 0; }
.who-name { font-family: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-role { font-family: inherit; font-size: .75rem; color: var(--muted); line-height: 1.3; }

/* A shift: the role's tint, with its deeper tone down the leading edge. */
.cell-in { position: relative; display: flex; flex-direction: column; gap: 3px; height: 100%; min-height: 2.875rem; }
.chip {
  position: relative; display: grid; gap: 0; width: 100%; padding: .3125rem .5rem .3125rem .6875rem; text-align: left;
  font-family: inherit; color: var(--ink); background: var(--tint, var(--sunk)); border: 0; border-radius: 6px; box-shadow: inset 3px 0 0 var(--tone, var(--edge));
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.chip:hover { background: color-mix(in srgb, var(--tint, var(--sunk)) 86%, var(--tone, var(--edge))); }
.chip:focus-visible { outline-offset: 1px; border-radius: 6px; }
.chip-time { font-size: .84375rem; font-weight: 600; line-height: 1.3; }
.chip-sub { display: flex; flex-wrap: wrap; gap: 0 .4rem; font-size: .75rem; line-height: 1.35; color: var(--ink-2); }
.ot { color: var(--over); font-weight: 600; }
.chip.has-warn { box-shadow: inset 3px 0 0 var(--over), inset 0 0 0 1.5px var(--over); }
.chip-flag { position: absolute; top: .3125rem; right: .375rem; display: flex; color: var(--over); }
.g-cell .chip { padding-right: 1.375rem; flex: 1 0 auto; align-content: center; }

.cell-add {
  display: flex; align-items: center; justify-content: center; gap: .3rem; flex: 1; min-height: 2.875rem; padding: 0;
  font-family: inherit; color: var(--muted); background: none; border: 1px dashed transparent; border-radius: 6px; cursor: pointer;
}
.cell-add svg { opacity: 0; }
.grid tbody tr:hover .cell-add svg, .cell-add:focus-visible svg, .cell-add:hover svg { opacity: 1; }
.cell-add:hover, .cell-add:focus-visible { border-color: var(--edge); color: var(--ink); background: var(--card); }
.cell-add:focus-visible { outline-offset: 0; }
.av-note { font-size: .75rem; font-style: normal; color: var(--muted); }
.g-cell:not(.is-empty) .cell-add { position: absolute; right: .125rem; bottom: .125rem; width: 1.375rem; height: 1.375rem; min-height: 0; flex: none; border-style: solid; border-color: transparent; border-radius: 5px; }
.g-cell:not(.is-empty) .cell-add::after { content: ""; position: absolute; inset: -.3rem -.3rem -.3rem -.25rem; }
.g-cell:not(.is-empty) .cell-add:hover, .g-cell:not(.is-empty) .cell-add:focus-visible { border-color: var(--edge); }
@media (hover: none) { .cell-add svg { opacity: .7; } }

.tot-h { display: block; font-size: .9375rem; font-weight: 600; }
.tot-note { display: block; font-size: .75rem; line-height: 1.35; white-space: nowrap; }

.grid tfoot th, .grid tfoot td { padding: .4375rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: middle; font-size: .875rem; }
.grid tfoot th { padding-left: 1rem; font-size: .8125rem; font-weight: 400; color: var(--ink-2); line-height: 1.3; text-align: left; }
.grid tfoot td { border-left: 1px solid var(--rule); }
.grid tfoot .g-tot { padding-right: 1rem; font-weight: 600; white-space: normal; }
.grid tfoot tr:first-child th, .grid tfoot tr:first-child td { border-top: 1px solid var(--rule-2); }
.grid tfoot tr:last-child th, .grid tfoot tr:last-child td { border-bottom: 0; }
.grid tbody tr:last-child th, .grid tbody tr:last-child td { border-bottom: 0; }
.grid tfoot small { display: flex; align-items: center; justify-content: flex-end; gap: .2rem; font-size: .6875rem; font-weight: 400; color: var(--muted); line-height: 1.35; white-space: nowrap; }
.grid tfoot small.over-text { color: var(--over); }
.grid tfoot small.good-text { color: var(--good); }
.grid tfoot .strong { font-weight: 700; }
.grid tfoot .f-pct td { font-size: .9375rem; font-weight: 600; }
.grid tfoot .f-pct th { color: var(--ink); font-weight: 600; }
.grid tfoot .f-sales td { padding: .3125rem 3px; }
.grid tfoot .f-sales td.g-tot { padding-right: 1rem; }
.grid tfoot .f-sales .input { height: 2.125rem; padding-right: .5rem; font-size: .875rem; border-color: var(--edge); }
.grid tfoot .f-sales .affix > .pre { left: .5rem; font-size: .8125rem; }
.grid tfoot .f-strip { padding: .5rem 3px .375rem; }
.grid tfoot .f-cov .g-tot { font-size: .6875rem; font-weight: 400; color: var(--muted); }
svg.strip { display: block; width: 100%; }
.strip-fill { fill: var(--edge); }
.strip-line { stroke: var(--card); stroke-width: 1; }
.f-strip .strip-line { display: none; }
.f-strip svg.strip { height: 1.75rem; border-bottom: 1px solid var(--edge); }
.keys-hint { margin-top: .75rem; max-width: 46rem; }

.empty { padding: 2rem 1.5rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); }
.empty p { max-width: var(--measure); margin-bottom: 1rem; color: var(--ink-2); }

/* ---------- day by day ---------- */
.day-view { --who: 10.25rem; --acts: 15rem; margin-top: 2.75rem; }
@media screen and (max-width: 61.99rem) { .day-view { margin-top: 0; } }
.day-head { display: grid; gap: .625rem; }
.day-head h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.008em; }
.day-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.day-tab {
  display: grid; gap: 0; justify-items: center; align-content: center; min-height: 3rem; padding: .25rem 0;
  font-family: inherit; color: var(--ink-2); background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius);
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.day-tab:hover { border-color: var(--edge); color: var(--ink); }
.day-tab-name { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.day-tab-sub { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .1rem; line-height: 1.2; font-size: .75rem; color: var(--muted); text-align: center; }
.day-tab.is-over .day-tab-sub { color: var(--over); }
.day-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-tab[aria-pressed="true"] .day-tab-sub { color: var(--accent-ink); }
@media (min-width: 48rem) { .day-head { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: end; } }
@media (min-width: 62rem) and (pointer: fine) { .day-tab { min-height: 2.75rem; } }

.day-top { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; gap: .75rem 1rem; align-items: end; margin-top: 1.5rem; }
.day-top h3 { font-size: 1.625rem; line-height: 1.15; letter-spacing: -.014em; }
.day-stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin: 0; border-top: 1px solid var(--rule); }
.day-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.day-stats dt { font-size: .8125rem; color: var(--ink-2); line-height: 1.3; }
.day-stats dd { font-size: 1.0625rem; font-weight: 600; }
.day-verdict { grid-column: 1 / -1; font-size: .9375rem; font-style: normal; font-weight: 600; color: var(--ink-2); }
.day-verdict:empty { display: none; }
.day-verdict.is-over { color: var(--over); }
.day-verdict.is-good { color: var(--good); }
@media (min-width: 62rem) {
  .day-top { grid-template-columns: var(--who) 8.5rem minmax(0, 1fr); gap: .75rem 1.5rem; }
  .day-stats { grid-column: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .day-stats > div { display: grid; gap: .125rem; justify-content: start; padding: 0 0 .125rem; border-bottom: 0; }
  .day-stats dd { text-align: left; font-size: 1.1875rem; }
}

.cover { margin-top: 1.5rem; }
.cover-chart { position: relative; margin-top: .4rem; }
.cover-chart svg.strip { height: 3.25rem; border-bottom: 1px solid var(--edge); }
.cover-chart .strip-line { stroke: var(--paper); }
.cover-max { position: absolute; left: 0; top: -.15rem; font-size: .6875rem; color: var(--muted); transform: translateX(-140%); }
.axis { position: relative; height: 1.3rem; }
.axis span { position: absolute; top: .3rem; transform: translateX(-50%); font-family: inherit; font-size: .6875rem; line-height: 1; color: var(--muted); white-space: nowrap; }
.axis span::before { content: ""; position: absolute; left: 50%; top: -.3rem; width: 1px; height: .2rem; background: var(--edge); }
.axis span:first-child { transform: none; }
.axis span:first-child::before { left: 0; }
.axis span.is-end { transform: translateX(-100%); }
.axis span.is-end::before { left: 100%; }
.cover-say { margin-top: .4rem; }
@media screen and (max-width: 61.99rem) { .cover-max { transform: none; left: .25rem; top: .1rem; color: var(--ink-2); } }
@media (min-width: 62rem) {
  .cover .label, .cover-say { margin-left: calc(var(--who) + 1.5rem); }
  .cover-chart { margin-left: calc(var(--who) + 1.5rem); margin-right: calc(var(--acts) + 1.5rem); }
}

.day-list { margin-top: 1rem; border-top: 1px solid var(--rule-2); }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who acts" "track track"; gap: .4rem .75rem; align-items: center; padding: .5625rem 0; border-bottom: 1px solid var(--rule); }
.drow-who { grid-area: who; display: flex; align-items: center; gap: .5625rem; min-width: 0; }
.drow-who .who-role { white-space: normal; }
.drow-shifts { grid-area: acts; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .25rem; }
.drow-shifts .chip { width: auto; min-height: var(--tap); align-content: center; padding-right: .625rem; }
.drow-shifts .chip.has-warn { padding-right: 1.625rem; }
.drow-add { color: var(--muted); }
.track { grid-area: track; position: relative; height: .5rem; background: var(--sunk); border-radius: 3px; overflow: hidden; }
.bar { position: absolute; top: 0; bottom: 0; background: var(--tone, var(--edge)); border-radius: 3px; }
.bar.has-warn { background: var(--over); }
.drow.is-out .who-name { color: var(--ink-2); font-weight: 400; }
.drow.is-out .track { display: none; }
.drow-sep { padding: 1rem 0 .375rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 62rem) {
  .drow { grid-template-columns: var(--who) minmax(0, 1fr) var(--acts); grid-template-areas: "who track acts"; gap: 0 1.5rem; padding: .25rem 0; }
  .drow.is-out .track { display: block; background: none; border-bottom: 1px dashed var(--rule-2); height: 0; }
  .drow-shifts .chip { min-height: 2.375rem; }
}

/* ---------- the week in numbers ---------- */
.numbers { margin-top: 2.5rem; padding: 1.125rem 0 1.5rem; border-top: 1px solid var(--rule-2); }
.numbers-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem 3.5rem; margin-top: .25rem; }
@media (min-width: 48rem) and (max-width: 79.99rem) { .numbers-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.stats { margin-top: 0; }
.stats > div { gap: 1rem; padding: .5rem 0; border-top: 0; border-bottom: 1px solid var(--rule); }
.stats > div:last-child { border-bottom: 0; }
.stats dt { font-size: .9375rem; color: var(--ink-2); }
.stats dt small { font-family: inherit; font-size: .75rem; line-height: 1.35; color: var(--muted); }
.stats dd { font-family: inherit; font-size: .9375rem; font-weight: 600; }
.stats .strong dt { color: var(--ink); font-weight: 600; }
.stats .strong dt small { font-weight: 400; }
.stats .strong dd { font-size: 1.0625rem; }
.numbers .stats dd.words { font-family: inherit; font-size: .875rem; font-weight: 400; white-space: normal; text-align: right; }
.roles { margin-top: 0; font-size: .9375rem; }
.roles caption { padding-bottom: .375rem; }
.ledger th, .ledger td { padding: .5rem .5rem; border-bottom: 1px solid var(--rule); }
.ledger thead th { font-family: inherit; border-bottom: 1px solid var(--rule-2); padding-bottom: .375rem; }
.ledger tbody th { font-weight: 600; }
.roles tbody tr:last-child th, .roles tbody tr:last-child td { border-bottom: 0; }
.roles tbody th .mark { margin-right: .5rem; }
.roles tbody th small { display: block; padding-left: 1.25rem; font-family: inherit; font-size: .75rem; font-weight: 400; color: var(--muted); }
.roles-box .hint { margin-top: .625rem; font-size: .8125rem; }
.roles-box .hint:empty { display: none; }

/* From 80rem the labor and the numbers stand in a rail beside the week. */
@media (min-width: 80rem) {
  .plan { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; grid-template-rows: auto 1fr; column-gap: 2.25rem; }
  .week-bar { grid-column: 1; grid-row: 1; }
  .plan-main { grid-column: 1; grid-row: 2; }
  .rail { display: block; grid-column: 2; grid-row: 1 / span 2; padding-left: 2.25rem; border-left: 1px solid var(--rule); }
  .labor { display: block; margin: 0; padding: .25rem 0 0; border: 0; }
  .labor .headline { display: block; }
  .result .key { margin-top: .5rem; font-size: 3.75rem; }
  .daybars { margin-top: 1.375rem; }
  .db-plot { height: 4rem; }
  .labor .signal { margin-top: 1.125rem; }
  .numbers { margin-top: 1.75rem; padding: 1.125rem 0 0; border-top: 1px solid var(--rule); }
  .numbers-grid { gap: 1.5rem; }
  .roles-box { padding-top: 1.125rem; border-top: 1px solid var(--rule); }
}

/* ---------- lines (the Team list): a card on a phone, a ruled row when there's room ---------- */
.lines-box { container-type: inline-size; container-name: lines; margin-top: 1rem; }
.lines-head { display: none; gap: .5rem; padding: 0 0 .5rem; align-items: end; }
.line { display: grid; column-gap: .5rem; row-gap: 0; padding: .5rem 0 1.125rem; border-top: 1px solid var(--rule); }
.line > * { margin-top: .5rem; }
.line:first-child { border-top-color: var(--rule-2); }
.line .c-x { grid-area: x; align-self: start; padding-top: 1.5rem; }
.line .c-x .btn { color: var(--muted); }
.line .c-x .btn:hover { color: var(--over); }
.line .c-msg { grid-area: msg; }
.line .c-msg:empty { display: none; }
.lines-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; padding: .5rem 0 0; border-top: 1px solid var(--rule); }
.lines-foot .btn.add { margin-left: -.625rem; }

.tline {
  grid-template-columns: minmax(0, 1fr) 7.5rem var(--tap);
  grid-template-areas: "name name x" "role rate rate" "week week week" "av av av" "msg msg msg";
}
.tline .c-name { grid-area: name; }
.tline .c-role { grid-area: role; }
.tline .c-rate { grid-area: rate; }
.tline .c-week { grid-area: week; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tline .c-week .amt { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0 .5rem; }
.tline .c-week strong { font-size: 1rem; font-weight: 600; }
.tline .c-week small { font-size: .8125rem; color: var(--muted); }
.tline .c-av { grid-area: av; display: grid; gap: .3rem; }
.av-btn { justify-content: flex-start; width: 100%; text-align: left; font-weight: 400; color: var(--ink-2); background: var(--card); border-color: var(--rule-2); }
.av-btn:hover { border-color: var(--edge); color: var(--ink); background: var(--card); }
@container lines (min-width: 58rem) {
  .team-head, .tline {
    grid-template-columns: minmax(9rem, 1.1fr) minmax(8rem, .9fr) 7rem 9.5rem minmax(13rem, 1.7fr) var(--tap);
    grid-template-areas: "name role rate week av x" "msg msg msg msg msg msg";
    align-items: start;
  }
  .team-head { display: grid; }
  .team-head span:nth-child(4) { text-align: right; }
  .team-head span:nth-child(5) { padding-left: .75rem; }
  .tline { padding: 0 0 .5rem; }
  .tline > .field > label, .tline .c-week > .label, .tline .c-av > .label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .tline > .field { gap: 0; }
  .tline .c-x { padding-top: 0; }
  .tline .c-week { display: block; padding-top: .125rem; text-align: right; }
  .tline .c-week .amt { display: grid; justify-content: end; line-height: 1.3; }
  .tline .c-week strong { font-size: .9375rem; }
  .tline .c-week small { font-size: .75rem; }
  .tline .c-av { padding-left: .75rem; }
}

/* ---------- pay and rules ---------- */
.insight { max-width: 46rem; margin-bottom: 1.75rem; padding-left: 1.125rem; border-left: 2px solid var(--accent); font-size: 1.125rem; font-style: normal; line-height: 1.45; }
.insight:empty { display: none; }
.pay-grid { display: grid; gap: 1rem; padding-bottom: 2rem; }
@media (min-width: 56rem) { .pay-grid { display: block; columns: 2; column-gap: 1rem; } .pay-block { break-inside: avoid; margin-bottom: 1rem; } }
.pay-block { display: grid; gap: 1rem; align-content: start; padding: 1.375rem 1.25rem 1.5rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); }
@media (min-width: 48rem) { .pay-block { padding: 1.5rem 1.75rem 1.75rem; } }
.pay-block h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.006em; }
.pay-block .affix { max-width: 11rem; }
.pay-block .hint, .pay-block .field-msg { max-width: 34rem; }
.pay-block .input { background: var(--paper); }
.pay-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 11rem)); gap: .75rem; align-items: end; }
.daily-sum { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.daily-quick { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- to check ---------- */
.checks { margin-bottom: 2rem; max-width: 62rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); }
.check-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .75rem; padding: 1rem 1.125rem; border-bottom: 1px solid var(--rule); }
.check-item:last-child { border-bottom: 0; }
.check-mark { display: flex; padding-top: .125rem; color: var(--over); }
.check-text .note { margin-bottom: .125rem; color: var(--over); }
.check-item .btn { grid-column: 2; justify-self: start; }
@media (min-width: 44rem) {
  .check-item { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: .875rem 1.25rem; }
  .check-item .btn { grid-column: 3; }
  .check-text { max-width: 44rem; }
}
#checks-none { max-width: 44rem; margin-bottom: 2rem; }

/* ---------- send it out ---------- */
.send-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.5rem; }
.send-top .hint { flex: 1 1 14rem; }
.send-note { max-width: var(--measure); margin: -.75rem 0 1.5rem; }
.sends { display: grid; gap: 1rem; padding-bottom: 2rem; }
@media (min-width: 44rem) { .sends { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .sends { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 96rem) { .sends { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.send { display: grid; grid-template-rows: auto 1fr auto; gap: .75rem; padding: 1.125rem 1.125rem .625rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); }
.send h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; font-size: 1.0625rem; }
.send h3 .mark { align-self: center; }
.send h3 small { font-family: inherit; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.msg { margin: 0; padding: .75rem .875rem; font-family: inherit; font-size: .9375rem; line-height: 1.5; white-space: pre-wrap; background: var(--paper); border-radius: var(--radius); }
/* "Text it" only where there's a touch screen: on a computer without a texting app it does nothing. */
@media not all and (any-pointer: coarse) { .send-sms { display: none; } }
.send-actions { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: -.375rem; }

/* ---------- dialogs and the two editors ---------- */
.dialog { width: min(27rem, calc(100vw - 2rem)); padding: 1.5rem; background: var(--card); border: 1px solid var(--rule-2); border-radius: 14px; box-shadow: 0 1.5rem 4rem rgba(16, 20, 28, .3); }
.dialog::backdrop { background: rgba(15, 17, 20, .5); }
.dialog h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.008em; }
.dialog p { margin-top: .5rem; color: var(--ink-2); }
.dialog .dialog-actions { margin-top: 1.5rem; }
.dialog .input { background: var(--paper); }
.dialog.editor { width: min(30rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; }
.dialog.editor.wide { width: min(36rem, calc(100vw - 2rem)); }
.editor form { display: grid; gap: 1rem; }
.editor p { margin-top: 0; }
.editor .hint { margin-top: -.5rem; }
.editor .dialog-actions { margin-top: .5rem; }
.ed-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
.ed-three { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
.ed-three .field:last-child { grid-column: 1 / -1; max-width: 10rem; }
@media (min-width: 30rem) {
  .ed-three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 8rem; }
  .ed-three .field:last-child { grid-column: auto; }
}
.editor input[type="time"] { text-align: left; }
.quick-list, .copy-list { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .375rem; }
.quick .pill { display: inline-grid; gap: 0; justify-items: start; border-radius: var(--radius); padding: .25rem .6875rem; line-height: 1.3; }
.readout { min-height: 3.5rem; padding: .75rem .875rem; background: var(--paper); border-radius: var(--radius); font-size: .9375rem; }
.readout .read-main { color: var(--ink); }
.readout .fig { font-weight: 600; }
.read-warns { margin-top: .5rem; display: grid; gap: .35rem; }
.read-warns li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.read-warns svg { margin-top: .25rem; color: var(--over); }
.copy-days, .avail { margin: 0; padding: 0; border: 0; min-width: 0; }
.copy-days legend, .avail legend { padding: 0; }
.day-check { padding: 0 .8rem 0 .65rem; border: 1px solid var(--rule-2); border-radius: var(--radius); font-size: .9375rem; }
.day-check:hover { border-color: var(--edge); }
.day-check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.day-check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.day-check small { font-size: .75rem; color: var(--muted); font-style: normal; }
.ed-actions { align-items: center; }
.ed-remove { margin-right: auto; }
.av-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .4rem .75rem; align-items: center; padding: .35rem 0; border-top: 1px solid var(--rule); }
.av-row:first-child { margin-top: .375rem; }
.av-day { font-size: .9375rem; color: var(--ink-2); }
.av-times { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .5rem; align-items: center; font-size: .875rem; color: var(--muted); }
@media (min-width: 36rem) {
  .av-row { grid-template-columns: 6.5rem 10rem minmax(0, 1fr); }
  .av-times { grid-column: auto; }
}

/* ================= below the sheet ================= */
.howto { margin-top: 3rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.howto > summary { gap: .625rem; min-height: 3.5rem; padding: .75rem 0; font-size: 1.0625rem; font-weight: 600; border-radius: 4px; }
.howto > summary::before { width: .4375rem; height: .4375rem; margin: 0 .25rem 0 .125rem; border-color: var(--ink-2); }
.howto .howto-body { max-width: var(--measure); padding: .25rem 0 2.25rem; color: var(--ink-2); }
.howto h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: 1.75rem; }
.howto .worked { padding: 1rem 1.125rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); font-size: 1rem; }
.howto .worked .fig { font-weight: 600; color: var(--ink); }
.howto strong { font-weight: 600; color: var(--ink); }

/* Custom version: a note in the same hand as the rest. Hidden in print (kit.css). */
.custom { margin-top: 3rem; padding: 1.75rem 1.25rem 1.5rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-2); }
.custom-kicker { gap: 0; }
.custom-kicker::before { content: none; }
.custom h2 { margin-top: .5rem; font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -.014em; }
.custom-lede { margin-top: .625rem; max-width: var(--measure); color: var(--ink-2); }
.custom-list { column-gap: 2.5rem; margin-top: 1.5rem; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.custom-list li { padding: .75rem 0; border-top: 1px solid var(--rule); }
.custom-list li:first-child, .custom-list li:nth-child(2) { border-top-color: var(--rule); }
.custom-list strong { display: block; font-weight: 600; color: var(--ink); }
.custom-cta { align-items: center; gap: .5rem 1rem; margin-top: 1.25rem; }
.custom-cta a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.125rem; font-size: 1rem; font-weight: 600; line-height: 1.3;
  color: var(--accent-ink); background: var(--accent); border-radius: var(--radius); text-decoration: none;
}
.custom-cta a:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.custom-cta span { font-style: normal; font-size: .9375rem; color: var(--muted); }
@media (min-width: 48rem) { .custom { padding: 2.25rem 2.25rem 2rem; } }
@media (min-width: 68rem) {
  .custom { grid-template-columns: 23rem minmax(0, 1fr); column-gap: 3.5rem; padding: 2.5rem 2.5rem 2.25rem; }
  .custom-list { margin-top: 0; }
  .custom-cta { margin-top: 1.5rem; }
  .custom-cta a { white-space: nowrap; }
  .custom-cta span { margin-top: .625rem; }
}

/* ---------- foot: what it is, what stays on the device, and who made it ---------- */
.foot { display: block; margin-top: 3rem; padding: 1.5rem 0 2.5rem; border-top: 0; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.foot .about { display: grid; gap: .5rem; max-width: 46rem; }
.foot .privacy { margin: 0; padding: 0; max-width: none; border: 0; font-size: inherit; font-style: normal; color: inherit; }
.foot .by { margin-top: 1.75rem; font-style: normal; color: var(--muted); }
.foot a { display: inline; min-height: 0; }

/* ---------- print: the copy for the wall ---------- */
.print-head { margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid #000; }
.print-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.print-date { font-size: .9375rem; }
@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --paper: #fff; --card: #fff; --sunk: #fff; --sel: #fff; --ink: #000; --ink-2: #222; --muted: #555; --rule: #bbb; --rule-2: #999; --edge: #999;
    --accent: #000; --accent-ink: #fff; --good: #000; --over: #000;
    --t0: #fff; --t1: #fff; --t2: #fff; --t3: #fff; --t4: #fff; --t5: #fff; --n0: #000; --n1: #000; --n2: #000; --n3: #000; --n4: #000; --n5: #000;
    color-scheme: light;
  }
  @page { size: landscape; margin: 12mm; }
  html { font-size: 11px; }
  .plan { display: block; }
  .rail { display: block; padding: 0; border: 0; }
  .week-bar, .labor, .day-view, .numbers, .empty, .f-cov, .cell-add, .chip-flag, .chip-sub, .keys-hint, .daybars { display: none !important; }
  .week-grid { display: block !important; }
  .week-grid .table-wrap { border: 0; border-radius: 0; }
  .grid { min-width: 0; border-collapse: collapse; }
  .grid .g-tot, .grid tfoot { display: none; }
  .grid thead th { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); padding: .4rem .5rem; border-bottom: 1px solid #000; }
  .grid tbody th, .grid tbody td { height: 2.6rem; padding: .35rem .5rem; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
  .grid tbody tr:last-child th, .grid tbody tr:last-child td { border-bottom: 1px solid var(--rule-2); }
  .grid .g-cell { border-left: 1px solid var(--rule); }
  .grid .g-cell.is-off { background: none; }
  .grid tr { break-inside: avoid; }
  .who { min-height: 0; padding: 0; }
  .who-name { font-size: 1.15rem; white-space: normal; }
  .cell-in { min-height: 0; }
  .chip, .chip.has-warn { padding: 0; border: 0; background: none; box-shadow: none; }
  .chip-time { font-size: 1.05rem; }
  /* With "print hours and labor cost" switched on */
  .with-costs .grid .g-tot { display: table-cell; }
  .with-costs .grid tfoot { display: table-footer-group; }
  .with-costs .chip-sub { display: flex !important; }
  .with-costs .labor { display: block !important; margin: 0; padding: 0 0 .75rem; border: 0; }
  .with-costs .labor .headline { display: block; }
  .with-costs .labor .signal { display: none; }
  .with-costs .result .key { font-size: 2rem; font-weight: 400; margin-top: 0; }
  .grid tfoot th { padding-left: 0; }
  .grid tfoot .f-sales td { padding: .4rem .5rem; }
  .line { break-inside: avoid; padding: 0 0 .3rem; }
  .line .c-x, .lines-foot, .send-actions { display: none; }
  .av-btn { display: block !important; border: 0; padding: 0; min-height: 0; }
  .pay-grid { columns: 1; }
  .pay-block { padding: .75rem 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; }
  .checks, .send { border-color: var(--rule-2); }
  .send { break-inside: avoid; }
  .sec-head p { display: none; }
  .howto, .custom, .foot { display: none !important; }
}

/* ---------- the way back to the tools list: small and quiet, above the product's own bar ---------- */
.to-tools {
  display: inline-flex; align-items: center; gap: .25rem; min-height: 1.75rem; margin-top: .5rem;
  font-size: .8125rem; font-weight: 500; line-height: 1; color: var(--muted); text-decoration: none;
}
.to-tools:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.to-tools svg { flex: none; }
@media print { .to-tools { display: none; } }
