/* ==========================================================================
   SEEKRA DESIGN SYSTEM — Stage 1B token-first rebuild
   Direction: seekra-ux-research-report.md §B (approved).
   Every rule consumes tokens. Hardcoded hex/px font-sizes outside this
   file's token layer are documented exceptions (see comments).
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* ---- Color: ink (text) ---- */
  --ink-900: #101E2B;   /* headings, body text */
  --ink-700: #33475B;   /* secondary text */
  --ink-500: #5A7184;   /* muted text (AA on paper at 14px+) */

  /* ---- Color: paper & lines (warm neutrals — page is NEVER pure white) ---- */
  --paper-50: #FAF9F7;  /* app background */
  --paper-100: #F2F0EC; /* section alternation, fills */
  --line-200: #E3E0DA;  /* hairline borders — preferred over shadows */
  --surface: #FFFFFF;   /* raised surface: cards, inputs, menus only (never the page bg) */

  /* ---- Color: brand (primary trust blue) ---- */
  --brand-700: #173E61; /* hover/pressed, link text (AA) */
  --brand-600: #1F4E79; /* interactive elements */
  --brand-500: #4A7BA6; /* mid step — hover borders on brand-tinted elements */
  --brand-100: #D7E3EE; /* hairline border on brand tints (derived tint step) */
  --brand-50:  #EDF3F8; /* tint fills, selected states */

  /* ---- Color: accent (terracotta — primary CTA + verified/trust badges ONLY, ≤5% of pixels) ---- */
  --accent-500: #C2703D; /* badges, large elements */
  --accent-600: #A85E30; /* CTA fill — white text on 500 fails AA (3.7:1); 600 passes 4.8:1 */
  --accent-700: #8C4B24; /* CTA hover/pressed */

  /* ---- Color: semantic statuses (muted, desaturated, harmonized with palette) ---- */
  --success-50:  #E8F2EC;
  --success-600: #2E7D5B;
  --success-live: #65C18C; /* live indicator on the dark product panel */
  --warning-50:  #FAF0DC;
  --warning-500: #C08F2F; /* markers, stars */
  --warning-700: #835200; /* text on warning-50 (AA) */
  --danger-50:   #FAEDEA;
  --danger-600:  #B4402F;
  --info-50:     #E9EFF5;
  --info-600:    #3A6285; /* text on info-50 (AA) */
  --neutral-50:  #EEF1F5; /* neutral status fill (draft/closed/withdrawn) */

  /* ---- Typography ---- */
  --font-display: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Modular scale 1.25 from 17px base (values fixed) */
  --text-1: 12px;  /* caption */
  --text-2: 14px;  /* small / UI labels */
  --text-3: 17px;  /* body */
  --text-4: 21px;  /* h4 */
  --text-5: 26px;  /* h3 */
  --text-6: 33px;  /* h2 */
  --text-7: 41px;  /* h1 */
  --text-8: 52px;  /* display (hero h1, clamped on mobile) */

  /* Line-heights snapped to the 4px grid, paired with the scale above */
  --leading-1: 16px;
  --leading-2: 20px;
  --leading-3: 28px; /* 17px × 1.55 ≈ 26 → snapped to 28 */
  --leading-4: 28px;
  --leading-5: 32px;
  --leading-6: 40px;
  --leading-7: 52px; /* ≈1.25 for h1 */
  --leading-8: 64px;

  --measure: 65ch; /* max text measure for prose (rulebook: paragraphs ≤65ch) */

  /* ---- Spacing: 4px base scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 64px;   /* section rhythm, desktop (Stage 3: tightened from 96px) */
  --space-10: 88px;  /* hero top / bridge — stays the airiest, never cavernous */

  /* ---- Layout ---- */
  --content-max: 1200px;  /* rulebook shared container; 1280px at ≥1440 (§9) */

  /* ---- Shape ---- */
  --radius-control: 6px;
  --radius-card: 10px;
  --radius-pill: 999px;

  /* ---- Elevation: ONE shadow level, floating elements only
     (dropdowns, modals, toasts, tooltips, sticky drawer). Cards are flat. ---- */
  --shadow-float: 0 1px 2px rgba(16, 30, 43, .06), 0 8px 24px rgba(16, 30, 43, .10);

  /* ---- Focus ---- */
  --focus-ring: var(--brand-600);
}

/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
* { box-sizing: border-box; }
/* The hidden attribute must always win over component display rules —
   a menu/modal/toast that shows without being summoned is a bug, not a style. */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--text-3);
  line-height: var(--leading-3);
}
img, svg { max-width: 100%; }

a { color: var(--brand-700); text-decoration: none; }
/* hover feedback only where hover exists — touch must never stick :hover */
@media (hover: hover) { a:hover { text-decoration: underline; } }

hr.sep { border: 0; border-top: 1px solid var(--line-200); margin: var(--space-5) 0; }

/* keyboard focus — always visible */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-control);
}

/* skip link — hidden until focused */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ink-900); color: var(--surface);
  padding: var(--space-3) var(--space-4); border-radius: 0 0 var(--radius-card) 0;
  font-weight: 700; font-size: var(--text-2);
}
.skip-link:focus { left: 0; color: var(--surface); text-decoration: none; }

/* ==========================================================================
   3. TYPOGRAPHY
   Public Sans = display/headings + body/UI (founder directive 2026-10-09:
   one face site-wide, the eyebrow's face) · IBM Plex Mono = numbers
   ========================================================================== */
h1, h2 {
  font-family: var(--font-display);
  color: var(--ink-900);
}
/* display weight is 700 — a sans display face set at 500/600 reads weak */
h1 { font-size: var(--text-7); line-height: var(--leading-7); font-weight: 700; letter-spacing: -.01em; margin: 0 0 var(--space-4); }
h2 { font-size: var(--text-6); line-height: var(--leading-6); font-weight: 700; letter-spacing: -.01em; margin: 0 0 var(--space-3); }
h3 { font-size: var(--text-5); line-height: var(--leading-5); font-weight: 600; letter-spacing: -.01em; margin: 0 0 var(--space-2); }
h4 { font-size: var(--text-4); line-height: var(--leading-4); font-weight: 600; margin: 0 0 var(--space-2); }

.lead { font-size: var(--text-4); line-height: var(--leading-5); color: var(--ink-700); max-width: var(--measure); }
.muted { color: var(--ink-500); }
.small { font-size: var(--text-2); line-height: var(--leading-2); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: var(--text-1); line-height: var(--leading-1); font-weight: 700;
  color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
  margin: 0 0 var(--space-2);
}

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */
/* shared container, every screen (rulebook): gutter 16 phone / 32 tablet /
   48 laptop+, centered, content never wider than --content-max */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto;
  padding: 0 var(--space-4); }
@media (min-width: 640px) { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-7); } }

.section { padding: var(--space-9) 0; margin-inline: auto; }  /* 64px desktop rhythm; auto margins center max-width sections on ultrawide */
.section-tight { padding: var(--space-7) 0; }  /* 48px — compact variant */

.grid { display: grid; gap: var(--space-5); }  /* 24px card-to-card gaps */
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--radius-card); padding: var(--space-5);
}
.card h3 { margin-top: 0; }
.card-flat {
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--radius-card); padding: var(--space-4);
}
.card-head { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.card-head h3 { margin: 0; }

.page-head { margin-bottom: var(--space-5); }
.page-head h2 { margin-bottom: var(--space-1); }
.page-head .legal-page-title { margin-bottom: var(--space-1); font-size: var(--text-6); line-height: var(--leading-6); }
.page-head .sub { color: var(--ink-500); font-size: var(--text-2); max-width: var(--measure); }

.sec-head { margin: var(--space-6) 0 var(--space-3); }
.sec-head h3 { margin: 0 0 var(--space-1); }
.sec-head .sub { color: var(--ink-500); font-size: var(--text-2); margin: 0; }
.subhead { margin: var(--space-5) 0 var(--space-3); font-size: var(--text-2); color: var(--ink-900); }

.crumb { margin: 0 0 var(--space-2); }
.crumb a { color: var(--ink-500); font-size: var(--text-2); text-decoration: none; }
@media (hover: hover) { .crumb a:hover { color: var(--brand-700); text-decoration: underline; } }

/* ==========================================================================
   5. COMPONENTS (alphabetized)
   ========================================================================== */

/* ---- Account menu (header dropdown) ---- */
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: var(--space-2); background: none;
  border: 1px solid transparent; border-radius: var(--radius-card);
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
  cursor: pointer; color: var(--ink-900); font: inherit; font-size: var(--text-2); }
.acct-btn[aria-expanded="true"] { background: var(--brand-50); }
@media (hover: hover) { .acct-btn:hover { background: var(--brand-50); } }
.acct-name { font-weight: 600; max-width: 160px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.acct-caret { font-size: var(--text-1); color: var(--ink-500); }
.acct-menu { position: absolute; top: calc(100% + var(--space-2)); right: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line-200); border-radius: var(--radius-card);
  box-shadow: var(--shadow-float); padding: var(--space-2); z-index: 60;
  display: flex; flex-direction: column; }
.acct-menu-head { padding: var(--space-3); border-bottom: 1px solid var(--line-200);
  margin-bottom: var(--space-1); display: flex; flex-direction: column; gap: var(--space-1); }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left;
  padding: var(--space-3); border: 0; background: none; font: inherit; font-size: var(--text-2);
  color: var(--ink-900); border-radius: var(--radius-control); cursor: pointer; text-decoration: none; }
@media (hover: hover) { .acct-menu a:hover, .acct-menu button:hover { background: var(--brand-50); } }

/* ---- Action bar (contextual next step) ---- */
.action-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  flex-wrap: wrap; background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius-card); padding: var(--space-3) var(--space-4); margin: var(--space-4) 0; }
.action-bar strong { color: var(--brand-700); }

/* ---- Admin console ---- */
.admin-card h3 { margin: 0 0 var(--space-3); }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  padding: var(--space-3) 0; border-top: 1px solid var(--line-200); flex-wrap: wrap; }
.admin-row:first-of-type { border-top: 0; }
.admin-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
/* Profile review card: the reviewer judges the whole person, not a name row. */
.admin-review { padding: var(--space-3) 0; border-top: 1px solid var(--line-200); }
.admin-review:first-of-type { border-top: 0; }
.admin-review-head { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.admin-control-room { border-top: 3px solid var(--brand-600); }
.admin-control-head, .admin-section-title, .admin-activity-head { display: flex; justify-content: space-between;
  align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.admin-control-head h3, .admin-section-title h3 { margin-bottom: var(--space-1); }
.admin-control-head p, .admin-section-title p, .admin-activity-head p { margin: 0; }
.admin-control-head .eyebrow { color: var(--brand-700); font-size: var(--text-1); font-weight: 700;
  letter-spacing: .08em; margin: 0 0 var(--space-1); }
.admin-updated { color: var(--ink-500); font-size: var(--text-1); white-space: nowrap; }
.admin-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: var(--space-2); margin-top: var(--space-4); }
.admin-action-tile { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-2);
  align-content: start; min-height: 82px; padding: var(--space-3); border: 1px solid var(--line-200);
  border-radius: var(--radius-control); background: var(--paper-50); color: var(--ink-700); text-decoration: none; }
.admin-action-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (hover: hover) { .admin-action-tile:hover { border-color: var(--brand-600); text-decoration: none; } }
.admin-action-count { grid-column: 1 / -1; color: var(--ink-900); font-family: var(--font-mono);
  font-size: var(--text-5); font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-action-arrow { justify-self: end; color: var(--brand-700); font-weight: 700; }
.admin-health-strip { display: flex; gap: var(--space-2) var(--space-5); flex-wrap: wrap; margin-top: var(--space-3);
  padding-top: var(--space-3); border-top: 1px solid var(--line-200); color: var(--ink-600); font-size: var(--text-1); }
.admin-health-strip strong { color: var(--ink-900); font-family: var(--font-mono); }
.admin-period { display: flex; align-items: center; gap: var(--space-2); color: var(--ink-500); font-size: var(--text-1); }
.admin-period select { min-height: 36px; padding: var(--space-1) var(--space-2); border: 1px solid var(--line-200);
  border-radius: var(--radius-control); background: var(--surface); color: var(--ink-900); font: inherit; }
.admin-brief-card { padding: var(--space-4) 0; border-top: 1px solid var(--line-200); }
.admin-brief-card:first-of-type { border-top: 0; }
.admin-brief-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.admin-brief-head h4 { margin: var(--space-1) 0; }
.admin-brief-head p { margin: 0; }
.admin-project-state, .admin-interest-state { display: inline-block; padding: 2px var(--space-2); border-radius: var(--radius-pill);
  background: var(--brand-50); color: var(--brand-700); font-size: var(--text-1); font-weight: 600; text-transform: capitalize; }
.admin-brief-description { max-width: 80ch; color: var(--ink-600); font-size: var(--text-2); margin: var(--space-3) 0; }
.admin-brief-skills { color: var(--ink-600); font-size: var(--text-1); }
.admin-draft-note { padding: var(--space-2) var(--space-3); border-radius: var(--radius-control);
  background: var(--paper-100); color: var(--ink-600); font-size: var(--text-1); }
.admin-interest-list, .admin-shortlist-list { border-top: 1px solid var(--line-200); margin-top: var(--space-3); }
.admin-interest-row, .admin-shortlist-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(220px, auto);
  align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line-200); }
.admin-interest-person { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-interest-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
.admin-interest-tags .tag { margin: 0; }
.admin-actions { justify-content: flex-end; }
.admin-shortlist-row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.admin-future-interests { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line-200); }
.admin-future-interests summary { color: var(--brand-700); font-weight: 600; cursor: pointer; }
.admin-future-row { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0;
  border-top: 1px solid var(--line-200); font-size: var(--text-2); }
#admin-profile-review, #admin-curation-queue, #admin-projects, #admin-intros, #admin-disputes { scroll-margin-top: 88px; }
.admin-load-error { margin-bottom: var(--space-3); }
.admin-load-error p { margin: var(--space-1) 0 0; }

/* ---- Alerts (inline form feedback) ---- */
.alert { border: 1px solid var(--line-200); border-left: 3px solid var(--brand-600);
  border-radius: var(--radius-control); padding: var(--space-3) var(--space-4);
  font-size: var(--text-2); background: var(--surface); color: var(--ink-700); margin: var(--space-3) 0; }
.alert.err { border-left-color: var(--danger-600); background: var(--danger-50); color: var(--danger-600); }
.alert.ok { border-left-color: var(--success-600); background: var(--success-50); color: var(--success-600); }

/* ---- Ask Seekra (contact modal) ----
   Ink navy, matching the Sight's outer ring (founder directive 2026-10-04). */
.btn-ask { background: var(--ink-900); color: var(--surface); }
@media (hover: hover) { .btn-ask:hover { background: var(--ink-700); color: var(--surface); } }
.ask-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--space-5); }
.ask-modal[hidden] { display: none; }
.ask-backdrop { position: absolute; inset: 0; background: rgba(16, 30, 43, .45); }
.ask-card { position: relative; width: 100%; max-width: 440px; box-shadow: var(--shadow-float); }
.ask-card .form-row { grid-template-columns: 1fr; }
.ask-card h3 { margin: 0 0 var(--space-1); }

/* ---- Avatar (initials tile; image variant via <img>) ---- */
.avatar {
  width: 44px; height: 44px; border-radius: var(--radius-card); overflow: hidden;
  background: var(--brand-50); color: var(--brand-700);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-3); flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 30px; height: 30px; border-radius: var(--radius-control); font-size: var(--text-1); }
.avatar-xl { width: 84px; height: 84px; border-radius: var(--radius-card); font-size: var(--text-6); }
.avatar-up { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.avatar-up-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.avatar-up-status { min-width: 0; }

/* ---- Badges: status with dot + label (never color alone) ---- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2); border-radius: var(--radius-pill);
  padding: 3px var(--space-3) 3px var(--space-2);
  font-size: var(--text-1); font-weight: 700; letter-spacing: .01em;
  background: var(--neutral-50); color: var(--ink-700);
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge-draft, .badge-closed, .badge-withdrawn, .badge-not_started { background: var(--neutral-50); color: var(--ink-700); }
.badge-active, .badge-open, .badge-published, .badge-in_progress { background: var(--brand-50); color: var(--brand-700); }
.badge-applied, .badge-submitted, .badge-pending, .badge-revision, .badge-revision_required, .badge-under_review { background: var(--warning-50); color: var(--warning-700); }
.badge-shortlisted, .badge-intro_requested, .badge-awarded { background: var(--info-50); color: var(--info-600); }
.badge-approved, .badge-intro_approved, .badge-accepted, .badge-completed, .badge-paid { background: var(--success-50); color: var(--success-600); }
.badge-rejected, .badge-cancelled, .badge-changes_requested, .badge-suspended { background: var(--danger-50); color: var(--danger-600); }

/* ---- Brand lockup: The Sight + lowercase two-tone wordmark (canon §3/§4) ---- */
/* flex: 0 0 auto — the nav's flex row must never squeeze the wordmark: shrinking
   exposes the soft-wrap opportunity between the "seek" text run and the .brand-ra
   inline span, wrapping the "ra" onto its own line. */
.brand-lockup { display: inline-flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }
.brand-lockup > span { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-4); line-height: 1;
  letter-spacing: -.01em; color: var(--ink-900);
  white-space: nowrap; /* belt-and-braces with flex: 0 0 auto — one line, always */
}
/* Lowercase two-tone wordmark RATIFIED 2026-10-03/04 (canon §3): "seekra",
   no uppercase transform, no caps tracking. The color split mirrors the
   Sight's geometry (founder directive 2026-10-04): "seek" in the ring's ink,
   "ra" in the dot's terracotta. The old a-strike device is retired — the
   terracotta "ra" now IS the moment. */
