/* ============================================================
   Reseller Agents — design system
   Space Grotesk (brand) · Inter (body) · JetBrains Mono (data)
   ============================================================ */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #FAFAFC;
  --rail: #14161D;          /* dark rail even in light mode — anchors the app */
  --rail-ink: #EDEEF3;
  --rail-soft: #9BA1B0;
  --rail-line: #262A35;
  --ink: #16181D;
  --ink-soft: #5A6070;
  --ink-faint: #8A90A0;
  --line: #E6E8EE;
  --line-soft: #EEF0F5;
  --accent: #2C2F8F;        /* deep indigo — brand/action */
  --accent-ink: #FFFFFF;
  --accent-soft: #ECEDF7;
  --accent-hover: #23256F;
  --verify: #0F9D6B;        /* emerald — trust cues ONLY */
  --verify-soft: #E5F5EE;
  --danger: #C2334A;
  --shadow-sm: 0 1px 2px rgba(18,20,26,.06), 0 1px 1px rgba(18,20,26,.04);
  --shadow-md: 0 6px 24px -8px rgba(18,20,26,.18), 0 2px 6px rgba(18,20,26,.06);
  --shadow-lg: 0 24px 60px -20px rgba(18,20,26,.35);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0F14;
    --surface: #171A21;
    --surface-2: #1C1F28;
    --rail: #0A0B10;
    --rail-ink: #EDEEF3;
    --rail-soft: #868C9C;
    --rail-line: #1E212B;
    --ink: #ECEEF3;
    --ink-soft: #A2A8B8;
    --ink-faint: #6D7484;
    --line: #262A33;
    --line-soft: #20242D;
    --accent: #8A8CF0;
    --accent-ink: #0D0F14;
    --accent-soft: #22243A;
    --accent-hover: #A0A2F5;
    --verify: #34C088;
    --verify-soft: #16302A;
    --danger: #F0768A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 8px 30px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ============================================================
   LOGIN
   ============================================================ */
.auth {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(44,47,143,.10), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, rgba(15,157,107,.08), transparent 55%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 32px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--f-display); font-weight: 700;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--rail); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand-mark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--verify); box-shadow: 0 0 0 3px rgba(15,157,107,.25); }
.auth-title { font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 26px 0 6px; }
.auth-sub { color: var(--ink-soft); margin: 0 0 26px; font-size: 14.5px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .01em; }
.input {
  width: 100%; padding: 11px 13px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 16px; margin-top: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; border-radius: var(--r-md);
  transition: background .15s, transform .05s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.auth-note { margin-top: 20px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }
.form-error { color: var(--danger); font-size: 13px; margin: 8px 0 0; min-height: 18px; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { display: grid; grid-template-columns: 264px 1fr; height: 100%; }

/* ---- vendor rail ---- */
.rail {
  background: var(--rail); color: var(--rail-ink);
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--rail-line);
}
.rail-head { padding: 20px 18px 14px; }
.rail .brand { color: var(--rail-ink); font-size: 15.5px; }
.rail-label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rail-soft);
  padding: 8px 20px 8px; margin-top: 6px;
}
.vendors { flex: 1; overflow-y: auto; padding: 0 10px; min-height: 0; }
.vendor {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  padding: 9px 10px; margin-bottom: 2px;
  border-radius: var(--r-md); color: var(--rail-ink);
  transition: background .13s;
}
.vendor:hover { background: rgba(255,255,255,.05); }
.vendor.active { background: rgba(255,255,255,.09); }
.vendor.active .tile { box-shadow: 0 0 0 2px var(--rail), 0 0 0 3.5px currentColor; }
.tile {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 13px;
  color: #fff;
}
.vendor-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vendor.active .vendor-name { font-weight: 600; }
.rail-empty { color: var(--rail-soft); font-size: 13px; padding: 10px 20px; }
.rail-foot { border-top: 1px solid var(--rail-line); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent), #5a5de0);
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 12.5px;
}
.who { min-width: 0; line-height: 1.25; }
.who-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-role { font-family: var(--f-mono); font-size: 10.5px; color: var(--rail-soft); text-transform: uppercase; letter-spacing: .08em; }
.rail-foot .ghost { margin-left: auto; color: var(--rail-soft); font-size: 12.5px; padding: 6px 8px; border-radius: 7px; }
.rail-foot .ghost:hover { color: var(--rail-ink); background: rgba(255,255,255,.06); }

