/* Calico client & staff pages — "bento" look (11-nov-2026, Henry: "I like this dash look ... very iPhone, Apple design").
   Warm light-gray page, white cards with big radii and soft shadows, black pill primary buttons, ONE green accent for progress/success,
   Calico navy kept for the brand (logo, links). WCAG AA: text >= 4.5:1, focus ring always visible, tap targets >= 44 px. */
:root {
  --bg: #F3F2EF; --surface: #FFFFFF; --surface2: #F6F5F2; --track: #EAE8E3; --border: #E7E5E0; --border-light: #D6D3CC;
  --text: #121212; --text-muted: #4F4D49; --text-dim: #66635E;
  --ink: #111111; --ink-hover: #2B2B2B;
  --brand: #1B3A5C; --brand-light: #2D6A9F; --brand-bg: rgba(27,58,92,0.07);
  --accent: #1B3A5C; --accent-light: #2D6A9F; --accent-bg: rgba(27,58,92,0.07);   /* legacy names used by staff pages */
  --green: #157F3B; --green-strong: #12703A; --green-bg: #E6F4EA; --green-ring: #22A45D;
  --red: #B42318; --red-bg: #FDECEA; --orange: #9A4A07; --orange-bg: #FFF1E0;
  --radius: 14px; --radius-lg: 22px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17,17,17,0.04), 0 6px 20px rgba(17,17,17,0.06);
  --shadow-lift: 0 2px 4px rgba(17,17,17,0.05), 0 12px 32px rgba(17,17,17,0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }   /* 12-nov: 'hidden' always hides (.btn display rules beat the browser default - Cancel showed in Close-only dialogs) */
body { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; border-radius: 8px; }
a { color: var(--brand); text-underline-offset: 2px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { background: rgba(243,242,239,0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border); padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 5; }
.top .brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; min-height: 44px; }
.top img { height: 30px; }
.top .who { font-size: 14px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.top .who > span { padding: 0 6px; font-weight: 600; color: var(--text); }
.top a, .top button.link { color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; }
.top a:hover, .top button.link:hover { border-color: var(--border-light); }
.page { max-width: 1080px; margin: 0 auto; padding: 28px 20px 96px; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 6px; font-weight: 700; }
h2 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 700; }
.muted { color: var(--text-muted); } .dim { color: var(--text-dim); font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }

/* cards */
.card { background: var(--surface); border: 1px solid rgba(17,17,17,0.04); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.card.dark { background: #141414; color: #F5F5F5; border-color: #141414; }
.card.dark .dim, .card.dark .muted { color: #B9B9B9; }
.card.dark a { color: #FFFFFF; }

/* buttons: black pill primary, white pill secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; min-height: 44px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; } .btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-light); } .btn-secondary:hover { border-color: var(--text-dim); }
.btn-danger { background: var(--surface); color: var(--red); border-color: #F3B4AE; }
.btn-green { background: var(--green); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sm { padding: 0 16px; min-height: 44px; font-size: 14px; }
.round { width: 48px; min-width: 48px; height: 48px; padding: 0; border-radius: 50%; }

/* chips */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface2);
  color: var(--text-muted); white-space: nowrap; border: 1px solid var(--border); }
.pill.ok { background: var(--green-bg); color: var(--green-strong); border-color: transparent; }
.pill.ok::before { content: '✓'; font-weight: 800; }
.pill.warn { background: var(--orange-bg); color: var(--orange); border-color: transparent; }
.pill.bad { background: var(--red-bg); color: var(--red); border-color: transparent; }
.pill.info { background: var(--brand-bg); color: var(--brand); border-color: transparent; }
.msg { font-size: 14px; margin-top: 10px; min-height: 1em; } .msg.err { color: var(--red); } .msg.ok { color: var(--green-strong); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); font-weight: 700; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 800; border-bottom: 0; font-size: 16px; }

/* forms */
label.f { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=password], textarea, select {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--border-light); border-radius: var(--radius); font: inherit; background: var(--surface); color: var(--text); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 1px; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; font-size: 14px; min-height: 44px; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--green); }

/* layout: bento grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: 16px; }
.bento > .card { margin: 0; }
.span3 { grid-column: span 3; } .span4 { grid-column: span 4; } .span5 { grid-column: span 5; } .span6 { grid-column: span 6; }
.span7 { grid-column: span 7; } .span8 { grid-column: span 8; } .span12 { grid-column: span 12; }
@media (max-width: 900px) { .span3, .span4 { grid-column: span 6; } .span5, .span7, .span8 { grid-column: span 12; } }
@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; } .bento { grid-template-columns: 1fr; } .bento > .card { grid-column: auto; }
  .top { padding: 8px 12px; } .top .who > span { display: none; } .page { padding: 18px 12px 96px; } .card { padding: 18px; } h1 { font-size: 26px; }
}

/* big numbers */
.big { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big.green { color: var(--green-strong); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface2); border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--border); }
.kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--text-dim); }