.brand-ra { color: var(--accent-500); }
.brand-tag {
  font-size: var(--text-1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; color: var(--ink-500);
  margin-top: var(--space-1); white-space: nowrap;
}
.brand-lockup.lg .brand-word { font-size: var(--text-6); }
.brand-lockup.lg .brand-tag { font-size: var(--text-2); }
@media (hover: hover) { a.brand-lockup:hover { text-decoration: none; } }

/* Monogram — "The Sight" core cut (brand-work/logo-loop-3/sight-final.svg),
   inlined by lib/brand.js logoMark(). BARE mark per canon §4: no tile, no
   border — the ring is its own container. */
.brand-mark { width: 26px; height: 26px; flex: 0 0 auto; }
.brand-mark.lg { width: 38px; height: 38px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: var(--radius-control);
  padding: var(--space-3) var(--space-5); min-height: 44px;
  font-family: inherit; font-size: var(--text-3); line-height: var(--leading-2);
  font-weight: 600; cursor: pointer; text-align: center;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}
@media (hover: hover) {
  .btn:hover { text-decoration: none; }
  .btn-primary:hover { background: var(--accent-700); color: var(--surface); }
  .btn-outline:hover { border-color: var(--ink-500); }
  .btn-ghost:hover { text-decoration: underline; }
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-600); color: var(--surface); }
.btn-outline { background: transparent; color: var(--ink-900); border-color: var(--line-200); }
.btn-ghost { background: transparent; color: var(--brand-700); padding: var(--space-2) var(--space-2); }
.btn-sm { padding: var(--space-2) var(--space-3); min-height: 36px; font-size: var(--text-2); }
.btn-danger-soft { background: var(--danger-50); color: var(--danger-600); }
.btn-warn-soft { background: var(--warning-50); color: var(--warning-700); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.loading { opacity: .65; pointer-events: none; }
.btn.loading::before { content: '…'; margin-right: var(--space-1); }
.btn-block { display: block; width: 100%; }

/* ---- Chat (v0.2.4 — research/messaging-ux-spec.md) ---- */
.thread-item { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--line-200); }
.thread-item:last-child { border-bottom: 0; }
.thread-item .grow { flex: 1; min-width: 0; }

/* conversation list: 76px rows — name + time, project context, preview */
.conv-row { display: flex; gap: var(--space-3); align-items: center; min-height: 76px;
  padding: var(--space-3) var(--space-4); background: var(--surface);
  border: 1px solid var(--line-200); border-radius: var(--radius-card);
  text-decoration: none; color: inherit; }
