/* Gotham is a licensed font. If you hold a web licence, put the files in public/fonts/ with these names and they are used
   automatically. Until then the free look-alike Montserrat (loaded from Google Fonts) is shown. */
@font-face { font-family: "Gotham"; font-weight: 300; font-display: swap; src: local("Gotham Light"), local("Gotham-Light"), url("/fonts/Gotham-Light.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-weight: 400; font-display: swap; src: local("Gotham Book"), local("Gotham-Book"), url("/fonts/Gotham-Book.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-weight: 500; font-display: swap; src: local("Gotham Medium"), local("Gotham-Medium"), url("/fonts/Gotham-Medium.woff2") format("woff2"); }
@font-face { font-family: "Gotham"; font-weight: 700; font-display: swap; src: local("Gotham Bold"), local("Gotham-Bold"), url("/fonts/Gotham-Bold.woff2") format("woff2"); }
/* Layout: navy top bar flowing into a hero band with a ridge line, then a centred content column (max 1040px).
   Tables scroll inside their own wrappers. Colours and fonts are tokens so light and dark share one set of rules. */
:root {
  color-scheme: light;
  --bg: #f2f5f7;
  --surface: #ffffff;
  --ink: #14212c;
  --muted: #566774;
  --line: #dce3e8;
  --accent: #1b7a72;
  --accent-ink: #ffffff;
  --accent-soft: #ddf0ed;
  --good: #1d7a46;
  --good-soft: #def2e6;
  --warn: #8f5500;
  --warn-soft: #fbecd0;
  --bad: #b3261e;
  --bad-soft: #fbe0de;
  --bar: #1b7a72;
  --bar-dim: #b5d9d4;
  --hero: #11273b;
  --hero-ink: #f3f6f8;
  --hero-muted: #a9bccb;
  --hero-pop: #f2b66b;
  --red: var(--hero-pop);
  --ridge-a: #1b3a54;
  --ridge-b: var(--bg);
  --shadow: 0 1px 2px rgba(17, 39, 59, .05), 0 8px 24px -12px rgba(17, 39, 59, .12);
  --font-display: "Gotham", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Gotham", "Montserrat", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e161c; --surface: #15212a; --ink: #e6eef1; --muted: #93a5af; --line: #263641;
    --accent: #5cc0b6; --accent-ink: #072622; --accent-soft: #163a38;
    --good: #6fd09a; --good-soft: #163626; --warn: #f0b95a; --warn-soft: #3d2d10;
    --bad: #f29a93; --bad-soft: #43201d; --bar: #5cc0b6; --bar-dim: #25474d;
    --hero: #0a1824; --ridge-a: #12293d; --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e161c; --surface: #15212a; --ink: #e6eef1; --muted: #93a5af; --line: #263641;
  --accent: #5cc0b6; --accent-ink: #072622; --accent-soft: #163a38;
  --good: #6fd09a; --good-soft: #163626; --warn: #f0b95a; --warn-soft: #3d2d10;
  --bad: #f29a93; --bad-soft: #43201d; --bar: #5cc0b6; --bar-dim: #25474d;
  --hero: #0a1824; --ridge-a: #12293d; --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; }
h2 { font-size: 1.15rem; line-height: 1.25; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.label { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* ---- top bar and hero ---- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--hero); color: var(--hero-ink); }
.topbar-in { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.logo { flex: none; width: 44px; height: 44px; display: block; }
.brand { gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand b { font-size: 1.05rem; font-weight: 300; letter-spacing: 0.22em; line-height: 1.2; }
.brand b i, .brand-lg b i { font-style: normal; font-weight: 700; }
.brand-text .sub { color: var(--hero-muted); font-size: 0.6875rem; letter-spacing: 0.16em; }
.brand .muted { color: var(--hero-muted); }
.who { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.topbar .btn { background: transparent; color: var(--hero-ink); border-color: rgba(255, 255, 255, .28); }
.topbar .btn:hover { border-color: var(--hero-pop); }
.topbar .muted { color: var(--hero-muted); }

main { padding-block: 0 72px; display: flex; flex-direction: column; gap: 20px; }
main > :not(.hero):not(.auth) { width: min(1040px, calc(100% - 32px)); margin-inline: auto; }
.hero { background: var(--hero); color: var(--hero-ink); position: relative; margin-bottom: 4px; }
.hero-in { max-width: 1040px; margin: 0 auto; padding: 18px 16px 76px; display: flex; flex-direction: column; gap: 18px; }
.hero-row { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.hero-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 360px; }
.hero p { color: var(--hero-muted); max-width: 56ch; }
.hero .crumb { color: var(--hero-muted); }
.hero-fact { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.hero-fact .big { font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 500; line-height: 1; color: var(--hero-pop); font-variant-numeric: lining-nums tabular-nums; }
.hero-fact .sm { color: var(--hero-muted); font-size: 0.875rem; }
.hero-chip { align-self: flex-start; border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px; padding: 2px 11px; font-size: 0.8125rem; color: var(--hero-ink); }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; display: block; pointer-events: none; }
.ridge .a { fill: var(--ridge-a); }
.ridge .b { fill: var(--ridge-b); }
@media (max-width: 560px) { .hero-fact { text-align: left; } .hero-in { padding-bottom: 64px; } }

.hero .segmented { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.hero .seg { color: var(--hero-muted); }
.hero .seg[aria-pressed="true"] { background: var(--hero-ink); color: var(--hero); }

/* ---- buttons, forms ---- */
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 16px; font-weight: 500; transition: border-color .15s, background-color .15s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 6px 12px; font-size: 0.8125rem; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.link { border: none; background: none; padding: 4px 6px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: default; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 0.8125rem; font-weight: 600; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 84px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1 1 160px; }
.formgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.formgrid .wide { grid-column: 1 / -1; }
.sectionhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.actions { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.err { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 9px 12px; font-size: .875rem; }
.ok { background: var(--good-soft); color: var(--good); border-radius: 10px; padding: 9px 12px; font-size: .875rem; }
.banner { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 0.8125rem; }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbox input { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--bg); font-size: .8125rem; }
.crumb { background: none; border: none; padding: 0; color: var(--accent); font-weight: 600; align-self: flex-start; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; }
.consent input { margin-top: 4px; }
select#listingPick { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface); max-width: 100%; align-self: flex-start; }
.filehead { padding-top: 10px; border-top: 1px solid var(--line); }

/* ---- sign-in: two columns on wide screens, art band on top on phones ---- */
body.bare .topbar { display: none; }
body.bare main { padding-bottom: 0; gap: 0; }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-art { background: var(--hero); color: var(--hero-ink); position: relative; padding: 36px 40px 100px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; }
.auth-art .brand-lg { display: flex; align-items: center; gap: 16px; }
.auth-art .logo { width: 72px; height: 72px; }
.auth-art .brand-lg b { font-size: 1.45rem; font-weight: 300; letter-spacing: 0.22em; display: block; line-height: 1.15; }
.auth-art .brand-lg span { color: var(--hero-muted); font-size: 0.6875rem; letter-spacing: 0.16em; display: block; margin-top: 4px; }
.auth-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; max-width: 14ch; }
.auth-sub { color: var(--hero-muted); max-width: 40ch; margin-top: 14px; }
.auth-art .ridge { height: 90px; }
.auth-art .ridge .b { fill: var(--ridge-a); }
.auth-art .ridge .c { fill: var(--hero-pop); opacity: .16; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login .panel { box-shadow: none; border: none; background: none; padding: 0; }
.login h1 { font-size: 1.8rem; }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { padding: 22px 20px 70px; gap: 22px; }
  .auth-title { font-size: 1.6rem; max-width: none; }
  .auth-art .logo { width: 52px; height: 52px; }
  .auth-art .brand-lg b { font-size: 1.1rem; }
  .auth-sub { display: none; }
  .auth-art .ridge { height: 52px; }
  .auth-form { padding: 28px 20px 48px; align-items: flex-start; }
}

.head { display: flex; flex-direction: column; gap: 6px; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 11px 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- key figures: one connected strip instead of separate cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.grid > .panel { border: none; border-radius: 0; box-shadow: 0 0 0 1px var(--line); background: none; padding: 18px 20px; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat .num { font-size: 2.1rem; font-weight: 500; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.stat .label { order: -1; }
.two { display: grid; gap: 16px; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* ---- tables ---- */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
th { text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; }
tr.subject td { background: var(--accent-soft); }
tr.subject td:first-child { border-radius: 8px 0 0 8px; }
tr.subject td:last-child { border-radius: 0 8px 8px 0; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.neutral { background: var(--accent-soft); color: var(--accent); }
.chip.plain { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

.feed { display: flex; flex-direction: column; }
.item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.item .when { width: 84px; flex: none; }
.item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item .line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quote { color: var(--ink); }

.dl { display: grid; grid-template-columns: 150px 1fr; gap: 9px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 0.8125rem; padding-top: 1px; }
.dl dd { margin: 0; min-width: 0; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 0; } .dl dt { margin-top: 8px; } }

.deadline { display: flex; gap: 16px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.deadline:last-child { border-bottom: none; }
.deadline .date { width: 74px; flex: none; }
.deadline.done .name { text-decoration: line-through; color: var(--muted); }
.check { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; margin-left: auto; white-space: nowrap; }

.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; background: var(--bg); font-size: 0.875rem; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

svg text { fill: var(--muted); font-family: var(--font-body); font-size: 11px; }
svg .gridline { stroke: var(--line); }
.bar-track { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--bg); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; margin-right: 5px; }

.segmented { display: inline-flex; align-self: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--surface); gap: 3px; }
.seg { border: none; background: none; padding: 7px 18px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-size: 0.875rem; max-width: calc(100% - 32px); z-index: 10; }

/* one entrance: the hero figure settles in once on load */
@media (prefers-reduced-motion: no-preference) {
  .toast { transition: opacity .2s; }
}

/* ---- photography: each photo sits under a navy wash so white text stays readable ---- */
.hero[class*="ph-"] { background-size: cover; background-position: center; }
.hero.ph-city { background-image: linear-gradient(95deg, color-mix(in srgb, var(--hero) 90%, transparent) 0%, color-mix(in srgb, var(--hero) 58%, transparent) 55%, color-mix(in srgb, var(--hero) 28%, transparent) 100%), url("/photo-city.jpg"); background-position: center 62%; }
.hero.ph-wood { background-image: linear-gradient(95deg, color-mix(in srgb, var(--hero) 88%, transparent) 0%, color-mix(in srgb, var(--hero) 52%, transparent) 60%, color-mix(in srgb, var(--hero) 46%, transparent) 100%), url("/photo-wood.jpg"); }
.hero.ph-light { background-image: linear-gradient(95deg, color-mix(in srgb, var(--hero) 90%, transparent) 0%, color-mix(in srgb, var(--hero) 62%, transparent) 60%, color-mix(in srgb, var(--hero) 38%, transparent) 100%), url("/photo-light.jpg"); }
.hero[class*="ph-"] .in, .hero[class*="ph-"] .hero-in { padding-top: 34px; padding-bottom: 104px; }
.hero[class*="ph-"] .ridge { height: 64px; }
.hero[class*="ph-"] .ridge .a { fill: var(--hero); opacity: .6; }
.hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.auth-art.ph-fire { background-image: linear-gradient(180deg, color-mix(in srgb, var(--hero) 62%, transparent) 0%, color-mix(in srgb, var(--hero) 34%, transparent) 38%, color-mix(in srgb, var(--hero) 94%, transparent) 100%), url("/photo-fire.jpg"); background-size: cover; background-position: center 30%; }
.auth-art .ridge .a { fill: var(--hero); opacity: .55; }
.auth-art .ridge .b { fill: var(--hero); opacity: .9; }
@media (max-width: 820px) { .auth-art.ph-fire { background-position: center 38%; } }

.contact { background-image: linear-gradient(95deg, color-mix(in srgb, var(--surface) 96%, transparent) 0%, color-mix(in srgb, var(--surface) 78%, transparent) 55%, color-mix(in srgb, var(--surface) 30%, transparent) 100%), url("/photo-sofa.jpg"); background-size: cover; background-position: right center; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-top: 12px; }
.contact-in { padding: 30px 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.contact .btn { text-decoration: none; display: inline-block; }
.hero-fact, .hero p { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.contact .btn { color: var(--ink); }
.contact .btn.primary { color: var(--accent-ink); }
@media (max-width: 620px) { .contact { background-image: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent) 0%, color-mix(in srgb, var(--surface) 80%, transparent) 100%), url("/photo-sofa.jpg"); } }

/* one red line closes the banner (no ridge) */
.hero { border-bottom: 3px solid var(--red); margin-bottom: 8px; }
.hero-in, .hero[class*="ph-"] .hero-in { padding-bottom: 40px; }
.hero[class*="ph-"] .hero-in { padding-top: 38px; padding-bottom: 46px; }
.auth-art { border-right: 3px solid var(--red); padding-bottom: 40px; }
@media (max-width: 820px) { .auth-art { border-right: none; border-bottom: 3px solid var(--red); padding-bottom: 28px; } }
@media (max-width: 560px) { .hero-in, .hero[class*="ph-"] .hero-in { padding-bottom: 32px; } }

/* ---- phone polish ---- */
@media (max-width: 620px) {
  .tabs { gap: 0; }
  .tab { padding: 11px 10px; font-size: 0.8125rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid > .panel { padding: 14px 16px; }
  .stat .num { font-size: 1.8rem; }
  .stat .small { font-size: 0.75rem; }
  .tablewrap table { min-width: 540px; }
  .tablewrap td:first-child, .tablewrap th:first-child { min-width: 150px; }
  .tablewrap { margin-inline: -4px; padding-bottom: 4px; }
  svg.chart text { font-size: 20px; }
  .panel { padding: 18px; }
  .hero p { font-size: 0.875rem; }
}

.plainlist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
svg.spark { max-width: 760px; }
svg.spark text { font-size: 15px; fill: var(--muted); }
svg.spark text.spark-end { font-weight: 600; fill: var(--ink); }
@media (max-width: 640px) { svg.spark text { font-size: 26px; } }


/* key dates timeline */
.tl { list-style: none; margin: 4px 0 0; padding: 0 0 4px; display: flex; overflow-x: auto; }
.tl li { position: relative; flex: 1 0 128px; padding: 30px 12px 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl li::before { content: ""; position: absolute; top: 8px; left: 18px; right: 0; height: 3px; background: var(--line); border-radius: 2px; }
.tl li:last-child::before { display: none; }
.tl li.done::before { background: var(--hero-pop); }
.tl .dot { position: absolute; top: 0; left: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); box-sizing: border-box; z-index: 1; }
.tl li.done .dot { background: var(--hero-pop); border-color: var(--hero-pop); }
.tl li.next .dot { border-color: var(--hero-pop); box-shadow: 0 0 0 5px color-mix(in srgb, var(--hero-pop) 28%, transparent); }
.tl li.late .dot { border-color: var(--bad); }
.tl b { font-weight: 600; overflow-wrap: anywhere; }
.tl .tl-note { color: var(--muted); }
.tl li.next .tl-note { color: var(--ink); font-weight: 600; }
.tl li.late .tl-note { color: var(--bad); font-weight: 600; }
@media (max-width: 640px) {
  .tl { flex-direction: column; overflow: visible; }
  .tl li { flex: none; padding: 0 0 20px 34px; min-height: 40px; }
  .tl li:last-child { padding-bottom: 0; }
  .tl li::before { top: 19px; bottom: -1px; left: 8px; right: auto; width: 3px; height: auto; }
}

.dl a { color: var(--accent); text-underline-offset: 3px; }
.dl a:hover { color: var(--ink); }

/* agent preview of a client's portal */
.previewbar { position: sticky; top: 0; z-index: 40; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px max(16px, calc((100% - 1040px) / 2)); background: var(--hero-pop); color: #1b2733; font-size: 0.875rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.previewbar .btn { background: #fff; color: #1b2733; border-color: transparent; }

/* a live contract: its tab leads the row, in the portal's own teal */
.tab.tab-hot { color: var(--accent); background: var(--accent-soft); border-radius: 8px 8px 0 0; }
.tab.tab-hot:hover { color: var(--accent); filter: brightness(.97); }
.tab.tab-hot[aria-selected="true"] { border-bottom-color: var(--accent); }
