/* FILE: pb_public/assets/linear.css
   PURPOSE: The project-management look (option F, approved by Abel 2026-10-08, canvas
   https://claude.ai/artifact/A2sPVinjXTKd8hof7az7Zy). Loaded last, after wired.css and app.css, so it wins: Geist type,
   cool greys with one indigo accent, thin rings in place of soft shadows, 6-10px corners in place of pills, and on a
   desk the places as a left sidebar. The case page's stage bar and Work tab (app.js stageBar, workPanel) are styled at
   the end. Change the look here; app.css keeps the layout of each page. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }

/* ---- tokens: the kit's names, new values */
:root {
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --serif-display: var(--sans);
  --serif-body: var(--sans);
  --mono: "Geist Mono", "Cascadia Mono", Consolas, monospace;
  --ink: #111318;
  --ink-soft: #3C3F47;
  --body: #3C3F47;
  --muted: #5F636C;
  --muted-soft: #6B6F78;
  --hairline: #ECECEF;
  --border: #D5D7DC;
  --control-edge: #84888F;   /* 3.2:1 or more on white and on both greys (the boxes in an inset card too) */
  --canvas: #FFFFFF;
  --canvas-soft: #F4F4F6;
  --canvas-rgb: 255, 255, 255;
  --surface: #FFFFFF;
  --side: #F7F7F9;
  --link: #4E5BC4;
  --accent: #5561CF;
  --accent-hover: #4450B8;
  --accent-soft: #EEF0FB;
  --on-accent: #FFFFFF;     /* text on the indigo, both modes */
  --focus: var(--accent);   /* every focus ring (app.css reads it): 5.3:1 on white, 3.8:1 on the dark cards */
  --on-ink: #FFFFFF;
  --btn-waiting: #ECECEF;
  --scrim: rgba(17, 19, 24, 0.4);
  --card-radius: 8px;
  --card-radius-lg: 10px;
  --chip-radius: 6px;       /* app.css draws chips, tags and small pills with this (it was 999px, a pill) */
  --card-shadow: 0 0 0 1px #E6E7EB, 0 1px 2px rgba(17, 19, 24, 0.04);
  --card-rule: #F0F0F3;
  --card-edge: #E6E7EB;
  --float-shadow: 0 0 0 1px #E1E2E6, 0 8px 24px rgba(17, 19, 24, 0.12);
  --status-ok: #1F7A4A;
  --status-warn: #8A5A00;
  --status-danger: #C2312F;
  --tint-rust: #B4532A;
  --tint-slate: #4E6A86;
  --tint-ochre: #8A6A12;
  --tint-olive: #4F7A3A;
  --tint-plum: #6E59A8;
  --tint-stone: #6B6F78;
  --side-width: 236px;
  --side-on: #E6E7EB;       /* the place you are in, in the sidebar */
  --side-hover: #ECECEF;
  --row-hover: #FAFAFB;
  --selection: #D9DCF6;     /* selected text; ink on it is 15:1 */
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDEEF0;
    --ink-soft: #C9CBD1;
    --body: #C9CBD1;
    --muted: #9A9EA7;
    --muted-soft: #8E929B;
    --hairline: #26282D;
    --border: #3A3D44;
    --control-edge: #6E727B;
    --canvas: #0F1012;
    --canvas-soft: #1C1D21;
    --canvas-rgb: 15, 16, 18;
    --surface: #16171A;
    --side: #131417;
    --link: #8F98EB;
    --accent: #5E6AD2;
    --accent-hover: #4E5AC2;   /* darker, not lighter: white on it stays 5.9:1 (the lighter #6F7AE0 was 3.8) */
    --accent-soft: #1F2240;
    --on-ink: #0F1012;
    --btn-waiting: #26282D;
    --card-shadow: 0 0 0 1px #26282D;
    --card-rule: #1F2125;
    --card-edge: #2A2C31;
    --float-shadow: 0 0 0 1px #2E3036, 0 8px 24px rgba(0, 0, 0, 0.5);
    --status-ok: #4CC38A;
    --status-warn: #E2B24A;
    --status-danger: #F07067;
    /* the kind tints, lifted for the dark ground: 4.6:1 or more on the page, the cards, the inset tone and the chosen
       sidebar row. Without these the light values above won here too and fell to 3.1-3.6:1 */
    --tint-rust: #D57349;
    --tint-slate: #7390AE;
    --tint-ochre: #B08717;
    --tint-olive: #649B4A;
    --tint-plum: #9485BF;
    --tint-stone: #8A8E96;
    --side-on: #23252A;
    --side-hover: #1E2024;
    --row-hover: #1A1B1F;
    --selection: #3A4180;     /* light ink on it is 8:1; the light one left selected text at 1.2:1 */
  }
}