.conv-row + .conv-row { margin-top: var(--space-2); }
@media (hover: hover) { .conv-row:hover { border-color: var(--brand-600); background: var(--brand-50); text-decoration: none; } }
.conv-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-row .r-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.conv-row .r-top strong { font-size: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-row .r-time { font-size: var(--text-1); color: var(--ink-500); white-space: nowrap; flex: 0 0 auto; }
.conv-row .r-proj { font-size: var(--text-1); color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-row .r-prev { font-size: var(--text-2); color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-row .r-chevron { color: var(--ink-500); font-size: var(--text-4); line-height: 1; flex: 0 0 auto; }

/* thread header: person first, project context as a pill */
.chat-head { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-2) 0 var(--space-4); }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-title { font-size: var(--text-5); margin: 0; }
.chat-sub { font-size: var(--text-1); margin: 0; }
.chat-proj { flex: 0 1 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-1); font-weight: 600; color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: var(--radius-pill); padding: var(--space-1) var(--space-3);
  text-decoration: none; }
@media (hover: hover) { .chat-proj:hover { border-color: var(--brand-600); } }

/* thread: grouped bubbles — 2px inside a group, 16px between groups */
.chat-card { padding: var(--space-3) var(--space-4); }
.chat-log { display: flex; flex-direction: column; gap: var(--space-4);
  min-height: 180px; max-height: 56dvh; overflow-y: auto; padding: var(--space-3) var(--space-1); }
.msg-group { display: flex; flex-direction: column; gap: 2px; max-width: 68%; }
.msg-group.me { align-self: flex-end; align-items: flex-end; }
.msg-group.them { align-self: flex-start; align-items: flex-start; position: relative; padding-left: 38px; }
.msg-group .g-av { position: absolute; left: 0; bottom: 0; }
.bubble { width: max-content; max-width: 100%; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-card); font-size: var(--text-2); line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble small { float: right; margin: var(--space-1) 0 0 var(--space-2); font-size: var(--text-1); opacity: .65; }
.msg-group.me .bubble { background: var(--brand-600); color: var(--surface); }
.msg-group.me .bubble.tail { border-bottom-right-radius: var(--space-1); }
.msg-group.them .bubble { background: var(--paper-100); color: var(--ink-900); }
.msg-group.them .bubble.tail { border-bottom-left-radius: var(--space-1); }

/* day dividers + trust system line */
.day-div { display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  align-self: stretch; color: var(--ink-500); font-size: var(--text-1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; }
.day-div::before, .day-div::after { content: ''; height: 1px; background: var(--line-200); width: 56px; }
.sys-line { align-self: center; text-align: center; font-size: var(--text-1); color: var(--ink-500); }
.sys-line .ok { color: var(--brand-600); font-weight: 700; }

.unread-dot { flex: 0 0 auto; min-width: 22px; height: 22px; border-radius: var(--radius-pill);
  background: var(--accent-500); color: var(--surface); font-size: var(--text-1); font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 var(--space-2); }
.chat-form { display: flex; gap: var(--space-2); margin-top: var(--space-3); align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 40dvh; resize: none; overflow-y: auto; }
.chat-form button[type=submit]:disabled { opacity: .4; cursor: default; }

/* ---- Chips (skill tag input) ---- */
.chip-input {
  display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center;
  border: 1px solid var(--line-200); border-radius: var(--radius-control);
  background: var(--surface); padding: var(--space-2) var(--space-3); cursor: text;
}
.chip-input:focus-within { outline: 2px solid var(--brand-50); border-color: var(--brand-600); }
.chip-input input { border: 0 !important; outline: 0 !important; padding: var(--space-1) var(--space-1);
  flex: 1; min-width: 140px; font-size: var(--text-2); background: transparent; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--brand-50); color: var(--brand-700);
  border-radius: var(--radius-pill); padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
  font-size: var(--text-2); font-weight: 600;
}
.chip button {
  border: 0; background: var(--brand-100); color: var(--brand-700); border-radius: 50%;
  width: 18px; height: 18px; font-size: var(--text-1); line-height: 1; cursor: pointer; padding: 0;
}
@media (hover: hover) { .chip button:hover { background: var(--brand-50); outline: 1px solid var(--brand-600); } }

/* ---- Completion meter (profile) ---- */
.completion { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.completion-bar { flex: 0 1 220px; height: 7px; border-radius: var(--radius-pill);
  background: var(--brand-50); overflow: hidden; }
.completion-bar span { display: block; height: 100%; border-radius: var(--radius-pill);
  background: var(--brand-600); transition: width .3s ease; }

/* ---- Confirm modal ---- */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(16, 30, 43, .45);
  display: flex; align-items: center; justify-content: center;
}
.confirm-box {
  background: var(--surface); border-radius: var(--radius-card); padding: var(--space-5);
  max-width: 420px; width: calc(100% - var(--space-7));
  box-shadow: var(--shadow-float);
}
.confirm-msg { margin: 0 0 var(--space-4); font-size: var(--text-3); line-height: var(--leading-3); }
.confirm-actions { display: flex; gap: var(--space-3); justify-content: flex-end; }

/* ---- Danger zone ---- */
.danger-card { border-color: var(--danger-600); }
.danger-card h3 { color: var(--danger-600); }

/* ---- Directory cards ---- */
.dir-card { position: relative; display: flex; flex-direction: column; gap: 15px; min-height: 330px;
  padding: 23px; overflow: hidden; border: 1px solid #e5e1db; border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #fff 65%, #fcfaf7 100%);
  box-shadow: 0 3px 12px rgb(21 36 48 / 4%); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .dir-card:hover { border-color: #c57a4b; transform: translateY(-3px); box-shadow: 0 12px 30px rgb(21 36 48 / 9%); } }
.dir-card-topline, .dir-card-bottom, .dir-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dir-trust-badges { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.dir-trust-mark { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; color: #142432; cursor: help; }
.dir-trust-mark svg { display: block; width: 23px; height: 23px; overflow: visible; }
.dir-trust-mark svg circle:first-child { fill: #fff; stroke: #142432; stroke-width: 2.1; }
.dir-trust-mark svg circle:nth-child(2) { fill: none; stroke: #d9dfe2; stroke-width: 1.15; }
.dir-trust-mark svg circle:nth-child(3) { fill: #c37343; }
.dir-trust-mark svg .dir-trust-check { fill: none; stroke: #c37343; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dir-reviewed { display: inline-flex; align-items: center; gap: 7px; color: #607488; font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.dir-reviewed > span { color: #c3723d; font-size: 9px; }
.dir-verified { border: 1px solid #d5e7dc; border-radius: 999px; padding: 4px 9px; background: #f1f8f3; color: #32664a; font-size: 11px; font-weight: 700; }
.dir-founding { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #e9c4a5; border-radius: 999px; padding: 4px 9px; background: #fff3e8; color: #96502b; font-size: 11px; font-weight: 750; white-space: nowrap; }
.dir-founding-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 30px; flex: 0 0 28px; color: #9b5d38; cursor: help; }
.dir-founding-mark svg { display: block; width: 23px; height: 27px; overflow: visible; filter: drop-shadow(0 1px 1px rgb(69 44 27 / 12%)); }
.dir-founding-ribbon { fill: #b96a3c; stroke: #96502b; stroke-width: .6; stroke-linejoin: round; }
.dir-founding-medal { fill: #fff8f0; stroke: #bd7449; stroke-width: 1.15; stroke-linejoin: round; }
.dir-founding-star { fill: #b96a3c; stroke: #96502b; stroke-width: .5; stroke-linejoin: round; }
.dir-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dir-avatar { width: 58px; height: 58px; flex: 0 0 auto; border: 2px solid #f1e8df; border-radius: 17px; font-size: 21px; }
.dir-person-copy { min-width: 0; }
.dir-person-copy h3 { margin: 0 0 4px; color: #142432; font-size: clamp(19px, 1.4vw, 23px); line-height: 1.2; letter-spacing: -.025em; }
.dir-headline { margin: 0 0 4px; color: #40586c; font-size: 14px; font-weight: 600; line-height: 1.4; }
.dir-location { margin: 0; color: #718295; font-size: 13px; }
.dir-bio { display: -webkit-box; margin: 0; overflow: hidden; color: #526579; font-size: 14px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.dir-match { margin: -3px 0 0; color: #9c552f; font-size: 12px; font-weight: 700; }
.dir-card-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 28px; }
.dir-expertise-tag { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid #e8e4de; border-radius: 8px; padding: 4px 9px; background: #faf9f7; color: #465c6e; font-size: 12px; font-weight: 600; }
.dir-more-skills { color: #9b5b37; font-size: 12px; font-weight: 700; }
.dir-card-bottom { margin-top: auto; border-top: 1px solid #eeeae5; padding-top: 12px; }
.dir-member-type { color: #67798a; font-size: 12px; font-weight: 700; }
.dir-foot { color: #788796; font-size: 12px; }
.dir-card-actions { justify-content: flex-start; gap: 9px; }
.dir-view-profile, .dir-use-brief { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; border: 1px solid #e2ddd6; border-radius: 10px; padding: 0 13px; background: #fff; color: #253b4e; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.dir-use-brief { border-color: #aa5f32; background: #aa5f32; color: #fff; }
.dir-view-profile:hover, .dir-view-profile:focus-visible { border-color: #aa5f32; color: #934d26; }
.dir-use-brief:hover, .dir-use-brief:focus-visible { border-color: #864724; background: #864724; }
.dir-topline-actions { display: inline-flex; align-items: center; gap: 8px; }
.dir-topline-actions { flex-wrap: wrap; justify-content: flex-end; }
.dir-interest { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; border: 0; border-radius: 999px; padding: 0 8px; background: #fbf4ee; color: #7a685e; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.dir-interest > span:first-child { color: #a85b37; font-size: 17px; }
.dir-interest.is-saved { color: #9e4f31; }
.dir-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.dir-page-head > div:first-child { max-width: 650px; }
.dir-eyebrow { margin: 0 0 8px; color: #a45c34; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.dir-page-head h2 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.04em; }
.dir-process-note { display: flex; align-items: center; gap: 12px; border: 1px solid #e8e2da; border-radius: 14px; padding: 13px 16px; background: #fff; }
.dir-process-step { display: flex; align-items: center; gap: 8px; }
.dir-process-step > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f8eee6; color: #a85b37; font-size: 12px; }
.dir-process-step > span { display: grid; gap: 2px; }
.dir-process-step strong { color: #23384a; font-size: 12px; }
.dir-process-step small { color: #738293; font-size: 11px; }
.dir-process-arrow { color: #c0784b; font-weight: 800; }
.dir-network-head { margin: 10px 0 19px; }
.dir-count { margin: 0 !important; color: #30485c; font-size: 15px; font-weight: 750; }
.dir-process-explainer { margin: 4px 0 0; color: #748394; font-size: 13px; }
.dir-member-info { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 22px; border: 1px solid #dce5eb; border-radius: 14px; padding: 16px 19px; background: #f4f7f9; }
.dir-member-info strong { color: #24394b; font-size: 14px; }
.dir-member-info p { margin: 2px 0 0; color: #6c7d8d; font-size: 13px; }
.dir-member-info .btn { flex: none; }
.dir-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); align-items: stretch; gap: 18px; }
.dir-result { min-width: 0; }
.dir-result[hidden] { display: none; }
.dir-brief-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 36px 0 0; border: 1px solid #e8e1d9; border-radius: 18px; padding: 25px 29px; background: linear-gradient(112deg, #fcf5ee, #fff 70%); }
.dir-brief-cta h3 { margin: 0 0 5px; color: #172937; font-size: 21px; }
.dir-brief-cta p { margin: 0; color: #637589; }
.dir-brief-cta .btn { flex: none; }
.dir-modal-backdrop { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgb(12 25 36 / 58%); backdrop-filter: blur(5px); }
.dir-profile-modal { position: relative; width: min(100%, 660px); max-height: min(88vh, 900px); overflow: auto; border: 1px solid rgb(255 255 255 / 65%); border-radius: 22px; background: #fff; box-shadow: 0 24px 80px rgb(8 20 30 / 28%); outline: none; }
.dir-modal-close { position: absolute; z-index: 1; top: 14px; right: 15px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / 55%); border-radius: 50%; background: rgb(255 255 255 / 88%); color: #263a4a; font-size: 24px; cursor: pointer; }
.dir-modal-cover { display: flex; align-items: center; gap: 10px; min-height: 100px; padding: 23px 30px; background: linear-gradient(115deg, #132635, #253e51 68%, #a65d35); }
.dir-cover-meta { display: flex; align-items: center; gap: 10px; padding-right: 54px; }
.dir-modal-badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dir-modal-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; padding: 4px 10px; background: rgb(255 255 255 / 10%); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.dir-modal-badge svg { width: 18px; height: 18px; flex: 0 0 18px; }
.dir-modal-badge svg circle:first-child { fill: #fff; stroke: #fff; stroke-width: 1.8; }
.dir-modal-badge svg circle:nth-child(2) { fill: none; stroke: #d4dce1; stroke-width: 1; }
.dir-modal-badge svg circle:nth-child(3) { fill: #c37343; }
.dir-modal-badge svg .dir-trust-check { fill: none; stroke: #b96a3c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dir-modal-badge svg .dir-founding-ribbon { fill: #c37343; stroke: #f1c7a4; stroke-width: .6; }
.dir-modal-badge svg .dir-founding-medal { fill: #fff8f0; stroke: #f1c7a4; stroke-width: 1; }
.dir-modal-badge svg .dir-founding-star { fill: #b96a3c; stroke: #96502b; stroke-width: .4; }
.dir-modal-cover .dir-reviewed { color: #fff; }
.dir-modal-content { padding: 26px 32px 30px; }
.dir-modal-person { display: flex; align-items: center; gap: 16px; margin: -51px 0 25px; }
.dir-avatar-large { width: 78px; height: 78px; border: 4px solid #fff; border-radius: 23px; background: #edf3f6; font-size: 27px; }
.dir-modal-person h2 { margin: 0 0 4px; color: #142432; font-size: clamp(25px, 4vw, 32px); letter-spacing: -.035em; }
.dir-modal-person .dir-eyebrow { margin-bottom: 3px; }
.dir-modal-section { margin-top: 23px; border-top: 1px solid #eeeae5; padding-top: 18px; }
.dir-modal-section h3 { margin: 0 0 10px; color: #243a4d; font-size: 15px; }
.dir-modal-section > p { margin: 0; color: #586c7e; line-height: 1.65; white-space: pre-line; }
.dir-modal-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.dir-modal-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; color: #55705f; font-size: 13px; font-weight: 650; }
.dir-modal-note { margin: 22px 0 0; border-left: 3px solid #c37343; padding: 9px 13px; background: #fbf5ef; color: #5f6871; font-size: 13px; line-height: 1.5; }
.dir-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dir-modal-actions .btn { min-height: 45px; }
.dir-modal-hint { margin: 9px 0 0; color: #738293; font-size: 12px; line-height: 1.5; }
.dir-brief-reference { display: flex; align-items: flex-start; gap: 14px; margin: -8px 0 18px; border: 1px solid #ead7c8; border-radius: 14px; padding: 15px 17px; background: #fcf5ee; }
.dir-reference-icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: #fff; color: #a75d33; font-size: 20px; font-weight: 800; }
.dir-brief-reference strong { color: #24394b; }
.dir-brief-reference p { margin: 2px 0; color: #596e80; font-size: 13px; }
.dir-brief-reference small { color: #778494; line-height: 1.5; }
@media (max-width: 700px) {
  .dir-page-head { align-items: flex-start; gap: 18px; }
  .dir-process-note { width: 100%; justify-content: space-between; }
  .dir-member-info { align-items: flex-start; flex-direction: column; }
  .dir-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .dir-card { min-height: 0; padding: 19px; }
  .dir-card-topline { gap: 6px; }
  .dir-reviewed { gap: 5px; font-size: 11px; }
  .dir-topline-actions { gap: 5px; }
  .dir-interest { gap: 3px; padding-inline: 4px; font-size: 10px; }
  .dir-verified { padding-inline: 7px; font-size: 10px; }
  .dir-card-actions { flex-wrap: wrap; }
  .dir-card-actions > button { flex: 1; }
  .dir-brief-cta { align-items: stretch; flex-direction: column; padding: 21px; }
  .dir-brief-cta .btn { width: 100%; }
  .dir-modal-backdrop { align-items: flex-end; padding: 0; }
  .dir-profile-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .dir-modal-content { padding: 22px 21px 26px; }
  .dir-modal-cover { min-height: 86px; padding-inline: 21px; }
  .dir-modal-actions { flex-direction: column; }
  .dir-modal-actions .btn { width: 100%; }
}

/* ---- Getting-started guide (member home + pending next-steps) ---- */
.gs { margin-bottom: var(--space-5); }
.gs-progress { height: 6px; border-radius: 999px; background: var(--brand-50);
  overflow: hidden; margin: 0 0 var(--space-3); }
.gs-progress > span { display: block; height: 100%; background: var(--brand-600);
  border-radius: 999px; transition: width .4s ease; }
.gs-steps { list-style: none; margin: 0; padding: 0; }
.gs-step { display: flex; gap: var(--space-3); align-items: flex-start; flex-wrap: wrap;
  padding: var(--space-3) 0; border-top: 1px solid var(--line-200); }
.gs-step .grow { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.gs-step.done { color: var(--ink-500); }
.gs-step .btn { flex: none; margin-left: auto; }
.gs-mark { width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; }
.gs-step.done .gs-mark { color: var(--brand-600); }
.gs-mark svg { width: 22px; height: 22px; }
.gs-mark b { width: 100%; height: 100%; border: 1.5px solid var(--line-200); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-2); color: var(--ink-500); font-weight: 600; }

/* ---- Disputes & reviews ---- */
.stars { color: var(--warning-500); letter-spacing: .08em; font-weight: 700; }
.dispute-banner { background: var(--danger-50); border-color: var(--danger-600); }
.dispute-banner h3 { color: var(--danger-600); margin-top: 0; }
.dispute-box summary { cursor: pointer; list-style: none; }
.dispute-box summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .dispute-box summary:hover { color: var(--ink-900); } }
.review-form h4 { margin-top: 0; }

/* ---- Draft save feedback ---- */
.draft-note { font-size: var(--text-1); color: var(--success-600); font-weight: 600;
  opacity: 0; transition: opacity .25s ease; }
.draft-note.show { opacity: 1; }

/* ---- Empty states ---- */
.empty-state { text-align: center; padding: var(--space-7) var(--space-5); color: var(--ink-500);
  border: 1px dashed var(--line-200); border-radius: var(--radius-card); background: var(--surface); }
.empty2 { text-align: center; padding: var(--space-7) var(--space-5);
  border: 1px dashed var(--line-200); border-radius: var(--radius-card); background: var(--surface); }
.empty2 .e-ico { width: 44px; height: 44px; margin: 0 auto var(--space-3); border-radius: var(--radius-card);
  background: var(--brand-50); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center; font-size: var(--text-4); }
.empty2 .e-title { font-size: var(--text-4); font-weight: 700; color: var(--ink-900); margin: 0 0 var(--space-1); }
.empty2 .e-body { font-size: var(--text-2); color: var(--ink-500); margin: 0 auto var(--space-4); max-width: 380px; }

/* ---- Entries editor (experience / education / certifications / case studies / languages) ---- */
.entries .entry-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.entry-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.entry-row input, .entry-row select, .entry-row textarea { flex: 1 1 160px; min-width: 0; }
.entry-row .btn { flex: 0 0 auto; }
/* screening-question boxes: single-line look that grows with the text
   (global textarea min-height: 110px would dwarf the row) */
.sq-input { min-height: 44px; resize: none; }
.entries [data-entry-add], .entries [data-lang-add] { margin-top: var(--space-1); }

/* ---- Case-study portfolio (profile view) ---- */
.case-item { padding: var(--space-3) 0; border-top: 1px solid var(--line-200); }
.case-item:first-of-type { border-top: 0; padding-top: 0; }
.case-item .case-head { display: flex; align-items: center; gap: var(--space-2); }
.case-item p { margin: var(--space-1) 0 0; }

/* ---- Event feed ---- */
.event-feed { font-size: var(--text-2); }
.event-feed li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line-200); list-style: none; display: flex; gap: var(--space-3); }
.event-feed li:last-child { border-bottom: 0; }
.event-feed time { color: var(--ink-500); white-space: nowrap; }

/* ---- Fields & forms ---- */
label { display: block; font-size: var(--text-2); font-weight: 600; margin: var(--space-4) 0 var(--space-1); color: var(--ink-700); }
input[type="text"], input:not([type]), input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-200);
  border-radius: var(--radius-card);
  font-family: inherit; font-size: var(--text-3); background: var(--surface); color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-50); }
/* textareas grow with the text (JS in main.js) — writing never disappears
   behind a scroll wall; overflow hidden only because height tracks content */
textarea { min-height: 110px; resize: vertical; overflow: hidden; }
/* project title: the headline of the brief — larger type, single-line box that
   grows with the text instead of truncating it (founder directive 2026-10-08) */
textarea.title-input {
  min-height: 0; height: auto; resize: none;
  font-size: var(--text-4); line-height: var(--leading-4); font-weight: 600;
  letter-spacing: -.01em; padding: var(--space-3) var(--space-4);
}
.form-note { font-size: var(--text-1); color: var(--ink-500); margin-top: var(--space-1); }
/* .form-row = one full-width field row */
.form-row { display: block; margin-bottom: var(--space-4); }
.form-actions { margin-top: var(--space-5); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.form-row-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-3); }
.form-row-duo label, .form-row-duo input { width: 100%; }

.field { display: block; margin-bottom: var(--space-4); }
.field-label { display: block; font-size: var(--text-2); font-weight: 600; color: var(--ink-900); margin: 0 0 var(--space-2); }
.field-label .req { color: var(--danger-600); font-weight: 700; margin-left: var(--space-1); }
.field-control { display: block; }
.field-hint { font-size: var(--text-1); color: var(--ink-500); margin-top: var(--space-1); line-height: var(--leading-1); }
.field-error { display: none; font-size: var(--text-1); color: var(--danger-600); margin-top: var(--space-1); font-weight: 600; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger-600); }
.field.invalid input:focus, .field.invalid select:focus, .field.invalid textarea:focus {
  outline: 2px solid var(--danger-50); border-color: var(--danger-600);
}

/* deliberate multi-column rows: pair related fields, stack on mobile */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
.form-grid .field.col-span { grid-column: 1 / -1; }

.form-section { border-top: 1px solid var(--line-200); padding-top: var(--space-5); margin-top: var(--space-5); }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section > .sec-title { font-size: var(--text-4); font-weight: 700; letter-spacing: -.01em; margin: 0 0 var(--space-1); }
.form-section > .sec-sub { font-size: var(--text-2); color: var(--ink-500); margin: 0 0 var(--space-4); }

.filter-bar { display: flex; gap: var(--space-3); margin: var(--space-4) 0 var(--space-4); flex-wrap: wrap; }
.filter-bar input, .filter-bar select { padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line-200); border-radius: var(--radius-control);
  font-size: var(--text-2); background: var(--surface); min-width: 160px; width: auto; flex: 0 1 auto; }

/* currency / amount input group */
.amount { position: relative; }
.amount > .cur { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%);
  color: var(--ink-500); font-weight: 600; font-size: var(--text-2); pointer-events: none; }
.amount > input { padding-left: 30px; }

/* password visibility toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 42px; }
.pw-toggle { position: absolute; right: var(--space-2); top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: var(--text-3); line-height: 1;
  padding: var(--space-2); opacity: .6; border-radius: var(--radius-control); }
.pw-toggle:focus-visible { opacity: 1; background: var(--brand-50); outline: none; }
@media (hover: hover) { .pw-toggle:hover { opacity: 1; background: var(--brand-50); } }

/* phone input group: country-code select + national number (forms.js phoneOf) */
.phone-wrap { display: flex; gap: var(--space-2); }
.phone-code { flex: 0 0 auto; width: 118px; padding: var(--space-2) var(--space-2);
  border: 1px solid var(--line-200); border-radius: var(--radius-control);
  font-size: var(--text-2); background: var(--surface); color: var(--ink-900); }
.phone-national { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) { .phone-code { width: 104px; } }

/* drag-drop attachments (attach.js, migration 00024) */
.attach-drop { border: 1.5px dashed var(--line-200); border-radius: var(--radius-control);
  padding: var(--space-4); text-align: center; cursor: pointer; font-size: var(--text-2);
  color: var(--ink-500); background: var(--surface); transition: border-color .15s, background .15s; }
.attach-drop:focus-visible { border-color: var(--brand-500); outline: none; }
@media (hover: hover) { .attach-drop:hover { border-color: var(--brand-500); } }
.attach-drop.over { border-color: var(--brand-500); background: var(--brand-50); color: var(--ink-900); }
.attach-browse { color: var(--brand-600); text-decoration: underline; }
.attach-hint { display: block; margin-top: var(--space-1); font-size: var(--text-1); }
.attach-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.attach-list:empty { margin-top: 0; }
.attach-chip { display: flex; align-items: center; gap: var(--space-2);
  border: 1px solid var(--line-200); border-radius: var(--radius-control);
  padding: var(--space-2) var(--space-3); font-size: var(--text-2); background: var(--surface); }
.attach-chip .attach-name { flex: 1 1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.attach-chip .attach-size { color: var(--ink-500); font-size: var(--text-1); flex: 0 0 auto; }
.attach-chip button { border: none; background: none; cursor: pointer; opacity: .6; font-size: var(--text-3); }
@media (hover: hover) { .attach-chip button:hover { opacity: 1; } }
button.attach-chip { cursor: pointer; width: 100%; color: var(--ink-900); }
@media (hover: hover) { button.attach-chip:hover { border-color: var(--brand-500); background: var(--brand-50); } }
button.attach-chip:disabled { opacity: .5; cursor: wait; }

/* ---- Footer ---- */
/* block padding only — the footer element also carries .container, and a
   padding SHORTHAND here would zero the container's inline gutters (16/32/48
   ladder), rendering footer content flush to the screen edge on phones */
.footer { border-top: 1px solid var(--line-200); margin-top: var(--space-8);
  padding-block: var(--space-6) var(--space-7); color: var(--ink-500); font-size: 16px; } /* 16px body-copy floor (rulebook) */
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--space-5); }
.footer a { color: var(--ink-700); }
.footer strong { color: var(--ink-900); }
.footer .small { font-size: 16px; } /* tagline/legal paragraphs share the 16px floor */
.brand-footer { margin-top: 0; padding-block: 32px 24px; border-top: 0; color: var(--ink-500); }
.footer-brand { max-width: 460px; }
.footer-description { max-width: 44ch; margin: 14px 0 0; line-height: 1.65; color: var(--ink-500); }
.footer-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-200); }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.footer-group strong { margin-bottom: 5px; }
.footer-group a, .footer-group .linklike { color: var(--ink-700); text-align: left; font: inherit; }
.footer-group .linklike { padding: 0; }
.footer-copyright { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line-200); font-size: 14px; }

/* ---- Home cards (member home) ---- */
.home-card { display: flex; gap: var(--space-4); align-items: flex-start; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease; }
@media (hover: hover) { .home-card:hover { border-color: var(--brand-600); transform: translateY(-1px); text-decoration: none; } }
.home-card h3 { margin: 0 0 var(--space-1); font-size: var(--text-4); }
.home-card p { margin: 0; }
.home-card .hc-ico { width: 40px; height: 40px; border-radius: var(--radius-card); background: var(--brand-50);
  color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: var(--text-4); flex: 0 0 auto; }
.home-card .grow { flex: 1; min-width: 0; }
.brief-optional-fields { border-top: 1px solid var(--line-200); margin: var(--space-4) 0; padding-top: var(--space-3); }
.brief-optional-fields summary { min-height: 44px; display: flex; align-items: center; gap: var(--space-2);
  cursor: pointer; font-weight: 650; color: var(--brand-700); }
.brief-optional-fields > p { margin: var(--space-2) 0 var(--space-3); }
.member-home-head { padding: var(--space-5) var(--space-6); border: 1px solid var(--line-200);
  border-radius: var(--radius-card); background: var(--surface); }
.member-home-head .eyebrow { margin: 0 0 var(--space-2); color: var(--brand-700);
  font-size: var(--text-1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.member-home-head .dash-head { margin-bottom: 0; }
.member-home-client .member-home-head { border-top: 4px solid var(--accent-500); }
.member-home-professional .member-home-head { border-top: 4px solid var(--brand-700); }
.home-card-primary { border-color: var(--brand-100); background: var(--brand-50); }
.home-card-primary .hc-ico { background: var(--surface); }
.dir-count { margin-top: var(--space-5) !important; }
.dir-match { margin: 0; color: var(--brand-700); font-size: var(--text-1); font-weight: 650; }
.dir-network-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  flex-wrap: wrap; margin: var(--space-5) 0 var(--space-4); }
.dir-network-head .dir-count { margin: 0 !important; }
.dir-view-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-200);
  border-radius: 999px; background: var(--surface-muted); }
.dir-view-switch [role="tab"] { min-height: 42px; padding: 0 var(--space-4); border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-700); font-weight: 650; cursor: pointer; }
.dir-view-switch [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--brand-700);
  box-shadow: 0 1px 3px rgb(16 37 52 / 12%); }
.dir-view-panel { min-width: 0; }
.dir-filter-row { display: grid; gap: var(--space-3); margin: 0 0 var(--space-5); }
.dir-filter-row input[type="search"] { width: min(100%, 540px); min-height: 46px; }
.dir-filter-skills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dir-skill-chip, .dir-skill-option { min-height: 42px; border: 1px solid var(--line-200); border-radius: var(--radius-pill);
  padding: 0 var(--space-3); background: var(--surface); color: var(--ink-700); cursor: pointer; }
.dir-skill-chip { display: inline-flex; align-items: center; gap: var(--space-2); }
.dir-skill-chip span { color: var(--ink-500); font-size: var(--text-0); }
.dir-skill-chip.is-active, .dir-skill-option[aria-pressed="true"] { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); }
.dir-card-skills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.dir-card-skills .tag { max-width: 100%; overflow-wrap: anywhere; }
.dir-card-skills .dir-expertise-tag { max-width: min(100%, 210px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-result { min-width: 0; }
.dir-no-results { margin: var(--space-5) 0; }
.dir-skill-intro { margin: var(--space-2) 0 var(--space-4); }
.dir-skill-intro h3, .dir-skill-selection h4 { margin: 0 0 var(--space-1); }
.dir-skill-intro p, .dir-skill-selection p { margin: 0; }
.dir-expertise-layout { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.55fr); align-items: start; gap: var(--space-4); }
.dir-expertise-browser { min-width: 0; border: 1px solid var(--line-200); border-radius: var(--radius-card); padding: var(--space-4); background: var(--surface-muted); }
.dir-skill-search { width: 100%; min-height: 46px; margin: 0 0 var(--space-3); }
.dir-skill-map { display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow: auto; padding: 1px 3px 1px 1px; }
.dir-skill-option { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: var(--space-3);
  min-height: 44px; border-radius: 10px; padding-inline: 12px; text-align: left; }
.dir-skill-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-skill-option b { display: grid; place-items: center; flex: 0 0 auto; min-width: 24px; height: 24px; border-radius: 999px; background: var(--surface-muted); color: var(--ink-600); font-size: var(--text-0); }
.dir-skill-option:hover, .dir-skill-option:focus-visible { border-color: var(--brand-400); background: var(--brand-50); }
.dir-skill-option.is-active { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); box-shadow: inset 3px 0 0 var(--accent-500); }
.dir-skill-option.is-active b { background: var(--surface); color: var(--brand-800); }
.dir-skill-no-match { margin: var(--space-3) 0 0; color: var(--ink-500); font-size: var(--text-1); }
.dir-expertise-results { min-width: 0; min-height: 300px; border: 1px solid var(--line-200); border-radius: var(--radius-card); padding: var(--space-5); background: var(--surface); }
.dir-expertise-results.has-selection { border-color: transparent; padding: 0; background: transparent; }
.dir-expertise-start { display: grid; min-height: 260px; align-content: center; justify-items: center; border: 1px dashed var(--line-300); border-radius: var(--radius-card); padding: var(--space-5); background: var(--surface-muted); text-align: center; }
.dir-expertise-start[hidden] { display: none; }
.dir-expertise-kicker { margin-bottom: var(--space-2); color: var(--accent-700); font-size: var(--text-0); font-weight: 800; letter-spacing: .1em; }
.dir-expertise-start h4 { margin: 0 0 var(--space-2); color: var(--ink-900); font-size: var(--text-4); }
.dir-expertise-start p { max-width: 340px; margin: 0; color: var(--ink-500); }
.dir-skill-selection { margin: 0 0 var(--space-4); border-bottom: 1px solid var(--line-200); padding: 0 0 var(--space-3); }
.dir-skill-selection h4 { color: var(--ink-900); font-size: var(--text-4); }
.dir-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px));
  align-items: stretch; gap: var(--space-4); }
@media (max-width: 800px) {
  .dir-network-head { align-items: flex-start; }
  .dir-view-switch { width: 100%; }
  .dir-view-switch [role="tab"] { flex: 1; padding-inline: var(--space-2); }
  .dir-expertise-layout { grid-template-columns: minmax(0, 1fr); }
  .dir-skill-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); max-height: 320px; }
  .dir-expertise-results { min-height: 220px; padding: var(--space-4); }
  .dir-expertise-results.has-selection { padding: 0; }
  .dir-profile-grid { grid-template-columns: minmax(0, 1fr); }
}
.dir-industry-notice { max-width: 720px; padding: var(--space-6); }
.dir-industry-notice h3 { margin-top: 0; }
.dir-empty-state { max-width: 760px; }
.dir-cta { flex: 1 1 100%; }
/* ---- Multi-picker (controlled multi-select chips) ---- */
.multi-picker { display: flex; flex-direction: column; gap: var(--space-3); }
.multi-picker-group { display: flex; flex-direction: column; gap: var(--space-2); }
.multi-picker-options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-pick { border: 1px solid var(--line-200); background: var(--surface);
  color: var(--ink-700); border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3); font-size: var(--text-2); font-weight: 600;
  cursor: pointer; min-height: 44px; font-family: inherit; }
.chip-pick.on { background: var(--brand-50); border-color: var(--brand-600);
  color: var(--brand-700); }
.chip-pick:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
@media (hover: hover) { .chip-pick:hover { border-color: var(--brand-600); } }

/* ---- Inline SVG icon set (lib/icons.js) ---- */
.ic { display: inline-block; vertical-align: middle; flex: none; }
.nav-bell { display: inline-flex; align-items: center; gap: 4px; }
.pw-toggle { display: inline-flex; align-items: center; justify-content: center; }
.attach-chip .attach-name { display: inline-flex; align-items: center; gap: 6px; }
.empty2 .e-ico .ic { color: var(--brand-700); }

/* ---- Directory: collapsed "other practice areas" block ---- */
.dir-other { margin-top: var(--space-5); border-top: 1px solid var(--line-200);
  padding-top: var(--space-4); }
.dir-other > summary { cursor: pointer; font-weight: 600; color: var(--ink-700);
  font-size: var(--text-3); list-style: none; display: flex; align-items: center; gap: var(--space-2); }
.dir-other > summary::-webkit-details-marker { display: none; }
.dir-other > summary::after { content: ''; width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--ink-500); border-bottom: 2px solid var(--ink-500);
  transform: rotate(45deg); transition: transform .2s ease; }
.dir-other[open] > summary::after { transform: rotate(225deg); }
@media (hover: hover) { .dir-other > summary:hover { color: var(--brand-700); } }


/* ---- Key/value summary rows ---- */
.kv { display: flex; gap: var(--space-4); padding: var(--space-2) 0; border-top: 1px solid var(--line-200);
  font-size: var(--text-2); align-items: baseline; }
.kv:first-of-type { border-top: 0; }
.kv-k { flex: 0 0 180px; color: var(--ink-500); }
.kv-v { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---- Milestones & workspace tables ---- */
.ms-row { margin-bottom: var(--space-2); }
.ms-amount-wrap { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.ms-amount-wrap label { min-width: 0; flex: 1; }
.ms-amount-wrap input { min-width: 0; }
.ms-remove { flex: 0 0 auto; }
.totp-setup { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line-200); }
.totp-setup[hidden] { display: none; }
.totp-setup img { display: block; max-width: 100%; height: auto; margin: var(--space-3) 0;
  border: 1px solid var(--line-200); border-radius: var(--radius-card); }
.totp-secret { display: block; max-width: 100%; margin: var(--space-2) 0; padding: var(--space-2);
  overflow-wrap: anywhere; background: var(--paper-100); border-radius: var(--radius-control); }
.totp-setup .field { max-width: 320px; }
.ms-table { width: 100%; border-collapse: collapse; margin: var(--space-2) 0; }
.ms-table td { padding: var(--space-2); border-bottom: 1px solid var(--line-200); }
.ms-table input, .ms-table textarea { font-size: var(--text-2); padding: var(--space-2) var(--space-2); }
.ms-table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ms-total td { font-weight: 700; border-bottom: none; }
.ms-item-head { display: flex; gap: var(--space-3); align-items: flex-start; }
.ms-num { width: 28px; height: 28px; border-radius: var(--radius-control);
  background: var(--brand-50); color: var(--brand-700);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: var(--text-2); flex: 0 0 auto; }
.ms-item-title { flex: 1; min-width: 0; }
.ms-item-title h4 { margin: 0; font-size: var(--text-3); }
.ms-item-side { display: flex; align-items: center; gap: var(--space-3); flex: 0 0 auto; }
.subs { margin-top: var(--space-1); }
.sub-row { display: flex; gap: var(--space-3); align-items: baseline; padding: var(--space-2) 0;
  border-top: 1px solid var(--line-200); font-size: var(--text-2); }
.sub-row .grow { flex: 1; min-width: 0; }

/* ---- Nav badge (unread counts) ---- */
.nav-badge {
  display: inline-block; background: var(--accent-500); color: var(--surface);
  border-radius: var(--radius-pill);
  font-size: var(--text-1); font-weight: 700; padding: 1px var(--space-2);
  margin-left: var(--space-1); vertical-align: middle;
}

/* ---- Notifications ---- */
.note-item { display: flex; align-items: center; gap: var(--space-4); }
.note-item .grow { flex: 1; min-width: 0; }
.note-unread { border-left: 3px solid var(--brand-600); }
.note-actions { display: flex; gap: var(--space-2); flex: 0 0 auto; }

/* ---- Org mini row (profile + settings company cards) ---- */
.org-mini { display: flex; align-items: center; gap: var(--space-3); }
.org-mini .grow { flex: 1; min-width: 0; }
.member-cell { display: flex; align-items: center; gap: var(--space-3); }

/* ---- Pills (professional review status) ---- */
.pill {
  display: inline-block; border-radius: var(--radius-pill); padding: 3px var(--space-3);
  font-size: var(--text-1); font-weight: 700; letter-spacing: .01em;
  background: var(--neutral-50); color: var(--ink-700);
}
.pill-pending { background: var(--warning-50); color: var(--warning-700); }
.pill-approved { background: var(--success-50); color: var(--success-600); }
.pill-rejected, .pill-suspended { background: var(--danger-50); color: var(--danger-600); }

.pill-tag { display: inline-block; font-size: var(--text-1); font-weight: 600; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill); background: var(--brand-50); color: var(--brand-700); margin: var(--space-1) var(--space-2) 0 0; }
.pills-row { margin: var(--space-2) 0; }

/* ---- Pipeline stepper ---- */
.pipe { display: flex; align-items: center; gap: 0; margin: var(--space-3) 0; flex-wrap: wrap; }
.pipe-step { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); min-width: 86px; }
.pipe-dot {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-1); font-weight: 700; background: var(--paper-100); color: var(--ink-500);
  border: 2px solid transparent;
}
.pipe-label { font-size: var(--text-1); color: var(--ink-500); text-align: center; }
.pipe-step.done .pipe-dot { background: var(--success-600); color: var(--surface); }
.pipe-step.done .pipe-label { color: var(--success-600); font-weight: 600; }
.pipe-step.current .pipe-dot { background: var(--brand-600); color: var(--surface); box-shadow: 0 0 0 var(--space-1) var(--brand-50); }
.pipe-step.current .pipe-label { color: var(--brand-600); font-weight: 700; }
.pipe-step.term .pipe-dot { background: var(--danger-50); color: var(--danger-600); }
.pipe-link { flex: 1; min-width: 18px; height: 2px; background: var(--line-200); margin: 0 var(--space-1) var(--space-4); }
.pipe-step.done + .pipe-link, .pipe-link.done { background: var(--success-600); }
.pipe-rejected { color: var(--danger-600); font-weight: 600; font-size: var(--text-2); }
.pipe-card { display: block; }
.pipe-card .pc-title a, .dash-proj .pc-title a { color: inherit; text-decoration: none; }
@media (hover: hover) { .pipe-card .pc-title a:hover, .dash-proj .pc-title a:hover { color: var(--brand-700); text-decoration: underline; } }

/* ---- Profile header ---- */
.profile-head { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.profile-head .grow { flex: 1; min-width: 220px; }

/* ---- Progress bars ---- */
.progress-track { height: var(--space-2); background: var(--line-200); border-radius: var(--radius-pill);
  overflow: hidden; margin: var(--space-4) 0 var(--space-2); }
.progress-fill { height: 100%; background: var(--brand-600); border-radius: var(--radius-pill); transition: width .4s ease; }
.revision-note { background: var(--warning-50); padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); }

/* ---- Workspace premium (v0.2d): waiting-on line, version feedback, reschedule ---- */
.waiting-line { margin: var(--space-2) 0 0; font-size: var(--text-2); color: var(--brand-700); font-weight: 600; }
.ver-fb { display: block; margin-top: var(--space-1); color: var(--ink-500); }
.due-form { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; margin-top: var(--space-2); }
.due-form input { font-size: var(--text-2); padding: var(--space-2); }
.due-form input[name="due_nl"] { flex: 1; min-width: 200px; }

/* ---- Today / Waiting-on spine (dashboard + pipeline) ---- */
.today-list { margin: 0; padding: 0; list-style: none; }
.today-list li { display: flex; gap: var(--space-2); align-items: baseline; padding: var(--space-2) 0;
  border-top: 1px solid var(--line-200); font-size: var(--text-2); }
.today-list li:first-child { border-top: 0; }
.today-list .grow { flex: 1; min-width: 0; }
.today-kind { flex: 0 0 auto; color: var(--ink-500); font-size: var(--text-1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; }

/* ---- Project cards (lists, discovery, dashboard) ---- */
.proj-card2 {
  display: block; background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-4); color: var(--ink-900);
  transition: border-color .12s ease, transform .12s ease;
}
@media (hover: hover) { .proj-card2:hover { border-color: var(--brand-600); text-decoration: none; transform: translateY(-1px); } }
.proj-card2 .pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.proj-card2 .pc-title { font-size: var(--text-4); font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: var(--leading-4); }
.proj-card2 .pc-desc { color: var(--ink-700); font-size: var(--text-2); margin: var(--space-2) 0 var(--space-3); line-height: var(--leading-2); }
.proj-card2 .pc-skills { margin: 0 0 var(--space-3); }
.proj-card2 .pc-foot { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--text-2); color: var(--ink-500); border-top: 1px solid var(--line-200); padding-top: var(--space-3); }
.proj-card2 .pc-budget { font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-weight: 600; color: var(--ink-900); font-size: var(--text-2); }
.proj-card2 .pc-cta { margin-left: auto; color: var(--brand-700); font-weight: 600; white-space: nowrap; }
@media (hover: hover) { .proj-card2:hover .pc-cta { text-decoration: underline; } }
.card-meta { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-2); }
.prop-item { border-top: 1px solid var(--line-200); padding-top: var(--space-4); margin-top: var(--space-4); }

/* ---- Quote comparison (client dashboard, v0.2c) ----
   Side-by-side quote cards: equal height via grid stretch, actions pinned to
   the card bottom so the decision row aligns. Price & timeline carry the
   visual hierarchy (mono, display scale); everything else is quiet. Tokens
   only — the accepted state reuses the success pair, "not selected" settles
   to the paper fill. No shadows, hairline borders (canon §2). */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4); margin-top: var(--space-3); align-items: stretch; }
.quote-card { display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line-200); border-radius: var(--radius-card); padding: var(--space-4); }
.quote-card .quote-head { display: flex; align-items: center; gap: var(--space-3); }
.quote-card .quote-head .grow { flex: 1; min-width: 0; }
.quote-card .quote-head h4 { margin: 0; font-size: var(--text-3); }
.quote-terms { display: flex; gap: var(--space-6); margin: var(--space-3) 0; }
.quote-terms .qt { display: flex; flex-direction: column; gap: 2px; }
.quote-terms .qt-v { font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: var(--text-5); font-weight: 700; color: var(--ink-900); line-height: 1.1; }
.quote-terms .qt-k { font-size: var(--text-1); color: var(--ink-500); }
.quote-evidence { display: flex; align-items: center; gap: var(--space-2) var(--space-3); flex-wrap: wrap;
  font-size: var(--text-2); color: var(--ink-700); margin: 0 0 var(--space-2); }
.quote-ms { font-size: var(--text-2); color: var(--ink-700); margin: 0 0 var(--space-2); }
.quote-approach { font-size: var(--text-2); color: var(--ink-700); margin: 0 0 var(--space-2);
  line-height: var(--leading-2); }
.quote-next-step { font-size: var(--text-1); color: var(--ink-600); margin: 0 0 var(--space-2);
  line-height: var(--leading-2); }
.quote-qa { border-top: 1px solid var(--line-200); padding-top: var(--space-2); margin-top: var(--space-2); }
.quote-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  margin-top: auto; padding-top: var(--space-3); }
.quote-card.is-accepted { border-color: var(--success-600); background: var(--success-50); }
.quote-card.is-passed { background: var(--paper-100); }
.quote-card.is-passed .quote-terms .qt-v { color: var(--ink-500); }
.quote-passed-note { font-size: var(--text-2); color: var(--ink-500); }
.quote-withdrawn { font-size: var(--text-2); color: var(--ink-500);
  border-top: 1px solid var(--line-200); padding-top: var(--space-2); margin-top: var(--space-3); }

/* ---- Match rationale (v0.2e): rule-based evidence bullets on quote cards.
   Facts carry a quiet ✓; gaps a warning-toned dash — both muted, neither is
   a score. Provenance caption states the data source (trust contract §5). ---- */
.rationale { border-top: 1px solid var(--line-200); padding-top: var(--space-2); margin: 0 0 var(--space-2); }
.rationale-list { margin: 0; padding: 0; list-style: none; font-size: var(--text-2); }
.rationale-list li { position: relative; padding: 2px 0 2px var(--space-4); color: var(--ink-700); }
.rationale-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success-600); }
.rationale-list li.is-gap { color: var(--ink-500); }
.rationale-list li.is-gap::before { content: '–'; color: var(--warning-700); }
.rationale-src { margin: var(--space-1) 0 0; font-size: var(--text-1); color: var(--ink-500); }

/* ---- Workspace status panel + stalling flags (v0.2e). Chips reuse the
   badge geometry with the warning pair: muted caution, never alarm. ---- */
.status-glance .sec-head h3 { margin-bottom: var(--space-1); }
.flag-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
.flag-chip { display: inline-flex; align-items: center; border-radius: var(--radius-pill);
  padding: 3px var(--space-3); font-size: var(--text-1); font-weight: 600;
  background: var(--warning-50); color: var(--warning-700); }
.flag-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  margin-right: var(--space-2); flex: 0 0 auto; }

/* ---- Review summary (publish / submit confirmation) ---- */
.review-box { border: 1px solid var(--line-200); border-radius: var(--radius-card);
  background: var(--paper-50); padding: var(--space-4) var(--space-5); }
.review-box .rv-title { font-size: var(--text-3); font-weight: 700; margin: 0 0 var(--space-2); }
.review-box .rv-row { display: flex; gap: var(--space-3); font-size: var(--text-2);
  padding: var(--space-2) 0; border-top: 1px solid var(--line-200); }
.review-box .rv-row:first-of-type { border-top: 0; }
.review-box .rv-k { flex: 0 0 132px; color: var(--ink-500); font-size: var(--text-2); font-weight: 600; }
.review-box .rv-v { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---- Segmented control (work mode etc.) ---- */
.segmented { display: inline-flex; background: var(--paper-100); border: 1px solid var(--line-200);
  border-radius: var(--radius-card); padding: var(--space-1); gap: var(--space-1); }
.segmented button {
  border: 0; background: transparent; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-control); font: inherit;
  font-size: var(--text-2); font-weight: 600; color: var(--ink-700); cursor: pointer; min-height: 38px;
}
@media (hover: hover) { .segmented button:hover { color: var(--ink-900); } }
.segmented button.on { background: var(--surface); color: var(--ink-900); box-shadow: 0 1px 2px rgba(16, 30, 43, .10); }
.segmented button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

/* ---- Settings shell: side nav + body ---- */
.set-shell { display: grid; grid-template-columns: 210px 1fr; gap: var(--space-5); align-items: start; }
.set-nav { display: flex; flex-direction: column; gap: var(--space-1); position: sticky; top: 76px; }
.set-nav a { padding: var(--space-2) var(--space-3); border-radius: var(--radius-control);
  font-size: var(--text-2); color: var(--ink-900); text-decoration: none; }
@media (hover: hover) { .set-nav a:hover { background: var(--brand-50); } }
.set-nav a.on { background: var(--brand-50); font-weight: 600; color: var(--brand-700); }
.set-body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }

/* ---- Skeleton loading ---- */
.sk { position: relative; overflow: hidden; background: var(--paper-100); border-radius: var(--radius-control); min-height: var(--space-4); }
.sk::after {
  content: ''; position: absolute; inset: 0;
  /* functional shimmer animation — not a decorative gradient */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: sk-shine 1.3s infinite;
}
@keyframes sk-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sk-card { background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--radius-card); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-4); }
.sk-card .sk { margin-bottom: var(--space-3); }
.sk-card .sk:last-child { margin-bottom: 0; }

/* ---- Stat grid (admin metrics) ---- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.stat-grid.ws-stats { grid-template-columns: repeat(4, 1fr); }
.stat-box { background: var(--paper-50); border: 1px solid var(--line-200);
  border-radius: var(--radius-control); padding: var(--space-3); text-align: center; }
.stat-box .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: var(--text-5); font-weight: 600; letter-spacing: -.02em; }
.stat-box .lbl { font-size: var(--text-1); color: var(--ink-500); }

/* ---- Steps (numbered how-to) ---- */
.steps { counter-reset: step; }
.step { display: flex; gap: var(--space-4); margin-bottom: var(--space-5); }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: var(--text-2);
}

/* ---- Switch (settings toggles) ---- */
.switch-row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) 0;
  border-top: 1px solid var(--line-200); cursor: pointer; }
.switch-row:first-of-type { border-top: 0; }
.switch-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.switch-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { flex: 0 0 auto; width: 42px; height: 24px; border-radius: var(--radius-pill);
  background: var(--line-200); position: relative; transition: background .15s ease; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px;
  height: 18px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px rgba(16, 30, 43, .25); transition: transform .15s ease; }
.switch-row input:checked + .switch { background: var(--brand-600); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---- Tables ---- */
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-2);
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--radius-card); overflow: hidden; }
table.data th, table.data td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--line-200); vertical-align: top; }
table.data th { background: var(--paper-100); font-size: var(--text-1);
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); }
table.data tr:last-child td { border-bottom: 0; }
/* scoped any-break for cells whose whole job is one long unbroken token
   (UUIDs, URLs) — never blanket-apply to table cells (audit-app P0) */
.cell-any { overflow-wrap: anywhere; }

/* ---- Tags ---- */
.tag {
  display: inline-block; border: 1px solid var(--line-200); border-radius: var(--radius-control);
  padding: 2px var(--space-2); font-size: var(--text-1); color: var(--ink-700);
  background: var(--paper-50); margin: 2px var(--space-1) 2px 0;
}

/* ---- Toast (floating) ---- */
.toast {
  position: fixed; bottom: calc(var(--space-5) + env(safe-area-inset-bottom)); /* 24px + home-indicator inset */
  left: 50%; transform: translateX(-50%);
  background: var(--ink-900); color: var(--surface); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  font-size: var(--text-2); box-shadow: var(--shadow-float); z-index: 100; max-width: 90vw;
}

/* ---- Top navigation ---- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, .92); /* paper-50 at 92% for the blur layer */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-200);
}
/* topnav inline gutters follow the shared container ladder (16/32/48) and
   add the device safe-area insets; block padding tightens on phones */
.topnav-inner { max-width: var(--content-max); margin: 0 auto;
  padding: var(--space-2) calc(var(--space-4) + env(safe-area-inset-right)) var(--space-2) calc(var(--space-4) + env(safe-area-inset-left));
  display: flex; align-items: center; gap: var(--space-3); }
@media (min-width: 640px) { .topnav-inner {
  padding: var(--space-4) calc(var(--space-6) + env(safe-area-inset-right)) var(--space-4) calc(var(--space-6) + env(safe-area-inset-left));
  gap: var(--space-5); } }
@media (min-width: 1024px) { .topnav-inner {
  padding-inline: calc(var(--space-7) + env(safe-area-inset-right)) calc(var(--space-7) + env(safe-area-inset-left)); } }
.nav-links { display: flex; gap: var(--space-4); flex: 1; flex-wrap: wrap; }
.nav-links a { color: var(--ink-700); font-size: var(--text-2); }
.nav-links a.active { color: var(--ink-900); text-decoration: none; font-weight: 600; }
@media (hover: hover) { .nav-links a:hover { color: var(--ink-900); text-decoration: none; } }
.nav-actions { display: flex; gap: var(--space-3); align-items: center; }
/* guest state: actions sit flush right at every width (#nav-links is empty),
   and on desktop the wide row shows Ask Seekra / Log in while the phone
   drawer list stays hidden — the same #nav-links element serves both */
.nav-actions-guest { margin-left: auto; }
.nav-guest-wide { display: contents; }
@media (min-width: 1024px) { .nav-links-guest { display: none; } }
.nav-burger { display: none; background: none; border: 1px solid var(--line-200);
  border-radius: var(--radius-control); font-size: var(--text-4); line-height: 1;
  padding: var(--space-2) var(--space-3); cursor: pointer; color: var(--ink-900); }
.nav-email-m { display: none; }

/* ---- Wizard step indicator ---- */
.wiz { display: flex; align-items: flex-start; gap: 0; margin: var(--space-4) 0 var(--space-6); }
.wiz-step { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); min-width: 88px; flex: 0 0 auto; }
.wiz-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-2); font-weight: 700; background: var(--paper-100); color: var(--ink-500);
  border: 2px solid transparent; transition: background .15s ease;
}
.wiz-label { font-size: var(--text-1); color: var(--ink-500); text-align: center; font-weight: 600; }
.wiz-link { flex: 1; min-width: 16px; height: 2px; background: var(--line-200); margin: var(--space-4) var(--space-1) 0; }
.wiz-step.active .wiz-dot { background: var(--brand-600); color: var(--surface); box-shadow: 0 0 0 var(--space-1) var(--brand-50); }
.wiz-step.active .wiz-label { color: var(--brand-600); }
.wiz-step.done .wiz-dot { background: var(--success-600); color: var(--surface); }
.wiz-step.done .wiz-label { color: var(--success-600); }
.wiz-step.done + .wiz-link, .wiz-link.done { background: var(--success-600); }

/* ==========================================================================
   6. PAGE-SPECIFIC
   ========================================================================== */

/* ==========================================================================
   LANDING — SHARED + BASE (mobile-first: phone 320–639, rules cascade up)
   Visitor front page, "The Pathway". One sight-line runs the full page —
   hero to the final CTA — with a stop per idea, ending where the line
   resolves into the Sight mark. Tokens only; hairlines over shadows;
   terracotta stays minimal (CTAs, the line, the two seals). Every
   interactive element works with mouse, touch and keyboard; entrances play
   once and honor prefers-reduced-motion.

   Breakpoint ladder (founder rulebook — min-width queries only):
     base             phone 320–639
     min-width:640    tablet 640–1023  → LANDING — TABLET block below
     min-width:1024   laptop/desktop   → LANDING — DESKTOP block below
     min-width:1440   desktop wide     → container steps to 1280 (§9)

   BASE RAIL MODEL (320–1023): a 32px column starting AT THE SCREEN EDGE.
   .pw escapes the .container's side padding on both sides and re-applies
   it on the RIGHT only — the rail column replaces the left page gutter
   (left padding 0, right padding 16 phone / 32 tablet). The JS engine
   draws the line EXACTLY vertical (amp 0), 2px wide, centered at x=16;
   stop markers center on it; content shares one left edge at x=44
   (32 rail + 12 gap). Desktop (≥1024) keeps the v0.3.3 rail-and-wave
   model — overrides live in the LANDING — DESKTOP block; never edit
   desktop rules here or base rules there.
   ========================================================================== */

.hero-cta { display: flex; gap: var(--space-4); margin-top: var(--space-6); flex-wrap: wrap; }

.pw { position: relative; overflow: clip; --pw-rail: 32px;
  margin-inline: calc(-1 * var(--space-4)); padding-right: var(--space-4); }
.pw section { position: relative; z-index: 1; }
/* every content block insets past the rail + the 12px marker gap — one
   shared left edge at x=44 from the screen edge */
.pw-rail-in { padding-left: calc(var(--pw-rail) + 12px); }
.pw-anchor { position: absolute; width: 2px; height: 2px; }
/* absolute anchors sit in sections whose left edge IS the screen edge:
   left: 15px puts the 2px box's center on the line at x=16 */
.pw-anchor-rail { left: 15px; bottom: var(--space-5); }
.pw-anchor-way { left: 15px; top: 50%; }
.pw-stop-in { display: grid; grid-template-columns: var(--pw-rail) minmax(0, 1fr);
  column-gap: 12px; }
.pw-stop-in > .pw-anchor { position: relative; left: auto; justify-self: center;
  align-self: start; margin-top: var(--space-2); }
/* the final Sight ring floats just above the "Work with…" headline — the
   rail line follows the anchor and connects into it */
.pw-stop-in > .pw-anchor-end { margin-top: var(--space-5); }

/* the line — drawn above band backgrounds (z-index 2). Base/tablet: an
   EXACTLY vertical 2px track at x=16 (JS amp 0); ≥1024 widens to 2.2 and
   waves inside the rail gutter, so it never crosses content */
.pw-vg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  pointer-events: none; overflow: visible; }
.pw-track { fill: none; stroke: var(--line-200); stroke-width: 2; }
.pw-fill { fill: none; stroke: var(--accent-500); stroke-width: 2.6; stroke-linecap: round; }
.pw-cap circle { fill: var(--accent-500); }
.pw-node .ring { fill: var(--paper-50); stroke: var(--ink-900); stroke-width: 2.4; }
.pw-node .pupil, .pw-end .pupil { fill: var(--accent-500); transform: scale(0);
  transform-box: fill-box; transform-origin: center;
  transition: transform .45s cubic-bezier(.2, 1.1, .3, 1); }
.pw-node.on .pupil { transform: scale(1); }
.pw-end .ring { fill: var(--paper-50); stroke: var(--ink-900); stroke-width: 3; }
.pw-end.lit .pupil { transform: scale(1); }
.pw-still .pw-node .pupil, .pw-still .pw-end .pupil { transform: scale(1); transition: none; }
.pw-still .pw-fill { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }

/* one section rhythm for the whole landing (rulebook: fluid 48→128) */
.pw-hero, .pw-stop, .pw-band, .pw-founder, .pw-final {
  padding-block: clamp(var(--space-7), 8vw, 128px); } /* 128px cap: rulebook scale step, no token */
/* nowrap: the spec'd type (12px/700/.16em) is 253px — 3px wider than the
   320px rail column (260) even at zero inline padding, so wrapping must be
   disabled; the pill rides ~3px into the 16px right gutter at 320 only,
   fully on-canvas, never clipped, never scrollable */
.pw-chip { display: inline-block; background: var(--surface); color: var(--brand-700);
  border: 1px solid var(--brand-100); border-radius: var(--radius-pill);
  padding: var(--space-1); font-size: var(--text-1); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; white-space: nowrap;
  margin: 0 0 var(--space-5); }
.pw-eyebrow { display: flex; align-items: center; gap: var(--space-2);
  margin: 0 0 var(--space-4); text-transform: uppercase; letter-spacing: .16em;
  font-size: var(--text-1); line-height: var(--leading-1); font-weight: 700;
  color: var(--accent-600); }
.pw-enum { font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-weight: 500; color: var(--ink-500); letter-spacing: 0; transition: color .3s ease; }
.pw-stop.on .pw-enum { color: var(--accent-600); }
/* base h1 keeps the v0.3.1 phone tuning: no 16ch cap, sized so each of its
   two lines holds its full phrase instead of wrapping mid-thought */
.pw-h1 { font-size: clamp(var(--text-4), 6.9vw, var(--text-5)); line-height: 1.12;
  max-width: none; margin: 0; }
.pw-h1-line { display: block; }
.pw-sub { margin: var(--space-5) 0 0; max-width: 34rem; }
.pw-hero-layout { display: grid; gap: var(--space-6); }
.pw-hero-copy { min-width: 0; }
.pw-hero-preview { min-width: 0; max-width: 38rem; padding: var(--space-4);
  background: var(--paper-50); border: 1px solid var(--line-200);
  border-radius: var(--radius-card); }
.pw-preview-top, .pw-preview-shortlist-head { display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-3); }
.pw-preview-kicker, .pw-preview-label { color: var(--ink-500); font-size: var(--text-1);
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pw-preview-status { display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--brand-700); font-size: var(--text-1); font-weight: 600; }
.pw-preview-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-500); }
.pw-preview-brief { margin-top: var(--space-4); padding: var(--space-4);
  background: var(--paper-100); border: 1px solid var(--line-200); border-radius: var(--radius-control); }
.pw-preview-brief h2 { margin: var(--space-2) 0; font-size: var(--text-4); }
.pw-preview-brief p { margin: 0; color: var(--ink-700); font-size: var(--text-2); }
.pw-preview-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.pw-preview-tags span { padding: var(--space-1) var(--space-2); color: var(--ink-700);
  background: var(--paper-50); border: 1px solid var(--line-200); border-radius: var(--radius-pill);
  font-size: var(--text-1); }
.pw-preview-shortlist { margin-top: var(--space-4); }
.pw-preview-shortlist-head { padding-bottom: var(--space-2); border-bottom: 1px solid var(--line-200);
  color: var(--ink-900); font-size: var(--text-2); }
.pw-preview-shortlist-head span { color: var(--ink-500); font-weight: 400; }
.pw-preview-person { display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) 0; border-bottom: 1px solid var(--line-200); }
.pw-preview-person > span:nth-child(2) { min-width: 0; display: grid; }
.pw-preview-person b { color: var(--ink-900); font-size: var(--text-2); font-weight: 600; }
.pw-preview-person small { color: var(--ink-500); font-size: var(--text-1); }
.pw-preview-check { display: inline-flex; align-items: center; gap: 3px; margin-left: auto;
  color: var(--accent-600); font-size: var(--text-1); font-weight: 600; white-space: nowrap; }
.pw-preview-check svg { width: 13px; height: 13px; flex: none; }
/* the 21px lead reads zoomed inside a phone-width column — body size at base */
.pw .lead { font-size: var(--text-3); line-height: var(--leading-3); }
/* stats — base: a 2×2 grid, never 3 ragged rows; the locked one-row flex
   treatment is a ≥1024 desktop rule (see LANDING — DESKTOP) */
.pw-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-7); padding-top: var(--space-6);
  border-top: 1px solid var(--line-200); max-width: 560px; }
