/* Layout: cream page, white working panels, teal hero/premium surfaces, orbital art pinned behind content. */
:root {
  --cream: #F8F6F1;
  --panel: #FFFFFF;
  --teal: #063E3B;
  --teal-2: #005C51;
  --teal-deep: #0F2E2A;
  --ink: #111636;
  --muted: #536B7C;
  --mint: #E4F3EC;
  --mint-soft: #F1F8F4;
  --mint-bright: #BDEBD3;
  --gold: #BB9149;
  --gold-soft: #F7EEDD;
  --rule: #E1E6E7;
  --stone: #C9D4D0;
  --danger: #A3352B;
  --danger-soft: #FBEDEB;
  /* Accent: warm coral, used sparingly for attention (unread, countdown, celebration) */
  --accent: #E8623F;
  --accent-deep: #C44322;
  --accent-soft: #FCE8E1;
  /* Gold with a coral hue, for the highlight borders */
  --gold-hue: linear-gradient(120deg, #E9BC63 0%, #E8623F 38%, #C8963F 68%, #F0C978 100%);
  /* Liquid glass */
  --glass: rgba(255, 255, 255, .56);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .8);
  --glass-blur: blur(20px) saturate(175%);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(17, 22, 54, .05), 0 12px 32px rgba(17, 22, 54, .08);
  --shadow: 0 1px 2px rgba(17, 22, 54, .04), 0 8px 24px rgba(17, 22, 54, .06);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --r-card: 14px;
  --r-hero: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid #3B6FD6; outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Orbital art (never intercepts clicks) ---------- */
.art { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.art svg { position: absolute; }
.art .tr { top: 0; right: 0; width: min(760px, 70vw); height: auto; }
.art .bl { bottom: 0; left: 0; width: min(330px, 30vw); height: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-in {
  max-width: 1300px; margin: 0 auto; height: 74px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 25px; letter-spacing: -0.02em; text-decoration: none; color: #063A35; background: none; border: 0; cursor: pointer; padding: 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav button { border: 0; background: none; padding: 11px 22px; border-radius: 999px; cursor: pointer; font-size: 15.5px; color: #344158; }
.nav button:hover { background: rgba(6, 62, 59, .06); }
.nav button.on { background: var(--teal); color: #fff; font-weight: 700; }
.header .spacer { flex: 1; }
.demo-badge { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 7px 18px; font-size: 13px; white-space: nowrap; }
.avatar-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--teal-deep); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; position: relative; }
.avatar-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.menu-btn svg { width: 24px; height: 24px; }
.acct-menu {
  position: absolute; right: 24px; top: 70px; width: 290px; background: #fff; border: 1px solid var(--rule);
  border-radius: var(--r-card); box-shadow: var(--shadow); padding: 8px; z-index: 40;
}
.acct-menu .who { padding: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.acct-menu .who b { display: block; }
.acct-menu .who span { color: var(--muted); font-size: 13px; }
.acct-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.acct-menu button:hover { background: var(--mint-soft); }
.mobile-nav { display: none; }

/* ---------- Page ---------- */
main { position: relative; z-index: 1; }
.page {
  max-width: 1300px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-block: 28px 40px;
}
.footer-note { max-width: 1300px; margin: 24px auto 0; border-top: 1px solid var(--rule); padding: 22px 24px 90px; text-align: center; font-size: 12.5px; color: var(--muted); position: relative; z-index: 1; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #3B4A5C; }
.back-row { margin-bottom: 14px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 6px 14px 6px 10px; font-size: 13.5px; font-weight: 700; color: var(--teal-deep); cursor: pointer; }
.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover { background: var(--mint-soft); }
.crumb-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.crumbs { font-size: 13.5px; color: #3B4A5C; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs button { border: 0; background: none; padding: 0; cursor: pointer; color: #3B4A5C; }
.crumbs button:hover { text-decoration: underline; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 14px 0 26px; }
.page-head h1 { font-size: 38px; margin: 8px 0 10px; }
.page-head p { color: #3B4A5C; font-size: 16px; }
.head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 14.5px;
  border: 1.5px solid var(--teal); background: #fff; color: var(--teal); cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { background: var(--mint-soft); }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-2); }
.btn.sm { padding: 7px 16px; font-size: 13.5px; }
.btn.lg { padding: 14px 26px; font-size: 15.5px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(6, 62, 59, .06); }
.btn.mint { background: var(--mint-bright); border-color: var(--mint-bright); color: var(--teal-deep); }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.on-dark:hover { background: rgba(255, 255, 255, .08); }
.btn.white { background: #fff; border-color: #fff; color: var(--teal-deep); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn.primary[disabled] { background: #7F9A96; border-color: #7F9A96; opacity: 1; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; display: inline-flex; gap: 10px; align-items: center; color: var(--teal-deep); }
.link-btn svg { width: 17px; height: 17px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--mint-soft); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Chips / pills ---------- */
.pill-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.pill-tabs button { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-size: 14px; }
.pill-tabs button.on { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--mint); color: var(--teal-deep); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2E9B6A; }
.status.closed { background: #EEF0F1; color: #3B4A5C; }
.status.closed::before { background: #8A97A3; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 10px; border-radius: 7px; background: #EEF1F2; color: #2A3448; white-space: nowrap; }
.chip svg { width: 15px; height: 15px; }
.chip.mint { background: var(--mint); color: var(--teal-deep); }
.chip.gold { background: var(--gold-soft); color: #7A5A22; }
.chip.warn { background: var(--danger-soft); color: var(--danger); }
.chip.strong { font-weight: 700; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #E8ECED; font-size: 12px; font-weight: 700; }

/* ---------- Cards ---------- */
.card { background: var(--panel); border: 1px solid rgba(225, 230, 231, .8); border-radius: var(--r-card); box-shadow: var(--shadow); }
.card-head { padding: 22px 24px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--rule); }
.card-head h2 { font-size: 21px; }
.card-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.card-head .meta { font-size: 13px; color: #3B4A5C; }
.card-body { padding: 20px 24px; }
.note { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-radius: 12px; background: var(--mint-soft); border: 1px solid #D7EBDF; font-size: 13.5px; color: #2A3448; }
.note svg { width: 20px; height: 20px; flex: none; }
.note.gold { background: #FCF6EA; border-color: #EEDDB9; }
.aside-card { padding: 22px 22px; border-top: 2px solid var(--gold); background: #FFFDF8; border-radius: var(--r-card); box-shadow: var(--shadow); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.aside-card h3 { font-size: 17px; margin-bottom: 8px; }
.aside-card p { font-size: 13px; color: var(--muted); }

/* ---------- Logos ---------- */
.logo { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.logo svg { width: 60%; height: 60%; }
.logo.sm { width: 34px; height: 34px; border-radius: 9px; }
.logo.lg { width: 80px; height: 80px; border-radius: 16px; }
.logo.acct { background: var(--mint); color: var(--teal-deep); }
.initials { width: 44px; height: 44px; border-radius: 50%; background: #EEF1F2; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #3B4A5C; flex: none; }
.initials.lg { width: 68px; height: 68px; font-size: 18px; }
.co-link { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: var(--ink); font-size: 15px; text-align: left; }
.co-link:hover { color: var(--teal-2); }
.person-link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-size: 13.5px; text-align: left; }
.person-link:hover { color: var(--teal-2); text-decoration: underline; }
.who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.who-text { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }

/* ---------- Home ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-hero);
  background: linear-gradient(100deg, #10302C 0%, #163A35 55%, #22493F 100%);
  color: #fff; padding: 52px 48px 46px;
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art svg { position: absolute; right: 0; top: 0; height: 100%; width: auto; }
.hero > *:not(.hero-art) { position: relative; }
.hero .eyebrow { color: #E7EFEC; }
.hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.04; margin: 22px 0 22px; max-width: 520px; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: #A9E5C5; }
.hero p { font-size: 17px; max-width: 640px; color: #EAF1EF; }
.hero-actions { display: flex; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.steps-card { margin-top: 20px; padding: 30px 32px 26px; }
.steps-card h2 { font-size: 22px; }
.steps-card > p { color: #3B4A5C; font-size: 13.5px; margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.step { display: flex; gap: 16px; }
.step-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; flex: none; }
.step-ico.gold { background: var(--gold-soft); color: var(--gold); }
.step-ico svg { width: 24px; height: 24px; }
.step small { font-size: 11.5px; color: var(--muted); }
.step h3 { font-size: 15px; margin: 6px 0 8px; }
.step p { font-size: 13px; color: #3B4A5C; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 18px; }
.rule { display: flex; gap: 14px; align-items: center; font-size: 13.5px; }
.rule .step-ico { width: 40px; height: 40px; }
.rule b { display: block; }
.rule span { color: #3B4A5C; font-size: 13px; }
.tagline { display: flex; justify-content: center; gap: 18px; font-size: 12.5px; color: #3B4A5C; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Accounts list ---------- */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; margin-top: 22px; }
.acct-card { padding: 24px; display: flex; flex-direction: column; }
.acct-card .top { display: flex; justify-content: space-between; align-items: center; }
.acct-card h3 { font-size: 20px; margin-top: 22px; }
.acct-card .sub { color: #3B4A5C; font-size: 13px; margin-top: 4px; }
.acct-card .amt { font-size: 32px; font-weight: 700; color: var(--teal-deep); letter-spacing: -0.03em; margin-top: 24px; }
.acct-card .amt-label { font-size: 13px; color: #3B4A5C; }
.acct-card .chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.acct-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; color: #3B4A5C; gap: 10px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ---------- Room ---------- */
.room-title { display: flex; gap: 20px; align-items: center; margin: 18px 0 22px; }
.room-title h1 { font-size: 36px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.room-title p { color: #3B4A5C; font-size: 17px; margin-top: 6px; }
.crumb-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.preview-link { border: 0; background: none; cursor: pointer; color: var(--teal-2); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.preview-link svg { width: 20px; height: 20px; }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: stretch; }
.prem {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: linear-gradient(100deg, #12302C, #1D4A42); color: #fff; padding: 26px 32px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
}
.prem > * { position: relative; }
.prem .prem-art { position: absolute; inset: 0; pointer-events: none; }
.prem .prem-art svg { position: absolute; right: 0; top: 0; height: 100%; width: auto; }
.prem .lbl { font-size: 16px; }
.prem .big { font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin: 6px 0 4px; }
.prem .by { font-size: 15px; }
.prem .hint { font-size: 12.5px; margin-top: 10px; color: #DCE8E4; }
.timing { padding: 18px 22px 14px; display: flex; flex-direction: column; justify-content: center; gap: 14px; width: 100%; max-width: 560px; justify-self: center; }
.timing-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; }
.tcell { display: flex; gap: 12px; padding: 0 18px; border-left: 1px solid var(--rule); align-items: center; }
.tcell:first-child { border-left: 0; }
.tcell .ti { width: 40px; height: 40px; }
.tcell b { font-size: 18px; }
.timing .foot { text-align: center; }
.tcell .ti { width: 46px; height: 46px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; flex: none; }
.tcell .ti.gold { background: var(--gold-soft); color: var(--gold); }
.tcell .ti svg { width: 22px; height: 22px; }
.tcell small { font-size: 13px; display: block; }
.tcell b { font-size: 20px; display: block; letter-spacing: -0.02em; white-space: nowrap; }
.tcell .fine { font-size: 12px; color: var(--muted); margin-top: 4px; }
.timing .foot { border-top: 1px solid var(--rule); padding-top: 12px; font-size: 12.5px; color: #3B4A5C; }
.tabs { display: flex; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 11px 22px; border-radius: 14px 14px 0 0; cursor: pointer; display: inline-flex; gap: 12px; align-items: center; font-size: 14px; position: relative; color: #2A3448; }
.tabs button.on { background: var(--mint); font-weight: 700; }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -3px; height: 3px; border-radius: 3px; background: var(--teal-deep); }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.side-nav { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 92px; }
.side-nav .shortcut { border-radius: var(--r-card); width: 100%; }
.side-nav .shortcut.on { border-color: #9CCBB5; background: var(--mint-soft); }
.room-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.room-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.banner { display: flex; gap: 18px; align-items: center; padding: 18px 26px; border-radius: var(--r-card); background: var(--mint-soft); border: 1px solid #D7EBDF; margin-bottom: 16px; }
.banner .step-ico { background: var(--gold-soft); color: var(--gold); }
.banner b { font-size: 16px; display: block; }
.banner span { font-size: 13.5px; color: #2A3448; }
.preview-bar { display: flex; gap: 22px; align-items: center; padding: 16px 20px; border-radius: 12px; background: #FCF1DA; border: 1px solid #EEDDB9; margin-bottom: 20px; font-size: 13.5px; flex-wrap: wrap; }
.preview-bar svg { width: 22px; height: 22px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; min-width: 640px; }
table.t th { text-align: left; font-weight: 400; font-size: 13px; color: #2A3448; padding: 14px 24px; background: #FBFCFC; border-bottom: 1px solid var(--rule); }
table.t td { padding: 18px 24px; border-bottom: 1px solid var(--rule); vertical-align: middle; font-size: 14px; }
table.t tr:last-child td { border-bottom: 0; }
td.prem-cell { font-size: 17px; font-weight: 700; white-space: nowrap; }
td.when { font-size: 13px; color: #2A3448; white-space: nowrap; }
.quote-cell { display: flex; gap: 12px; align-items: center; }
.quote-cell > :first-child { min-width: 128px; justify-content: center; }
.private-q { font-size: 13px; color: #3B4A5C; display: inline-flex; }
.leading { display: inline-flex; gap: 7px; align-items: center; background: var(--gold-soft); color: #7A5A22; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.leading svg { width: 18px; height: 18px; color: var(--gold); }

/* Whole-card click targets */
.clickable { cursor: pointer; transition: box-shadow .15s, border-color .15s, background .15s; }
.acct-card.clickable:hover { border-color: #BFD8CC; box-shadow: 0 2px 4px rgba(17, 22, 54, .05), 0 14px 32px rgba(17, 22, 54, .1); }
tr.clickable:hover td, .c-row.clickable:hover, .doc-row.clickable:hover { background: var(--mint-soft); }
.inv-room-title { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #FBFCFC; border: 1px solid var(--rule); }
.inv-room-title b { display: block; font-size: 16px; }
.inv-room-title span { font-size: 12.5px; color: #3B4A5C; }
.row-you td { background: #FBFDFC; }

/* Message list */
.msg-card .card-head { align-items: center; border-bottom: 0; padding-bottom: 12px; }
.msg-card h2 { display: flex; gap: 12px; align-items: center; }
.msg-list { padding: 0 18px 8px; }
.msg-item { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--rule); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; text-align: left; }
.msg-item:hover { background: #FAFCFB; }
.msg-item .ico { width: 34px; display: grid; place-items: center; flex: none; }
.msg-item .ico svg { width: 20px; height: 20px; }
.msg-item .tx { flex: 1; min-width: 0; }
.msg-item b { display: block; font-size: 14px; }
.msg-item span { font-size: 12px; color: #3B4A5C; }
.msg-item .chev { width: 18px; height: 18px; }

/* Shortcuts */
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shortcut { display: flex; gap: 14px; align-items: center; padding: 18px; cursor: pointer; border: 1px solid rgba(225, 230, 231, .8); background: #fff; text-align: left; }
.shortcut:hover { border-color: #BFD8CC; }
.shortcut svg.ic { width: 26px; height: 26px; flex: none; }
.shortcut .tx { flex: 1; }
.shortcut b { display: block; font-size: 13.5px; }
.shortcut span { font-size: 12px; color: #3B4A5C; }
.shortcut .chev { width: 16px; height: 16px; flex: none; }

/* Coverage */
.cov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.cov { border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.cov b { display: block; font-size: 14px; }
.cov span { font-size: 13px; color: #3B4A5C; }

/* Docs */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 18px 4px; }
.doc-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; }
.doc-row .di { width: 32px; height: 32px; border-radius: 8px; background: var(--mint); display: grid; place-items: center; flex: none; }
.doc-row .di svg { width: 18px; height: 18px; }
.doc-row .tx { flex: 1; min-width: 0; }
.doc-row b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-row span { font-size: 12px; color: #3B4A5C; }
.upload-bar { display: flex; align-items: center; gap: 12px; margin: 10px 18px 16px; padding: 10px 14px; border: 1.5px dashed #CFD8DA; border-radius: 12px; }
.upload-bar > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.upload-bar .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upload-bar b { font-size: 13.5px; }
.upload-bar small { font-size: 12px; color: #3B4A5C; }
.upload-bar .progress { width: 100%; max-width: 260px; margin-top: 4px; }
.dropzone { margin: 22px 24px 24px; border: 1.5px dashed #CFD8DA; border-radius: 12px; padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dropzone b { font-size: 14px; }
.dropzone small { color: #3B4A5C; }
.progress { height: 6px; width: 220px; background: #E8ECED; border-radius: 6px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--teal-2); width: 0; transition: width .2s; }

/* Key/value list */
.kv { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: #3B4A5C; }
.kv b { text-align: right; }

/* Carrier rows */
.c-row { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--rule); }
.c-row:last-child { border-bottom: 0; }
.c-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.c-row .state { font-size: 13px; color: #3B4A5C; }
.c-row .why { font-size: 13px; color: #3B4A5C; }
.c-row .tags { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.section-head h2 { font-size: 21px; }
.section-head p { font-size: 13px; color: #3B4A5C; margin-top: 4px; }
.fine-print { font-size: 12.5px; color: #3B4A5C; }

/* Updates */
.update { display: flex; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--rule); }
.update .step-ico { width: 40px; height: 40px; border-radius: 50%; }
.update b { font-size: 16px; display: block; }
.update p { font-size: 13.5px; color: #2A3448; margin: 6px 0; }
.update small { font-size: 12.5px; color: #3B4A5C; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .lbl-text { font-size: 13px; color: #2A3448; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid #D5DCDE; background: #fff; border-radius: 10px; padding: 12px 14px; font-size: 14px;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: 2px solid #3B6FD6; outline-offset: 0; border-color: transparent; }
.input.invalid { border-color: var(--danger); }
.err { font-size: 12.5px; color: var(--danger); min-height: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.check input { margin-top: 3px; width: 16px; height: 16px; }

/* Bid form */
.bid-form { display: grid; grid-template-columns: minmax(150px, 210px) minmax(170px, 260px) max-content; justify-content: start; gap: 10px; margin-top: 14px; align-items: stretch; }
.money { display: flex; align-items: center; gap: 6px; border: 1px solid #D5DCDE; border-radius: 10px; padding: 0 12px; background: #fff; height: 44px; }
.money span { color: #3B4A5C; }
.money input { border: 0; outline: 0; padding: 0; width: 100%; font-size: 14.5px; background: transparent; }
.money:focus-within { outline: 2px solid #3B6FD6; }
.attach { border: 1px solid #D5DCDE; border-radius: 10px; background: #fff; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #2A3448; padding: 0 12px; height: 44px; min-width: 0; }
.attach span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach svg { width: 18px; height: 18px; flex: none; }
.attach:focus-within { outline: 2px solid #3B6FD6; }
.attach.has { background: var(--mint-soft); border-color: #BFD8CC; }
.attach.disabled { cursor: not-allowed; }
.submit-bid { border-radius: 10px; padding: 0 20px; height: 44px; }
.bid-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: #2A3448; flex-wrap: wrap; align-items: center; }
.buy-link { border: 0; background: none; cursor: pointer; font-weight: 700; display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: var(--teal-deep); }
.buy-link svg { width: 18px; height: 18px; }
.buy-link[disabled] { color: #8A97A3; cursor: not-allowed; }

/* Selects: custom chevron inset from the edge */
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111636' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px 16px; }

/* Rolodex */
.filters { display: grid; grid-template-columns: minmax(0, 1fr) 200px 250px; gap: 10px; max-width: 980px; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #D5DCDE; border-radius: 10px; padding: 0 14px; height: 42px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; padding: 0; flex: 1; font-size: 14px; background: transparent; min-width: 0; height: 100%; }
.search:focus-within { outline: 2px solid #3B6FD6; }
.filters select.input { height: 42px; padding-top: 0; padding-bottom: 0; font-size: 14px; }
table.t.compact th { padding: 10px 18px; }
table.t.compact td { padding: 11px 18px; font-size: 13.5px; }
table.t.compact .logo { width: 36px; height: 36px; border-radius: 9px; }
table.t.compact .co-link { font-size: 14px; }
table.t.compact .lines-cell div { line-height: 1.6; }
table.t.compact td:last-child { text-align: center; width: 1%; }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct-search { width: min(360px, 100%); }
.pick-list { border: 1px solid var(--rule); border-radius: 12px; max-height: 300px; overflow-y: auto; }
.pick-list.short { max-height: 220px; }
.pick-group { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding: 12px 14px 6px; background: #FBFCFC; }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-top: 1px solid var(--rule); background: #fff; cursor: pointer; }
.pick-row:hover { background: var(--mint-soft); }
.pick-row.on { background: var(--mint-soft); }
.pick-row[disabled] { cursor: not-allowed; opacity: .7; }
.pick-row .tx { flex: 1; min-width: 0; }
.pick-row b { display: block; font-size: 14px; }
.pick-row .tx span { font-size: 12.5px; color: #3B4A5C; }
.list-meta { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 14px; gap: 10px; flex-wrap: wrap; }
.list-meta .chips { display: flex; gap: 10px; }
.code b { display: block; font-size: 13px; }
.code span { font-size: 12px; color: #3B4A5C; }
.lines-cell div { font-size: 13px; line-height: 1.8; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #EEF1F2, #F7F9F9, #EEF1F2); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* Profile */
.profile-head { display: flex; gap: 24px; align-items: center; padding: 30px 32px; flex-wrap: wrap; }
.profile-head .tx { flex: 1; min-width: 240px; }
.profile-head h1 { font-size: 34px; margin: 10px 0 6px; }
.profile-head p { color: #3B4A5C; }
.profile-head .tags { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.interest { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--mint); color: var(--teal-deep); white-space: nowrap; }
.interest.refer { background: #EEF1F2; color: #2A3448; }
.interest.excluded { background: var(--danger-soft); color: var(--danger); }

/* Wizard */
.stepper { display: flex; gap: 22px; margin: 6px 0 24px; flex-wrap: wrap; }
.stepper button { display: inline-flex; gap: 10px; align-items: center; border: 0; background: none; cursor: pointer; font-size: 13.5px; color: #3B4A5C; padding: 0; }
.stepper i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #CFD8DA; display: grid; place-items: center; font-size: 12px; background: #fff; }
.stepper .on { color: var(--ink); font-weight: 700; }
.stepper .on i { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.stepper .done i { background: var(--mint); border-color: var(--mint); color: var(--teal-deep); }
.wiz-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.wiz-card { padding: 30px 28px; }
.wiz-card h2 { font-size: 23px; }
.wiz-card > p { color: #3B4A5C; font-size: 14px; margin: 6px 0 22px; }
.wiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.slot { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.slot .tx { flex: 1; min-width: 200px; }
.slot b { display: block; font-size: 14px; }
.slot span { font-size: 12.5px; color: #3B4A5C; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pick { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pick .tx { flex: 1; min-width: 0; }
.pick input { width: 18px; height: 18px; }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(40, 52, 60, .42); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 24px; overflow-y: auto; }
.modal { background: #fff; border-radius: 18px; width: min(820px, 100%); box-shadow: 0 30px 80px rgba(17, 22, 54, .25); }
.modal.narrow { width: min(650px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--rule); }
.modal-head h2 { font-size: 21px; }
.modal-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 26px 22px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.pick-card { display: flex; gap: 14px; align-items: center; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.pick-card .tx { flex: 1; min-width: 0; }
.pick-card b { display: block; font-size: 14px; }
.pick-card span { font-size: 13px; color: #3B4A5C; overflow-wrap: anywhere; }
.quote-doc { border: 1px solid var(--rule); border-radius: 12px; padding: 24px; background: #FCFCFA; font-size: 13.5px; }
.quote-doc h3 { font-size: 18px; margin-bottom: 4px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--teal-deep); color: #fff; border-radius: 12px; padding: 12px 18px; font-size: 14px; box-shadow: var(--shadow); max-width: min(560px, 90vw); }
.toast.bad { background: var(--danger); }

/* ---------- Message dock ---------- */
.dock { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 0; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.launcher { display: flex; align-items: center; gap: 12px; background: var(--teal-deep); color: #fff; border: 0; border-radius: 12px 12px 0 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); cursor: pointer; font-weight: 700; font-size: 15px; min-width: 214px; }
.launcher svg { width: 22px; height: 22px; }
.launcher .count { background: #fff; color: var(--teal-deep); }
.launcher .chev { margin-left: auto; width: 18px; height: 18px; transition: transform .15s; }
.launcher[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.dock-list { width: 360px; background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(17, 22, 54, .2); border: 1px solid var(--rule); max-height: 60vh; overflow-y: auto; }
.dock-list h3 { font-size: 16px; padding: 16px 18px 6px; }
.dock-list .grp { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 12px 18px 4px; font-weight: 700; }
.dock-list .msg-list { padding: 0 12px 8px; }
.chat-min { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); cursor: pointer; font-size: 13.5px; }
.chat-min b { font-size: 14px; }
.chat {
  width: 390px; height: min(470px, calc(100vh - 170px)); background: #fff; border-radius: 16px; border: 1px solid var(--rule);
  box-shadow: 0 18px 50px rgba(17, 22, 54, .22); display: flex; flex-direction: column; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--rule); }
.chat-head .tx { flex: 1; min-width: 0; }
.chat-head b { display: block; font-size: 14.5px; }
.chat-head span { font-size: 12px; color: #3B4A5C; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-start; }
.bubble-row.me { justify-content: flex-end; }
.bubble-row .initials { width: 30px; height: 30px; font-size: 10px; background: #3B4A5C; color: #fff; }
.bubble { max-width: 82%; }
.bubble .b { background: #EEF0F3; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.me .bubble .b { background: var(--mint); }
.bubble .who-lbl { font-size: 11.5px; font-weight: 700; color: #3B4A5C; margin-bottom: 4px; }
.bubble .meta { font-size: 11px; color: #3B4A5C; margin-top: 4px; }
.me .bubble .meta { text-align: right; }
.bubble .att { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; background: rgba(255, 255, 255, .7); border-radius: 8px; padding: 4px 8px; }
.bubble .att svg { width: 14px; height: 14px; }
.bubble .retry { border: 0; background: none; color: var(--danger); font-weight: 700; cursor: pointer; font-size: 11.5px; padding: 0; }
.chat-scope { font-size: 11.5px; text-align: center; color: var(--muted); }
.chat-foot { border-top: 1px solid var(--rule); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; }
.chat-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border: 1.5px solid #3B6FD6; border-radius: 12px; padding: 11px 12px; font-size: 13.5px; }
.chat-compose textarea:focus { outline: 0; }
.send-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-deep); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.send-btn svg { width: 18px; height: 18px; }
.chat-pending-att { font-size: 12px; display: flex; gap: 8px; align-items: center; }
.chat-readonly { font-size: 12.5px; color: #3B4A5C; text-align: center; padding: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .summary { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
  .nav button { padding: 10px 14px; }
}
@media (max-width: 960px) {
  .room-grid, .profile-grid, .wiz-grid { grid-template-columns: minmax(0, 1fr); }
  .room-side { order: -1; }
  .side-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav, .demo-badge.wide { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .header-in { height: 66px; gap: 12px; }
  .brand { font-size: 22px; }
  .mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 16px; border-top: 1px solid var(--rule); background: #fff; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav button { text-align: left; border: 0; background: none; padding: 12px; border-radius: 10px; font-size: 16px; cursor: pointer; }
  .mobile-nav button.on { background: var(--mint); font-weight: 700; }
}
@media (max-width: 640px) {
  .page { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .header-in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero { padding: 34px 26px; }
  .hero-actions .btn { width: 100%; }
  .steps, .rules, .cov-grid, .form-grid, .shortcuts { grid-template-columns: 1fr; }
  .steps-card { padding: 26px 22px; }
  .timing-row { grid-template-columns: 1fr; gap: 14px; justify-content: stretch; }
  .doc-grid, .side-nav { grid-template-columns: 1fr; }
  .acct-search { width: 100%; }
  .tcell { border-left: 0; padding: 0; }
  .bid-form { grid-template-columns: 1fr; }
  .submit-bid { padding: 14px; }
  .room-title h1, .page-head h1 { font-size: 28px; }
  .room-title .logo.lg { width: 60px; height: 60px; }
  .head-actions { align-items: flex-start; }
  .filters { grid-template-columns: 1fr; }
  .c-row, .doc-row { flex-wrap: wrap; }
  .demo-badge { display: none; }
  .dock { right: 0; left: 0; align-items: stretch; }
  .launcher { border-radius: 0; justify-content: flex-start; }
  .dock-list { width: 100%; border-radius: 14px 14px 0 0; max-height: 70vh; }
  .chat { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 70; }
  .acct-grid { grid-template-columns: 1fr; }
  .art .tr { width: 90vw; opacity: .7; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===================== Layout v3: sidebars, room banner, rows ===================== */
.shell-page { max-width: 1440px; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: start; }
.shell-main { min-width: 0; }
.app-side, .room-side-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 0; border-left: 3px solid transparent; background: none; border-radius: 10px; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; width: 100%; }
.side-item svg { width: 20px; height: 20px; flex: none; color: #2A3448; }
.side-item:hover { background: rgba(6, 62, 59, .05); }
.side-item.on { background: var(--mint); border-left-color: var(--teal-deep); font-weight: 700; }
.side-badge { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--mint-bright); color: var(--teal-deep); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.app-side .side-badge { background: var(--teal-deep); color: #fff; }
.side-back { align-self: flex-start; margin-bottom: 10px; }

.room-banner { position: relative; z-index: 1; overflow: hidden; background: linear-gradient(100deg, #0B302B 0%, #0F3A34 60%, #174A42 100%); color: #fff; }
.rb-art { position: absolute; inset: 0; pointer-events: none; }
.rb-art svg { position: absolute; right: 0; top: 0; height: 100%; width: auto; }
.rb-in { position: relative; max-width: 1440px; margin: 0 auto; padding-block: 26px 28px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rb-in .logo.lg { width: 64px; height: 64px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.rb-title { flex: 1; min-width: 240px; }
.rb-title h1 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rb-title p { color: #DCE8E4; font-size: 17px; margin-top: 6px; }
.rb-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.rb-time { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.rb-time > span { font-size: 13px; color: #CFE0DA; }
.rb-time > b { font-size: 22px; letter-spacing: -0.01em; }
.rb-time small { font-size: 12.5px; color: #CFE0DA; }
.rb-time small b { color: #fff; }
.rb-link { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.rb-link svg { width: 16px; height: 16px; }
.rb-link:hover { background: rgba(255, 255, 255, .14); }
.room-page { padding-top: 24px; }
.room-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.room-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.room-right .side-nav { position: static; }

.lead-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px 30px; border: 1.5px solid var(--gold); border-radius: var(--r-card); background: var(--mint-soft); margin-bottom: 18px; }
.lead-card .lbl { font-size: 16px; }
.lead-card .big { font-size: clamp(34px, 4vw, 50px); font-weight: 700; color: var(--teal-deep); letter-spacing: -0.035em; line-height: 1.1; margin: 6px 0; }
.lead-card .by { font-size: 15px; }
.lc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.lc-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.lc-stats div { display: flex; flex-direction: column; gap: 2px; }
.lc-stats span { font-size: 12px; color: var(--muted); }
.lc-stats b { font-size: 16px; }

.stand-card { border: 1.5px solid var(--gold); border-radius: var(--r-card); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.stand-top { position: relative; overflow: hidden; background: linear-gradient(100deg, #12302C, #1D4A42); color: #fff; padding: 22px 28px; }
.stand-top > *:not(.rb-art) { position: relative; }
.stand-top .lbl { font-size: 16px; }
.stand-top .big { font-size: clamp(34px, 4vw, 50px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin: 6px 0 4px; }
.stand-top .by { font-size: 15px; }
.stand-top .hint { font-size: 12.5px; color: #DCE8E4; margin-top: 8px; }

.place-bid h2 { font-size: 21px; }
.pb-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pb-max { font-size: 13.5px; margin-top: 6px; }
.pb-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pb-form .money, .pb-form .attach { height: 46px; }
.pb-form .submit-bid { height: 46px; width: 100%; font-size: 15.5px; background: #0E6B5C; border-color: #0E6B5C; }
.pb-form .submit-bid:hover { background: var(--teal-2); }
.buy-link.center { display: flex; justify-content: center; width: 100%; margin-top: 10px; font-weight: 400; }
.buy-link.center b { margin-left: 4px; }
.pb-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

.acct-list { display: flex; flex-direction: column; gap: 12px; }
.acct-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 22px; align-items: center; padding: 16px 22px; }
.acct-row > .logo { width: 54px; height: 54px; }
.acct-row:hover { border-color: #BFD8CC; box-shadow: 0 2px 4px rgba(17, 22, 54, .05), 0 12px 28px rgba(17, 22, 54, .09); }
.ar-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ar-title h3 { font-size: 18px; }
.acct-row .sub { font-size: 13px; color: #3B4A5C; margin-top: 2px; }
.ar-amt { display: flex; gap: 12px; align-items: baseline; margin-top: 6px; flex-wrap: wrap; }
.ar-amt b { font-size: 24px; color: var(--teal-deep); letter-spacing: -0.02em; }
.ar-amt span { font-size: 13px; color: #3B4A5C; }
.ar-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12.5px; color: #3B4A5C; text-align: right; }
.head-actions .acct-search { width: 300px; }

.rolo-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rolo-tools .search { flex: 1; min-width: 220px; height: 46px; }
.rolo-tools select.input { width: 180px; height: 46px; padding-top: 0; padding-bottom: 0; font-size: 14px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; padding: 9px 22px; border-radius: 9px; font-weight: 700; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.seg button.on { background: #0E6B5C; color: #fff; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }

.uw-head { display: flex; gap: 24px; align-items: center; }
.uw-avatar { width: 104px; height: 104px; border-radius: 50%; background: #A9E5C5; color: var(--teal-deep); display: grid; place-items: center; font-size: 34px; font-weight: 700; flex: none; }
.uw-head h3 { font-size: 28px; color: var(--teal-deep); }
.uw-head p { font-size: 18px; color: var(--teal-deep); margin-top: 4px; }
.uw-co { border: 0; background: none; padding: 0; margin-top: 4px; cursor: pointer; font-size: 17px; color: var(--teal-deep); display: inline-flex; gap: 8px; align-items: center; }
.uw-co svg { width: 18px; height: 18px; }
.uw-co:hover { text-decoration: underline; }
.uw-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-dark { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-deep); color: #fff; border: 0; border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; overflow-wrap: anywhere; text-align: left; }
.pill-dark svg { width: 18px; height: 18px; flex: none; }
.pill-dark:hover { background: var(--teal-2); }
.uw-kv .kv span { color: var(--ink); font-weight: 600; }
.uw-room { display: block; margin-left: auto; border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; color: var(--ink); text-align: right; }
.uw-room:hover { text-decoration: underline; }
.dl-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 6px; }
.dl-head h3 { padding: 0; }

@media (max-width: 1100px) {
  .room-grid { grid-template-columns: minmax(0, 1fr); }
  .room-right .side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .app-side, .room-side-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side-item { width: auto; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 10px 10px 0 0; }
  .side-item.on { border-bottom-color: var(--teal-deep); }
  .side-back { margin: 0 6px 0 0; }
  .acct-row { grid-template-columns: auto minmax(0, 1fr); }
  .acct-row .ar-meta, .acct-row > .link-btn { grid-column: 2; align-items: flex-start; text-align: left; justify-self: start; }
}
@media (max-width: 640px) {
  .rb-right { align-items: flex-start; }
  .rb-time { text-align: left; }
  .rb-in .logo.lg { width: 52px; height: 52px; }
  .lc-side { align-items: flex-start; }
  .head-actions .acct-search { width: 100%; }
  .room-right .side-nav { grid-template-columns: 1fr; }
  .uw-head { flex-direction: column; align-items: flex-start; }
  .uw-avatar { width: 80px; height: 80px; font-size: 26px; }
  .rolo-tools select.input { width: 100%; }
  .rolo-tools label { width: 100%; }
}
.co-link.light { font-weight: 400; white-space: nowrap; }
table.t .who > b { white-space: nowrap; font-size: 14.5px; }
.table-wrap { contain: paint; }

/* ===================== Audit fixes ===================== */
/* Slim room banner with one breadcrumb trail */
.rb-in { padding-block: 14px 18px; flex-direction: column; align-items: stretch; gap: 10px; }
.rb-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rb-row > .logo { width: 52px; height: 52px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.rb-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rb-title h1 { font-size: clamp(26px, 2.8vw, 34px); }
.rb-title p { font-size: 15px; margin-top: 2px; }
.rb-time > b { font-size: 20px; }
.rb-time small { font-size: 13.5px; color: #E3EEEA; }
.trail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.trail button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font-size: 14px; }
.trail button:hover { text-decoration: underline; }
.trail-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.trail-back svg { width: 16px; height: 16px; }
.trail.dark { color: #E3EEEA; margin-bottom: 0; }

/* One navigation: section tabs across the room */
.room-page { padding-top: 4px; max-width: 1440px; }
.room-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; overflow-x: auto; }
.room-tabs button { border: 0; border-bottom: 3px solid transparent; background: none; padding: 14px 16px 11px; font-size: 15px; color: #2A3448; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.room-tabs button:hover { color: var(--teal-deep); }
.room-tabs button.on { color: var(--teal-deep); font-weight: 700; border-bottom-color: var(--teal-deep); }
.room-tabs .side-badge { margin-left: 0; }
.room-body { display: flex; flex-direction: column; gap: 16px; }

/* Broker summary row and closed-room outcome */
.sum-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 14px 22px; border: 1.5px solid var(--gold); border-radius: var(--r-card); background: var(--mint-soft); }
.sr-lead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; flex: 1; min-width: 260px; }
.sr-lead .lbl { font-size: 14px; font-weight: 700; }
.sr-lead b { font-size: 30px; color: var(--teal-deep); letter-spacing: -0.03em; }
.sr-lead .by { font-size: 14.5px; }
.sr-stats { display: flex; gap: 24px; }
.sr-stats div { display: flex; flex-direction: column; }
.sr-stats span { font-size: 13px; color: #3B4A5C; }
.sr-stats b { font-size: 16px; }
.outcome { border: 1.5px solid var(--gold); border-radius: var(--r-card); background: var(--mint-soft); padding: 20px 24px; }
.oc-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.oc-head h2 { font-size: 20px; flex: 1; min-width: 220px; }
.oc-head .step-ico { background: var(--gold-soft); color: var(--gold); }
.oc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 16px 0 0; }
.oc-facts dt { font-size: 13px; color: #3B4A5C; }
.oc-facts dd { margin: 4px 0 0; font-size: 15.5px; font-weight: 700; }

/* Leading row stands out */
tr.lead-row td { background: var(--mint-soft); }
tr.lead-row .prem-cell { color: var(--teal-deep); font-weight: 800; }
.lead-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); color: #7A5A22; font-size: 12px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.lead-tag svg { width: 14px; height: 14px; color: var(--gold); }

/* Wider bid form, one step per line */
.bid-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.place-bid .card-body { padding: 24px 26px; }
.pb-form { gap: 14px; }
.pb-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: center; }
.pb-n { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--teal-deep); font-weight: 700; font-size: 13px; display: grid; place-items: center; grid-row: span 2; align-self: end; margin-bottom: 10px; }
.pb-l { font-size: 14px; font-weight: 700; }
.pb-step .money, .pb-step .attach { grid-column: 2; }
.pb-step .submit-bid { grid-column: 2; }
.pb-step:last-child .pb-n { grid-row: auto; align-self: center; margin: 0; }
.pb-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: #3B4A5C; font-size: 13px; }
.pb-or::before, .pb-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.bind-btn { width: 100%; height: 46px; border-color: var(--gold); color: #6B4E1A; background: #FFFBF2; }
.bind-btn svg { color: var(--gold); }
.bind-btn:hover { background: var(--gold-soft); }
.pb-note { font-size: 13px; color: #3B4A5C; text-align: left; margin-top: 10px; }
.firm-preview { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; color: var(--teal-deep); margin-top: 2px; }
.firm-preview svg { width: 18px; height: 18px; }

/* List rows: three readable facts */
.acct-row { grid-template-columns: auto minmax(170px, 1fr) minmax(0, 2fr) auto; }
.acct-row .sub { font-size: 14px; color: var(--ink); }
.ar-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.ar-facts dt { font-size: 13px; color: #3B4A5C; }
.ar-facts dd { margin: 3px 0 0; font-size: 15px; color: var(--ink); font-weight: 600; }
.ar-facts dd .num { font-size: 17px; font-weight: 700; color: var(--teal-deep); }
.ar-facts small { font-size: 13px; font-weight: 400; color: #3B4A5C; }
.pos-lead { color: #1F7A4D; font-weight: 800; }

/* Home steps: one larger line each */
.step p { font-size: 15px; color: var(--ink); }

@media (max-width: 1100px) {
  .bid-grid { grid-template-columns: minmax(0, 1fr); }
  .acct-row { grid-template-columns: auto minmax(0, 1fr); }
  .ar-facts, .acct-row > .link-btn, .acct-row > .btn { grid-column: 2; justify-self: start; }
  .oc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ar-facts, .oc-facts { grid-template-columns: minmax(0, 1fr); }
  .sr-stats { flex-wrap: wrap; }
  .rb-row { align-items: flex-start; }
}

/* Round 5 */
.rb-count { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; font-size: 14px; color: #E3EEEA; margin-top: 4px; }
.rb-count svg { width: 16px; height: 16px; }
.rb-count > b { color: #fff; font-size: 16px; background: rgba(255, 255, 255, .12); border-radius: 8px; padding: 2px 8px; }
.rb-count small { flex-basis: 100%; text-align: right; font-size: 12.5px; color: #CFE0DA; }
.room-page { padding-top: 22px; }
.room-page .room-tabs { margin-top: -6px; }

.acct-row { height: 112px; }
.ar-main { min-width: 0; }
.ar-title { flex-wrap: nowrap; }
.ar-title h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ar-title .status { flex: none; }
.acct-row .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-facts > div { min-width: 0; }
.ar-facts dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-facts .cd { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: #7A5A22; }

.dd { position: relative; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 200px; height: 46px; text-align: left; cursor: pointer; padding: 0 14px; font-size: 14px; }
.dd-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-chev { width: 16px; height: 16px; transform: rotate(90deg); flex: none; transition: transform .15s; }
.dd.open .dd-chev { transform: rotate(-90deg); }
.dd-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 25; min-width: 100%; width: max-content; max-width: 320px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 16px 40px rgba(17, 22, 54, .16); }
.dd-list button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--ink); }
.dd-list button:hover, .dd-list button:focus-visible { background: var(--mint-soft); }
.dd-list button.on { font-weight: 700; }
.dd-list svg { width: 16px; height: 16px; color: var(--teal-2); flex: none; }
.dd-sp { width: 16px; flex: none; }

.chat-back { flex: none; margin-left: -6px; }

@media (max-width: 1100px) { .acct-row { height: auto; min-height: 112px; } }
@media (max-width: 640px) {
  .dd, .dd-btn { width: 100%; }
  .dd-list { left: 0; right: auto; max-width: 100%; }
  .rb-count, .rb-count small { justify-content: flex-start; text-align: left; }
}
.ar-title h3 { flex: 0 0 240px; }
@media (max-width: 1100px) { .ar-title h3 { flex: 0 1 auto; } }

/* Round 6: list rows never overlap or truncate mid-word */
.acct-row { grid-template-columns: 54px minmax(170px, 1.15fr) 78px minmax(0, 2fr) auto; gap: 18px; height: 124px; }
.ar-title h3 { flex: 1 1 auto; }
.ar-status { display: flex; justify-content: flex-start; }
.acct-row .sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.ar-facts { gap: 14px; }
.ar-facts dd { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; overflow-wrap: normal; word-break: normal; }
.ar-facts .cd { white-space: nowrap; }
@media (max-width: 1100px) {
  .acct-row { grid-template-columns: 54px minmax(0, 1fr) auto; height: auto; min-height: 124px; }
  .ar-status { grid-column: 3; grid-row: 1; align-self: start; }
  .ar-facts, .acct-row > .link-btn, .acct-row > .btn { grid-column: 2 / 4; }
}
.ar-facts .cd { white-space: normal; }

/* Broker sign-up */
.hero-signup { margin-top: 18px; font-size: 15px; color: #EAF1EF; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-signup .link-btn { color: #A9E5C5; }
.su-page { max-width: 1320px; }
.su-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 26px; align-items: start; }
.su-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 92px; }
.su-steps button { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: 0; border-left: 3px solid transparent; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.su-steps button[disabled] { cursor: default; opacity: .7; }
.su-steps i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #CFD8DA; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.su-steps b { display: block; font-size: 14.5px; }
.su-steps small { font-size: 12.5px; color: #3B4A5C; }
.su-steps .on button { background: var(--mint); border-left-color: var(--teal-deep); }
.su-steps .on i { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.su-steps .done i { background: var(--mint); border-color: var(--mint); color: var(--teal-deep); }
.su-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.su-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.su-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #D5DCDE; border-radius: 999px; background: #fff; cursor: pointer; font-size: 13.5px; }
.su-chip svg { width: 15px; height: 15px; }
.su-chip.on { background: var(--mint); border-color: #9CCBB5; color: var(--teal-deep); font-weight: 700; }
.su-chip:focus-within { outline: 2px solid #3B6FD6; }
.su-h3 { font-size: 16px; margin: 22px 0 10px; }
.su-doc { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.su-doc.invalid { border-color: var(--danger); }
.su-doc .di { width: 36px; height: 36px; border-radius: 9px; background: var(--mint); display: grid; place-items: center; flex: none; }
.su-doc .di svg { width: 18px; height: 18px; }
.su-doc .tx { flex: 1; min-width: 200px; }
.su-doc b { display: block; font-size: 14px; }
.su-doc span { font-size: 13px; color: #3B4A5C; }
.su-appts { display: flex; flex-direction: column; gap: 8px; }
.su-appt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 12px; flex-wrap: wrap; }
.su-appt.on { background: var(--mint-soft); border-color: #BFD8CC; }
.su-appt-main { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.su-appt-main input { width: 18px; height: 18px; }
.su-appt-main b { display: block; font-size: 14px; }
.su-appt-main small { font-size: 12.5px; color: #3B4A5C; }
.su-review { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.su-review .su-h3 { margin-top: 10px; }
.su-agree { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.su-need { padding: 20px 22px; position: sticky; top: 92px; }
.su-need h3 { font-size: 16px; margin-bottom: 12px; }
.su-need ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.su-need li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.su-need li svg { width: 16px; height: 16px; color: var(--teal-2); flex: none; margin-top: 2px; }
.su-need li.done { color: #3B4A5C; }
.su-need .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; margin: 6px 4px 0; }
.su-done { max-width: 720px; margin: 20px auto; padding: 40px 40px 34px; text-align: center; }
.su-done > .step-ico { margin: 0 auto 14px; width: 60px; height: 60px; border-radius: 50%; }
.su-done > .step-ico svg { width: 30px; height: 30px; }
.su-done h1 { font-size: 32px; margin-bottom: 8px; }
.su-done > p { color: #2A3448; font-size: 15px; }
.su-status { list-style: none; padding: 0; margin: 24px 0 14px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.su-status li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 12px; font-size: 14.5px; }
.su-status .chip { min-width: 150px; justify-content: center; }
.su-done-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 1180px) { .su-grid { grid-template-columns: 220px minmax(0, 1fr); } .su-need { grid-column: 1 / -1; position: static; } }
@media (max-width: 860px) {
  .su-grid { grid-template-columns: minmax(0, 1fr); }
  .su-steps { position: static; flex-direction: row; overflow-x: auto; }
  .su-steps button { white-space: nowrap; border-left: 0; }
  .su-steps small { display: none; }
  .su-review { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .su-done { padding: 28px 20px; } .su-status li { flex-direction: column; align-items: flex-start; } }

/* ===================== Liquid glass ===================== */
/* Soft color fields behind everything so the frosted panels have something to refract. */
body {
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(169, 229, 197, .55), transparent 62%),
    radial-gradient(700px 480px at 6% 38%, rgba(232, 98, 63, .10), transparent 60%),
    radial-gradient(800px 600px at 70% 105%, rgba(233, 188, 99, .18), transparent 60%),
    var(--cream);
  background-attachment: fixed;
}
.card, .acct-row, .sum-row, .outcome, .place-bid, .su-need, .steps-card, .shortcut {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.stand-card { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
.header { background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 1px 0 rgba(17, 22, 54, .04); }
.modal, .chat, .dock-list, .dd-list, .acct-menu, .chat-min {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 60px rgba(17, 22, 54, .18);
}
.overlay { background: rgba(30, 44, 50, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.input, select.input, textarea.input, .money, .attach, .search, .dd-btn, .seg, .back-btn, .pill-tabs button, .su-chip, .pick-list, .pick-row {
  background-color: rgba(255, 255, 255, .66);
  border-color: rgba(17, 22, 54, .10);
}
.pick-row:hover, .dd-list button:hover { background: rgba(228, 243, 236, .75); }
.btn:not(.primary):not(.mint):not(.on-dark):not(.white) { background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px rgba(6, 62, 59, .22); }
.btn.on-dark, .rb-link { background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.room-tabs { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-edge); border-radius: 14px; padding: 4px; box-shadow: var(--glass-shadow); }
.room-tabs button { border-radius: 10px; border-bottom: 0; padding: 11px 16px; }
.room-tabs button.on { background: rgba(255, 255, 255, .85); box-shadow: 0 1px 2px rgba(17, 22, 54, .08), inset 0 -2px 0 var(--teal-deep); }
.side-item.on { background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--glass-shadow); }
.side-item:hover:not(.on) { background: rgba(255, 255, 255, .4); }
table.t th { background: rgba(255, 255, 255, .35); }
table.t td { border-bottom-color: rgba(17, 22, 54, .07); }
tr.lead-row td { background: rgba(228, 243, 236, .72); }
.note { background: rgba(241, 248, 244, .6); border-color: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.launcher { background: rgba(15, 46, 42, .88); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px rgba(6, 62, 59, .3); }
.toast { background: rgba(15, 46, 42, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hero, .room-banner, .stand-top { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .acct-row, .sum-row, .outcome, .place-bid, .stand-card, .modal, .chat, .dock-list, .dd-list, .acct-menu, .room-tabs { background: #fff; }
}

/* ===================== Coral accent ===================== */
.side-badge, .app-side .side-badge, .launcher .count, .msg-item .count, .room-tabs .side-badge { background: var(--accent-deep); color: #fff; }
.rb-count > b { background: var(--accent); color: #fff; }
.ar-facts .cd { color: var(--accent-deep); }
.hero-signup .link-btn { color: #FFB59E; }
.pos-lead { color: var(--accent-deep); }
.trail-back svg, .chat-back svg { color: var(--accent); }
.su-need .dot { background: var(--accent); }

/* ===================== Gold borders with a coral hue ===================== */
/* Gradient ring drawn on a pseudo-element so the frosted fill stays see-through. */
.sum-row, .outcome, .stand-card, .bind-btn { position: relative; border-color: transparent !important; }
.sum-row::before, .outcome::before, .stand-card::before, .bind-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.75px;
  background: var(--gold-hue); background-size: 200% 200%; animation: hue-drift 9s ease-in-out infinite alternate;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none; z-index: 3;
}
@keyframes hue-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ===================== Confetti ===================== */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

/* ===================== Round 8 ===================== */
/* Gold-only ring with a warm glow underneath (no coral in the borders). */
:root {
  --gold-hue: linear-gradient(120deg, #E9C46A 0%, #BB9149 30%, #F5DC94 55%, #B8893F 80%, #E9C46A 100%);
  --gold-glow: 0 14px 34px -14px rgba(214, 162, 60, .65), 0 0 22px -6px rgba(233, 196, 106, .45);
  /* More frosted panels */
  --glass: rgba(255, 255, 255, .6);
  --glass-blur: blur(30px) saturate(190%);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .12) 38%, rgba(255, 255, 255, .06) 100%);
}
.card, .acct-row, .sum-row, .outcome, .place-bid, .su-need, .steps-card, .shortcut, .stand-card, .room-tabs {
  background-image: var(--glass-sheen);
  border-color: rgba(255, 255, 255, .85);
}
.sum-row, .outcome, .stand-card { box-shadow: var(--glass-shadow), var(--gold-glow); }
.bind-btn { box-shadow: var(--gold-glow); color: #6B4E1A; }
.bind-btn svg { color: #B8893F; }

/* Popups sit over content, so they are solid for legibility. */
.acct-menu, .modal, .dd-list, .dock-list, .chat, .chat-min {
  background: #FFFFFF;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--rule);
}

/* Back arrows keep their normal color; the Messages back arrow is plain grey. */
.trail-back svg { color: inherit; }
.chat-back, .chat-back svg { color: var(--muted); }

/* Home sign-up link in gold */
.hero-signup .link-btn { color: #F0C978; }

/* Timers: plain black in lists, no colored box in the room banner */
.ar-facts .cd { color: var(--ink); }
.rb-count > b { background: none; padding: 0; color: #fff; }

/* Gold ring is the only border on highlighted panels: no frosted fill or hairline outside it */
.sum-row, .outcome, .stand-card, .bind-btn { border: 0 !important; }
.sum-row, .outcome, .stand-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--gold-glow); }

/* ===================== Leading bid: blue ring and glow ===================== */
:root {
  --lead-ink: #1F8A91;
  --blue-ring: linear-gradient(135deg, #8EDDE2 0%, #2FA3AE 40%, #A6E7EA 70%, #2A94A0 100%);
  --blue-glow: 0 12px 32px -10px rgba(47, 163, 174, .55), 0 0 24px -4px rgba(95, 200, 210, .5);
}
.broker-bid-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.lead-box { position: relative; border-radius: var(--r-card); padding: 22px 24px 20px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--blue-glow); }
.lead-box .lbl { font-size: 14px; font-weight: 700; }
.lead-box .big { font-size: clamp(32px, 3vw, 42px); font-weight: 700; color: var(--lead-ink); letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 6px; }
.lead-box .by { font-size: 15px; }
.lead-box .btn { margin-top: 18px; }
.lb-facts { margin-top: 18px; font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.lb-facts b { font-weight: 700; }

/* Blue ring replaces gold on leading-bid panels (closed-room outcome stays gold). */
.lead-box::before, .stand-card::before, .bind-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: var(--blue-ring); background-size: 200% 200%; animation: hue-drift 9s ease-in-out infinite alternate;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none; z-index: 3;
}
.stand-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--blue-glow); }
.bind-btn { box-shadow: var(--blue-glow); color: #17656B; background: rgba(240, 250, 251, .9); }
.bind-btn svg { color: var(--lead-ink); }
.bind-btn:hover { background: #E3F5F6; }

@media (max-width: 960px) { .broker-bid-grid { grid-template-columns: minmax(0, 1fr); } }
.broker-bid-grid { grid-template-columns: minmax(250px, 280px) minmax(0, 1fr); }
.broker-bid-grid table.t { min-width: 560px; }
.broker-bid-grid table.t th, .broker-bid-grid table.t td { padding: 14px 16px; }
.broker-bid-grid .co-link { white-space: nowrap; }
.broker-bid-grid .who { gap: 12px; }
.broker-bid-grid .logo { width: 40px; height: 40px; }
.broker-bid-grid .lead-tag { display: flex; width: max-content; margin: 4px 0 0; }
.broker-bid-grid table.t th, .broker-bid-grid table.t td { padding: 14px 14px; }
.bid-grid table.t { min-width: 500px; }
.bid-grid table.t th, .bid-grid table.t td { padding: 14px 14px; }
.bid-grid .lead-tag { display: flex; width: max-content; margin: 4px 0 0; }

/* Leading bid amount matches the blue ring */
.lead-box .big { color: #2FA3AE; }
.stand-top .big { color: #8EDDE2; }

/* Closed-room "won this account" card uses the same blue outline and glow as the Leading bid card */
.outcome::before { background: var(--blue-ring); background-size: 200% 200%; padding: 2px; }
.outcome { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--blue-glow); }

/* New-underwriter invitation */
.inv-seg { display: flex; margin-bottom: 4px; }
.inv-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; }
.inv-seg button svg { width: 15px; height: 15px; }
.pick-row.nu-new { color: var(--teal-deep, #0E6B5C); }
.pick-row.nu-new > svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--mint-soft); flex: none; }
.nu-create { border: 1px solid var(--rule); border-radius: 14px; padding: 14px; background: #fff; }
.nu-create-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.nu-create .su-chip { padding: 6px 11px; font-size: 13px; }
.rolo-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Pending invites and the invitation popup */
.pending-inv { flex: none; padding: 7px 14px; border-radius: 999px; background: #FFF4DE; color: #8A5A00; font-size: 13px; font-weight: 700; white-space: nowrap; }
.inv-sent { text-align: center; padding: 6px 0 14px; }
.inv-sent-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mint-soft); color: #0E6B5C; margin-bottom: 10px; }
.inv-sent-ico svg { width: 26px; height: 26px; }
.inv-sent h3 { font-size: 19px; }
.inv-sent p { font-size: 14px; color: #3B4A5C; margin-top: 2px; }
.inv-sent-ico.busy { animation: invPulse 1.2s ease-in-out infinite; }
@keyframes invPulse { 50% { transform: scale(.9); opacity: .6; } }
