/* Timecard. A time card rack on a workshop wall: the page is the wall, screens and lists are white paper,
   time cards are manila. Two inks, like a time clock: black means counted, red means held back, changed
   or needing a fix. Nothing else gets those inks. Archivo for words (condensed for headings), Doto for
   what a time clock prints: counts, times and fingerprints. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Doto"; src: url("fonts/doto.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --wall: #E1E7DE; --wall-2: #D3DCCF; --text: #1B1E25; --text-soft: #4D5560; --line: rgba(27, 30, 37, .16);
  --manila: #EFDA9E; --manila-2: #F5E7BE; --manila-rule: rgba(104, 76, 14, .30); --manila-soft: #62532C;
  --ink: #1B1E25; --red: #AC241A; --red-wash: rgba(172, 36, 26, .09);
  --paper: #FFFFFF; --paper-2: #F0F3EF; --paper-soft: #57606A; --paper-line: rgba(27, 30, 37, .13);
  --bezel: #232B27; --on-bezel: #E6ECE3; --on-bezel-soft: #AEB9B1;
  --shadow: rgba(24, 40, 30, .30);
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --stamp: "Doto", "Courier New", ui-monospace, monospace;
  --code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--text); font: 400 16px/1.55 var(--body); font-stretch: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
small, .small { font-size: 13.5px; }
.soft { color: var(--text-soft); }
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; }
.stampnum { font-family: var(--stamp); font-weight: 900; }
.code { font-family: var(--code); font-size: 13px; }
.mark { width: 22px; height: 28px; flex: none; }
.mark .m-card { fill: var(--manila); }
.mark .m-line { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.mark .m-red { fill: var(--red); }

/* ---------- type */
.h-big { font-family: var(--display); font-weight: 850; font-stretch: 68%; font-size: clamp(34px, 4.6vw, 54px); line-height: .95; letter-spacing: -.01em; }
h1 { font-family: var(--display); font-weight: 800; font-stretch: 72%; font-size: clamp(30px, 3.6vw, 42px); line-height: 1; letter-spacing: -.005em; }
h2 { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 24px; line-height: 1.1; }
h3 { font-weight: 750; font-size: 17px; line-height: 1.3; }
.sub { color: var(--text-soft); margin-top: 8px; max-width: 46em; }
.lede { font-size: 18px; line-height: 1.5; max-width: 38em; }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: 6px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 650 14.5px/1.15 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--line); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: #3A4048; border-color: #3A4048; }
.btn.small { min-height: 32px; padding: 4px 11px; font-size: 13.5px; border-width: 1.5px; }
.btn.quiet { border-color: transparent; padding-left: 6px; padding-right: 6px; text-decoration: underline; }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], input[type=time], select, textarea {
  font: 500 15px/1.3 var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--paper-line); border-radius: 6px; padding: 8px 10px; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--line); }
textarea { width: 100%; font-family: var(--code); font-size: 13px; line-height: 1.5; }
label { font-weight: 650; font-size: 14px; }
.hint { font-weight: 400; color: var(--paper-soft); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 18px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.checks-row { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- notes */
.note { border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; font-weight: 550; }
.note.ok { background: var(--paper); border-left: 4px solid var(--ink); }
.note.err { background: var(--paper); border-left: 4px solid var(--red); color: var(--red); }
.note.info { background: var(--manila-2); border-left: 4px solid var(--manila-soft); font-weight: 450; }

/* ---------- the agency frame: a dark bar, then the wall */
.bar { background: var(--bezel); color: var(--on-bezel); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; min-height: 58px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--on-bezel); text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 22px; letter-spacing: -.01em; }
.bar-agency { color: var(--on-bezel-soft); font-size: 14.5px; }
.pill { display: inline-block; background: var(--manila); color: var(--ink); border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: 12.5px; }
.bar-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bar-nav > a, .more > summary { color: var(--on-bezel); text-decoration: none; font-weight: 650; font-size: 15px; padding: 7px 12px; border-radius: 6px; cursor: pointer; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.bar-nav > a:hover, .more > summary:hover { background: rgba(255, 255, 255, .08); }
.bar-nav > a.on, .more > summary.on { box-shadow: inset 0 -3px 0 var(--manila); border-radius: 6px 6px 0 0; }
.more { position: relative; }
.more > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 6px; box-shadow: 0 18px 40px -16px var(--shadow), 0 0 0 1px var(--paper-line); }
.more-menu a { display: block; padding: 9px 12px; border-radius: 5px; text-decoration: none; font-weight: 600; }
.more-menu a:hover { background: var(--paper-2); }
.more-menu a.on { box-shadow: inset 3px 0 0 var(--ink); }
.page { max-width: 1180px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
.foot { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); color: var(--text-soft); font-size: 13.5px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; flex-wrap: wrap; }
.head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }
.crumbs a { color: var(--text-soft); }

