/* BellStreet Portal: light theme, matching crm.bellstreet.ai.
   Brand colors from ../Dashboard/BRAND.md. Light surfaces follow the CRM's globals.css.
   Fonts fall back to system fonts until Space Grotesk / Inter are self-hosted. */
:root {
  /* Brand */
  --teal: #7EC8C3;
  --teal-dim: #5AADA8;
  --teal-ink: #2F7F7A;      /* darker teal for text links on white (readable contrast) */
  --teal-tint: #EEF8F7;     /* very light teal for active/hover backgrounds */

  /* Light surfaces (from the CRM) */
  --background: #FFFFFF;
  --surface: #FAFAFA;       /* page background behind cards */
  --foreground: #0A0A0A;
  --muted: #555F68;
  --muted-2: #8A9BA8;
  --card-border: #E5E5E5;

  /* Status */
  --success: #4CAF7D;
  --danger: #E05C5C;

  /* Markets */
  --den: #4A9EFF;
  --atl: #9B7FE8;
  --pa: #7EC8C3;
  --chi: #F4845F;

  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--surface);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.15rem; }
a { color: var(--teal-ink); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; word-break: break-all; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
.w-full { width: 100%; box-sizing: border-box; }
.nowrap { white-space: nowrap; }
.text-error { color: #A33A3A; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topbar {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  background: var(--background);
}
.brand img { display: block; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.nav a, .nav .locked {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .7rem; border-radius: 6px;
  text-decoration: none; font-size: .9rem;
}
.nav a { color: var(--foreground); }
.nav a:hover { background: var(--surface); }
.nav a.active { color: var(--teal-ink); background: var(--teal-tint); font-weight: 500; }
.nav .locked { color: var(--muted-2); cursor: not-allowed; user-select: none; }
.icon-lock { flex: none; }
.who { display: flex; align-items: center; gap: .75rem; margin-left: auto; font-size: .85rem; color: var(--muted); }
.who form { margin: 0; }

.main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.card {
  background: var(--background);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(10, 10, 10, .04);
}
.narrow { max-width: 460px; margin: 3rem auto; }
.center { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.tile { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.tile:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(10, 10, 10, .06); }
.locked-tile { background: var(--surface); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.locked-tile h2 { color: var(--muted); }
.badge {
  display: inline-block; margin-bottom: .5rem;
  padding: .15rem .5rem; border-radius: 999px;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: var(--background); border: 1px solid var(--card-border);
}

.btn {
  display: inline-block; padding: .6rem 1.1rem; border-radius: 8px; border: 0;
  background: var(--teal); color: var(--foreground);
  font: 600 .95rem var(--font-body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--teal-dim); }
.btn.secondary { background: transparent; color: var(--teal-ink); border: 1px solid var(--teal); }
.btn.secondary:hover { background: var(--teal-tint); }
.btn.small { padding: .35rem .75rem; font-size: .85rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--teal-ink); font: inherit; cursor: pointer; }

.alert { padding: .6rem .8rem; border-radius: 8px; margin: 1rem 0; }
.alert.error { background: #FDF0F0; color: #A33A3A; border: 1px solid #F3C9C9; }
.alert.ok { background: #EEF8F2; color: #2E7A53; border: 1px solid #C5E6D3; }

.table-wrap { overflow-x: auto; margin: 1rem 0 2rem; background: var(--background); border: 1px solid var(--card-border); border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .55rem .75rem; border-bottom: 1px solid var(--card-border); text-align: left; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--muted); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; background: var(--surface); }
.table tr:hover td { background: var(--surface); }
.row-pending td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.inline-form { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; }
select {
  background: var(--background); color: var(--foreground);
  border: 1px solid var(--card-border); border-radius: 6px; padding: .3rem .4rem; font: inherit;
}
select:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Dashboards ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dash-head h1 { margin: 0; }
.pills { display: flex; gap: .35rem; flex-wrap: wrap; }
.pills a { padding: .3rem .75rem; border: 1px solid var(--card-border); border-radius: 999px; text-decoration: none; color: var(--foreground); background: var(--background); font-size: .85rem; }
.pills a:hover { border-color: var(--teal); }
.pills a.active { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-ink); font-weight: 500; }
.pills .mine { margin-left: .5rem; }
.pills span.disabled { padding: .3rem .75rem; border: 1px dashed var(--card-border); border-radius: 999px; color: var(--muted-2); font-size: .85rem; cursor: not-allowed; }
main section.card { margin-bottom: 1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat .label, h3.label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
h3.label { margin: 1.25rem 0 .25rem; }
.stat .num { font: 600 1.6rem var(--font-head); font-variant-numeric: tabular-nums; margin: .15rem 0; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.stat.warn { border-color: #F2D48F; background: #FFFBF0; }
.bars { display: grid; gap: .45rem; margin-top: .75rem; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 140px; align-items: center; gap: .75rem; font-size: .9rem; }
.bar { width: 100%; height: 14px; display: block; }
.bar-bg { fill: var(--surface); }
.bar-fill { fill: var(--teal); }
.bar-fill.alt { fill: var(--teal-dim); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; background: var(--muted-2); vertical-align: middle; }
.dot.m-ATL { background: var(--atl); } .dot.m-CHI { background: var(--chi); } .dot.m-DEN { background: var(--den); } .dot.m-PA { background: var(--pa); }
.pills a.m-ATL.active { border-color: var(--atl); } .pills a.m-CHI.active { border-color: var(--chi); }
.pills a.m-DEN.active { border-color: var(--den); } .pills a.m-PA.active { border-color: var(--pa); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.two-col > section.card { margin-bottom: 0; }
.months { width: 100%; height: auto; display: block; margin-top: .5rem; }
.col-this { fill: var(--teal); } .col-last { fill: #D5DDE2; }
.axis { font-size: 5px; fill: var(--muted); text-anchor: middle; font-family: var(--font-body); }
.legend { color: var(--muted); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: .5rem; }
.key.this { background: var(--teal); } .key.last { background: #D5DDE2; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 110px 1fr 100px; font-size: .8rem; } }

/* All deals table */
.all-deals-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.deal-search { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.deal-search input[type="search"] { min-width: 0; width: 18rem; max-width: 100%; padding: .4rem .65rem; border: 1px solid var(--card-border); border-radius: 8px; font: inherit; font-size: .9rem; background: var(--background); color: var(--foreground); }
.deal-search input[type="search"]:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.stage-group { border-top: 1px solid var(--card-border); }
.stage-group:first-of-type { border-top: 0; }
.stage-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .25rem; cursor: pointer; list-style: none; }
.stage-group > summary::-webkit-details-marker { display: none; }
.stage-group > summary::before { content: ""; width: .45rem; height: .45rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); margin-right: .25rem; flex: none; transition: transform .15s; }
.stage-group[open] > summary::before { transform: rotate(45deg); }
.stage-group > summary:hover .stage-name { color: var(--teal-ink); }
.stage-group > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.stage-name { font: 600 1rem var(--font-head); flex: 1; }
.stage-meta { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-group .table-wrap { margin: 0 0 1rem; }
.stage-group .empty { margin: 0 0 .75rem 1.25rem; }
.deals-table { font-size: .85rem; }
.deals-table td { vertical-align: top; }
.deals-table td.r { font-variant-numeric: tabular-nums; }
.deal-cell { min-width: 14rem; }
.deal-name { font-weight: 500; }
.nowrap { white-space: nowrap; }
.tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .25rem; }
.tag { font-size: .7rem; font-weight: 500; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.tag-overdue { background: #FDECEC; color: #B03A3A; }
.tag-listing_ending { background: #FFF4DC; color: #8A5A00; }
.tag-no_probability { background: #EEF1F4; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .stage-group > summary::before { transition: none; } }

/* ---------- Deal requests ---------- */
.nav .count { display: inline-block; min-width: 1.25rem; padding: 0 .35rem; margin-left: .2rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 600; line-height: 1.25rem; text-align: center; }
.request-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: -.25rem 0 1rem; }
.deal-cell .suggest { display: inline-block; margin-top: .2rem; color: var(--teal-ink); }
.deal-cell .suggest:not(:hover) { text-decoration: none; }
.tag-pending { background: var(--teal-tint); color: var(--teal-ink); }
.tag-match { background: #EEF8F2; color: #2E7A53; }
.tag-kind { background: #EEF1F4; color: var(--muted); margin-right: .35rem; }

.req-form fieldset { border: 1px solid var(--card-border); margin: 0 0 1rem; min-width: 0; }
.req-form legend { font-family: var(--font-head); font-weight: 600; padding: 0 .35rem; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field > .label { font-size: .85rem; font-weight: 500; }
.field input[type="text"], .field input[type="date"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select,
.finish input[type="text"], .row-pick input, .calc-save-form input[type="text"], .saved-more input[type="text"] {
  width: 100%; padding: .45rem .6rem; border: 1px solid var(--card-border); border-radius: 6px; font: inherit; font-size: .9rem;
  background: var(--background); color: var(--foreground);
}
.row-pick input { width: 6rem; }
.field input:focus, .field textarea:focus, .finish input:focus, .row-pick input:focus, .calc-save-form input:focus, .saved-more input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field .hint { font-size: .78rem; color: var(--muted); }
.field-error { font-size: .8rem; color: #B03A3A; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.req { color: #B03A3A; }
.check { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 400; }
.broker-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .3rem 1rem; padding: .5rem 0; }
.alert ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.alert a { color: inherit; }

.request { margin-bottom: .75rem; }
.request-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.request-head h1 { margin-bottom: .25rem; }
.status { font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.status-pending { background: #FFF4DC; color: #8A5A00; }
.status-done { background: #EEF8F2; color: #2E7A53; }
.status-declined { background: #FDECEC; color: #B03A3A; }
.changes { margin: .5rem 0; padding-left: 1.1rem; font-size: .9rem; }
.changes li { margin: .2rem 0; }
.changes .from { color: var(--muted); text-decoration: line-through; }
.changes .to { font-weight: 600; }
.steps { padding-left: 1.2rem; }
.steps li { margin: .45rem 0; }
.steps .hint { display: block; font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.row-pick { align-items: center; margin-top: .35rem; }
.finish { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.finish form { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }

/* ---------- Calculators ---------- */
/* .calc-main holds the form and results side by side; the sticky results panel can't leave it,
   so it never slides over the full-width schedule below. */
.calc { display: flex; flex-direction: column; gap: 1rem; }
.calc-main { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.calc-form { min-width: 0; }
.calc-results { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.calc-results h2 { margin-top: 0; }
.calc-wide { min-width: 0; }
@media (max-width: 900px) { .calc-main { grid-template-columns: 1fr; } .calc-results { position: static; max-height: none; overflow: visible; } }
.affix { display: flex; align-items: stretch; }
.affix input { flex: 1; min-width: 0; }
.affix .pre, .affix .suf { display: inline-flex; align-items: center; padding: 0 .5rem; background: var(--surface); border: 1px solid var(--card-border); color: var(--muted); font-size: .85rem; }
.affix .pre { border-right: 0; border-radius: 6px 0 0 6px; }
.affix .suf { border-left: 0; border-radius: 0 6px 6px 0; }
.affix .pre + input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.affix input:has(+ .suf) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.field input[type="text"][readonly] { background: var(--surface); color: var(--muted); }
.out-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--card-border); font-size: .9rem; }
.out-row strong { font-variant-numeric: tabular-nums; text-align: right; }
.out-row.big { font-size: 1.05rem; }
.out-row.big strong { color: var(--teal-ink); font-size: 1.2rem; }
.calc-results .hint, .calc-form .hint { display: block; font-size: .78rem; color: var(--muted); margin: .25rem 0 .5rem; }
.calc-results h3.label { margin-top: 1.25rem; }
.broker-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(5rem, 1fr) auto; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.broker-row input { width: 100%; padding: .45rem .6rem; border: 1px solid var(--card-border); border-radius: 6px; font: inherit; font-size: .9rem; background: var(--background); color: var(--foreground); }
.calc-form details.card { margin-bottom: 1rem; }
.calc-form details.card > summary { cursor: pointer; }
.calc-form .affix input { width: 100%; padding: .45rem .6rem; border: 1px solid var(--card-border); border-radius: 6px; font: inherit; font-size: .9rem; background: var(--background); color: var(--foreground); }
.calc-form .affix input:focus, .broker-row input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
#schedule td, #split-table td { font-variant-numeric: tabular-nums; }

/* Make the hidden attribute win over display rules (used by the calculators). */
[hidden] { display: none !important; }

/* Training Vault */
.training-links { margin: 0; align-self: center; }
.training-overall p { margin: .35rem 0 .5rem; }
progress.progress { -webkit-appearance: none; appearance: none; width: 100%; max-width: 22rem; height: .55rem; border: 0; border-radius: 999px; background: var(--card-border); overflow: hidden; vertical-align: middle; }
progress.progress::-webkit-progress-bar { background: var(--card-border); border-radius: 999px; }
progress.progress::-webkit-progress-value { background: var(--teal); border-radius: 999px; }
progress.progress::-moz-progress-bar { background: var(--teal); border-radius: 999px; }
.table progress.progress { width: 8rem; }
.training-module { margin-top: 1rem; }
.module-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.module-head h2 { margin: 0; }
.video-list { list-style: none; margin: .75rem 0 0; padding: 0; }
.video-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--card-border); }
.video-list li:first-child { border-top: 0; }
.video-list .mark { flex: 0 0 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px solid var(--muted-2); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; line-height: 1; color: #fff; }
.video-list li.done .mark { background: var(--success); border-color: var(--success); }
.video-list a { color: var(--foreground); font-weight: 500; text-decoration: none; }
.video-list a:hover { color: var(--teal-ink); text-decoration: underline; }
.video-list .small { margin-left: auto; }
.video-frame { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-actions { margin: 1rem 0; }
.video-actions .inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.tag-done { background: #EEF8F2; color: #2E7A53; font-size: .8rem; padding: .2rem .6rem; }
.video-nav { display: flex; justify-content: space-between; gap: 1rem; max-width: 960px; padding-top: .75rem; border-top: 1px solid var(--card-border); }
.video-edit { margin-top: 1rem; }
.video-edit.is-new { border-color: var(--teal); }
.video-edit-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.video-edit-head a { margin-left: auto; }
.video-edit .btn { margin-top: .75rem; }
.field input[type="number"] { width: 100%; padding: .45rem .6rem; border: 1px solid var(--card-border); border-radius: 6px; font: inherit; font-size: .9rem; background: var(--background); color: var(--foreground); }
.table input[type="text"], .table input[type="number"] { font: inherit; font-size: .9rem; padding: .35rem .5rem; border: 1px solid var(--card-border); border-radius: 6px; width: 100%; min-width: 8rem; }
.table input.num { width: 5rem; min-width: 0; }

/* Home (COO-approved mockup, 2026-11-06) */
.main.main-home { max-width: none; padding: 0 0 4rem; }
.band { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(900px 380px at 85% -10%, rgba(126,200,195,.28), transparent 60%),
    radial-gradient(600px 300px at -5% 120%, rgba(74,158,255,.14), transparent 60%),
    linear-gradient(160deg, #0A0A0A 0%, #0E1A1A 55%, #0A0A0A 100%); }
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 85%); }
.band-bell { position: absolute; right: -40px; top: -30px; width: 420px; height: auto; opacity: .07; transform: rotate(-12deg); pointer-events: none; }
.band-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 2.1rem 1.25rem 1.9rem; }
.band-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.band-logo { height: 30px; width: auto; opacity: .95; display: block; }
.band-meta { font-size: .82rem; color: var(--muted-2); text-align: right; }
.band-meta .live { display: inline-flex; align-items: center; gap: .4rem; }
.band-meta .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(76,175,125,.7); } 70%, 100% { box-shadow: 0 0 0 7px rgba(76,175,125,0); } }
.greet { display: flex; align-items: center; gap: .9rem; margin: 1.6rem 0 .25rem; }
.greet h1 { font-family: var(--font-head); font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.greet h1 em { font-style: normal; color: var(--teal); }
.ring-bell { width: 40px; height: 40px; flex: 0 0 40px; fill: var(--teal); transform-origin: 50% 8%; animation: bell-ring 1.6s ease-in-out .4s 1; }
@keyframes bell-ring { 0%, 70%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-14deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-8deg); } 50% { transform: rotate(4deg); } 60% { transform: rotate(-2deg); } }
.band-sub-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; margin: 0 0 1.6rem; }
.band-sub { color: #B9C6CF; margin: 0; }
.band-pills a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #DDE6EB; }
.band-pills a:hover { border-color: var(--teal); color: #fff; }
.band-pills a.active { background: rgba(126,200,195,.18); border-color: var(--teal); color: #fff; }
.band-pills span.disabled { border-color: rgba(255,255,255,.18); color: #7F8E98; }
.map-card.has-focus .mk:not(.is-focus) { opacity: .35; }
.map-card.has-focus .mk:not(.is-focus) .pulse { animation: none; opacity: 0; }
.mk { transition: opacity .2s; }
.mk.is-focus .core { r: 8; }
.stats-band + .band-note { margin-top: 1rem; }
.band-note { color: #B9C6CF; font-size: .9rem; max-width: 40rem; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .75rem 1rem; }
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.sb-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1rem 1.1rem; min-width: 0; }
.sb-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.sb-num { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; margin-top: .2rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-foot { font-size: .8rem; color: #A9B6BF; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-ring { display: flex; align-items: center; gap: .9rem; }
.sb-ring svg { flex: 0 0 64px; }
.sb-ring > div { min-width: 0; }
.ring-bg { stroke: rgba(255,255,255,.12); }
.ring-fg { stroke: var(--teal); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }

.home { max-width: 1200px; margin: 0 auto; padding: 1.6rem 1.25rem 0; }
.home-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }
.home-title { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin: 0 0 .75rem; }
.home-title h2 { font-size: 1.1rem; margin: 0; }
.home-title span { font-size: .82rem; color: var(--muted); }
.htiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.htile { display: flex; gap: .9rem; align-items: flex-start; text-decoration: none; color: var(--foreground); background: var(--background); border: 1px solid var(--card-border); border-radius: 14px; padding: 1rem; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-width: 0; }
a.htile:hover, .htile:has(a:hover) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,10,10,.07); border-color: var(--teal); }
.htile > span:last-child { min-width: 0; }
.hico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-ink); }
.hico svg { width: 22px; height: 22px; }
.htile h3 { font-size: 1rem; margin: 0 0 .1rem; }
.hlink { color: inherit; text-decoration: none; }
.hline { display: block; font-size: .85rem; color: var(--muted); }
.hline b { color: var(--foreground); font-weight: 600; }
.hgo { display: block; margin-top: .35rem; font-size: .82rem; color: var(--teal-ink); font-weight: 500; }
.hchips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.hchips a { font-size: .75rem; border: 1px solid var(--card-border); border-radius: 999px; padding: .05rem .5rem; color: var(--muted); text-decoration: none; }
.hchips a:hover { border-color: var(--teal); color: var(--teal-ink); }
.htile.soon { background: repeating-linear-gradient(135deg, #FBFBFB 0 10px, #F6F6F6 10px 20px); color: var(--muted-2); }
.htile.soon .hico { background: #EFEFEF; color: var(--muted-2); }
.htile.soon h3 { color: var(--muted); }
.soon-badge { font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--card-border); border-radius: 999px; padding: .05rem .45rem; margin-left: .3rem; vertical-align: 2px; font-weight: 500; }

.map-card { display: flex; flex-direction: column; background: linear-gradient(180deg, #0B1414, #0A0A0A); border: 1px solid #1F2B2B; border-radius: 14px; padding: 1.1rem 1.25rem; color: #fff; min-width: 0; }
.map-card .home-title span { color: var(--muted-2); }
.map-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.map-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.us-dot { fill: rgba(126,200,195,.45); }
.us-fill { fill: rgba(126,200,195,.05); }
.us-line { fill: none; stroke: rgba(126,200,195,.3); stroke-width: .8; stroke-linejoin: round; }
.mk { cursor: default; outline: none; }
.mk[href] { cursor: pointer; }
.mk .pulse { opacity: .6; transform-box: fill-box; transform-origin: center; animation: mk-pulse 2.4s ease-out infinite; }
.mk-d1 .pulse { animation-delay: .6s; } .mk-d2 .pulse { animation-delay: 1.2s; } .mk-d3 .pulse { animation-delay: 1.8s; }
@keyframes mk-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
.mk .core { stroke: #0A0A0A; stroke-width: 2; transition: r .15s; }
.mk:hover .core, .mk:focus .core { r: 8; }
.mk:focus-visible .core { stroke: #fff; }
.mk-ATL .pulse, .mk-ATL .core { fill: var(--atl); } .mk-CHI .pulse, .mk-CHI .core { fill: var(--chi); }
.mk-DEN .pulse, .mk-DEN .core { fill: var(--den); } .mk-PA .pulse, .mk-PA .core { fill: var(--pa); }
.mk text { font-family: var(--font-head); font-size: 13px; fill: #fff; font-weight: 600; }
.mk text.n { font-size: 11px; fill: #B9C6CF; font-weight: 500; }
.map-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: #fff; color: var(--foreground); border-radius: 10px; padding: .6rem .75rem; font-size: .82rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); min-width: 12rem; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.map-tip.show { opacity: 1; transform: none; }
.map-tip h4 { margin: 0 0 .25rem; font-family: var(--font-head); font-size: .9rem; }
.map-tip div { display: flex; justify-content: space-between; gap: .75rem; color: var(--muted); }
.map-tip b { color: var(--foreground); font-variant-numeric: tabular-nums; }
.map-tip small { display: block; margin-top: .35rem; color: var(--teal-ink); }
.map-legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .8rem; color: #B9C6CF; margin-top: .5rem; }

.wins { margin-top: 1.1rem; }
.win-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.win { position: relative; border-radius: 14px; padding: 1rem 1rem .9rem; background: linear-gradient(180deg, rgba(232,184,75,.12), rgba(232,184,75,.03)); border: 1px solid rgba(232,184,75,.35); overflow: hidden; min-width: 0; }
.win::before { content: ""; position: absolute; right: -18px; top: -18px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(232,184,75,.35), transparent 70%); }
.win-kicker { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9A7414; font-weight: 600; }
.win h3 { font-size: 1rem; margin: .35rem 0 .1rem; overflow-wrap: anywhere; }
.win-meta { font-size: .82rem; color: var(--muted); }
.win-mkt { white-space: nowrap; }
.win-mkt .dot { margin-right: .25rem; }
.win-who { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .82rem; }
.avatars { display: flex; flex: 0 0 auto; }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 600; color: #fff; border: 2px solid #fff; margin-left: -6px; }
.av:first-child { margin-left: 0; }
.av-0 { background: #5AADA8; } .av-1 { background: #4A9EFF; } .av-2 { background: #9B7FE8; } .av-3 { background: #F4845F; } .av-4 { background: #2F7F7A; }

.coming { margin-top: 1.1rem; }
.up-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.up { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.up-date { flex: 0 0 52px; text-align: center; border-radius: 12px; border: 1px solid var(--card-border); overflow: hidden; }
.up-date span { display: block; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; background: var(--teal-tint); color: var(--teal-ink); }
.up-date b { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.6; }
.up-text { min-width: 0; }
.up-t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-s { font-size: .82rem; color: var(--muted); }
.up-tag { font-size: .68rem; border-radius: 999px; padding: 0 .45rem; margin-left: .2rem; font-weight: 500; }
.up-close { background: #EEF8F2; color: #2E7A53; } .up-exp { background: #FFF3E8; color: #A4561E; }

@media (max-width: 960px) {
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-row { grid-template-columns: 1fr; }
  .win-row, .up-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .htiles { grid-template-columns: 1fr; }
  .band-meta { text-align: left; }
  .band-bell { width: 260px; }
  .stats-band { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ring-bell, .mk .pulse, .band-meta .live::before { animation: none; }
  .ring-fg, .htile, .map-tip { transition: none; }
}

/* Training Vault tabs and The Chalk Talk (2026-11-09) */
.vault-tabs { display: flex; gap: .25rem; margin-top: .6rem; border-bottom: 1px solid var(--card-border); }
.vault-tabs a { padding: .45rem .9rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 500; }
.vault-tabs a:hover { color: var(--foreground); }
.vault-tabs a.active { color: var(--teal-ink); border-bottom-color: var(--teal); }
.vault-tabs .count { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; margin-left: .2rem; border-radius: 999px; background: var(--teal); color: #fff; font-size: .7rem; font-weight: 600; line-height: 1.2rem; text-align: center; }
.tag-new { background: #FFF6DE; color: #8A6510; }
.chalk-latest-head { display: flex; align-items: center; gap: .5rem; }
.chalk-latest h2 { margin: .5rem 0 .75rem; }
.chalk-latest h2 a { color: inherit; text-decoration: none; }
.chalk-latest h2 a:hover { color: var(--teal-ink); }
.chalk-list .tag-new { margin-left: .25rem; }
.manage-sources { margin: .25rem 0 1rem; padding-left: 1.2rem; }
.manage-sources li { margin: .2rem 0; }
.chalk-manage select { font: inherit; font-size: .9rem; padding: .35rem .5rem; border: 1px solid var(--card-border); border-radius: 6px; background: var(--background); }
.chalk-manage td:nth-child(2) { min-width: 16rem; }
.chalk-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; padding: .9rem 1.1rem; border-radius: 14px; text-decoration: none; color: var(--foreground);
  background: linear-gradient(100deg, #FFF8E6 0%, #FFFFFF 55%); border: 1px solid rgba(232,184,75,.45); transition: transform .15s ease, box-shadow .15s ease; }
.chalk-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10,10,10,.07); }
.chalk-card.is-watched { background: var(--background); border-color: var(--card-border); }
.chalk-play { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #0A0A0A; box-shadow: 0 0 0 4px rgba(232,184,75,.25); }
.chalk-play svg { width: 22px; height: 22px; fill: var(--gold, #E8B84B); margin-left: 3px; }
.chalk-card.is-watched .chalk-play { box-shadow: none; }
.chalk-card.is-watched .chalk-play svg { fill: var(--teal); }
.chalk-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chalk-kicker { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9A7414; font-weight: 600; }
.chalk-card.is-watched .chalk-kicker { color: var(--muted); }
.chalk-done { color: #2E7A53; letter-spacing: 0; text-transform: none; font-weight: 500; margin-left: .25rem; }
.chalk-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chalk-sub { font-size: .82rem; color: var(--muted); }
.chalk-go { flex: 0 0 auto; font-size: .85rem; font-weight: 500; color: var(--teal-ink); }
@media (max-width: 560px) { .chalk-go { display: none; } .chalk-title { white-space: normal; } }

/* Watch in Google Drive: the reliable way to play on phones (2026-11-09) */
.drive-open-mobile { display: none; margin: 0 0 .75rem; }
.drive-open-note { margin-top: .5rem; }
.drive-open-phone { display: none; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .drive-open-mobile { display: flex; justify-content: center; width: 100%; max-width: 960px; padding: .75rem 1rem; font-size: 1rem; }
  .drive-open-desktop { display: none; }
  .drive-open-phone { display: inline; }
}

/* Pipeline: deal search near the top, and the admins' past brokers list (2026-11-09) */
.top-search { margin: 0 0 1rem; }
.top-search .deal-search input[type="search"] { width: 26rem; }
.past-brokers { margin-top: 1rem; }
.past-brokers summary { cursor: pointer; font-weight: 600; }

/* Requests: commission split boxes (2026-11-09) */
.splits[hidden], .split-single[hidden] { display: none; }
.split-rows { display: grid; gap: .35rem; margin: .35rem 0; max-width: 26rem; }
.split-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.split-row label { font-weight: 400; margin: 0; }
.split-input { white-space: nowrap; }
.split-input input { width: 4.5rem; text-align: right; }
.split-total { margin: .2rem 0 0; color: var(--muted); }
.split-total.split-bad { color: var(--danger); font-weight: 600; }
.split-dollars { margin: .25rem 0 0; color: var(--teal-ink); }
.split-dollars:empty, .hint.calc:empty { display: none; }
.hint.calc { color: var(--teal-ink); }
.corr-more > summary { cursor: pointer; color: var(--teal-ink); font-weight: 500; margin-bottom: .5rem; }
.corr-more[open] > summary { margin-bottom: .75rem; }

/* Revenue vs. Expenses (Pipeline Dashboards) */
:root { --fin-rev: #2F7F7A; --fin-exp: #C87941; }
.fin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.fin-head h2 { margin-bottom: .1rem; }
.fin-controls { display: flex; gap: .5rem .9rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
/* A thin divider between the year, months-shown and monthly/running groups (COO, 2026-11-19). */
.fin-controls > nav + nav { border-left: 1px solid var(--card-border); padding-left: .9rem; }
.fin-def { background: var(--teal-tint); border-radius: 8px; padding: .5rem .75rem; margin: .75rem 0; }
.fin-stats { margin: .5rem 0 0; }
.fin-stats .stat { border: 1px solid var(--card-border); border-radius: 10px; padding: .6rem .8rem; background: var(--background); }
.fin-stats .stat.pos .num { color: var(--teal-ink); }
.fin-stats .stat.neg .num { color: var(--danger); }
.fin-stats .stat.proj { background: var(--surface); }
.fin-stats .stat.proj .num { font-size: 1.15rem; }
.fin-chart-wrap { overflow-x: auto; margin-top: .75rem; }
.fin-chart { width: 100%; min-width: 600px; height: auto; display: block; }
.fin-grid { stroke: #ECEFF1; stroke-width: 1; }
.fin-chart .axis { font-size: 11px; }
.fin-y { text-anchor: end; }
.fin-x { text-anchor: middle; }
.fin-today { stroke: var(--foreground); stroke-width: 1; stroke-dasharray: 2 3; opacity: .55; }
.fin-today-label { font-size: 11px; fill: var(--muted); }
.fin-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fin-line.revenue { stroke: var(--fin-rev); }
.fin-line.expense { stroke: var(--fin-exp); }
.fin-line.dashed { stroke-dasharray: 6 5; }
.fin-dot.revenue { fill: var(--fin-rev); }
.fin-dot.expense { fill: var(--fin-exp); }
.fin-dot.future { fill: var(--background); stroke-width: 2; }
.fin-dot.revenue.future { stroke: var(--fin-rev); }
.fin-dot.expense.future { stroke: var(--fin-exp); }
.fin { position: relative; }
.fin-hit { fill: transparent; cursor: pointer; outline: none; }
.fin-hit:hover, .fin-hit.on { fill: rgba(126, 200, 195, .12); }
.fin-hit:focus-visible { stroke: var(--teal-ink); stroke-width: 1.5; }
.fin-tip { z-index: 5; }
.line-key { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--fin-rev); margin: 0 .3rem 0 .6rem; vertical-align: middle; }
.line-key.expense { border-top-color: var(--fin-exp); }
.line-key.dashed { border-top: 3px dashed var(--muted-2); }
.fin-list { margin-top: 1rem; }
.fin-list > summary { cursor: pointer; list-style: revert; }
.fin-list > summary h3 { display: inline; font-size: 1rem; }
.fin-deals td { vertical-align: top; }
.fin-deals tfoot td { font-weight: 600; border-top: 2px solid var(--card-border); }
.nowrap { white-space: nowrap; }
.tag-warn { background: #FDF1E7; color: #9A5523; }
.row-warn td { background: #FFF8EC; }
@media (max-width: 640px) { .fin-controls { justify-content: flex-start; } }

/* ---- Feedback (COO, 2026-11-15) ---- */
.nav a.nav-feedback { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; color: var(--teal-ink); border: 1px solid var(--teal); }
.nav a.nav-feedback:hover { background: var(--teal-tint); }
.alert.info { background: var(--teal-tint); color: var(--foreground); border: 1px solid #CDE9E6; }
.alert.info a { color: var(--teal-ink); }
.fb-wrap { max-width: 760px; }
.fb-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 520px) { .fb-types { grid-template-columns: 1fr; } }
.fb-type { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border: 1px solid var(--card-border); border-radius: 8px; cursor: pointer; font-size: .9rem; }
.fb-type:hover { border-color: var(--teal); }
.fb-type:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); font-weight: 500; }
.fb-type input { accent-color: var(--teal-dim); }
.fb-types.has-error .fb-type { border-color: var(--danger); }
.fb-form textarea { resize: vertical; }
.fb-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.fb-actions.center { justify-content: center; }
.fb-card { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.fb-card-text { flex: 1 1 16rem; }
.fb-card-text h2 { font-size: 1.05rem; margin: 0 0 .15rem; }
.fb-card-text p { margin: 0; font-size: .9rem; }
.fb-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---- Leaderboard on Home (COO, 2026-11-19) ---- */
.lb { margin-top: 1.1rem; }
.lb-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 760px) { .lb-row { grid-template-columns: 1fr; } }
.lb-card { background: var(--background); border: 1px solid var(--card-border); border-radius: 14px; padding: 1rem 1.1rem .9rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; box-shadow: 0 1px 2px rgba(10, 10, 10, .04); }
.lb-head { display: flex; align-items: center; gap: .7rem; }
.lb-head h3 { font-size: 1rem; margin: 0; }
.lb-ico { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-ink); }
.lb-ico svg { width: 20px; height: 20px; }
.lb-when { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.lb-p { display: grid; grid-template-columns: 1.6rem 28px minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .4rem .55rem; border-radius: 10px; font-size: .9rem; }
.lb-p .av { margin-left: 0; border-width: 0; }
.lb-p1 { background: linear-gradient(90deg, rgba(232,184,75,.18), rgba(232,184,75,.04)); border: 1px solid rgba(232,184,75,.4); padding-block: .6rem; font-size: 1rem; }
.lb-p1 .av { width: 32px; height: 32px; font-size: .74rem; }
.lb-place { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--card-border); }
.lb-p1 .lb-place { background: #E8B84B; border-color: #E8B84B; }
.lb-p1 .lb-place svg { width: 15px; height: 15px; fill: #fff; }
.lb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lb-name .dot { margin: 0 0 0 .25rem; }
.lb-val { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.lb-val b { color: var(--foreground); font-size: 1rem; font-family: var(--font-head); }
.lb-p1 .lb-val b { font-size: 1.2rem; }
.lb-empty { margin: 0; padding: .8rem; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: .88rem; }
.lb-more { margin: -.3rem 0 0 2.2rem; font-size: .78rem; color: var(--muted); }
.lb-foot { margin-top: auto; padding-top: .55rem; border-top: 1px solid var(--card-border); font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .8rem; }
.lb-foot b { color: var(--foreground); font-weight: 600; }
.lb-note { margin: .5rem 0 0; font-size: .78rem; color: var(--muted); }

/* ---- Saved calculations, Save as PDF, Copy results (COO, 2026-11-19) ---- */
.calc-save { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-bottom: 1rem; }
.calc-save-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; flex: 1 1 22rem; margin: 0; }
.calc-save-form input[type="text"] { flex: 1 1 14rem; min-width: 0; }
.calc-save-tools { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; }
.calc-save .hint { flex-basis: 100%; margin: 0; font-size: .78rem; color: var(--muted); }
.calc-open-name { font-size: .7em; font-weight: 500; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.saved-calcs td { vertical-align: middle; }
.saved-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: flex-start; }
.saved-more > summary { list-style: none; cursor: pointer; }
.saved-more > summary::-webkit-details-marker { display: none; }
.saved-more[open] > summary { background: var(--teal-tint); }
.saved-more .inline-form { margin-top: .4rem; align-items: center; }
.print-head, .print-client-note { display: none; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .topbar, .no-print, .calc-save, button, .btn, .btn-link, [data-remove], [data-add-broker], .skip-link { display: none !important; }
  .main { padding: 0; max-width: none; }
  .print-head { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid #2B7A78; }
  .print-title { font-size: 15pt; font-weight: 700; }
  .print-meta { font-size: 9.5pt; color: #555; }
  body.print-client .print-client-note { display: block; font-size: 9.5pt; font-style: italic; color: #444; margin: 0 0 8px; }
  body.print-client [data-internal] { display: none !important; }
  .calc-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
  .calc-results { position: static; max-height: none; overflow: visible; }
  .calc-form .card { break-inside: auto; }
  .card { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; padding: 8px 12px; margin-bottom: 8px; }
  .calc-form .hint, .calc-form .field .hint { display: none; }
  .calc-form input:not([type="checkbox"]), .calc-form select { padding: 2px 6px; min-height: 0; height: auto; font-size: 10pt; }
  .calc-form select { -webkit-appearance: none; appearance: none; background-image: none; }
  .calc-form input::placeholder { color: transparent; }
  .calc-form input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; width: 12px; height: 12px; }
  .calc-form .field-grid { grid-template-columns: 1fr 1fr; gap: 2px 10px; }
  .calc-form .field label, .calc-form .label { font-size: 9pt; }
  .calc-results .out-row { padding: 3px 0; }
  .table { font-size: 9.5pt; }
  .table-wrap { overflow: visible; }
  a { color: inherit; text-decoration: none; }
}

/* ---- Requests → Waiting: Copy / Download / Mark selected as done (COO, 2026-11-20) ---- */
.corr-tools { margin-bottom: 1rem; }
.corr-tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.corr-tools .hint { display: block; margin: .5rem 0 0; font-size: .78rem; color: var(--muted); }
.corr-done > summary { list-style: none; cursor: pointer; }
.corr-done > summary::-webkit-details-marker { display: none; }
.corr-done[open] > summary { background: var(--teal-tint); }
.corr-done .inline-form { margin-top: .4rem; align-items: center; }
.corr-done input[type="text"] { min-width: 16rem; padding: .4rem .6rem; border: 1px solid var(--card-border); border-radius: 6px; font: inherit; font-size: .9rem; }
.request-head .corr-pick { margin-right: .45rem; transform: scale(1.15); vertical-align: middle; }
.tag-exported { background: #F1F3F4; color: var(--muted); }

/* Activity and commission card (COO, 2026-11-20): GCI line, meetings bars, calls strip. */
:root { --act-gci: #2F7F7A; --act-meet: #BFE3DF; --act-calls: #C87941; }
.act { position: relative; }
.act-stats { margin: .75rem 0 0; }
.act-line { fill: none; stroke: var(--act-gci); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }
.act-dot { fill: var(--act-gci); stroke: #fff; stroke-width: 1.5; }
.act-bar { fill: var(--act-meet); }
.act-y2 { text-anchor: start; }
.act-axis-title { font-size: 10px; fill: var(--muted); font-weight: 600; letter-spacing: .03em; }
.act-strip-label { text-anchor: end; font-weight: 600; }
.act-strip-bg { fill: var(--surface); }
.act-strip { fill: var(--act-calls); }
.act-strip-num { font-size: 11px; text-anchor: middle; fill: var(--foreground); font-variant-numeric: tabular-nums; }
.act-strip-num.on-dark { fill: #fff; font-weight: 600; }
.line-key.act-gci { border-top-color: var(--act-gci); }
.box-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 .3rem 0 .6rem; vertical-align: middle; }
.box-key.act-meet { background: var(--act-meet); }
.box-key.act-calls { background: linear-gradient(90deg, rgba(200, 121, 65, .2), rgba(200, 121, 65, .95)); }
.act-picker { gap: .4rem; align-items: center; }
.act-picker label { margin: 0; line-height: 1; }
.act-picker select { max-width: 16rem; }

/* Page bands: Home's look on inner pages (design preview, 2026-11-20). */
.main.main-bleed { max-width: none; padding: 0 0 4rem; }
.main-bleed > :not(.page-band):not(script) { width: min(1200px - 2.5rem, calc(100% - 2.5rem)); margin-left: auto; margin-right: auto; }
.main-bleed > .page-band { margin-bottom: 1.4rem; }
.page-band .band-inner { padding: 1.6rem 1.25rem 1.6rem; }
.page-band .band-bell { width: 300px; right: -30px; top: -40px; }
.pb-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pb-title { display: flex; align-items: center; gap: .8rem; }
.pb-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--teal);
  background: rgba(126,200,195,.14); border: 1px solid rgba(126,200,195,.3); }
.pb-title h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.pb-title h1 em { font-style: normal; color: var(--teal); }
.pb-right { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.pb-sub-row { margin: .7rem 0 1.3rem; }
.page-band .stats-band:last-child, .pb-stats { margin-bottom: 0; }
.pb-stats.pb-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pb-stats.pb-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pb-stats.pb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-stats.pb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-stat.sb-warn { border-color: rgba(232,184,75,.55); background: rgba(232,184,75,.1); }
.sb-stat.sb-warn .sb-label { color: #E8C77A; }
.btn.band-btn { background: var(--teal); color: #0A0A0A; border-color: var(--teal); }
.band-link { color: #DDE6EB; font-size: .85rem; }
.band-link:hover { color: #fff; }
.band-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.band-tabs a { padding: .35rem .85rem; border-radius: 999px; text-decoration: none; font-size: .88rem; color: #DDE6EB; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.band-tabs a:hover { border-color: var(--teal); color: #fff; }
.band-tabs a.active { background: rgba(126,200,195,.18); border-color: var(--teal); color: #fff; }
.band-tabs .count { margin-left: .3rem; }
/* Cards below a band: Home's rounder cards and icon headings. */
.main-bleed .card { border-radius: 14px; }
.card-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.card-head h2 { margin: 0; }
.card-head .ch-ico { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-ink); }
.card-head .ch-note { margin-left: auto; font-size: .82rem; color: var(--muted); }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin: 1.6rem 0 .75rem; }
.sec-title h2 { font-size: 1.1rem; margin: 0; }
.sec-title span { font-size: .82rem; color: var(--muted); }
.htiles.htiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mod-progress { display: block; margin: -.2rem 0 .8rem; }
@media (max-width: 900px) {
  .pb-stats.pb-cols-5, .pb-stats.pb-cols-6, .pb-stats.pb-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .htiles.htiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .htiles.htiles-3 { grid-template-columns: minmax(0, 1fr); }
}
/* Slim band: forms, lists and admin pages (COO, 2026-11-20). */
.page-band.slim .band-inner { padding: 1.15rem 1.25rem 1.2rem; }
.page-band.slim .pb-ico { width: 38px; height: 38px; border-radius: 11px; }
.page-band.slim .pb-ico svg { width: 20px; height: 20px; }
.page-band.slim .pb-title h1 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.page-band.slim .pb-sub-row { margin: .55rem 0 0; }
.page-band.slim .band-bell { width: 220px; top: -50px; opacity: .05; }
.pb-crumbs { font-size: .8rem; color: #8FA0AA; margin-bottom: .55rem; }
.pb-crumbs a { color: #B9C6CF; text-decoration: none; }
.pb-crumbs a:hover { color: #fff; text-decoration: underline; }
.pb-crumbs strong { color: #DDE6EB; font-weight: 500; }
.pb-title h1 .muted { color: #8FA0AA; font-weight: 500; }
@media print { .page-band { display: none !important; } .main.main-bleed { padding: 0; } .main-bleed > :not(.page-band) { width: auto; margin-top: 0; } }
/* Pipeline market filter on the white page, with a callout (COO, 2026-11-20). */
.page-filter { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap;
  background: var(--teal-tint); border: 1px solid rgba(126,200,195,.55); border-radius: 14px; padding: .75rem 1rem; margin-bottom: 1rem; }
.pf-text { display: flex; align-items: center; gap: .7rem; }
.pf-text strong { display: block; font-size: .92rem; }
.pf-text span:not(.pf-ico) { display: block; font-size: .82rem; color: var(--muted); }
.pf-ico { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--background); color: var(--teal-ink); border: 1px solid rgba(126,200,195,.55); }
.tag-escrow { background: #EEF4FB; color: #2D5B8A; }