/* progress ring (SVG) */
.ringwrap { display: flex; align-items: center; gap: 18px; }
.ring { width: 104px; height: 104px; flex: none; }
.ring .trk { stroke: var(--track); } .ring .val { stroke: var(--green-ring); }
.ring text { font-weight: 800; font-size: 22px; fill: var(--text); }
.card.dark .ring .trk { stroke: #333; } .card.dark .ring text { fill: #fff; }

/* step checklist */
.steps { list-style: none; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--border); }
.steps .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--surface); border: 2px solid var(--border-light); color: var(--text-dim); }
.steps li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.now { background: var(--surface); border-color: var(--ink); }
.steps li.now .dot { border-color: var(--ink); color: var(--ink); }
.steps li a { margin-left: auto; }

/* calendar card */
.cal { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.cal th { border: 0; padding: 4px 0; text-align: center; font-size: 11px; }
.cal td { border: 0; padding: 0; text-align: center; height: 36px; vertical-align: middle; position: relative; font-variant-numeric: tabular-nums; }
.cal td span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.cal td.out span { color: #B4B1AB; }
.cal td.today span { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
.cal td.ms span { background: var(--green); color: #fff; font-weight: 700; }
.cal td.ms.done span { background: var(--green-bg); color: var(--green-strong); }
.calhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.callegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.callegend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: -1px; }

/* avatars */
.avatars { list-style: none; display: grid; gap: 10px; }
.avatars li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.av { width: 40px; height: 40px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--brand); flex: none; }
.av.g { background: var(--green); } .av.k { background: var(--ink); }

/* media card (photos) */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/10; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.media .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: 14px; }

/* stage bar */
.stages { display: flex; gap: 4px; margin: 14px 0 6px; overflow-x: auto; padding-bottom: 4px; }
.stage { flex: 1 0 74px; text-align: center; font-size: 11px; color: var(--text-dim); }
.stage .bar { height: 6px; border-radius: 3px; background: var(--track); margin-bottom: 6px; }
.stage.done .bar { background: var(--green-ring); } .stage.current .bar { background: var(--ink); }
.stage.current { color: var(--text); font-weight: 800; } .stage.done { color: var(--text-muted); }

/* action box */
.actions { border: 1px solid rgba(17,17,17,0.04); }
.actions ul { list-style: none; display: grid; gap: 10px; }
.actions li { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border); min-height: 56px; }

/* segmented control (tabs) */
/* 12-nov (Henry): the pills WRAP to a second row instead of a hidden sideways scroll that cut the last tab ("Documen") - every pill shows its whole label at any width */
/* 12-nov (Henry 4:43 PM tab bug): pills size to their text and WRAP - never clipped; 12px sides = all 10 tabs on one row on Macs/iPad landscape */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 20px 0 18px; background: var(--track); border-radius: 24px; }
.tabs button { flex: none; background: none; border: 0; padding: 0 12px; min-height: 40px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected=true] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(17,17,17,0.08), 0 2px 8px rgba(17,17,17,0.06); }
.tabs .badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }

/* projects list */
.proj { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.proj:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.proj .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }

/* timeline */
.tl { list-style: none; border-left: 2px solid var(--track); margin-left: 8px; }
.tl li { position: relative; padding: 0 0 16px 20px; }
.tl li::before { content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-light); }
.tl li.done::before { background: var(--green); border-color: var(--green); }

/* messages */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding: 4px 2px; }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--surface2); border: 1px solid var(--border); white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 20px 20px 6px 20px; }
.bubble .meta { display: block; font-size: 12px; opacity: .78; margin-top: 4px; }
.composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; padding: 6px 6px 6px 16px; background: var(--surface2); border: 1px solid var(--border-light); border-radius: 28px; }
.composer textarea { border: 0; background: transparent; min-height: 48px; max-height: 200px; padding: 12px 0; border-radius: 0; resize: none; }
.composer textarea:focus-visible { outline: none; }
.composer:focus-within { outline: 3px solid var(--brand-light); outline-offset: 2px; }

/* photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photos figure { margin: 0; } .photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--surface2); cursor: zoom-in; display: block; }
.photos figcaption { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* banners */
.banner { padding: 14px 16px; border-radius: var(--radius); background: var(--orange-bg); color: #6B3405; font-size: 14px; margin: 12px 0; }
.banner.info { background: var(--brand-bg); color: var(--brand); }
.countdown { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* dialog */
/* 12-nov: margin auto = centred (the global '* { margin: 0 }' reset pinned every dialog to the top-left corner) */
dialog { border: 0; border-radius: var(--radius-lg); padding: 0; max-width: min(560px, 94vw); width: 100%; margin: auto; box-shadow: 0 24px 60px rgba(17,17,17,.30); }
dialog::backdrop { background: rgba(17,17,17,.45); backdrop-filter: blur(2px); }
dialog .in { padding: 24px; } dialog .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.consent { font-size: 13px; background: var(--surface2); padding: 12px; border-radius: var(--radius); color: var(--text-muted); }
.sigpreview { font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive; font-size: 30px; color: #12235A; border-bottom: 1px solid var(--border-light); min-height: 48px; padding: 4px 6px; margin-top: 8px; }
.steps3 { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); margin: 8px 0 12px; } .steps3 b { color: var(--text); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 11-nov part A: VE option switches + comment buttons */
.optlist { list-style: none; display: grid; gap: 8px; }
.optlist li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border); }
.optlist .od { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--green-strong); }
.switch { position: relative; width: 52px; height: 44px; border: 0; background: none; cursor: pointer; flex: none; padding: 0; }
.switch span { position: absolute; left: 0; top: 6px; width: 52px; height: 32px; border-radius: 999px; background: var(--track); transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-checked=true] span { background: var(--green); }
.switch[aria-checked=true] span::after { transform: translateX(20px); }
.switch:disabled { opacity: .5; cursor: default; }
.link.cbtn { background: none; border: 0; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 6px; text-decoration: underline; text-underline-offset: 2px; }
td.cc { width: 1%; white-space: nowrap; text-align: right; }
@media (max-width: 720px) { .optlist li { grid-template-columns: auto 1fr; } .optlist .od, .optlist .cbtn { grid-column: 2; justify-self: start; } }