/* ---- chat main ---- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(8px);
}
.chat-head .tile { width: 28px; height: 28px; font-size: 12px; }
.chat-title { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.grounded {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-soft);
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.grounded .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--verify); box-shadow: 0 0 0 3px var(--verify-soft); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.usage { font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); }

/* ---- messages ---- */
.scroll { flex: 1; overflow-y: auto; min-height: 0; }
.thread { max-width: 780px; margin: 0 auto; padding: 26px 24px 8px; display: flex; flex-direction: column; gap: 18px; }

.msg { display: flex; gap: 12px; animation: rise .32s cubic-bezier(.2,.7,.3,1) both; }
.msg .mark { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 13px; }
.msg.user { flex-direction: row-reverse; }
.msg.user .bubble {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow-sm);
}
.msg.user .mark { background: var(--accent-soft); color: var(--accent); }
.msg.assistant .mark { background: var(--rail); color: #fff; }
.bubble {
  padding: 12px 15px; border-radius: 16px 16px 16px 4px;
  background: var(--surface); border: 1px solid var(--line);
  max-width: 82%; box-shadow: var(--shadow-sm);
}
.msg.assistant .bubble { border-left: 2.5px solid var(--verify); }
.bubble p { margin: 0 0 9px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul { margin: 4px 0 9px; padding-left: 20px; }
.bubble li { margin: 3px 0; }
.bubble strong { font-weight: 600; }
.bubble code, .bubble .price {
  font-family: var(--f-mono); font-size: .92em;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 1px 6px; border-radius: 6px;
}
.msg.user .bubble code { background: rgba(255,255,255,.16); border-color: transparent; }

/* source "receipt" chips — the signature */
.src {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  color: var(--verify); background: var(--verify-soft);
  border: 1px solid color-mix(in srgb, var(--verify) 22%, transparent);
  padding: 1px 7px 1px 6px; border-radius: 6px; white-space: nowrap;
}
.src::before { content: ""; width: 5px; height: 5px; border-radius: 1.5px; background: var(--verify); }

.caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--ink-soft); border-radius: 1px; animation: blink 1s steps(2) infinite; }

.thinking { display: inline-flex; gap: 4px; padding: 3px 0; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: bob 1.1s ease-in-out infinite; }
.thinking i:nth-child(2){ animation-delay: .15s; } .thinking i:nth-child(3){ animation-delay: .3s; }

.feedback { display: flex; gap: 4px; margin-top: 8px; padding-left: 2px; }
.feedback button { font-size: 14px; line-height: 1; padding: 5px 7px; border-radius: 7px; color: var(--ink-faint); transition: background .12s, color .12s; }
.feedback button:hover { background: var(--surface-2); color: var(--ink); }
.feedback button.on { color: var(--verify); background: var(--verify-soft); }
.feedback .said { font-size: 12px; color: var(--ink-faint); align-self: center; padding-left: 4px; }

.notice { color: var(--danger); }

/* ---- welcome / empty state ---- */
.welcome { max-width: 620px; margin: 6vh auto 0; padding: 0 24px; text-align: center; animation: rise .4s ease both; }
.welcome .tile { width: 46px; height: 46px; border-radius: 13px; font-size: 19px; margin: 0 auto 18px; }
.welcome h2 { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.welcome p { color: var(--ink-soft); margin: 0 auto 24px; max-width: 440px; }
.starters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.starter {
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 13.5px;
  box-shadow: var(--shadow-sm); transition: border-color .14s, transform .05s, color .14s;
}
.starter:hover { border-color: var(--accent); color: var(--accent); }
.starter:active { transform: translateY(1px); }
.no-vendor { max-width: 460px; margin: 12vh auto; text-align: center; color: var(--ink-soft); }
.no-vendor h2 { font-family: var(--f-display); color: var(--ink); }

/* ---- composer ---- */
.composer-wrap { padding: 12px 24px 20px; background: linear-gradient(to top, var(--bg) 62%, transparent); }
.composer {
  max-width: 780px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow-md); transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md); }
