/* Introduceri UI
   Look: a navy dashboard with a periwinkle accent (dark is the default), a matching light theme, Inter throughout.
   Sign-in and sign-up pages are always light, like the public pages. */
:root {
  --bg: #0f1322; --panel: #1a1f3a; --panel-2: #151a33; --field: #0f1322; --chip: #262d4a; --row-hover: rgba(130, 141, 248, .06);
  --ink: #ffffff; --ink-2: #d1d5db; --muted: #9ca3af; --line: #374151; --line-2: #2a3048; --field-line: #374151;
  --accent: #828df8; --accent-hover: #6f7bf7; --accent-ink: #f8fafc; --accent-soft: rgba(130, 141, 248, .18); --accent-fg: #828df8;
  --amber: #fbbf24; --amber-soft: rgba(251, 191, 36, .14); --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .14); --warn: #facc15; --warn-soft: rgba(250, 204, 21, .13);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, .14); --info: #60a5fa; --info-soft: rgba(96, 165, 250, .14);
  --btn-bg: #252b48; --btn-hover: #2e3557; --btn-line: #374151;
  /* Sidebar */
  --rail: #1a1f3a; --rail-ink: #d1d5db; --rail-strong: #ffffff; --rail-muted: #9ca3af; --rail-line: #374151; --rail-edge: transparent; --rail-hover: #374151;
  --rail-on-bg: rgba(130, 141, 248, .2); --rail-on-ink: #828df8; --rail-on-icon: #828df8; --rail-sub: #9ca3af; --rail-count-bg: #828df8; --rail-count-ink: #ffffff; --rail-meter: #828df8;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45); --panel-shadow: none; --toast-bg: #252b48; --toast-ink: #ffffff; --scrim: rgba(4, 7, 18, .65);
  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --f-body: var(--f-display); --f-mono: var(--f-display);
  --f-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; --f-serif: "IBM Plex Serif", Georgia, serif;
  --r: 8px; color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f9fafb; --panel: #ffffff; --panel-2: #f9fafb; --field: #ffffff; --chip: #f3f4f6; --row-hover: #f9fafb;
  --ink: #111827; --ink-2: #4b5563; --muted: #6b7280; --line: #e5e7eb; --line-2: #f3f4f6; --field-line: #d1d5db;
  --accent: #828df8; --accent-hover: #6f7bf7; --accent-ink: #ffffff; --accent-soft: rgba(130, 141, 248, .12); --accent-fg: #5b63e6;
  --amber: #b45309; --amber-soft: #fef3c7; --ok: #15803d; --ok-soft: #dcfce7; --warn: #a16207; --warn-soft: #fef9c3;
  --bad: #dc2626; --bad-soft: #fee2e2; --info: #2563eb; --info-soft: #dbeafe;
  --btn-bg: #f1f5f9; --btn-hover: #e2e8f0; --btn-line: transparent;
  --rail: #ffffff; --rail-ink: #374151; --rail-strong: #111827; --rail-muted: #6b7280; --rail-line: #e5e7eb; --rail-edge: #e5e7eb; --rail-hover: #f3f4f6;
  --rail-on-bg: rgba(130, 141, 248, .15); --rail-on-ink: #5b63e6; --rail-on-icon: #5b63e6; --rail-sub: #6b7280; --rail-count-bg: #828df8; --rail-count-ink: #ffffff; --rail-meter: #828df8;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); --panel-shadow: 0 1px 2px rgba(0, 0, 0, .05); --toast-bg: #111827; --toast-ink: #ffffff; --scrim: rgba(17, 24, 39, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: light) { :root[data-theme="auto"] {
  --bg: #f9fafb; --panel: #ffffff; --panel-2: #f9fafb; --field: #ffffff; --chip: #f3f4f6; --row-hover: #f9fafb;
  --ink: #111827; --ink-2: #4b5563; --muted: #6b7280; --line: #e5e7eb; --line-2: #f3f4f6; --field-line: #d1d5db;
  --accent: #828df8; --accent-hover: #6f7bf7; --accent-ink: #ffffff; --accent-soft: rgba(130, 141, 248, .12); --accent-fg: #5b63e6;
  --amber: #b45309; --amber-soft: #fef3c7; --ok: #15803d; --ok-soft: #dcfce7; --warn: #a16207; --warn-soft: #fef9c3;
  --bad: #dc2626; --bad-soft: #fee2e2; --info: #2563eb; --info-soft: #dbeafe;
  --btn-bg: #f1f5f9; --btn-hover: #e2e8f0; --btn-line: transparent;
  --rail: #ffffff; --rail-ink: #374151; --rail-strong: #111827; --rail-muted: #6b7280; --rail-line: #e5e7eb; --rail-edge: #e5e7eb; --rail-hover: #f3f4f6;
  --rail-on-bg: rgba(130, 141, 248, .15); --rail-on-ink: #5b63e6; --rail-on-icon: #5b63e6; --rail-sub: #6b7280; --rail-count-bg: #828df8; --rail-count-ink: #ffffff; --rail-meter: #828df8;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); --panel-shadow: 0 1px 2px rgba(0, 0, 0, .05); --toast-bg: #111827; --toast-ink: #ffffff; --scrim: rgba(17, 24, 39, .45);
  color-scheme: light; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-fg); }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { font: 500 12px/1.3 var(--f-body); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Shell */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100%; }