/* ---------- surfaces */
.panel { background: var(--paper); color: var(--ink); border-radius: 8px; padding: 20px 22px; box-shadow: 0 1px 0 var(--line), 0 24px 40px -36px var(--shadow); min-width: 0; }
.panel + .panel, .stack > * + * { margin-top: 18px; }
.panel > h2 { margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel .muted, .panel .soft { color: var(--paper-soft); }
.card { position: relative; background-color: var(--manila); color: var(--ink); clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .28 0 0 0 0 .08 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lift { filter: drop-shadow(0 16px 20px var(--shadow)) drop-shadow(0 1px 0 var(--shadow)); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols > .panel { margin-top: 0; }
.stack { min-width: 0; }

/* ---------- tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--paper-soft); padding: 0 10px 8px; border-bottom: 2px solid var(--ink); line-height: 1.25; vertical-align: bottom; }
td { padding: 11px 10px 10px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th.n, td.n { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.rowlink { font-weight: 700; text-decoration: none; }
.rowlink:hover { text-decoration: underline; }
.numlink { text-decoration: none; }
.numlink:hover { text-decoration: underline; text-decoration-thickness: 2px; }
td .sub2 { display: block; color: var(--paper-soft); font-size: 13.5px; font-weight: 400; margin-top: 1px; }
.big { font-family: var(--stamp); font-weight: 900; font-size: 22px; line-height: 1.05; }
.big.red, .red .big { color: var(--red); }
.grade { font-family: var(--display); font-weight: 850; font-stretch: 72%; font-size: 26px; line-height: 1; }
.foot-note { font-size: 13.5px; color: var(--paper-soft); margin-top: 12px; }

/* ---------- stamps and tags */
.stamp { display: inline-block; font-family: var(--stamp); font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: .02em; padding: 6px 10px 4px;
  border: 3px solid currentColor; border-radius: 3px; color: var(--ink); transform: rotate(-4deg); white-space: nowrap; }
.stamp.red { color: var(--red); }
.stamp.sm { font-size: 17px; padding: 3px 7px 2px; border-width: 2px; transform: rotate(-3deg); }
.stamp.thunk { animation: thunk .26s cubic-bezier(.3, 1.5, .6, 1); }
@keyframes thunk { from { transform: rotate(-4deg) scale(1.3); opacity: .35; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; line-height: 18px; }
.tag.red { border-color: var(--red); color: var(--red); }
.tag.soft { border-color: var(--paper-line); color: var(--paper-soft); font-weight: 600; }
.tag.fill { background: var(--ink); color: var(--paper); }

/* ---------- the Board */
.board-sum { font-family: var(--display); font-weight: 750; font-stretch: 84%; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.22; max-width: 34em; margin: -6px 0 22px; }
.board-table td { vertical-align: top; }
.board-table .biz a { font-size: 16.5px; }
.board-table .w { font-size: 14px; line-height: 1.45; }
.board-table .w span { color: var(--paper-soft); }
.keep b { display: block; }
.keep span { display: block; font-size: 13.5px; color: var(--paper-soft); }
.keep.red b, .keep.red span { color: var(--red); }
.fix { margin-top: 34px; scroll-margin-top: 16px; }
.fix-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.fix-h .count { font-family: var(--stamp); font-weight: 900; color: var(--red); font-size: 28px; line-height: 1; }
.fix-h .count.zero { color: var(--ink); }
.fix-list { list-style: none; margin: 0; padding: 0; }
.fix-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 16px 0 16px 28px; border-top: 1px solid var(--paper-line); position: relative; }
.fix-item:first-child { border-top: 0; padding-top: 4px; }
.fix-item::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 12px; background: var(--red); }
.fix-item:first-child::before { top: 10px; }
.fix-item.low::before { background: transparent; border: 2px solid var(--red); }
.fx-t { font-weight: 750; font-size: 17px; line-height: 1.35; }
.fx-d { margin-top: 4px; font-size: 15px; max-width: 52em; }
.fx-do { margin-top: 4px; font-size: 15px; font-weight: 650; max-width: 52em; }
.fx-meta { margin-top: 6px; font-size: 13.5px; color: var(--paper-soft); }
.fx-acts { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.fx-acts form { margin: 0; }
.fix-more { margin-top: 6px; }
.fix-more > summary, details.plain > summary { cursor: pointer; font-weight: 650; width: fit-content; padding: 6px 0; }
.handled-list { list-style: none; margin: 6px 0 0; padding: 0; }
.handled-list li { padding: 9px 0; border-top: 1px solid var(--paper-line); font-size: 14.5px; }
.handled-list li span { color: var(--paper-soft); }
.empty { color: var(--paper-soft); padding: 8px 0; }

/* ---------- client page */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin: -6px 0 22px; border-bottom: 2px solid var(--line); }
.tabs a { padding: 9px 14px; text-decoration: none; font-weight: 650; color: var(--text-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--ink); }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.nums > div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--paper-line); }
.nums dt { font-size: 13.5px; color: var(--paper-soft); font-weight: 600; }
.nums dd { margin: 2px 0 0; font-family: var(--stamp); font-weight: 900; font-size: 30px; line-height: 1.05; }
.nums dd a { text-decoration: none; }
.nums dd a:hover { text-decoration: underline; }
.nums dd.red { color: var(--red); }
.nums dd small { font-family: var(--body); font-weight: 600; font-size: 13.5px; color: var(--paper-soft); }
.money-line { margin-top: 12px; font-size: 15.5px; }
.money-line b { font-weight: 750; }
.money-line b.red { color: var(--red); }
.daychart { margin-top: 18px; }
.daychart svg { display: block; width: 100%; height: auto; }
.daychart .dot { fill: var(--ink); }
.daychart .dot.held { fill: var(--red); }
.daychart text { font: 600 10px var(--body); fill: var(--paper-soft); }
.daychart .base { stroke: var(--paper-line); }
.chart-cap { font-size: 13.5px; color: var(--paper-soft); margin-top: 6px; }
.owner-box { padding: 18px 18px 16px 22px; }
.owner-box h2 { font-size: 20px; }
.owner-box p { font-size: 14.5px; color: var(--manila-soft); margin: 4px 0 12px; }

