:root {
  --bg: #f6f5f1; --surface: #ffffff; --surface-2: #f0efea; --line: #e2e0d8; --line-2: #cfccc1;
  --ink: #14212b; --ink-2: #44525d; --ink-3: #75828c;
  --brand: #0d5c63; --brand-2: #0a464c; --brand-soft: #e3f0ef; --accent: #b7791f; --accent-soft: #fbf1df;
  --ok: #1f7a4d; --ok-soft: #e3f3ea; --warn: #a15c07; --warn-soft: #fdf0dc; --bad: #b42318; --bad-soft: #fde8e6;
  --info: #2459a8; --info-soft: #e6eefb;
  --radius: 12px; --radius-s: 8px; --shadow: 0 1px 2px rgba(20,33,43,.06), 0 4px 16px rgba(20,33,43,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1418; --surface: #161d22; --surface-2: #1c252b; --line: #27323a; --line-2: #34414a;
    --ink: #e8ecef; --ink-2: #b2bdc5; --ink-3: #82909a;
    --brand: #4fb3ad; --brand-2: #79cbc6; --brand-soft: #14302f; --accent: #e0a64a; --accent-soft: #33281a;
    --ok: #4cc38a; --ok-soft: #12291e; --warn: #e6a23c; --warn-soft: #2e2413; --bad: #f07167; --bad-soft: #321a18;
    --info: #7aa7ec; --info-soft: #17233a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1418; --surface: #161d22; --surface-2: #1c252b; --line: #27323a; --line-2: #34414a;
  --ink: #e8ecef; --ink-2: #b2bdc5; --ink-3: #82909a;
  --brand: #4fb3ad; --brand-2: #79cbc6; --brand-soft: #14302f; --accent: #e0a64a; --accent-soft: #33281a;
  --ok: #4cc38a; --ok-soft: #12291e; --warn: #e6a23c; --warn-soft: #2e2413; --bad: #f07167; --bad-soft: #321a18;
  --info: #7aa7ec; --info-soft: #17233a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; } .grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }

/* ---- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); padding: 8px 14px; border-radius: var(--radius-s); font: 500 14px/1.2 var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
:root[data-theme="dark"] .btn.primary, :root:not([data-theme="light"]) .btn.primary { color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); border-color: var(--bad-soft); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
label.f { display: block; font-size: 13px; color: var(--ink-2); }
label.f > span { display: block; margin-bottom: 4px; font-weight: 500; }
input, select, textarea { width: 100%; font: 15px/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-s); padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
textarea { min-height: 84px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 4px; flex: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 7px 14px; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--brand); color: #fff; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { font-size: 15px; margin-bottom: 12px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.info { background: var(--info-soft); color: var(--info); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.notice { padding: 12px 14px; border-radius: var(--radius-s); background: var(--info-soft); color: var(--ink); font-size: 14px; }
.notice.warn { background: var(--warn-soft); } .notice.ok { background: var(--ok-soft); } .notice.bad { background: var(--bad-soft); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--surface-2); }
table.t td.r, table.t th.r { text-align: right; }
.tablewrap { overflow-x: auto; }
table.t input, table.t select { padding: 5px 8px; font-size: 14px; }

#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); transition: opacity .4s; }
.toast.bad { background: var(--bad); color: #fff; } .toast.out { opacity: 0; }

.modal-bg { position: fixed; inset: 0; background: rgba(10,16,20,.5); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 760px; }
.modal h2 { font-size: 19px; }

/* =================================================== PUBLIC SITE */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.site-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 16px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.logo small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.site-nav nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.site-nav nav a.nav-agent { color: var(--brand); font-weight: 650; }
@media (max-width: 520px) { .site-nav .nav-login { padding: 8px 8px; } }
.lang-btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 12px; font: 600 13px var(--font); color: var(--ink); cursor: pointer; }
@media (max-width: 900px) { .site-nav nav { display: none; } .site-nav .wrap { gap: 10px; } .site-nav .spacer { margin-left: auto; } }
@media (min-width: 901px) { .site-nav .spacer { display: none; } }
@media (max-width: 420px) { .site-nav .btn.primary { display: none; } }

.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { padding: 44px 0 36px; } .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 750; letter-spacing: -.025em; margin-bottom: 18px; }
:lang(zh-Hans) .hero h1 { letter-spacing: 0; font-size: clamp(30px, 4.4vw, 48px); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 600px; margin-bottom: 28px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.hero-card .big { font-size: 40px; font-weight: 750; color: var(--brand); letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
.stats > div { background: var(--surface); padding: 18px; }
.stats b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -.02em; }
.stats span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
section.s { padding: 72px 0; }
section.s.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { section.s { padding: 48px 0; } }
.s-head { max-width: 680px; margin-bottom: 36px; }
.s-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 720; }
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; } }
.svc .card { padding: 20px; transition: border-color .15s, transform .15s; }
.svc .card:hover { border-color: var(--brand); transform: translateY(-2px); }
.svc .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.svc h3 { font-size: 16px; margin-bottom: 6px; } .svc p { font-size: 14px; color: var(--ink-2); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps > div { position: relative; padding-top: 48px; }
.steps > div::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 16px; } .steps p { font-size: 14px; color: var(--ink-2); }
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-in { padding: 26px; } .calc-out { padding: 26px; background: var(--ink); color: #eef2f4; display: flex; flex-direction: column; }
:root[data-theme="dark"] .calc-out { background: #0b2a2c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-out { background: #0b2a2c; } }
.calc-out .big { font-size: clamp(36px, 5vw, 52px); font-weight: 750; letter-spacing: -.025em; color: #fff; margin: 4px 0 10px; }
.calc-out .lbl { font-size: 13px; color: #a9bcc5; text-transform: uppercase; letter-spacing: .06em; }
.calc-out .kv { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.calc-out .kv b { font-weight: 600; } .calc-out .note { font-size: 12.5px; color: #a9bcc5; margin-top: auto; padding-top: 18px; }
.calc-out .btn { margin-top: 16px; }
.calc .tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.calc .tabs button { border: 1px solid var(--line-2); background: var(--surface); padding: 7px 14px; border-radius: 999px; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; }
.calc .tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 700px) { .why { grid-template-columns: 1fr; } }
.why > div { display: flex; gap: 14px; } .why .ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.why h3 { font-size: 16px; margin-bottom: 4px; } .why p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; color: var(--ink-3); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
footer.site { padding: 40px 0 60px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }
footer.site .row { gap: 18px; }
footer.site p { max-width: 820px; }

/* doc pages (credit guide / privacy) */
.doc { max-width: 780px; margin: 0 auto; padding: 40px 20px 80px; }
.doc h1 { font-size: 32px; } .doc h2 { font-size: 20px; margin-top: 32px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc td, .doc th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* =================================================== PORTAL */
.portal { max-width: 860px; margin: 0 auto; padding: 28px 20px 80px; }
@media (max-width: 600px) { .portal { padding: 18px 16px 60px; } }
.stepper { display: flex; gap: 4px; margin: 12px 0 6px; }
.stepper i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.stepper i.on { background: var(--brand); }
.doclist { display: grid; gap: 8px; }
.docrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.docrow .grow { min-width: 0; }
.docrow label.btn input { display: none; }
fieldset.ff { border: 0; padding: 0; margin: 0 0 6px; }
fieldset.ff legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 10px; }
.multi { display: flex; flex-wrap: wrap; gap: 8px; }
.multi label { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 14px; cursor: pointer; background: var(--surface); }
.multi label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* =================================================== ADMIN */
body.admin { font-size: 14.5px; }
.app { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side .logo { padding: 4px 8px 16px; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.side a.nav:hover { background: var(--surface-2); text-decoration: none; }
.side a.nav.on { background: var(--brand-soft); color: var(--brand); }
.side a.nav .cnt { margin-left: auto; font-size: 12px; background: var(--bad); color: #fff; border-radius: 999px; padding: 0 7px; font-weight: 700; }
.side .foot { margin-top: auto; padding-top: 12px; display: grid; gap: 6px; }
.main { padding: 24px 28px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.topbar h1 { font-size: 22px; margin: 0; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .main { padding: 16px; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 30; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .l { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12.5px; color: var(--ink-3); }
.dash { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } }
.list { display: grid; }
.list .it { display: flex; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.list .it:last-child { border-bottom: 0; }
.list .it .grow { min-width: 0; }
.list .it .ttl { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.chart-bars .col { flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; position: relative; min-width: 0; }
.chart-bars .bar { border-radius: 4px 4px 0 0; min-height: 1px; }
.chart-bars .bar.rec { background: var(--brand); }
.chart-bars .bar.exp { background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 3px, color-mix(in srgb, var(--accent) 45%, transparent) 3px, color-mix(in srgb, var(--accent) 45%, transparent) 6px); }
.chart-bars .col .x { font-size: 10.5px; color: var(--ink-3); text-align: center; margin-top: 4px; white-space: nowrap; overflow: hidden; }
.chart-bars .col:hover .tip { display: block; }
.chart-bars .tip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 6px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap; z-index: 2; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.lane { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 200px; }
.lane.over { outline: 2px dashed var(--brand); }
.lane h4 { font-size: 13px; display: flex; justify-content: space-between; margin: 2px 4px 10px; color: var(--ink-2); }
.lane h4 .muted { font-weight: 500; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.dcard:hover { border-color: var(--line-2); }
.dcard.dragging { opacity: .45; }
.dcard .nm { font-weight: 600; font-size: 14px; }
.dcard .meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .detail { grid-template-columns: 1fr; } }
.stage-steps { display: flex; gap: 4px; flex-wrap: wrap; }
.stage-steps button { border: 1px solid var(--line-2); background: var(--surface); padding: 6px 10px; font: 500 12.5px var(--font); color: var(--ink-2); cursor: pointer; border-radius: 6px; }
.stage-steps button.done { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.stage-steps button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.stage-steps button.lost.on { background: var(--bad); border-color: var(--bad); }
.timeline .ev { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.timeline .ev .k { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin-top: 7px; }
.timeline .ev.note .k, .timeline .ev.call .k { background: var(--accent); } .timeline .ev.stage .k { background: var(--brand); }
.timeline .ev.email .k { background: var(--info); } .timeline .ev.compliance .k { background: var(--bad); } .timeline .ev.portal .k, .timeline .ev.document .k { background: var(--ok); }
.timeline .ev .w { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.ffview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; font-size: 13.5px; }
.ffview .h { grid-column: 1 / -1; font-weight: 700; margin-top: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.ffview .k { color: var(--ink-3); } .ffview > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.issue-list { margin: 8px 0 0; padding-left: 0; list-style: none; font-size: 13.5px; }
.issue-list li { padding: 2px 0 2px 22px; position: relative; }
.issue-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border: 1.5px solid var(--bad); border-radius: 3px; }
.login-box { max-width: 380px; margin: 12vh auto; padding: 0 16px; }
pre.mail { white-space: pre-wrap; font: 13.5px/1.55 var(--font); background: var(--surface-2); padding: 12px; border-radius: 8px; max-height: 340px; overflow: auto; margin: 0; }

/* =================================================== AGENT EXPLAINER */
.agent-page .ag-hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .agent-page .ag-hero-in { grid-template-columns: 1fr; } }
.ag-fig { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.ag-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.ag-two.arch { grid-template-columns: 1.4fr .6fr; }
.ag-two.comm { grid-template-columns: .7fr 1.3fr; }
@media (max-width: 960px) { .ag-two, .ag-two.arch, .ag-two.comm { grid-template-columns: 1fr; } }
svg.anim { width: 100%; height: auto; display: block; overflow: visible; }
svg.anim text { font-family: var(--font); }
.a-node { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.2; }
.a-node-g.broker .a-node { fill: var(--accent-soft); stroke: var(--accent); }
.a-txt { fill: var(--ink); font-size: 15px; font-weight: 500; } .a-txt.b { font-weight: 700; }
.a-sub { fill: var(--ink-3); font-size: 12.5px; }
.a-path { fill: none; stroke: var(--line-2); stroke-width: 1.6; }
.a-path.flow { stroke-dasharray: 5 6; animation: ag-dash 1.2s linear infinite; }
@keyframes ag-dash { to { stroke-dashoffset: -11; } }
.a-dot { fill: var(--brand); } .a-dot.out { fill: var(--accent); } .a-dot.up { fill: var(--info); } .a-dot.big { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.a-dot2 { fill: var(--accent); }
.a-pulse { fill: none; stroke: var(--brand); stroke-width: 2; }
.g-a { stop-color: var(--brand-2); } .g-b { stop-color: var(--brand); }
.a-core-t { fill: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .a-core-s { fill: rgba(255,255,255,.85); font-size: 14px; }
.a-ring-prog { fill: none; stroke: var(--brand); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.a-arrow { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phase .ph-c { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; transition: fill .3s, stroke .3s; }
.phase .ph-i { font-size: 20px; fill: var(--ink-2); } .phase .ph-t { font-size: 15px; font-weight: 700; fill: var(--ink); }
.phase.on .ph-c { fill: var(--brand); stroke: var(--brand); } .phase.on .ph-i, .phase.on .ph-t { fill: #fff; }
.phase { transition: transform .3s; transform-box: fill-box; transform-origin: center; } .phase.on { transform: scale(1.08); }
.a-center1 { fill: var(--ink); font-size: 20px; font-weight: 800; } .a-center2 { fill: var(--ink-3); font-size: 15px; }
.ph-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ph-legend > div { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; transition: background .3s, border-color .3s; }
.ph-legend > div b { display: block; } .ph-legend > div span { color: var(--ink-3); }
.ph-legend > div.on { background: var(--brand-soft); border-color: var(--brand); }
.console { background: #0d1418; border-radius: 14px; overflow: hidden; border: 1px solid #22313a; box-shadow: var(--shadow); }
.console-h, .mock-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #17232a; color: #8ea3ad; font-size: 12px; }
.console-h i, .mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a53; }
.console-h i:nth-child(1), .mock-bar i:nth-child(1) { background: #ef6b5b; } .console-h i:nth-child(2), .mock-bar i:nth-child(2) { background: #e9b949; } .console-h i:nth-child(3), .mock-bar i:nth-child(3) { background: #4cc38a; }
.console-h span, .mock-bar span { margin-left: 8px; }
.console-b { padding: 14px 16px; min-height: 250px; font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", monospace; color: #cfd8dc; }
.c-line { padding: 5px 0; border-bottom: 1px dashed #24343c; animation: ag-in .35s ease-out; }
.c-line.typing::after { content: '▋'; color: #4fb3ad; animation: ag-blink .8s steps(1) infinite; }
.c-W { color: #79cbc6; font-weight: 700; } .c-I { color: #e9b949; font-weight: 700; } .c-x { color: #f07167; font-weight: 700; } .c-m { color: #4cc38a; font-weight: 700; } .c-t { color: #cfd8dc; }
@keyframes ag-blink { 50% { opacity: 0; } }
@keyframes ag-in { from { opacity: 0; transform: translateY(6px); } }
.a-box { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.2; }
.a-box.nginx { fill: var(--surface-2); } .a-box.api { fill: var(--brand-soft); stroke: var(--brand); }
.a-box.engine { fill: var(--accent-soft); stroke: var(--accent); } .a-box.store { fill: var(--surface-2); stroke-dasharray: 4 3; }
.a-chip { fill: var(--surface); stroke: var(--brand); stroke-width: 1.2; }
.a-clock { fill: var(--surface); stroke: var(--accent); stroke-width: 2; } .a-hand { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.a-grid { stroke: var(--line); stroke-width: 1; }
.tech { display: flex; flex-wrap: wrap; gap: 6px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--d, 0ms), transform .6s var(--d, 0ms); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

.pipe { padding: 22px; }
.pipe-stage { font-size: 22px; font-weight: 750; letter-spacing: -.01em; }
.rail { position: relative; height: 8px; background: var(--line); border-radius: 4px; margin: 30px 14px 10px; }
.rail-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 4px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.puck { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow); transition: left .8s cubic-bezier(.4,0,.2,1); }
.rail-labels { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; font-size: 12px; color: var(--ink-3); text-align: center; margin-bottom: 18px; }
.rail-labels span { transition: color .3s; } .rail-labels span.done { color: var(--ink-2); } .rail-labels span.on { color: var(--brand); font-weight: 700; }
@media (max-width: 700px) { .rail-labels span:not(.on) { visibility: hidden; } .rail-labels span.on { grid-column: 1 / -1; grid-row: 1; } }
.pipe-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-height: 290px; }
@media (max-width: 760px) { .pipe-body { grid-template-columns: 1fr; } }
.actlog { display: grid; gap: 8px; }
.act-it { background: var(--surface-2); border-left: 3px solid var(--brand); padding: 9px 12px; border-radius: 8px; font-size: 14px; animation: ag-slide .45s cubic-bezier(.2,.8,.2,1); }
@keyframes ag-slide { from { opacity: 0; transform: translateX(-16px); } }
.gate { border: 2px solid var(--bad); border-radius: 12px; padding: 12px 14px; transition: border-color .4s, background .4s; animation: ag-in .4s; }
.gate.open { border-color: var(--ok); background: var(--ok-soft); }
.gate-h { font-weight: 700; margin-bottom: 6px; }
.g-it { display: flex; gap: 8px; align-items: center; font-size: 12.5px; padding: 2px 0; color: var(--ink-3); transition: color .2s; }
.g-it.ok { color: var(--ink); }
.g-box { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid var(--line-2); flex: none; transition: all .2s; position: relative; }
.g-it.ok .g-box { background: var(--ok); border-color: var(--ok); }
.g-it.ok .g-box::after { content: ''; position: absolute; left: 3.5px; top: 0.5px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gate-ok { margin-top: 8px; font-weight: 700; color: var(--ok); animation: ag-in .4s; }
.commbox { background: var(--ink); color: #fff; border-radius: 14px; padding: 20px; animation: ag-in .4s; }
:root[data-theme="dark"] .commbox { background: #0b2a2c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .commbox { background: #0b2a2c; } }
.commbox .muted { color: #a9bcc5; } .commbox .big { font-size: 44px; font-weight: 800; letter-spacing: -.02em; } .commbox .mid { font-size: 26px; font-weight: 700; color: #e0c27a; }

.formula { display: grid; gap: 8px; align-content: start; }
.formula .fx { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.formula .fx b { font-size: 20px; font-variant-numeric: tabular-nums; } .formula .fx span { color: var(--ink-2); font-size: 14px; }
.formula .fx.hi { background: var(--brand); color: #fff; } .formula .fx.hi span { color: rgba(255,255,255,.85); }
.formula .op { text-align: center; color: var(--accent); font-weight: 700; font-size: 14px; }
.formula > * { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; transition-delay: var(--d); }
.formula.in > * { opacity: 1; transform: none; }
.book-bar { fill: var(--brand); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d); }
.book-bar:nth-child(4n) { fill: var(--brand-2); }
.book.in .book-bar { transform: scaleY(1); }
.book-end { opacity: 0; transition: opacity .6s 1.6s; } .book.in .book-end { opacity: 1; }
.svc.feat .ic { font-size: 18px; }

.use { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .use { grid-template-columns: 1fr; } }
.use-steps { position: relative; display: grid; gap: 6px; }
.use-line { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); z-index: 0; }
.use-line i { display: block; width: 100%; background: var(--brand); transition: height .6s; }
.use-step { position: relative; z-index: 1; display: flex; gap: 14px; align-items: flex-start; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: var(--ink); }
.use-step .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-3); transition: all .3s; }
.use-step b { display: block; font-size: 15px; } .use-step .d { display: block; font-size: 13.5px; color: var(--ink-3); max-height: 0; overflow: hidden; transition: max-height .4s; }
.use-step.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); } .use-step.on .d { max-height: 120px; margin-top: 3px; }
.use-step.on .n, .use-step.done .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.mock { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 90px; animation: ag-in .4s; }
.mock-body { padding: 22px; display: grid; gap: 10px; min-height: 230px; }
.mock-l { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 15px; font-variant-numeric: tabular-nums; animation: ag-slide .5s both; animation-delay: var(--d); }
.mock-l.h { background: transparent; padding: 0 0 4px; font-weight: 750; font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  .a-path.flow, .c-line, .act-it, .mock, .mock-l, .gate, .commbox { animation: none !important; }
  .reveal, .formula > *, .book-bar, .book-end, .rail-fill, .puck { transition: none !important; }
}

/* lender comparison */
.modal.xwide { max-width: 1240px; }
.scen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.scen { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; background: var(--surface); align-content: start; }
.scen.rec { border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.scen .kv2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.scen .kv2 > span:first-child { color: var(--ink-3); }
.scen input, .scen textarea { padding: 5px 8px; font-size: 13px; }
.scen .kv2 input { text-align: right; }
.prop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.prop { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); display: grid; gap: 6px; align-content: start; position: relative; }
.prop.rec { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.prop .rate { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }
.prop .kv2 { display: flex; justify-content: space-between; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 6px; }
.prop .kv2 span:first-child { color: var(--ink-3); }
.prop .badge { position: absolute; top: -11px; left: 14px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.prop.chosen { outline: 3px solid var(--accent); }

/* agent page · lender match */
.ag-two.match-two { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 960px) { .ag-two.match-two { grid-template-columns: 1fr; } }
.tn rect { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.2; transition: fill .4s, stroke .4s, opacity .4s; }
.tn { opacity: .45; transition: opacity .4s; } .tn.on { opacity: 1; }
.tn.on rect { stroke: var(--brand); } .tn.on.path rect { fill: var(--brand); } .tn.on.path text { fill: #fff; }
.tn.root rect { fill: var(--accent-soft); stroke: var(--accent); }
.te-p { fill: none; stroke: var(--line-2); stroke-width: 2; transition: stroke .4s; }
.te { opacity: .35; transition: opacity .4s; } .te.on { opacity: 1; }
.te.on .te-p { stroke: var(--brand); stroke-dasharray: 6 6; animation: ag-dash 1s linear infinite; }
.te-l { fill: var(--ink-3); font-size: 12.5px; font-weight: 600; } .te.on .te-l { fill: var(--brand); }
.match { padding: 18px; }
.match .seg button { padding: 6px 12px; font-size: 13px; }
.m-client { margin-top: 14px; display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: var(--surface-2); animation: ag-in .4s; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips .pill { animation: ag-in .4s both; animation-delay: var(--d); }
.m-rows { position: relative; }
.m-row { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .7s cubic-bezier(.4,0,.2,1), opacity .5s, border-color .5s; }
.m-row .m-name { font-size: 14px; } .m-row .m-rate { font-weight: 700; font-size: 14px; }
.m-row .m-note { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row.ok { border-color: var(--ok); } .m-row.warn { border-color: var(--warn); } .m-row.fail { opacity: .55; }
.m-docs { display: flex; flex-wrap: wrap; gap: 6px; }
.m-doc { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); animation: ag-slide .45s both; animation-delay: var(--d); }
@media (prefers-reduced-motion: reduce) { .m-row { transition: none; } .m-doc, .m-chips .pill, .m-client { animation: none; } .te.on .te-p { animation: none; } }

/* sign-in page */
.login-page { max-width: 980px; margin: 0 auto; padding: 48px 20px 80px; }
.login-page h1 { font-size: 32px; margin-bottom: 4px; }
.login-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 24px; align-items: start; }
@media (max-width: 760px) { .login-grid { grid-template-columns: 1fr; } .login-page { padding: 28px 16px 60px; } }
.login-card { padding: 24px; display: grid; gap: 4px; }
.login-card h2 { font-size: 20px; margin: 6px 0 0; }
.login-card.client { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.login-card.broker { background: var(--surface-2); }
.login-card.focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.login-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--brand-soft); }
.login-card.broker .login-ic { background: var(--surface); }
.login-forgot { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.login-forgot summary { cursor: pointer; color: var(--brand); }

/* demo site */
.demo-strip { background: var(--accent); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 16px; }
.demo-box { margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--accent); background: var(--accent-soft); display: grid; gap: 10px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-box code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* AI chat widget */
.aic-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 12px 18px; background: var(--brand); color: #fff; font: 600 15px var(--font); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.aic-fab:hover { background: var(--brand-2); }
.aic-dot { width: 8px; height: 8px; border-radius: 50%; background: #7cf0b0; box-shadow: 0 0 0 0 rgba(124,240,176,.7); animation: aic-pulse 2s infinite; }
@keyframes aic-pulse { 70% { box-shadow: 0 0 0 8px rgba(124,240,176,0); } 100% { box-shadow: 0 0 0 0 rgba(124,240,176,0); } }
.aic.open .aic-fab { display: none; }
.aic-panel { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: 390px; height: min(620px, calc(100vh - 40px)); display: none; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
.aic.open .aic-panel { display: flex; animation: ag-in .25s; }
@media (max-width: 520px) { .aic-panel { inset: 0; width: auto; height: auto; border-radius: 0; } .aic-fab { right: 14px; bottom: 14px; } }
.aic-panel header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.aic-av { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.aic-sub { font-size: 12px; color: var(--ink-3); }
.aic-ic { border: 0; background: transparent; color: var(--ink-2); font-size: 16px; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.aic-ic:hover { background: var(--surface); }
.aic-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.aic-m { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; word-wrap: break-word; }
.aic-m p { margin: 0 0 6px; } .aic-m p:last-child { margin: 0; } .aic-m ul { margin: 4px 0; padding-left: 18px; } .aic-m li { margin: 2px 0; }
.aic-m.a { background: var(--surface-2); border-top-left-radius: 4px; align-self: flex-start; }
.aic-m.u { background: var(--brand); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.aic-m.typing::after { content: '● ● ●'; letter-spacing: 2px; font-size: 10px; color: var(--ink-3); animation: ag-blink 1s steps(1) infinite; }
.aic-sugs { display: flex; flex-wrap: wrap; gap: 6px; }
.aic-sugs button { border: 1px solid var(--brand); color: var(--brand); background: var(--surface); border-radius: 999px; padding: 6px 11px; font: 13px var(--font); cursor: pointer; }
.aic-sugs button:hover { background: var(--brand-soft); }
.aic-status { padding: 0 14px 6px; font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.aic-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.aic-form textarea { min-height: 40px; max-height: 120px; resize: none; padding: 9px 11px; font-size: 14.5px; }
.aic-foot { padding: 0 12px 10px; font-size: 11.5px; color: var(--ink-3); }

.chat-log { display: grid; gap: 8px; max-height: 65vh; overflow-y: auto; margin-top: 10px; }
.cl-m { padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.cl-m.u { background: var(--brand-soft); } .cl-m.a { background: var(--surface-2); }
.cl-tool { font-size: 12.5px; color: var(--ink-3); padding-left: 12px; }
