/* FactualIQ application style (shared with Billing). Loaded after app.css; see 04_Weekly/2026-W46/Application_Style_Guide_Stripe_2026-11-14.html.
   White ground, navy ink, hairlines, one accent, left sidebar. Delete this file and its <link> to return to the editorial layer. */
:root {
  --paper: #fff; --paper-line: #edf1f5; --ink-camo: #1e2c42; --camo: #1e2c42; --camo-tint: #f5f7fa; --muted: #404e67;
  --ink: #1e2c42; --ink-2: #404e67; --line: #d6dee8; --line-soft: #edf1f5; --row: #f5f7fa;
  --accent: #a8520e; --accent-hover: #8e450b; --accent-tint: #fbe9dc;
  --display: var(--sans); --side: 144px; --gut: 40px;
}
body { background: #fff; color: var(--ink); font-size: 14px; }
a { color: var(--accent); }

/* Sidebar */
@media (min-width: 901px) {
  body { padding-left: var(--side); }
  .topbar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); height: auto; z-index: 30; flex-direction: column; align-items: stretch; gap: 20px; padding: 18px 12px; background: #fff; color: var(--ink); border-right: 1px solid var(--line-soft); }
  .topnav { flex-direction: column; gap: 2px; }
  .topnav a { display: block; padding: 7px 8px; border: 0; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 14px; }
  .topnav a:hover { background: var(--row); }
  .topnav a.on { color: var(--accent); background: none; font-weight: 600; border: 0; }
  .acct { margin: auto 0 0; }
  .acct-who { background: var(--accent); }
  .acct-menu { right: auto; left: 0; top: auto; bottom: calc(100% + 8px); }
  .drawer { left: var(--side); width: auto; }
}
.topbar .brand { color: var(--ink); padding: 0 10px; }
.brand-name { font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.brand .mark { width: 22px; height: 26px; }

/* Header */
.band { background: #fff; padding: 28px var(--gut) 0; }
.band .crumbs { margin-bottom: 8px; font-size: 13px; }
.band .head { align-items: flex-start; }
.band .head h1 { font-family: var(--sans); font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: 0; color: var(--ink); max-width: none; }
.facts { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 600; }
.stats { margin: 20px 0 4px; padding-top: 0; border-top: 0; gap: 48px; }
.stat .n { font-family: var(--sans); font-weight: 600; font-size: 24px; letter-spacing: 0; line-height: 1.2; color: var(--ink); }
.stat:first-child .n { color: var(--ink); }
.stat .l { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* Tabs */
.tabs { gap: 24px; margin-top: 16px; border-bottom: 1px solid var(--line-soft); }
.tab { border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); font-weight: 500; }
.tab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* Page and sections */
.page { background: #fff; padding: 24px var(--gut) 72px; }
.section + .section { margin-top: 40px; }
.section h2 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: 0; color: var(--ink); border-bottom: 0; padding-bottom: 0; margin: 0 0 12px; }
.section > h2::after { display: none; }
.section h2 .ct { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--ink-2); margin-left: 4px; }
#signedSec > h2, #pipeSec > h2 { background: #fff; }
.side h2 { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--ink); border-bottom: 0; padding-bottom: 0; }
.side dd { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); }
.side dt { color: var(--ink-2); }
.page-foot { border-top: 1px solid var(--line-soft); }

/* Tables: hairline rows, no banding, bold first column */
table.grid { font-size: 14px; }
.grid th { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line-soft); background: none; }
.grid td { padding: 13px 12px; border: 0; border-bottom: 1px solid var(--line-soft); }
.grid th:first-child, .grid td:first-child { padding-left: 0; }
.grid tbody tr:last-child td { border-bottom: 1px solid var(--line-soft); }
.grid .nm { color: var(--ink); font-weight: 600; }
.grid .mu, .mu { color: var(--ink-2); }
.grid tr.link:hover td, .grid tr.link:focus-visible td { background: var(--row); }
.grid tfoot td { border-top: 1px solid var(--line-soft); font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); }
.grand { border-top: 0; }
.of .grid td { padding-top: 5px; padding-bottom: 5px; }
.grid th.srt:hover { color: var(--ink); }
.grid .rsz::after { background: var(--ink); }
a.pg, button.lnk { color: var(--accent); font-weight: 500; text-decoration: none; }
a.pg:hover, button.lnk:hover { text-decoration: underline; }