/* ---------- the week card (owner page and client page) */
.weekcard { padding: 16px 16px 14px 22px; }
.wk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 2px; }
.wk-title { font-family: var(--display); font-weight: 850; font-stretch: 70%; font-size: 22px; letter-spacing: .07em; }
.wk-when { font-family: var(--stamp); font-weight: 900; font-size: 15px; }
.wk { width: 100%; border-collapse: collapse; }
.wk th { font-size: 12px; font-weight: 700; color: var(--manila-soft); text-align: right; padding: 8px 0 6px 6px; border-bottom: 1.5px solid var(--ink); vertical-align: bottom; }
.wk th:first-child { text-align: left; }
.wk td { padding: 6px 0 5px 6px; border-bottom: 1px solid var(--manila-rule); text-align: right; font-family: var(--stamp); font-weight: 900; font-size: 19px; line-height: 1.1; }
.wk td:first-child { text-align: left; padding-left: 0; font-family: var(--body); font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.wk td:first-child small { font-weight: 400; color: var(--manila-soft); font-size: 13px; margin-left: 4px; }
.wk tr.today td { background: var(--manila-2); }
.wk tr.future td { color: var(--manila-soft); font-family: var(--body); font-weight: 400; font-size: 14px; }
.wk tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 7px; font-size: 22px; }
.wk tfoot td:first-child { font-size: 14.5px; font-weight: 750; }
.wk-note { font-size: 13px; line-height: 1.45; color: var(--manila-soft); margin-top: 8px; }

/* ---------- one call */
.call-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fact { padding: 20px 22px 18px 26px; }
.fact + .fact { margin-top: 16px; }
.fact-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; }
.fact-head h2 { font-size: 22px; }
.fact-head .when { color: var(--manila-soft); font-size: 14.5px; margin-top: 4px; }
.fact .why { margin-top: 8px; font-weight: 650; }
.fact .why.red { color: var(--red); }
.slip { background: var(--paper); color: var(--ink); border-radius: 3px; padding: 14px 16px; font-size: 15px; line-height: 1.5; margin-top: 14px;
  box-shadow: 0 1px 0 rgba(60, 45, 10, .12), 0 8px 16px -12px rgba(60, 45, 10, .55); }
