/* Change Order Signal. FactualIQ palette on light: navy structure, one orange accent, work on white under a warm head band. */
:root {
  --orange: #e36d19; --orange-deep: #a8520e; --orange-tint: #fbe9dc; --orange-line: #f0c9a8;
  --navy: #163554; --navy-dark: #0e1a2b;
  --ink: #1d2733; --ink-2: #4c5866; --line: #d5dae3; --line-soft: #e6e9ef;
  --band: #f4efe6; --surface: #fff; --row: #f8f9fb; --inset: #f6f2ec;
  --good: #23633a; --good-tint: #e3f1e7;
  --blue: #1d4f91; --blue-tint: #e4edf9;
  --warn: #7a5300; --warn-tint: #fbf0d3;
  --bad: #9c2226; --bad-tint: #fbe6e6;
  --neutral: #3f4b59; --neutral-tint: #edf0f4;
  --radius: 6px;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 14px/1.45 var(--sans); color: var(--ink); background: var(--surface); }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Top bar */
.topbar { height: 52px; display: flex; align-items: center; gap: 28px; padding: 0 24px; background: var(--navy-dark); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: #c9d3df; text-decoration: none; font-weight: 500; padding: 15px 0 13px; border-bottom: 3px solid transparent; }
.topnav a.on { color: #fff; border-bottom-color: var(--orange); }
.acct { position: relative; margin-left: auto; }
.acct-who { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; font-weight: 600; cursor: pointer; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 230px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 8px 22px rgba(14,26,43,.14); display: grid; gap: 4px; }
.acct-label { margin: 0; color: var(--ink-2); text-transform: capitalize; font-size: 13px; }
.acct-mail { margin: 0 0 6px; font-weight: 500; }
.acct-item { color: var(--navy); text-decoration: none; font-weight: 500; padding: 4px 0; }
.acct-item:hover { text-decoration: underline; }

/* App mark: one periodic-table cell (oe-contract-manager AppTile), on a dark bar */

/* Head band */
.band { background: var(--band); padding: 18px 24px 0; }
.crumbs { display: flex; gap: 8px; color: var(--ink-2); margin-bottom: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.head { display: flex; align-items: flex-start; gap: 18px; }
.head h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--navy-dark); line-height: 1.2; }
.head .grow { flex: 1; min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 600; }
.facts a { font-weight: 600; text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.actions { display: flex; gap: 8px; align-items: center; flex: none; }
.stats { display: flex; gap: 36px; margin: 18px 0 2px; }
.stat .n { font-size: 24px; font-weight: 600; color: var(--navy-dark); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .l { color: var(--ink-2); }

/* Tabs: a strip of separate underlines, orange on the active one */
.tabs { display: flex; gap: 24px; margin-top: 18px; }
.tab { border: 0; background: none; padding: 8px 0 9px; cursor: pointer; font-weight: 500; color: var(--ink-2); border-bottom: 3px solid #c5ccd6; display: inline-flex; gap: 8px; align-items: baseline; }
.tab.on { color: var(--navy-dark); font-weight: 600; border-bottom-color: var(--orange); }
.tab .ct { font-weight: 400; color: var(--ink); }

/* Buttons */
.btn { height: 34px; padding: 0 14px; border-radius: var(--radius); border: 0; background: var(--navy); color: #fff; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--navy-dark); }
.btn.accent { background: var(--orange-deep); }
.btn.accent:hover { background: #8e450b; }
.btn.ghost { background: var(--surface); color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.sm { height: 30px; padding: 0 11px; }
.btn:disabled { background: var(--line-soft); color: var(--ink-2); cursor: not-allowed; border: 0; }
.tip { position: relative; display: inline-flex; }
.tip > button:disabled { pointer-events: none; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; background: var(--tipbg, var(--navy-dark)); color: var(--tipfg, #fff); border: 1px solid var(--tipline, transparent); font-weight: 500; padding: 6px 10px; border-radius: 5px; white-space: nowrap; }
.actions [data-tip]:hover::after { left: auto; right: 0; }
select.year { height: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 10px; font-weight: 600; }

/* Page body */
.page { padding: 20px 24px 60px; }
.section + .section { margin-top: 30px; }
.section h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--navy-dark); display: flex; gap: 10px; align-items: baseline; }
.section h2 .ct { color: var(--ink-2); font-weight: 500; }
.empty { color: var(--ink-2); padding: 14px 0; }

/* Tables: one size throughout, rule under the header only, faint banding */
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.grid th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-bottom: 1.5px solid var(--navy); white-space: nowrap; }
.grid td { padding: 9px 12px; vertical-align: top; }
.grid tbody tr:nth-child(even of :not(.open-row)) td { background: var(--row); }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid .nm { font-weight: 600; color: var(--navy); }
.grid .mu { color: var(--ink-2); }
.grid tr.link { cursor: pointer; }
.grid tr.link:hover td { background: var(--orange-tint); }
.grid a.pg { text-decoration: none; font-weight: 500; white-space: nowrap; }
.grid a.pg:hover { text-decoration: underline; }
.grid .act { text-align: right; white-space: nowrap; }
.grid .act .btn + .btn { margin-left: 6px; }

/* Chips: flat tints, small radius */
.chip { --tipbg: var(--neutral-tint); --tipfg: var(--neutral); display: inline-block; font-weight: 600; border-radius: 3px; padding: 1px 7px; white-space: nowrap; background: var(--neutral-tint); color: var(--neutral); }
.chip.good { background: var(--good-tint); color: var(--good); --tipbg: var(--good-tint); --tipfg: var(--good); }
.chip.blue { background: var(--blue-tint); color: var(--blue); --tipbg: var(--blue-tint); --tipfg: var(--blue); }
.chip.warn { background: var(--warn-tint); color: var(--warn); --tipbg: var(--warn-tint); --tipfg: var(--warn); }
.chip.bad { background: var(--bad-tint); color: var(--bad); --tipbg: var(--bad-tint); --tipfg: var(--bad); }
.chip.accent { background: var(--orange-tint); color: var(--orange-deep); --tipbg: var(--orange-tint); --tipfg: var(--orange-deep); }
.chip[data-tip]:hover::after { --tipline: currentColor; }

/* Upload drop */
.drop { border: 1.5px dashed var(--orange-line); background: #fffaf6; border-radius: 8px; padding: 26px 22px; display: flex; align-items: center; gap: 18px; }
.drop.over { border-color: var(--orange); background: var(--orange-tint); }
.drop .big { font-weight: 600; color: var(--navy-dark); font-size: 15px; }
.drop .mu { color: var(--ink-2); }

/* Return view: form list beside the form */
.reader { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.formnav { position: sticky; top: 12px; display: grid; gap: 2px; }
.formnav button { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 5px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; color: var(--ink); }
.formnav button:hover { background: var(--row); }
.formnav button.on { background: var(--orange-tint); color: var(--navy-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
.formnav .n { color: var(--ink-2); font-weight: 500; }
.formnav .mks { display: inline-flex; align-items: center; gap: 8px; }
.formnav .flag { color: var(--bad); font-weight: 600; }
.discrep, .stat .n.discrep, .tab .ct.discrep, .filter .ct.discrep, .figs dd.discrep, .grid td.discrep { color: var(--bad); font-weight: 600; }
.formhead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.formhead h2 { margin: 0; font-size: 18px; color: var(--navy-dark); }
.formhead .src { color: var(--ink-2); }
.formhead .btn { align-self: center; margin-left: 4px; }
.grid td.flagged, .grid tbody tr:nth-child(even of :not(.open-row)) td.flagged { background: var(--bad-tint); color: var(--bad); font-weight: 600; }
.grid td.ln { width: 56px; color: var(--ink-2); font-weight: 600; }
.grid td.desc { min-width: 260px; }
table.grid.narrow { max-width: 900px; }
.grid th.colh, .grid td.colv { text-align: right; }
.grid td.txt { color: var(--ink); }

/* Open items */
.items tr.open-row > td { background: var(--surface) !important; padding: 0 12px 20px; }
.items tr.on > td { background: var(--orange-tint) !important; }
.items tr.on > td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.itembody { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-top: 14px; }
.detail { margin: 0 0 12px; font-size: 14px; }
.evidence { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.evidence th { text-align: left; color: var(--ink-2); font-weight: 600; padding: 6px 10px; border-bottom: 1.5px solid var(--navy); }
.evidence td { padding: 7px 10px; }
.evidence tr:nth-child(even) td { background: var(--row); }
.decide { background: var(--inset); border-radius: 8px; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.decide .btn.accent { justify-content: flex-start; }
.decide .lbl { font-weight: 600; color: var(--navy-dark); }
.decide .row { display: flex; gap: 8px; flex-wrap: wrap; }
.decide textarea { width: 100%; min-height: 64px; border: 1px solid var(--line); border-radius: 5px; padding: 8px; background: #fff; resize: vertical; }
.decide .res { color: var(--ink); }
.decide .res b { font-weight: 600; }
.thread { display: grid; gap: 12px; margin-top: 10px; }
.msg .who { font-weight: 600; color: var(--navy-dark); display: flex; gap: 10px; align-items: baseline; }
.msg .who .when { font-weight: 400; color: var(--ink-2); }
.msg .txt { white-space: pre-wrap; }
.msg.engine .who { color: var(--orange-deep); }
.compose { display: flex; gap: 8px; align-items: flex-end; }
.compose textarea { flex: 1; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; padding: 8px; resize: vertical; background: #fff; }
.disc { margin-top: 14px; }

/* Messages */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; justify-items: end; }
.toast { background: var(--navy-dark); color: #fff; padding: 10px 14px; border-radius: 6px; max-width: 440px; display: flex; gap: 14px; align-items: baseline; animation: rise .18s ease-out; }
.toast.err { background: var(--bad); }
.toast .x { border: 0; background: none; color: #fff; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Keyboard focus: a visible ring on every control and row */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.grid tr.link:focus-visible { outline-offset: -2px; }
.grid tr.link:focus-visible td { background: var(--orange-tint); }
/* Confirmation sheet */
dialog.sheet { border: 0; border-radius: 10px; padding: 22px 24px; width: 440px; box-shadow: 0 18px 48px rgba(14,26,43,.24); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(14,26,43,.35); }
dialog.sheet[open] { animation: rise .16s ease-out; }
dialog.sheet h2 { margin: 0 0 14px; font-size: 18px; color: var(--navy-dark); }
dialog.sheet dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0 0 20px; }
dialog.sheet dt { color: var(--ink-2); }
dialog.sheet dd { margin: 0; font-weight: 600; }
dialog.sheet .row { display: flex; gap: 8px; justify-content: flex-end; }
.nw { white-space: nowrap; }
.grid th { font-size: 12px; font-weight: 600; color: #5b6775; border-bottom: 1px solid #cfd5de; }
.band .tabs { padding-bottom: 14px; }
.band.flat { padding-bottom: 18px; }
.page.tinted { background: #ecf0f5; min-height: calc(100vh - 214px); }
.panel { background: var(--surface); border-radius: 10px; padding: 16px 20px 18px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--navy-dark); display: flex; gap: 10px; align-items: baseline; }
.panel h2 .ct { color: var(--ink-2); font-weight: 500; }
.panel h2 .grow { flex: 1; }
.grid td.fl { color: var(--bad); font-weight: 600; }
.grid td.wrap { min-width: 240px; }
.grid td.det { color: var(--ink-2); min-width: 260px; }
.grid tr.total td { font-weight: 600; border-top: 1px solid #cfd5de; background: var(--surface) !important; }
.notice { background: var(--warn-tint); color: var(--warn); padding: 10px 24px; font-weight: 500; }
.notice code { font-weight: 600; }
.reading { display: inline-flex; align-items: center; gap: 7px; }
.reading::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.rename { border: 0; background: transparent; font: inherit; color: inherit; padding: 0; margin: 0; width: 100%; outline: none; }
.rename:hover { background: rgba(22,53,84,.05); border-radius: 4px; }
.brand .mark { width: 24px; height: 28px; flex: none; }
.brand-name { white-space: nowrap; }
a.tab { text-decoration: none; }
.grid .act .btn.sm { height: 26px; margin-top: -3px; margin-bottom: -3px; }
.grid td.act { width: 1%; }
.panel h2 .btn { font-size: 14px; }
.grid.kv { width: auto; min-width: 520px; }
.grid.kv td:first-child { width: 200px; }
.items tr.done td { color: var(--ink-2); }
.items tr.done td.nm { color: var(--ink-2); font-weight: 500; }
.inote { margin-top: 4px; color: var(--navy); font-weight: 500; }
.stat .n.sm { font-size: 15px; line-height: 29px; }
.grid .act .btn.sm + .btn.sm { margin-left: 6px; }
.items td.act { width: 92px; }
.items td.act .btn.sm, .items td.act .btn.sm + .btn.sm { display: flex; justify-content: center; width: 84px; margin: 0 0 5px 0; }
.items td.det { min-width: 200px; }
/* Sign-in and Users (from Tax Return Review) */
body.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--band); }
.login-panel { width: 380px; background: var(--surface); border-radius: 10px; padding: 34px 32px 30px; box-shadow: 0 10px 30px rgba(14,26,43,.10); text-align: center; }
.login-mark .mark { width: 34px; height: 40px; }
.login-panel h1 { margin: 18px 0 0; font-family: var(--serif); font-size: 24px; color: var(--navy-dark); }
.login-brand { margin: 6px 0 0; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--orange-deep); font-size: 12px; }
.login-lede { margin: 20px auto 0; max-width: 31ch; color: var(--ink-2); }
.login-form { margin-top: 26px; display: grid; gap: 10px; text-align: left; }
.login-form input { height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; }
.login-form .btn { justify-content: center; height: 38px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.login-msg { color: var(--ink-2); margin: 0; min-height: 0; }
.login-msg:empty { display: none; }
.user-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.user-add input, .user-add select, .grid select { height: 32px; border: 1px solid var(--line); border-radius: 5px; padding: 0 8px; background: #fff; }
/* Projects, empty: the four stages as a stepper; the action sits after the current stage */
.panel.start { padding: 24px 28px 28px; }
.start-head h2 { margin: 0 0 20px; font-size: 18px; color: var(--navy-dark); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 8px; background: var(--row); color: var(--ink-2); font-weight: 500; min-height: 64px; }
.steps li.on { background: var(--orange-tint); color: var(--navy-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
.steps .sn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #dde2e9; color: var(--navy-dark); font-size: 12px; font-weight: 700; flex: none; }
.steps li.on .sn { background: var(--orange-deep); color: #fff; }
.steps .sl { flex: 1; }
/* Add Project sheet */
.sheet-form { display: grid; gap: 14px; }
.sheet-form h2 { margin: 0 0 2px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-weight: 600; color: var(--navy-dark); }
.fld input { height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; }
.filepick { display: flex; align-items: center; gap: 10px; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px 0 10px; }
.filepick .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.sheet-msg { margin: 0; color: var(--bad); min-height: 0; }
.sheet-msg:empty { display: none; }
dialog.sheet .row { margin-top: 6px; }
/* The tinted work area runs to the bottom of the window on every page */
body:not(.login-page) { display: flex; flex-direction: column; min-height: 100vh; }
#app { flex: 1; display: flex; flex-direction: column; }
#app > .page.tinted { flex: 1; min-height: 0; }
.empty-card { display: flex; align-items: center; gap: 16px; padding: 22px 20px; }
.empty-card .eg { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--neutral-tint); color: var(--neutral); flex: none; }
.empty-card.clear .eg { background: var(--good-tint); color: var(--good); }
.empty-card .eg svg { width: 24px; height: 24px; }
.empty-card .eb { flex: 1; display: grid; gap: 3px; }
.empty-card h3 { margin: 0; font-size: 16px; color: var(--navy-dark); }
.empty-card .ec { color: var(--ink-2); }
.empty-card .ea { display: flex; gap: 8px; }
.steps li.done { background: var(--good-tint); color: var(--good); }
.steps li.done .sn { background: var(--good); color: #fff; }
.steps li .btn { flex: none; }
.panel.empty-card { padding: 18px 20px; }
.steps .sl { white-space: nowrap; }
.steps li .btn { height: 30px; padding: 0 11px; }
.steps { display: flex; flex-wrap: wrap; }
.steps li { flex: 1 1 0; min-width: max-content; }
/* Add Project sheet: wide enough for a long file name, never scrolls */
dialog.sheet.add { width: min(600px, calc(100vw - 32px)); max-height: none; overflow: visible; padding: 28px 32px 26px; }
dialog.sheet.add .sheet-form { gap: 18px; }
dialog.sheet.add h2 { font-size: 20px; }
dialog.sheet.add .fld input, dialog.sheet.add .filepick { height: 42px; }
.chip .since { font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 2px; }
/* Indicator tables: what it checks, status, result */
.grid.ind td.det { max-width: 380px; }
.grid.ind td.why { min-width: 300px; }
.grid.ind .res + .res { margin-top: 4px; }
.grid.ind .res.clear { color: var(--good); }
.grid.ind .res b { font-weight: 600; }
.grid.ind .res.alert b { color: var(--bad); } .grid.ind .res.open b { color: var(--warn); }
.grid .fl, .res .fl { color: var(--bad); font-weight: 600; }
.stat .l[data-tip] { cursor: help; text-decoration: underline dotted #b9c1cc; text-underline-offset: 3px; }
.stat .n.warnn { color: var(--warn); }
/* Source preview: the PDF swings in from the right with numbered, colored marks (from Tax Return Review / Proposal Validation) */
.doclink, .pglink { border: 0; background: none; padding: 0; cursor: pointer; color: var(--navy); font: inherit; text-align: left; }
.doclink { display: inline-flex; gap: 7px; align-items: baseline; }
.pglink[data-show-rev]:hover { text-decoration: underline; }
.pglink { font-weight: 600; white-space: nowrap; }
.mk { display: inline-grid; place-items: center; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 3px; background: var(--navy); color: #fff; font-weight: 600; font-size: 9px; line-height: 1; flex: none; align-self: center; }
/* Preview drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(820px, 58vw); z-index: 70; background: var(--surface); box-shadow: -14px 0 40px rgba(14,26,43,.22); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease-out; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--band); }
.drawer-head .dt { flex: 1; min-width: 0; }
.drawer-head .dname { font-weight: 600; color: var(--navy-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmarks { display: flex; gap: 4px; }
.dmarks .mk { border: 0; cursor: pointer; background: #c5ccd6; color: var(--navy-dark); }
.drawer-body { flex: 1; min-height: 0; overflow: auto; background: #e9edf2; padding: 4px 32px 40px; }
.pbox { position: relative; margin: 30px 0 0; background: #fff; box-shadow: 0 2px 10px rgba(14,26,43,.10); }
.pbox canvas { display: block; width: 100%; height: 100%; }
.pbox .pnum { position: absolute; left: 0; top: -22px; color: var(--ink-2); }
.pbox.cited { box-shadow: 0 0 0 2px var(--navy), 0 2px 10px rgba(14,26,43,.10); }
.pmark { position: absolute; border: 2px solid var(--navy); background: rgba(22,53,84,.10); border-radius: 3px; pointer-events: none; }
.ptag { position: absolute; left: -20px; min-width: 14px; height: 14px; padding: 0 3px; display: grid; place-items: center; border-radius: 3px; background: var(--navy); color: #fff; font-weight: 600; font-size: 9px; }
.ptag.page { left: 8px; }
.dmarks .mk { min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; border-radius: 4px; }

/* One color per marker number, the same on the card, in the preview header and on the PDF */
.c0 { --mc: #a8520e; --mt: rgba(168,82,14,.14); } .c1 { --mc: #163554; --mt: rgba(22,53,84,.12); } .c2 { --mc: #1d6b5a; --mt: rgba(29,107,90,.14); }
.c3 { --mc: #6d3f8f; --mt: rgba(109,63,143,.13); } .c4 { --mc: #1d4f91; --mt: rgba(29,79,145,.13); } .c5 { --mc: #8a2a2a; --mt: rgba(138,42,42,.12); }
.mk[class*=" c"], .ptag[class*=" c"] { background: var(--mc); color: #fff; }
.pmark[class*=" c"] { border-color: var(--mc); background: var(--mt); }
.dmarks .mk[class*=" c"] { opacity: .55; }
.dmarks .mk.on { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mc); }
.pmark.on { border-width: 3px; }
.ptag.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--mc); }

/* A document row is one target: a faint tone of the primary button on hover, focus and while previewed */
.evidence tr.evrow { cursor: pointer; }
.evidence tr.evrow:hover td, .evidence tr.evrow:focus-visible td { background: #f8eee5; }
.evidence tr.evrow.active td { background: #f3e2d3; }
.evidence tr.evrow:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: -2px; }
/* Source rows: the whole row opens the drawer at its mark */
.srcrow[data-src] { cursor: pointer; }
.srcrow[data-src]:hover td, .srcrow[data-src]:focus-visible td { background: #f8eee5; }
.srcrow.active td { background: #f3e2d3 !important; }
.srcgrid td.mkcell { width: 34px; padding-right: 0; }
.srcrow .mk, .srclink .mk { vertical-align: 1px; }
.srclink { border: 0; background: none; padding: 0; cursor: pointer; color: var(--navy); font: inherit; display: inline-flex; gap: 6px; align-items: baseline; text-align: left; }
.srclink:hover { text-decoration: underline; }
.pgref { color: var(--navy); font-weight: 600; white-space: nowrap; }
/* Drawer header: title and actions on one row, the numbered marks on their own row below */
.drawer-head { flex-wrap: wrap; row-gap: 8px; }
.drawer-head .dt { flex: 1 1 260px; }
.drawer-head .dmarks { order: 10; flex: 1 1 100%; flex-wrap: wrap; max-height: 64px; overflow-y: auto; }
.drawer-head .dmarks:empty { display: none; }
/* Remove shows only on hover or keyboard focus of its row (or the project head), and always asks first */
.grid tr .rm, .band .head .rm { opacity: 0; transition: opacity .12s; }
.grid tr:hover .rm, .grid tr:focus-within .rm, .band .head:hover .rm, .rm:focus-visible { opacity: 1; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger:hover { background: #7f1b1f; }
.sheet-body { margin: 0; color: var(--ink); }
/* Result lines lead to their details */
.res .srclink { display: inline; font-weight: inherit; color: inherit; text-align: left; }
.res .srclink:hover { text-decoration: underline; }
.plinks { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: 1px; }
.plink { font-weight: 600; text-decoration: none; padding: 0 6px; border-radius: 3px; background: var(--blue-tint); color: var(--blue); font-size: 12.5px; }
.plink:hover { text-decoration: underline; }
tr.flash > td { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--orange-tint); } 100% { background: inherit; } }
/* Open items as blocks: finding row, action bar and discussion share the item's background */
.items.blocks tbody.item td { background: var(--surface) !important; }
.items.blocks tbody.item:nth-of-type(even) td { background: var(--row) !important; }
.items.blocks tr.ihead td { padding-top: 12px; padding-bottom: 6px; }
.items.blocks tr.ibar td, .items.blocks tr.ithread td { padding: 0 12px 12px; }
.items.blocks .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; padding: 8px 10px; border-radius: 6px; background: rgba(22,53,84,.06); }
.items.blocks tbody.item.done .bar { background: rgba(22,53,84,.035); }
.items.blocks .bar .inote { margin: 0 0 0 6px; }
.items.blocks tbody.item.done tr.ihead td { color: var(--ink-2); }
.items.blocks tbody.item + tbody.item tr.ihead td { border-top: 1px solid #e3e7ed; }
.items.blocks .find { font-weight: 600; color: var(--navy); }
tbody.flash td { animation: flash 1.6s ease-out; }
.items.blocks .thread { background: #fff; border: 1px solid var(--line-soft); border-radius: 6px; padding: 12px 14px; margin-top: 0; }
.compose { display: flex; gap: 8px; align-items: flex-end; }
.compose textarea { flex: 1; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; padding: 8px; resize: vertical; background: #fff; font: inherit; }
.send { flex: none; width: 44px; height: 44px; border-radius: 6px; border: 0; background: var(--orange-deep); color: #fff; display: grid; place-items: center; cursor: pointer; }
.send:hover { background: #8e450b; }
.send svg { width: 18px; height: 18px; }
.send:disabled { background: var(--line); cursor: default; }
.send.busy svg { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(3px); } }
.fld textarea { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; resize: vertical; }
/* Homepage concept camo green (--green #1d382c, --green-2 #24463a) */
:root { --camo: #1d382c; --camo-2: #24463a; --camo-soft: #aebfb4; }
/* The action bar shows only for the item whose row was clicked (or whose discussion is open) */
.items.blocks tbody.item tr.ibar { display: none; }
.items.blocks tbody.item.sel tr.ibar { display: table-row; }
.items.blocks tr.ihead { cursor: pointer; }
.items.blocks tbody.item:not(.sel) tr.ihead:hover td { background: #f3f6f4 !important; }
.items.blocks tbody.item.sel tr.ihead td { box-shadow: inset 0 0 0 0 transparent; }
.items.blocks tbody.item.sel tr.ihead td:first-child { box-shadow: inset 3px 0 0 var(--camo); }
.items.blocks tbody.item:not(.sel) tr.ihead td { padding-bottom: 12px; }
/* Item status: workflow label with a dot */
.istat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.istat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.istat.s-returned::before { background: var(--blue); }
.istat.s-resolved::before { background: var(--good); }
.istat.s-waived::before { background: #8a96a3; }
.istat.s-resolved, .istat.s-waived { color: var(--ink-2); }
/* The numbers sit in their own panel inside the head band, apart from the contract header */
.band .stats { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; gap: 14px 40px; margin: 18px 0 4px; padding: 12px 22px 12px 18px; border-radius: 8px; background: var(--camo-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
/* Projects as cards */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 20px; align-items: stretch; }
.pcard { background: var(--surface); border-radius: 12px; box-shadow: 0 1px 2px rgba(14,26,43,.06), 0 6px 18px rgba(14,26,43,.06); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.pcard:hover, .pcard:focus-visible { box-shadow: 0 2px 4px rgba(14,26,43,.08), 0 12px 28px rgba(14,26,43,.12); transform: translateY(-1px); }
.pc-head { background: var(--camo); color: #fff; padding: 18px 22px 16px; }
.pc-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.25; }
.pc-sub { margin-top: 6px; color: #c9d6ce; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-dot { width: 4px; height: 4px; border-radius: 50%; background: #7d978a; }
.pc-facts { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr; gap: 14px; margin: 0; padding: 16px 22px 4px; }
.pc-facts dt { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.pc-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pc-facts dd.num { font-variant-numeric: tabular-nums; }
.pc-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 22px 4px; padding: 14px 16px; border-radius: 8px; background: var(--row); }
.pc-n b { display: block; font-size: 21px; font-weight: 600; color: var(--navy-dark); font-variant-numeric: tabular-nums; line-height: 1.15; min-height: 1.15em; }
.pc-n b.bad { color: var(--bad); } .pc-n b.warn { color: var(--warn); }
.pc-n span { color: var(--ink-2); font-size: 12.5px; }
.pc-list { width: calc(100% - 44px); margin: 12px 22px 0; border-collapse: collapse; font-size: 13.5px; }
.pc-list th { text-align: left; font-size: 12px; font-weight: 600; color: #5b6775; border-bottom: 1px solid #cfd5de; padding: 6px 8px; }
.pc-list td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.pc-list .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-list td.bad { color: var(--bad); font-weight: 600; }
.pc-list .pc-t { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-empty { margin: 14px 22px 0; color: var(--ink-2); }
.pc-foot { margin-top: auto; display: flex; align-items: center; gap: 14px; padding: 14px 22px 16px; color: var(--ink-2); flex-wrap: wrap; }
.pc-foot .grow { flex: 1; }
.pc-alerts { color: var(--bad); font-weight: 600; }
.pc-gap { color: var(--warn); font-weight: 600; }
/* Head numbers: one tile per number, spread across the band; Contract Sum leads */
.band .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; width: auto; max-width: none; margin: 20px 0 6px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.band .stat { background: var(--camo-2); border-radius: 10px; padding: 14px 18px 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.band .stat .n { font-size: 26px; }
.band .stat .l { margin-top: 2px; }
.band .stat.lead { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
/* Project cards: labels on one line, facts aligned across cards */
.pc-n span { white-space: nowrap; }
.pc-facts dd { min-height: 2.7em; }
.pc-nums { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Framework sits apart at the right edge of the tab strip */
.tabs .tabs-gap { flex: 1; }
/* Head band in warm white with dark text; number tiles as white cards, Contract Sum leads in a camo tint */
:root { --warm: #fbf8f3; --warm-line: #e9e2d6; --camo-tint: #e8efea; }
.band { background: var(--warm); border-bottom: 1px solid var(--warm-line); }
.band .stat { background: #fff; box-shadow: inset 0 0 0 1px var(--warm-line); }
.band .stat .n { color: var(--navy-dark); }
.band .stat.lead { background: var(--camo-tint); box-shadow: inset 0 0 0 1px #cfdcd3; }
.band .stat.lead .n { color: var(--camo); }
/* Project cards: warm white head, camo green titles */
.pc-head { background: var(--warm); color: var(--ink); border-bottom: 1px solid var(--warm-line); }
.pc-head h2 { color: var(--camo); }
.pc-sub { color: var(--ink-2); }
.pc-dot { background: #b8b0a3; }
.band .stat .n.discrep { color: var(--bad); }
.band .stat .n.warnn { color: var(--warn); }
/* No striped rows: the band color shows only on hover */
.grid tbody tr:nth-child(even of :not(.open-row)) td, .grid tbody tr:nth-child(even) td, .evidence tr:nth-child(even) td { background: transparent; }
.grid tbody tr:hover > td { background: var(--row); }
.grid tbody tr { border-bottom: 1px solid var(--line-soft); }
.grid tbody tr:last-child { border-bottom: 0; }
.items.blocks tbody.item:nth-of-type(even) td { background: var(--surface) !important; }
.items.blocks tbody.item:hover td { background: var(--row) !important; }
.items.blocks tbody.item.sel td { background: var(--surface) !important; }
.grid.kv tbody tr:hover > td, .pc-list tbody tr:hover > td { background: var(--row); }
/* Hover is the striping gray everywhere; the row whose source is open is a shade darker */
.grid tr.link:hover td, .grid tr.link:focus-visible td,
.srcrow[data-src]:hover td, .srcrow[data-src]:focus-visible td,
.evidence tr.evrow:hover td, .evidence tr.evrow:focus-visible td { background: var(--row) !important; }
.srcrow.active td, .evidence tr.evrow.active td { background: #e9edf2 !important; }
/* Add Document type choice */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-weight: 500; }
.seg label:has(input:checked) { border-color: var(--orange-deep); background: var(--orange-tint); color: var(--navy-dark); font-weight: 600; }
.seg input { accent-color: var(--orange-deep); margin: 0; }
/* Head tiles: four dollar tiles, then two count tiles */
.band .stats { grid-template-columns: repeat(4, minmax(150px, 1.35fr)) repeat(2, minmax(120px, 1fr)); }
.band .stat.count { display: flex; flex-direction: column; justify-content: center; }
.band .stat.count .n { font-size: 20px; }
@media (max-width: 1100px) { .band .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
/* Tooltips wrap and stay on screen: the right-hand tiles open leftward */
[data-tip]:hover::after, [data-tip]:focus-visible::after { white-space: normal; width: max-content; max-width: 300px; line-height: 1.4; }
.band .stats .stat:nth-last-child(-n+3) [data-tip]:hover::after { left: auto; right: 0; }
/* ---------- Header as a contract ledger ----------
   Cool paper ground with a faint camo cast (not cream); camo ink for structure; orange only on the main
   action; red only on disputed dollars. Playfair for the project name, Inter for everything else. */
:root { --paper: #f2f5f3; --paper-line: #dbe3de; --ink-camo: #14251d; --slate: #5d7486; --issue: #a3262b; }
.band { background: var(--paper); border-bottom: 1px solid var(--paper-line); padding: 22px 32px 0; }
.band .crumbs, .band .crumbs a { color: #5b6862; font-size: 13.5px; }
.band .head h1, .band .head h1 .rename { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink-camo); }
.band .head { align-items: center; }
/* Parties: the cover-page block, names at reading size */
.parties { display: flex; flex-wrap: wrap; gap: 10px 56px; margin: 18px 0 0; }
.parties dt { font-size: 13px; color: #5b6862; font-weight: 500; }
.parties dd { margin: 3px 0 0; font-size: 16px; font-weight: 600; color: var(--ink-camo); line-height: 1.35; max-width: 34ch; }
/* Ledger: sum + change = total, then the bar at true scale */
.ledger { margin: 24px 0 4px; padding: 20px 24px 18px; background: #fff; border: 1px solid var(--paper-line); border-radius: 4px; }
.lg-terms { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.lg-t { display: flex; flex-direction: column; min-width: 120px; }
.lg-t b { font-size: 30px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-camo); font-variant-numeric: tabular-nums; line-height: 1.1; }
.lg-t span { margin-top: 4px; font-size: 13.5px; color: #4f5d56; }
.lg-t em { margin-top: 6px; font-style: normal; font-size: 13.5px; font-weight: 600; width: fit-content; }
.lg-t em.iss { color: var(--issue); }
.lg-t em.pct { color: var(--ink-camo); } .lg-t em.pct.open { color: var(--warn); } .lg-t em.pct.alert { color: var(--issue); }
.lg-t.total b { color: var(--camo); }
.lg-op { font-size: 26px; font-weight: 300; color: #8a9891; line-height: 1.25; padding-top: 1px; }
.lg-side { list-style: none; margin: 0 0 0 auto; padding: 2px 0 0 24px; border-left: 1px solid var(--paper-line); display: grid; gap: 8px; align-content: start; }
.lg-side li { font-size: 14px; color: #4f5d56; white-space: nowrap; }
.lg-side b { font-size: 18px; font-weight: 600; color: var(--ink-camo); margin-right: 4px; font-variant-numeric: tabular-nums; }
.lg-side a { color: inherit; text-decoration: none; }
.lg-bar { display: flex; height: 10px; margin-top: 18px; border-radius: 2px; overflow: visible; gap: 2px; }
.lg-bar .seg { min-width: 3px; border-radius: 1px; position: relative; }
.lg-bar .seg.base { background: var(--camo); }
.lg-bar .seg.req { background: var(--slate); }
.lg-bar .seg.iss { background: repeating-linear-gradient(135deg, var(--issue) 0 3px, #f3d6d7 3px 6px); }
.band .tabs { margin-top: 18px; }
@media (max-width: 760px) { .lg-side { margin-left: 0; border-left: 0; padding-left: 0; } .lg-op { display: none; } }
/* Item actions: a bottom line in the color of the status each sets (the same colors as the status dots) */
.items.blocks .bar .btn { border: 1px solid var(--line); background: #fff; box-shadow: inset 0 -3px 0 var(--btn-line, transparent); padding-bottom: 2px; }
.items.blocks .bar .btn:hover { background: #f6f8fa; }
.items.blocks .bar .btn[data-to="returned"] { --btn-line: var(--blue); }
.items.blocks .bar .btn[data-to="resolved"] { --btn-line: var(--good); }
.items.blocks .bar .btn[data-to="waived"] { --btn-line: #8a96a3; }
.items.blocks .bar .btn[data-to="open"] { --btn-line: var(--orange); }
.items.blocks .bar .btn[data-thread] { --btn-line: var(--camo); }
/* A selected issue: one continuous camo edge down its finding row, action bar and discussion */
.items.blocks tbody.item.sel > tr > td:first-child { box-shadow: inset 3px 0 0 var(--camo); }
.items.blocks tbody.item.sel tr.ibar td, .items.blocks tbody.item.sel tr.ithread td { padding-left: 15px; }
/* Lines fall between issues, never inside one */
.items.blocks tbody.item > tr { border-bottom: 0; }
.items.blocks tbody.item { border-bottom: 1px solid var(--line-soft); }
.items.blocks tbody.item + tbody.item tr.ihead td { border-top: 0; }
/* Title sized to sit with the parties and the ledger, not over them */
.band .head h1, .band .head h1 .rename { font-size: 24px; line-height: 1.25; letter-spacing: 0; }
.pc-head h2 { font-size: 20px; }
/* Title smaller; actions ride at the right end of the facts row */
.band .head h1, .band .head h1 .rename { font-size: 20px; line-height: 1.3; }
.facts-row { display: flex; align-items: flex-end; gap: 24px; margin-top: 14px; }
.facts-row .parties { margin: 0; flex: 1; min-width: 0; }
.facts-row .actions { flex: none; display: flex; gap: 8px; }
.facts-row .rm { opacity: 0; transition: opacity .12s; }
.band:hover .facts-row .rm, .facts-row .rm:focus-visible { opacity: 1; }
.facts-row .parties { gap: 10px 40px; flex-wrap: nowrap; }
.facts-row .parties > div { min-width: 0; }
.facts-row .parties dd { max-width: 30ch; }
@media (max-width: 1100px) { .facts-row { flex-wrap: wrap; } .facts-row .parties { flex-wrap: wrap; } }
/* Header, magazine scale: one big headline, a quiet deck of facts, the contract as a heavy-set equation */
:root { --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; }
.band { padding: 26px 40px 0; }
.band .crumbs { margin-bottom: 18px; }
.band .kicker { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--camo); margin-bottom: 6px; }
.band .head h1, .band .head h1 .rename { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.3vw, 48px); line-height: 1.02; letter-spacing: -0.035em; color: var(--ink-camo); max-width: 26ch; text-wrap: balance; }
.band .head h1 .rename { display: inline; max-width: none; border-radius: 3px; }
.band .head h1 .rename:focus { background: rgba(29,56,44,.07); box-shadow: 0 0 0 4px rgba(29,56,44,.07); }
.facts-row { margin-top: 20px; align-items: center; }
.facts-row .parties { gap: 8px 36px; }
.parties dt { font-size: 12px; font-weight: 500; color: #5b6862; }
.parties dd { margin-top: 2px; font-size: 14.5px; font-weight: 500; color: var(--ink-camo); }
.ledger { margin: 26px 0 0; padding: 16px 0 0; background: none; border: 0; border-top: 3px solid var(--ink-camo); border-radius: 0; }
.lg-terms { gap: 28px; align-items: flex-start; }
.lg-t { min-width: 0; }
.lg-t b { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.lg-t span { margin-top: 8px; font-size: 13px; font-weight: 500; color: #4f5d56; }
.lg-t em { margin-top: 3px; font-size: 13px; }
.lg-op { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 2.8vw, 40px); line-height: 1; color: #9aa7a0; padding-top: 0; }
.lg-side { padding: 0 0 0 28px; gap: 10px; }
.lg-side li { font-size: 13px; }
.lg-side b { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-right: 6px; }
.lg-bar { height: 12px; margin-top: 20px; gap: 3px; }
.band .tabs { margin-top: 22px; }
@media (max-width: 760px) { .band { padding: 20px 16px 0; } .band .head h1, .band .head h1 .rename { font-size: 30px; } }
.band .head h1, .band .head h1 .rename { letter-spacing: -0.025em; }
.lg-t b { font-weight: 700; font-size: clamp(28px, 2.7vw, 40px); letter-spacing: -0.025em; }
/* Issue list: the finding and its dollars; detail, check and clause open with the row */
.items.blocks tr.ibar .idet { max-width: 80ch; color: var(--ink); line-height: 1.5; margin: 2px 0 6px; }
.items.blocks tr.ibar .iref { color: #5b6862; font-size: 13px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.items.blocks tr.ibar .iref .sep { width: 1px; height: 12px; background: var(--paper-line); }
.items.blocks tr.ihead td.wrap .chip { margin-right: 6px; vertical-align: 1px; }
.band .tabs .tab .ct { font-weight: 500; }
/* Summary: the call, the figures behind it, then matters with their issues as evidence */
.verdict { background: #fff; border: 1px solid var(--paper-line); border-left: 6px solid var(--ink-camo); border-radius: 4px; padding: 22px 28px 22px 26px; margin-bottom: 30px; }
.verdict.v-hold { border-left-color: var(--issue); } .verdict.v-return { border-left-color: var(--warn); } .verdict.v-recommend, .verdict.v-recommend_adjusted { border-left-color: var(--camo); }
.v-call { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-camo); }
.v-hold .v-call { color: var(--issue); }
.v-head { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 72ch; }
.v-wait { color: #5b6862; font-size: 14px; }
.v-wait::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: vdots 1.2s steps(4) infinite; }
@keyframes vdots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.v-figs { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--paper-line); }
.v-fig { display: flex; flex-direction: column; }
.v-fig b { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--ink-camo); font-variant-numeric: tabular-nums; }
.v-fig span { font-size: 13px; color: #4f5d56; margin-top: 2px; }
.v-fig.neg b { color: var(--issue); } .v-fig.warn b { color: var(--warn); } .v-fig.rec b { color: var(--camo); }
.m-h { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink-camo); margin: 0 0 12px; }
.m-h .ct { font-weight: 500; color: #5b6862; margin-left: 4px; }
.matters { display: grid; gap: 12px; margin-bottom: 32px; }
.matter { background: #fff; border: 1px solid var(--paper-line); border-radius: 4px; padding: 18px 24px 14px; }
.m-top { display: flex; align-items: baseline; gap: 16px; }
.m-path { font-size: 13px; font-weight: 600; }
.p-owner .m-path { color: var(--issue); } .p-deduct .m-path { color: #8a4b10; } .p-contractor .m-path { color: var(--slate); }
.m-amt { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink-camo); font-variant-numeric: tabular-nums; }
.matter h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink-camo); }
.m-text { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 80ch; }
.m-ev { margin-top: 10px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--camo); cursor: pointer; }
.m-ev:hover { text-decoration: underline; }
.m-evidence { margin-top: 8px; }
.matters.minor .matter { padding: 14px 24px 10px; }
.matters.minor h3 { font-size: 16px; }
.matters.minor .m-text { font-size: 14px; }
/* Summary reads as one column: the answer, then what has to happen */
.summary { max-width: 860px; }
.verdict { padding: 24px 30px 24px 28px; margin-bottom: 36px; }
.v-q { font-size: 13px; font-weight: 600; color: #5b6862; }
.v-call { margin-top: 4px; font-size: 34px; }
.v-next { margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink-camo); }
.v-head { margin-top: 14px; font-size: 17px; }
.m-h { font-size: 22px; margin-bottom: 14px; }
.matter { padding: 18px 26px 14px; }
.m-amt { font-size: 15px; }
.matters.minor { gap: 0; border: 1px solid var(--paper-line); border-radius: 4px; background: #fff; }
.matters.minor .matter { border: 0; border-radius: 0; border-top: 1px solid var(--paper-line); padding: 14px 26px 10px; }
.matters.minor .matter:first-child { border-top: 0; }
.xv { font-weight: 600; }
.xv.x-hold { color: var(--issue); } .xv.x-return { color: var(--warn); } .xv.x-recommend, .xv.x-recommend_adjusted, .xv.x-executed { color: var(--camo); }
.xn { margin-left: 10px; color: #5b6862; font-size: 13px; }
/* The execute call is the PCO header's answer, set on the heavy rule */
.band .verdict { background: none; border: 0; border-top: 3px solid var(--ink-camo); border-radius: 0; padding: 18px 0 0; margin: 24px 0 0; }
.v-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-top: 2px; }
.band .v-call { margin: 0; font-size: clamp(30px, 3vw, 42px); }
.band .v-next { margin: 0; font-size: 18px; color: #4f5d56; font-weight: 600; }
.band .v-head { margin: 10px 0 0; font-size: 17px; max-width: 72ch; color: var(--ink); }
.v-hold .v-call { color: var(--issue); } .v-return .v-call { color: #8a5a00; } .v-recommend .v-call, .v-recommend_adjusted .v-call, .v-executed .v-call { color: var(--camo); }
.page.tinted { padding-left: 40px; padding-right: 40px; }
@media (max-width: 760px) { .page.tinted { padding-left: 16px; padding-right: 16px; } }
/* The call in ink; its state carried by one small square, not by red type */
.band .v-call, .v-hold .v-call, .v-return .v-call, .v-recommend .v-call, .v-recommend_adjusted .v-call, .v-executed .v-call { color: var(--ink-camo); }
.v-q { display: flex; align-items: center; gap: 8px; }
.v-q::before { content: ''; width: 10px; height: 10px; background: var(--slate); }
.v-hold .v-q::before { background: var(--issue); } .v-return .v-q::before { background: var(--warn); } .v-recommend .v-q::before, .v-recommend_adjusted .v-q::before, .v-executed .v-q::before { background: var(--camo); }
.xv, .xv.x-hold, .xv.x-return, .xv.x-recommend, .xv.x-recommend_adjusted, .xv.x-executed { color: var(--ink-camo); display: inline-flex; align-items: center; gap: 7px; }
.xv::before { content: ''; width: 8px; height: 8px; background: var(--slate); }
.xv.x-hold::before { background: var(--issue); } .xv.x-return::before { background: var(--warn); } .xv.x-recommend::before, .xv.x-recommend_adjusted::before, .xv.x-executed::before { background: var(--camo); }
.band .verdict { border-top: 0; padding-top: 0; margin-top: 28px; }
.v-line { align-items: center; gap: 14px; }
.v-line::before { content: ''; flex: none; width: 14px; height: 14px; background: var(--slate); }
.v-hold .v-line::before { background: var(--issue); } .v-return .v-line::before { background: var(--warn); } .v-recommend .v-line::before, .v-recommend_adjusted .v-line::before, .v-executed .v-line::before { background: var(--camo); }
/* The call as a sentence; summary and recommendation beneath */
.band .v-call { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.v-line { align-items: baseline; }
.v-line::before { width: 12px; height: 12px; transform: translateY(-1px); }
.band .v-head { margin-top: 12px; }
.v-rec { margin: 10px 0 0; max-width: 72ch; font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--ink-camo); }
.matter { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; }
.matter .m-top { grid-column: 2; grid-row: 1; }
.matter h3 { grid-column: 1; grid-row: 1; margin-top: 0; }
.matter .m-text, .matter .m-ev, .matter .m-evidence { grid-column: 1 / -1; }
.m-amt { margin-left: 0; }
/* Summary as prose: a heading and a short paragraph per issue, links into the findings */
.summary { max-width: 760px; }
.matters, .matters.minor { display: block; gap: 0; border: 0; background: none; border-radius: 0; margin-bottom: 40px; }
.matter, .matters.minor .matter { display: block; background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 26px; }
.matter h3, .matters.minor h3 { font-size: 19px; margin: 0; }
.matter .m-text, .matters.minor .m-text { margin: 6px 0 0; font-size: 16px; line-height: 1.6; }
.m-links { margin: 6px 0 0; display: flex; gap: 16px; align-items: baseline; font-size: 14px; }
.m-links .m-amt { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink-camo); }
.m-links .m-ev { margin: 0; padding: 0; font-weight: 600; color: var(--camo); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.m-evidence { margin-top: 12px; background: #fff; border: 1px solid var(--paper-line); border-radius: 4px; }
.m-h { margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--paper-line); }
/* One paper throughout: the body continues the header's paper; sections are headings over hairline tables */
.page.tinted { background: var(--paper); padding-top: 28px; }
.band { border-bottom-color: var(--paper-line); }
.panel { background: none; border-radius: 0; padding: 0; box-shadow: none; border: 0; margin-bottom: 40px; }
.panel + .panel { margin-top: 0; }
.panel h2 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--ink-camo); margin: 0 0 4px; padding-bottom: 10px; border-bottom: 3px solid var(--ink-camo); }
.panel h2 .ct { font-family: var(--sans); font-weight: 500; font-size: 15px; color: #5b6862; margin-left: 6px; }
.grid th { font-size: 12px; font-weight: 500; color: #5b6862; border-bottom: 1px solid var(--paper-line); padding: 10px 12px 8px; background: none; }
.grid td { border-bottom: 1px solid var(--paper-line); padding: 11px 12px; font-size: 14px; }
.grid tbody tr td, .grid tbody tr:nth-child(even of :not(.open-row)) td { background: none; }
.grid tr.srcrow:hover td, .grid tr.link:hover td, .grid tr.link:focus-visible td { background: rgba(29,56,44,.05); }
.grid .nm { color: var(--ink-camo); }
.grid tr.total td { border-top: 2px solid var(--ink-camo); border-bottom: 0; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink-camo); padding-top: 12px; }
.grid th:first-child, .grid td:first-child { padding-left: 0; }
.grid th:last-child, .grid td:last-child { padding-right: 0; }
.grid .mk { border-radius: 2px; }
.panel .empty { padding: 14px 0; color: #5b6862; }
.m-evidence .grid th:first-child, .m-evidence .grid td:first-child { padding-left: 14px; }
.m-evidence .grid th:last-child, .m-evidence .grid td:last-child { padding-right: 14px; }
.m-evidence .grid tbody.item:last-child td { border-bottom: 0; }
.grid .chip { background: none; padding: 0; font-weight: 600; }
/* Tables without rules: rows separated by space, a heavy rule only under the section heading and over a total */
.grid td, .grid th { border-bottom: 0 !important; border-top: 0; }
.grid th { padding: 12px 12px 6px; font-weight: 600; color: var(--ink-camo); font-size: 12.5px; }
.grid td { padding: 8px 12px; }
.grid tbody tr:first-child td { padding-top: 10px; }
.grid tr.total td { border-top: 3px solid var(--ink-camo) !important; padding-top: 14px; }
.grid .num { font-variant-numeric: tabular-nums; }
.items.blocks tbody.item + tbody.item tr.ihead td, .items.blocks tbody.item tr td { border: 0 !important; }
/* Findings under an issue: an indented list, no box, no header */
.m-evidence { background: none; border: 0; border-radius: 0; margin: 10px 0 0; padding-left: 18px; border-left: 3px solid var(--ink-camo); }
.m-evidence .grid thead { display: none; }
.m-evidence .grid th:first-child, .m-evidence .grid td:first-child { padding-left: 0; }
.m-evidence .grid td { padding: 6px 12px; font-size: 14.5px; }
.m-evidence .items.blocks tbody.item.sel tr td:first-child, .m-evidence .items.blocks tbody.item.sel > tr > td:first-child { box-shadow: none; }
.m-evidence .items.blocks tbody.item.sel tr.ihead td { font-weight: 600; }
.m-evidence .items.blocks tr.ibar td { padding: 2px 0 14px; background: none; }
.grid tbody tr, .grid tbody tr:last-child { border-bottom: 0 !important; }
.grid tr.total td { background: none !important; }
/* Change orders on the project page: a bold list, one entry per change order */
.colist { border-top: 3px solid var(--ink-camo); max-width: 1100px; }
.co { display: flex; gap: 32px; align-items: flex-start; padding: 22px 0 24px; border-bottom: 1px solid var(--paper-line); }
.co.link { cursor: pointer; }
.co.link:hover h3, .co.link:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.co-main { flex: 1; min-width: 0; }
.co-no { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--camo); }
.co h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.12; letter-spacing: -0.025em; color: var(--ink-camo); max-width: 30ch; }
.co-state { margin-top: 10px; font-size: 15px; }
.co-state .xv { font-weight: 600; }
.co-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.co-amt { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--ink-camo); font-variant-numeric: tabular-nums; }
.co .rm { opacity: 0; transition: opacity .12s; } .co:hover .rm, .co .rm:focus-visible { opacity: 1; }
/* Projects page: the same paper, rules and type as the pages behind it */
.pcard { background: none; border: 0; border-top: 3px solid var(--ink-camo); border-radius: 0; box-shadow: none; padding: 0; }
.pc-head { background: none; padding: 18px 0 0; border: 0; }
.pc-head h2 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.08; letter-spacing: -0.025em; color: var(--ink-camo); }
.pc-sub { color: #5b6862; }
.pc-facts { padding: 14px 0 0; }
.pc-nums { background: none; padding: 16px 0 0; margin: 0; border-radius: 0; }
.pc-n b { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--ink-camo); }
.pc-list { margin: 16px 0 0; }
.pc-list th { border-bottom: 0; color: var(--ink-camo); font-weight: 600; padding-left: 0; }
.pc-list td { border: 0 !important; padding-left: 0; }
.pc-foot { padding: 12px 0 0; border: 0; background: none; }
.pc-foot .chip { background: none; padding: 0; }
/* Buttons and tabs in the same voice: square, ink, bold */
.btn { border-radius: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.005em; box-shadow: none; }
.btn.accent, .btn.accent:hover { background: var(--ink-camo); border: 2px solid var(--ink-camo); color: #fff; }
.btn.accent:hover { background: var(--camo); border-color: var(--camo); }
.btn.ghost { background: transparent; border: 2px solid var(--ink-camo); color: var(--ink-camo); }
.btn.ghost:hover { background: var(--ink-camo); color: #fff; }
.btn.sm { border-width: 1.5px; }
.tab { border-bottom-color: transparent !important; }
.tab.on { border-bottom: 3px solid var(--ink-camo) !important; color: var(--ink-camo); font-weight: 700; }
.tab:not(.on):hover { border-bottom: 3px solid var(--paper-line) !important; }
/* Unresolved issues: ranked, each its own block under a heavy rule, numeral at left */
.summary .matters { display: block; margin: 0 0 44px; }
.summary .m-h { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; }
.summary .matter.ranked { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; border-top: 3px solid var(--ink-camo); padding: 18px 0 30px; margin: 0; }
.summary .m-n { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: .9; letter-spacing: -0.04em; color: var(--ink-camo); }
.summary .matter.ranked h3 { font-size: 22px; line-height: 1.2; }
.summary .matter.ranked .m-text { font-size: 16.5px; margin-top: 8px; }
.summary .matters.minor .matter { display: block; border-top: 1px solid var(--ink-camo); padding: 14px 0 18px; margin: 0; }
.summary .matters.minor h3 { font-size: 17px; }
.summary .m-links { margin-top: 10px; }
/* Findings: white strips flush to the ink bar, separated by paper */
.summary .m-evidence { margin: 14px 0 0; padding: 0; background: none; border: 0; border-left: 4px solid var(--ink-camo); }
.summary .m-evidence .grid { width: 100%; border-collapse: collapse; }
.summary .m-evidence .grid thead { display: none; }
.summary .m-evidence .items.blocks tbody.item td { background: #fff !important; box-shadow: none !important; border: 0 !important; padding: 12px 18px; font-size: 14.5px; }
.summary .m-evidence .items.blocks tbody.item + tbody.item tr.ihead td { border-top: 3px solid var(--paper) !important; }
.summary .m-evidence .items.blocks tbody.item:not(.sel) tr.ihead:hover td { background: #f7f8f7 !important; }
.summary .m-evidence .items.blocks tbody.item.sel tr.ihead td { font-weight: 600; padding-bottom: 4px; }
.summary .m-evidence .items.blocks tr.ibar td { padding: 0 18px 16px !important; }
.summary .m-evidence .items.blocks .find { color: var(--ink-camo); font-weight: 600; }
.summary .m-evidence .items.blocks tr.ibar .idet { color: var(--ink); margin: 4px 0 6px; }
.summary .m-evidence .items.blocks tr.ibar .iref { margin-bottom: 12px; }
.summary .m-evidence .items.blocks .bar { background: none; padding: 0; border-radius: 0; gap: 8px; }
.summary .m-evidence .items.blocks .bar .btn { box-shadow: none; border: 1.5px solid var(--ink-camo); background: transparent; color: var(--ink-camo); padding: 4px 12px; }
.summary .m-evidence .items.blocks .bar .btn:hover { background: var(--ink-camo); color: #fff; }
.summary .m-evidence .items.blocks .thread { border-radius: 0; border: 0; background: var(--paper); }
.summary .m-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.summary .m-acts .btn { padding: 5px 14px; font-size: 13.5px; }
.summary .m-state { font-weight: 600; color: var(--slate); }
.summary .m-evidence .items.blocks tr.ihead td.num { white-space: nowrap; }
/* Findings: a plain numbered list in the issue's column; no boxes */
.summary .m-evidence { border: 0; padding: 0; margin: 16px 0 0; }
.flist { list-style: none; counter-reset: fl; margin: 0; padding: 0; display: grid; gap: 14px; }
.flist li { counter-increment: fl; display: grid; grid-template-columns: 28px 1fr; }
.flist li::before { content: counter(fl); font-family: var(--display); font-weight: 700; font-size: 14px; color: #8a9891; padding-top: 1px; }
.fl-row { display: flex; gap: 20px; align-items: baseline; }
.fl-t { flex: 1; text-align: left; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-camo); background: none; border: 0; padding: 0; line-height: 1.4; }
button.fl-t { cursor: pointer; text-decoration: underline; text-decoration-color: var(--paper-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
button.fl-t:hover { text-decoration-color: var(--ink-camo); }
.fl-amt { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink-camo); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-d, .fl-c { grid-column: 2; margin-top: 3px; font-size: 14px; line-height: 1.5; color: #4f5d56; max-width: 70ch; }
.fl-c .srclink { font-size: 14px; }
.summary .m-clause { color: #4f5d56; font-size: 14px; }
.summary .m-clause .srclink { font-size: 14px; }
.summary .m-links .srclink.m-ev { font: inherit; font-size: 14px; font-weight: 600; color: var(--camo); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.summary .m-thread { margin-top: 14px; }
.summary .m-thread .thread { background: #fff; border: 0; border-left: 4px solid var(--ink-camo); border-radius: 0; padding: 14px 18px; }
/* Cost lines as a statement */
.statement { max-width: 900px; }
.cl-g { margin: 0 0 30px; }
.cl-g h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 3px solid var(--ink-camo); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink-camo); }
.cl-g ul { list-style: none; margin: 0; padding: 0; }
.cl-g li { display: grid; grid-template-columns: 1fr 64px 130px; gap: 16px; align-items: baseline; padding: 9px 0; cursor: pointer; }
.cl-g li:hover .cl-d, .cl-g li:focus-visible .cl-d { text-decoration: underline; text-underline-offset: 3px; }
.cl-d { font-size: 15.5px; color: var(--ink-camo); }
.cl-n { display: block; font-size: 13.5px; color: #5b6862; margin-top: 2px; }
.cl-p { font-size: 13px; color: #5b6862; text-align: right; }
.cl-a { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-camo); }
.cl-g li .cl-a { font-size: 16px; font-weight: 600; font-family: var(--sans); }
.cl-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--ink-camo); padding-top: 14px; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: var(--ink-camo); }
/* Reference tabs share the cost lines statement */
.cl-ct { font-family: var(--sans); font-weight: 500; font-size: 15px; color: #5b6862; margin-left: 4px; letter-spacing: 0; }
ul.st li { display: grid; grid-template-columns: 1fr 64px 130px; gap: 16px; align-items: baseline; padding: 10px 0; }
ul.st li.srcrow { cursor: pointer; }
ul.st li.srcrow:hover .st-t, ul.st li.srcrow:focus-visible .st-t { text-decoration: underline; text-underline-offset: 3px; }
.st-t { font-size: 15.5px; font-weight: 600; color: var(--ink-camo); }
.st-link { color: var(--ink-camo); text-decoration: underline; text-decoration-color: var(--paper-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.st-link:hover { text-decoration-color: var(--ink-camo); }
.st-empty { color: #5b6862; }
ul.st li .cl-a { font-size: 16px; font-weight: 600; font-family: var(--sans); }
ul.st li.ck { grid-template-columns: 1fr; }
.ck-id { font-weight: 500; font-size: 13px; color: #8a9891; margin-left: 4px; }
.ck .cl-n { max-width: 72ch; }
.ck-found { display: grid; gap: 4px; margin-top: 8px; }
.ck-f { font-size: 14.5px; color: var(--ink-camo); }
.ck-f.clear { color: #3d5a4b; }
.ck-f .srclink { font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--paper-line); text-underline-offset: 3px; }
.ck-f .plink { margin-left: 6px; font-weight: 600; color: var(--camo); }
/* PCO masthead: crumbs left, document actions right; the facts as a prose deck */
.mast { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.mast .crumbs { margin: 0; flex: 1; }
.mast-acts { display: flex; gap: 8px; }
.band .deck { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: #3d4a43; max-width: 64ch; }
.pco-band .verdict { margin-top: 26px; }
/* Brand: orange and green, sparingly. Orange marks where you are; green marks what you act on. */
.band .kicker { color: var(--orange); }
.tab.on { border-bottom-color: var(--orange) !important; }
.btn.accent, .btn.accent:hover { background: var(--camo); border-color: var(--camo); }
.btn.accent:hover { background: var(--ink-camo); border-color: var(--ink-camo); }
.summary .m-n { color: var(--camo); }
.co-no { color: var(--orange); }
.summary .m-ev, .summary .m-links .srclink.m-ev { color: var(--camo); text-decoration-color: var(--orange); }
.colist, .cl-total, .summary .matter.ranked { border-top-color: var(--ink-camo); }
.summary .matters.minor .matter { border-top: 0; padding: 0 0 26px; }
.summary .matters.minor { border-top: 3px solid var(--ink-camo); padding-top: 18px; }
/* Add sheets: long file names truncate inside the box; one file per line */
.sheet-form, .fld { grid-template-columns: minmax(0, 1fr); min-width: 0; }
dialog.sheet.add .filepick { height: auto; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.filepick .fname { display: grid; gap: 2px; }
.filepick .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filepick .btn { flex: none; }
/* Projects page: one entry per project in the change order log style */
.band.flat .head h1 { margin: 0; }
.pjlist { max-width: 1100px; display: grid; gap: 44px; }
.pj { border-top: 3px solid var(--ink-camo); padding-top: 18px; cursor: pointer; }
.pj .co-no { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pj h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.06; letter-spacing: -0.03em; color: var(--ink-camo); max-width: 30ch; text-wrap: balance; }
.pj:hover h2, .pj:focus-visible h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.pj-figs { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 20px; }
.pj-f { display: flex; flex-direction: column; }
.pj-f b { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.025em; line-height: 1; color: var(--ink-camo); font-variant-numeric: tabular-nums; }
.pj-f b.iss { color: var(--issue); } .pj-f b.warn { color: var(--warn); }
.pj-f span { margin-top: 6px; font-size: 13px; font-weight: 500; color: #4f5d56; }
.pj-cos { list-style: none; margin: 24px 0 0; padding: 0; border-top: 3px solid var(--ink-camo); }
.pj-cos li a { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 120px; gap: 4px 24px; align-items: baseline; padding: 14px 0; color: var(--ink-camo); text-decoration: none; }
.pj-no { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--orange); white-space: nowrap; }
.pj-t { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-cos li a:hover .pj-t, .pj-cos li a:focus-visible .pj-t { text-decoration: underline; text-underline-offset: 3px; }
.pj-v { font-size: 14px; white-space: nowrap; }
.pj-a { font-family: var(--display); font-weight: 700; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.pj-empty { margin: 20px 0 0; color: #4f5d56; }
.pj-gap { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--warn); }
@media (max-width: 760px) { .pj-cos li a { grid-template-columns: 70px minmax(0, 1fr) auto; } .pj-v { grid-column: 2 / -1; grid-row: 2; white-space: normal; } }
/* Fees: total fee figures in the masthead; the breakdown as a statement with a share-of-cost column */
.fee-figs { margin-top: 18px; }
.statement.fees { margin-top: 40px; }
.fee-contract .statement.fees:first-of-type { margin-top: 28px; }
.statement.fees .cl-g h3 .cl-p { font-family: inherit; font-size: 12px; font-weight: 600; color: #5b6862; }
.statement.fees .cl-p { width: 120px; text-align: right; font-variant-numeric: tabular-nums; }
.statement.fees .cl-total .cl-p { font-family: var(--display); font-weight: 700; }
.statement.fees .cl-total.sub { border-bottom: 0; }
.fee-note { margin: 10px 0 0; font-size: 13.5px; color: #4f5d56; max-width: 70ch; }
.fee-contract { margin-bottom: 40px; }
.statement.fees .cl-g h3, .statement.fees .cl-g li, .statement.fees .cl-total { display: grid; grid-template-columns: 1fr 150px 130px; gap: 16px; align-items: baseline; }
.statement.fees .cl-g h3 .cl-p { width: auto; }
.statement.fees .cl-p { width: auto; }
.statement.fees .cl-total { font-size: 24px; }
.statement.fees .cl-total + .cl-total { border-top: 0; padding-top: 6px; }
.statement.fees .cl-total .cl-p { font-size: 15px; color: var(--ink-camo); }
.statement.fees li:not([data-go]) { cursor: default; }
.statement.fees li:not([data-go]):hover .cl-d { text-decoration: none; }
.fee-link { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.fee-link a { color: var(--ink-camo); text-underline-offset: 3px; }
.page .statement.fees:first-child { margin-top: 0; }
.pj-f span[data-tip] { cursor: help; text-decoration: underline dotted #9aa7a0; text-underline-offset: 3px; width: fit-content; }
.pj-f span[data-tip]:hover::after, .pj-f span[data-tip]:focus-visible::after { white-space: normal; width: 300px; line-height: 1.4; font-size: 13px; }
.pj-figs .pj-f:nth-last-child(-n+2) span[data-tip]:hover::after { left: auto; right: 0; }
/* Project Documents: inventory statement, then PCCOs beside the PCOs they carry */
.ds { max-width: 900px; margin-top: 10px; }
.ds-h { margin: 0; padding-bottom: 8px; border-bottom: 3px solid var(--ink-camo); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink-camo); }
.ds-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 12px 0; align-items: baseline; }
.ds-cols { padding: 10px 0 2px; font-size: 12px; font-weight: 600; color: #5b6862; }
.ds-cols .ds-r { padding: 0; }
.ds-l { display: flex; flex-direction: column; gap: 3px; }
.ds-pcco { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.015em; color: var(--ink-camo); text-decoration: none; }
.ds-pcco:hover { text-decoration: underline; text-underline-offset: 3px; }
.ds-sub { font-size: 13px; color: #5b6862; }
.ds-r { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ds-r li a, .ds-r li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 110px; gap: 14px; align-items: baseline; color: var(--ink-camo); text-decoration: none; }
.ds-r li a { grid-column: 1 / -1; }
.ds-r li:has(a) { display: block; }
.ds-no { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--orange); white-space: nowrap; }
.ds-t { font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-r li a:hover .ds-t { text-decoration: underline; text-underline-offset: 3px; }
.ds-a { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ds-row { grid-template-columns: 1fr; gap: 6px; } .ds-cols { display: none; } }
/* No faint rules: none under the tabs, none between change orders */
.band, .band.flat { border-bottom: 0; }
.co { border-bottom: 0; }
.lg-side { border-left: 0; }
/* The math under a finding: chip, item, page, amount; subtotals and the total on ink rules */
.mtab { width: 100%; max-width: 760px; border-collapse: collapse; margin: 10px 0 4px; font-size: 14.5px; }
.mtab td { padding: 7px 0; vertical-align: baseline; border: 0; }
.mtab .mt-mk { width: 34px; }
.mtab .mt-mk .mk { cursor: pointer; border: 0; }
.mtab .mt-l { color: var(--ink-camo); padding-right: 16px; }
.mtab .mt-p { width: 56px; color: #5b6862; font-size: 13px; white-space: nowrap; }
.mtab .mt-a { width: 120px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mtab .mt-note .mt-l { color: #4f5d56; font-style: normal; }
.mtab .mt-basis .mt-a { color: #5b6862; font-weight: 500; }
.mtab .mt-sub td { border-top: 1.5px solid var(--ink-camo); font-weight: 600; }
.mtab .mt-total td { border-top: 3px solid var(--ink-camo); padding-top: 10px; font-family: var(--display); font-weight: 800; font-size: 17px; }
.mtab .mt-mk .mk { min-width: 20px; height: 20px; font-size: 11px; border-radius: 4px; }
.flist li { display: block; } .flist li::before { content: none; } .flist .mtab { margin-top: 6px; }
.mtab tr.mt-go { cursor: pointer; }
.mtab tr.mt-go .mt-l { text-decoration: underline; text-decoration-color: var(--paper-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mtab tr.mt-go:hover .mt-l, .mtab tr.mt-go:focus-visible .mt-l { text-decoration-color: var(--ink-camo); }
.ds-na { font-size: 15px; color: #5b6862; }
/* Basis: the ontology rule and parameters behind a result */
details.basis { margin: 10px 0 0; font-size: 13.5px; color: #4f5d56; max-width: 760px; }
details.basis summary { cursor: pointer; font-weight: 600; color: #4f5d56; list-style: none; width: fit-content; text-decoration: underline; text-decoration-color: var(--paper-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
details.basis summary::-webkit-details-marker { display: none; }
details.basis[open] summary { color: var(--ink-camo); }
details.basis p { margin: 8px 0 0; line-height: 1.45; }
details.basis b { color: var(--ink-camo); font-weight: 600; margin-right: 4px; }
details.basis ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
details.basis li span { display: block; color: #5b6862; }
/* Banner name in the display face, matching the page headlines */
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.brand .mark { width: 28px; height: 32px; }