.pw-stat { min-width: 0; }
.pw-stat strong { display: block; font-family: var(--font-mono);
  font-variant-numeric: tabular-nums; font-weight: 500; font-size: var(--text-5);
  color: var(--ink-900); letter-spacing: -.02em; }
.pw-stat .pw-stat-phrase { font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-4); line-height: var(--leading-3);
  padding-top: var(--space-1); letter-spacing: -.01em; }
.pw-stat span { display: block; margin-top: var(--space-1); font-size: var(--text-2);
  line-height: var(--leading-2); color: var(--ink-500); max-width: 20ch; }

/* stops — copy above one explanatory card at base (static mocks, no
   gimmicks); the copy|card two-column layout is desktop-only (≥1024) */
.pw-stop-body { display: grid; gap: var(--space-6); align-items: center; }
.pw-stop h2, .pw-band h2, .pw-founder h2, .pw-final h2 {
  font-size: clamp(var(--text-5), 4.4vw, var(--text-6)); }
.pw-stop .lead { margin: var(--space-4) 0 0; max-width: 30rem; }
.pw-card h3 { margin-top: 0; }
.pw-card-note { margin: 0; color: var(--ink-700); font-size: 16px; } /* 16px body-copy floor (rulebook) */
.pw-chips { display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin: var(--space-4) 0; }
.pw-chips b { font-size: var(--text-2); font-weight: 600; color: var(--ink-900);
  background: var(--paper-50); border: 1px solid var(--line-200);
  border-radius: var(--radius-pill); padding: var(--space-2) var(--space-4); }