/* ---- type: one sans everywhere; headings carry weight, not a serif */
body { font-size: var(--fs-body); line-height: 1.5; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, .page-title, .section-title, .case-title { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-head); }
h2, .section-title { font-size: var(--fs-title); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-body); letter-spacing: -0.005em; }
.page-title { font-size: var(--fs-page); padding-left: 0; padding-right: 0; }   /* the kit's 4px optical nudge was for the serif; Geist sits on the column edge */
.case-title { font-size: var(--fs-page); }
.lead { font-family: var(--sans); font-size: var(--fs-lead); }
::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline-color: var(--accent); }
.doc-id, .ib-name, code, .mono { font-family: var(--mono); }

/* ---- corners: small and the same everywhere (the kit drew pills) */
.header-icon, .seg, .seg-btn, .row-action, .btn, .btn-outline, .btn-quiet, .btn-sm, .btn-lg, .btn-cta, .chip, .filter-chip, .rail-cta { border-radius: 6px; }
.count-pill { border-radius: 4px; }
.fact { border-radius: var(--card-radius); }   /* the kit's fact tile was 13px */
.act-menu, .case-open, .em-bar, .em-preset, .find-box .card-input, .ft-gen, .ft-label, .ib-list, .icon-chip, .lp-bar .chip-row.em-views,
.msg-card .msg-body, .msg-trouble, .paper-sets, .part, .pick, .q-list, .seg3, .sg-bulk, .sg-cell, .top-find:not([hidden]), .wait-have, .wait-slot,
.wait-pick select { border-radius: 8px; }
.seg-opt, .seg-thumb, .lp-bar .em-views .chip { border-radius: 6px; }
.card-input, input[type="text"], input[type="search"], input[type="email"], input[type="date"], select, textarea { border-radius: 6px; }
.detail-page .card > .btn-row .btn-quiet, .case-card .stage-status, .person-chip, .xp-year, .pick-tray, .pick-btn, .toast, .toast-action, .tag,
.nat-chip, .way-pin, .way-primary, .sg-sig, .ck-doc, .conf, .bday-tag, .paper, .paper:has(.paper-main), .paper-main, .paper-count { border-radius: 6px; }