.slip { overflow-wrap: anywhere; }
.hours { max-width: 520px; }
.hours td { vertical-align: middle; padding-top: 7px; padding-bottom: 7px; }
.slip-k { font-size: 12.5px; font-weight: 700; color: var(--paper-soft); margin-bottom: 8px; }
.must { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.must li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; align-items: start; }
.must svg { width: 22px; height: 22px; margin-top: 1px; }
.must .ok svg { color: var(--ink); }
.must .no svg, .must .no b { color: var(--red); }
.must span { display: block; color: var(--paper-soft); font-size: 14px; line-height: 1.4; }
.score { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--paper-line); }
.score-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; }
.score-top b { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 26px; font-variant-numeric: tabular-nums; }
.bar-track { position: relative; height: 12px; background: var(--paper-2); border-radius: 2px; margin: 6px 0 4px; }
.bar-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 2px; }
.bar-track em { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--red); }
.bar-k { position: relative; height: 18px; font-size: 12.5px; color: var(--paper-soft); }
.bar-k span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.score-note { font-size: 14px; color: var(--paper-soft); margin-top: 4px; }
.how { margin-top: 12px; font-size: 14px; }
.how > summary, .math > summary { cursor: pointer; font-weight: 650; width: fit-content; }
.how table { margin-top: 8px; font-size: 13.5px; }
.how td { padding: 4px 6px; }
.how td + td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.how tr.total td { font-weight: 800; border-bottom: 0; }
.how p { margin-top: 8px; color: var(--paper-soft); }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li { padding: 8px 0; border-top: 1px solid var(--paper-line); }
.ev-list li:first-child { border-top: 0; padding-top: 0; }
.ev-list b { display: block; }
.ev-list span { color: var(--paper-soft); font-size: 14px; }
.also { list-style: none; margin: 0; padding: 0; }
.also li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--manila-rule); }
.also li:first-child { border-top: 0; }
.say { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 12px; padding: 5px 0; }
.say .who { font-size: 13px; font-weight: 700; color: var(--paper-soft); padding-top: 2px; }
.say.ai .who { color: var(--ink); }
.say.ai .line { font-weight: 600; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.kv dt { color: var(--paper-soft); font-size: 14px; font-weight: 600; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hash { font-family: var(--stamp); font-weight: 800; font-size: 15px; line-height: 1.45; letter-spacing: .01em; overflow-wrap: anywhere; }
.hash .d { color: var(--red); background: var(--red-wash); border-radius: 2px; }
.flag { padding: 10px 0; border-top: 1px solid var(--paper-line); }
.flag:first-of-type { border-top: 0; }
.flag q { font-weight: 600; }

/* ---------- forms in panels */
.panel form + form { margin-top: 10px; }
.subtle-list { list-style: none; margin: 0; padding: 0; }
.subtle-list li { padding: 10px 0; border-top: 1px solid var(--paper-line); }
.subtle-list li:first-child { border-top: 0; }
.subtle-list .sub2, .reply-who { display: block; color: var(--paper-soft); font-size: 13.5px; }

/* ---------- the owner's page */
body.owner { background: var(--paper-2); }
.o-page { max-width: 560px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
.o-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.o-biz { font-family: var(--display); font-weight: 850; font-stretch: 74%; font-size: 30px; line-height: 1; }
.o-sub { color: var(--paper-soft); margin-top: 6px; font-size: 15px; }
.o-top .mark { width: 26px; height: 33px; }
.o-sec { margin-top: 26px; }
.o-sec h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--body); font-stretch: 100%; font-size: 19px; font-weight: 750; }
.o-sec h2 span { font-family: var(--stamp); font-weight: 900; font-size: 24px; }
.o-sec h2 span.red { color: var(--red); }
.o-why { font-size: 14px; line-height: 1.45; color: var(--paper-soft); margin: 4px 0 6px; }
.o-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: 8px; box-shadow: 0 1px 0 var(--paper-line); }
.o-list li { padding: 12px 14px; border-top: 1px solid var(--paper-line); font-size: 14.5px; line-height: 1.45; }
.o-list li:first-child { border-top: 0; }
.o-who { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15.5px; }
.o-who > span { font-weight: 400; color: var(--paper-soft); font-size: 13.5px; white-space: nowrap; }
.o-who > span.o-tel { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.o-tel { font-variant-numeric: tabular-nums; font-weight: 600; }
.o-tel a { text-decoration: none; border-bottom: 1.5px solid var(--ink); }
.o-reason { color: var(--paper-soft); }
.o-said { margin-top: 2px; }
.o-acts { margin-top: 8px; }
.o-more { margin-top: 8px; }
.o-more > summary { cursor: pointer; font-weight: 650; padding: 6px 2px; width: fit-content; }
.o-more .o-list { margin-top: 4px; }
.o-report { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper); border-radius: 8px; padding: 14px; box-shadow: 0 1px 0 var(--paper-line); }
.o-foot { margin-top: 30px; font-size: 13.5px; color: var(--paper-soft); }