/* detail rows (the review, the invoice) */
.pw-rows { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.pw-rows li { display: flex; gap: var(--space-4); align-items: baseline;
  padding: var(--space-2) 0; border-top: 1px dashed var(--line-200);
  font-size: 16px; line-height: var(--leading-2); color: var(--ink-700); } /* 16px body-copy floor */
.pw-rows li:first-child { border-top: 0; }
.pw-rows b { color: var(--ink-900); font-weight: 600; min-width: 86px; flex: none; }

/* the seals — one outlined-pill family, two restrained variants: muted
   terracotta for SEEKRA REVIEWED, ink with a terracotta check for PAID ON
   APPROVAL. Hidden until scrolled into view (JS adds .is-in once, 300ms). */
.pw-seal { display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-5); border: 1.5px solid var(--accent-500);
  border-radius: var(--radius-pill); padding: var(--space-2) var(--space-4);
  color: var(--accent-600); background: transparent;
  font-size: var(--text-1); line-height: var(--leading-1); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: scale(.94);
  transition: opacity .3s ease-out, transform .3s ease-out; }
.pw-seal.is-in { opacity: 1; transform: none; }
.pw-seal svg { width: 14px; height: 14px; flex: none; }
.pw-seal--ink { border-color: var(--ink-700); color: var(--ink-900); }
.pw-seal-mark { stroke: var(--accent-500); }