.rail { background: var(--rail); color: var(--rail-ink); border-right: 1px solid var(--rail-edge); display: flex; flex-direction: column; gap: 4px; padding: 0 8px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 8px; margin-bottom: 4px; color: var(--rail-strong); text-decoration: none; }
.brand svg { flex: none; }
.brand b { font: 700 19px/1 var(--f-display); letter-spacing: -.01em; color: var(--rail-strong); }
.brand small { display: block; font: 400 12px/1.2 var(--f-body); color: var(--rail-sub); margin-top: 4px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 6px; color: var(--rail-ink); font-size: 14px; font-weight: 500; transition: background-color .15s, color .15s; }
.nav button svg { flex: none; }
.nav button:hover { background: var(--rail-hover); color: var(--rail-strong); }
.nav button.on { background: var(--rail-on-bg); color: var(--rail-on-ink); }
.nav button.on svg { color: var(--rail-on-icon); }
.nav button:focus-visible { outline: 2px solid var(--rail-on-icon); }
.nav .count { margin-left: auto; font: 600 11px/1 var(--f-body); background: var(--rail-count-bg); color: var(--rail-count-ink); border-radius: 999px; padding: 3px 7px; }
.nav-sep { height: 1px; background: var(--rail-line); margin: 8px 4px; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px 4px 0; border-top: 1px solid var(--rail-line); }
.meter { padding: 0 8px; }
.meter .bar { height: 6px; background: var(--rail-line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.meter .bar i { display: block; height: 100%; background: var(--rail-meter); border-radius: 999px; }
.meter .lbl { display: flex; justify-content: space-between; font: 400 12px/1 var(--f-body); color: var(--rail-muted); font-variant-numeric: tabular-nums; }
.me { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.me .who { min-width: 0; }
.me .who b { display: block; font-size: 14px; font-weight: 500; color: var(--rail-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { display: block; font-size: 12px; color: var(--rail-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me button { all: unset; cursor: pointer; margin-left: auto; color: var(--rail-muted); padding: 6px; border-radius: 6px; }
.me button:hover { color: var(--rail-strong); background: var(--rail-hover); }
/* Background switch in the sidebar: white, navy, or match the device */
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; }
.theme-row .tl { font-size: 12px; color: var(--rail-muted); }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--rail-line); border-radius: 8px; }
.theme-switch button { all: unset; cursor: pointer; width: 28px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--rail-muted); }
.theme-switch button:hover { color: var(--rail-strong); }
.theme-switch button.on { background: var(--rail-on-bg); color: var(--rail-on-icon); }
.theme-switch button:focus-visible { outline: 2px solid var(--rail-on-icon); outline-offset: 1px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 64px; padding-block: 18px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); background: var(--panel); }
.topbar .t { min-width: 0; flex: 1 1 280px; }
.topbar .t p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.topbar .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.content { padding-block: 24px 48px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; box-shadow: var(--panel-shadow); }
.panel > .ph { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel > .ph .sp { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel > .pb { padding: 20px; }
.panel > .pb.flush { padding: 0; }
.grid { display: grid; gap: 20px; }
.g-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.spacer { flex: 1; }

/* Stat cards: the number first, the label under it */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--panel-shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .eyebrow { order: 2; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.stat .v { order: 1; font: 700 24px/1.25 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); }
.stat .v.money { color: var(--amber); }
.stat .d { order: 3; font-size: 12px; color: var(--muted); }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; line-height: 1.3; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--btn-hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.money { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.btn.money:hover { filter: brightness(1.1); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--btn-bg); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 6px; gap: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field > small { color: var(--muted); font-size: 12px; }
.input, select.input, textarea.input { width: 100%; padding: 9px 12px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field); color: var(--ink); font-size: 14px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--muted); opacity: 1; }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { display: inline-flex; border: 1px solid var(--field-line); border-radius: 8px; overflow: hidden; background: var(--field); }
.seg button { all: unset; cursor: pointer; padding: 7px 14px; font-size: 13px; border-right: 1px solid var(--field-line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.switch { position: relative; display: inline-block; vertical-align: middle; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 20px; cursor: pointer; transition: background .15s; }
.switch i::after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #ffffff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=range] { accent-color: var(--accent); width: 100%; }

/* Chips and pills */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: var(--chip); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font: 500 12px/1.6 var(--f-body); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.acc { background: var(--accent-soft); color: var(--accent-fg); }
.pill.money { background: var(--amber-soft); color: var(--amber); }
.pill.mute { background: var(--chip); color: var(--muted); }
.tag-pro { font: 700 10px/1 var(--f-body); letter-spacing: .04em; padding: 3px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-fg); }
.verified { color: var(--accent-fg); display: inline-flex; vertical-align: -2px; }

/* Avatars */
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 600 12px/1 var(--f-body); flex: none; letter-spacing: .02em; }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .pn { min-width: 0; }
.person .pn b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .pn > span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Intro path card */
.path-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); display: flex; flex-direction: column; box-shadow: var(--panel-shadow); }
.path-card.urgent { border-left: 3px solid var(--accent); }
.path-card .top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.path { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; padding: 16px; }
.path .node { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.path .node b { font-size: 13px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path .node > span:not(.av) { font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.path .node.me b { color: var(--accent-fg); }
.path .link { width: 56px; height: 2px; background: var(--line); position: relative; border-radius: 2px; }
.path .link.done { background: var(--accent); }
.path .link::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left-color: inherit; }
.path .link.done::after { border-left-color: var(--accent); }
.path .link:not(.done)::after { border-left-color: var(--line); }
.path-card .reason { padding: 0 16px 14px; color: var(--ink-2); font-size: 13.5px; }
.path-card .acts { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; background: var(--panel-2); border-radius: 0 0 8px 8px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.tabs button { all: unset; cursor: pointer; padding: 12px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tabs button .n { font: 500 11.5px/1.5 var(--f-body); margin-left: 6px; color: var(--muted); background: var(--chip); padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.tabs button:focus-visible { outline: 2px solid var(--accent); }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 12.5px/1.2 var(--f-body); color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel-2); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 16px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--row-hover); }
.tbl td.num, .tbl th.num { text-align: right; }

/* Match bar */
.score { display: flex; align-items: center; gap: 8px; }
.score .b { width: 60px; height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.score .b i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.score .num { font-size: 12.5px; font-weight: 600; }

/* Rooms */
.rooms { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); min-height: 640px; overflow: hidden; box-shadow: var(--panel-shadow); }
.rooms > * { min-width: 0; }
.room-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.room-list .items { overflow-y: auto; max-height: 720px; }
.room-item { all: unset; display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; width: 100%; box-sizing: border-box; }
.room-item:hover { background: var(--row-hover); }
.room-item.on { background: var(--accent-soft); }
.room-item .ri { min-width: 0; flex: 1; }
.room-item .ri b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-item .ri > span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.room-main { display: flex; flex-direction: column; min-height: 0; }
.room-head { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 520px; min-height: 260px; }
.msg { display: flex; gap: 10px; max-width: 640px; }
.msg .bubble { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.msg.mine .bubble { background: var(--accent-soft); border-color: transparent; }
.msg.sys { align-self: center; max-width: 100%; }
.msg.sys .bubble { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; text-align: center; }
.composer { border-top: 1px solid var(--line-2); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 42px; max-height: 160px; }
.room-side { border-left: 1px solid var(--line); overflow-y: auto; max-height: 820px; }
.room-side section { padding: 16px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }

/* Stepper */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; position: relative; padding-bottom: 14px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); display: grid; place-items: center; font: 600 10px var(--f-body); color: var(--muted); z-index: 1; }
.step.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.done::before { background: var(--accent); }
.step.now .dot { border-color: var(--accent); color: var(--accent-fg); }
.step.bad .dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.step b { font-size: 13.5px; font-weight: 600; display: block; }
.step span { font-size: 12px; color: var(--muted); }
.hstep { display: flex; align-items: center; gap: 0; overflow-x: auto; }
.hstep .s { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.hstep .s i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.hstep .s.done { color: var(--ink-2); }
.hstep .s.done i { background: var(--accent); }
.hstep .s.now { color: var(--accent-fg); font-weight: 600; }
.hstep .s.now i { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hstep .bar { width: 22px; height: 2px; background: var(--line); margin: 0 6px; flex: none; border-radius: 2px; }

/* Brief */
.brief .op { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; background: var(--panel-2); }
.brief .op p { flex: 1; min-width: 0; }
.brief ul { margin: 0; padding-left: 16px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.lock { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }

/* Contract */
.contract { display: flex; flex-direction: column; }
.clause { display: grid; grid-template-columns: minmax(0, 1fr) 230px; border-bottom: 1px solid var(--line-2); }
.clause:last-child { border-bottom: 0; }
.clause .ct { padding: 14px 20px; font-family: var(--f-serif); font-size: 13.5px; line-height: 1.6; }
.clause .ct b { display: block; font-family: var(--f-body); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.clause .ct b .mono { color: var(--muted); margin-right: 6px; }
.clause .cn { padding: 14px 16px; background: var(--panel-2); font-size: 12.5px; color: var(--ink-2); border-left: 1px solid var(--line-2); }
.clause .cn::before { content: "In plain terms"; display: block; font: 600 11.5px/1.4 var(--f-body); color: var(--muted); margin-bottom: 4px; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: 13px; align-items: flex-start; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.error { background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert svg { flex: none; margin-top: 1px; }
.disclaimer { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); padding: 12px 20px; font-style: italic; }

/* Graph */
.graph svg { width: 100%; height: auto; display: block; }
.graph text { font: 500 9.5px var(--f-body); fill: var(--ink-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

/* Cards in lists */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1 1 220px; min-width: 0; }
.offer { border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); box-shadow: var(--panel-shadow); }
.offer .price { font: 700 18px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.offer .price small { font: 500 12px var(--f-body); color: var(--muted); margin-left: 4px; }
.offer p { color: var(--ink-2); font-size: 13.5px; flex: 1; }
.plan { border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--panel); box-shadow: var(--panel-shadow); }
.plan.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .price { font: 700 32px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 13px var(--f-body); color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.plan li { display: flex; gap: 8px; }
.plan li svg { color: var(--ok); flex: none; margin-top: 2px; }

.builder { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.builder #bprev { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 1000px) { .builder { grid-template-columns: minmax(0, 1fr); } .builder #bprev { position: static; max-height: none; } }
/* Introduction record */
.rec { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 760px; }
.rec-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); }
.rec-card.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.rec-card h3 { font-size: 14px; }
.note-block { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; font-size: 13.5px; color: var(--ink-2); }
.note-block .who { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.sysline { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.draft { font: 13px/1.55 var(--f-code); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-row .mono { font-size: 12.5px; }
.proof { display: flex; flex-direction: column; gap: 8px; }
.proof .pi { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 13px; align-items: start; }
.proof .pi svg { margin-top: 2px; }
.proof .pi.ok svg { color: var(--ok); }
.proof .pi.wait svg { color: var(--muted); }
.ptile { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font: 700 15px var(--f-display); background: var(--chip); flex: none; }
.readlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.readlist li { display: flex; gap: 8px; }
.readlist.yes li svg { color: var(--ok); flex: none; margin-top: 2px; }
.readlist.no li svg { color: var(--bad); flex: none; margin-top: 2px; }

/* Settings: billing */
.settings-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.settings-tabs button { all: unset; cursor: pointer; text-align: center; padding: 14px 8px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.settings-tabs button:hover { color: var(--ink); }
.settings-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.settings-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sub-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 0 6px; }
.sub-head h2 { font-size: 22px; font-weight: 700; }
.cur-pill { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; background: var(--panel); }
.cur-pill b { color: var(--accent-fg); }
.included { border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; background: linear-gradient(90deg, var(--accent-soft), transparent), var(--panel); }
.included .code { font: 600 17px/1 var(--f-code); letter-spacing: .12em; color: var(--accent-fg); border: 1.5px dashed var(--accent); border-radius: 8px; padding: 12px 16px; background: var(--panel); text-align: center; user-select: all; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier { border: 1px solid var(--line); border-top: 3px solid var(--tier, var(--muted)); border-radius: 8px; background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--panel-shadow); }
.tier.t-free { --tier: var(--muted); }
.tier.t-pro { --tier: var(--accent); }
.tier.t-guided { --tier: var(--amber); }
.tier.sel { box-shadow: 0 0 0 2px var(--tier); }
.tier h3 { font: 700 18px var(--f-display); text-align: center; }
.tier .tl { font-size: 13px; color: var(--muted); text-align: center; min-height: 36px; }
.tier .amt { text-align: center; font: 700 32px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tier .amt small { font: 500 13px var(--f-body); color: var(--muted); letter-spacing: 0; }
.tier .billed { text-align: center; font: 600 11.5px var(--f-body); color: var(--amber); min-height: 14px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; flex: 1; }
.tier li { display: flex; gap: 8px; }
.tier li svg { color: var(--ok); flex: none; margin-top: 2px; }
.tier .note { font-size: 12.5px; background: var(--amber-soft); color: var(--amber); border-radius: 8px; padding: 10px 12px; }
.tier .choose { width: 100%; }
.tier .choose.is-cur { background: var(--ok-soft); color: var(--ok); border-color: transparent; cursor: default; }
.bill-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.pref:last-child { border-bottom: 0; }
.pref b { font-weight: 600; display: block; }
.pref span.d { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .tiers { grid-template-columns: minmax(0, 1fr); } .included { grid-template-columns: minmax(0, 1fr); } }

.empty { padding: 40px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; }

/* Drawer, modal, toast */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; display: flex; justify-content: flex-end; }
.drawer { width: min(520px, 100%); height: 100%; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer .dh { padding: 16px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding-top: max(16px, env(safe-area-inset-top, 0px)); }
.drawer .db { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.drawer .df { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.scrim.center { justify-content: center; align-items: center; padding: 16px; }
.modal { width: min(760px, 100%); max-height: 90vh; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; box-shadow: var(--shadow); overflow: hidden; }
.modal .db { overflow-y: auto; padding: 0; }
.modal .dh { padding: 16px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.modal .df { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal .db.pad { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.drawer:focus, .modal:focus { outline: none; }
.modal .dh .x, .drawer .dh .x { margin-left: auto; }
.x { all: unset; cursor: pointer; margin-left: auto; padding: 6px; border-radius: 6px; color: var(--muted); }
.x:hover { background: var(--btn-bg); color: var(--ink); }
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--toast-bg); color: var(--toast-ink); border: 1px solid var(--line); padding: 12px 16px; border-radius: 8px; font-size: 13.5px; box-shadow: var(--shadow); max-width: 380px; }
.toast.err { background: var(--bad); color: #fff; border-color: transparent; }

/* Sign-in and sign-up: always light, a centred card like the public pages */
:root:has(.auth) body { background: #ffffff; }
.auth, .lightpal { --bg: #f8fafc; --panel: #ffffff; --panel-2: #f9fafb; --field: #ffffff; --chip: #f3f4f6; --ink: #111827; --ink-2: #374151; --muted: #6b7280;
  --line: #e5e7eb; --line-2: #f3f4f6; --field-line: #d1d5db; --accent-ink: #ffffff; --accent-soft: rgba(130, 141, 248, .14); --accent-fg: #5b63e6;
  --bad: #dc2626; --bad-soft: #fee2e2; --ok: #15803d; --btn-bg: #f1f5f9; --btn-hover: #e2e8f0; --btn-line: transparent; color-scheme: light; }
/* The same light palette for a layer opened over a sign-in or sign-up page */
.lightpal { --scrim: rgba(17, 24, 39, .45); --shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); --panel-shadow: 0 1px 2px rgba(0, 0, 0, .05); color: var(--ink); }
.auth {
  min-height: 100vh; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 70%); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 56px;
  padding: 48px max(32px, env(safe-area-inset-right, 0px)) 72px max(32px, env(safe-area-inset-left, 0px)); }
.auth-pitch { max-width: 600px; justify-self: end; display: flex; flex-direction: column; gap: 22px; }
.auth-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.auth-logo b { display: block; font: 700 26px/1 var(--f-display); letter-spacing: -.02em; color: var(--accent); }
.auth-logo small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.auth-pitch h1 { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: #111827; }
.auth-pitch h1 .hl { color: var(--accent); }
.auth-pitch .lead { font-size: 17px; line-height: 1.6; color: #4b5563; max-width: 540px; }
.auth-facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 6px; }
.auth-facts > div { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.auth-facts svg { color: var(--accent); }
.auth-facts b { font: 700 16px/1.2 var(--f-display); color: #111827; }
.auth-facts span { font-size: 13px; color: #4b5563; }
.auth-box { width: min(440px, 100%); justify-self: start; animation: authIn .35s ease-out; }
.auth-head { text-align: center; }
.auth-head .auth-logo { margin-bottom: 20px; }
.auth-head .m-only { display: none; }
.auth-head h2 { font-size: 24px; font-weight: 600; color: #111827; }
.auth-head p { color: #4b5563; margin-top: 6px; }
.auth-card { background: #ffffff; border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); padding: 32px; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.auth-card .btn.primary.wide { width: 100%; padding: 11px 16px; }
.auth-card .hint { border: 1px dashed var(--field-line); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); background: #f9fafb; }
.auth-card .hint code { font-family: var(--f-code); background: #eef0ff; color: #3f47c9; padding: 1px 6px; border-radius: 4px; }
.auth-alt { text-align: center; margin-top: 22px; color: #4b5563; font-size: 14px; }
.auth-note { text-align: center; color: var(--muted); font-size: 13px; }
.linkbtn { all: unset; cursor: pointer; color: var(--accent-fg); font-weight: 500; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.ifield { position: relative; display: block; }
.field > span.ifield { font: inherit; color: inherit; }
.ifield > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.ifield > .input { padding-left: 40px; }
.err-text { color: var(--bad); font-size: 13px; min-height: 18px; }
/* Sign-up wizard: account, company or personal details, profile, needs */
.auth.reg { grid-template-columns: minmax(0, 672px); justify-content: center; align-items: start; }
.auth.reg .auth-box { width: 100%; justify-self: center; }
.wz-steps { margin-top: 28px; }
.wz-steps .dots { display: flex; align-items: center; }
.wz-steps .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 14px var(--f-body); background: #e5e7eb; color: #6b7280; flex: none; transition: background-color .2s, color .2s; }
.wz-steps .dot.on { background: var(--accent); color: #ffffff; }
.wz-steps .bar { flex: 1; height: 4px; margin: 0 8px; background: #e5e7eb; border-radius: 2px; transition: background-color .2s; }
.wz-steps .bar.on { background: var(--accent); }
.wz-steps .labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #4b5563; }
.wz-steps .labels span.on { color: #111827; font-weight: 500; }
.wz-body { display: flex; flex-direction: column; gap: 16px; animation: wzIn .25s ease-out; }
.wz-body h3 { font-size: 20px; font-weight: 600; color: #111827; }
.typecards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.typecard { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.typecard:hover { border-color: #d1d5db; }
.typecard.on { border-color: var(--accent); background: rgba(130, 141, 248, .06); }
.typecard input { position: absolute; opacity: 0; pointer-events: none; }
.typecard:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.typecard > svg { color: var(--accent); flex: none; }
.typecard b { display: block; font-weight: 500; color: #111827; }
.typecard small { display: block; font-size: 13px; color: #6b7280; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.checklist .check { font-size: 14px; color: #374151; align-items: center; }
.checklist .check input { margin-top: 0; width: 16px; height: 16px; }
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.wz-nav .back { visibility: visible; }
.wz-nav .back.off { visibility: hidden; }
@keyframes authIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wzIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* Admin console */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; justify-content: flex-end; }
.bars .col .pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars .col .pair i { display: block; width: 40%; max-width: 12px; border-radius: 3px 3px 0 0; background: var(--accent); min-height: 1px; }
.bars .col .pair i.b2 { background: var(--amber); }
.bars .col span { font: 500 10px var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar { display: grid; grid-template-columns: 130px minmax(0,1fr) 36px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .t { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.hbar .t i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* Company portal (company.introduceri.com) */
.co { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; font: 700 12px/1 var(--f-display); flex: none; letter-spacing: .02em; }
.co-id { display: flex; align-items: center; gap: 10px; padding: 10px; margin: 0 4px 12px; background: var(--bg); border: 1px solid var(--rail-line); border-radius: 8px; min-width: 0; }
.co-id > div { min-width: 0; }
.co-id b { display: block; font-size: 14px; font-weight: 500; color: var(--rail-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-id span { font-size: 12px; color: var(--rail-muted); }
.av.anon { background: transparent !important; border: 1.5px dashed var(--muted); color: var(--muted); }
.company-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.company-head .cn { min-width: 0; }
.company-head .cn b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-head .cn > span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-head.wrap .cn b, .company-head.wrap .cn > span { white-space: normal; }
/* Brief pipeline: proposed, accepted, introduced, confirmed */
.pipe { display: inline-grid; grid-template-columns: repeat(4, 28px); gap: 3px; }
.pipe b { font: 600 11.5px/1 var(--f-body); font-variant-numeric: tabular-nums; text-align: center; padding: 5px 0; border-radius: 4px; background: var(--chip); color: var(--muted); }
.pipe b.p0.on { background: var(--warn-soft); color: var(--warn); }
.pipe b.p1.on { background: var(--info-soft); color: var(--info); }
.pipe b.p2.on { background: var(--accent-soft); color: var(--accent-fg); }
.pipe b.p3.on { background: var(--ok-soft); color: var(--ok); }
.pipe-key { display: inline-grid; grid-template-columns: repeat(4, 28px); gap: 3px; font: 600 9px/1 var(--f-body); letter-spacing: .03em; color: var(--muted); text-align: center; }
.cov { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.cov b { font: 600 13px var(--f-body); font-variant-numeric: tabular-nums; color: var(--ink); }
/* Activity feed */
.feed { display: flex; flex-direction: column; }
.feed .fi { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 20px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.feed .fi:last-child { border-bottom: 0; }
.feed .fi i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); align-self: center; }
.feed .fi i.k-proposal { background: var(--warn); }
.feed .fi i.k-accepted, .feed .fi i.k-forwarded { background: var(--info); }
.feed .fi i.k-introduced { background: var(--accent); }
.feed .fi i.k-confirmed { background: var(--ok); }
.feed .fi i.k-declined { background: var(--bad); }
.feed .fi .t { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Proposal card */
.prop { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); display: flex; flex-direction: column; box-shadow: var(--panel-shadow); }
.prop.urgent { border-left: 3px solid var(--accent); }
.prop-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.prop-h b { font-size: 13.5px; }
.prop-b { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; padding: 16px; align-items: start; }
.prop-b .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.prop .note { margin: 0 16px 16px; padding: 10px 12px; border-left: 3px solid var(--line); background: var(--panel-2); border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--ink-2); }
.prop .note .who { display: block; font: 600 12px/1.4 var(--f-body); color: var(--muted); margin-bottom: 3px; }
.prop-f { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--panel-2); border-radius: 0 0 8px 8px; flex-wrap: wrap; }
.anon-who { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.anon-who .pn { min-width: 0; }
.anon-who .pn b { display: block; font-weight: 600; }
.anon-who .pn > span { display: block; font-size: 13px; color: var(--ink-2); }
/* Brief cards on the member side */
.briefs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.brief-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); display: flex; flex-direction: column; min-width: 0; box-shadow: var(--panel-shadow); }
.brief-card .bh { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.brief-card .bb { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.brief-card h3 { font-size: 15px; line-height: 1.3; }
.brief-card .why { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brief-card .reward { font: 700 15px/1.2 var(--f-display); font-variant-numeric: tabular-nums; color: var(--amber); }
.brief-card .reward small { display: block; font: 500 12px var(--f-body); color: var(--muted); margin-top: 2px; }
.brief-card .sug { border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.brief-card .bf { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--panel-2); border-radius: 0 0 8px 8px; flex-wrap: wrap; }
.tier.t-team { --tier: var(--accent); }
.tier.t-scale { --tier: var(--amber); }
.tier.t-enterprise { --tier: var(--info); }
.tiers.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-num { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps-num li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; font-size: 13px; color: var(--ink-2); counter-increment: s; }
.steps-num li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font: 600 11px var(--f-body); color: var(--accent-fg); }
.steps-num li b { color: var(--ink); font-weight: 600; }
.seat-meter { display: flex; flex-direction: column; gap: 6px; }
.seat-meter .bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; display: flex; }
.seat-meter .bar i { display: block; height: 100%; background: var(--accent); }
.seat-meter .bar i.inv { background: var(--info); opacity: .6; }
/* Personal sourcing */
.rfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.rfacts span { display: block; font: 500 12px/1.5 var(--f-body); color: var(--muted); }
.feebox b { display: block; font: 700 16px/1.2 var(--f-display); font-variant-numeric: tabular-nums; color: var(--amber); }
.feebox b small { font: 500 12px var(--f-body); color: var(--muted); }
.feebox span { font-size: 13px; color: var(--ink-2); }
.req-card .products { font-size: 13.5px; color: var(--ink); }
.req-card .needs { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.req-card.invited { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.spec-card .spec-head { font-size: 14px; color: var(--ink); font-weight: 500; }
.spec-meta { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
.feeguide { font-size: 13px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 8px; }
.feeguide .eyebrow { display: block; margin-bottom: 2px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cat-card { all: unset; box-sizing: border-box; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; box-shadow: var(--panel-shadow); transition: border-color .15s; }
.cat-card:hover { border-color: var(--muted); }
.cat-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.cat-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-card b { font: 600 14px/1.3 var(--f-display); }
.cat-card p { margin: 0; font-size: 12.5px; color: var(--muted); }
.cat-card .nums { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.cat-card .nums b { font: 700 14px var(--f-display); font-variant-numeric: tabular-nums; }
.subchips { display: flex; flex-wrap: wrap; gap: 6px; }
.subchips button { all: unset; cursor: pointer; font-size: 12px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.subchips button.on { border-color: var(--accent); color: var(--accent-fg); background: var(--accent-soft); }
.subchips button:focus-visible { outline: 2px solid var(--accent); }
.subchecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.subchecks label { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.subchecks label.full { opacity: .55; }
.form-sec { border-top: 1px solid var(--line-2); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.form-sec h3 { font-size: 14px; }
.access-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 12px 16px; font-size: 13px; box-shadow: var(--panel-shadow); }
.access-strip .k { font: 500 12px/1.4 var(--f-body); color: var(--muted); }
.preview-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.preview-pair > div { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pub { min-height: 100vh; background: var(--bg); }
.pub-top { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.pub-top b { font: 700 19px var(--f-display); }
.pub-wrap { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 24px; }
.pub-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pub-hero h1 { font-size: 32px; line-height: 1.15; }
.pub-hero p { color: var(--ink-2); font-size: 15px; margin: 0; }
.reply-card { max-width: 640px; margin: 0 auto; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .pub-hero { grid-template-columns: minmax(0, 1fr); } .pub-hero h1 { font-size: 24px; } .preview-pair { grid-template-columns: minmax(0, 1fr); } }
.demo-switch .short { display: none; }
@media (max-width: 860px) { .co-id { display: none; } .prop-b { grid-template-columns: minmax(0, 1fr); } .briefs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .tiers.four { grid-template-columns: minmax(0, 1fr); } }

/* Responsive */
@media (max-width: 1180px) {
  .rooms { grid-template-columns: 240px minmax(0, 1fr); }
  .room-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); max-height: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .clause { grid-template-columns: minmax(0,1fr); }
  .clause .cn { border-left: 0; border-top: 1px dashed var(--line-2); }
}
@media (max-width: 1000px) {
  .auth { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .auth-pitch, .auth-box { justify-self: center; width: min(560px, 100%); }
  .auth-pitch { gap: 16px; }
  .auth-pitch h1 { font-size: 32px; }
  .auth-pitch .lead { font-size: 15.5px; }
  .auth:not(.reg) .auth-box { order: 1; }
  .auth:not(.reg) .auth-pitch { order: 2; padding-top: 8px; border-top: 1px solid #e5e7eb; }
  .auth:not(.reg) .auth-pitch .auth-logo { display: none; }
  .auth-head .m-only { display: inline-flex; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 0; height: auto; z-index: 20; flex-direction: row; align-items: center; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); overflow-x: auto; gap: 8px; padding-top: max(8px, env(safe-area-inset-top, 0px)); }
  .brand { padding: 0 6px 0 0; min-height: 0; margin: 0; }
  .brand b { font-size: 17px; }
  .brand small { display: none; }
  .nav { flex-direction: row; }
  .nav button { padding: 7px 9px; white-space: nowrap; }
  .nav button .lbl { display: none; }
  .nav button.on .lbl { display: inline; }
  .nav-sep { display: none; }
  .rail-foot { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; align-items: center; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .theme-row { padding: 0; } .theme-row .tl { display: none; } .theme-switch { border: 0; padding: 0; background: transparent; } .theme-switch button:not(.on) { display: none; }
  .meter, .me .who { display: none; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .rooms { grid-template-columns: minmax(0, 1fr); }
  .room-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .room-list .items { max-height: 260px; }
  .topbar, .content { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .topbar h1 { font-size: 21px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 16px; }
  .path { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); padding: 12px 8px; }
  .path .link { width: 18px; }
  .hbar { grid-template-columns: 96px minmax(0,1fr) 30px; }
  .auth { padding: 24px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px)); }
  .auth-pitch h1 { font-size: 28px; }
  .auth-card { padding: 24px 20px; }
}
@media (max-width: 520px) {
  .typecards { grid-template-columns: minmax(0, 1fr); }
  .checklist { grid-template-columns: minmax(0, 1fr); }
  .auth-facts { gap: 18px; }
  .auth-facts > div { min-width: 0; flex: 1 1 40%; }
}

/* Suppliers in an engagement, as a list for drawers */
.sup-list .sup-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.sup-list .sup-row:first-child { border-top: 0; padding-top: 4px; }
.sup-list .sup-meta { margin-left: 34px; gap: 6px; }
.panel > .tabbody > .pb { padding: 20px; }

/* Terms of Use and Privacy Policy
   .legal is the document text, shared by the public pages (/terms, /privacy) and the in-app reader. */
.legal { font-size: 15px; line-height: 1.7; color: var(--ink-2); overflow-wrap: break-word; }
.legal h2 { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); margin: 36px 0 12px; scroll-margin-top: 88px; }
.legal > h2:first-child { margin-top: 4px; }
.legal h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; scroll-margin-top: 88px; }
.legal p { margin: 0 0 12px; }
.legal p.cl { scroll-margin-top: 88px; }
.legal b { color: var(--ink); font-weight: 600; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--accent-fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal .lg-table { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.55; }
.legal th { text-align: left; background: var(--panel-2); color: var(--ink); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.legal td { padding: 10px 14px; border-top: 1px solid var(--line-2); vertical-align: top; min-width: 150px; }
.legal tbody tr:first-child td { border-top: 0; }
.legal .flash { animation: legalFlash 1.8s ease-out; border-radius: 6px; }
@keyframes legalFlash { 0%, 35% { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }

/* On phones each table row becomes a small card, with the column name above each value */
@media (max-width: 640px) {
  .legal .lg-table { border: 0; border-radius: 0; overflow: visible; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .legal tbody tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 6px 0; }
  .legal td, .legal tbody tr:first-child td { border: 0; padding: 6px 14px; min-width: 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
}

/* Public pages: always light, like the sign-in pages */
/* height: auto so the sticky header stays in place on long pages (html and body are otherwise 100% tall) */
body.lp { background: #ffffff; color: var(--ink); height: auto; min-height: 100vh; }
.lp-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px max(24px, env(safe-area-inset-right, 0px)) 10px max(24px, env(safe-area-inset-left, 0px)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); font: 700 19px/1 var(--f-display); letter-spacing: -.02em; }
.lp-brand svg { flex: none; }
.lp-tabs { display: flex; gap: 4px; margin-left: 8px; }
.lp-tabs a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.lp-tabs a:hover { color: var(--ink); background: var(--chip); }
.lp-tabs a.on { background: var(--accent-soft); color: var(--accent-fg); }
.lp-tabs .ls { display: none; }
.lp-top .spacer { flex: 1; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 24px 80px; display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
.lp-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 120px); overflow-y: auto; }
.lp-side ol, .lp-toc-m ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-side a, .lp-toc-m a { display: block; padding: 6px 10px; border-radius: 6px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
.lp-side a:hover, .lp-toc-m a:hover { background: var(--chip); color: var(--ink); }
.lp-doc { max-width: 760px; min-width: 0; }
.lp-doc h1 { font: 700 36px/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ink); margin: 6px 0 10px; }
.lp-meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.lp-toc-m { display: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; margin: 0 0 24px; }
.lp-toc-m summary { cursor: pointer; padding: 8px 6px; font-weight: 500; color: var(--ink); }
.lp-toc-m ol { padding: 0 0 6px; }
.lp-foot { border-top: 1px solid var(--line); padding: 24px max(24px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--muted); font-size: 13px; }
.lp-foot a { color: var(--ink-2); }
@media (max-width: 900px) {
  .lp-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); }
  .lp-side { display: none; }
  .lp-toc-m { display: block; }
  .lp-doc h1 { font-size: 28px; }
  .lp-top { gap: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 560px) {
  .lp-brand span, .lp-signin { display: none; }
  .lp-tabs { margin-left: 0; }
  .lp-tabs .lf { display: none; }
  .lp-tabs .ls { display: inline; }
}

/* In-app reader: a drawer above any open dialog */
.scrim.legal-layer { z-index: 45; }
.legal-drawer { width: min(760px, 100%); }
.legal-drawer .dh { flex-wrap: wrap; row-gap: 10px; }
.legal-drawer .db { gap: 0; padding-top: 16px; }
.legal-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 140px; }
.legal-head h2 { font-size: 18px; }
.legal-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.legal-tools .x { margin-left: 0; }
.legal-switch { display: inline-flex; background: var(--chip); border-radius: 8px; padding: 2px; }
.legal-switch button { all: unset; cursor: pointer; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.legal-switch button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.legal-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.legal-jump { display: block; margin-bottom: 16px; }
.legal-jump select { max-width: 100%; }

/* Links to the documents: sign-in pages, sidebars and public pages */
.auth-legal { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 13px; }
.auth-legal a, .pub-foot a, .rail-legal a { color: var(--muted); text-decoration: none; }
.auth-legal a:hover, .pub-foot a:hover, .rail-legal a:hover { color: var(--ink); text-decoration: underline; }
.auth-check a { color: var(--accent-fg); font-weight: 500; }
.rail-legal { display: flex; gap: 14px; padding: 0 8px; font-size: 12px; }
.rail-legal a { color: var(--rail-muted); }
.rail-legal a:hover { color: var(--rail-strong); }
.pub-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 20px 16px 28px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.legal-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.legal-doc-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); }
.legal-doc-card .row { gap: 8px; }
@media (max-width: 860px) {
  .rail-legal { display: none; }
  .legal-docs { grid-template-columns: minmax(0, 1fr); }
}

/* Introductions: one section for the introductions you are part of and the people you can meet next */
.tabs button .n.hot { background: var(--accent); color: #ffffff; }
.meet .meet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 4px; border-top: 1px solid var(--line-2); }
.meet-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.meet-row:last-child { border-bottom: 0; }
.meet-row .mr-top { display: flex; align-items: flex-start; gap: 12px; }
.meet-row .mr-top .person { flex: 1; min-width: 0; }
.meet-row .mr-top .score { flex: none; padding-top: 4px; }
.meet-row .mr-top .score .b { width: 44px; }
.meet-row .mr-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-left: 42px; min-height: 30px; }
.meet-row .mr-bottom .small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet .meet-more { padding: 4px 20px 16px; }
.meet .meet-more .btn { width: 100%; }
.rooms.solo { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1180px) { .rooms.solo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Trust ratings (member side) ---------- */
.trust { display: inline-flex; flex: none; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--chip); color: var(--ink-2); font-size: 11.5px; vertical-align: middle; white-space: nowrap; }
.trust svg { color: var(--ok); }
.trust b { font: 600 11.5px var(--f-code); color: var(--ink); }
.trust-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); }
.trust-card .row { justify-content: space-between; }
.trust-bars { display: flex; flex-direction: column; gap: 6px; }
.trust-bars .tb { display: grid; grid-template-columns: 150px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font-size: 12.5px; }
.trust-bars .tb .t { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.trust-bars .tb .t i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.trust-bars .tb b { text-align: right; font-size: 12.5px; }
.rate-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; align-items: center; gap: 12px; padding: 4px 0; }
.rate-btns { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rate-btns button { all: unset; cursor: pointer; width: 34px; height: 30px; display: grid; place-items: center; font: 600 13px var(--f-code); color: var(--ink-2); border-left: 1px solid var(--line); }
.rate-btns button:first-child { border-left: 0; }
.rate-btns button:hover { background: var(--btn-hover); }
.rate-btns button.on { background: var(--accent); color: #fff; }
.rate-btns button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 640px) { .rate-row { grid-template-columns: 1fr; gap: 6px; } .trust-bars .tb { grid-template-columns: 110px minmax(0, 1fr) 30px; } }

/* ---------- Search people by industry ---------- */
.ind { position: relative; min-width: 0; }
.ind-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.ind-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ind-btn .caret { flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.ind-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(320px, 86vw); display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.ind-pop[hidden] { display: none; }
.ind-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; }
.ind-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.ind-opt:hover { background: var(--panel-2); }
.ind-opt.none span:nth-child(2) { color: var(--muted); }
.ind-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-chips:empty { display: none; }
.ind-chips .chip { cursor: pointer; border: 0; color: var(--ink); }
.ind-chips .chip svg { color: var(--muted); }
.ind-chips .chip:hover svg { color: var(--bad); }

/* ---------- Company plans by size ---------- */
.tier.off { opacity: .55; }

/* ---------- Wordmark: introducerI, the brand revolves around the last I ---------- */
.wm-i { display: inline-block; color: var(--accent); margin-left: .05em; }
.wm-i svg { display: block; width: .43em; height: .72em; }
.auth-logo b, .lp-brand span { color: var(--ink); }
.auth-logo b .wm-i, .lp-brand .wm-i { color: var(--accent); }
.meet-row .mr-bottom .spacer { flex: 1; }
.meet-row .mr-bottom .small:has(.trust) { white-space: normal; overflow: visible; }