/* ---------- public pages: Verify */
.pub { max-width: 1020px; margin: 0 auto; padding: 26px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
.pub-top { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 22px; width: fit-content; }
.pub h1 { font-size: clamp(34px, 4.6vw, 52px); font-stretch: 68%; font-weight: 850; line-height: .95; }
.pub .lede { margin-top: 14px; }
.bench { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 24px; margin-top: 30px; align-items: start; }
.receipt { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 22px 22px 20px; box-shadow: 0 24px 44px -34px var(--shadow); }
.rc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.rc-head b { font-size: 18px; font-weight: 750; }
.rc-head span { font-family: var(--stamp); font-weight: 900; font-size: 15px; }
.rc-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--paper-line); }
.rc-row label, .rc-row .k { font-size: 14px; font-weight: 650; color: var(--paper-soft); }
.rc-row input { width: 100%; min-width: 0; background: var(--paper-2); }
.rc-row .v { font-weight: 600; overflow-wrap: anywhere; }
.rc-hint { font-size: 14px; color: var(--paper-soft); margin-top: 12px; }
.check-card { padding: 26px 26px 24px 32px; }
.fp + .fp { margin-top: 16px; }
.fp-k { font-size: 14px; font-weight: 700; color: var(--manila-soft); margin-bottom: 4px; }
.verdict { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--ink); }
.verdict p { font-size: 16px; font-weight: 600; max-width: 26em; line-height: 1.45; }
.verdict p.red { color: var(--red); }
.anchor-note { font-size: 14.5px; color: var(--manila-soft); margin-top: 16px; line-height: 1.5; }
.math { margin-top: 14px; font-size: 14.5px; }
.math ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.math .hash { font-size: 13.5px; display: block; margin-top: 2px; }
.math pre { margin: 10px 0 0; padding: 12px; background: var(--paper); color: var(--ink); border-radius: 4px; font: 12.5px/1.5 var(--code); white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; }
.math .res { display: block; font-weight: 750; margin-top: 2px; }
.math .res.red { color: var(--red); }
.pub-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; max-width: 640px; }
.pub-form input { flex: 1 1 280px; font-size: 16px; padding: 11px 12px; }
.pub-foot { margin-top: 40px; font-size: 14px; color: var(--text-soft); max-width: 46em; }
.steps3 { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps3 li h3 { font-family: var(--display); font-weight: 800; font-stretch: 72%; font-size: 26px; line-height: 1.05; }
.steps3 li p { margin-top: 6px; color: var(--text-soft); }

/* ---------- small pages */
.solo { max-width: 460px; margin: 60px auto; padding: 0 16px; }
.solo .pub-top { margin-bottom: 18px; }

/* ---------- ledger, settings and friends */
.stat-row { display: flex; flex-wrap: wrap; gap: 0; border-top: 2px solid var(--ink); }
.stat-row > div { flex: 1 1 150px; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--paper-line); }
.stat-row .v { font-family: var(--stamp); font-weight: 900; font-size: 26px; line-height: 1.05; }
.stat-row .v.red { color: var(--red); }
.stat-row .k { font-size: 13.5px; color: var(--paper-soft); font-weight: 600; }
.verdict-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.section-gap { margin-top: 28px; }

