@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
/* South Oak Forecast & Allocation — light theme, dataviz reference palette */
:root {
  color-scheme: light;
  --surface-1: #fcfcfb;
  --page: #f9f9f7;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11,11,11,0.10);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --seq-100: #cde2fb; --seq-200: #9ec5f4; --seq-300: #6da7ec;
  --seq-400: #3987e5; --seq-500: #256abf; --seq-600: #184f95; --seq-700: #0d366b;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --good-text: #006300;
  --radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--page); color: var(--ink); font-size: 14px; }
h1,h2,h3 { font-weight: 650; margin: 0 0 .4em; }
h1 { font-size: 18px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
a { color: var(--series-1); }
button { font: inherit; cursor: pointer; }

/* layout */
#app { min-height: 100vh; display: flex; flex-direction: column; }
header.topbar {
  display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: var(--surface-1); border-bottom: 1px solid var(--grid);
  position: sticky; top: 0; z-index: 900;   /* above every dashboard popover / road-map pin (v2.6.1) */
}
.topbar .brand { font-weight: 700; letter-spacing: .02em; }
.topbar .brand small { display:block; font-weight: 400; color: var(--muted); font-size: 11px; }
nav.tabs { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
nav.tabs button {
  border: 0; background: transparent; padding: 8px 12px; border-radius: 6px;
  color: var(--ink-2); font-weight: 500;
}
nav.tabs button:hover { background: #f0efec; }
nav.tabs button.active { background: var(--seq-100); color: var(--seq-600); font-weight: 650; }
.navgroup { position: relative; }
.navgroup .grpbtn .caret { font-size: 10px; color: var(--muted); }
.navgroup .menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 100;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(11,11,11,.12); padding: 6px; min-width: 200px;
}
.navgroup.open .menu { display: block; }
.navgroup .menu button { display: block; width: 100%; text-align: left; white-space: nowrap; }

/* dashboard hero */
.hero {
  position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 16px;
  background: url('hero.jpg') center 62% / cover no-repeat; min-height: 190px;
  display: flex; align-items: flex-end; border: 1px solid var(--border);
}
.hero .scrim {
  width: 100%; padding: 40px 24px 16px;
  background: linear-gradient(180deg, rgba(11,11,11,0) 0%, rgba(11,11,11,.62) 78%);
  color: #fff;
}
.hero h1 { color: #fff; font-size: 22px; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.hero .sub { color: #e8e7e2; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* dashboard section cards */
.section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin-bottom: 16px; }
.section-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.section-card:hover { border-color: var(--seq-400); box-shadow: 0 1px 6px rgba(42,120,214,.18); }
.section-card h3 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.section-card h3 .go { color: var(--series-1); font-size: 12px; font-weight: 500; }
.section-card .stat { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid var(--grid); font-size: 13px; }
.section-card .stat:last-child { border-bottom: 0; }
.section-card .stat .v { font-weight: 650; font-variant-numeric: tabular-nums; }
.topbar .spacer { flex: 1; }
.topbar .asof { color: var(--muted); font-size: 12px; text-align: right; }
main { flex: 1; padding: 20px; max-width: 1500px; width: 100%; margin: 0 auto; }
main.wide { max-width: none; }
.topbar img.logo { height: 40px; width: auto; display: block; }
.login-box img.logo { height: 110px; width: auto; margin: 0 auto 10px; display: block; }

/* cards & tiles */
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.tile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.tile.click, tr.click { cursor: pointer; }
.tile.click:hover { border-color: var(--seq-400); box-shadow: 0 1px 4px rgba(42,120,214,.18); }

/* collapsible alert groups */
details.alert-group { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; background: var(--surface-1); }
details.alert-group > summary { cursor: pointer; padding: 10px 12px; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 8px; }
details.alert-group > summary::-webkit-details-marker { display: none; }
details.alert-group > summary .caret { margin-left: auto; color: var(--muted); transition: transform .15s; font-weight: 400; }
details.alert-group[open] > summary .caret { transform: rotate(90deg); }
details.alert-group .body { padding: 0 12px 10px; }
.count-badge { display: inline-block; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.count-badge.critical { background: #fbe9e9; color: #8f1f1f; }
.count-badge.serious { background: #fceee7; color: #8f3a15; }
.count-badge.warning { background: #fdf3dc; color: #7a5200; }
.count-badge.good { background: #edf7ed; color: var(--good-text); }
.tile .label { color: var(--ink); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.tile .value { font-size: 24px; font-weight: 650; }
.tile .sub { color: var(--muted); font-size: 11px; margin-top: 2px; }

/* tables — all large tables live inside .scrolltable containers that scroll
   themselves (both axes); headers stick to the container top, not the page */
.scrolltable { overflow: auto; max-height: calc(100vh - 210px); border: 1px solid var(--grid); border-radius: 6px; background: var(--surface-1); }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
table.data th {
  text-align: right; font-size: 11px; color: var(--muted); font-weight: 600;
  padding: 6px 8px; border-bottom: 1px solid var(--baseline);
  background: var(--surface-1); white-space: nowrap; cursor: pointer;
}
.scrolltable table.data th { position: sticky; top: 0; z-index: 10; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th.txt, table.data td.txt { text-align: left; }
table.data td { padding: 6px 8px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; background: var(--surface-1); }
table.data tr.brandrow td { background: #f0efec; font-weight: 650; text-align: left; font-size: 12px; letter-spacing: .04em; }
table.data tr:hover td { background: #f6f9fe; }
table.data tr.expand-detail td { background: #fafbfd; white-space: normal; }

/* frozen left columns (Brand / Grp / Model line) for wide tables */
table.data .fz1, table.data .fz2, table.data .fz3 { position: sticky; z-index: 5; }
table.data th.fz1, table.data th.fz2, table.data th.fz3 { z-index: 15; }
table.data .fz1 { left: 0; min-width: 72px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
table.data .fzfull { position: sticky; left: 0; z-index: 5; }
.expand-detail .fzwrap, .brandrow .fzwrap { position: sticky; left: 12px; display: inline-block; max-width: min(1200px, calc(100vw - 140px)); text-align: left; }
table.data .fz2 { left: 72px; min-width: 40px; }
table.data .fz3 { left: 128px; min-width: 190px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; box-shadow: 4px 0 6px -4px rgba(11,11,11,.18); }
.num-strong { font-weight: 650; }
.dim { color: var(--muted); }

/* status chips — always icon + label, never color alone */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; border: 1px solid var(--border); }
.chip.good { color: var(--good-text); background: #edf7ed; }
.chip.warning { color: #7a5200; background: #fdf3dc; }
.chip.serious { color: #8f3a15; background: #fceee7; }
.chip.critical { color: #8f1f1f; background: #fbe9e9; }
.chip.neutral { color: var(--ink-2); background: #f0efec; }

/* alerts */
.alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 6px; margin-bottom: 8px; border: 1px solid var(--border); align-items: baseline; }
.alert .ico { font-weight: 700; }
.alert.critical { background: #fbe9e9; } .alert.critical .ico { color: var(--critical); }
.alert.serious { background: #fceee7; } .alert.serious .ico { color: var(--serious); }
.alert.warning { background: #fdf3dc; } .alert.warning .ico { color: #7a5200; }
.alert.good { background: #edf7ed; } .alert.good .ico { color: var(--good-text); }

/* forms */
input, select, textarea {
  font: inherit; padding: 7px 10px; border: 1px solid var(--baseline);
  border-radius: 6px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--seq-200); border-color: var(--seq-400); }
input.inline-num { width: 64px; padding: 3px 6px; text-align: right; }
.btn {
  background: var(--seq-500); color: #fff; border: 0; border-radius: 6px;
  padding: 8px 16px; font-weight: 600;
}
.btn:hover { background: var(--seq-600); }
.btn.secondary { background: #f0efec; color: var(--ink); border: 1px solid var(--baseline); }
.btn.secondary:hover { background: #e8e7e2; }
.btn.danger { background: var(--critical); }
.btn:disabled { opacity: .5; cursor: default; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--page); }
.login-box { background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 32px; width: 340px; text-align: center; }
.login-box input { width: 100%; text-align: center; font-size: 20px; letter-spacing: .3em; margin: 16px 0; }
.login-box .err { color: var(--critical); font-size: 12px; min-height: 16px; }

/* import zone */
.dropzone {
  border: 2px dashed var(--baseline); border-radius: 10px; padding: 32px;
  text-align: center; color: var(--ink-2); background: #fff; transition: border-color .15s;
}
.dropzone.over { border-color: var(--seq-400); background: #f6f9fe; }
.import-log { font-size: 12px; margin-top: 10px; }
.import-log li { margin-bottom: 3px; }

/* sparkline & bars */
.spark { vertical-align: middle; }
.meter { display: inline-block; height: 8px; border-radius: 4px; background: var(--seq-100); position: relative; vertical-align: middle; }
.meter > i { display: block; height: 100%; border-radius: 4px; background: var(--series-1); }
.meter > i.over { background: var(--serious); }

/* aging heat cells */
td.heat0 { background: transparent; }
td.heat1 { background: var(--seq-100); }
td.heat2 { background: var(--seq-200); }
td.heat3 { background: var(--seq-300); color: #fff0; color: var(--ink); }
td.heat4 { background: var(--seq-400); color: #fff; }
td.heat5 { background: var(--seq-600); color: #fff; }

/* fmv cards */
.fmv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.fmv-card h3 { display: flex; justify-content: space-between; align-items: baseline; }
.fmv-table { width: 100%; font-size: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fmv-table th { text-align: left; color: var(--muted); font-size: 11px; padding: 3px 6px; border-bottom: 1px solid var(--baseline); }
.fmv-table td { padding: 3px 6px; border-bottom: 1px solid var(--grid); }
.gapbar { display: flex; align-items: center; gap: 6px; }
.gapbar .bar { height: 8px; border-radius: 4px; }

/* misc */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }
.pill-note { font-size: 12px; color: var(--muted); }
.beta-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .03em; line-height: 1.5;
  background: var(--seq-100); color: var(--seq-700); vertical-align: middle;
}
.toast {
  position: fixed; bottom: 20px; right: 20px; background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 8px; z-index: 200; opacity: 0; transition: opacity .2s;
}
.toast.show { opacity: 1; }
details.grp-detail { margin: 4px 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.footer-note { color: var(--muted); font-size: 11px; padding: 12px 20px; text-align: center; }
@media (max-width: 800px) {
  main { padding: 10px; }
  table.data { font-size: 12px; }
}
@media print {
  header.topbar, .toolbar, .btn { display: none !important; }
}

/* ---- Dashboard forecast hero tiles (v1.6) ---- */
.fc-hero-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; margin-bottom: 14px; }
.fc-hero { display: grid; grid-template-columns: 1fr 150px; grid-template-areas: 'main next' 'foot foot'; gap: 12px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; border-top: 4px solid var(--series-1); }
.fc-hero.used { border-top-color: var(--series-2); }
.fc-hero .label { color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.fc-hero-next .nx .label { font-size: 13px; }
.fc-hero .big { font-size: 56px; font-weight: 700; line-height: 1.05; margin: 4px 0 2px; }
.fc-hero .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.fc-hero-main { grid-area: main; }
.fc-hero-next { grid-area: next; }
.fc-hero-foot { grid-area: foot; border-top: 1px solid var(--grid); padding-top: 8px; color: var(--ink-2); font-size: 13px; }
.fc-hero .mtd { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; margin-top: 12px; font-size: 14px; }
.fc-hero .mtd .inline-num { font-size: 20px; font-weight: 700; width: 84px !important; padding: 4px 8px; }
.fc-hero .mtd .need { grid-column: 1 / -1; font-size: 15px; color: var(--ink); }
.fc-hero .mtd .chip { font-size: 13px; padding: 3px 10px; }
.fc-hero .mtd label { font-weight: 700; color: var(--ink); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.fc-hero-next { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--grid); padding-left: 12px; justify-content: center; }
.fc-hero-next .nx .label { text-transform: none; font-weight: 500; }
.fc-hero-next .nx .v { font-size: 26px; font-weight: 650; line-height: 1.1; }
.fc-hero-next .nx .sub { font-size: 11px; }
@media (max-width: 560px) { .fc-hero { grid-template-columns: 1fr; } .fc-hero-next { border-left: 0; padding-left: 0; flex-direction: row; } }

/* ---- Dashboard tile groups (v1.8.1) ---- */
.tile-group { margin-bottom: 0; }
.tile-group-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 4px 0 8px; }
.tile-grid2 { display: grid; grid-template-columns: 4fr 2fr; gap: 20px; margin-bottom: 16px; }
.tile-group .tile-row { margin-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 1100px) { .tile-grid2 { grid-template-columns: 1fr; } }
.tile-group .tile { min-height: 118px; }
.fc-hero-note { font-size: 11px; }

/* ---- Updates / Notes ---- */
details.note { border: 1px solid var(--grid); border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; background: var(--surface-1); }
details.note summary { cursor: pointer; font-size: 14px; }
details.note .note-body { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink); max-width: 1100px; }
details.note .note-body p { margin: 0 0 8px; }

/* ---- v2.0 live feeds + Launch Desk (2026-11-01) ---- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.tbl th { text-align: left; font-size: 12px; color: var(--ink); border-bottom: 2px solid var(--border); padding: 6px 8px; background: var(--surface-1); position: sticky; top: 0; }
table.tbl td { padding: 6px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; }
table.tbl td.num { text-align: right; white-space: nowrap; }
table.tbl tr:hover td, table.tbl tr.sel td { background: #f6f9fe; }
.tbl-wrap { max-height: 70vh; overflow: auto; }
.neg { color: #b42318; } .pos { color: var(--good-text); } .warnc { color: #7a5200; }
.alert.neutral { background: #f0efec; }
.feed-strip { padding: 12px 16px; }
.feed-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; font-size: 13px; }
.feed-row .dim { font-size: 12px; margin-top: 2px; }
.feed-alerts { margin-top: 10px; }
.feed-alerts .alert { margin: 6px 0 0; }
@media (max-width: 900px) { .feed-row { grid-template-columns: 1fr 1fr; } }
.desk-up { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 10px 0; font-size: 13px; }
.desk-approve { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fdf3dc; border-radius: 6px; padding: 10px; margin: 10px 0; }
#desk-detail h3 { font-size: 15px; margin: 16px 0 6px; }

/* Launch Desk v2.1 */
.desk-brief h3 { margin: 14px 0 6px; }
.desk-verdict { padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-1); margin: 8px 0; line-height: 1.5; }
.desk-qa { border-top: 1px solid var(--grid); padding: 10px 0; }
.desk-a { margin-top: 6px; padding-left: 12px; border-left: 3px solid var(--border); line-height: 1.5; max-width: 1100px; }
.desk-askbar { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; flex-wrap: wrap; }
.desk-askbar textarea { flex: 1; min-width: 260px; font: inherit; padding: 6px 8px; }

/* v2.2 — road-map dashboard, explanations, programs */
.dash-title { margin: 4px 0 12px; } .dash-title h1 { margin: 0 0 2px; font-size: 22px; }
.roadmap .rm-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rm-step { border: 1px solid var(--border); border-radius: 6px; padding: 12px; background: var(--surface-1); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.rm-step:hover { border-color: var(--seq-400); box-shadow: 0 1px 6px rgba(42,120,214,.18); }
.rm-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.rm-value { font-size: 20px; } .rm-so { font-size: 12.5px; line-height: 1.45; }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.dash-col { display: flex; flex-direction: column; gap: 12px; } .dash-col > .card { margin-bottom: 0; }
.card-why, .why { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 6px 0 10px; }
.section-card .card-why { margin: 8px 0 0; }
.why b, .card-why b { color: var(--ink); font-weight: 600; }
.ap-head { margin: 4px 0 10px; } .ap-head h3 { margin: 10px 0 4px; font-size: 14px; } .ap-head ul { margin: 0; padding-left: 20px; } .ap-head li { margin: 3px 0; line-height: 1.45; }
.ap-i { color: var(--series-1); font-weight: 400; } .ap-prog-box { padding: 8px 4px; max-width: 1100px; line-height: 1.5; } .ap-prog-box p { margin: 4px 0; }
.feed-compact .alert { margin: 4px 0; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } .roadmap .rm-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .roadmap .rm-row { grid-template-columns: 1fr; } }
.ap-prog { table-layout: fixed; width: 100%; } .ap-prog td, .ap-prog th { white-space: normal; vertical-align: top; }
.ap-prog th:nth-child(1) { width: 34%; } .ap-prog th:nth-child(2) { width: 16%; } .ap-prog th:nth-child(4) { width: 18%; }
table.data.ap-prog td, table.data.ap-prog th { white-space: normal; vertical-align: top; }

/* v2.2.2 — photo banner with title, logo and the data-status boxes on the photo */
.hero.hero-xl { min-height: 540px; flex-direction: column; align-items: stretch; justify-content: space-between; padding: 0;
  background: linear-gradient(180deg, rgba(10,12,18,.55) 0%, rgba(10,12,18,.10) 38%, rgba(10,12,18,.18) 62%, rgba(10,12,18,.62) 100%), url('hero.jpg') center 22% / cover no-repeat; }
.hero-xl .hero-top { display: flex; align-items: center; gap: 20px; padding: 22px 26px 0; }
.hero-logo { height: 104px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); flex: none; }
.hero-kicker { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.hero-xl h1 { color: #fff; font-size: 34px; font-weight: 800; margin: 2px 0 4px; line-height: 1.1; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.hero-xl .sub { color: #f1f0ec; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.hero-xl .feed-strip { margin: 0 20px 20px; background: rgba(255,255,255,.90); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.hero-xl .feed-alerts .alert { background-clip: padding-box; }
.rm-label { font-size: 14.5px; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; }
@media (max-width: 900px) { .hero.hero-xl { min-height: 360px; } .hero-logo { height: 70px; } .hero-xl h1 { font-size: 26px; } }
@media (max-width: 600px) { .hero-xl .hero-top { flex-direction: column; align-items: flex-start; } }

/* v2.2.3 — the storefront photo is the backdrop for the whole top of the Dashboard */
.dash-backdrop { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 16px; padding: 0 22px 10px;
  background: linear-gradient(180deg, rgba(10,12,18,.55) 0, rgba(10,12,18,.12) 300px, rgba(10,12,18,.18) 62%, rgba(249,249,247,.0) 82%, var(--page) 100%),
              url('hero.jpg') center 12% / cover no-repeat; }
.dash-backdrop .hero.hero-xl { background: none; border: 0; min-height: 0; margin: 0; border-radius: 0; }
.dash-backdrop .hero-xl .hero-top { padding: 26px 4px 18px; }
.dash-backdrop .hero-xl .feed-strip { margin: 0 0 16px; }
.dash-backdrop .roadmap { background: rgba(255,255,255,.80); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: rgba(255,255,255,.6); box-shadow: 0 4px 18px rgba(0,0,0,.22); }
.dash-backdrop .rm-step { background: rgba(255,255,255,.94); }
.dash-backdrop .fc-hero { box-shadow: 0 4px 18px rgba(0,0,0,.20); }
.dash-backdrop .fc-hero-note { background: rgba(255,255,255,.88); padding: 4px 8px; border-radius: 6px; }

/* v2.2.4 — photo runs the full width of any screen; cards stay at a readable width */
body.on-dash { overflow-x: clip; }
.dash-backdrop { width: 100vw; margin: -20px 0 16px calc(50% - 50vw); border-radius: 0; padding: 0;
  background-position: center 12%; background-size: cover; }
.dash-backdrop .dash-inner { max-width: 1500px; margin: 0 auto; padding: 0 20px 12px; }
@media (min-width: 2200px) { .dash-backdrop .dash-inner { max-width: 1900px; } main { max-width: 1900px; } }
@media (max-width: 700px) { .dash-backdrop .dash-inner { padding: 0 12px 10px; } .dash-backdrop .hero-xl .hero-top { padding-top: 16px; } }
/* v2.6.1 — phone header: one compact row (logo, name, Excel, Lock) + the tabs wrapped below, all visible.
   Drop-down menus open as a fixed sheet just under the header so nothing can clip or cover them. */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 4px 8px; padding: 6px 10px 4px; height: auto; }
  .topbar img.logo { height: 30px; }
  .topbar .brand { font-size: 14px; }
  .topbar .brand small { display: none; }
  .topbar .asof { display: none; }
  .topbar .btn { padding: 5px 10px; font-size: 13px; }
  .topbar .tabs { order: 3; width: 100%; flex-wrap: wrap; gap: 2px; }
  nav.tabs button { padding: 7px 10px; white-space: nowrap; flex: none; }
  .navgroup { flex: none; }
  .navgroup .menu { position: fixed; top: var(--menu-top, 96px); left: 10px; right: 10px; min-width: 0; z-index: 950;
    max-height: calc(100vh - var(--menu-top, 96px) - 12px); overflow-y: auto; box-shadow: 0 10px 30px rgba(11,11,11,.28); }
  .navgroup .menu button { padding: 12px 12px; font-size: 15px; white-space: normal; border-bottom: 1px solid var(--grid); border-radius: 0; }
  .navgroup .menu button:last-child { border-bottom: 0; }
}
@media (max-width: 760px) {
  .fc-hero-row { grid-template-columns: 1fr; }
  .fc-hero { grid-template-columns: 1fr; grid-template-areas: 'main' 'next' 'foot'; }
  .fc-hero-next { display: flex; gap: 18px; }
}
.dash-col { min-width: 0; } .dash-col > .card { overflow-x: auto; }

/* v2.2.5 — Imports report checklist */
.import-checklist .ck { width: 130px; white-space: nowrap; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 12px; }
.ck-grid h3 { font-size: 13.5px; margin: 8px 0 4px; } .ck-grid ul { margin: 0; padding-left: 18px; font-size: 13px; } .ck-grid li { margin: 3px 0; }

/* v2.2.6 — Allocation Plan: at-a-glance beside the key tiles; line decisions as the focus */
.ap-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-bottom: 16px; }
.ap-top > .card { margin-bottom: 0; }
.ap-side { display: flex; flex-direction: column; gap: 10px; } .ap-side .tile { margin: 0; }
.ap-more summary { cursor: pointer; color: var(--series-1); font-size: 13px; margin: 6px 0; }
.ap-lines { border: 2px solid var(--seq-400, #6aa0e6); box-shadow: 0 2px 10px rgba(42,120,214,.12); }
.ap-lines > h2 { font-size: 22px; }
.ap-lines table.data td { font-size: 13.5px; padding: 8px 8px; }
.ap-progress { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; font-size: 13px; }
.ap-bar { width: 220px; height: 10px; background: var(--grid); border-radius: 6px; overflow: hidden; } .ap-bar span { display: block; height: 100%; background: var(--good-text, #2e7d32); }
@media (max-width: 1000px) { .ap-top { grid-template-columns: 1fr; } }

/* v2.3 — Launch Desk: combine separately arrived documents */
.desk-combine { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 12.5px; }

/* v2.3.3 — Released analyses at the bottom of the Dashboard */
.released .rel-item { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin: 8px 0; cursor: pointer; background: var(--surface-1); }
.released .rel-item:hover { border-color: var(--seq-400, #6aa0e6); box-shadow: 0 1px 6px rgba(42,120,214,.15); }
.rel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .rel-head .dim { font-size: 12px; }
.rel-go { margin-left: auto; color: var(--series-1); font-size: 12.5px; white-space: nowrap; }
.rel-what { margin-top: 6px; font-size: 13px; line-height: 1.45; } .rel-sum { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---- Competitive Pricing & Inventory (v1.0, 2026-11-19) ---- */
.new-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; background: #edf7ed; color: var(--good-text); vertical-align: middle; }
.cmp-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0 14px; border-bottom: 1px solid var(--grid); }
.cmp-tabs button { border: 0; background: transparent; padding: 8px 12px; border-bottom: 3px solid transparent; color: var(--ink-2); font-weight: 600; }
.cmp-tabs button.active { border-bottom-color: var(--series-1); color: var(--ink); }
.cmp-tabs button:hover { color: var(--ink); }
.cmp-verdict { border-left: 4px solid var(--series-1); }
.cmp-ol { margin: 6px 0 0 18px; padding: 0; } .cmp-ol li { margin: 0 0 8px; line-height: 1.45; }
.cmp-ul { margin: 6px 0 10px 18px; padding: 0; } .cmp-ul li { margin: 0 0 6px; line-height: 1.45; }
.tile.cmp-k-bad { border-left: 4px solid var(--serious); } .tile.cmp-k-good { border-left: 4px solid var(--good); }
.cmp-scroll { overflow-x: auto; }
table.cmp-tbl td, table.cmp-heat td { white-space: nowrap; }
table.cmp-tbl td.txt { white-space: normal; min-width: 120px; }
table.data tr.cmp-us td { background: #f2f6fc; font-weight: 600; }
table.data td.cmp-uscol { background: #f2f6fc; }
.cmp-hi, table.data td.cmp-hi { background: #fbe3d9; color: #8f3a15; } .cmp-hi2, table.data td.cmp-hi2 { background: #fdf0ea; color: #8f3a15; }
.cmp-lo, table.data td.cmp-lo { background: #d9f0dc; color: var(--good-text); } .cmp-lo2, table.data td.cmp-lo2 { background: #ecf7ee; color: var(--good-text); }
.cmp-even, table.data td.cmp-even { background: #f4f4f1; }
span.cmp-hi, span.cmp-lo, span.cmp-hi2, span.cmp-lo2, span.cmp-even { padding: 1px 6px; border-radius: 4px; }
.cmp-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
td.click:hover, .cmp-heat td.click:hover { outline: 2px solid var(--seq-300); outline-offset: -2px; cursor: pointer; }
.cmp-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0 10px; font-size: 13px; }
.cmp-filters select, .cmp-filters input { margin-left: 4px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.chipbtn { border: 1px solid var(--border); background: var(--surface-1); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.chipbtn.active { background: var(--seq-100); border-color: var(--seq-300); color: var(--seq-700); font-weight: 600; }
.cmp-thumb { width: 56px; height: 38px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 6px; background: var(--grid); }
.cmp-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 6px; background: var(--grid); margin-bottom: 6px; }
.cmp-drawer { position: fixed; inset: 0; background: rgba(11,11,11,.35); z-index: 120; overflow-y: auto; padding: 40px 16px; }
.cmp-dr-inner { max-width: 1100px; margin: 0 auto; background: var(--surface-1); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.cmp-dr-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--grid); padding-bottom: 8px; margin-bottom: 12px; }
.cmp-dr-head [data-close] { margin-left: auto; }
.cmp-dr-gap { padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.cmp-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .cmp-sides { grid-template-columns: 1fr; } .cmp-proj { grid-template-columns: 1fr !important; } }
.cmp-stack td { padding: 3px 6px; }
.cmp-flag { margin-top: 6px; color: #8f3a15; background: #fceee7; border-radius: 4px; padding: 4px 6px; font-size: 12px; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cmp-card { border: 1px solid var(--border); border-radius: 6px; padding: 8px; font-size: 13px; }
.cmp-bars { margin-top: 6px; }
.cmp-bar-row { display: grid; grid-template-columns: 150px 1fr 170px; gap: 8px; align-items: center; margin: 4px 0; font-size: 12px; }
.cmp-bar-track { position: relative; height: 18px; background: var(--page); border-radius: 4px; }
.cmp-bar { position: absolute; left: 0; top: 0; height: 100%; border-radius: 4px; }
.cmp-bar.stock { background: var(--seq-200); } .cmp-bar.sold { background: var(--series-1); height: 60%; top: 20%; }
.cmp-key { display: inline-block; width: 12px; height: 10px; border-radius: 2px; vertical-align: middle; }
.cmp-key.stock { background: var(--seq-200); } .cmp-key.sold { background: var(--series-1); }
.cmp-mix-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: center; margin: 4px 0; font-size: 12px; }
.cmp-mix-bar { display: flex; height: 20px; border-radius: 4px; overflow: hidden; }
.cmp-mix-bar span { color: #fff; font-size: 11px; line-height: 20px; padding-left: 4px; white-space: nowrap; overflow: hidden; }
.cmp-proj { display: grid; grid-template-columns: 320px 1fr; gap: 16px; margin-bottom: 12px; }
.cmp-lever { margin-bottom: 14px; font-size: 13px; }
.cmp-lever label { display: flex; justify-content: space-between; font-weight: 600; }
.cmp-lever input[type=range] { width: 100%; }
.cmp-chart { width: 100%; height: auto; }
table.cmp-reco { width: 100%; table-layout: fixed; } table.cmp-reco td, table.cmp-reco th { vertical-align: top; white-space: normal !important; }
table.cmp-reco th:nth-child(1) { width: 28px; } table.cmp-reco th:nth-child(2) { width: 42%; } table.cmp-reco th:nth-child(4) { width: 15%; } table.cmp-reco th:nth-child(5) { width: 11%; }
.cmp-tbl td .dim { font-weight: 400; }
.cmp-announce { cursor: pointer; border-left: 4px solid var(--good); margin: 12px 0; }
.cmp-announce:hover { box-shadow: 0 1px 6px rgba(42,120,214,.18); }
.cmp-announce .rel-sum { margin: 6px 0; }
.cmp-announce .rel-go { color: var(--series-1); font-weight: 600; font-size: 13px; }

/* ---- Sticky header row + first column on every table (v2.4.3) ---- */
.scrolltable table th { position: sticky; top: 0; z-index: 10; }
.scrolltable table td:first-child:not([colspan]) { position: sticky; left: 0; z-index: 6; box-shadow: 4px 0 6px -4px rgba(11,11,11,.15); }
.scrolltable table th:first-child { position: sticky; left: 0; z-index: 16; box-shadow: 4px 0 6px -4px rgba(11,11,11,.15); }
.scrolltable table.tbl td:first-child, .scrolltable table.fmv-table td:first-child { background: var(--surface-1); }
.scrolltable table.tbl th, .scrolltable table.fmv-table th { background: var(--surface-1); }
.scrolltable.auto-sticky { border: 0; border-radius: 0; background: transparent; }
.cmp-dr-inner .scrolltable { max-height: none; overflow-x: auto; }

/* ---- v2.5 Dashboard declutter: info popovers, status badges, road-map graphic ---- */
/* (i) popover: detail on hover, or click/tap to pin open */
.ipop { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; }
.ipop-btn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--seq-300); background: var(--surface-1); color: var(--series-1);
  font: 700 11px/16px Georgia, serif; font-style: italic; padding: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.ipop-btn:hover, .ipop.open .ipop-btn { background: var(--series-1); color: #fff; border-color: var(--series-1); }
.ipop-body { display: none; position: absolute; top: calc(100% + 8px); left: -12px; z-index: 300; width: max-content; max-width: 340px; min-width: 220px;
  background: var(--surface-1); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(11,11,11,.18);
  padding: 10px 12px; font-size: 12.5px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; cursor: default; }
.ipop-body::before { content: ''; position: absolute; top: -6px; left: 16px; width: 10px; height: 10px; background: var(--surface-1); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.ipop.right .ipop-body { left: auto; right: -6px; } .ipop.right .ipop-body::before { left: auto; right: 14px; }
.ipop:hover .ipop-body, .ipop:focus-within .ipop-body, .ipop.open .ipop-body { display: block; }
.ipop-body hr { border: 0; border-top: 1px solid var(--grid); margin: 8px 0; }
.ipop-body .dim { display: block; margin-top: 4px; }
@media (hover: none) { .ipop:hover .ipop-body { display: none; } .ipop.open .ipop-body { display: block; } }

/* status badges, top-right of the photo */
.dash-backdrop .hero-xl .hero-top { align-items: flex-start; }
.hero-titles { align-self: center; }
.hero-badges { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 520px; }
.sbadge { display: inline-flex; align-items: center; gap: 6px; height: 28px; width: auto; border-radius: 999px; padding: 0 11px 0 9px;
  font: 600 12px/1 inherit; font-family: inherit; font-style: normal; color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.sbadge small { font-weight: 500; opacity: .9; font-size: 11px; }
.sbadge .sdot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.sbadge.ok { background: #1f7a3d; } .sbadge.bad { background: #c0392b; }
.sbadge.ok:hover, .ipop.open .sbadge.ok { background: #18652f; color: #fff; border-color: rgba(255,255,255,.6); }
.sbadge.bad:hover, .ipop.open .sbadge.bad { background: #a02e22; color: #fff; border-color: rgba(255,255,255,.6); }
.sbadge-wrap { margin-left: 0; }
.sbadge-wrap .ipop-body { min-width: 280px; }
@media (max-width: 900px) { .hero-badges { margin-left: 0; justify-content: flex-start; max-width: none; } }

/* road map as a road: TODAY → JAN 1 with numbered milestone pins on the asphalt */
.roadmap h2 .rm-sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.rm-track { position: relative; padding-top: 4px; }
.rm-road { position: absolute; left: 0; right: 0; top: 56px; height: 30px; border-radius: 15px; background: #3b3d42;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.18); }
.rm-road::before { content: ''; position: absolute; left: 70px; right: 70px; top: 50%; height: 3px; margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, #f2c94c 0 22px, transparent 22px 40px); }
.rm-road::after { content: ''; position: absolute; left: 6px; right: 6px; top: 3px; bottom: 3px; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 12px; }
.rm-end-l, .rm-end-r { position: absolute; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #fff; z-index: 1; }
.rm-end-l { left: 14px; } .rm-end-r { right: 14px; }
.rm-end-r::after { content: ' ⚑'; color: #f2c94c; }
.roadmap .rm-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 70px; }
.rm-stop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; cursor: pointer; border-radius: 8px; padding: 0 4px 8px; }
.rm-stop:hover { background: rgba(42,120,214,.06); }
.rm-stop .rm-label { min-height: 44px; display: flex; align-items: flex-end; justify-content: center; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.rm-pinrow { height: 46px; display: flex; align-items: center; justify-content: center; }
.rm-pin { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); position: relative; z-index: 2; }
.rm-pin.good { background: #1f7a3d; } .rm-pin.warning { background: #c98a0b; } .rm-pin.serious, .rm-pin.critical { background: #c0392b; } .rm-pin.neutral { background: #6b7280; }
.rm-stop .rm-value { font-size: 18px; margin-top: 4px; }
.rm-chip { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; }
.rm-ip .ipop-body { left: 50%; transform: translateX(-50%); } .rm-ip .ipop-body::before { left: 50%; margin-left: -5px; }
/* v2.7.1 — the road stays a road at every width (GG 11/23):
   tablet = the same horizontal road, tighter; phone = the road turns and runs down the left side. */
@media (max-width: 1100px) and (min-width: 641px) {
  .roadmap .rm-row { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 46px; }
  .rm-road { top: 64px; }
  .rm-road::before { left: 46px; right: 46px; background: repeating-linear-gradient(90deg, #f2c94c 0 16px, transparent 16px 30px); }
  .rm-end-l, .rm-end-r { font-size: 8.5px; letter-spacing: .06em; }
  .rm-end-l { left: 9px; } .rm-end-r { right: 7px; }
  .rm-end-r::after { content: ''; }
  .rm-stop { padding: 0 2px 8px; }
  .rm-stop .rm-label { min-height: 52px; font-size: 12.5px; }
  .rm-stop .rm-value { font-size: 15.5px; }
  .rm-chip .chip { font-size: 11px; }
}
@media (max-width: 640px) {
  .rm-track { padding: 30px 0 30px; }
  .rm-road { left: 4px; right: auto; top: 0; bottom: 0; width: 34px; height: auto; border-radius: 17px; }
  .rm-road::before { left: 50%; right: auto; top: 34px; bottom: 34px; width: 3px; height: auto; margin: 0 0 0 -1.5px;
    background: repeating-linear-gradient(180deg, #f2c94c 0 18px, transparent 18px 32px); }
  .rm-road::after { left: 3px; right: 3px; top: 6px; bottom: 6px; border-top: 0; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.25); border-right: 1px solid rgba(255,255,255,.25); border-radius: 14px; }
  .rm-end-l, .rm-end-r { left: 50%; right: auto; transform: translateX(-50%); font-size: 8.5px; letter-spacing: .04em; white-space: nowrap; }
  .rm-end-l { top: 9px; } .rm-end-r { top: auto; bottom: 9px; }
  .rm-end-r::after { content: ''; }
  .roadmap .rm-row { grid-template-columns: 1fr; gap: 14px; padding: 0; }
  .rm-stop { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; text-align: left; padding: 6px 6px 6px 0; }
  .rm-stop .rm-pinrow { grid-column: 1; grid-row: 1 / span 3; height: auto; }
  .rm-stop .rm-label, .rm-stop .rm-value, .rm-stop .rm-chip { grid-column: 2; justify-content: flex-start; }
  .rm-stop .rm-label { min-height: 0; font-size: 13.5px; }
  .rm-stop .rm-value { margin-top: 0; font-size: 17px; }
  .rm-ip .ipop-body { left: auto; right: 0; transform: none; } .rm-ip .ipop-body::before { left: auto; right: 10px; margin-left: 0; }
}

/* compact competitive-study announcement */
.cmp-ann-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-ann-head .rel-go { margin-left: auto; }
.cmp-ann-nums { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.cmp-ann-nums b { color: var(--ink); font-size: 15px; }
/* lift whichever box holds the open popover above its neighbours (glass cards create their own stacking layers) */
.hero, .card, .section-card, .fc-hero, .rm-stop, .hero-top { position: relative; }
.hero:has(.ipop:hover, .ipop.open, .ipop:focus-within), .card:has(.ipop:hover, .ipop.open, .ipop:focus-within),
.section-card:has(.ipop:hover, .ipop.open, .ipop:focus-within), .fc-hero:has(.ipop:hover, .ipop.open, .ipop:focus-within),
.rm-stop:has(.ipop:hover, .ipop.open, .ipop:focus-within) { z-index: 400; }
.hero-badges { max-width: 700px; }
.dash-backdrop .hero.hero-xl { overflow: visible; }

/* Used Competitive Pricing page (v1.1, 2026-11-19) */
.uc-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #edf7ed; color: var(--good-text); border: 1px solid var(--border); cursor: help; }

/* Click-to-sort tables (v2.5.0, 2026-11-20) */
table.sortable > thead th { cursor: pointer; user-select: none; }
table.sortable > thead th:hover { text-decoration: underline; }
table.sortable > thead th.sort-asc::after { content: " \25B2"; font-size: 10px; }
table.sortable > thead th.sort-desc::after { content: " \25BC"; font-size: 10px; }

/* ---------------- Used Pricing & Operation Study (v2.0, 2026-11-21) ---------------- */
.uc-landing { position: relative; margin: -20px -20px 22px; border-radius: 0 0 6px 6px; color: #f2f4f7; font-family: Inter, "Helvetica Neue", Arial, sans-serif; background: #0e1116; overflow: hidden; }
.uc-landing::before { content: ""; position: absolute; inset: 0; background: url('uc-building.jpg') center top / cover no-repeat; }   /* GG 11/21 4:55 pm: the building photo runs the full height; the text sits on top of it */
.uc-landing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,0) 0%, rgba(14,17,22,0) 42%, rgba(14,17,22,.6) 58%, rgba(14,17,22,.82) 100%); }
.uc-landing .uc-welcome { background: rgba(14,17,22,.45); backdrop-filter: blur(2px); }
.uc-land-title h1, .uc-land-title p, .uc-cap { text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.uc-band { position: relative; z-index: 1; height: 440px; background-size: cover; background-position: center 40%; }
.uc-band::after { content: none; }
.uc-band-logo { position: absolute; top: 16px; left: 22px; width: 220px; max-width: 38%; z-index: 2; filter: drop-shadow(0 3px 8px rgba(0,0,0,.55)); }
.uc-band-brand { position: absolute; top: 18px; right: 24px; z-index: 2; text-align: right; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.uc-band-brand b { display: block; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 22px; font-weight: 700; }
.uc-band-brand span { font-size: 12px; opacity: .9; }
.uc-land-in { position: relative; z-index: 1; padding: 6px 26px 28px; }
.uc-welcome { margin: 0 0 18px; padding: 12px 18px; border-left: 4px solid #1baf7a; background: rgba(27,175,122,.14); max-width: 70ch; }
.uc-welcome h2 { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 30px; font-weight: 600; color: #fff; }
.uc-cap { display: block; font-family: Inter, "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.uc-land-title h1 { font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 46px; font-weight: 600; margin: 4px 0 6px; color: #fff; letter-spacing: .01em; }
.uc-arrow { font-weight: 400; opacity: .8; }
.uc-land-title p { margin: 0 0 20px; max-width: 64ch; color: #cfd5de; font-size: 16px; }
.uc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.uc-tile { position: relative; height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; color: #fff; text-decoration: none; background-size: cover; background-position: center; border-radius: 3px; overflow: hidden; }
.uc-tile-shade { position: absolute; inset: 0; background: linear-gradient(rgba(10,12,16,.1) 0%, rgba(10,12,16,.88) 100%); transition: background .15s; }
.uc-tile:hover .uc-tile-shade { background: linear-gradient(rgba(10,12,16,0) 0%, rgba(10,12,16,.92) 100%); }
.uc-tile-k { position: relative; font-family: Inter, "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #ffb37a; margin-bottom: 4px; }
.uc-tile-t { position: relative; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 30px; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.uc-tile-d { position: relative; font-size: 13.5px; line-height: 1.35; opacity: .92; max-width: 60ch; }
@media (max-width: 760px) { .uc-tiles { grid-template-columns: 1fr; } .uc-band { height: 280px; } .uc-land-title h1 { font-size: 34px; } .uc-tile { height: 200px; } }
.uc-part { scroll-margin-top: 70px; margin-bottom: 26px; }
.uc-part-h { display: flex; align-items: baseline; gap: 12px; border-bottom: 3px solid #e2492b; padding-bottom: 6px; margin: 8px 0 14px; }
.uc-part-h h2 { margin: 0; font-size: 22px; }
.uc-part-n { background: #1f3864; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: .06em; text-transform: uppercase; }
.uc-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.uc-strip-i { background: #fff; border: 1px solid var(--border); border-radius: 8px; height: 58px; display: flex; align-items: center; justify-content: center; padding: 6px 10px; }
.uc-strip-i img { max-height: 44px; max-width: 100%; object-fit: contain; }
.uc-strip-i span { font-size: 11px; font-weight: 600; color: var(--ink-2); text-align: center; }
.uc-logo { height: 16px; max-width: 70px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.uc-logo-dark { background: #1f3864; border-radius: 4px; padding: 2px 4px; }

.uo-banner { border-radius: 12px; padding: 22px 24px; color: #fff; background-size: cover; background-position: center; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.uo-banner h2 { margin: 2px 0 6px; font-size: 24px; color: #fff; }
.uo-banner a { color: #ffd38a; }
.uo-kicker { color: #8fd0ff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.uo-sub { font-size: 12px; color: #dfe6f5; }
.uo-banner-badge { width: 120px; flex: 0 0 auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.uo-nav { position: sticky; top: 56px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; background: var(--page); padding: 8px 0; margin-bottom: 8px; border-bottom: 1px solid var(--grid); }
.uo-nav a { font-size: 12px; padding: 4px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--ink-2); }
.uo-nav a:hover { border-color: #e2492b; color: #e2492b; }
.uo-sec { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; scroll-margin-top: 110px; }
.uo-sec > h2 { margin: 0 0 10px; font-size: 18px; border-left: 4px solid #e2492b; padding-left: 10px; }
.uo-sec h3 { font-size: 14px; margin: 10px 0 6px; }
.uo-lede { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.uo-ev { font: inherit; color: var(--series-1); background: none; border: 0; border-bottom: 1px dashed var(--series-1); padding: 0; cursor: pointer; }
.tile .value .uo-ev { font-size: 24px; font-weight: 650; }
.uo-ev:hover { color: #e2492b; border-bottom-color: #e2492b; }
.uo-neg, .uo-neg .uo-ev { color: var(--critical) !important; border-bottom-color: var(--critical); }
.uo-good, .uo-good .uo-ev { color: var(--good-text) !important; }
.uo-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.uo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.uo-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: #fff; }
.uo-card h3 { margin: 0 0 6px; }
.uo-card p { margin: 0; line-height: 1.45; }
.uo-card.good { border-top: 4px solid var(--good); }
.uo-card.bad { border-top: 4px solid var(--critical); }
.uo-qa-row { border-bottom: 1px solid var(--grid); padding: 8px 0; }
.uo-qa-h { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.uo-qa-a, .uo-qa-t { font-size: 13px; margin-top: 3px; line-height: 1.4; }
.uo-verdict { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #f0efec; color: var(--ink-2); white-space: nowrap; }
.uo-verdict.good { background: #edf7ed; color: var(--good-text); }
.uo-verdict.bad { background: #fbe9e9; color: var(--critical); }
.uo-act { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.uo-act > summary { display: grid; grid-template-columns: 32px 150px 1fr; gap: 4px 10px; padding: 10px 12px; cursor: pointer; list-style: none; align-items: start; }
.uo-act > summary::-webkit-details-marker { display: none; }
.uo-act-n { background: #1f3864; color: #fff; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.uo-act-area { font-weight: 700; font-size: 13px; }
.uo-act-txt { font-size: 13px; line-height: 1.4; }
.uo-act-meta { grid-column: 3; font-size: 11px; color: var(--muted); }
.uo-act-body { padding: 0 14px 14px 54px; font-size: 13px; }
.uo-round { border-left: 3px solid var(--seq-400); padding: 6px 10px; margin: 10px 0; background: #f7f9fd; border-radius: 0 6px 6px 0; }
.uo-round-h { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.uo-reb { border: 1px solid #f1c9bd; background: #fff8f5; border-radius: 6px; padding: 8px 10px; margin-top: 6px; }
.uo-reb-h { font-weight: 700; font-size: 12px; color: #b0381b; margin-bottom: 4px; }
.uo-reb-t { line-height: 1.5; }
.uo-form { display: grid; gap: 8px; margin-top: 10px; }
.uo-form label { font-weight: 600; font-size: 12px; display: grid; gap: 4px; }
.uo-form textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--baseline); border-radius: 6px; resize: vertical; }
.uo-gate { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 12px; color: #fff; background: linear-gradient(90deg, rgba(8,14,30,.92), rgba(8,14,30,.6)), url('uc-neon.jpg') center/cover; }
.uo-gate h2 { color: #fff; margin: 0 0 6px; }
.uo-gate-badge { width: 130px; }
.uo-gate-row { display: flex; gap: 8px; margin-top: 8px; }
.uo-gate input { padding: 8px 10px; border-radius: 6px; border: 0; font-size: 15px; width: 180px; }
.uo-gate .err { color: #ffb4a3; margin-top: 6px; min-height: 16px; }
.uo-modal { position: fixed; inset: 0; background: rgba(10,12,20,.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.uo-modal-box { background: #fff; border-radius: 12px; max-width: 980px; width: 100%; max-height: 86vh; overflow: auto; padding: 18px 20px; position: relative; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.uo-modal-box h3 { margin: 0 30px 10px 0; }
.uo-x { position: absolute; top: 8px; right: 12px; font-size: 26px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.uo-src { margin-top: 12px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--grid); padding-top: 8px; }
.uo-wrap { white-space: normal !important; min-width: 260px; }
.uo-foot { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 18px; opacity: .9; }
.uo-foot img { height: 110px; }
@media (max-width: 860px) { .uo-two { grid-template-columns: 1fr; } .uo-act > summary { grid-template-columns: 28px 1fr; } .uo-act-txt, .uo-act-meta { grid-column: 1 / -1; } }

/* Fred's challenge — clearly marked (GG 11/21) */
.uo-fred-call { border: 2px solid #e2492b; background: #fff4ef; border-radius: 10px; padding: 14px 16px; margin: 4px 0 14px; }
.uo-fred-call-t { font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 24px; font-weight: 700; color: #b0381b; }
.uo-fred-call-d { margin: 4px 0 10px; font-size: 13.5px; }
.uo-fred-prog { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.uo-fred-bar { width: 220px; height: 10px; background: #f3d6cc; border-radius: 6px; overflow: hidden; }
.uo-fred-bar span { display: block; height: 100%; background: #1baf7a; }
.uo-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-right: 6px; }
.uo-st.wait { background: #e2492b; color: #fff; }
.uo-st.done { background: #edf7ed; color: var(--good-text); }
.uo-act.wait { border-left: 5px solid #e2492b; }
.uo-act.done { border-left: 5px solid #1baf7a; }
.uo-form { border: 2px dashed #e2492b; background: #fffaf7; border-radius: 8px; padding: 12px 14px; }
.uo-form-h { font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 18px; font-weight: 700; color: #b0381b; }
.uo-submit { background: #e2492b; border-color: #e2492b; }
.uo-nav a[data-jump="uo-plan"] { background: #e2492b; color: #fff; border-color: #e2492b; font-weight: 700; }

/* ===== Used Pricing & Operation Study — full window + larger type (GG 11/21 v2) ===== */
main.uc-full { max-width: none; width: 100%; padding: 4px 6px 24px; }
main.uc-full .uc-landing { margin: -4px -6px 14px; border-radius: 0; }
main.uc-full .uc-band { height: clamp(300px, 62vh, 640px); }
main.uc-full .uc-band-logo { width: 280px; }
main.uc-full .uc-land-in { padding: 6px 14px 22px; }
main.uc-full .uc-welcome { max-width: none; }
main.uc-full .uc-welcome h2 { font-size: 32px; font-weight: 700; }
main.uc-full .uo-banner h2 { font-size: 28px; }
main.uc-full .card, main.uc-full .uo-sec { padding: 14px 14px; margin-bottom: 12px; }
/* all titles and table headers: bold and larger */
main.uc-full h2 { font-size: 24px; font-weight: 700; }
main.uc-full h3 { font-size: 18px; font-weight: 700; }
main.uc-full .uc-part-h h2 { font-size: 28px; }
main.uc-full .uo-sec > h2 { font-size: 26px; font-weight: 700; }
main.uc-full .uo-sec h3 { font-size: 18px; margin: 12px 0 8px; }
main.uc-full table.data th { font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 7px 8px; }
main.uc-full table.data td { font-size: 14.5px; }
main.uc-full p, main.uc-full .uo-card p { font-size: 15px; line-height: 1.5; }
/* badges (KPI tiles): bolder, larger, one row */
main.uc-full .tile-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
@media (min-width: 1100px) { main.uc-full .tile-row { grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; } }
main.uc-full .tile { padding: 12px 12px; }
main.uc-full .tile .label { font-size: 14px; font-weight: 700; }
main.uc-full .tile .value, main.uc-full .tile .value .uo-ev { font-size: 32px; font-weight: 700; line-height: 1.1; }
main.uc-full .tile .sub { font-size: 13px; font-weight: 600; color: var(--ink-2); }
main.uc-full .uc-badge { font-size: 14px; padding: 5px 14px; font-weight: 700; }
main.uc-full .uc-strip { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
main.uc-full .uc-strip-i { height: 64px; }
main.uc-full .uc-strip-i img { max-height: 50px; }
main.uc-full .cmp-tabs button { font-size: 16px; font-weight: 700; padding: 10px 14px; }
/* info box */
main.uc-full .uc-info { font-size: 16px; font-weight: 600; color: var(--ink); background: #fff7e6; border: 1px solid #f0c36d; border-left: 6px solid #e2492b; border-radius: 6px; padding: 12px 16px; margin: 8px 0 12px; line-height: 1.45; }
/* Verdict and Still open */
main.uc-full .uc-verdict { border-left: 6px solid var(--series-1); }
main.uc-full .uc-verdict > h2 { font-size: 34px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 10px; }
main.uc-full .uc-verdict .cmp-ol { margin-left: 26px; }
main.uc-full .uc-verdict .cmp-ol li { font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
main.uc-full .uc-verdict .cmp-ol li::marker { font-size: 20px; font-weight: 700; }
main.uc-full .uc-verdict .cmp-ol li > b:first-child { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; color: var(--ink); }
/* Overdue */
main.uc-full .uc-overdue > h2 { font-size: 28px; font-weight: 700; }
main.uc-full table.cmp-reco td { font-size: 15.5px; }
main.uc-full table.cmp-reco td:nth-child(2) { font-size: 16.5px; font-weight: 700; color: var(--ink); }
/* Adjustments for Fred: tighter, bigger */
main.uc-full .uc-adj table.data td, main.uc-full .uc-adj table.data th { padding: 4px 6px; }
main.uc-full .uc-adj table.data td { font-size: 15px; }
/* Scorecard: tight, big bold numbers */
main.uc-full table.uo-score-tbl { width: auto; min-width: 0; }
main.uc-full table.uo-score-tbl td:first-child { white-space: normal; max-width: 340px; font-weight: 700; padding-right: 18px; }
main.uc-full table.uo-score-tbl td { font-size: 17px; font-weight: 700; padding: 6px 12px; }
main.uc-full table.uo-score-tbl td .uo-ev { font-weight: 700; }
main.uc-full table.uo-score-tbl td.txt:not(:first-child) { font-size: 14px; font-weight: 600; }
/* Money, By days, Appraisals */
main.uc-full #uo-money table.data td, main.uc-full #uo-acq table.data td { font-size: 16px; }
main.uc-full #uo-money h3, main.uc-full #uo-acq h3 { font-size: 20px; }
/* Wholesale */
main.uc-full #uo-whs .tile .value, main.uc-full #uo-whs .tile .value .uo-ev { font-size: 38px; }
main.uc-full #uo-whs .tile .sub { font-size: 15px; font-weight: 700; color: var(--ink); }
main.uc-full .uo-whs-x { font-size: 17px; font-weight: 700; color: var(--ink); }
main.uc-full .uo-two > *, main.uc-full .uo-grid > *, main.uc-full .uc-tiles > * { min-width: 0; }
/* Fred-only notice */
.uo-fred-top { background: #fff1ec; border: 2px solid #e2492b; border-radius: 8px; padding: 14px 18px; margin: 0 0 10px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.uo-fred-top b { font-size: 19px; display: block; margin-bottom: 4px; color: #b3321b; }
.uo-fred-top a { font-weight: 700; color: #b3321b; }
/* phones and tablets */
@media (max-width: 800px) {
  main.uc-full { padding: 2px 2px 20px; }
  main.uc-full .uc-landing { margin: -2px -2px 10px; }
  main.uc-full .uc-band { height: 46vh; min-height: 240px; }
  main.uc-full .uc-band-logo { width: 150px; top: 10px; left: 10px; }
  main.uc-full .uc-band-brand { top: 10px; right: 10px; }
  main.uc-full .uc-band-brand b { font-size: 16px; }
  main.uc-full .uc-band-brand { display: none; }
  main.uc-full .uc-land-in { padding: 4px 8px 16px; }
  main.uc-full .uc-land-title h1 { font-size: 32px; }
  main.uc-full .uc-tiles { grid-template-columns: 1fr; gap: 8px; }
  main.uc-full .uc-tile { height: 200px; }
  main.uc-full .card, main.uc-full .uo-sec { padding: 10px 8px; border-radius: 4px; }
  main.uc-full .uc-verdict > h2 { font-size: 28px; }
  main.uc-full .uc-verdict .cmp-ol { margin-left: 20px; }
  main.uc-full .uc-verdict .cmp-ol li > b:first-child { font-size: 18px; }
  main.uc-full .tile-row { grid-template-columns: repeat(2, 1fr); }
  main.uc-full .tile .value, main.uc-full .tile .value .uo-ev { font-size: 26px; }
  main.uc-full .uc-strip { grid-template-columns: repeat(4, 1fr); }
  main.uc-full .uc-strip-i { height: 48px; padding: 4px; }
  main.uc-full .uc-strip-i img { max-height: 36px; }
  main.uc-full .cmp-tabs { flex-wrap: nowrap; overflow-x: auto; }
  main.uc-full .cmp-tabs button { white-space: nowrap; font-size: 14px; }
  main.uc-full .uo-nav { position: static; flex-wrap: nowrap; overflow-x: auto; }
  main.uc-full .uo-nav a { white-space: nowrap; }
  main.uc-full .uo-banner { flex-direction: column; align-items: flex-start; padding: 14px; }
  main.uc-full .uo-banner-badge { width: 80px; }
  main.uc-full .uo-two, main.uc-full .uo-grid { grid-template-columns: 1fr !important; }
  main.uc-full table.cmp-reco { table-layout: auto; }
  main.uc-full table.uo-score-tbl td:first-child { max-width: 180px; }
}
@media (max-width: 800px) { .uo-modal-box { width: 96vw; max-height: 90vh; padding: 12px; } }

.uo-del { margin-left: 10px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 12px; border: 1px solid #c9402a; background: #fff; color: #c9402a; cursor: pointer; }
.uo-del.arm { background: #c9402a; color: #fff; }
/* Fred's 15-question challenge (v2, GG 11/21 4:00 pm) */
.uo-qs-list { display: grid; gap: 10px; margin: 10px 0; }
.uo-q { border: 1px solid var(--border); border-left: 6px solid #e2492b; border-radius: 8px; background: #fff; padding: 12px 14px; }
.uo-q.ok { border-left-color: #1baf7a; } .uo-q.more, .uo-q.pend { border-left-color: #e8a317; } .uo-q.bad { border-left-color: #b3321b; }
.uo-q-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.uo-q-area { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.uo-qs { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; background: #e2492b; color: #fff; }
.uo-qs.ok { background: #1baf7a; } .uo-qs.more, .uo-qs.pend { background: #e8a317; color: #1b1b1b; } .uo-qs.bad { background: #b3321b; }
.uo-q-t { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.uo-q-why { font-size: 14px; color: var(--ink-2); margin: 4px 0 8px; }
.uo-q-ans { background: #f7f9fd; border-radius: 6px; padding: 8px 10px; margin: 6px 0; font-size: 15px; }
.uo-q-bx { margin-top: 4px; } .uo-q-bx i { color: var(--muted); font-style: normal; font-weight: 700; }
.uo-q-reply { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #fff8f5; border: 1px solid #f1c9bd; line-height: 1.5; }
.uo-q-reply.ok { background: #eff8f3; border-color: #b9e2cc; }
.uo-q-again { font-size: 13px; margin: 6px 0 2px; }
.uo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.uo-chip { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 20px; border: 2px solid var(--baseline); background: #fff; color: var(--ink); cursor: pointer; }
.uo-chip:hover { border-color: #1f3864; }
.uo-chip.on { background: #1f3864; border-color: #1f3864; color: #fff; }
.uo-bx { display: block; font-size: 13.5px; font-weight: 700; margin-top: 6px; }
.uo-bx textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 3px; font: inherit; font-weight: 400; font-size: 14.5px; padding: 7px 9px; border: 1px solid var(--baseline); border-radius: 6px; resize: vertical; }
.uo-bx textarea::placeholder { color: #9aa1ab; font-style: italic; }
.uo-submitbar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; background: #fff4ef; border: 2px solid #e2492b; border-radius: 8px; padding: 10px 14px; margin: 8px 0 14px; }
.uo-submitbar .uo-submit { font-size: 16px; font-weight: 700; padding: 10px 20px; }
.uo-submitbar .uo-submit:disabled { opacity: .45; cursor: default; }
.uo-sb-n { margin-right: auto; font-weight: 700; }
.uo-fullplan table.uo-wrapall td { white-space: normal; vertical-align: top; font-size: 13px; }
@media (max-width: 800px) { .uo-chip { font-size: 13px; padding: 7px 10px; } .uo-q { padding: 10px; } .uo-q-t { font-size: 16px; } }

.uo-needclick-msg { display: none; font-weight: 700; color: #b3321b; margin-top: 6px; }
.uo-q.needclick { border: 2px solid #b3321b; border-left-width: 6px; }
.uo-q.needclick .uo-needclick-msg { display: block; }
/* Reply to Claude (11/23) */
.uo-reply { border: 2px solid #1f3864; border-radius: 8px; background: #f3f6fc; padding: 10px 12px; margin: 8px 0; }
.uo-reply-h { font-weight: 700; font-size: 16px; color: #1f3864; margin-bottom: 6px; }
.uo-rchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.uo-rchip { font: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 16px; border: 2px solid #9fb0cf; background: #fff; color: var(--ink); cursor: pointer; }
.uo-rchip.on { background: #1f3864; border-color: #1f3864; color: #fff; }
.uo-reply textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px; padding: 7px 9px; border: 1px solid #9fb0cf; border-radius: 6px; resize: vertical; }
.uo-reply-n { font-size: 12.5px; margin-top: 4px; }
/* Team notes (11/23) */
.uo-notes { margin: 6px 0; }
.uo-notes-h { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 6px 0 4px; }
.uo-note { border-left: 4px solid #1baf7a; background: #f3faf6; border-radius: 6px; padding: 6px 10px; margin: 4px 0; font-size: 14.5px; line-height: 1.45; }
.uo-addnote > summary { cursor: pointer; font-weight: 700; color: #1f3864; font-size: 14px; margin: 4px 0; }
.uo-addnote textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px; padding: 7px 9px; border: 1px solid var(--baseline); border-radius: 6px; resize: vertical; margin: 4px 0; }
.uo-note-post { font-weight: 700; }

/* v2.7 — sales sign-in: Dashboard + payment solvers only */
.login-or { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; color: var(--muted); font-size: 12px; }
.login-or::before, .login-or::after { content: ''; flex: 1; border-top: 1px solid var(--grid); }
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-sizing: border-box; }
body.role-sales #tabs > button:not([data-view="dashboard"]),
body.role-sales .navgroup[data-group="inv"], body.role-sales .navgroup[data-group="set"],
body.role-sales .navgroup[data-group="sales"] .menu button:not(#paysolver-btn):not(#usedpaysolver-btn),
body.role-sales #export-btn, body.role-sales #asof { display: none !important; }
.sales-tools { margin-top: 0; }
.sales-tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sales-tool { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface-1); }
.sales-tool:hover { border-color: var(--seq-600); box-shadow: 0 4px 14px rgba(11,11,11,.10); }
.sales-tool b { font-size: 16px; } .sales-tool span { font-size: 13px; color: var(--ink-2); } .sales-tool .go { color: var(--seq-600); font-weight: 650; }
@media (max-width: 700px) { .sales-tool-row { grid-template-columns: 1fr; } }
body.role-sales #fc-mtd-save { display: none !important; }
body.role-sales .fc-mtd { pointer-events: none; border-color: transparent; background: transparent; }
/* GG decisions, Claude's note, GG brief (11/24) */
.uo-dec { border-left: 4px solid #1baf7a; background: #eff8f3; border-radius: 6px; padding: 8px 12px; margin: 6px 0; font-size: 15px; }
.uo-dec b { color: #12784f; }
.uo-cnote { border: 2px solid #1f3864; background: #f3f6fc; border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; }
.uo-cnote-h, .uo-brief-h { font-weight: 700; font-size: 17px; margin-bottom: 6px; color: #1f3864; }
.uo-brief { border: 2px dashed #8a6d00; background: #fffbea; border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.uo-brief-h { color: #6b5400; }
.uo-pos { color: #12784f; }
/* Close-out round (11/24): threads + commitment form */
.uo-thread { margin: 8px 0; display: grid; gap: 6px; }
.uo-t { border-radius: 8px; padding: 8px 12px; font-size: 15px; line-height: 1.5; }
.uo-t-who { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.uo-t-fred { background: #f7f9fd; border-left: 4px solid #1f3864; }
.uo-t-claude { background: #fff8f5; border-left: 4px solid #e8a317; margin-left: 18px; }
.uo-t-claude.ok { background: #eff8f3; border-left-color: #1baf7a; }
.uo-t-claude.bad { border-left-color: #b3321b; }
.uo-t-note { background: #f3faf6; border-left: 4px solid #1baf7a; margin-left: 18px; }
.uo-t-dec { background: #eff8f3; border-left: 4px solid #12784f; }
.uo-t-old > summary { cursor: pointer; font-weight: 700; color: #1f3864; font-size: 13.5px; margin: 2px 0 6px; }
.uo-t-old { display: grid; gap: 6px; }
.uo-co { border: 2px solid #1f3864; border-radius: 8px; background: #fbfcff; padding: 12px 14px; margin-top: 10px; }
.uo-co-h { font-weight: 700; font-size: 17px; color: #1f3864; }
.uo-co-ask { font-size: 15px; margin: 4px 0 8px; }
.uo-mode { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 20px; border: 2px solid var(--baseline); background: #fff; color: var(--ink); cursor: pointer; }
.uo-mode.on { background: #1f3864; border-color: #1f3864; color: #fff; }
.uo-co input[type=text] { font: inherit; font-weight: 400; font-size: 14.5px; padding: 7px 9px; border: 1px solid var(--baseline); border-radius: 6px; }
.uo-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.uo-months label { display: grid; gap: 3px; font-size: 13.5px; font-weight: 700; }
.uo-two-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uo-done { background: #1baf7a; color: #fff; font-weight: 700; font-size: 18px; border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; }
.uo-rounds > summary { cursor: pointer; font-weight: 700; font-size: 16px; margin: 10px 0; }
@media (max-width: 800px) { .uo-two-in, .uo-months { grid-template-columns: 1fr; } .uo-t-claude, .uo-t-note { margin-left: 8px; } }
.uo-co .uo-bx { display: grid; gap: 3px; margin-top: 8px; }
.uo-co .uo-bx input[type=text], .uo-co .uo-bx textarea, .uo-months input { width: 100%; box-sizing: border-box; }

/* ===== Study cleanup (GG 11/24): Inter, badges, collapsible sections, grouped scorecard ===== */
main.uc-full, main.uc-full button, main.uc-full input, main.uc-full textarea, .uc-landing, .uo-modal { font-family: Inter, "Segoe UI", Arial, sans-serif; }
main.uc-full b, main.uc-full strong, .uo-modal b { font-weight: 600; }
main.uc-full h2, main.uc-full h3 { text-transform: capitalize; font-weight: 700; letter-spacing: -.01em; }
/* the two landing link boxes */
.uc-tile { border: 3px solid rgba(255,255,255,.9); box-shadow: 0 8px 22px rgba(0,0,0,.45); border-radius: 10px; }
.uc-tile:hover { border-color: #1baf7a; }
/* Part 1 section links as badges */
main.uc-full .cmp-tabs { border-bottom: 0; gap: 8px; margin: 12px 0 16px; }
main.uc-full .cmp-tabs button { border: 2px solid #1f3864; border-radius: 999px; background: #fff; color: #1f3864; font-size: 15px; font-weight: 600; padding: 8px 16px; }
main.uc-full .cmp-tabs button:hover { background: #eef2fa; }
main.uc-full .cmp-tabs button.active { background: #1f3864; color: #fff; border-color: #1f3864; }
/* Deep dive nav badges, a little larger */
main.uc-full .uo-nav a { font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
/* collapsible sections */
.cz > h2 { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.cz > h2::before { content: ""; flex: none; width: 10px; height: 10px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); margin: 0 4px 4px 2px; transition: transform .15s; }
.cz.cz-closed > h2::before { transform: rotate(-45deg); margin-bottom: 0; }
.cz > h2:hover { color: #1f3864; }
.cz > .cz-body { margin-top: 12px; }
.cz.cz-closed > .cz-body { display: none; }
.cz.cz-closed { padding-bottom: 12px; }
.cz-bar { display: flex; gap: 8px; justify-content: flex-end; margin: 6px 0 10px; }
.cz-bar button { font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid var(--baseline); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink); }
.cz-bar button:hover { border-color: #1f3864; color: #1f3864; }
/* source chip above each table */
.uo-srcrow { margin: 4px 0 6px; }
.uo-srcrow .uo-ev { font-size: 13px; font-weight: 600; border: 1px solid #9fb0cf; border-radius: 999px; padding: 3px 10px; background: #f3f6fc; color: #1f3864; text-decoration: none; }
/* grouped scorecard (GG mockup) */
.uo-sc { max-width: 1120px; }
.uo-sc table.data { width: 100%; table-layout: fixed; border-collapse: collapse; }
.uo-sc col.c-m { width: 40%; } .uo-sc col.c-b { width: 11%; } .uo-sc col.c-c { width: 12%; }
.uo-sc .uo-sc-head th { font-size: 14px; font-weight: 700; color: var(--ink); padding: 6px 12px; border-bottom: 0; background: transparent; position: static; }
.uo-sc .uo-sc-head th:nth-child(n+2):nth-child(-n+4) { text-align: right; }
.uo-sc-grp { border: 2.5px solid #2f5fd0; border-radius: 12px; margin: 0 0 10px; overflow: hidden; background: #fff; }
.uo-sc-grp .scrolltable { margin: 0; border: 0; }
.uo-sc-grp td { font-size: 17px; padding: 8px 12px; border-bottom: 1px solid #e6e9ef; }
.uo-sc-grp tr:last-child td { border-bottom: 0; }
.uo-sc-grp td:first-child { font-weight: 600; white-space: normal; }
.uo-sc-grp td:nth-child(n+2):nth-child(-n+4) { text-align: right; font-weight: 700; font-size: 19px; }
.uo-sc-grp td:nth-child(5), .uo-sc-grp td:nth-child(6) { font-size: 14.5px; color: var(--ink-2); }
.uo-sc-grp tr.uo-dash td { border-top: 2px dashed #2f5fd0; }
.uo-sc-grp .uo-neg .uo-ev, .uo-sc-grp td.uo-neg { color: #c62828; }
.uo-sc-grp .uo-good .uo-ev, .uo-sc-grp td.uo-good { color: #1f5fd0; }
@media (max-width: 800px) {
  .uo-sc col.c-m { width: 34%; } .uo-sc col.c-b, .uo-sc col.c-c { width: 0; }
  .uo-sc td:nth-child(5), .uo-sc td:nth-child(6), .uo-sc th:nth-child(5), .uo-sc th:nth-child(6) { display: none; }
  .uo-sc-grp td { font-size: 14px; padding: 6px 8px; } .uo-sc-grp td:nth-child(n+2):nth-child(-n+4) { font-size: 15px; }
  .uo-sc .uo-sc-head th { font-size: 12px; padding: 4px 8px; }
  main.uc-full .cmp-tabs { flex-wrap: wrap; overflow: visible; }
}
main.uc-full .uo-sc table.data, main.uc-full .uo-sc table.uo-score-tbl { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
main.uc-full .uo-sc .scrolltable { overflow: visible; }
main.uc-full .uo-sc-grp td.uo-good, main.uc-full .uo-sc-grp td.uo-good .uo-ev { color: #1f5fd0 !important; }
main.uc-full .uo-sc-grp td.uo-neg, main.uc-full .uo-sc-grp td.uo-neg .uo-ev { color: #c62828 !important; }
main.uc-full .uo-sc-grp td:first-child { max-width: none !important; padding-right: 12px; }
main.uc-full .uo-sc-grp td { font-weight: 600; }

/* GG 11/24 4:13 pm: one title size for collapsible sections; clear break before Part 2 */
main.uc-full .card.cz > h2, main.uc-full .uc-verdict.cz > h2, main.uc-full .uc-overdue.cz > h2, main.uc-full .uo-sec.cz > h2 { font-size: 26px; font-weight: 700; margin: 0; }
@media (max-width: 800px) { main.uc-full .card.cz > h2, main.uc-full .uc-verdict.cz > h2, main.uc-full .uc-overdue.cz > h2, main.uc-full .uo-sec.cz > h2 { font-size: 21px; } }
.uc-part2 { margin-top: 56px; padding-top: 0; }
.uc-part2 .uo-banner, .uc-part2 .uo-gate { margin-bottom: 0; min-height: 150px; }
.uc-rule { height: 4px; background: #e2492b; border-radius: 2px; margin: 14px 0 18px; }
/* GG 11/24 4:15 pm: Verified / Clarified badges sit right next to the question title */
.uo-qa-h { display: flex; flex-wrap: wrap; justify-content: flex-start !important; align-items: center; gap: 10px; }
.uo-qa-h .uo-verdict { margin-left: 0 !important; order: 0; }

/* v2.7.2 — New-vehicle Competitive Pricing header: building photo band, the used study's look at about 60% of the height (GG 11/24) */
.nc-hero { position: relative; margin: -20px -20px 16px; min-height: 290px; border-radius: 0 0 6px 6px; overflow: hidden; color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif; background: #0e1116 url('nc-building.jpg') center 42% / cover no-repeat; display: flex; align-items: flex-end; }
.nc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,.35) 0%, rgba(14,17,22,0) 26%, rgba(14,17,22,0) 48%, rgba(14,17,22,.62) 74%, rgba(14,17,22,.85) 100%); }
.nc-hero-logo { position: absolute; top: 14px; left: 20px; width: 170px; max-width: 34%; z-index: 2; filter: drop-shadow(0 3px 8px rgba(0,0,0,.55)); }
.nc-hero-brand { position: absolute; top: 16px; right: 22px; z-index: 2; text-align: right; text-shadow: 0 1px 4px rgba(0,0,0,.85); }
.nc-hero-brand b { display: block; font-size: 18px; font-weight: 700; }
.nc-hero-brand span { font-size: 12px; opacity: .92; }
.nc-hero-in { position: relative; z-index: 1; padding: 0 24px 18px; }
.nc-cap { display: block; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.nc-hero-in h1 { font-size: 36px; font-weight: 600; margin: 4px 0 4px; color: #fff; letter-spacing: .01em; }
.nc-hero-in p { margin: 0; max-width: 70ch; color: #dde2ea; font-size: 14.5px; }
.nc-cap, .nc-hero-in h1, .nc-hero-in p { text-shadow: 0 2px 6px rgba(0,0,0,.75); }
@media (max-width: 760px) {
  .nc-hero { margin: -10px -10px 12px; min-height: 250px; background-position: 58% 40%; }
  .nc-hero-logo { width: 92px; top: 10px; left: 10px; }
  .nc-hero-brand { top: 10px; right: 10px; } .nc-hero-brand b { font-size: 13.5px; } .nc-hero-brand span { display: none; }
  .nc-hero-in { padding: 0 12px 12px; } .nc-hero-in h1 { font-size: 25px; } .nc-hero-in p { display: none; } .nc-cap { font-size: 9.5px; letter-spacing: .08em; }
}

/* v2.8 — Launch Desk retail track */
.desk-talk { margin: 4px 0 8px; padding: 10px 14px; border-left: 3px solid var(--seq-600); background: var(--surface-2, #f4f6f9); border-radius: 0 6px 6px 0; font-style: italic; }
#desk-rerun-as { padding: 6px 8px; }
#leads-card .dropzone { padding: 14px; }

/* v2.10 — minimize released analyses on the Dashboard */
.rel-tog { border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--ink-2); padding: 0 2px; line-height: 1; }
.rel-tog:hover { color: var(--ink); }
.released .rel-item.shut { padding-top: 6px; padding-bottom: 6px; }
.released .rel-item.shut .rel-body { display: none; }
.rel-all { float: right; font-size: 12px; font-weight: 400; }