.composer textarea {
  flex: 1; border: none; background: none; resize: none;
  padding: 8px 0; max-height: 160px; line-height: 1.5; outline: none;
}
.composer textarea::placeholder { color: var(--ink-faint); }
.send {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  transition: background .14s, transform .05s, opacity .14s;
}
.send:hover { background: var(--accent-hover); }
.send:active { transform: scale(.94); }
.send[disabled] { opacity: .4; cursor: not-allowed; }
.send svg { width: 17px; height: 17px; }
.composer-hint { max-width: 780px; margin: 8px auto 0; text-align: center; font-size: 11.5px; color: var(--ink-faint); }
.composer-hint kbd { font-family: var(--f-mono); font-size: 10.5px; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin { min-height: 100%; background: var(--bg); }
.admin-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.admin-bar .brand { font-size: 15px; }
.admin-bar a { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.admin-wrap { max-width: 720px; margin: 0 auto; padding: 30px 24px 60px; }
.admin-wrap h1 { font-family: var(--f-display); font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; }
.admin-wrap .lede { color: var(--ink-soft); margin: 0 0 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; margin-bottom: 20px; }
.card h2 { font-family: var(--f-display); font-size: 16px; margin: 0 0 4px; }
.card .hint { color: var(--ink-soft); font-size: 13px; margin: 0 0 16px; }
.admin textarea.input { min-height: 92px; resize: vertical; line-height: 1.5; }
.admin textarea.facts { font-family: var(--f-mono); font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn.inline { width: auto; padding: 10px 18px; margin-top: 2px; }
.admin-msg { font-size: 13.5px; margin-top: 12px; min-height: 18px; }
.admin-msg.ok { color: var(--verify); } .admin-msg.err { color: var(--danger); }
.access-list { display: flex; flex-direction: column; gap: 8px; }
.access-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.access-item input { accent-color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .rail { flex-direction: row; align-items: center; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--rail-line); padding: 8px 10px; gap: 8px; }
  .rail-head, .rail-label, .rail-foot { display: none; }
  .vendors { display: flex; flex-direction: row; padding: 0; gap: 6px; }
  .vendor { width: auto; margin: 0; padding: 6px 12px 6px 8px; white-space: nowrap; }
  .bubble { max-width: 88%; }
  .row2 { grid-template-columns: 1fr; }
}

/* ============================================================
   MOTION
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .caret { animation: none; opacity: .6; }
}

/* ============================================================
   ANALYSIS WORKSPACE (rail links, views, pickers, reports)
   ============================================================ */
.rail-links { padding: 0 10px 6px; }
.rlink { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 2px; border-radius: var(--r-md); color: var(--rail-ink); font-size: 14px; transition: background .13s; }
.rlink:hover { background: rgba(255,255,255,.05); }
.rlink.active { background: rgba(255,255,255,.10); font-weight: 600; }
.rlink .ri { width: 20px; text-align: center; color: var(--rail-soft); font-size: 13px; }
.rlink.active .ri { color: var(--verify); }

.view { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.view.pad { overflow-y: auto; padding: 34px 32px 60px; }
.view-head { max-width: 760px; margin: 0 auto 22px; width: 100%; }
.view-head h1 { font-family: var(--f-display); font-size: 27px; letter-spacing: -.02em; margin: 0 0 6px; }
.view-head p { color: var(--ink-soft); margin: 0; max-width: 620px; }
.panel-card { max-width: 760px; margin: 0 auto 20px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.mini { font-size: 12.5px; color: var(--ink-faint); margin: 8px 0 0; }
.empty-hint { max-width: 760px; margin: 8px auto; color: var(--ink-soft); text-align: center; padding: 30px; }
.linklike { color: var(--accent); font-weight: 600; background: none; padding: 0; }
.linklike:hover { text-decoration: underline; }
.spin { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; margin-right: 6px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* company picker */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-align: left; transition: border-color .14s, background .14s; }
.pick:hover { border-color: var(--ink-faint); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); }
.pick .tile { width: 30px; height: 30px; font-size: 12px; }
.pick-name { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-check { margin-left: auto; color: var(--accent); opacity: 0; font-weight: 700; }
.pick.on .pick-check { opacity: 1; }

/* buyers */
.buyer-list { max-width: 760px; margin: 0 auto; width: 100%; display: grid; gap: 12px; }
.buyer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px; }
.buyer-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.buyer-top .tile { width: 34px; height: 34px; }
.buyer-name { font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.buyer-date { font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); }
.buyer-thesis { color: var(--ink-soft); margin: 0; font-size: 14px; }

/* reports list */
.report-list { max-width: 760px; margin: 0 auto; width: 100%; display: grid; gap: 8px; }
.report-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: border-color .14s, transform .05s; }
.report-row:hover { border-color: var(--accent); }
.report-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 15px; }
.report-meta { flex: 1; min-width: 0; }
.report-title { font-weight: 600; font-size: 15px; }
.report-sub { font-size: 12.5px; color: var(--ink-faint); }
.report-open { color: var(--accent); font-weight: 600; font-size: 13.5px; }

/* ============================================================
   REPORT PAGE
   ============================================================ */
.report-page { background: var(--bg); }
.report-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--ink-soft); }
.report-shell { max-width: 940px; margin: 0 auto; padding: 20px 24px 80px; }
.report-header { display: flex; align-items: center; padding: 8px 0 22px; }
.report-back { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 14px; }
.report-back:hover { color: var(--ink); }
.report-actions { margin-left: auto; }
.ghost-btn { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }
.report-hero { padding: 8px 0 22px; border-bottom: 1px solid var(--line); }
.report-eyebrow { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.report-h1 { font-family: var(--f-display); font-size: 34px; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 16px; }
.report-meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.report-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.report-badge.muted { color: var(--ink-soft); }
.report-badge.verify { color: var(--verify); border-color: color-mix(in srgb, var(--verify) 30%, transparent); background: var(--verify-soft); }
.report-badge.verify .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--verify); }
.report-badge .tile.sm { width: 20px; height: 20px; font-size: 9px; border-radius: 6px; }
.report-callout { margin: 26px 0; padding: 20px 22px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: var(--r-lg); }
.report-callout h3 { font-family: var(--f-display); margin: 0 0 6px; font-size: 15px; color: var(--accent); }
.report-callout p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.report-section { font-family: var(--f-display); font-size: 19px; letter-spacing: -.01em; margin: 34px 0 14px; }

/* comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 460px; }
.cmp th { text-align: left; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cmp td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14px; vertical-align: middle; }
.cmp tr:last-child td { border-bottom: none; }
.cmp-fit { display: flex; align-items: center; gap: 10px; }
.tile.sm { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; display: inline-grid; place-items: center; vertical-align: -6px; margin-right: 4px; color: #fff; font-family: var(--f-display); font-weight: 700; }

/* fit meter */
.meter { width: 120px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; display: inline-block; }
.meter-fill { height: 100%; border-radius: 999px; }
.meter.v-strong .meter-fill { background: var(--verify); }
.meter.v-possible .meter-fill { background: #D9930B; }
.meter.v-weak .meter-fill { background: var(--danger); }
.meter-num { font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }

/* verdict badge */
.verdict { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; text-transform: capitalize; }
.verdict.v-strong { color: var(--verify); background: var(--verify-soft); }
.verdict.v-possible { color: #9A6800; background: #FBF1DC; }
.verdict.v-weak { color: var(--danger); background: #FBE9EC; }
@media (prefers-color-scheme: dark) { .verdict.v-possible { color: #E8B44A; background: #2E2712; } .verdict.v-weak { background: #2E1620; } }

/* target cards */
.tcards { display: grid; gap: 16px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; }
.tcard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rank { font-family: var(--f-mono); font-size: 12px; color: var(--ink-faint); font-weight: 500; }
.tcard-head .tile { width: 38px; height: 38px; font-size: 14px; }
.tcard-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tname { font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.tcard-score { display: flex; align-items: center; gap: 9px; }
.tsummary { color: var(--ink); margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.tcol h4 { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.tcol-good h4 { color: var(--verify); border-color: var(--verify-soft); }
.tcol-bad h4 { color: var(--danger); border-color: #FBE9EC; }
.tcol-syn h4 { color: var(--accent); border-color: var(--accent-soft); }
.tcol ul { margin: 0; padding-left: 18px; }
.tcol li { font-size: 13.5px; margin: 5px 0; color: var(--ink); }
.tsources { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-soft); }
.report-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); text-align: center; }

@media (max-width: 720px) {
  .tgrid { grid-template-columns: 1fr; gap: 12px; }
  .report-h1 { font-size: 26px; }
  .view.pad { padding: 22px 16px 50px; }
}

/* ============================================================
   CHAT TABS + TEAM FEED + DIRECT MESSAGES
   ============================================================ */
.chat-tabs { margin-left: auto; display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.ctab { padding: 6px 13px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.ctab:hover { color: var(--ink); }
.ctab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.tab-badge, .rl-badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; font-family: var(--f-mono); }
.rl-badge { margin-left: auto; }
.rlink { justify-content: flex-start; }
.vdot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex: none; }

.subpanel { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* team feed */
.feed { max-width: 720px; margin: 0 auto; padding: 22px 24px 8px; display: flex; flex-direction: column; gap: 14px; }
.post { display: flex; gap: 11px; animation: rise .28s ease both; }
.avatar.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 700; }
.post-body { flex: 1; min-width: 0; }
.post-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.post-author { font-weight: 600; font-size: 13.5px; }
.post-author .you { font-weight: 400; color: var(--ink-faint); font-size: 11px; }
.post-time { font-size: 11.5px; color: var(--ink-faint); font-family: var(--f-mono); }
.mentioned { font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.post-text { font-size: 14.5px; line-height: 1.55; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 10px 13px; }
.post-text.quoted { border-left: 2.5px solid var(--verify); background: var(--surface-2); font-style: normal; }
.post.post-mention .post-text { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.mention { color: var(--accent); font-weight: 600; background: var(--accent-soft); padding: 0 4px; border-radius: 4px; }
.kbadge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.kbadge.win { color: #9A6800; background: #FBF1DC; }
.kbadge.shared { color: var(--accent); background: var(--accent-soft); }
@media (prefers-color-scheme: dark) { .kbadge.win { color: #E8B44A; background: #2E2712; } }

/* team composer */
.team-composer { max-width: 720px; margin: 0 auto; }
.kind-pick { display: flex; gap: 6px; margin-bottom: 8px; }
.kindb { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--ink-soft); background: var(--surface); }
.kindb.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.team-input { position: relative; }
.team-input .send { width: auto; padding: 0 16px; height: 38px; border-radius: 11px; font-weight: 600; font-size: 13.5px; }
.mention-pop { position: absolute; bottom: calc(100% + 6px); left: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 5px; min-width: 200px; z-index: 20; }
.mention-item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 7px 9px; border-radius: 8px; font-size: 13.5px; }
.mention-item:hover { background: var(--surface-2); }
.mention-item .avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.share-btn { font-size: 12px; color: var(--ink-soft); padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); margin-left: 4px; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.feedback button.on { color: var(--verify); background: var(--verify-soft); }

/* direct messages */
.dm-wrap { display: grid; grid-template-columns: 280px 1fr; height: 100%; min-height: 0; }
.dm-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.dm-side-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.dm-new { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 18px; display: grid; place-items: center; }
.dm-threads { flex: 1; overflow-y: auto; padding: 4px 8px; min-height: 0; }
.dm-thread-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: var(--r-md); margin-bottom: 2px; }
.dm-thread-row:hover { background: var(--surface-2); }
.dm-thread-row.active { background: var(--accent-soft); }
.dm-tmeta { flex: 1; min-width: 0; }
.dm-tname { font-weight: 600; font-size: 14px; }
.dm-tlast { font-size: 12px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dm-empty { flex: 1; display: grid; place-items: center; color: var(--ink-faint); }
.dm-open { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
.dm-msgs { max-width: 680px; margin: 0 auto; padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.dm-msg { display: flex; flex-direction: column; max-width: 74%; }
.dm-msg.me { align-self: flex-end; align-items: flex-end; }
.dm-msg.them { align-self: flex-start; }
.dm-bubble { padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.dm-msg.me .dm-bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.dm-msg.them .dm-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.dm-t { font-size: 10.5px; color: var(--ink-faint); font-family: var(--f-mono); margin-top: 3px; }
.dm-who { font-size: 11px; font-weight: 600; color: var(--ink-soft); margin: 0 0 2px 3px; }
.avatar.group-av { background: var(--accent-soft); color: var(--accent); font-size: 15px; }
.grp-count { font-size: 11px; color: var(--ink-faint); font-weight: 500; }
.group-create { margin: 0 12px 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.group-create input[type=text] { width: 100%; padding: 8px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 8px; }
.group-members { max-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.grp-pick { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 3px 4px; border-radius: 6px; cursor: pointer; }
.grp-pick:hover { background: var(--surface); }
.group-actions { display: flex; gap: 8px; }
.btn-sm { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-sm.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.group-msg { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }
@media (max-width: 720px) { .dm-wrap { grid-template-columns: 1fr; } .dm-side { display: none; } }

.conn-wrap { max-width: 640px; margin: 0 auto; padding: 32px 24px; }
.conn-title { font-family: var(--f-display); font-size: 22px; margin: 0 0 6px; }
.conn-sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }
.conn-cards { display: grid; gap: 14px; }
.conn-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 16px 18px; }
.conn-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.conn-name { font-weight: 700; font-size: 15px; }
.conn-ok { font-size: 12px; font-weight: 600; color: var(--verify); }
.conn-email { font-size: 13px; margin-bottom: 12px; }
.conn-email.muted { color: var(--ink-faint); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 10px 16px; border-radius: var(--r-md); font-size: 13.5px; z-index: 50; }

/* ---------- add to company knowledge ---------- */
.kn-wrap { position: relative; }
.kn-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 12px; z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.kn-panel-head { font-weight: 700; font-size: 13px; }
.kn-file-label { display: block; text-align: center; cursor: pointer; }
.kn-or { font-size: 11.5px; color: var(--ink-faint); text-align: center; }
.kn-panel textarea { min-height: 70px; resize: vertical; }

/* ---------- flag messages + jump-to panel ---------- */
.flags-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.flags-toggle:hover { color: var(--ink); border-color: var(--accent); }
.flags-toggle.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.flags-count { font-family: var(--f-mono); font-size: 11px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 6px; }
#agentPanel { position: relative; }
.flags-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 320px; max-width: 82%; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-md); display: flex; flex-direction: column; z-index: 20; }
.flags-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 700; font-size: 15px; }
.flags-x { color: var(--ink-faint); font-size: 15px; padding: 4px 8px; border-radius: 6px; }
.flags-x:hover { background: var(--surface-2); color: var(--ink); }
.flags-list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.flag-item { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.flag-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.flag-role { font-size: 10.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.flag-snip { font-size: 13px; color: var(--ink-soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.flags-hint { padding: 10px 16px; font-size: 11.5px; color: var(--ink-faint); border-top: 1px solid var(--line); }
.flags-empty { color: var(--ink-faint); font-size: 13px; padding: 18px; text-align: center; }
.msg .bubble { position: relative; }
.msg.flagged .bubble { box-shadow: 0 0 0 2px var(--accent); }
.msg.flagged .bubble::after { content: "⚑"; position: absolute; top: -9px; right: -7px; font-size: 11px; color: var(--accent); background: var(--surface); border: 1px solid var(--accent); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; }
.msg { cursor: default; }
@keyframes jumpflash { 0% { box-shadow: 0 0 0 3px var(--verify); } 100% { box-shadow: 0 0 0 0 transparent; } }
.jump-hl .bubble { animation: jumpflash 1.7s ease; }

/* ============================================================
   EMAIL DRAFT CARD + PUSHED-TO-GMAIL PANEL (Plan 2b)
   ============================================================ */
.draft-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); padding: 16px; margin: 4px 0 4px 40px; max-width: 88%; display: flex; flex-direction: column; gap: 10px; animation: rise .32s cubic-bezier(.2,.7,.3,1) both; }
.draft-card .draft-head { font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.draft-card label { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.draft-card label input { flex: 1; }
.draft-card input, .draft-card textarea { padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font: inherit; }
.draft-card textarea { width: 100%; resize: vertical; }
.draft-atts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.att-chip { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 500; }
.draft-actions { display: flex; gap: 12px; align-items: center; }
.draft-actions .d-status { font-size: 13px; color: var(--ink-soft); }
.d-ok { color: var(--verify); font-size: 13.5px; font-weight: 500; }
.d-ok a { color: var(--verify); font-weight: 600; }

.pushed-list { max-width: 760px; margin: 0 auto; width: 100%; display: grid; gap: 8px; }
.pushed-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.pushed-row b { font-weight: 600; }
.pushed-row span { color: var(--ink-soft); font-size: 13px; }
.pushed-row a { margin-left: auto; color: var(--accent); font-weight: 600; text-decoration: none; }
.pushed-row a:hover { text-decoration: underline; }

.mailbox-search { display: flex; gap: 8px; margin-bottom: 12px; max-width: 760px; margin-left: auto; margin-right: auto; }
.mailbox-search input { flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; }
.mailbox-search button { padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.dm-bubble p { margin: 0 0 6px; }
.dm-bubble p:last-child { margin-bottom: 0; }
.dm-bubble ul { margin: 4px 0; padding-left: 18px; }
.dm-bubble li { margin: 2px 0; }
.modal-overlay { position: fixed; inset: 0; background: rgba(10,11,16,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); max-width: 420px; width: 100%; padding: 22px; }
.modal-msg { margin: 0 0 18px; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.danger-btn { background: var(--danger); color: #fff; border-color: var(--danger); }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; max-width: 900px; }
.help-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.help-card h3 { margin: 0 0 6px; font-size: 15px; }
.help-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.mailbox-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 auto 14px; max-width: 760px; font-size: 13px; color: var(--ink-soft); }
.mailbox-filters label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.mailbox-filters input[type="checkbox"] { accent-color: var(--accent); }
.mailbox-filters select { padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.mailbox-filters .flt-all { margin-left: auto; }
.mailbox-list { max-width: 760px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.thread-row { display: grid; grid-template-columns: 180px 1fr; gap: 4px 12px; text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
.thread-row:hover { background: var(--surface-2); }
.thread-row.unread .tr-from, .thread-row.unread .tr-subj { font-weight: 600; }
.thread-row .tr-subj { grid-column: 2; }
.thread-row .tr-snip { grid-column: 2; color: var(--ink-soft); font-size: 0.9em; }
.thread-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 8px; max-width: 760px; margin-left: auto; margin-right: auto; }
.thread-actions { display: flex; gap: 8px; }
.thread-actions button { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.thread-msg { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); padding: 12px 0; }
.tm-meta { color: var(--ink-soft); font-size: 0.85em; margin-bottom: 6px; }
.tm-att { font-size: 0.85em; margin-bottom: 6px; }
.tm-body { white-space: pre-wrap; font-family: inherit; margin: 0; }

/* ---------- Print (Export PDF from the acquisition-fit report) ---------- */
@media print {
  /* Force the light palette so a dark-mode viewer still gets a clean, ink-friendly PDF. */
  :root {
    --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #FFFFFF;
    --ink: #16181D; --ink-soft: #4A4F5C; --ink-faint: #6B7180;
    --line: #D8DBE2; --line-soft: #E6E8EE;
    --accent: #2C2F8F; --accent-ink: #FFFFFF; --accent-soft: #ECEDF7;
    --verify: #0F9D6B; --verify-soft: #E5F5EE; --danger: #C2334A;
    --shadow-sm: none; --shadow-md: none; --shadow-lg: none;
  }
  html, body { height: auto; background: #FFFFFF; }
  .report-page { background: #FFFFFF; }
  /* Hide interactive chrome (back link + Export/Copy buttons); keep the hero as the PDF header. */
  .report-header { display: none !important; }
  .report-shell { max-width: none; margin: 0; padding: 0; }
  /* Don't split a card, a table row, or the recommendation across pages. */
  .tcard, .cmp tr, .report-callout, .report-hero { break-inside: avoid; page-break-inside: avoid; }
  .report-section { break-after: avoid; page-break-after: avoid; }
  a[href]::after { content: ""; } /* suppress printed URLs after links */
  @page { margin: 16mm; }
}