/* shortlist — three structured mini proposals, shown the way a client really
   compares them: identity + reviewed tick, rate chip, one approach line,
   milestone meta. Static ILLUSTRATION (aria-hidden), not interactive: its
   mock text is image content, not body copy — the rulebook's 16px floor
   does not apply inside the illustration (12–14px stays). */
.pw-props { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.pw-prop { background: var(--paper-50); border: 1px solid var(--line-200);
  border-radius: var(--radius-card); padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2); }
.pw-prop-head { display: flex; align-items: flex-start; gap: var(--space-2);
  flex-wrap: wrap; }
.pw-prop-id { min-width: 0; flex: 1 1 auto; }
.pw-prop-id b { display: flex; align-items: center; gap: var(--space-1);
  flex-wrap: wrap; font-size: var(--text-2); font-weight: 600; color: var(--ink-900); }
.pw-prop-craft { display: block; font-size: var(--text-1); color: var(--ink-500); }
.pw-prop-rev { display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--text-1); font-weight: 600; color: var(--accent-600); }
.pw-prop-rev svg { width: 11px; height: 11px; flex: none; }
/* margin-left 0 at base: the rate chip flows tight after the name — never
   floats right into dead space when the header wraps (founder-visible on
   "€4,800 fixed" at 360px); desktop restores auto (LANDING — DESKTOP) */
.pw-prop-rate { margin-left: 0; flex: none; font-family: var(--font-mono);
  font-variant-numeric: tabular-nums; font-size: var(--text-1); color: var(--ink-900);
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--radius-pill); padding: var(--space-1) var(--space-2);
  max-width: 100%; text-align: right; } /* wraps inside the pill before ever overflowing the card */
.pw-prop-line { margin: 0; font-size: var(--text-2); line-height: var(--leading-2);
  color: var(--ink-700); overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pw-prop-meta { margin-top: auto; padding-top: var(--space-2);
  border-top: 1px dashed var(--line-200); font-size: var(--text-2); color: var(--ink-500); }
.pw-cap { margin: var(--space-4) 0 0; font-size: 16px; color: var(--ink-700); } /* 16px body-copy floor */

/* workspace — a static mock with real status states, not a toy */
.pw-ws-head { display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); padding-bottom: var(--space-4); margin-bottom: var(--space-1);
  border-bottom: 1px solid var(--line-200); }
.pw-ws-title { font-weight: 600; color: var(--ink-900); font-size: var(--text-2); }
.pw-ws-ms { list-style: none; margin: 0; padding: 0; }
.pw-ws-ms li { display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--space-2) var(--space-4); padding: var(--space-4) 0;
  border-top: 1px dashed var(--line-200); font-size: var(--text-2); color: var(--ink-700); }
.pw-ws-ms li:first-child { border-top: 0; }
.pw-ws-ms .badge { margin-left: auto; }
.pw-ws-ico { flex: none; width: 18px; height: 18px; color: var(--ink-500); }
.pw-ws-ico.done { color: var(--accent-500); }
.pw-ws-ico.running { color: var(--brand-600); }
.pw-ws-files { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  margin-top: var(--space-1); padding-top: var(--space-4);
  border-top: 1px solid var(--line-200); }
.pw-ws-file { display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-mono); font-size: var(--text-1); color: var(--ink-700);
  background: var(--paper-50); border: 1px solid var(--line-200);
  border-radius: var(--radius-control); padding: var(--space-1) var(--space-2); }
.pw-ws-file svg { width: 13px; height: 13px; }

/* bands (fees / faq) — the line keeps running, drawn over the alt paper.
   The band background bleeds to BOTH screen edges on phone/tablet: .pw
   re-applied the container's right gutter as its own padding, so the band
   escapes it (margin-right) and re-applies it to itself — content keeps
   the gutter, the fill reaches the edge. */
.pw-band { background: var(--paper-100); border-block: 1px solid var(--line-200);
  margin-right: calc(-1 * var(--space-4)); padding-right: var(--space-4); }
.pw-fees { display: grid; gap: var(--space-6); margin-top: var(--space-5); max-width: 56rem; }
.pw-fee-col { border-top: 2px solid var(--brand-600); padding-top: var(--space-4); }
.pw-fee-col h3 { margin: 0 0 var(--space-4); }
.pw-fee-col p { margin: 0 0 var(--space-2); color: var(--ink-700); }
.pw-fee-col p strong { color: var(--ink-900); }

/* founder — the human promise. 48ch ≈ 66 real chars at 17px Public Sans —
   the rulebook's 70-chars/line cap measured on screen (65ch ≈ 94 chars). */
.pw-founder-copy { color: var(--ink-700); max-width: 48ch;
  margin: 0 0 var(--space-5); }

/* faq — native disclosure, no JS. Summary rows are ≥44px touch targets at
   base (28px line + 2×8px padding); ≥1024 relaxes to pointer density. */
.pw-faq { max-width: 48ch; margin-top: var(--space-5); }
.pw-faq details { border-top: 1px solid var(--line-200); padding: var(--space-4) 0; }
.pw-faq details:last-child { border-bottom: 1px solid var(--line-200); }
.pw-faq summary { cursor: pointer; font-weight: 600; color: var(--ink-900);
  padding-block: var(--space-2); }
.pw-faq details p { margin: var(--space-4) 0 0; color: var(--ink-700); }

/* final CTA — the line resolves into the Sight mark at the rail anchor */
.pw-micros { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6);
  margin-top: var(--space-5); }
.pw-micros span { font-size: var(--text-1); color: var(--ink-500); }

/* scroll-reveal (Stage 3, research §C4) — one calm entrance per element:
   opacity + translateY(16px)→0, ease-out, plays once (JS unobserves on first
   hit), siblings staggered 60ms via transition-delay (≤80ms cap). Initial
   state is applied by JS only — no-JS and reduced-motion render normally. */
.fp-rv { opacity: 0; transform: translateY(var(--space-4));
  transition: opacity .38s ease-out, transform .38s ease-out; }
.fp-rv.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   LANDING — TABLET (min-width:640, up to 1023)
   Same edge-rail geometry as phone (32px column, EXACTLY vertical 2px line
   at x=16, shared x=44 content edge); only the gutter steps to 32px, the
   type scale opens up, stats leave the 2×2 grid for a wrapping row, and
   single-column stop cards cap at 640px so lines never run long.
   ========================================================================== */
@media (min-width: 640px) {
  .pw { margin-inline: calc(-1 * var(--space-6)); padding-right: var(--space-6); }
  .pw-band { margin-right: calc(-1 * var(--space-6)); padding-right: var(--space-6); }
  .pw-h1 { font-size: clamp(var(--text-5), 7vw, var(--text-7)); max-width: 16ch; }
  .pw .lead { font-size: var(--text-4); line-height: var(--leading-5); }
  .pw-stats { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-7); }
  .pw-stop-body > .pw-card { max-width: 640px; }
}

/* ==========================================================================
   LANDING — DESKTOP (min-width:1024)
   The v0.3.3 rail-and-wave model, preserved: the line leaves the screen
   edge for an 88px rail INSIDE the container, JS draws the measured wave
   (amp 22/34) through it, stops go copy|card two-column, stats lock to one
   row. Every rule below overrides the base above — the desktop character
   is unchanged.
   ========================================================================== */
@media (min-width: 1024px) {
  .pw { --pw-rail: 88px; margin-inline: 0; padding-right: 0; }
  .pw-rail-in { padding-left: var(--pw-rail); }
  .pw-anchor-rail { left: calc(var(--pw-rail) / 2 - 1px); }
  .pw-anchor-way { left: calc(var(--pw-rail) / 2 - 1px); }
  .pw-stop-in { column-gap: 0; }
  .pw-track { stroke-width: 2.2; }
  .pw-band { margin-right: 0; padding-right: 0; }

  .pw-h1 { font-size: clamp(var(--text-5), 7vw, var(--text-8)); max-width: 16ch; }

  .pw-hero-copy .pw-h1 { max-width: none;
    font-size: clamp(var(--text-6), 4vw, var(--text-7)); }
  .pw-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(22rem, .9fr);
    align-items: center; gap: var(--space-7); }
  .pw-hero-preview { justify-self: end; width: 100%; }

  /* stats — ALWAYS one row on desktop: items are allowed to shrink
     (min-width: 0) so a long label wraps WITHIN its own item — two-line
     labels are fine — instead of pushing a sibling onto a second row
     (founder review at ~1100–1300px browser panels) */
  .pw-stats { flex-wrap: nowrap; }

  /* stops — copy left, one explanatory card right. Fixed 64px gap, never
     space-between: ultrawide must not stretch the copy→card gap (rulebook) */
  .pw-stop-body { grid-template-columns: minmax(0, 26rem) minmax(0, 24rem);
    gap: var(--space-8); }
  /* stop 03 carries three real mini proposals side by side — it needs a
     wider card column than the other stops' 24rem (rate chips and names
     must never clip); the copy column narrows to compensate */
  .pw-stop-body--props { grid-template-columns: minmax(0, 21rem) minmax(0, 37rem); }
  .pw-props { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pw-prop-rate { margin-left: auto; }

  .pw-fees { grid-template-columns: 1fr 1fr; }

  /* pointer density: the base 44px summary rows relax on laptop+ */
  .pw-faq summary { padding-block: 0; }
}

/* fee transparency band (also reused by member home + dispute banner) */
.fp-band { display: block; background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius-card); padding: var(--space-6) var(--space-6); color: inherit; }
.fp-band h2 { margin: 0 0 var(--space-2); }
.fp-band p { margin: 0; color: var(--ink-700); max-width: var(--measure); }

/* footer button that should read as a link (Ask Seekra) */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-align: left; }
@media (hover: hover) { .linklike:hover { text-decoration: underline; } }

/* ---- Auth pages ---- */
.auth-brand { display: flex; justify-content: center; margin-bottom: var(--space-5); }
.auth-card { border-top: 3px solid var(--brand-600); }
/* Honeypot (00019): invisible to humans, irresistible to bots. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- Dashboard shell ---- */
.dash-head { display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }

/* ==========================================================================
   7. RESPONSIVE
   App breakpoints: 860 nav drawer · 820 grids · 720 shells · 640 phone ·
   380 small phone (landing pw-* rules use the rulebook ladder in §6)
   ========================================================================== */

/* Touch targets ≥44px across phone + tablet, 320–1023 (WCAG 2.5.5,
   rulebook) — mobile-first: base assumes touch; laptop+ (min-width:1024)
   relaxes to pointer density. .btn is 44px by default; this lifts .btn-sm
   (36) and .segmented button (38) through the whole touch range, gives
   footer links and LinkedIn links 44px rows, and grows the nav brand
   lockup (26px tall) to a 44px tap area via padding + negative margin —
   no layout shift. */
.btn, .segmented button { min-height: 44px; }
.footer a, .footer .linklike { display: inline-flex; align-items: center; min-height: 44px; }
.li-link { min-height: 44px; }
a.brand-lockup { padding-block: 9px; margin-block: -9px; }
/* account button (40px) and chat project pill (38px) lift to 44 —
   symmetric padding/min-height keeps the visuals centered and unchanged */
.acct-btn { min-height: 44px; }
.chat-proj { padding-block: var(--space-2); }
/* password eye: 33px glyph box → 44px hit area; the box grows symmetrically
   and margin-right pulls it back so the glyph keeps its exact spot */
.pw-toggle { width: 44px; height: 44px; padding: 0; margin-right: calc(var(--space-2) - 14px);
  display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) {
  .btn-sm { min-height: 36px; }
  .segmented button { min-height: 38px; }
  .footer a, .footer .linklike { min-height: 0; }
  .li-link { min-height: 0; }
  a.brand-lockup { padding-block: 0; margin-block: 0; }
  .acct-btn { min-height: 0; }
  .chat-proj { padding-block: var(--space-1); }
  .pw-toggle { width: auto; height: auto; padding: var(--space-2); margin-right: 0; }
}

/* Tablet & below: top-nav links collapse into a dropdown drawer.
   Covers everything below 1024 — between 861 and 1023 the old 860px drawer
   cutoff left 28px nav links on tablet landscape (audit-app P1). */
@media (max-width: 1023px) {
  .nav-burger { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-email { display: none; }
  .topnav-inner { position: relative; flex-wrap: nowrap; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line-200);
    flex-direction: column; gap: 0; padding: var(--space-2) var(--space-4) var(--space-3);
    box-shadow: var(--shadow-float); z-index: 49; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--space-3) var(--space-2); font-size: var(--text-3); border-top: 1px solid var(--line-200); }
  .nav-links a:first-of-type { border-top: 0; }
  /* with the link row collapsed, the action cluster anchors to the right */
  .nav-actions { margin-left: auto; }
  /* guests: Ask Seekra / Log in leave the bar and join the drawer instead */
  .nav-guest-wide { display: none; }
  .nav-links .nav-drawer-btn { padding: var(--space-3) var(--space-2); font-size: var(--text-3);
    color: var(--ink-700); border-top: 1px solid var(--line-200); }
  .nav-links .nav-drawer-btn:first-child { border-top: 0; }
  .nav-links .nav-drawer-btn + a { border-top: 1px solid var(--line-200); }
  .nav-email-m { display: block; padding: var(--space-3) var(--space-2) var(--space-1); font-size: var(--text-1); }
}

