/* =====================================================================
   LendingHub UI — one stylesheet, no build step.
   Palette (each lender can override it; the layout prints these variables):
     --navy  #101D32  Midnight Navy   sidebar, headings
     --teal  #087F70  Emerald Teal    primary actions, links
     --mint  #C8F3E7  Soft Mint       highlights, selected states
     --cloud #F5F8FA  Cloud White     page background
     --slate #25364A  Slate           secondary dark surfaces
   Sections: base · scrollbars · shell · sidebar · topbar · menus · surfaces · stats · tables · badges ·
             forms · custom select · calendar · buttons · alerts · tabs · modal · charts · auth · public ·
             customer portal · documents · misc · responsive · print
   ===================================================================== */
/* self-hosted Inter (works offline, no third-party requests) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-latin-800-normal.woff2") format("woff2"); }
:root {
  --navy: #101D32; --teal: #087F70; --mint: #C8F3E7; --cloud: #F5F8FA; --slate: #25364A;
  --brand: var(--teal); --brand-ink: #ffffff;
  --teal-d: color-mix(in srgb, var(--teal) 82%, black);
  --teal-soft: color-mix(in srgb, var(--teal) 9%, white);
  --bg: var(--cloud); --surface: #ffffff; --surface-2: #F3F6F9; --surface-3: #EAEFF4;
  --ink: #142033; --ink-2: #44546A; --ink-3: #66768C;
  --line: #E2E8EE; --line-2: #CDD6E0;
  --green: #067A56; --green-bg: #E5F6EE;
  --red: #B42318; --red-bg: #FDEEEC;
  --amber: #9A5A06; --amber-bg: #FDF4E1;
  --blue: #1F5EAD; --blue-bg: #E9F1FB;
  --violet: #5B3CC4; --violet-bg: #F1EDFD;
  --gray: #4A5568; --gray-bg: #EEF1F4;
  --radius: 10px; --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(16,29,50,.05);
  --shadow-md: 0 2px 8px rgba(16,29,50,.06);
  --shadow-lg: 0 16px 40px rgba(16,29,50,.14), 0 2px 6px rgba(16,29,50,.06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side-w: 256px; --side-w-min: 72px; --top-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: .18s;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 14px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--teal); text-decoration: none; transition: color var(--dur); }
a:hover { color: var(--teal-d); }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.012em; color: var(--navy); }
h1 { font-size: 23px; font-weight: 700; } h2 { font-size: 17px; font-weight: 650; } h3 { font-size: 15px; font-weight: 650; }
h4 { font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--ink-3); }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }
img { max-width: 100%; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
svg.chev, svg.dp-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--mint); color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- scrollbars: slim, themed, no arrow buttons (Chrome, Edge, Safari, Firefox) ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--slate) 26%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--teal) 60%, transparent); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-thumb:active { background: var(--teal); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-button, ::-webkit-scrollbar-button:single-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--slate) 30%, transparent) transparent; } }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- page entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.content > *, .b-main > * { animation: rise .32s var(--ease) backwards; }
.content > *:nth-child(2), .b-main > *:nth-child(2) { animation-delay: .03s; }
.content > *:nth-child(3), .b-main > *:nth-child(3) { animation-delay: .06s; }
.content > *:nth-child(n+4), .b-main > *:nth-child(n+4) { animation-delay: .09s; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .28s var(--ease); }
html.side-collapsed .shell { grid-template-columns: var(--side-w-min) minmax(0, 1fr); }
html.no-anim .shell, html.no-anim .side * { transition: none !important; }
.main { min-width: 0; display: flex; flex-direction: column; }
.content { padding: 28px 32px 56px; width: 100%; max-width: 1440px; flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); max-width: 760px; }
.page-head .actions, .page-head .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.app-foot { padding: 16px 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface); }
.app-foot a { color: var(--ink-2); font-weight: 600; }
.powered a { font-weight: 600; }

/* ---------- sidebar ---------- */
.side { background: var(--navy); color: #BAC6D4; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; z-index: 30; }
.side-brand { height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.07); flex: 0 0 auto; text-decoration: none !important; }
.side-brand .mark-box { width: 38px; height: 38px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.side-brand .mark-box img { width: 30px; height: 30px; object-fit: contain; }
.side-brand .mark-box .mark-fallback { font-weight: 800; color: var(--navy); font-size: 16px; }
.side-brand .names { min-width: 0; white-space: nowrap; transition: opacity .2s var(--ease); }
.side-brand .names strong { display: block; color: #fff; font-size: 15px; font-weight: 650; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.side-brand .names span { display: block; font-size: 11.5px; color: #8A9BB0; }
.side nav { padding: 10px 10px 18px; overflow-y: auto; overflow-x: hidden; flex: 1; scroll-behavior: smooth; overscroll-behavior: contain; }
.side nav::-webkit-scrollbar { width: 5px; }
.side nav::-webkit-scrollbar-thumb { background: transparent; border: 0; border-radius: 99px; }
.side nav:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); }
.side nav::-webkit-scrollbar-thumb:hover { background: var(--teal); }
@supports not selector(::-webkit-scrollbar) { .side nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; } }
.side nav .sec { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6F8199; padding: 16px 12px 6px; white-space: nowrap; font-weight: 600; transition: opacity .2s; }
.side nav a { position: relative; display: flex; align-items: center; gap: 12px; color: #BAC6D4; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; white-space: nowrap; margin-bottom: 1px; transition: background var(--dur), color var(--dur); }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side nav a.on { background: rgba(255,255,255,.09); color: #fff; }
.side nav a.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mint); }
.side nav a.on .icon { color: var(--mint); }
.side nav a .label { transition: opacity .18s; overflow: hidden; text-overflow: ellipsis; }
.side nav a .count { margin-left: auto; background: rgba(200,243,231,.14); color: var(--mint); border-radius: 6px; font-size: 11px; padding: 0 6px; font-weight: 700; line-height: 19px; font-variant-numeric: tabular-nums; transition: opacity .18s; }
.side-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11.5px; color: #6F8199; white-space: nowrap; overflow: hidden; }
.side-foot a { color: #9FB0C4; }
html.side-collapsed .side-brand { padding: 0 17px; }
html.side-collapsed .side-brand .names, html.side-collapsed .side nav a .label, html.side-collapsed .side nav .sec span, html.side-collapsed .side-foot > * { opacity: 0; pointer-events: none; }
html.side-collapsed .side nav .sec { height: 13px; padding: 6px 0; margin: 0 12px; border-top: 1px solid rgba(255,255,255,.08); }
html.side-collapsed .side nav a { justify-content: center; padding: 10px 0; }
html.side-collapsed .side nav a .label { position: absolute; width: 0; }
html.side-collapsed .side nav a .count { position: absolute; top: 5px; right: 11px; padding: 0; width: 7px; height: 7px; font-size: 0; background: var(--mint); border-radius: 50%; }
/* floating tooltip for the collapsed sidebar (positioned by app.js) */
.tip { position: fixed; z-index: 200; background: var(--navy); color: #fff; padding: 6px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 550; box-shadow: var(--shadow-lg); white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-4px); transition: opacity .14s, transform .14s var(--ease); border: 1px solid rgba(255,255,255,.08); }
.tip.on { opacity: 1; transform: none; }

/* ---------- topbar ---------- */
.topbar { height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 28px; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .crumb { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .crumb strong { color: var(--navy); font-weight: 650; }
.topbar .grow { flex: 1; }
.topbar .chip { font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 7px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.topbar .chip.ghost { background: var(--navy); color: var(--mint); border-color: var(--navy); }
.burger { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; flex: 0 0 auto; transition: background var(--dur), border-color var(--dur); }
.burger:hover { background: var(--surface-2); border-color: var(--line-2); }
.burger .bars { position: relative; width: 18px; height: 14px; }
.burger .bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.burger .bars span:nth-child(1) { top: 0; } .burger .bars span:nth-child(2) { top: 6px; } .burger .bars span:nth-child(3) { top: 12px; }
html:not(.side-collapsed) .burger .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
html:not(.side-collapsed) .burger .bars span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
html:not(.side-collapsed) .burger .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- dropdown menus (account menu etc.) ---------- */
.menu { position: relative; }
.menu > button { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; border-radius: 10px; padding: 4px 8px 4px 4px; cursor: pointer; font: inherit; color: var(--ink); transition: background var(--dur), border-color var(--dur); }
.menu > button:hover, .menu.open > button { background: var(--surface-2); border-color: var(--line); }
.menu > button .chev-i { transition: transform .2s var(--ease); color: var(--ink-3); }
.menu.open > button .chev-i { transform: rotate(180deg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-grid; place-items: center; font-weight: 650; font-size: 12.5px; flex: 0 0 auto; overflow: hidden; letter-spacing: .02em; }
.avatar.has-img { background: var(--surface-3); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.avatar-xl { width: 88px; height: 88px; font-size: 26px; }
.menu .who { text-align: left; line-height: 1.2; }
.menu .who strong { display: block; font-size: 13px; color: var(--navy); font-weight: 600; }
.menu .who span { font-size: 11.5px; color: var(--ink-3); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 264px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .16s, transform .18s var(--ease), visibility 0s .18s; }
.menu.open .menu-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .18s var(--ease), visibility 0s; }
.menu-panel .head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.menu-panel .head strong { display: block; color: var(--navy); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel .head > div > span { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel .head .avatar { width: 38px; height: 38px; font-size: 13px; }
.menu-panel a, .menu-panel button.item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 8px; color: var(--ink); font: inherit; font-size: 13.5px; background: none; border: 0; cursor: pointer; text-align: left; transition: background var(--dur); }
.menu-panel a .icon, .menu-panel button.item .icon { color: var(--ink-3); }
.menu-panel a:hover, .menu-panel button.item:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.menu-panel .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-panel .danger, .menu-panel .danger .icon { color: var(--red); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; min-width: 0; }
.card > h2:first-child, .card > h3:first-child { margin-bottom: 4px; }
.card > h2:first-child:not(:has(+ .card-sub)), .card > h3:first-child:not(:has(+ .card-sub)) { margin-bottom: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2, .card.flush > h3, .card .card-head { padding: 14px 20px; margin: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card .card-head h3, .card .card-head h2 { margin: 0; }
.card .card-head .card-sub { margin: 2px 0 0; }
.card-sub { font-size: 12.5px; color: var(--ink-3); margin: 0 0 14px; }
.sec-head { margin: 26px 0 12px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.grid { display: grid; gap: 18px; }
.grid > .card { margin-bottom: 0; }
.content > .grid, .b-main > .grid, .tab-panel > .grid, .content > div > .grid { margin-bottom: 18px; }
.content > .grid:last-child, .tab-panel > .grid:last-child { margin-bottom: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-side-r { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 20px; margin: 0; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; font-weight: 550; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }
.note { font-size: 12.5px; color: var(--ink-3); }

/* structured data (decoded JSON shown as readable rows) */
dl.dv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; }
dl.dv > dt, dl.dv > dd { padding: 7px 12px; border-bottom: 1px solid var(--line); margin: 0; }
dl.dv > dt { color: var(--ink-3); background: var(--surface-2); font-weight: 500; }
dl.dv > dd { min-width: 0; font-weight: 550; }
dl.dv > dt:nth-last-child(2), dl.dv > dd:last-child { border-bottom: 0; }
dl.dv.dv-nested { border-radius: 6px; font-size: 12.5px; }
.dv-table { font-size: 12.5px; }
.yn { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.yn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.yn.yes { color: var(--green); } .yn.yes::before { background: var(--green); }
.yn.no { color: var(--ink-3); } .yn.no::before { background: #B7C2CE; }
.evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 4px; }
.evidence > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.evidence span { display: block; font-size: 11.5px; color: var(--ink-3); }
.evidence b { font-size: 13.5px; color: var(--navy); font-weight: 650; }

/* ---------- stat cards ---------- */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.stat .label { font-size: 12.5px; color: var(--ink-3); font-weight: 550; display: flex; align-items: center; gap: 9px; }
.stat .label .ic { width: 28px; height: 28px; border-radius: 7px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: 0 0 auto; }
.stat .value { font-size: 25px; font-weight: 700; margin-top: 10px; font-variant-numeric: tabular-nums; color: var(--navy); letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.stat .spark { position: static; display: block; width: 100%; height: 34px; margin-top: auto; padding-top: 10px; }
.stat .spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.stat.dark { background: var(--navy); border-color: var(--navy); }
.stat.dark .label, .stat.dark .sub { color: #A9B7C9; }
.stat.dark .label .ic { background: rgba(255,255,255,.08); color: var(--mint); }
.stat.dark .value { color: #fff; }
.stat a.stat-link { margin-top: 8px; font-size: 12.5px; font-weight: 600; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background var(--dur); }
table.t tbody tr:hover td { background: #F9FBFC; }
table.t th.num, table.t td.num { text-align: right; }
table.t.compact td, table.t.compact th { padding: 7px 12px; font-size: 13px; }
table.t td.actions { text-align: right; white-space: nowrap; }
table.t tfoot td { background: var(--surface-2); font-weight: 650; border-top: 1px solid var(--line); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); }
.empty .icon { width: 28px; height: 28px; color: #9AA8B8; margin-bottom: 6px; }
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: inline-grid; place-items: center; margin-bottom: 12px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; text-transform: capitalize; white-space: nowrap; line-height: 20px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-violet { background: var(--violet-bg); color: var(--violet); }
.badge-gray { background: var(--gray-bg); color: var(--gray); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); font-weight: 500; }
.pill-mint { background: var(--mint); border-color: transparent; color: var(--navy); }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--navy); }
.field { margin-bottom: 16px; min-width: 0; }
.field .help { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field .err { font-size: 12px; color: var(--red); margin-top: 5px; animation: fade .2s; }
.field.has-err input, .field.has-err select, .field.has-err textarea, .field.has-err .sel-btn { border-color: var(--red); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=tel], input[type=url], input[type=search], select, textarea, .sel-btn {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); min-height: 40px; transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
input:hover:not(:focus):not([readonly]), select:hover, textarea:hover:not(:focus), .sel-btn:hover { border-color: #B5C1CE; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .sel-btn:focus-visible, .sel.open .sel-btn { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent); }
input::placeholder, textarea::placeholder { color: #9AA7B6; }
input[readonly] { background: var(--surface-2); }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=file] { font: inherit; font-size: 13px; padding: 7px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--surface-2); width: 100%; cursor: pointer; }
input[type=file]::file-selector-button { border: 1px solid var(--line-2); background: #fff; color: var(--navy); padding: 6px 12px; border-radius: 6px; margin-right: 10px; cursor: pointer; font: inherit; font-weight: 600; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2325364A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; margin-bottom: 10px; cursor: pointer; color: var(--ink); }
.check input[type=checkbox], .check input[type=radio] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; margin: 1px 0 0; flex: 0 0 auto; display: grid; place-items: center; background: #fff; cursor: pointer; transition: background var(--dur), border-color var(--dur); }
.check input[type=radio] { border-radius: 50%; }
.check input:checked { background: var(--teal); border-color: var(--teal); }
.check input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type=radio]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.check input:disabled { opacity: .55; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; margin-bottom: 12px; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: 0 0 auto; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .2s var(--ease); }
.switch input:checked { background: var(--teal); }
.switch input:checked::after { left: 21px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; flex-wrap: wrap; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 4px; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 650; padding: 0 6px; color: var(--navy); }
.form-sec { padding: 18px 0; border-top: 1px solid var(--line); }
.form-sec:first-child { border-top: 0; padding-top: 0; }
.form-sec > h3 { margin-bottom: 2px; }
.form-sec > .card-sub { margin-bottom: 14px; }

/* custom select */
.sel { position: relative; min-width: 0; }
.sel select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.sel-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; }
.sel-btn .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn .txt.ph { color: #9AA7B6; }
.sel-btn .chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); flex: 0 0 auto; }
.sel.open .sel-btn .chev { transform: rotate(180deg); }
.sel-panel { position: absolute; left: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 5px; z-index: 60;
  min-width: 100%; width: max-content; max-width: min(420px, 92vw); max-height: 296px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s, transform .16s var(--ease), visibility 0s .16s; }
.sel.open .sel-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .14s, transform .16s var(--ease), visibility 0s; }
.sel.up .sel-panel { top: auto; bottom: calc(100% + 6px); transform: translateY(4px); }
.sel.up.open .sel-panel { transform: none; }
.sel.right .sel-panel { left: auto; right: 0; }
.sel-panel input.sel-search { margin: 2px 2px 6px; width: calc(100% - 4px); min-height: 34px; padding: 6px 10px; position: sticky; top: 0; }
.sel-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; white-space: nowrap; transition: background .1s; }
.sel-opt:hover, .sel-opt.hl { background: var(--surface-2); }
.sel-opt.on { background: var(--teal-soft); color: var(--navy); font-weight: 600; }
.sel-opt.on::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); flex: 0 0 auto; }
.sel-opt.dis { opacity: .45; cursor: not-allowed; }
.sel-empty { padding: 10px; color: var(--ink-3); font-size: 13px; }
.sel.inline-sel { display: inline-block; width: auto; min-width: 150px; }
.sel.inline-sel .sel-btn { min-height: 38px; }

/* custom calendar */
.dp { position: relative; min-width: 0; }
.dp input.dp-show { padding-right: 38px; cursor: pointer; background: #fff; }
.dp .dp-ico { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.dp-pop { position: absolute; top: calc(100% + 6px); left: 0; width: 256px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s, transform .16s var(--ease), visibility 0s .16s; }
.dp.open .dp-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .14s, transform .16s var(--ease), visibility 0s; }
.dp.right .dp-pop { left: auto; right: 0; }
.dp.up .dp-pop { top: auto; bottom: calc(100% + 6px); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head .ttl { font-weight: 650; color: var(--navy); cursor: pointer; padding: 4px 8px; border-radius: 7px; transition: background var(--dur); }
.dp-head .ttl:hover { background: var(--surface-2); }
.dp-nav { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--slate); transition: background var(--dur); }
.dp-nav:hover { background: var(--surface-2); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; animation: fade .15s; }
.dp-grid.months { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-dow { font-size: 11px; text-align: center; color: var(--ink-3); font-weight: 600; padding: 4px 0; }
.dp-day { height: 30px; border: 0; background: none; border-radius: 7px; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); transition: background .1s; }
.dp-day:hover { background: var(--surface-2); }
.dp-day.out, .dp-blank { visibility: hidden; pointer-events: none; }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--teal); }
.dp-day.sel { background: var(--teal); color: #fff; font-weight: 650; }
.dp-day:disabled { color: #D3DAE2; cursor: not-allowed; background: none; }
.dp-grid.months .dp-day { height: 38px; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-foot button { background: none; border: 0; color: var(--teal); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.dp-foot button:hover { background: var(--surface-2); }

/* ---------- buttons: flat, solid, clear states ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.3; cursor: pointer; white-space: nowrap; text-decoration: none !important; min-height: 38px;
  box-shadow: 0 1px 0 rgba(16,29,50,.04); transition: background var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur), transform .08s; }
.btn:hover { background: var(--surface-2); border-color: #B7C3CF; color: var(--navy); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--teal); border-color: var(--teal-d); color: #fff; }
.btn-primary:hover { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn-mint { background: var(--mint); border-color: color-mix(in srgb, var(--mint) 70%, var(--teal)); color: var(--navy); }
.btn-mint:hover { background: color-mix(in srgb, var(--mint) 85%, var(--teal)); color: var(--navy); }
.btn-danger { background: #fff; border-color: #EDB8B1; color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: #E39C92; color: var(--red); }
.btn-danger-solid { background: var(--red); border-color: #921C13; color: #fff; }
.btn-danger-solid:hover { background: #921C13; color: #fff; }
.btn-ghost { background: none; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; min-height: 32px; border-radius: 7px; }
.btn-lg { padding: 11px 20px; font-size: 15px; min-height: 46px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { background: none; border: 0; color: var(--teal); padding: 0; font: inherit; cursor: pointer; font-weight: 600; }
.linkish:hover { color: var(--teal-d); }
form.inline { display: inline; }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; font-size: 13.5px; animation: rise .25s var(--ease); }
.alert .icon { width: 18px; height: 18px; margin-top: 1px; }
.alert .x { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.alert .x:hover { opacity: 1; }
.alert-success { background: var(--green-bg); border-color: #B5E3CF; color: #05553D; }
.alert-error { background: var(--red-bg); border-color: #F3C4BD; color: #8A1C12; }
.alert-info { background: var(--blue-bg); border-color: #C6DAF2; color: #173F75; }
.alert-warn { background: var(--amber-bg); border-color: #F1D7A2; color: #6F4205; }
.alert.leaving { opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }

/* ---------- tabs / filters ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; padding: 10px 14px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: color var(--dur); }
.tabs a::after, .tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--teal); transform: scaleX(0); transition: transform .2s var(--ease); }
.tabs a:hover, .tabs button:hover { color: var(--navy); text-decoration: none; }
.tabs a.on, .tabs button.on { color: var(--teal); }
.tabs a.on::after, .tabs button.on::after { transform: scaleX(1); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: rise .22s var(--ease); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters > a { padding: 6px 12px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 600; transition: background var(--dur), border-color var(--dur), color var(--dur); text-transform: capitalize; }
.filters > a:hover { text-decoration: none; border-color: var(--line-2); color: var(--navy); }
.filters > a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters > a .n { opacity: .7; font-weight: 500; margin-left: 3px; font-variant-numeric: tabular-nums; }
.filters input[type=text], .filters input[type=search] { width: 260px; min-height: 36px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.toolbar .field { margin: 0; flex: 1 1 160px; max-width: 260px; min-width: 150px; }
.toolbar .field:has(input[type=search]) { max-width: none; flex: 2 1 240px; }
.toolbar label { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.sub-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------- modal / confirm dialog ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(16,29,50,.42); z-index: 300; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .18s; }
.modal-back.on { opacity: 1; }
.modal { width: 100%; max-width: 440px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 22px; transform: translateY(10px) scale(.98); transition: transform .22s var(--ease); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-back.on .modal { transform: none; }
.modal h3 { margin-bottom: 6px; font-size: 16.5px; }
.modal p { color: var(--ink-2); }
.modal .modal-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-bg); color: var(--amber); margin-bottom: 12px; }
.modal.danger .modal-ic { background: var(--red-bg); color: var(--red); }
.modal .form-actions { margin-top: 16px; }

/* ---------- rules / timeline / progress ---------- */
.rule { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.rule:last-child { border-bottom: 0; }
.rule .dot { width: 18px; height: 18px; border-radius: 50%; margin-top: 2px; display: grid; place-items: center; font-size: 10px; color: #fff; font-weight: 700; }
.dot.pass { background: #12A577; } .dot.fail { background: #E5484D; } .dot.refer { background: #E39A18; } .dot.skip { background: #9CA9B9; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.timeline li:last-child { border-left-color: transparent; }
.timeline .tl-data { margin-top: 6px; max-width: 640px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--teal); border-radius: 99px; transform-origin: left; animation: grow .7s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; counter-reset: step; }
.steps .s { flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.steps .s::before { counter-increment: step; content: counter(step); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-3); color: var(--ink-2); flex: 0 0 auto; }
.steps .s.done { color: var(--navy); }
.steps .s.done::before { content: "✓"; background: var(--teal); color: #fff; }
.steps .s.cur { border-color: var(--teal); color: var(--navy); box-shadow: inset 0 0 0 1px var(--teal); }
.steps .s.cur::before { background: var(--teal); color: #fff; }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--ink-3); font-size: 11px; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .bar-rect, .chart .slice { transition: opacity var(--dur); }
.chart .bar-rect:hover, .chart .slice:hover { opacity: .8; }
.chart .pt { opacity: 0; transition: opacity .15s; }
.chart g.series:hover .pt { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut-wrap .chart { width: 160px; flex: 0 0 auto; }
.donut-wrap .legend { flex-direction: column; flex: 1; gap: 8px; margin: 0; min-width: 160px; }
.donut-wrap .legend div { display: flex; justify-content: space-between; gap: 10px; }

/* ---------- sign-in pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; background: var(--cloud); }
.auth-art { background: var(--navy); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.auth-art > * { position: relative; }
.auth-art .logo-chip { display: inline-flex; align-items: center; gap: 12px; background: #fff; padding: 10px 14px; border-radius: 10px; }
.auth-art .logo-chip img { height: 34px; display: block; }
.auth-art .logo-chip .t-name { font-weight: 750; color: var(--navy); font-size: 17px; }
.auth-art h2 { color: #fff; font-size: 30px; max-width: 440px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.auth-art p { color: #B7C5D5; max-width: 420px; font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; max-width: 420px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: #D3DDE8; font-size: 14px; }
.auth-points .ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--mint); display: grid; place-items: center; flex: 0 0 auto; }
.auth-foot { color: #7F92A9; font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.auth-foot a { color: #B7C5D5; }
.auth-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 410px; animation: rise .35s var(--ease); }
.auth-card .panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 30px; }
.auth-head { margin-bottom: 22px; }
.auth-head h1 { margin-bottom: 4px; font-size: 22px; }
.auth-head p { color: var(--ink-3); margin: 0; }
.auth-links { margin-top: 16px; font-size: 13px; }
.auth-help { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.auth-mobile-brand { display: none; margin-bottom: 18px; }
.auth-mobile-brand img { height: 34px; }
input.otp { font-size: 22px; letter-spacing: .5em; text-align: center; font-family: var(--mono); }
.mark { width: 34px; height: 34px; border-radius: 8px; background: var(--teal); color: var(--brand-ink); display: grid; place-items: center; font-weight: 750; }

/* ---------- error pages ---------- */
.err-wrap { min-height: 100vh; display: flex; flex-direction: column; background: var(--cloud); }
.err-top { padding: 18px 24px; }
.err-top img { height: 32px; }
.err-top .t-name { font-weight: 750; color: var(--navy); font-size: 17px; }
.err-main { flex: 1; display: grid; place-items: center; padding: 24px 20px 60px; }
.err-card { width: 100%; max-width: 520px; text-align: center; animation: rise .35s var(--ease); }
.err-ic { width: 64px; height: 64px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 18px; }
.err-ic .icon { width: 30px; height: 30px; }
.err-ic.bad { background: var(--red-bg); color: var(--red); }
.err-ic.warn { background: var(--amber-bg); color: var(--amber); }
.err-code { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .08em; margin-bottom: 6px; }
.err-card h1 { font-size: 26px; margin-bottom: 8px; }
.err-card p { color: var(--ink-2); font-size: 15px; max-width: 440px; margin: 0 auto 6px; }
.err-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.err-detail { text-align: left; margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 12.5px; }
.err-detail strong { color: var(--red); display: block; margin-bottom: 4px; word-break: break-word; }
.err-detail ol { margin: 8px 0 0; padding-left: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); word-break: break-all; max-height: 220px; overflow-y: auto; }
.err-foot { text-align: center; color: var(--ink-3); font-size: 12px; padding: 16px; }

/* ---------- public landing ---------- */
.b-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.b-top .in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b-top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--navy); min-width: 0; }
.b-top .brand img { max-height: 36px; max-width: 190px; display: block; }
.b-top .brand:hover { text-decoration: none; color: var(--navy); }
.b-top nav { display: flex; gap: 4px; align-items: center; font-weight: 600; font-size: 13.5px; }
.b-top nav > a:not(.btn) { color: var(--ink-2); padding: 8px 12px; border-radius: 8px; transition: background var(--dur), color var(--dur); display: inline-flex; gap: 7px; align-items: center; }
.b-top nav > a:not(.btn):hover, .b-top nav > a.on { background: var(--surface-2); color: var(--navy); text-decoration: none; }
.b-top nav > a.on { color: var(--teal); }
.b-main { max-width: 1160px; margin: 0 auto; padding: 28px 20px 64px; width: 100%; }
.hero { background: var(--navy); color: #fff; padding: 76px 0 84px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; }
.hero .in { max-width: 1160px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.hero h1 { font-size: 44px; color: #fff; max-width: 680px; letter-spacing: -.03em; font-weight: 750; line-height: 1.1; }
.hero p { font-size: 17px; color: #C1CEDC; max-width: 580px; }
.hero .kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mint); font-weight: 600; margin-bottom: 14px; }
.hero .btn-mint { border-color: var(--mint); }
.hero .btn-outline { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; }
.l-sec { padding: 56px 0 8px; }
.l-sec > h2 { font-size: 24px; letter-spacing: -.02em; }
.l-sec > p.lead { color: var(--ink-3); max-width: 620px; margin-bottom: 22px; font-size: 15px; }
.landing-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-feats .f { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: border-color var(--dur), box-shadow var(--dur); }
.landing-feats .f:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.landing-feats .f .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 12px; }
.landing-feats .f h3 { margin-bottom: 4px; }
.landing-feats .f p { color: var(--ink-3); margin: 0; font-size: 13.5px; }
.l-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.l-strip > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.l-strip > div:last-child { border-right: 0; }
.l-strip b { display: block; font-size: 15px; color: var(--navy); }
.l-strip span { color: var(--ink-3); font-size: 13px; }
.cta-band { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-foot { border-top: 1px solid var(--line); background: #fff; }
.site-foot .in { max-width: 1160px; margin: 0 auto; padding: 22px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 12.5px; }
.site-foot a { color: var(--ink-2); }
.site-foot .links { display: flex; gap: 16px; flex-wrap: wrap; }
.product-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; box-shadow: var(--shadow); transition: transform .18s var(--ease), box-shadow .18s; display: block; color: inherit; }
a.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: inherit; }
.product-card .big { font-size: 20px; font-weight: 700; color: var(--navy); }

/* ---------- customer portal ---------- */
.cp-hero { background: var(--navy); color: #fff; }
.cp-hero .in { max-width: 1160px; margin: 0 auto; padding: 28px 20px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cp-hero .hello { display: flex; align-items: center; gap: 16px; }
.cp-hero h1 { color: #fff; margin: 0; font-size: 24px; }
.cp-hero p { color: #B7C5D5; margin: 2px 0 0; }
.cp-hero .avatar { width: 56px; height: 56px; font-size: 18px; background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.2); }
.cp-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: -1px; }
.cp-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.cp-tile .l { font-size: 12.5px; color: var(--ink-3); font-weight: 550; display: flex; align-items: center; gap: 8px; }
.cp-tile .l .icon { color: var(--teal); width: 17px; height: 17px; }
.cp-tile .v { font-size: 24px; font-weight: 700; color: var(--navy); margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cp-tile .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cp-tile.accent { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 22%, white); }
.loan-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; transition: box-shadow var(--dur), border-color var(--dur); }
.loan-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.loan-card .lc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }
.loan-card .lc-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.loan-card .lc-title strong { display: block; color: var(--navy); font-size: 15px; }
.loan-card .lc-title small { display: block; }
.loan-card .lc-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.loan-card .lc-body .k { font-size: 12px; color: var(--ink-3); }
.loan-card .lc-body .v { font-size: 17px; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; }
.loan-card .lc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: var(--surface-2); border-top: 1px solid var(--line); flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.quick { display: grid; gap: 8px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; transition: border-color var(--dur), background var(--dur); }
.quick a:hover { border-color: var(--teal); background: var(--teal-soft); text-decoration: none; color: var(--ink); }
.quick a .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: 0 0 auto; }
.quick a strong { display: block; font-size: 13.5px; color: var(--navy); }
.quick a small { display: block; font-size: 12px; }
.msg-list .m { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.msg-list .m:last-child { border-bottom: 0; }
.msg-list .m .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; flex: 0 0 auto; }
.msg-list .m strong { display: block; color: var(--navy); font-size: 13.5px; font-weight: 600; }
details.msg { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; overflow: hidden; }
details.msg summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
details.msg summary::-webkit-details-marker { display: none; }
details.msg summary .when { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
details.msg .body { padding: 0 16px 16px 60px; white-space: pre-wrap; color: var(--ink-2); animation: fade .2s; }
details.msg[open] { box-shadow: var(--shadow-md); }
.photo-up { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.photo-up form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.photo-up input[type=file] { width: auto; max-width: 260px; }

/* apply flow */
.type-dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.type-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; color: inherit; display: block; transition: box-shadow var(--dur), transform var(--dur); }
a.type-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-1px); color: inherit; }
.type-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc, var(--teal)); }
.type-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.type-card .top strong { color: var(--navy); font-size: 14.5px; }
.type-card .big { font-size: 21px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.type-card .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.type-card .mini b { display: block; color: var(--ink); font-size: 13px; }
.type-card.empty-type { opacity: .7; }
.apply-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.apply-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); color: inherit; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; position: relative; }
.apply-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); text-decoration: none; color: inherit; }
.apply-card .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--tc, var(--teal)); }
.apply-card h3 { margin: 0; }
.apply-card .range { font-weight: 650; color: var(--navy); font-size: 15px; }
.apply-card .terms { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.apply-card .terms li { display: flex; gap: 8px; }
.apply-card .terms li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tc, var(--teal)); margin-top: 7px; flex: 0 0 auto; }
.apply-card .go { margin-top: auto; padding-top: 6px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how > div { display: flex; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.how .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.how h3 { margin: 2px 0 4px; font-size: 14px; }
.how p { margin: 0; color: var(--ink-3); font-size: 13px; }
.estimate { background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 20%, white); border-radius: 10px; padding: 14px 16px; color: var(--navy); }
.estimate:empty { display: none; }
.estimate .big { font-size: 22px; font-weight: 700; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.secure-note .icon { color: var(--teal); margin-top: 1px; }

/* ---------- documents: agreement, disclosure, statement, invoice ---------- */
.tila { width: 100%; border-collapse: collapse; margin: 8px 0 16px; table-layout: fixed; }
.tila td { border: 1.5px solid var(--navy); padding: 12px; vertical-align: top; font-size: 12.5px; }
.tila .big { font-size: 20px; font-weight: 750; margin-top: 6px; color: var(--navy); }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden; }
.doc-scroll { max-height: 620px; overflow-y: auto; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 34px 20px; border-bottom: 3px solid var(--navy); flex-wrap: wrap; }
.doc-head .org img { max-height: 42px; max-width: 200px; display: block; margin-bottom: 8px; }
.doc-head .org strong { font-size: 17px; color: var(--navy); display: block; }
.doc-head .org small { display: block; }
.doc-head .meta { text-align: right; font-size: 12.5px; color: var(--ink-2); }
.doc-head .meta .ttl { font-size: 18px; font-weight: 750; color: var(--navy); letter-spacing: -.01em; margin-bottom: 4px; }
.doc-body { padding: 24px 34px 30px; font-family: Georgia, "Times New Roman", serif; font-size: 14.5px; line-height: 1.65; color: #1C2838; }
.doc-body h1, .doc-body h2, .doc-body h3 { font-family: var(--font); }
.doc-body h2 { font-size: 15px; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); text-transform: none; }
.doc-body table { font-family: var(--font); }
.doc-body .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 16px; font-family: var(--font); font-size: 13px; }
.doc-body .parties > div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--surface-2); }
.doc-body .parties span { display: block; font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: 4px; }
.doc-body table.sched { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.doc-body table.sched td, .doc-body table.sched th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: right; }
.doc-body table.sched th { background: var(--surface-2); color: var(--ink-3); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.doc-body table.sched td:first-child, .doc-body table.sched th:first-child { text-align: left; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; font-family: var(--font); font-size: 13px; }
.doc-sign .line { border-bottom: 1px solid var(--ink); height: 42px; display: flex; align-items: flex-end; padding-bottom: 4px; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 22px; color: var(--navy); }
.doc-sign small { display: block; margin-top: 4px; }
.doc-foot { padding: 12px 34px; background: var(--surface-2); border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.agreement { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; max-height: 560px; overflow-y: auto; font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
.agreement table.sched { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: 12.5px; }
.agreement table.sched td, .agreement table.sched th { border: 1px solid var(--line); padding: 4px 6px; text-align: right; }
.sign-box { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 20px; box-shadow: var(--shadow); }
.sign-box .sig-input { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 22px; color: var(--navy); min-height: 52px; }
.invoice { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; max-width: 820px; box-shadow: var(--shadow); }
.invoice .inv-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.invoice .inv-head img { max-height: 44px; }
.invoice .total { font-size: 24px; font-weight: 750; color: var(--navy); }

/* ---------- misc ---------- */
.qr { width: 184px; height: 184px; background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.secret { font-family: var(--mono); font-size: 14px; letter-spacing: .1em; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; word-break: break-all; }
details > summary { cursor: pointer; font-weight: 600; transition: color var(--dur); }
details > summary:hover { color: var(--teal); }
details[open] > :not(summary) { animation: rise .2s var(--ease); }
pre.code { background: var(--navy); color: #DCE6F1; padding: 14px; border-radius: 8px; font-size: 12px; overflow-x: auto; margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.swatch .chip { height: 56px; transition: background .2s; }
.swatch .meta { padding: 10px 12px; }
.swatch .meta strong { display: block; font-size: 12.5px; color: var(--navy); }
.swatch input[type=color] { width: 100%; height: 32px; border: 1px solid var(--line-2); border-radius: 7px; padding: 2px; background: #fff; cursor: pointer; margin-top: 6px; }
.logo-preview { display: flex; align-items: center; justify-content: center; height: 92px; border: 1px dashed var(--line-2); border-radius: 10px; background: repeating-conic-gradient(#f3f6f8 0% 25%, #fff 0% 50%) 50% / 16px 16px; margin-bottom: 10px; }
.logo-preview img { max-height: 68px; max-width: 90%; }
.logo-preview.sq img { max-height: 48px; }
.kpi-row { display: flex; gap: 18px; flex-wrap: wrap; }
.kpi-row > div { min-width: 120px; }
.kpi-row .v { font-size: 20px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi-row .l { font-size: 12px; color: var(--ink-3); }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.drawer { display: none; }
tr.open + tr.drawer { display: table-row; }
tr.open + tr.drawer > td > * { animation: rise .2s var(--ease); }
tr.drawer td { background: var(--surface-2) !important; }
tr.clickable { cursor: pointer; }
tr.clickable td:first-child { position: relative; }
.cap-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: 0 0 auto; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.int-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-width: 0; }
.int-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 0; }
.int-card .top > div:first-child { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.int-card .top strong { display: block; color: var(--navy); line-height: 1.3; overflow-wrap: anywhere; }
.int-card .logo { width: 36px; height: 36px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 750; flex: 0 0 auto; }
.int-card p { font-size: 12.5px; color: var(--ink-2); margin: 0; flex: 1; }
.int-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.int-card .foot .switch { margin: 0; }
.own { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.own.tenant { background: var(--amber-bg); color: var(--amber); }
.own.platform { background: var(--teal-soft); color: var(--teal); }
.own.sandbox { background: var(--gray-bg); color: var(--gray); }
.legend-own { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.health { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.health .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.health.ok .ic { background: var(--green-bg); color: var(--green); }
.health.warn .ic { background: var(--amber-bg); color: var(--amber); }
.health.bad .ic { background: var(--red-bg); color: var(--red); }
.health strong { display: block; color: var(--navy); font-size: 13.5px; }
.health span { font-size: 12px; color: var(--ink-3); }
.hash { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.method-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--navy); color: #fff; }
.method-card .icon { width: 26px; height: 26px; }
.method-card small { color: #A9B7C9; display: block; }
.nid { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.nid .v { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.danger-zone { border: 1px solid #F1C2BB; border-radius: var(--radius); background: #fff; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.danger-zone h3 { color: var(--red); margin-bottom: 2px; }
.danger-zone p { margin: 0; color: var(--ink-3); font-size: 13px; max-width: 620px; }
.ghost-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.url-box { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-family: var(--mono); font-size: 12.5px; min-width: 0; }
.url-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .g-side-r { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loan-card .lc-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-strip > div:nth-child(2) { border-right: 0; }
  .l-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .shell, html.side-collapsed .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: var(--side-w); transform: translateX(-100%); transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
  html.side-mobile-open .side { transform: none; }
  html.side-mobile-open body::after { content: ""; position: fixed; inset: 0; background: rgba(16,29,50,.45); z-index: 25; animation: fade .2s; }
  html.side-collapsed .side-brand .names, html.side-collapsed .side nav a .label, html.side-collapsed .side nav .sec span, html.side-collapsed .side-foot > * { opacity: 1; pointer-events: auto; }
  html.side-collapsed .side nav a { justify-content: flex-start; padding: 8px 12px; }
  html.side-collapsed .side nav a .label { position: static; width: auto; }
  html.side-collapsed .side nav a .count { position: static; width: auto; height: auto; font-size: 11px; padding: 0 6px; border-radius: 6px; background: rgba(200,243,231,.14); }
  html.side-collapsed .side nav .sec { height: auto; padding: 16px 12px 6px; margin: 0; border: 0; }
  html:not(.side-mobile-open) .burger .bars span:nth-child(1) { top: 0; transform: none; }
  html:not(.side-mobile-open) .burger .bars span:nth-child(2) { opacity: 1; transform: none; }
  html:not(.side-mobile-open) .burger .bars span:nth-child(3) { top: 12px; transform: none; }
  html.side-mobile-open .burger .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  html.side-mobile-open .burger .bars span:nth-child(2) { opacity: 0; }
  html.side-mobile-open .burger .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .content { padding: 18px 16px 48px; }
  .app-foot { padding: 14px 16px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .chip, .menu .who { display: none; }
  .g2, .g3, .g4, .form-grid, .form-grid.three, .form-grid.four, .cp-sum, .how, .landing-feats, .doc-body .parties, .doc-sign { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 30px; }
  .tila td { display: block; width: 100%; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-mobile-brand { display: block; }
  .b-top .in { height: 60px; padding: 0 14px; }
  .b-top nav .hide-sm { display: none; }
  .page-head .actions { width: 100%; }
  table.t td, table.t th { padding: 9px 11px; }
  .filters input[type=text], .filters input[type=search] { width: 100%; }
  .toolbar .field { max-width: none; }
  .doc-head, .doc-body { padding-left: 18px; padding-right: 18px; }
  .doc-head .meta { text-align: left; }
  .loan-card .lc-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-strip { grid-template-columns: 1fr; }
  .l-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .invoice { padding: 20px; }
  dl.kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
  details.msg .body { padding-left: 16px; }
}
@media print {
  .side, .topbar, .b-top, .no-print, .btn, .app-foot, .site-foot { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card, .doc { box-shadow: none; }
  .doc-scroll { max-height: none; overflow: visible; }
  .content > *, .b-main > * { animation: none; }
}
.int-card .top small { display: block; color: var(--ink-3); font-size: 12px; }
.site-foot .links a { display: inline-flex; gap: 6px; align-items: center; }
body { overflow-x: clip; }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.trunc { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .b-top nav > a.hide-sm { display: none; } .b-top .brand img { max-width: 150px; } .cp-hero .in { padding: 22px 16px; } .cp-hero h1 { font-size: 20px; } }

/* ---------- floating layers: dropdowns & calendars are moved to <body> while open so no card can cover or clip them ---------- */
.sel-panel.floating, .dp-pop.floating { position: fixed; z-index: 1000; margin: 0; }
.sel-panel.floating.on, .dp-pop.floating.on { opacity: 1; visibility: visible; transform: none; transition: opacity .14s, transform .16s var(--ease), visibility 0s; }
.sel-panel.floating { max-height: min(296px, 50vh); }

/* ---------- toolbars & range picker: everything flows from the left ---------- */
.toolbar { justify-content: flex-start; align-items: flex-end; }
.toolbar > .btn, .toolbar > .row { flex: 0 0 auto; }
.range-picker .presets { flex: 1 1 100%; margin: 2px 0 0; justify-content: flex-start; }
.toolbar .sel.inline-sel, .toolbar .sel { width: 100%; min-width: 0; }
.filters + .toolbar, .toolbar + .card, .filters + .card { margin-top: 0; }
.grid + .filters, .card + .filters, .grid + .toolbar { margin-top: 18px; }

/* ---------- page transition: top progress bar + skeleton while the next page loads ---------- */
.nprogress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--teal); z-index: 2000; box-shadow: 0 0 8px color-mix(in srgb, var(--teal) 60%, transparent); transition: width .4s var(--ease), opacity .3s; opacity: 0; }
.nprogress.on { opacity: 1; }
@keyframes shimmer { 0% { background-position: -460px 0; } 100% { background-position: 460px 0; } }
.sk { background: linear-gradient(90deg, var(--surface-3) 0, #F7F9FB 50%, var(--surface-3) 100%); background-size: 920px 100%; animation: shimmer 1.3s linear infinite; border-radius: 7px; }
.skeleton { animation: fade .2s; }
.skeleton .sk-h1 { height: 26px; width: 260px; margin-bottom: 10px; }
.skeleton .sk-p { height: 13px; width: 420px; max-width: 80%; margin-bottom: 26px; }
.skeleton .sk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.skeleton .sk-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.skeleton .sk-stat .a { height: 12px; width: 50%; margin-bottom: 14px; }
.skeleton .sk-stat .b { height: 24px; width: 70%; margin-bottom: 10px; }
.skeleton .sk-stat .c { height: 10px; width: 40%; }
.skeleton .sk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.skeleton .sk-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.skeleton .sk-row:last-child { border-bottom: 0; }
.skeleton .sk-row > div { height: 12px; }
html.is-leaving .content > :not(.skeleton), html.is-leaving .b-main > :not(.skeleton) { display: none; }
html.is-leaving .cp-hero, html.is-leaving .hero { opacity: .5; transition: opacity .2s; }
@media (max-width: 900px) { .skeleton .sk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .skeleton .sk-row { grid-template-columns: 2fr 1fr; } .skeleton .sk-row > div:nth-child(n+3) { display: none; } }

/* ---------- responsive refinements ---------- */
@media (max-width: 1280px) { .content { padding: 24px 24px 48px; } }
@media (max-width: 900px) {
  .toolbar { padding: 12px; gap: 10px; }
  .toolbar .field { flex: 1 1 100%; max-width: none; }
  .toolbar > .btn, .toolbar > .row { flex: 1 1 auto; }
  .page-head h1 { font-size: 20px; }
  .tabs a, .tabs button { padding: 10px 11px; }
  .int-grid, .type-cards, .apply-cards { grid-template-columns: minmax(0, 1fr); }
  .modal { padding: 18px; }
  .menu-panel { width: min(264px, calc(100vw - 24px)); }
}
@media (max-width: 560px) {
  .g4, .skeleton .sk-stats { grid-template-columns: minmax(0, 1fr); }
  .stat .value { font-size: 22px; }
  .cp-tile .v { font-size: 21px; }
  .loan-card .lc-body { grid-template-columns: minmax(0, 1fr); }
  .page-head .actions .btn, .page-head > .btn, .page-head > a.btn { flex: 1 1 auto; }
  .filters > a { padding: 5px 10px; }
  .err-card h1 { font-size: 22px; }
}
@media (min-width: 1700px) { .content { max-width: 1600px; } }
td.actions form.inline, td.actions > .btn { display: inline-flex; vertical-align: middle; } td.actions { display: table-cell; } td.actions > * + * { margin-left: 6px; }
.type-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.apply-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.int-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
input[type=color] { width: 100%; height: 40px; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 5px; }
input[type=color]::-moz-color-swatch { border: 0; border-radius: 5px; }
.alert > div, .alert > span { min-width: 0; flex: 1; overflow-wrap: anywhere; } .alert .x { flex: 0 0 auto; }
@media (min-width: 561px) and (max-width: 900px) { .toolbar .field { flex: 1 1 calc(50% - 10px); } }
table.t td { white-space: nowrap; } table.t td:has(details), table.t td:has(.dv), table.t td:has(.evidence), table.t td.wrap, .drawer td { white-space: normal; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; line-height: 1.45; }
/* sidebar colour runs the full page height (also in full-page captures and print) */
.shell { background: linear-gradient(to right, var(--navy) var(--side-w), var(--bg) var(--side-w)); }
html.side-collapsed .shell { background: linear-gradient(to right, var(--navy) var(--side-w-min), var(--bg) var(--side-w-min)); }
@media (max-width: 900px) { .shell, html.side-collapsed .shell { background: var(--bg); } }

/* integrations */
.page-head a.back { display: inline-block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.page-head a.back:hover { color: var(--teal); }
.int-card.off { opacity: .62; }
.int-card .top strong a { color: inherit; }
.int-card .top small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.int-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-3); }
.int-stats b { color: var(--navy); font-weight: 700; }
.int-stats .ok b { color: var(--green); }
.int-stats .bad b { color: var(--red); }
.badge-teal { background: var(--teal-soft); color: var(--teal); }
.neg { color: var(--red); }
.cfg-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.cfg-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.prov-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.prov-meta .chip { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--gray-bg); color: var(--ink-2); }
.webhook-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12px; margin-bottom: 12px; overflow-wrap: anywhere; }
.webhook-box code { font-size: 11.5px; }

/* subscription plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.plan-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.plan-opt:hover { border-color: var(--teal); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.plan-opt strong { color: var(--navy); font-size: 15px; }
.plan-opt .price { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.plan-opt .price small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.plan-opt small { font-size: 12px; color: var(--ink-3); }
.plan-opt .badge { position: absolute; top: 12px; right: 12px; }

/* ---------- marketing home ---------- */
body.home { background: #fff; }
.home .in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.h-top { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.h-top .in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.h-top .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.h-top .brand:hover { text-decoration: none; color: #fff; }
.h-top .brand img { height: 34px; width: 34px; object-fit: contain; display: block; background: #fff; border-radius: 9px; padding: 3px; }
.h-top nav { display: flex; align-items: center; gap: 6px; }
.h-top nav > a:not(.btn) { color: #C1CEDC; font-size: 14px; font-weight: 550; padding: 8px 12px; border-radius: 8px; }
.h-top nav > a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.h-hero { background: var(--navy); color: #fff; padding: 72px 0 0; position: relative; overflow: hidden; }
.h-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; }
.h-hero .in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.h-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.h-copy .kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mint); font-weight: 600; padding: 6px 12px; border: 1px solid rgba(200,243,231,.25); border-radius: 99px; margin-bottom: 18px; }
.h-copy h1 { color: #fff; font-size: 52px; line-height: 1.06; letter-spacing: -.035em; font-weight: 780; margin: 0 0 18px; }
.h-copy h1 span { color: var(--mint); }
.h-copy p { color: #C1CEDC; font-size: 18px; line-height: 1.6; margin: 0 auto; max-width: 640px; }
.h-cta { justify-content: center; margin-top: 28px; gap: 12px; }
.h-hero .btn-outline { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.h-hero .btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; }
.h-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: #A9B7C9; }
.h-points li { display: inline-flex; align-items: center; gap: 6px; }
.h-points .icon { color: var(--mint); }
.h-visual { position: relative; margin: 0 auto; width: 100%; max-width: 1080px; padding-bottom: 0; }
.frame { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(16,29,50,.35), 0 2px 6px rgba(16,29,50,.08); }
.frame .fbar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F3F6F9; border-bottom: 1px solid var(--line); }
.frame .fbar i { width: 9px; height: 9px; border-radius: 50%; background: #D5DDE6; }
.frame .fbar span { margin-left: 10px; font-size: 11.5px; color: var(--ink-3); font-weight: 550; }
.frame img { display: block; width: 100%; height: auto; }
.h-visual > .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.phone { margin: 0; width: 210px; border-radius: 30px; padding: 8px; background: #0B1424; box-shadow: 0 30px 60px -18px rgba(16,29,50,.55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
.h-visual .phone { position: absolute; right: -28px; bottom: 28px; width: 190px; }
.h-strip { border-bottom: 1px solid var(--line); background: #fff; }
.h-strip .in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h-strip .in > div { padding: 26px 18px; border-left: 1px solid var(--line); }
.h-strip .in > div:first-child { border-left: 0; }
.h-strip b { display: block; font-size: 22px; color: var(--navy); letter-spacing: -.02em; }
.h-strip span { font-size: 13px; color: var(--ink-3); }
.h-sec { padding: 88px 0; }
.h-sec > * { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.h-alt { background: var(--cloud); }
.h-head { text-align: center; margin-bottom: 40px; }
.h-head h2, .h-show h2, .h-split h2 { font-size: 36px; letter-spacing: -.03em; line-height: 1.12; color: var(--navy); margin: 6px 0 10px; font-weight: 760; }
.h-head p { color: var(--ink-3); font-size: 16.5px; margin: 0 auto; max-width: 620px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.h-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.h-tabs button { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.h-tabs button:hover { border-color: var(--teal); color: var(--teal); }
.h-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.h-panel { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.h-panel.on { display: grid; animation: hFade .35s var(--ease, ease); }
@keyframes hFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.h-panel h3 { font-size: 24px; color: var(--navy); letter-spacing: -.02em; margin: 0 0 10px; }
.h-panel p, .h-show p, .h-split > div > p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.h-panel ul, .h-show ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.h-panel li, .h-show li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.h-panel li .icon, .h-show li .icon { flex: 0 0 auto; color: var(--teal); margin-top: 2px; }
.h-steps { list-style: none; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.h-steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 14px; position: relative; }
.h-steps .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 12px; }
.h-steps small { display: block; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.h-steps b { display: block; font-size: 16px; color: var(--navy); margin: 2px 0 6px; }
.h-steps p { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.5; }
.h-show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.h-show + .h-show { margin-top: 96px; }
.h-show.rev > .txt { order: 2; }
.h-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.h-feats .f { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.h-feats .f:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(16,29,50,.3); }
.h-feats .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: var(--mint); display: grid; place-items: center; margin-bottom: 14px; }
.h-feats h3 { font-size: 16.5px; color: var(--navy); margin: 0 0 6px; }
.h-feats p { color: var(--ink-3); font-size: 14px; line-height: 1.6; margin: 0; }
.h-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.h-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 16px; }
.h-logos > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.h-logos b { display: block; color: var(--navy); font-size: 16px; }
.h-logos span { font-size: 12.5px; color: var(--ink-3); }
.h-sec-card { background: var(--navy); color: #fff; border-radius: 16px; padding: 28px; }
.h-sec-card h3 { color: #fff; display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 18px; }
.h-sec-card h3 .icon { color: var(--mint); }
.h-sec-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.h-sec-card li { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.h-sec-card li:first-child { border-top: 0; padding-top: 0; }
.h-sec-card b { display: block; color: var(--mint); font-size: 14px; }
.h-sec-card span { font-size: 13.5px; color: #C1CEDC; }
.h-phones { display: flex; gap: 22px; justify-content: center; }
.h-phones .phone:nth-child(2) { margin-top: 48px; }
.h-faq { max-width: 820px !important; display: grid; gap: 10px; }
.h-faq details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: #fff; }
.h-faq summary { font-weight: 650; color: var(--navy); cursor: pointer; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; color: var(--teal); font-size: 20px; line-height: 1; }
.h-faq details[open] summary::after { content: "–"; }
.h-faq p { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.h-final { background: var(--navy); color: #fff; padding: 64px 0; }
.h-final .in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.h-final h2 { color: #fff; font-size: 30px; letter-spacing: -.02em; margin: 0 0 6px; }
.h-final p { color: #C1CEDC; margin: 0; }
.h-final .btn-outline { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
@media (max-width: 1100px) {
  .h-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .h-visual .phone { right: 8px; width: 150px; }
}
@media (max-width: 860px) {
  .h-copy h1 { font-size: 36px; }
  .h-panel, .h-show, .h-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .h-show.rev > .txt { order: 0; }
  .h-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-strip .in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-strip .in > div:nth-child(3) { border-left: 0; }
  .h-strip .in > div { border-top: 1px solid var(--line); }
  .h-sec { padding: 60px 0; }
  .h-head h2, .h-show h2, .h-split h2 { font-size: 28px; }
}
@media (max-width: 560px) {
  .home .in, .h-sec > * { padding-left: 16px; padding-right: 16px; }
  .h-copy h1 { font-size: 31px; }
  .h-copy p { font-size: 16px; }
  .h-feats { grid-template-columns: minmax(0, 1fr); }
  .h-steps, .h-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-visual .phone { display: none; }
  .h-phones .phone { width: 46%; }
  .h-top nav > a:not(.btn) { display: none; }
  .hide-xs { display: none !important; }
  .h-final h2 { font-size: 24px; }
}