/* ---- buttons: the filled one is indigo, the quiet ones a thin ring */
.btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.btn:hover, .btn:focus-visible { color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); } }
.btn:active { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-quiet, .btn-outline { border-color: var(--border); font-weight: 500; }
.btn-quiet:focus-visible, .btn-outline:focus-visible { border-color: var(--accent); }
.chip.is-on, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tab.is-on, .sg-tabs .is-on { box-shadow: inset 0 -2px 0 var(--ink); }

/* ---- a desk: the places as a left sidebar; the top bar is gone. Phones keep the bottom bar. */
@media (min-width: 900px) {
  :root { --header-height: 0px; }
  body { padding-left: var(--side-width); }
  html body .site-header {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-width); overflow-y: auto; scrollbar-width: thin;
    border: 0; border-right: 1px solid var(--hairline); background: var(--side);
  }
  /* a wrapping row, so the copy icon can sit beside the name when Find hides the sidebar's search; elsewhere the
     search row, the places and Workspace each take the full width */
  html body .site-header .site-header__inner {
    flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; justify-content: flex-start; gap: 2px;
    max-width: none; min-height: 0; margin: 0; padding: 14px 10px 18px;
  }
  .site-header .brand { order: 1; flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px 8px; font-weight: 600; font-size: var(--fs-body); color: var(--ink); text-decoration: none; }
  .site-header .brand::before { content: "O"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px;
    background: var(--ink); color: var(--surface); font-size: var(--fs-label); font-weight: 700; }
  .site-header .brand__name { font-family: var(--sans); font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.01em; }
  .site-header .header-actions { order: 2; flex: 1 0 100%; display: flex; align-items: center; gap: 2px; margin: 0 0 8px; }
  .site-header .top-find:not([hidden]) {
    display: flex; flex: 1; min-width: 0; width: auto; height: 34px; padding: 0 10px; gap: 6px; border-radius: 6px;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--control-edge);
  }
  .site-header .top-find input { font-size: var(--fs-small); }
  .site-header .top-find:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
  .site-header .top-find-icon, .site-header .top-settings { display: none; }
  /* Find has its own big box, so the sidebar's steps aside instead of leaving a hole */
  body[data-page="find"] .site-header .top-find { display: none !important; }
  body[data-page="find"] .site-header .header-actions { flex: 0 0 auto; margin: 0 0 8px; }
  .site-header .header-icon { width: 34px; height: 34px; min-height: 34px; border-radius: 6px; }
  .site-header .header-icon svg { width: 17px; height: 17px; }
  .topnav:not([hidden]) { order: 3; flex: 1 0 100%; flex-direction: column; align-self: stretch; gap: 1px; margin: 0; }
  .topnav a, .topnav button { min-height: 34px; padding: 0 10px; border-radius: 6px; font-size: var(--fs-small); color: var(--ink-soft); justify-content: flex-start; }
  .topnav .is-on { color: var(--ink); font-weight: 600; background: var(--side-on); box-shadow: none; }
  .topnav .top-n { margin-left: auto; }
  .topnav a:focus-visible, .topnav button:focus-visible { outline-offset: -2px; }
  #top-more { display: none; }
  /* More's places are always in view in the sidebar, under their own label */
  html body .site-header .menu, html body .site-header .menu[hidden] {
    order: 4; flex: 1 0 100%; display: flex !important; position: static; inset: auto; width: auto; margin: 14px 0 0; padding: 0; gap: 1px;
    border-radius: 0; background: none; box-shadow: none;
  }
  .site-header .menu::before { content: "Workspace"; padding: 0 10px 6px; font-size: var(--fs-label); font-weight: 500; color: var(--muted); }
  .site-header .menu a { min-height: 34px; padding: 0 10px; border-radius: 6px; font-size: var(--fs-small); color: var(--ink-soft); justify-content: flex-start; }
  .site-header .menu a.is-on { color: var(--ink); font-weight: 600; background: var(--side-on); }
  @media (hover: hover) and (pointer: fine) {
    .topnav a:not(.is-on):hover, .site-header .menu a:not(.is-on):hover { background: var(--side-hover); color: var(--ink); }
  }
  /* signed out the places lead nowhere: the sidebar keeps only the name until the bar's places show (app.js) */
  html body:has(#topnav[hidden]) .site-header .menu { display: none !important; }
  .ib-list { top: 12px; max-height: calc(100vh - 24px); }
  /* no top bar above the page any more: give each page's first line its own air */
  main#app { padding-top: 20px; }
}
/* a touch screen at desk width (a tablet held sideways, a touch laptop): the sidebar's rows keep the 44px finger floor */
@media (min-width: 900px) and (any-pointer: coarse) {
  .topnav a, .topnav button, .site-header .menu a { min-height: var(--touch-target); }
  .site-header .header-icon { width: var(--touch-target); height: var(--touch-target); min-height: var(--touch-target); }
  .site-header .top-find:not([hidden]) { height: var(--touch-target); }
}

/* ---- the phone's bottom bar and top bar: same tokens, the active place in ink */
.tabbar { border-top: 1px solid var(--hairline); }

/* ---- a case: the phases as one bar under the CaseRef */
.pm-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; max-width: 640px; margin: 14px 0 4px; }
.pm-stage { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-label); color: var(--muted); }
.pm-stage i { display: block; height: 6px; border-radius: 2px; background: var(--hairline); }
.pm-stage.is-done { color: var(--ink-soft); }
.pm-stage.is-done i { background: var(--accent); }
.pm-stage.is-now { color: var(--ink); font-weight: 600; }
.pm-stage.is-now i { background: linear-gradient(90deg, var(--accent) 50%, var(--hairline) 50%); }