@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topnav-inner { flex-wrap: wrap; }
  /* iOS/iPadOS Safari zooms on focus below 16px — dense table, chip, filter,
     phone-code and due-date inputs get bumped across the whole touch range */
  .ms-table input, .ms-table textarea,
  .chip-input input, .due-form input,
  .filter-bar input, .filter-bar select,
  select.phone-code { font-size: 16px; }
}

@media (max-width: 720px) {
  .footer .cols { grid-template-columns: 1fr 1fr; }
  /* brand block takes the full first row — its no-wrap tagline was colliding
     with the Marketplace column (founder report 2026-10-08) */
  .footer .cols > div:first-child { grid-column: 1 / -1; }
  .stat-grid.ws-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-interest-row, .admin-shortlist-row { grid-template-columns: 1fr; align-items: flex-start; }
  .admin-interest-row .admin-actions, .admin-shortlist-row .admin-actions { justify-content: flex-start; }
  .admin-brief-head { flex-direction: column; }
  .admin-updated { white-space: normal; }
  /* account area */
  .set-shell { grid-template-columns: 1fr; }
  /* the tab rail scrolls horizontally; an alpha-mask fade at the right edge
     signals more tabs. SVG data-URI, not a CSS gradient: design-canon check 1
     bans linear-gradient() outside the allowlist, and this is a mask (alpha
     only), never a visible color. */
  .set-nav { position: static; flex-direction: row; overflow-x: auto;
    -webkit-overflow-scrolling: touch; padding-bottom: var(--space-2); gap: var(--space-2);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='8'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%3E%3Cstop%20offset='.8'%20stop-opacity='1'/%3E%3Cstop%20offset='1'%20stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width='64'%20height='8'%20fill='url(%23g)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='8'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%3E%3Cstop%20offset='.8'%20stop-opacity='1'/%3E%3Cstop%20offset='1'%20stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width='64'%20height='8'%20fill='url(%23g)'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
  .set-nav a { white-space: nowrap; border: 1px solid var(--line-200); }
  .set-nav a.on { border-color: var(--brand-600); }
  .acct-name { max-width: 96px; }
  .acct-menu { position: fixed; top: 60px; left: var(--space-3); right: var(--space-3); min-width: 0; }
  .kv { flex-direction: column; gap: var(--space-1); }
  .kv-k { flex-basis: auto; font-size: var(--text-1); }
  .profile-head { align-items: flex-start; }
}

/* Phone */
@media (max-width: 640px) {
  .section { padding: var(--space-7) 0; }       /* 48px mobile rhythm */
  .section-tight { padding: calc(var(--space-5) + var(--space-4)) 0; } /* 40px */
  /* .container and .topnav-inner phone gutters live in the shared mobile-
     first ladder (§4 container, §5 topnav) — not duplicated here */
  /* guest nav is ONE row on phones — logo left, Sign up + burger right;
     Ask Seekra / Log in live in the burger drawer (see the 860px block) */
  .nav-actions-guest { gap: var(--space-2); }
  /* NOTE: all visitor-landing (pw-*) rules live in the dedicated LANDING
     sections in §6 (mobile-first ladder) — do not add landing rules here. */
  .card { padding: var(--space-4); }
  .form-grid { grid-template-columns: 1fr; }
  .form-row-duo { grid-template-columns: 1fr; } /* milestone date/amount rows stack — duo was overflowing 360px */
  .ms-amount-wrap { flex-wrap: wrap; }
  .ms-remove { min-height: 44px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  /* milestone head: price+badge cluster wraps under the title */
  .ms-item-head { flex-wrap: wrap; }
  .ms-item-side { flex-basis: 100%; }

  /* tables scroll horizontally instead of squeezing/overflowing.
     NEVER overflow-wrap:anywhere on cells here — it collapses every cell's
     min-content width to one character, the block table then never overflows,
     and cells crush into vertical letter stacks (audit-app P0). Any-break
     belongs on the scoped .cell-any class only. */
  table.data, .ms-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data th, table.data td, .ms-table th, .ms-table td { padding: var(--space-2); font-size: var(--text-2); }
  /* table.data inside .table-wrap: ONE scroll container — the wrap scrolls
     and owns border/radius/clip, the table lays out naturally inside */
  .table-wrap { border: 1px solid var(--line-200); border-radius: var(--radius-card);
    background: var(--surface); }
  .table-wrap table.data { display: table; border: 0; border-radius: 0; overflow: visible; }

  /* filter bar inputs take full width */
  .filter-bar input, .filter-bar select { min-width: 0; flex: 1 1 100%; }

  /* auth cards use full width */
  section.card[style*="max-width"] { margin: 1rem auto !important; }

  /* chat: wider bubbles on small screens, composer pinned & thumb-friendly;
     bottom padding carries the home-indicator inset so Send never sits under it */
  .msg-group { max-width: 82%; }
  .chat-log { max-height: calc(100dvh - 340px); }
  .chat-form { position: sticky; bottom: 0; background: var(--surface);
    padding: var(--space-3) 0 calc(var(--space-1) + env(safe-area-inset-bottom)); }
  .chat-form textarea { min-height: 44px; }
  /* on chat routes the sticky composer owns the bottom edge — float the toast above it */
  body[data-route="chat"] .toast { bottom: calc(var(--space-5) + env(safe-area-inset-bottom) + var(--space-7) + var(--space-2)); }

  /* wizard/pipeline rails scroll horizontally rather than wrap awkwardly */
  .wiz, .pipe { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--space-2); }

  .review-box .rv-k { flex-basis: 96px; }
  .confirm-box { width: calc(100% - var(--space-6)); }
  .note-item { flex-wrap: wrap; }
  .fp-band { padding: var(--space-5) var(--space-5); }
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
  /* tagline may wrap on very narrow phones rather than overflow */
  .brand-lockup.lg .brand-tag { white-space: normal; letter-spacing: .12em; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   8. UTILITIES
   ========================================================================== */
.grow { flex: 1; min-width: 0; }
.row-end { display: flex; justify-content: flex-end; }
.row-wrap { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   9. LARGE DISPLAYS (desktop monitors & ultrawide)
   One shared container at every width (rulebook): centered at max-width,
   never stretched — 1200px, stepping to 1280px from 1440 up. Ultrawide
   centers that same measure: no wider cards, no giant gaps.
   ========================================================================== */
@media (min-width: 1440px) {
  :root { --content-max: 1280px; }
}

/* ---- LinkedIn link (00026) — the single renderer from lib/identity.js.
   Compact "in" badge in Seekra brand blue (no third-party brand colors per
   canon), label in ink. Used wherever a person is shown: directory cards,
   applicant evidence, workspace header, admin queue, founder block. */
.li-link { display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-1); font-weight: 600; color: var(--ink-900); text-decoration: none; }
.li-badge { display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px; background: var(--brand-600);
  color: var(--surface); font-size: 11px; font-weight: 800; line-height: 1; }
@media (hover: hover) {
  .li-link:hover { color: var(--brand-700); text-decoration: none; }
  .li-link:hover .li-badge { background: var(--brand-700); }
}

/* founder block CTA row: founder's LinkedIn left of the Ask button */
.fp-founder-cta { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.fp-founder-cta .li-link { font-size: var(--text-2); }
.fp-founder-cta .li-badge { width: 22px; height: 22px; font-size: 13px; border-radius: 5px; }

/* ==========================================================================
   10. PUBLIC CHAT (Seekra AI widget — visitor landing only)
   Runtime-mounted by web/js/lib/public-chat.js behind SHOW_PUBLIC_CHAT;
   sits BELOW the Ask Seekra modal (z-index 1000) at every viewport.
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.pc-chat-launcher {
  position: fixed; right: var(--space-5);
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
  width: auto; min-width: 56px; max-width: calc(100vw - 32px); height: 56px;
  border-radius: 30px; padding: 0 16px 0 12px; gap: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line-200);
  box-shadow: var(--shadow-float); cursor: pointer; z-index: 901;
  transition: transform .15s ease, border-color .15s ease, opacity .2s ease;
}
.pc-chat-launcher .brand-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.pc-chat-launcher-label { color: var(--ink-900); font-size: 14px; font-weight: 650; white-space: nowrap; }
@media (hover: hover) { .pc-chat-launcher:hover { border-color: var(--accent-500); transform: scale(1.06); } }
.pc-chat-launcher:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* one entrance pop per session (class added by JS on first mount only);
   reduced-motion kills it via the global §7 rule */
.pc-chat-launcher.pc-pop { animation: pcChatPop .28s ease-out; }
@keyframes pcChatPop { from { transform: scale(.4); opacity: 0; } }

.pc-chat-backdrop { position: fixed; inset: 0; z-index: 890; background: transparent;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.pc-chat-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease; }

.pc-chat-panel {
  position: fixed; right: var(--space-5);
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom) + 56px + var(--space-3));
  width: 380px; max-width: calc(100vw - var(--space-6));
  height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper-50); border: 1px solid var(--line-200);
  border-radius: var(--radius-card); box-shadow: var(--shadow-float); z-index: 900;
  /* open/close: 200ms ease from the launcher corner (class-driven so the
     close transition can play too — display:none would cut it off) */
  transform-origin: bottom right;
  opacity: 0; transform: translateY(12px) scale(.98); visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.pc-chat-panel.is-open { opacity: 1; transform: none; visibility: visible;
  transition: opacity .2s ease, transform .2s ease; }

.pc-chat-head { display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface); border-bottom: 1px solid var(--line-200); }
.pc-chat-avatar { flex: 0 0 auto; margin-top: 2px; }
.pc-chat-avatar .brand-mark { width: 34px; height: 34px; }
.pc-chat-headtext { min-width: 0; }
.pc-chat-title { margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-3); line-height: var(--leading-3); color: var(--ink-900); }
.pc-chat-status { margin: 0; font-size: var(--text-1); line-height: var(--leading-1);
  color: var(--accent-600); font-weight: 600; }
.pc-chat-sub { margin: var(--space-1) 0 0; font-size: var(--text-1);
  line-height: var(--leading-1); color: var(--ink-500); }
.pc-chat-close { margin-left: auto; flex: 0 0 auto; width: 32px; height: 32px;
  border: none; border-radius: var(--radius-control); background: transparent;
  color: var(--ink-500); font-size: var(--text-4); line-height: 1; cursor: pointer; }
@media (hover: hover) { .pc-chat-close:hover { background: var(--paper-100); color: var(--ink-900); } }
.pc-chat-close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.pc-chat-thread { flex: 1; overflow-y: auto; padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3); }
.pc-msg { max-width: 85%; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-card); font-size: var(--text-2);
  line-height: var(--leading-2); white-space: pre-wrap; overflow-wrap: break-word; }
/* consecutive same-author bubbles group tighter (Intercom-style) */
.pc-msg.pc-msg-cont { margin-top: calc(var(--space-2) * -1); }
.pc-msg-bot { align-self: flex-start; background: var(--surface);
  border: 1px solid var(--line-200); color: var(--ink-900); }
.pc-msg-user { align-self: flex-end; background: var(--brand-600); color: var(--surface); }
.pc-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* quiet timestamp, revealed on hover/focus only — the thread stays clean */
.pc-msg-time { display: block; margin-top: 2px; font-size: var(--text-1);
  line-height: var(--leading-1); opacity: 0; transition: opacity .15s ease; }
.pc-msg:hover .pc-msg-time, .pc-msg:focus-within .pc-msg-time { opacity: .65; }

.pc-chat-typing { display: inline-flex; gap: var(--space-1); align-items: center; }
.pc-chat-typing span { width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-500); animation: pcChatPulse 1.2s ease-in-out infinite; }
.pc-chat-typing span:nth-child(2) { animation-delay: .15s; }
.pc-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pcChatPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* reduced-motion: the global kill-switch (§7) already stops the animation —
   the dots simply sit still, which reads as a static "…" indicator */

.pc-chat-chips { display: flex; flex-wrap: wrap; gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-3); }
.pc-chat-chips[hidden] { display: none; }
.pc-chip { border: 1px solid var(--brand-100); background: var(--brand-50);
  color: var(--brand-700); border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3); font-size: var(--text-1);
  font-weight: 600; cursor: pointer; }
@media (hover: hover) { .pc-chip:hover { border-color: var(--brand-500); } }
.pc-chip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.pc-chat-form { display: flex; gap: var(--space-2); align-items: flex-end;
  padding: var(--space-3) var(--space-4);
  background: var(--surface); border-top: 1px solid var(--line-200); }
/* composer is a textarea: Enter sends, Shift+Enter newline, auto-grows via
   the house global textarea behaviour up to ~4 lines */
.pc-chat-input { flex: 1; min-width: 0; min-height: 40px; max-height: 96px;
  padding: var(--space-2) var(--space-3); resize: none; overflow-y: auto;
  border: 1px solid var(--line-200); border-radius: var(--radius-control);
  font: inherit; font-size: var(--text-2); line-height: var(--leading-2);
  color: var(--ink-900); background: var(--paper-50); }
.pc-chat-input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--brand-600); }
.pc-chat-send:disabled { opacity: .55; cursor: default; }
.pc-chat-foot { margin: 0; padding: var(--space-2) var(--space-4) var(--space-3);
  font-size: var(--text-1); line-height: var(--leading-1); color: var(--ink-500);
  background: var(--surface); }

.pc-esc { display: flex; flex-direction: column; gap: var(--space-2); }
.pc-esc-lead { margin: 0; }
.pc-esc-form { display: flex; gap: var(--space-2); align-items: center; }
.pc-esc-form input { flex: 1; min-width: 0; min-height: 36px; padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line-200); border-radius: var(--radius-control);
  font: inherit; font-size: var(--text-2); color: var(--ink-900); background: var(--paper-50); }
.pc-esc-form input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--brand-600); }
.pc-esc-note { margin: 0; color: var(--danger-600); font-size: var(--text-1); }
.pc-esc-alt { margin: 0; font-size: var(--text-1); color: var(--ink-500); }

/* Phone: the panel becomes a bottom sheet and the backdrop dims (same alpha
   of ink as the Ask Seekra backdrop). */
@media (max-width: 480px) {
  .pc-chat-backdrop.is-open { background: rgba(16, 30, 43, .45); }
  .pc-chat-panel { right: 0; left: 0; bottom: 0; width: auto; max-width: none;
    height: 80vh; height: 80dvh; border-radius: var(--radius-card) var(--radius-card) 0 0;
    transform-origin: bottom center; }
  /* bottom-sheet mode: the launcher would overlap the composer/Send button —
     it fades out while the panel is open (JS also sets inert, so it stays
     out of the tab order). Desktop keeps it visible (Intercom pattern): the
     panel sits above it with a gap, never overlapping. */
  .pc-chat-launcher.is-hidden { opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, visibility 0s linear .2s; }
}


/* ---------------------------------------------------------------------------
   Seekra AI story (additive, runtime-mounted by js/lib/ai-story.js)
   Hero Guide demo + pathway AI band. Design-canon: tokens only, hairlines
   over shadows, 4/8 spacing scale, 16px body floor, reduced-motion safe.
   ------------------------------------------------------------------------- */
.aix-demo { margin-top: var(--space-6); max-width: 560px; padding: var(--space-4);
  background: var(--paper-50); border: 1px solid var(--line-200); border-radius: 14px; }
.aix-demo-head { display: flex; align-items: center; gap: 8px; font-size: var(--text-1);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.aix-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-500);
  animation: aix-pulse 2.2s ease-in-out infinite; }
@keyframes aix-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.aix-typed-wrap { min-height: 3.2em; margin-top: var(--space-3); font-size: var(--text-2);
  line-height: var(--leading-2); color: var(--ink-700); }
.aix-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px;
  vertical-align: text-bottom; background: var(--accent-600);
  animation: aix-caret 1s steps(2) infinite; }
@keyframes aix-caret { 50% { opacity: 0; } }
.aix-fields { display: grid; gap: 8px; margin-top: var(--space-3); }
.aix-field { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px;
  background: var(--paper-100); border: 1px solid var(--line-200); border-radius: 10px;
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.aix-field.on { opacity: 1; transform: none; }
.aix-k { flex: none; font-size: var(--text-1); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-500); }
.aix-v { font-size: var(--text-2); color: var(--ink-900); }
.aix-v i { font-style: normal; padding: 1px 8px; margin-right: 6px;
  border: 1px solid var(--line-200); border-radius: 999px; background: var(--paper-50); }