/* 11-nov motion (Henry 6:34 PM 'Japanese website'; quiet + fast; prices never animate; prefers-reduced-motion = no motion at all) */
:root { --ease: cubic-bezier(.22,1,.36,1); }
.rule { display: block; height: 3px; width: 48px; background: var(--brand); border-radius: 2px; margin: 6px 0 8px; }
@media (prefers-reduced-motion: no-preference) {
  .rv { animation: rise 240ms var(--ease) both; animation-delay: var(--d, 0ms); }
  .rv.wait { animation-play-state: paused; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  h1.mask { overflow: hidden; padding-bottom: 2px; }
  h1.mask span { display: inline-block; animation: maskup 240ms var(--ease) both; }
  @keyframes maskup { from { transform: translateY(105%); } to { transform: none; } }
  .rule { animation: rule 240ms var(--ease) both; }
  @keyframes rule { from { width: 24px; } to { width: 48px; } }
  .media img { animation: clipin 280ms var(--ease) both; }
  @keyframes clipin { from { clip-path: inset(0 100% 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
  .big.flash { animation: flash 280ms cubic-bezier(.16,1,.3,1); border-radius: 8px; }
  @keyframes flash { from { background: rgba(21,127,59,.16); } to { background: transparent; } }
  .ring .val { transition: stroke-dashoffset 300ms var(--ease); }
  .switch span, .switch span::after { transition-duration: 140ms; transition-timing-function: cubic-bezier(.2,0,0,1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; animation-timing-function: cubic-bezier(.2,0,0,1); }
  ::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: var(--ease); }
  html[data-vt=tab]::view-transition-group(tabpill) { animation-duration: 180ms; }
  html[data-vt=tab]::view-transition-old(tabpanel) { animation: vt-out 90ms linear both; }
  html[data-vt=tab]::view-transition-new(tabpanel) { animation: vt-in 160ms var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* 11-nov part B: assistant chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.askchip { cursor: pointer; min-height: 44px; font: inherit; font-size: 14px; }
.askchip:hover { border-color: var(--text-dim); }
#askthr:empty { display: none; }

/* 11-nov part D1: notifications bell + What's new list */
.top button.link.bell { position: relative; width: 44px; min-width: 44px; padding: 0; justify-content: center; }
.bell .badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.notes { list-style: none; display: grid; gap: 8px; margin-top: 10px; max-height: 55vh; overflow-y: auto; }
.notes li { padding: 10px 12px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--border); font-size: 14px; }
.notes li.new { border-color: var(--green); background: var(--green-bg); }
.notes li.new a { font-weight: 700; }
.notes a { color: var(--text); text-decoration: none; } .notes a:hover { text-decoration: underline; }

/* 11-nov D3: tentative road-to-start dates (outlined dots) + expandable steps */
.cal td.ms.tent span { background: transparent; box-shadow: inset 0 0 0 2px var(--green); color: var(--green-strong); }
.steps details summary { cursor: pointer; list-style: none; min-height: 32px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.steps details summary::-webkit-details-marker { display: none; }

/* 11-nov D4: plan pins (page image rendered on the board; pins in % so they follow fit/zoom) */
.pinwrap { position: relative; overflow: auto; max-height: 75vh; margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.pinpage { position: relative; width: 100%; min-height: 160px; }
.pinwrap.zoom .pinpage { width: 250%; }
.pinpage img { display: block; width: 100%; height: auto; cursor: crosshair; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pin { position: absolute; transform: translate(-50%, -50%); min-width: 30px; height: 30px; padding: 0 7px; border-radius: 15px; border: 2px solid #fff;
  background: var(--brand); color: #fff; font: 600 13px/26px system-ui, -apple-system, sans-serif; box-shadow: 0 1px 5px rgba(17,17,17,.35); cursor: pointer; }
.pin::before { content: ""; position: absolute; inset: -8px; }   /* 46 px touch target */
.pin:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }
.pin.new { background: var(--orange); pointer-events: none; }
.thr { display: flex; flex-direction: column; gap: 6px; }
.thr .bubble + .bubble { margin-left: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .flash { animation: pinflash 1.2s ease-out; }
  @keyframes pinflash { from { box-shadow: 0 0 0 5px rgba(45,106,159,.55); } to { box-shadow: 0 0 0 0 rgba(45,106,159,0); } }
}
@media (prefers-reduced-motion: reduce) { .flash { outline: 2px solid var(--brand-light); } }

/* 11-nov D5: plan comment status (open / marked resolved by Calico) + filter; filtering hides, never deletes */
.pin.done { background: var(--green-strong); }
.pinwrap[data-flt="open"] .pin.done, .pinwrap[data-flt="resolved"] .pin:not(.done):not(.new) { display: none; }
.thread[data-flt="open"] .thr[data-st="resolved"], .thread[data-flt="resolved"] .thr[data-st="open"] { display: none; }
.flt .pill { cursor: pointer; min-height: 36px; }
.flt .pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pst { margin-left: 6px; padding: 2px 10px; font-size: 12px; }

/* 11-nov D6: what we need from you */
.needl { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.need { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.need[data-st="submitted"] { background: var(--surface2); }
.need .nh { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.need p { margin-top: 4px; }
.need .chk { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 6px; }
.need input[type="file"] { margin-top: 4px; max-width: 100%; }

/* 11-nov D8: compare pages (Flip A/B; side by side on wide screens) */
.cmppick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.cmpf { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px 12px; margin: 0; min-width: 0; }
.cmpf legend { font-weight: 700; padding: 0 6px; }
.cmpf select { max-width: 100%; width: 100%; }
.cmpgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmpfig { margin: 0; min-width: 0; }
.cmpfig figcaption { font-size: 14px; margin-bottom: 6px; }
.cmpfig .pinpage img { cursor: default; }
@media (max-width: 899px) { .cmpside { display: none; } .cmpgrid, .cmppick { grid-template-columns: 1fr; } }

/* 11-nov D9: project recap */
.recaplink { margin: 4px 0 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.recap h3 { margin: 18px 0 6px; font-size: 16px; }
.recap .rl { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.recap .rl a { color: inherit; text-underline-offset: 3px; }
.recap .rtext[hidden] { display: none; }
.recap .rtext { display: block; width: 100%; min-height: 220px; margin-top: 12px; font: 13px/1.5 ui-monospace, Menlo, monospace; }

/* 11-nov D10: new since your last visit (this device) */
.newdot { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--orange-bg); color: var(--orange); font-size: 11px; font-weight: 700; line-height: 16px; vertical-align: middle; }
.sincenew { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--brand-bg); font-size: 14px; }
.sincenew a { font-weight: 600; }

/* 11-nov D11: a11y - pills inside the client's own (dark) bubbles get an opaque light background (the translucent "info" pill was 1.6:1) */
.bubble.me .pill { background: #fff; }

/* 12-nov daily: proposals at a glance */
.versw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vers td { vertical-align: top; }
.vers td:first-child { font-weight: 700; white-space: nowrap; }
.vers .jump { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
section.card[id^="bid-"] { scroll-margin-top: 96px; }   /* the sticky header must not cover the proposal title after "Details" */
@media (max-width: 640px) {   /* phones: each version as a stacked block (the 5-column table squeezed "What it is" to one word per line) */
  .vers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vers, .vers tbody, .vers tr, .vers td { display: block; width: 100%; }
  .vers tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .vers td, .vers td.num { border: 0; padding: 2px 0; text-align: left; }
}

/* 12-nov VE P1: one-tap packages (Best value / Balanced / Premium), then fine-tune */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; }
.pkg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; min-height: 44px; border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pkg:hover { border-color: var(--brand-light); }
.pkg.on { border-color: var(--brand); background: var(--brand-bg); }
.pkg .pkt { font-weight: 700; font-size: 15px; }
.pkg .pkp { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pkg .pks { font-size: 13px; color: var(--text-muted); }
.pkg:disabled { opacity: .6; cursor: default; }
@media (max-width: 640px) { .pkgs { grid-template-columns: 1fr; } }
/* 12-nov WELCOME first view (Henry 4:50 PM): hero + Henry's welcome slot, "What happens next", "Your Calico team", 30-second tour, first-visit
   celebration. Same tokens as the bento look; navy brand + ONE green accent; tap targets >= 44 px; reduced motion = no confetti / no drawing. */
.wl-hero { position: relative; overflow: hidden; padding: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 340px; transition: box-shadow .4s; }
.wl-copy { padding: 30px 30px 26px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.wl-eb { color: var(--brand); }
.wl-title { font-size: 42px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 2px 0 12px; }
.wl-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.wl-addr { display: flex; gap: 6px; align-items: center; color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.wl-addr svg { flex: none; color: var(--brand); }
.wl-meta { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; } .wl-meta:empty { display: none; }
.wl-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 16px; }
.wl-crew { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
/* 12-nov 7:09 PM (Henry: avatars were tall skinny ovals): fixed 44 px round squares that never stretch or shrink, overlapping stack */
.wl-avs { display: inline-flex; align-items: center; flex: 0 0 auto; }
.wl-avs .av { width: 44px; height: 44px; min-height: 0; max-height: 44px; aspect-ratio: 1; flex: 0 0 44px; align-self: center; margin: 0; font-size: 14px; box-shadow: 0 0 0 2px var(--surface); }
.wl-avs .av + .av { margin-left: -12px; }
.wl-play { display: inline-flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; align-self: flex-start;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 18px 6px 6px; min-height: 56px; }
.wl-play:hover { border-color: var(--border-light); } .wl-play:disabled { cursor: default; opacity: .85; }
.wl-pbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; box-shadow: 0 0 0 4px rgba(27,58,92,.12); }
.wl-copy audio.wl-media { width: 100%; margin-top: 12px; }
.wl-art { position: relative; min-height: 300px; background: var(--brand); }
.wl-art img, .wl-art .wl-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-art.playing { background: #000; } .wl-art video.wl-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.wl-cap { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(17,17,17,.62); color: #fff; font-size: 12px; font-weight: 600; }
.wl-row { margin-top: 0; }
.wl-sect { font-size: 20px; letter-spacing: -0.02em; margin: 6px 0 12px; }
/* what happens next */
.wl-steps { list-style: none; display: grid; gap: 10px; counter-reset: none; }
.wl-steps li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 12px 10px 14px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--border); min-height: 64px; }
.wl-steps li.now { background: var(--surface); border-color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,17,.06); }
.wl-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface); border: 2px solid var(--border-light); color: var(--text-dim); }
.wl-steps li.now .n { background: var(--ink); border-color: var(--ink); color: #fff; }
.wl-steps .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .wl-steps .when { font-size: 13px; color: var(--text-dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wl-nowpill { padding: 1px 9px; font-size: 12px; }
.wl-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--text); font-size: 22px; font-weight: 600; border: 1px solid var(--border-light); background: var(--surface); }
.wl-go:hover { border-color: var(--text-dim); }
/* your Calico team */
.wl-people { list-style: none; display: grid; gap: 12px; }
.wl-people li { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.wl-people li:last-child { border-bottom: 0; padding-bottom: 0; }
.wl-people .av { width: 44px; height: 44px; } .wl-people .av svg { color: #fff; }
.wl-who { display: flex; flex-direction: column; min-width: 0; } .wl-who b { font-size: 15px; }
.wl-acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding-left: 56px; }
.wl-ic { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-light); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.wl-ic:hover { border-color: var(--text-dim); } .wl-ic svg { color: var(--brand); }
@media (max-width: 900px) { .wl-title { font-size: 36px; } }
@media (max-width: 720px) {
  .wl-hero { grid-template-columns: 1fr; min-height: 0; } .wl-art { order: -1; min-height: 190px; } .wl-copy { padding: 20px 18px 20px; }
  .wl-title { font-size: 30px; } .wl-cta .btn { flex: 1 1 auto; } .wl-acts { padding-left: 0; } .wl-ic { flex: 1 1 0; justify-content: center; }
}
/* first-visit celebration + tour */
.wl-hero.wl-glow { box-shadow: 0 0 0 3px rgba(34,164,93,.28), var(--shadow-lift); }
.wl-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.wl-confetti i { position: absolute; top: -14px; width: 7px; height: 11px; border-radius: 2px; opacity: 0; animation: wlfall var(--t) cubic-bezier(.2,.6,.35,1) var(--dl) both; }
@keyframes wlfall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), 340px) rotate(var(--r)); } }
.wl-toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 32px rgba(17,17,17,.25); max-width: calc(100vw - 24px); text-align: center; transition: opacity .4s; }
.wl-toast.out { opacity: 0; }
.wl-spot { position: fixed; z-index: 44; border-radius: 26px; box-shadow: 0 0 0 9999px rgba(17,17,17,.5); pointer-events: none; }
.wl-pop { position: fixed; z-index: 46; width: min(360px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border-radius: 20px; padding: 16px 18px 14px;
  box-shadow: 0 24px 60px rgba(17,17,17,.32); }
.wl-pop.sheet { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
.wl-pop h2 { font-size: 18px; margin: 0 0 6px; } .wl-pop h2:focus { outline: none; } .wl-pop p { font-size: 15px; } .wl-pop .eyebrow { margin: 10px 0 4px; }
.wl-bar { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; } .wl-bar i { display: block; height: 100%; background: var(--green-ring); border-radius: 2px; }
.wl-pf { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; flex-wrap: wrap; } .wl-pf > span { display: flex; gap: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .wl-draw path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: wldraw 1.2s var(--ease) .1s forwards; }
  @keyframes wldraw { to { stroke-dashoffset: 0; } }
  .wl-spot { transition: top .25s var(--ease), left .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
  .wl-toast { animation: wltoast .3s var(--ease) both; } @keyframes wltoast { from { opacity: 0; transform: translate(-50%, -8px); } }
  .wl-pop { animation: wlpop .2s var(--ease) both; } @keyframes wlpop { from { opacity: 0; transform: translateY(6px); } }
}

/* 12-nov VE P2: a photo per option (thumbnail on the option row -> large view with its source / license line) */
.optlist .ot.ph { display: flex; gap: 12px; align-items: center; }
.othumb { flex: none; width: 56px; height: 56px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--track); cursor: zoom-in; }
.othumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
dialog:has(.ophoto) { max-width: min(960px, 94vw); }
.ophoto { margin: 0; }
.ophoto img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: var(--radius); background: var(--track); }
.ophoto figcaption { margin-top: 8px; font-size: 13px; }

/* 12-nov VE P3: a simple meter per option - Cost / Look / Durability vs the design as drawn (green = better for the client) */
.meter { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.meter .mt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.meter .mn { font-weight: 700; color: var(--text); }
.meter .mb { display: inline-flex; gap: 2px; }
.meter .mb i { width: 10px; height: 6px; border-radius: 3px; background: var(--border-light); }
.meter .mb i.on.g { background: var(--green); } .meter .mb i.on.w { background: var(--orange); } .meter .mb i.on.z { background: var(--text-dim); }
.mlegend { font-size: 13px; margin: 2px 0 4px; }
.optlist .od.up { color: var(--text); }   /* an extra cost is not green (green = better for the client, as the meter legend says) */

/* 12-nov VE P4: the client's saved scenarios + side-by-side compare */
.scn { margin: 16px 0 8px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface2); }
.scn h3 { margin: 0 0 2px; } .scn h3:focus { outline: none; } .scn > .dim { font-size: 13px; }
.scnlist { list-style: none; display: grid; gap: 6px; margin: 10px 0; }
.scnlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.scnname { font-weight: 700; } .scntot { font-variant-numeric: tabular-nums; }
.scnact { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-left: auto; }
.slink { background: none; border: 0; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 2px; }
.scncmp { margin-top: 12px; }
.scnsel { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.scnsel select { margin-left: 6px; width: auto; max-width: 100%; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--radius-sm); }
table.cmp th, table.cmp td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--border); vertical-align: middle; }
table.cmp thead th, table.cmp thead td { border-top: 0; font-size: 13px; color: var(--text-muted); }
table.cmp tbody th { font-weight: 600; text-transform: none; letter-spacing: normal; font-size: 14px; color: var(--text); }   /* not the all-caps table header style */
table.cmp td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.cmp .on { color: var(--green-strong); font-weight: 700; white-space: nowrap; }
table.cmp .copt { display: inline-flex; align-items: center; gap: 8px; }
table.cmp .copt img { flex: none; width: 28px; height: 28px; object-fit: cover; border-radius: 6px; }
@media (max-width: 640px) { .scnact { margin-left: 0; width: 100%; } table.cmp { font-size: 13px; } table.cmp th, table.cmp td { padding: 7px 5px; } .scnsel label { width: 100%; } .scnsel select { width: 100%; margin: 4px 0 0; } }

/* 12-nov 6:08 PM: team photos (Henry's headshot; others keep initials until Henry OKs a photo) */
.av.ph { background: var(--track); overflow: hidden; padding: 0; }
.av.ph picture, .av.ph img { display: block; width: 100%; height: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: center; }

/* 12-nov 6:19 PM (Henry: the logo looked generic and small in a little bubble): the REAL Calico logo, crisp on retina (534x180 knock-out of the
   site's 1721x600 master in brand navy #0C2854 + a white version for dark surfaces), no pill around it; the white mark sits on the hero art. */
.top .brand { background: none; border: 0; border-radius: 0; padding: 0; min-height: 44px; }
.top .brand img.logo { display: block; height: 38px; width: auto; }
/* 12-nov 8:17 PM (Henry, chat 3: "put the logo on the bottom right"): the white logo leaves the top-left (it sat on the drawing) for the
   BOTTOM-RIGHT, ~125 px wide (~89 px when the art is narrow), 90% white over a soft corner scrim (no bubble: Henry 6:19 PM), bottom-aligned
   with the caption. Sizes follow the ART's own width (container query wlart), so iPad portrait gets the small size too; the caption is
   capped so it never runs under the logo. The old top gradient only served the top-left logo -> removed. Video playback clears #wlart. */
.wl-art { container-type: inline-size; container-name: wlart; }
.wl-mark { position: absolute; right: 16px; bottom: 14px; z-index: 2; pointer-events: none; opacity: .9; }
.wl-art .wl-mark img { position: static; inset: auto; display: block; width: auto; height: 42px; object-fit: contain; filter: drop-shadow(0 1px 8px rgba(0,0,0,.35)); }
.wl-art::after { content: ''; position: absolute; right: 0; bottom: 0; width: 70%; height: 62%; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 100% 100%, rgba(6,16,34,.62) 0%, rgba(6,16,34,.30) 40%, rgba(6,16,34,0) 72%); }
.wl-art.playing::after { content: none; }
.wl-cap { z-index: 2; max-width: calc(100% - 170px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container wlart (max-width: 459px) {
  .wl-mark { right: 12px; bottom: 12px; } .wl-art .wl-mark img { height: 30px; }
  .wl-cap { left: 12px; bottom: 12px; padding: 6px 10px; font-size: 11px; max-width: calc(100% - 126px); }
}
@media (max-width: 720px) {
  .top .brand img.logo { height: 32px; }
}
/* 12-nov (Henry 6:22 PM): the proposal on the page - version switcher, cover, trade summary, scope by CSI division, lists, terms, print */
.vsw { padding: 16px; }
.vbtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.vbtn { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); font: inherit; color: var(--text); cursor: pointer; min-height: 44px; }
.vbtn:hover { border-color: var(--text-dim); }
.vbtn.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.vbtn .vv { grid-row: span 2; font-weight: 800; font-size: 15px; }
.vbtn .vt { font-weight: 600; font-size: 14px; }
.vbtn .vp { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--text-muted); }
.vbtn .pill { grid-column: 2; justify-self: start; font-size: 12px; padding: 2px 10px; }
.pchead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ptitle { margin: 2px 0 4px; font-size: 26px; letter-spacing: -0.02em; }
.pfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 18px 0 6px; }
.pfacts .eyebrow { margin-bottom: 2px; }
.pacts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.ptw { overflow-x: auto; }
.ptab td, .ptab th { padding: 10px 8px; }
.pdiv { border-top: 1px solid var(--border); }
.pdiv:last-of-type { border-bottom: 1px solid var(--border); }
.pdiv > summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; cursor: pointer; font-weight: 700; list-style: none; }
.pdiv > summary::-webkit-details-marker { display: none; }
.pdiv > summary::before { content: '›'; display: inline-block; width: 14px; transition: transform .15s; color: var(--text-dim); }
.pdiv[open] > summary::before { transform: rotate(90deg); }
.pdiv > summary > span:first-child { flex: 1; }
.pdiv > summary .num { font-variant-numeric: tabular-nums; }
.csi { font-variant-numeric: tabular-nums; color: var(--text-dim); font-weight: 600; font-size: 12px; }
.ptot { margin-top: 10px; }
.ptot tr.pinfo td { color: var(--text-dim); font-size: 13px; }
.plist { list-style: none; padding: 0; margin: 8px 0 0; }
.plist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.plist li:last-child { border-bottom: 0; }
.plist .num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.plist.bul li { display: list-item; list-style: disc; margin-left: 18px; padding: 6px 0; border: 0; }
.popts h4 { margin: 16px 0 4px; font-size: 14px; }
.pgrid > .card { margin-bottom: 0; }
.pgrid { margin-bottom: 16px; }
.pqm { display: none; }
@media (max-width: 720px) {
  .pq { display: none; } .pqm { display: inline; } .pshare { display: none; }
  .ptitle { font-size: 22px; } .vbtns { grid-template-columns: 1fr; } .pgrid { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff !important; }
  .top, nav.tabs, .vsw, .pacts, .cbtn, .cc, [id^="cm-"], .scn, .pkgs, .switch, .countdown, [data-expand], .bell, .askc { display: none !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid-page; }
  .page { padding: 0 !important; max-width: none !important; }
  .pdiv > summary::before { content: ''; }
  tr { break-inside: avoid; }
  .pq { display: table-cell !important; } .pqm { display: none !important; }
}
.pscope .link { background: none; border: 0; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 6px; text-decoration: underline; text-underline-offset: 2px; }

/* 12-nov 6:23 PM (Henry): project page header as a HERO (image + big title + stats chips), a prominent Next step card, and the stage tracker
   as a progress journey (icon per stage, current glowing, % complete, dates). Motion once per visit; reduced motion = none. */
/* 12-nov 7:09 PM: root class renamed .ph -> .phero - a bare .ph also matched .av.ph avatars + .ot.ph option rows (300 px tall ovals/blocks) */
.phero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 300px; margin: 0 0 16px; border-radius: var(--radius-lg);
  background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.ph-media { position: absolute; inset: 0; }
.ph-media img, .ph-media .wl-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,32,.18) 0%, rgba(8,18,32,.30) 38%, rgba(8,18,32,.84) 100%); }
.ph-mark { position: absolute; top: 18px; right: 20px; z-index: 2; pointer-events: none; }
.ph-mark img { display: block; height: 40px; width: auto; filter: drop-shadow(0 1px 8px rgba(0,0,0,.2)); }
.ph-back { position: absolute; top: 14px; left: 16px; z-index: 2; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ph-back:hover { background: rgba(255,255,255,.22); }
.ph-in { position: relative; z-index: 1; width: 100%; padding: 76px 26px 24px; }
.ph-eb { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D3E6F7; }
.ph-title { margin: 0 0 8px; font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.ph-addr { display: flex; gap: 6px; align-items: center; font-size: 14px; color: rgba(255,255,255,.9); } .ph-addr svg { flex: none; }
.ph-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ph-chips li { display: flex; flex-direction: column; padding: 7px 14px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ph-chips span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.ph-chips b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ph-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr); gap: 16px; }
.ph-row > .card { margin: 0; min-width: 0; }
.ph-next { display: flex; flex-direction: column; justify-content: center; gap: 10px; background: linear-gradient(160deg, var(--surface) 40%, var(--green-bg)); }
.ph-next .eyebrow { margin: 0; color: var(--green-strong); }
.pn-text { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.pn-go { align-self: flex-start; }
.pj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; } .pj-head h2 { margin: 0; }
.pj-pct { font-size: 14px; color: var(--text-dim); } .pj-pct b { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.pj-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.pj { list-style: none; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(66px, 1fr)); min-width: calc(var(--n) * 66px); }
.pj-track { position: absolute; top: 18px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 4px; border-radius: 2px; background: var(--track); }
.pj-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 2px; background: linear-gradient(90deg, var(--green-ring), var(--green)); transition: width 1.1s var(--ease); }
.pj-s { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 3px; text-align: center; }
.pj-i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-light); color: var(--text-dim); }
.pj-s.done .pj-i { background: var(--green); border-color: var(--green); color: #fff; }
.pj-s.now .pj-i { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(45,106,159,.18), 0 0 16px rgba(45,106,159,.30); }
.pj-l { font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--text-muted); }
.pj-s.done .pj-l { color: var(--text); } .pj-s.now .pj-l { color: var(--text); font-weight: 800; }
.pj-d { min-height: 14px; font-size: 11px; color: var(--text-dim); } .pj-s.now .pj-d { color: var(--brand); font-weight: 700; }
.ph-still .wl-draw path { animation: none !important; stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: no-preference) {
  .pj-s.now .pj-i { animation: pjglow 2.4s ease-in-out 3; }
  @keyframes pjglow { 0%, 100% { box-shadow: 0 0 0 6px rgba(45,106,159,.18), 0 0 16px rgba(45,106,159,.30); } 50% { box-shadow: 0 0 0 11px rgba(45,106,159,.07), 0 0 26px rgba(45,106,159,.45); } }
}
@media (prefers-reduced-motion: reduce) { .pj-fill { transition: none; } }
@media (max-width: 900px) { .ph-row { grid-template-columns: minmax(0, 1fr); } }   /* minmax(0, ...): the stepper scrolls inside its card, never the page */
@media (max-width: 720px) {
  .phero { min-height: 280px; border-radius: 18px; } .ph-in { padding: 64px 16px 18px; } .ph-title { font-size: 28px; }
  .ph-mark { top: 16px; right: 14px; } .ph-mark img { height: 26px; } .ph-chips li { padding: 6px 12px; } .ph-chips b { font-size: 14px; }
  .pn-text { font-size: 16px; } .pn-go { align-self: stretch; }
}
.ph-media .wl-svg > g { opacity: .55; } .ph-media .wl-svg > g.wl-draw { opacity: .3; }   /* the blueprint stays a texture behind the title */
/* 12-nov 6:44 PM (Henry): the client's own plans as the blueprint hero - the plan sits in the middle of a 16:10 navy canvas */
.wl-art.wl-plan, .ph-media:has(picture) { background: #0C2854; }
.wl-plan img, .ph-media picture img { object-position: 50% 50%; }
.ph-media picture img { opacity: .5; }   /* behind the project title the plan stays a texture (like the generic art); full strength on the welcome card */
/* 12-nov: the private assistant cites the records it used */
.asksrc { margin-top: 6px; font-size: 12px; }

/* 12-nov 8:36 PM (Henry): the client renames their project - pencil next to the title (welcome hero, project hero, My projects card) + inline editor */
.rn-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rn-row > [data-rn-title] { min-width: 0; overflow-wrap: anywhere; }
.rn-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; min-width: 36px; aspect-ratio: 1; flex: 0 0 36px; padding: 0; margin: 0;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-muted); cursor: pointer; }
.rn-btn:hover { color: var(--text); border-color: var(--border-light); background: var(--surface2); }
.rn-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.phero .rn-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); align-self: center; margin-bottom: 8px; }
.phero .rn-btn:hover { background: rgba(255,255,255,.26); }
.phero .rn-btn:focus-visible { outline-color: #fff; }
.projw { position: relative; }
.projw > .rn-btn { position: absolute; top: 18px; right: 18px; z-index: 2; }
.projw.rn-on > .proj .row { padding-right: 46px; }
.rn-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 10px; max-width: 680px; }
.rn-form input { flex: 1 1 240px; min-width: 0; min-height: 44px; font: inherit; font-size: 17px; font-weight: 600; padding: 9px 14px; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.rn-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.rn-form .rn-hint { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--text-dim); }
.rn-form .msg { flex-basis: 100%; margin: 0; } .rn-form .msg:empty { display: none; }
.phero .rn-form .rn-hint { color: rgba(255,255,255,.88); }
.phero .rn-form .msg { color: #fff; }
.projw > .rn-form { position: absolute; left: 0; right: 0; top: 0; z-index: 3; margin: 0; max-width: none; padding: 16px 18px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
@media (max-width: 720px) { .rn-form .btn { flex: 1 1 auto; } .projw > .rn-btn { top: 14px; right: 14px; } }