/* Status badges: tinted fill, dark text, no border */
.chip, .grid .chip { display: inline-block; padding: 1px 8px; border-radius: 4px; font-weight: 500; background: var(--neutral-tint); color: var(--neutral); }
.chip.good { background: var(--good-tint); color: var(--good); }
.chip.blue { background: var(--blue-tint); color: var(--blue); }
.chip.warn { background: var(--warn-tint); color: var(--warn); }
.chip.bad { background: var(--bad-tint); color: var(--bad); }
.chip.accent { background: var(--accent-tint); color: var(--accent); }
.chip.neutral, .chip:not(.good):not(.blue):not(.warn):not(.bad):not(.accent) { color: var(--neutral); }

/* Buttons: accent primary, white secondary */
.btn { height: 34px; padding: 0 14px; border-radius: 6px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.btn, .btn:hover, .btn.accent, .btn.accent:hover { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.btn:hover, .btn.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost, .btn.ghost:hover { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--row); }
.btn.sm { height: 30px; padding: 0 11px; border-width: 1px; }
.btn:disabled, .btn:disabled:hover { background: #fff; color: var(--ink-2); border: 1px solid var(--line-soft); opacity: .8; }
.btn.pick.on, .btn.pick.on:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.reading, .btn.reading:disabled { background: var(--row); border-color: var(--line); color: var(--ink-2); }
.btn:focus-visible, .tab:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Fields */
input.f, select.f, textarea.f { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
input.f:focus, select.f:focus, textarea.f:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
input.f.sm { border-width: 1px; }
input[type="checkbox"] { accent-color: var(--accent); }
input.f.bad { border-color: var(--bad) !important; }

/* Upload and empty states: dashed hairline box, left aligned */
.drop { background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 22px; }
.drop.over { background: var(--row); border-color: var(--accent); }
.drop .big { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0; color: var(--ink); }
.drop.mini .big { font-size: 15px; }
#clientContracts.over { outline-color: var(--accent); background: var(--row); }
.empty { color: var(--ink-2); }

/* Client cards */
.ccard { background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; box-shadow: none; }
.ccard:hover, .ccard:focus-visible { border-color: var(--line); box-shadow: none; background: var(--row); }
.cc-head h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0; color: var(--ink); }
.cc-head { min-height: calc(2 * 1.1 * 16px); }
.cc-contact { color: var(--ink-2); }
.ccard dt { color: var(--ink-2); }
.ccard dd { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); }

/* Terms, notes, matches */
.terms dt { color: var(--ink-2); font-weight: 500; }
.matches { border-left: 0; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--row); }
.details .notes .md { border: 1px solid var(--line); border-radius: 6px; }
.details .notes .md:hover { border-color: var(--accent); }
.details .notes .md h3, .details .notes .md h4, .details .notes .md h5 { font-family: var(--sans); color: var(--ink); }

/* Invoice sheet keeps its own print look; frame only */
.paper { border: 1px solid var(--line-soft); border-radius: 4px; box-shadow: none; }