.aix-note { margin-top: var(--space-3); font-size: var(--text-1); color: var(--ink-500);
  opacity: 0; transition: opacity .4s ease; }
.aix-note.on { opacity: 1; }

.aix-band { padding-block: clamp(48px, 8vw, 96px); border-top: 1px solid var(--line-200); }
.aix-cards { display: grid; gap: var(--space-3); margin-top: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.aix-card { text-align: left; padding: var(--space-4); cursor: pointer;
  background: var(--paper-50); border: 1px solid var(--line-200); border-radius: 14px;
  font: inherit; color: inherit; transition: border-color .2s ease; }
.aix-card:hover, .aix-card:focus-visible { border-color: var(--accent-500); }
.aix-card-name { display: block; font-weight: 650; color: var(--ink-900); }
.aix-card-line { display: block; margin-top: 4px; font-size: var(--text-2);
  line-height: var(--leading-2); color: var(--ink-700); }
.aix-card-micro { display: block; overflow: hidden; max-height: 0; margin-top: 0;
  font-size: var(--text-1); color: var(--accent-700);
  transition: max-height .3s ease, margin-top .3s ease; }
.aix-card.open .aix-card-micro { max-height: 3.2em; margin-top: var(--space-2); }
.aix-foot { margin-top: var(--space-4); font-size: var(--text-1); color: var(--ink-500); }

@media (prefers-reduced-motion: reduce) {
  .aix-pulse, .aix-caret { animation: none; }
  .aix-field, .aix-note, .aix-card-micro { transition: none; }
}
@media (max-width: 639px) {
  .aix-demo { padding: var(--space-3); }
  .aix-cards { grid-template-columns: 1fr; }
}

/* rotating hero demo scenes (ai-story.js) ----------------------------------- */
.aix-body { transition: opacity .28s ease; }
.aix-body.out { opacity: 0; }
.aix-item { opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease; }
.aix-item.on { opacity: 1; transform: none; }
.aix-quotes { display: grid; gap: 8px; margin-top: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aix-quote { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px;
  background: var(--paper-100); border: 1px solid var(--line-200); border-radius: 10px; }
.aix-quote b { font-weight: 650; font-size: var(--text-3); color: var(--ink-900); }
.aix-quote span { font-size: var(--text-1); color: var(--ink-500); }
.aix-chat { display: grid; gap: 8px; margin-top: var(--space-3); justify-items: start; }
.aix-q { padding: 8px 12px; border-radius: 12px 12px 12px 4px;
  background: var(--paper-100); border: 1px solid var(--line-200);
  font-size: var(--text-2); color: var(--ink-900); }
.aix-a { justify-self: end; padding: 8px 12px; border-radius: 12px 12px 4px 12px;
  background: var(--paper-100); border: 1px solid var(--line-200);
  border-left: 2px solid var(--accent-500);
  font-size: var(--text-2); line-height: var(--leading-2); color: var(--ink-700); }

@media (prefers-reduced-motion: reduce) {
  .aix-body, .aix-item { transition: none; }
}
@media (max-width: 639px) {
  .aix-quotes { grid-template-columns: 1fr; }
}

/* Original Bold product landing -------------------------------------------- */
.bold-landing { --bold-paper: var(--paper-50); --bold-ink: var(--ink-900); --bold-muted: var(--ink-700);
  --bold-line: var(--line-200); --bold-orange: var(--accent-500); --bold-white: var(--paper-50);
  margin-inline: calc(-1 * max(0px, (100vw - 100%) / 2)); background: var(--bold-paper);
  color: var(--bold-ink); font-family: var(--font-body); }
.bold-landing * { box-sizing: border-box; }
.bold-landing a { color: inherit; }
.bold-landing .bold-hero { background: var(--ink-900); color: var(--paper-50); text-align: center;
  padding: 54px 24px 34px; }
.bold-kicker, .bold-label, .bold-mini-label { text-transform: uppercase; font-size: 12px;
  font-weight: 700; letter-spacing: 1.5px; }
.bold-kicker { display: flex; align-items: center; justify-content: center; gap: 9px;
  color: var(--accent-500); margin: 0 0 15px; }
.bold-kicker span { width: 6px; height: 6px; border-radius: 50%; background: var(--bold-orange); }
.bold-hero h1 { margin: 0 auto; max-width: 760px; font-size: clamp(34px, 6.5vw, 72px);
  color: var(--paper-50); line-height: 1.02; letter-spacing: -.065em; font-weight: 500; }
.bold-hero h1 em { color: var(--bold-orange); font-style: normal; }
.bold-lead { max-width: 580px; margin: 20px auto 0; color: var(--paper-50); font-size: 17px; line-height: 1.6; }
.bold-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.bold-actions .btn-primary { background: var(--bold-orange); border-color: var(--bold-orange); color: var(--ink-900); }
.bold-actions .btn-outline { color: var(--paper-50); border-color: var(--ink-500); }
.bold-caption { margin: 14px 0 0; color: var(--paper-50); font-size: 14px; }
.bold-demo-wrap { background: var(--ink-900); padding: 8px 7% 42px; }
.bold-demo-intro { max-width: 1020px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--paper-50); }
.bold-demo-intro .bold-label { color: var(--accent-500); }
.bold-demo-intro h2 { margin: 0; color: var(--paper-50); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; }
.bold-live-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bold-live-cta > p { margin: 0; color: var(--paper-50); font-size: 15px; line-height: 1.5; }
.bold-live-status { display: inline-flex; align-items: center; gap: 7px; margin-right: 7px; font-weight: 700; color: var(--paper-50); }
.bold-live-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--success-live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success-live) 15%, transparent); }
.bold-live-cta .btn-primary { min-height: 44px; color: var(--ink-900); background: var(--bold-orange); border-color: var(--bold-orange); white-space: nowrap; }
.bold-tabs { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin: 0 auto 17px; }
.bold-tabs button { border: 1px solid transparent; border-radius: 30px; padding: 8px 15px;
  min-height: 44px; background: transparent; color: var(--paper-50); font: inherit; font-size: 14px; cursor: pointer; }
.bold-tabs button[aria-selected="true"] { color: var(--ink-900); background: var(--paper-100); }
.bold-demo { max-width: 1020px; margin: auto; border: 1px solid var(--ink-500); border-radius: 10px;
  overflow: hidden; background: var(--bold-white); box-shadow: 0 16px 40px rgb(16 30 43 / 10%); }
.bold-demo-head { min-height: 48px; padding: 12px 18px; border-bottom: 1px solid var(--bold-line);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 14px; }
.bold-demo-head strong { font-size: 15px; }
.bold-demo-head span { color: var(--bold-muted); }
.bold-live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; background: var(--accent-500); box-shadow: 0 0 0 4px var(--accent-50); }
.bold-demo-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; padding: 23px; }
.bold-demo-start { padding-right: 24px; border-right: 1px solid var(--bold-line); }
.bold-mini-label { color: var(--bold-muted); }
.bold-demo-start h3 { margin: 9px 0 14px; max-width: 330px; font-size: 24px; line-height: 1.2; letter-spacing: -.04em; }
.bold-prompt { padding: 13px 14px; border-radius: 5px; background: var(--bold-paper);
  color: var(--bold-muted); font-size: 15px; line-height: 1.55; }
.bold-demo-start .btn { margin-top: 4px; }
.bold-ai-label { margin: 1px 0 9px; color: var(--accent-700); font-size: 15px; font-weight: 650; }
.bold-output-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0;
  border-bottom: 1px solid var(--bold-line); font-size: 15px; }
.bold-output-row span { color: var(--bold-muted); }
.bold-demo-result .bold-prompt { margin: 14px 0 0; }
.bold-demo-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px;
  border-top: 1px solid var(--bold-line); background: var(--bold-paper); color: var(--bold-muted); font-size: 13px; }
.bold-demo-foot b { color: var(--accent-700); font-weight: 600; }
.bold-output-row { animation: bold-row-in .28s ease both; animation-delay: calc(var(--row-order, 0) * 65ms); }
@keyframes bold-row-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.bold-demo-details { margin-top: 14px; border-top: 1px solid var(--bold-line); }
.bold-demo-details summary { min-height: 44px; padding-top: 12px; cursor: pointer; color: var(--accent-700); font-size: 15px; font-weight: 650; }
.bold-demo-details ul { display: grid; gap: 8px; margin: 0; padding: 0 0 2px; list-style: none; }
.bold-demo-details li { display: grid; grid-template-columns: minmax(105px, .7fr) 1.3fr; gap: 12px; font-size: 15px; line-height: 1.45; }
.bold-demo-details li b { color: var(--ink-700); }
.bold-demo-details li span { color: var(--ink-900); }
.bold-ai-bridge { max-width: 1020px; margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--paper-50); font-size: 15px; }
.bold-ai-bridge .btn { color: var(--paper-50); }
.bold-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 34px;
  padding: 18px 5%; border-bottom: 1px solid var(--bold-line); color: var(--bold-muted); font-size: 14px; }
.bold-section, .bold-roles, .bold-founding, .bold-human, .bold-final, .bold-footer {
  padding-inline: max(5.4%, calc((100vw - 1160px) / 2)); }
.bold-section { padding-top: 58px; padding-bottom: 58px; }
.bold-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 28px; }
.bold-label { color: var(--accent-700); margin: 0 0 12px; }
.bold-section h2, .bold-roles h2, .bold-founding h2, .bold-human h2, .bold-final h2 {
  margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.055em; font-weight: 500; }
.bold-section-heading > p { max-width: 300px; margin: 0; color: var(--bold-muted); font-size: 16px; line-height: 1.6; }
.bold-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bold-features article { border-top: 1px solid var(--bold-line); padding-top: 15px; }
.bold-features article > span { color: var(--accent-700); font-size: 14px; }
.bold-features h3 { margin: 12px 0 8px; font-size: 18px; }
.bold-features p, .bold-roles article > p:not(.bold-label), .bold-founding article > p:not(.bold-label), .bold-human > div > p:not(.bold-label) {
  color: var(--bold-muted); font-size: 16px; line-height: 1.65; }
.bold-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 5px; padding-bottom: 42px; }
.bold-roles article { padding: 27px; border: 1px solid var(--bold-line); border-radius: 7px; background: var(--bold-white); }
.bold-roles h2 { font-size: 29px; }
.bold-roles article > p:not(.bold-label) { max-width: 420px; }
.bold-roles a, .bold-founding a { display: inline-block; margin-top: 8px; color: var(--accent-700); font-size: 15px; font-weight: 600; text-decoration: none; }
.bold-founding { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 26px; padding-top: 38px; padding-bottom: 42px; border-top: 1px solid var(--bold-line); }
.bold-founding article { padding-left: 22px; border-left: 1px solid var(--bold-line); }
.bold-founding strong { display: block; font-size: 27px; letter-spacing: -.04em; }
.bold-founding article > p:not(.bold-label) { margin: 8px 0; }
.bold-human { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; padding-top: 30px; padding-bottom: 38px; border-top: 1px solid var(--bold-line); }
.bold-human h2 { font-size: 27px; }
.bold-human > div > p:not(.bold-label) { max-width: 340px; }
.bold-human .linklike { margin-top: 8px; padding: 0; color: var(--bold-ink); font-size: 15px; }
.bold-human-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 8px; }
.bold-human-actions .linklike { margin-top: 0; }
.bold-faq details { padding: 11px 0; border-bottom: 1px solid var(--bold-line); font-size: 16px; }
.bold-faq summary { font-weight: 600; cursor: pointer; }
.bold-faq details p { margin: 9px 0 0; color: var(--bold-muted); line-height: 1.7; }
.bold-final { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 33px; padding-bottom: 33px; background: var(--bold-orange); }
.bold-final .bold-label { color: var(--ink-900); }
.bold-final .btn-primary { background: var(--ink-900); border-color: var(--ink-900); color: white; }
.bold-footer { display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; padding-bottom: 22px; color: var(--bold-muted); font-size: 10px; }
.bold-footer > span:last-child { display: flex; gap: 18px; }
.bold-footer a { text-decoration: none; }
@media (max-width: 760px) {
  .bold-demo-wrap { padding-inline: 5.4%; }
  .bold-demo-intro { align-items: flex-start; flex-direction: column; gap: 14px; }
  .bold-live-cta { align-items: flex-start; }
  .bold-section-heading { display: block; }
  .bold-section-heading > p { margin-top: 15px; }
  .bold-features { grid-template-columns: repeat(2, 1fr); row-gap: 23px; }
  .bold-founding { grid-template-columns: 1fr 1fr; }
  .bold-founding > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bold-landing .bold-hero { padding: 32px 18px 28px; }
  .bold-hero h1 { max-width: 520px; font-size: clamp(32px, 9vw, 42px); line-height: 1.06; letter-spacing: -.05em; }
  .bold-lead { margin-top: 16px; font-size: 16px; }
  .bold-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
  .bold-demo-body { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 16px; }
  .bold-demo-start { min-width: 0; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--bold-line); }
  .bold-demo-head { align-items: flex-start; flex-direction: column; gap: 2px; font-size: 13px; }
  .bold-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-inline: 0; padding: 2px 0 8px; }
  .bold-tabs button { min-width: 0; padding: 7px 8px; font-size: 13px; line-height: 1.3; }
  .bold-demo-foot { display: block; padding: 12px 16px; }
  .bold-demo-foot b { display: block; margin-top: 4px; }
  .bold-ai-bridge { align-items: flex-start; flex-direction: column; }
  .bold-features { grid-template-columns: 1fr; }
  .bold-roles { grid-template-columns: 1fr; padding-bottom: 32px; }
  .bold-founding { gap: 20px; }
  .bold-founding article { padding-left: 13px; }
  .bold-founding strong { font-size: 22px; }
  .bold-human { grid-template-columns: 1fr; gap: 20px; }
  .bold-final { display: block; padding-block: 27px; }
  .bold-final .btn { margin-top: 18px; }
  .bold-final h2 { font-size: clamp(28px, 8vw, 36px); }
  .bold-demo-details li { grid-template-columns: 1fr; gap: 2px; }
  .bold-demo-details li + li { padding-top: 7px; border-top: 1px solid var(--bold-line); }
}
@media (max-width: 380px) {
  .pc-chat-launcher { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* The public product header and single footer continue the Bold landing's
   dark frame. The live logo mark keeps its original terracotta center. */
body:has(.bold-landing) .topnav { background: rgb(16 30 43 / 96%); border-color: var(--ink-700); }
body:has(.bold-landing) .topnav-inner { max-width: 1280px; }
body:has(.bold-landing) .brand-word, body:has(.bold-landing) .nav-links a,
body:has(.bold-landing) .nav-links .nav-drawer-btn { color: var(--paper-50); }
body:has(.bold-landing) .topnav .brand-tag { color: var(--paper-50); }
body:has(.bold-landing) .brand-mark circle:first-child { stroke: var(--paper-50); }
body:has(.bold-landing) .nav-guest-wide .btn-ghost { color: var(--paper-50); }
body:has(.bold-landing) .nav-guest-wide .btn-primary { color: var(--ink-900); }
body:has(.bold-landing) .nav-burger { color: var(--paper-50); border-color: var(--ink-500); }
body:has(.bold-landing) .nav-links.open { background: var(--ink-900); border-color: var(--ink-700); }
body:has(.bold-landing) .nav-links a, body:has(.bold-landing) .nav-links .nav-drawer-btn { border-color: var(--ink-700); }
body:has(.bold-landing) #footer { background: var(--ink-900); }
body:has(.bold-landing) .brand-footer { background: transparent; color: var(--paper-50); }
body:has(.bold-landing) .brand-footer .brand-mark circle:first-child { stroke: var(--paper-50); }
body:has(.bold-landing) .brand-footer .brand-word,
body:has(.bold-landing) .brand-footer .footer-group strong { color: var(--paper-50); }
body:has(.bold-landing) .brand-footer .brand-tag,
body:has(.bold-landing) .brand-footer .footer-description,
body:has(.bold-landing) .brand-footer .footer-copyright { color: var(--paper-50); }
body:has(.bold-landing) .brand-footer .footer-group a,
body:has(.bold-landing) .brand-footer .footer-group .linklike { color: var(--paper-50); }
body:has(.bold-landing) .brand-footer .footer-groups,
body:has(.bold-landing) .brand-footer .footer-copyright { border-color: var(--ink-700); }
@media (max-width: 720px) {
  .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .bold-landing *, .bold-landing *::before, .bold-landing *::after { scroll-behavior: auto !important; }
}