/* ---- a case's Work tab: groups of rows, then the milestones strip */
.pm-work { display: flex; flex-direction: column; margin-top: 4px; border-radius: 10px; background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; }
.pm-group-head { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 0 16px; background: var(--side);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: var(--fs-meta); font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.pm-group:first-child .pm-group-head { border-top: 0; }
.pm-group-head span { font-weight: 400; color: var(--muted); }
/* the late group's head: the soft late fill with the late ink (6.6:1 light, 5.8:1 dark); the word Overdue still says it */
.pm-group.is-late .pm-group-head { background: var(--soft-late); color: var(--ink-late); }
.pm-group.is-late .pm-group-head span { color: var(--ink-late); }
.pm-row { display: grid; grid-template-columns: 80px 14px minmax(0, 1fr) auto 128px; gap: 12px; align-items: center; min-height: 44px; padding: 6px 16px;
  border-bottom: 1px solid var(--card-rule); color: var(--ink); text-decoration: none; font-size: var(--fs-small); }
.pm-group .pm-row:last-child { border-bottom: 0; }
.pm-row:hover { color: var(--ink); }
.pm-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .pm-row:hover { background: var(--row-hover); } }
.pm-key { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-st { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--control-edge); box-sizing: border-box; }
.pm-st.is-late { border-color: var(--status-danger); }
.pm-st.is-soon { border-color: var(--status-warn); background: linear-gradient(90deg, var(--status-warn) 50%, transparent 50%); }
.pm-st.is-wait { border-style: dashed; }
.pm-st.is-wait.is-late { border-color: var(--status-danger); }
.pm-what { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.pm-what small { font-size: var(--fs-label); color: var(--muted); }
.pm-chip { font-family: var(--mono); font-size: var(--fs-label); padding: 1px 7px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--card-edge); color: var(--ink-soft); white-space: nowrap; }
.pm-date { font-size: var(--fs-meta); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-date.is-late { color: var(--status-danger); font-weight: 600; }
.pm-work > .empty { padding: 28px 18px; }
.pm-ms { padding: 16px 16px 18px; border-top: 1px solid var(--hairline); }
.pm-ms-title { margin: 0 0 10px; font-size: var(--fs-small); font-weight: 600; }
.pm-ms-grid { display: grid; grid-template-columns: minmax(110px, 200px) repeat(6, minmax(0, 1fr)); align-items: center; font-size: var(--fs-label); color: var(--muted); }
.pm-ms-month { padding: 4px 8px; border-left: 1px solid var(--hairline); }
.pm-ms-label { display: flex; flex-direction: column; min-width: 0; padding: 7px 10px 7px 0; font-size: var(--fs-meta); line-height: 1.35; color: var(--ink); }
.pm-ms-label > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-ms-when { font-size: var(--fs-label); color: var(--muted); font-variant-numeric: tabular-nums; }
/* the rows a short group leaves for the Timeline tab */
.pm-more { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: var(--fs-meta); color: var(--link); text-decoration: none; }
.pm-more:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .pm-more:hover { text-decoration: underline; text-underline-offset: 3px; } }
.pm-ms-track { grid-column: 2 / -1; position: relative; height: 30px; border-left: 1px solid var(--hairline);
  background: linear-gradient(90deg, transparent calc(var(--today) - 1px), var(--status-danger) calc(var(--today) - 1px), var(--status-danger) var(--today), transparent var(--today)); }