/* Overlays */
dialog.modal { border: 0; border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(14,26,43,.22); }
dialog.modal h2 { font-family: var(--sans); font-weight: 600; font-size: 20px; color: var(--ink); }
.drawer { background: #fff; }
.drawer-head { border-bottom: 1px solid var(--line-soft); }
.toast { border-radius: 6px; background: var(--ink); font-family: var(--sans); font-weight: 500; }
.toast.err { background: var(--bad); }

/* Sign-in */
body.login-page { background: #fff; padding-left: 0; }
.login-panel { border-top: 0; border: 1px solid var(--line-soft); border-radius: 10px; box-shadow: none; }
.login-panel h1 { font-family: var(--sans); font-weight: 700; font-size: 28px; letter-spacing: 0; color: var(--ink); }
.login-brand { color: var(--accent); }

@media (max-width: 1200px) { .band, .page { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 900px) { .topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line-soft); } .topnav a { color: var(--ink); } .topnav a.on { color: var(--accent); border-bottom-color: var(--accent); } }

/* Sidebar narrows the content column: wide tables scroll inside their section */
@media (min-width: 901px) { .section { overflow-x: auto; } }

/* ---- Review pass ---- */
/* Tables size to their content first, so the column widths the app measures never truncate */
table.grid.fixed { table-layout: auto; }
.grid td { vertical-align: middle; }
.grid td.act, .grid td.ren { overflow: visible; text-overflow: clip; }
.schedsec td.act.rm { padding-left: 0; padding-right: 8px; }
.grid .num { overflow: visible; }

/* One primary action per page: section and row actions are secondary, form Save is primary */
.btn.accent.sm, .btn.accent.sm:hover { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.accent.sm:hover { background: var(--row); }
.btn.accent.sm.renew[data-decision="renew"] { color: var(--accent); border-color: var(--accent); }
.btn.accent.sm.renew[data-decision="renew"]:hover { background: var(--accent-tint); }
#goalForm .btn, #collectForm .btn, #nrrForm .btn { height: 34px; padding: 0 14px; background: var(--accent); border: 1px solid var(--accent); color: #fff; }
#goalForm .btn:hover, #collectForm .btn:hover, #nrrForm .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.side .btns > a.btn:not(.ghost) { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.side .btns > a.btn:not(.ghost):hover { background: var(--row); }
.side #sendBtn { align-self: start; }
/* Destructive actions */
#delContractBtn, #delBtn, #delInvDlg .btn.accent { color: var(--bad); }
#delContractBtn, #delBtn { border-color: var(--line); background: #fff; }
#delContractBtn:hover, #delBtn:hover { background: var(--bad-tint); border-color: var(--bad); color: var(--bad); }
#delInvDlg .btn.accent, #delInvDlg .btn.accent:hover { background: var(--bad); border-color: var(--bad); color: #fff; }

/* Inline forms (Goals): label and field read as one unit, even rhythm */
form.row#goalForm, form.row#collectForm, form.row#nrrForm { gap: 12px 20px; align-items: center; }
#goalForm label, #collectForm label, #nrrForm label { display: inline-flex; align-items: center; gap: 8px; }
#goalForm input.f, #collectForm input.f { width: 130px !important; }
#goalForm label:first-child input.f, #collectForm label:first-child input.f { width: 150px !important; }

/* Invoice side panel: every field one width */
.side input.f, .side select.f, .side input.f[data-date] { width: 100%; }

/* Header figures sit together */
.stats.wide { justify-content: flex-start; gap: 48px; }

/* Sign-in field */
.login-form input { border: 1px solid var(--line); border-radius: 6px; }
.login-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

/* Sidebar icons */
.topnav a::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.topnav a[data-nav="todo"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8l6-5 6 5M4 7v6h8V7'/%3E%3C/svg%3E"); }
.topnav a[data-nav="contracts"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2h6l3 3v9H4zM10 2v3h3'/%3E%3C/svg%3E"); }
.topnav a[data-nav="clients"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='5.5' r='2.5'/%3E%3Cpath d='M3 14c0-3 2.2-4.5 5-4.5s5 1.5 5 4.5'/%3E%3C/svg%3E"); }
.topnav a[data-nav="invoices"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2h10v12l-2-1.5L9 14l-2-1.5L5 14l-2-1.5zM6 6h4M6 9h4'/%3E%3C/svg%3E"); }
.topnav a[data-nav="goals"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Ccircle cx='8' cy='8' r='2.5'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .topnav a::before { display: none; } }
.grid th, .grid td { padding-left: 10px; padding-right: 10px; }
.grid th:first-child, .grid td:first-child { padding-left: 0; }
.grid th:last-child, .grid td:last-child { padding-right: 0; }
.grid .nm { white-space: normal; }
.grid .nm { min-width: 150px; }
.grid td:nth-child(4) { white-space: normal; }
@media (min-width: 901px) { :root { --side: 144px; --gut: 32px; } }
.grid th, .grid td { padding-left: 8px; padding-right: 8px; }
.grid th:first-child, .grid td:first-child { padding-left: 0; }
.grid th:last-child, .grid td:last-child { padding-right: 0; }
.acct-who { background: var(--accent); }

/* Adjustable rail: drag the edge to resize, drag it small to close. Closed, a square button sits left of the page heading (or Cmd/Ctrl+B). */
.rail-toggle, .rail-grip { display: none; }
@media (min-width: 901px) {
  .rail-toggle { display: flex; align-items: center; justify-content: flex-start; flex: none; position: relative; width: 32px; height: 32px; margin: 1px 12px 0 0; padding: 0 0 0 5px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; }
  .rail-toggle.float { position: fixed; z-index: 60; top: 15px; left: 12px; margin: 0; }
  .rail-toggle:hover { background: var(--row); color: var(--ink); }
  .rail-toggle .ic { width: 22px; height: 17.6px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .rail-toggle[data-hint]:hover::after, .rail-toggle[data-hint]:focus-visible::after { content: attr(data-hint); position: absolute; left: 0; top: calc(100% + 6px); z-index: 70; background: var(--navy-dark); color: #fff; font: 500 13px/1 var(--sans); padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
  .rail-grip { display: block; position: fixed; z-index: 55; top: 0; bottom: 0; left: calc(var(--side) - 3px); width: 6px; cursor: col-resize; touch-action: none; }
  .rail-grip:hover, .rail-grip.on { background: var(--line-soft); box-shadow: inset -2px 0 0 var(--line); }
  .rail-grip.on { box-shadow: inset -2px 0 0 var(--accent); }
  body.rail-drag { user-select: none; cursor: col-resize; }
  body.rail-drag .topbar.shrink { opacity: .45; }
  body.rail-closed { --side: 0px; }
  body.rail-closed .topbar, body.rail-closed .rail-grip { display: none; }
}
@media (max-width: 900px) { body.rail-closed .topbar { display: flex; } }

/* Table headers: quiet type, firmer rule */
.grid th { font-size: 12.5px; font-weight: 500; color: #5b6a82; border-bottom: 1px solid var(--line); }
.grid th.srt:hover { color: var(--ink); }

/* App name: large and heavy, on the same line as the page heading (rail.js sets the exact offset) */
.topbar .brand { gap: 10px; position: relative; }
@media (min-width: 901px) { .topbar { padding-top: 28px; } .topbar .brand { padding: 0 0 0 2px; } }

/* Rail foot: Settings and Account as nav-style rows, icons on the same left edge as the nav icons */
.rail-foot { margin-top: auto; display: grid; gap: 2px; }
.acct { position: relative; margin: 0; }
.acct-btn { display: flex; align-items: center; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: 500 14px var(--sans); text-align: left; cursor: pointer; }
.acct-btn:hover { background: var(--row); }
.acct-btn .ic { width: 16px; height: 16px; flex: none; margin-right: 8px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acct-btn .acct-who { width: 18px; height: 18px; flex: none; margin: 0 5px 0 1px; border-radius: 5px; background: var(--accent); color: #fff; font: 700 11px/18px var(--sans); text-align: left; padding-left: 5px; }
.acct-menu { z-index: 80; }
@media (min-width: 901px) { .acct-menu { left: 0; bottom: calc(100% + 6px); top: auto; right: auto; } }
@media (max-width: 900px) {
  .rail-foot { display: flex; margin: 0 0 0 auto; }
  .acct-btn .t { display: none; }
  .acct-btn { padding: 8px; }
  .acct-btn .ic, .acct-btn .acct-who { margin-right: 0; }
  .acct-menu { right: 0; left: auto; top: calc(100% + 6px); bottom: auto; }
}
.topbar .rail-foot .acct { margin: 0; width: 100%; }
@media (max-width: 900px) { .topbar .rail-foot .acct { width: auto; } }

/* Rail shading: the tinted surface from the guide, with hover one step darker */
@media (min-width: 901px) {
  .topbar { background: #f5f7fa; }
  .topnav a:hover, .acct-btn:hover { background: #edf1f5; }
}

/* App name: Playfair Display 600, ink on the shaded rail */
.brand-name { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 24px; letter-spacing: 0; line-height: 1; }
@media (min-width: 901px) {
  .topbar { padding-top: 28px; }
  .topbar .brand { margin: 0; padding: 0 0 0 2px; background: none; color: var(--ink); }
}

/* Rail items: always visible, so quieter than page content */
@media (min-width: 901px) {
  .topnav a, .acct-btn { color: #5b6a82; font-weight: 400; }
  .topnav a:hover, .acct-btn:hover { color: var(--ink); }
  .topnav a.on { color: var(--accent); font-weight: 500; }
}

/* Orange underline on the word only, not the mark */
.brand-name { text-decoration: underline; text-decoration-color: #e36d19; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-skip-ink: none; }

/* Action columns (hover-only Remove) take only the room their button needs, so data columns fill the width */
table.grid td.act:last-child { width: 1%; white-space: nowrap; text-align: right; }
/* Pipeline Remove: a compact square x, so the hover-only column stays narrow */
.grid .delPipe { font-size: 0; width: 28px; height: 28px; padding: 0; border-radius: 6px; }
.grid .delPipe::after { content: "\00d7"; font-size: 18px; line-height: 1; color: var(--ink-2); }
.grid .delPipe:hover::after { color: var(--bad); }

/* Cells align to the top so the first line is consistent across a row; rows holding fields or buttons stay centered */
.grid td { vertical-align: top; }
.schedsec .grid td, .of .grid td, #roster td, .grid td.act, .grid td.ren { vertical-align: middle; }

/* Renewals: Term stays on one line, client names wrap, the action column takes only its buttons */
#renewals .grid td:nth-child(4) { white-space: nowrap; }
#renewals .grid .nm { min-width: 0; }
#renewals td.ren { width: 1%; }

/* Section spacing, 25% tighter */
.section + .section { margin-top: 30px; }
.pair + .section { margin-top: 33px; }
.page-foot { margin-top: 42px; }
.empty { padding: 10px 0; }
@media (max-width: 900px) { .pair .section + .section { margin-top: 33px; } }
.section > p.empty { margin: 0; padding: 4px 0 0; }

/* Page header band: a soft tint that fades out at the bottom, one hue per page */
body { --band-rgb: 219, 232, 251; }
body[data-page="todo"] { --band-rgb: 219, 232, 251; }
body[data-page="contracts"] { --band-rgb: 232, 224, 250; }
body[data-page="clients"] { --band-rgb: 254, 240, 196; }
body[data-page="invoices"] { --band-rgb: 208, 239, 218; }
body[data-page="goals"] { --band-rgb: 251, 224, 217; }
body[data-page="users"] { --band-rgb: 226, 232, 241; }
.band { background: linear-gradient(to bottom, rgb(var(--band-rgb)) 0%, rgba(var(--band-rgb), 0.55) 55%, rgba(var(--band-rgb), 0) 100%); }

/* Left rail: the page's hue fades down from the top into the rail gray */
@media (min-width: 901px) {
  .topbar { background: linear-gradient(to bottom, rgb(var(--band-rgb)) 0, rgba(var(--band-rgb), 0.55) 130px, rgba(var(--band-rgb), 0) 240px), #f5f7fa; }
}

/* ---- OKR Tracker ---- */
body { --band-rgb: 219, 232, 251; }
body[data-page="e"], body[data-page="kr"] { --band-rgb: 219, 232, 251; }
body[data-page="users"] { --band-rgb: 226, 232, 241; }
body[data-page="exceptions"] { --band-rgb: 254, 240, 196; }
body[data-page="decisions"] { --band-rgb: 251, 224, 217; }
.topnav a[data-nav^="e-"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Ccircle cx='8' cy='8' r='2.5'/%3E%3C/svg%3E"); }
.topnav a[data-nav="exceptions"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2l6.5 11.5h-13zM8 6.5v3M8 11.5v.01'/%3E%3C/svg%3E"); }
.topnav a[data-nav="decisions"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2h6l3 3v9H4zM10 2v3h3M6.5 9l1.5 1.5L10.5 8'/%3E%3C/svg%3E"); }
.tab { text-decoration: none; }
.tab:not(.on):hover { border-bottom-color: var(--line); }
input.f.score-in { border-width: 1px; }
.acct-menu select { width: 100%; }
.acct-mail { margin: 0 0 6px; }

/* Company logo in the rail head */
.topbar .brand { display: block; }
.topbar .brand .wnc { display: block; width: auto; height: auto; max-width: 100%; max-height: 34px; }
.topbar .brand .brand-name { text-decoration: none; }
dialog.modal label.ck { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--ink); }
dialog.modal label.ck input { width: 16px; height: 16px; margin: 0; }
form.set { grid-template-columns: minmax(0, 360px); }
.logo-set { display: grid; gap: 14px; justify-items: start; }
.logo-set img { display: block; max-width: 280px; max-height: 64px; width: auto; height: auto; }
.grid td.act { text-align: right; width: 1%; white-space: nowrap; }
/* Account initial: centered in its chip */
.acct-btn .acct-who { display: inline-flex; align-items: center; justify-content: center; padding: 0; text-align: center; line-height: 1; }
/* Logos: every company logo is trimmed to its artwork and shown at one height, in a slot that never changes size, so the block stays put between companies */
.topbar .brand { height: 40px; display: flex; align-items: center; }
.topbar .brand .wnc { height: 26px; width: auto; max-width: 100%; max-height: none; }
.rail-foot > a.acct-btn { text-decoration: none; }
.rail-foot > a.acct-btn.on { color: var(--accent); font-weight: 500; }
.grid.rs .nm { white-space: normal; overflow-wrap: anywhere; }
.grid.rs td { overflow: hidden; text-overflow: clip; }
.grid.rs th { overflow: visible; }
.section h2 .own { font: 500 14px/1 var(--sans); color: var(--ink-2); margin-left: 16px; }
@media (min-width: 901px) { .section { overflow-x: visible; } }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--ink-2); }
/* Date picker: a calendar button inside the date field */
.datewrap { position: relative; display: block; }
.datewrap > input.f[data-date] { width: 100%; padding-right: 38px; }
.datewrap .cal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.datewrap .cal:hover, .datewrap .cal:focus-visible { background: var(--row); color: var(--ink); }
.datewrap .cal svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.datewrap .datepick { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
/* Block average: a quiet closing row */
.grid tfoot tr.avg td { border-bottom: 0; font-weight: 600; color: var(--ink); }
.grid tfoot tr.avg .nm { color: var(--ink-2); font-weight: 600; }
/* The row you came back to, briefly marked */
@keyframes backto { from { background: var(--accent-tint); } to { background: transparent; } }
.grid tr.back-to td { animation: backto 2.4s ease-out; }

/* Company selector in the rail foot, above Settings */
.rail-foot .co-pick { width: 100%; margin-bottom: 6px; }
.topnav a[data-nav="my"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='5.5' r='2.5'/%3E%3Cpath d='M3 14c0-3 2.2-4.5 5-4.5s5 1.5 5 4.5'/%3E%3C/svg%3E"); }
.topnav a[data-nav="okrs"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Ccircle cx='8' cy='8' r='2.5'/%3E%3C/svg%3E"); }
.topnav a[data-nav="settings"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .rail-foot .co-pick { width: auto; margin: 0 8px 0 0; } }

/* Objective separator row inside a table */
table.grid tr.sep td { padding: 14px 12px 8px; background: var(--row); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
table.grid tr.sep:hover td { background: var(--row); }
/* With separator rows, the first column (and its heading) sits at the separator text's left edge */
table.grid:has(tr.sep) th:first-child, table.grid:has(tr.sep) tr:not(.sep) td:first-child { padding-left: 12px; }
body[data-page="my"] { --band-rgb: 208, 239, 218; }
.stat .n .chip { padding: 0 8px; margin-left: -8px; font-size: inherit; font-weight: 600; line-height: 1.2; vertical-align: top; }
.stat .l .chip { padding: 1px 8px; margin-left: -8px; font-size: 13px; }
.stat .l:not(:has(.chip)) { padding-top: 1px; }
/* The status name beside the average score: same size and color as the chip, no chip */
.stat .n .avg-status { margin-left: 10px; font-weight: 600; vertical-align: top; line-height: 1.2; color: var(--neutral); }
.stat .n .avg-status.good { color: var(--good); } .stat .n .avg-status.blue { color: var(--blue); } .stat .n .avg-status.warn { color: var(--warn); } .stat .n .avg-status.bad { color: var(--bad); }