/* ---------- narrow screens */
@media (max-width: 980px) {
  .cols, .cols.even, .call-grid, .bench { grid-template-columns: minmax(0, 1fr); }
  .steps3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .board-table thead { display: none; }
  .board-table, .board-table tbody, .board-table tr, .board-table td { display: block; width: 100%; }
  .board-table tr { padding: 14px 0; border-bottom: 1px solid var(--paper-line); }
  .board-table tr:first-child { border-top: 2px solid var(--ink); }
  .board-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: right; padding: 4px 0; border: 0; }
  .board-table td::before { content: attr(data-label); font-size: 13.5px; font-weight: 650; color: var(--paper-soft); text-align: left; }
  .board-table td.biz, .board-table td.w { display: block; text-align: left; }
  .board-table td.biz::before, .board-table td.w::before { content: none; }
  .stack-sm thead { display: none; }
  .stack-sm, .stack-sm tbody, .stack-sm tr, .stack-sm td { display: block; width: 100%; }
  .stack-sm tr { padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
  .stack-sm tr:first-child { border-top: 2px solid var(--ink); }
  .stack-sm tr:last-child { border-bottom: 0; }
  .stack-sm td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: right; padding: 3px 0; border: 0; }
  .stack-sm td::before { content: attr(data-label); font-size: 13.5px; font-weight: 650; color: var(--paper-soft); text-align: left; }
  .stack-sm td:first-child, .stack-sm td.fixcell, .stack-sm td.editcell { display: block; text-align: left; max-width: none !important; }
  .stack-sm td:first-child::before, .stack-sm td.editcell::before { content: none; }
  .stack-sm td.fixcell::before { display: block; margin-bottom: 2px; }
  .stack-sm td.fixcell:empty { display: none; }
  .fix-item { grid-template-columns: minmax(0, 1fr); }
  .fx-acts { justify-content: flex-start; }
  .bar-agency { display: none; }
  .panel { padding: 16px 16px; }
  .rc-row { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .say { grid-template-columns: minmax(0, 1fr); }
  .hours tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--paper-line); }
  .hours td { display: block; padding: 0; border: 0; }
  .hours td:first-child { grid-column: 1 / -1; }
  .hours input[type=time] { width: 100%; }
  .check-card { padding: 22px 18px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .stamp.thunk { animation: none; } }

/* client setup: the ways bookings reach Timecard */
.way { padding: 16px 0 4px; border-top: 1px solid var(--paper-line); margin-top: 14px; }
.way-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.way-head h3 { margin: 0; }
.way-form { margin-top: 10px; }
.way-form input[type=url] { width: min(520px, 100%); }
[hidden] { display: none !important; }

/* owner page: what the month's counted bookings are worth, and marking jobs done */
.o-money { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: var(--paper); box-shadow: 0 1px 0 var(--paper-line); }
.o-money-k { font-size: 13.5px; font-weight: 700; color: var(--paper-soft); }
.o-money-v { font-family: var(--stamp); font-weight: 900; font-size: 40px; line-height: 1.05; margin-top: 2px; }
.o-money p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--paper-soft); }
.o-job { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.o-job input { width: 110px; }
.o-dollar { font-weight: 700; }

/* hear the mistake: the moment in the call, and the recording */
.hear { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.hear audio { width: min(360px, 100%); height: 34px; }
.hear-at { color: var(--paper-soft); }
.call-audio { width: 100%; margin-bottom: 10px; }
.t-at { display: block; margin: 2px 0 0; font: 600 12px var(--code); color: var(--paper-soft); background: none; border: 0; padding: 0; text-align: left; }
button.t-at { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.say.flagged .line { background: rgba(172, 36, 26, .09); box-shadow: inset 3px 0 0 var(--red); padding-left: 8px; }
.say:target .line { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.say { scroll-margin-top: 90px; }

/* the agency's brand */
.brand-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.brand-logo { min-width: 120px; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 6px 10px;
  border: 1.5px dashed var(--paper-line); border-radius: 6px; background: var(--paper-2); }
.brand-logo img { max-height: 48px; max-width: 220px; display: block; }
.owner.branded { border-top: 5px solid var(--brand); }
.owner.branded .btn.solid { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.o-brand { max-height: 40px; max-width: 160px; display: block; }
.o-contact { margin-top: 26px; font-size: 14px; line-height: 1.5; }
.o-contact a { font-weight: 650; }

/* the audit link a prospect gets */
.public.branded { border-top: 5px solid var(--brand); }
.public.branded .btn.solid { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-top span { font-size: 13.5px; font-weight: 650; color: var(--text-soft); }
.a-logo { max-height: 40px; max-width: 200px; display: block; }
.a-headline { font-size: 17px; font-weight: 650; line-height: 1.45; margin: 14px 0 20px; max-width: 40em; }
.a-next p { max-width: 42em; }
.a-proof .verdict { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-top: 0; padding-top: 0; margin-top: 0; }