.pm-ms-mark { position: absolute; top: 9px; width: 11px; height: 11px; margin-left: -6px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
.pm-ms-mark.is-past { background: var(--ink); }
@media (max-width: 699px) {
  .pm-row { grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "st what date" "st key chip"; gap: 2px 10px; padding: 10px 14px; }
  .pm-st { grid-area: st; align-self: start; margin-top: 3px; }
  .pm-what { grid-area: what; }
  .pm-key { grid-area: key; }
  .pm-chip { grid-area: chip; justify-self: end; }
  .pm-date { grid-area: date; }
  .pm-ms-grid { grid-template-columns: 96px repeat(6, minmax(0, 1fr)); }
  .pm-ms-month { padding: 4px 3px; font-size: var(--fs-label); }
}
@media (forced-colors: active) {
  .pm-stage i, .pm-ms-mark { forced-color-adjust: none; border: 1px solid CanvasText; }
  .pm-stage.is-done i, .pm-stage.is-now i, .pm-ms-mark { background: Highlight; }
}
/* a Stages tab says how many of its cases need a look, in words beside the count */
.tab-look { font-size: var(--fs-meta); font-weight: 500; color: var(--status-warn); white-space: nowrap; }
/* labels speak in sentence case, at a medium weight, as this kind of software does; the old kit set them in small
   tracked capitals. The words carry what they did (CaseRef and stage, a document's kind, a field's name); only the
   shouting goes. The stamps (Closed, Filed) keep their capitals: they are stamps */
label, .eyebrow, .row-kicker, .results-count, .fact-label, .field-label, .subgroup-name, .project-facts dt, .xp-years-label,
.xp-last-label, .way-primary, .case-line-role, .case-with, .ft-gen, .utl-kind, .tl-part, .sg-cell-label, .ck-section-title, .facet-title {
  text-transform: none; letter-spacing: 0; font-weight: 500;
}
.facet-title { font-family: var(--sans); }
/* said in words where a hover title used to be the only place: an incomplete phone number, and why a checklist document
   is a problem or only partly fits (it wraps under the chip's DocId and type) */
.place-warn { font-size: var(--fs-meta); color: var(--status-warn); }
.ck-doc:has(.ck-doc-note) { flex-wrap: wrap; }
.ck-doc-note { flex-basis: 100%; padding: 0 8px 4px 0; font-size: var(--fs-meta); line-height: 1.35; color: var(--muted); white-space: normal; }
/* ---- type (typeset pass, 2026-10-08): the kit's components the app still uses, brought onto the roles. A list row's name
   is body weight 600, so it never competes with a section title; empty states, chips, tabs and the back link sit one step
   under body. Headings break in balanced lines, paragraphs avoid a lone last word, and counts line up in columns */
.row-name { font-family: var(--sans); font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.005em; }
.row-sub { font-size: var(--fs-small); }
.panel-title { font-family: var(--sans); font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.01em; }
.empty-title { font-family: var(--sans); font-size: var(--fs-title); font-weight: 600; }
.empty-body, .back-link, .link-btn, .tab, .chip, .filter-chip { font-size: var(--fs-small); }
.fact-value { font-size: var(--fs-body); }
h1, h2, h3, .page-title, .section-title, .case-title, .empty-title, .panel-title { text-wrap: balance; }
p, .lead, .lp-note, .empty-body, .section-note { text-wrap: pretty; }
.top-n, .tab-n, .tab-badge, .facet-count, .paper-count, .pm-date, .when, .when-ago, .doc-meta, .find-count { font-variant-numeric: tabular-nums; }

/* ---- layout pass (2026-10-08) ----
   The sidebar takes 236px from 900px up, so the page has 236px less than the old breakpoints assumed. */
/* Inbox and Email: the list beside the open item only once the page itself is wide enough for both (1100px window,
   about 800px of page); between 900 and 1099 they stack as on a phone, the list capped so the open item stays close */
@media (min-width: 900px) and (max-width: 1099px) {
  .ib-split, .em-split { grid-template-columns: minmax(0, 1fr); }
  .ib-list { position: static; max-height: 264px; }
}
/* the message that floats up (toast) centres on the page, not on the window behind the sidebar */
@media (min-width: 900px) { .toast { left: calc(50% + var(--side-width) / 2); } }
/* a list page's head: the title and its one line are one group (4px apart), the controls under it a new one (20px) */
.lp-head .page-title { padding: 0; }
.lp > .lp-head + * { margin-top: 8px; }
/* tabs on a wider window size to their words on one shared track, as this kind of software draws them; a phone keeps
   them filling the width (or scrolling, app.css) where a thumb needs the room */
@media (min-width: 561px) {
  .tab-row { gap: 4px; box-shadow: inset 0 -1px 0 var(--hairline); }
  .tab-row .tab { flex: 0 0 auto; padding: 0 12px; box-shadow: none; }
  .tab-row .tab.is-on { box-shadow: inset 0 -2px 0 var(--ink); }
}
.tab.is-on { font-weight: 600; }
/* the open Inbox file: a filled row with a thin ring, not a 3px stripe down one side */
.ib-file.is-on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
