/* Northgate Bank × Harbourline — Manager Portal prototype (snyx showcase; reconstructed from client work, synthetic data).
   Desktop first, responsive to phone. Tokens mirror the Figma export. */

:root {
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --navy: #0f2b6e;          /* bank navy: primary actions, links */
  --navy-hover: #0b2f85;
  --navy-soft: #e8edf7;
    --slate: #2f3a4b;         /* sidebar active, avatar */
  --heading: #3a4b5c;       /* card titles */
  --text: #1f2733;
  --muted: #6b7280;
  --faint: #9aa3ad;
  --line: #e2e6eb;
  --line-soft: #eef0f3;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --content: #f7f8fa;
  --hover: #f3f5f8;
  --ok-text: #177a3a;  --ok-bg: #e9f8ee;  --ok-line: #9bdcb3;
  --warn-text: #8a6100; --warn-bg: #fff6d9; --warn-line: #f1d27c;
  --bad-text: #b42318; --bad-bg: #fdeceb; --bad-line: #f3a9a4;
  --danger: #d92d20;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-pop: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  --sidebar-w: 232px;
  --topbar-h: 92px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 15px/1.45 var(--font); color: var(--text); background: var(--bg); min-height: 100vh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: default; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; cursor: pointer; }
a.link, .link { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.strong { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ========================================================= brand marks */
.bank-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--navy); }
.bank-logo svg { width: 104px; height: 46px; }
.bank-logo .word { font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.bank-logo.lg svg { width: 150px; height: 66px; }
.bank-logo.lg .word { font-size: 17px; }
.platform-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: -.01em; color: #111; }
.platform-logo svg { width: 1em; height: 1em; }
.platform-logo.lg { font-size: 34px; }
.platform-logo.lg svg { width: .95em; height: .95em; }
.powered { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--heading); }
.powered .platform-logo { font-size: 15px; }

/* ========================================================= app shell */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; background: linear-gradient(to right, var(--panel) var(--sidebar-w), var(--content) var(--sidebar-w)); }
.sidebar { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 10px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; z-index: 30; }
.sidebar .brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; white-space: nowrap; user-select: none; width: 100%; text-align: left; }
.nav-item .ic { width: 20px; height: 20px; stroke-width: 1.6; color: var(--heading); }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--slate); color: #fff; }
.nav-item.active .ic { color: #fff; }
.nav-item .chev { margin-left: auto; width: 16px; height: 16px; transition: transform .15s; }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-item .ext { margin-left: auto; }
.nav-sub { display: none; padding: 2px 0 6px; }
.nav-sub.open { display: block; }
.nav-sub .nav-item { padding-left: 46px; font-size: 14.5px; }
.nav-group { display: grid; gap: 2px; }
.nav-spacer { height: 10px; }
.sidebar-close { display: none; }
.backdrop { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; background: var(--panel); }
.topbar { height: var(--topbar-h); display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; background: var(--panel); z-index: 20; }
.topbar h1 { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar h1 .crumb { font-weight: 400; color: var(--heading); }
.topbar h1 .crumb::after { content: " / "; color: var(--faint); }
.topbar .grow { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; width: 360px; max-width: 40vw; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; background: var(--panel); color: var(--faint); }
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; color: var(--text); }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--heading); position: relative; flex: none; }
.iconbtn:hover { background: var(--hover); }
.iconbtn.is-open { background: var(--hover); }
.iconbtn .dot { position: absolute; top: -6px; left: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.iconbtn.is-open .ic { color: var(--danger); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--slate); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.is-open { background: #8a94a3; }
.menubtn { display: none; }

.content { flex: 1; background: var(--content); border-top-left-radius: 28px; padding: 28px 32px 48px; }
.container { max-width: 1090px; margin: 0 auto; }
.container.wide { max-width: 1320px; }

/* ========================================================= topbar popovers */
.pop { position: absolute; top: calc(100% + 10px); right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-pop); z-index: 40; }
.pop::before { content: ""; position: absolute; top: -7px; right: 14px; width: 12px; height: 12px; background: var(--panel); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.pop-wrap { position: relative; }
.pop.notif { width: 560px; max-width: calc(100vw - 32px); padding: 18px 22px 10px; }
.pop.notif .head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pop.notif .head h3 { font-size: 18px; color: var(--heading); font-weight: 700; }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.notif-row p { flex: 1; min-width: 0; }
.notif-row .x { color: var(--danger); }
.notif-empty { padding: 18px 0 12px; color: var(--muted); }
.pop.user { width: 150px; padding: 8px; }
.pop.user button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 700; color: var(--heading); }
.pop.user button:hover, .pop.user button.is-hot { background: var(--line-soft); }

/* ========================================================= buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--navy); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); }
.btn .ic { width: 17px; height: 17px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-hover); }
.btn.primary:disabled { background: #c4cad6; border-color: #c4cad6; color: #fff; }
.btn.outline { border-color: var(--navy); }
.btn.ghost { border-color: transparent; }
.btn.block { width: 100%; }
.btn.lg { height: 46px; font-size: 15px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.soft { color: var(--heading); }
.btn.square { width: 40px; padding: 0; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; font-size: 14px; }
.btn-link .ic { width: 18px; height: 18px; }
.btn-link.u { text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }

/* ========================================================= cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px 0; }
.card .card-body { padding: 22px 26px; }
.card .card-foot { display: flex; align-items: center; gap: 16px; padding: 14px 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card h2 { font-size: 19px; font-weight: 700; color: var(--heading); }
.card h3 { font-size: 17px; font-weight: 700; color: var(--heading); }
.card .rule { border-bottom: 1px solid var(--line); margin: 14px 0 0; }
.stack { display: grid; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row .grow { flex: 1; }
.ml-auto { margin-left: auto; }

/* ========================================================= badges / status */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 12.5px; font-weight: 400; border: 1px solid; white-space: nowrap; }
.badge .ic { width: 14px; height: 14px; stroke-width: 2; }
.badge.ok { color: var(--ok-text); background: var(--ok-bg); border-color: var(--ok-line); }
.badge.warn { color: var(--warn-text); background: var(--warn-bg); border-color: var(--warn-line); }
.badge.bad { color: var(--bad-text); background: var(--bad-bg); border-color: var(--bad-line); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 4px; background: var(--navy-soft); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.meta { font-size: 14px; color: var(--heading); }
.meta b { color: var(--text); }

/* tooltip */
.tip { position: relative; }
.tip .tip-box { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); background: #0f1419; color: #fff; border-radius: 6px; padding: 10px 14px 10px 26px; font-size: 13.5px; white-space: nowrap; z-index: 15; box-shadow: var(--shadow-pop); display: none; }
.tip .tip-box::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: #0f1419; }
.tip .tip-box li { list-style: disc; line-height: 1.55; }
.tip:hover .tip-box, .tip:focus-within .tip-box, .tip.is-open .tip-box { display: block; }

/* ========================================================= forms */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--heading); }
.ctrl { display: flex; align-items: center; height: 42px; border: 1px solid #cfd5dd; border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.ctrl:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 43, 110, .12); }
.ctrl input, .ctrl select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0 12px; appearance: none; -webkit-appearance: none; }
.ctrl select { padding-right: 36px; cursor: pointer; }
.ctrl .pre, .ctrl .post { color: var(--heading); font-size: 14px; padding: 0 10px; height: 100%; display: inline-flex; align-items: center; flex: none; }
.ctrl .pre { padding-right: 0; }
.ctrl .post { border-left: 1px solid #cfd5dd; background: var(--panel); min-width: 38px; justify-content: center; }
.ctrl .post.plain { border-left: 0; }
.ctrl .tail { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 100%; color: var(--heading); flex: none; border-left: 1px solid #cfd5dd; }
.ctrl.select { position: relative; }
.ctrl.select .tail { position: absolute; right: 0; top: 0; pointer-events: none; }
.ctrl.select .ic.err { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); margin: 0; pointer-events: none; }
.ctrl.select.is-error select { padding-right: 72px; }
.ctrl .ic.err { color: var(--danger); margin-right: 10px; display: none; }
.ctrl.is-error { border-color: var(--danger); }
.ctrl.is-error .ic.err { display: block; }
.ctrl.is-error .post, .ctrl.is-error .tail { border-left-color: var(--danger); }
.ctrl.sm { height: 40px; }
.ctrl.readonly { background: var(--line-soft); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span4 { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; color: var(--text); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { width: 22px; height: 22px; border: 1.5px solid #9aa3ad; border-radius: 5px; background: var(--panel); display: inline-grid; place-items: center; flex: none; color: #fff; transition: background .12s, border-color .12s; margin-top: -1px; }
.check .box .ic { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
.check input:checked + .box { background: var(--navy); border-color: var(--navy); }
.check input:checked + .box .ic { opacity: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(15, 43, 110, .2); }
.check.lg .box { width: 26px; height: 26px; border-width: 2px; border-color: var(--navy); }
.check.lg .box .ic { width: 16px; height: 16px; }

/* rich text editor (mock) */
.editor { border: 1px solid #cfd5dd; border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
.editor .tools { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fafbfc; flex-wrap: wrap; }
.editor .tools button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; color: #7b8794; }
.editor .tools button:hover { background: var(--line-soft); color: var(--text); }
.editor .tools button .ic { width: 16px; height: 16px; }
.editor .tools button b { font-size: 14px; }
.editor .tools button i { font-size: 14px; font-family: Georgia, serif; }
.editor .tools .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.editor .body { min-height: 160px; padding: 16px 14px; outline: 0; line-height: 1.6; font-size: 14.5px; }
.editor .body p + p { margin-top: 12px; }
.editor.tall .body { min-height: 300px; }

/* ========================================================= toast */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #0f1419; color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 10px; animation: toast-in .18s ease-out; }
.toast .ic { width: 18px; height: 18px; color: #6fd39a; }
.toast.warn .ic { color: #f3c969; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ========================================================= modal */
.modal-bg { position: fixed; inset: 0; background: rgba(26, 33, 48, .55); backdrop-filter: blur(3px); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--panel); border-radius: 10px; width: 100%; max-width: 450px; box-shadow: var(--shadow-pop); padding: 26px 26px 22px; position: relative; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal .close { position: absolute; top: 18px; right: 18px; color: var(--text); }
.modal h3 { font-size: 19px; font-weight: 400; color: var(--text); margin-bottom: 8px; padding-right: 30px; }
.modal p { color: var(--heading); font-size: 14.5px; }
.modal .stack { gap: 16px; margin-top: 22px; }
.modal .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.modal .actions .btn { height: 50px; font-size: 16px; font-weight: 400; }
.or { display: flex; align-items: center; gap: 12px; color: var(--heading); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ========================================================= login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); }
.login .form-side { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.login .form-inner { width: 100%; max-width: 480px; }
.login .photo { background: var(--navy) url("assets/skyline.svg") center / cover no-repeat; position: relative; min-height: 260px; }
.login .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 43, 110, .72), rgba(15, 43, 110, .82)); mix-blend-mode: multiply; }
.login .heads { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.login .heads h1 { font-size: 28px; margin-top: 14px; letter-spacing: -.01em; }
.login .heads .sub { font-size: 16px; color: var(--heading); }
.login .intro { color: var(--heading); font-size: 14.5px; margin-bottom: 22px; }
.sso { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sso .btn { color: var(--text); font-weight: 400; font-size: 14.5px; }
.sso .btn svg { width: 18px; height: 18px; }
.login .or { margin: 18px 0; }
.login .fields { display: grid; gap: 16px; }
.login .foot { text-align: center; margin-top: 36px; font-size: 14px; color: var(--heading); }
.login .set-pw { background: #f7f8fa; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.login .set-pw h3 { font-size: 16px; color: var(--heading); margin-bottom: 14px; }
.login .set-pw .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.login .who { background: #f7f8fa; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 16px; }
.login .who .top { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; font-weight: 700; font-size: 16px; }
.login .who .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14.5px; }
.login .who .grid small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.login .agree { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.login .agree .check { font-size: 13.5px; }
.cookie { position: fixed; left: 24px; bottom: 24px; width: 300px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 20px 20px 18px; font-size: 13.5px; color: var(--heading); z-index: 50; }
.cookie p { margin-bottom: 14px; }

/* ========================================================= dashboard */
.hero { border-radius: 10px; overflow: hidden; position: relative; color: #fff; background: linear-gradient(100deg, #4a3858 0%, #3a3d5a 28%, #2d3f5e 60%, #3a4a5d 100%); padding: 36px 44px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 290px; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='54'%3E%3Cpath d='M40 260 L300 40 L560 260'/%3E%3Cpath d='M140 300 L360 110'/%3E%3C/g%3E%3C/svg%3E") right center / 70% auto no-repeat; pointer-events: none; opacity: .9; }
.hero > * { position: relative; }
.hero h2 { font-size: 32px; font-weight: 400; margin-bottom: 18px; letter-spacing: -.01em; }
.hero p { font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.hero p + p { margin-top: 18px; }
.hero .close { position: absolute; top: 16px; right: 18px; color: #fff; opacity: .85; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.hero .close:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.checklist .top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.checklist .top h3 { font-size: 18px; font-weight: 700; }
.checklist ol { list-style: none; display: grid; gap: 12px; }
.checklist li { background: var(--panel); color: var(--text); border-radius: 8px; padding: 13px 18px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.checklist li .t { flex: 1; }
.checklist li .done { width: 22px; height: 22px; border-radius: 50%; background: var(--ok-text); color: #fff; display: grid; place-items: center; margin-left: auto; flex: none; }
.checklist li .done .ic { width: 13px; height: 13px; stroke-width: 3; }
.checklist li.is-done { color: var(--muted); }
.checklist li.is-done .link { color: var(--muted); }
.hero-art { position: relative; min-height: 230px; }
.activity { position: absolute; left: 0; top: 24px; display: grid; gap: 10px; width: 240px; z-index: 2; }
.activity .act { background: rgba(255, 255, 255, .92); color: var(--text); border-radius: 8px; padding: 12px 16px 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.activity .act:nth-child(2) { opacity: .8; transform: translateX(14px); }
.activity .act:nth-child(3) { opacity: .55; transform: translateX(28px); }
.activity .act .ok { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.activity .act .ok .ic { width: 13px; height: 13px; stroke-width: 3; }
.activity .act b { display: block; font-size: 13.5px; }
.activity .act small { color: var(--muted); font-size: 12px; }
.phone { position: absolute; right: 18px; top: -18px; width: 250px; height: 260px; background: #0b0f17; border-radius: 36px 36px 0 0; padding: 14px 12px 0; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); z-index: 1; }
.phone .screen { background: #fff; border-radius: 24px 24px 0 0; height: 100%; padding: 14px 12px 0; color: var(--text); overflow: hidden; }
.phone .bar { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; padding: 0 6px 8px; }
.phone .sel { border: 1px solid var(--line); border-radius: 5px; font-size: 9.5px; padding: 5px 8px; display: flex; justify-content: space-between; color: var(--heading); }
.phone .segs { display: flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; margin: 8px 0; font-size: 9px; }
.phone .segs span { flex: 1; text-align: center; padding: 5px 0; color: var(--heading); }
.phone .segs span.on { background: #d9dfea; font-weight: 700; }
.phone .range { font-size: 9px; font-weight: 700; margin-bottom: 6px; }
.phone svg { width: 100%; height: 110px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.events .ev { padding: 18px 0; border-bottom: 1px solid var(--line); }
.events .ev:last-child { border-bottom: 0; padding-bottom: 4px; }
.events .ev .month { font-size: 14px; color: var(--heading); margin-bottom: 10px; }
.events .ev a.title { color: var(--navy); font-weight: 700; font-size: 15px; display: block; margin-bottom: 6px; }
.events .ev .when { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; color: var(--text); margin-bottom: 8px; flex-wrap: wrap; }
.events .ev p { font-size: 14px; color: var(--heading); }
.content-list .item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.content-list .item:last-child { border-bottom: 0; }
.content-list .thumb { aspect-ratio: 4 / 3; border-radius: 4px; position: relative; overflow: hidden; background: #c9d3dc; }
.thumb.city { background: linear-gradient(180deg, #b9c6d3 0%, #8fa2b5 55%, #5a6f85 56%, #3f5267 100%); }
.thumb.city::before { content: ""; position: absolute; inset: auto 0 36% 0; height: 44%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90' preserveAspectRatio='none'%3E%3Cg fill='%236c8199'%3E%3Crect x='4' y='30' width='26' height='60'/%3E%3Crect x='36' y='10' width='30' height='80'/%3E%3Crect x='72' y='40' width='20' height='50'/%3E%3Crect x='98' y='4' width='36' height='86'/%3E%3Crect x='140' y='26' width='24' height='64'/%3E%3Crect x='170' y='14' width='44' height='76'/%3E%3C/g%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.thumb.desk { background: linear-gradient(160deg, #e9d7c8 0%, #c7a890 45%, #6e5a4e 100%); }
.thumb.desk::before { content: ""; position: absolute; left: 12%; top: 18%; width: 46%; height: 40%; border-radius: 4px; background: linear-gradient(135deg, #1f2a3a, #3b5272); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.thumb.desk::after { content: ""; position: absolute; right: 10%; bottom: 14%; width: 38%; height: 28%; border-radius: 3px; background: linear-gradient(135deg, #dfe5ec, #b6c1cc); }
.thumb .play { position: absolute; left: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; color: #fff; }
.thumb .play .ic { width: 14px; height: 14px; fill: #fff; stroke: none; }
.content-list h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.content-list p { font-size: 13.5px; color: var(--heading); }
.survey .btn { margin-top: 14px; }

.features { margin-top: 36px; }
.features .eyebrow { font-size: 14px; color: var(--heading); margin-bottom: 10px; }
.features h2 { display: flex; align-items: center; gap: 10px; font-size: 30px; color: var(--heading); margin-bottom: 14px; }
.features h2 .platform-logo { color: var(--heading); font-size: 30px; }
.features h2 span.light { font-weight: 400; }
.features > p { font-size: 17px; color: var(--heading); margin-bottom: 22px; }
.feature-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; min-height: 480px; }
.feature-card .list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 36px; padding: 60px 34px; align-content: center; }
.feature-card .f .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.feature-card .f h4 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.feature-card .f p { font-size: 14.5px; color: var(--heading); }
.feature-card .shot { background: #4a5a6c; position: relative; overflow: hidden; }
.feature-card .laptop { position: absolute; left: 7%; top: 12%; width: 110%; background: #1b212b; border-radius: 14px 14px 0 0; padding: 10px 12px 0; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.feature-card .laptop .screen { background: #fff; border-radius: 6px 6px 0 0; padding: 14px 16px; height: 360px; color: var(--text); }
.mini-kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 16px; font-size: 8px; color: var(--muted); margin: 8px 0 14px; }
.mini-kv b { color: var(--text); font-weight: 700; margin-left: 6px; }
.mini-h { font-size: 10px; font-weight: 700; margin-bottom: 6px; }
.mini-row { display: flex; gap: 6px; align-items: center; font-size: 7px; color: var(--heading); margin-bottom: 8px; }
.mini-row .pill { border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; }
.mini-row .pill.on { background: #d9dfea; font-weight: 700; }
.laptop svg { width: 100%; height: 110px; }
.laptop .base { height: 14px; background: #d3d7dd; border-radius: 0 0 10px 10px; margin: 0 -12px; }

/* ========================================================= onboarding */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); padding: 26px 26px 22px; position: relative; }
.stepper .step { text-align: center; position: relative; }
.stepper .step .dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa3ad; margin: 0 auto 12px; position: relative; z-index: 2; box-sizing: content-box; border: 6px solid var(--panel); }
.stepper .step.is-current .dot { width: 14px; height: 14px; background: var(--navy); box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--navy); border-width: 5px; }
.stepper .step.is-done .dot { width: 24px; height: 24px; background: var(--navy); border-width: 0; display: grid; place-items: center; color: #fff; }
.stepper .step.is-done .dot .ic { width: 13px; height: 13px; stroke-width: 3; }
.stepper .step:not(:last-child)::after { content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 1px; background: #aab3bd; z-index: 1; }
.stepper .step.is-done:not(:last-child)::after { background: var(--navy); }
.stepper .step b { display: block; font-size: 16px; font-weight: 400; color: var(--heading); }
.stepper .step small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.stepper .step.is-current b { color: var(--text); }
.legal { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; height: 330px; overflow-y: auto; font-size: 14px; line-height: 1.65; color: var(--text); scrollbar-width: thin; scrollbar-color: #c0c7d0 transparent; }
.legal p + p { margin-top: 14px; }
.legal::-webkit-scrollbar { width: 8px; }
.legal::-webkit-scrollbar-thumb { background: #c0c7d0; border-radius: 8px; }
.ob-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.ob-actions .mid { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 14px; }
.ob-actions .mid .ic { width: 20px; height: 20px; }
.ob-actions .mid a { text-decoration: underline; text-underline-offset: 3px; }
.ob-note { background: var(--navy-soft); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; color: var(--navy); margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.ob-note .ic { flex: none; margin-top: 1px; }

/* ========================================================= profile */
.firm-card .name { font-size: 19px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; margin-bottom: 14px; display: inline-block; }
.kv-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 26px; }
.kv-cols > div + div { border-left: 1px solid var(--line); padding-left: 26px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; color: var(--heading); align-items: baseline; }
.kv b { color: var(--text); font-weight: 700; }
.kv.wide { grid-template-columns: minmax(140px, auto) 1fr; }
.firm-card .desc { margin-top: 16px; font-size: 14.5px; color: var(--heading); line-height: 1.55; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 28px 0 16px; }
.section-head h2 { font-size: 20px; color: var(--text); }
.section-head .actions { display: flex; align-items: center; gap: 12px; }
.fund-card .grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 20px; align-items: center; padding: 22px 26px; }
.fund-card .grid > div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.fund-card .grid > div:last-child { border-left: 0; padding-left: 0; }
.fund-card .name { font-size: 18px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; display: inline-block; }
.fund-card .firm { font-size: 14.5px; color: var(--heading); margin-top: 6px; }
.fund-card .strat { font-size: 14.5px; color: var(--heading); margin-top: 12px; }
.fund-card .spark { height: 84px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; display: grid; place-items: center; color: var(--navy); font-weight: 700; font-size: 15px; position: relative; overflow: hidden; }
.fund-card .spark svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.fund-card .spark span { position: relative; }
.fund-card .card-foot .jur { margin-left: auto; font-size: 14px; color: var(--heading); }
.fund-card .card-foot .jur a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ========================================================= fund profile */
.fp-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.fp-toolbar .updated { font-size: 14px; color: var(--heading); margin-left: 8px; }
.fp-toolbar .updated b { color: var(--text); }
.fp-toolbar .reports { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; color: var(--heading); font-size: 15px; white-space: nowrap; }
.tabs button:hover { background: var(--hover); }
.tabs button.active { background: var(--panel); border-color: var(--line); color: var(--text); box-shadow: var(--shadow); }
.fp-intro p { font-size: 14px; color: var(--heading); line-height: 1.6; }
.fp-intro p + p { margin-top: 12px; }
.fp-intro h2 { margin-bottom: 16px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.three .card + .card { margin-top: 0; }
.three .card h2 { margin-bottom: 18px; }
.three .kv { row-gap: 12px; font-size: 14.5px; }
.terms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.terms-grid > div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.terms-grid .kv { row-gap: 10px; font-size: 13.5px; }
.chart-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 18px 0 10px; }
.chart-head .ctrl { height: 42px; }
.chart-head .ctrl.select { min-width: 300px; }
.segs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.segs button { padding: 0 16px; height: 40px; font-size: 14px; color: var(--heading); }
.segs button + button { border-left: 1px solid var(--line); }
.segs button.active { background: #dfe4ee; color: var(--text); font-weight: 700; }
.chart-head .span { font-size: 14px; font-weight: 700; color: var(--text); }
.chart-head .segs.right { margin-left: auto; }
.chart-box { width: 100%; min-height: 240px; }
.chart { max-width: 100%; height: auto; display: block; font-size: 11px; }
.chart .axis { stroke: var(--line); }
.chart .grid { stroke: #eceff3; }
.chart text { fill: var(--muted); }
.chart .fund { stroke: var(--navy); stroke-width: 1.6; fill: none; }
.chart .bench { stroke: #a7b2c3; stroke-width: 1.4; fill: none; }
.chart .area { fill: #dfe7f5; opacity: .45; }
.chart .bar { fill: var(--navy); }
.chart .bar.s2 { fill: #3fb7a6; }
.chart .bar.s3 { fill: #1a6b79; }
.legend { display: flex; justify-content: flex-end; gap: 18px; font-size: 12.5px; color: var(--heading); margin: 4px 0 6px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.legend .l1::before { background: var(--navy); }
.legend .l2::before { background: #3fb7a6; }
.legend .l3::before { background: #1a6b79; }
.legend .lb::before { background: #a7b2c3; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { color: var(--muted); font-weight: 400; }
.table-scroll { overflow-x: auto; }
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 18px; position: relative; display: flex; flex-direction: column; }
.person .li { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 50%; background: #0a66c2; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; font-family: Arial, sans-serif; }
.person h4 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-right: 24px; }
.person .role { font-size: 14px; color: var(--heading); margin-bottom: 14px; }
.person p { font-size: 13.5px; color: var(--heading); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.person.is-open p { display: block; }
.person .more { margin-top: auto; padding-top: 12px; color: var(--navy); font-weight: 700; font-size: 14px; align-self: flex-start; }
.providers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.providers .p { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; font-size: 16px; color: var(--heading); }
.providers .p b { color: var(--text); }
.addr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 30px; }
.addr { border-left: 3px solid var(--navy); padding-left: 20px; }
.addr h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.addr .lines { font-size: 14px; color: var(--heading); line-height: 1.6; padding-left: 10px; }
.addr .contact { margin-top: 22px; border-left: 1px solid var(--line); margin-left: -22px; padding-left: 20px; }
.addr .contact h4 { margin-bottom: 6px; }
.addr .contact div { font-size: 14px; color: var(--heading); line-height: 1.9; }
.map { border-radius: 6px; overflow: hidden; background: #e9ebe6; position: relative; min-height: 340px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .ctl { position: absolute; top: 10px; left: 10px; display: flex; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-size: 11.5px; }
.map .ctl span { background: #fff; padding: 6px 10px; color: #555; }
.map .ctl span.on { font-weight: 700; color: #111; }
.map .zoom { position: absolute; top: 10px; right: 10px; display: grid; gap: 1px; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); border-radius: 3px; overflow: hidden; }
.map .zoom span { background: #fff; width: 28px; height: 28px; display: grid; place-items: center; color: #555; font-size: 16px; }
.map .g { position: absolute; left: 8px; bottom: 6px; font: 700 15px Arial, sans-serif; letter-spacing: -.02em; }
.map .g i:nth-child(1) { color: #4285f4; } .map .g i:nth-child(2) { color: #ea4335; } .map .g i:nth-child(3) { color: #fbbc05; } .map .g i:nth-child(4) { color: #4285f4; } .map .g i:nth-child(5) { color: #34a853; } .map .g i:nth-child(6) { color: #ea4335; }
.map .g i { font-style: normal; }

/* ========================================================= edit forms */
.edit-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px 26px; align-items: center; padding: 18px 26px; }
.edit-head .title { font-size: 18px; font-weight: 700; color: var(--heading); }
.edit-head .asof { font-size: 14.5px; color: var(--heading); }
.edit-head .unit { display: flex; }
.edit-head .unit .ctrl { width: 160px; }
.edit-head .unit .ctrl .pre { border-right: 1px solid #cfd5dd; padding-right: 12px; margin-right: 0; }
.edit-head .amount .ctrl { width: 160px; }
.perf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 160px 160px 160px; gap: 14px 20px; align-items: center; padding: 18px 26px; }
.perf .h { font-size: 14.5px; font-weight: 700; color: var(--heading); }
.perf .h.name { font-size: 18px; }
.perf .lbl { font-size: 14.5px; font-weight: 700; color: var(--heading); }
.perf .sub { font-size: 14px; color: var(--heading); }
.perf .ctrl { height: 42px; }
.perf .divider { grid-column: 1 / -1; height: 1px; background: var(--line); margin: 4px -26px; }
.perf .ctrl input { text-align: left; }
.perf-card + .perf-card { margin-top: 20px; }
.form-section { padding: 22px 26px 26px; }
.form-section h2 { margin-bottom: 18px; }
.form-section .field.full { grid-column: 1 / -1; }

/* ========================================================= responsive */
@media (max-width: 1180px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .terms-grid { grid-template-columns: 1fr 1fr; gap: 14px 22px; }
  .terms-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .shot { min-height: 300px; }
  .feature-card .laptop { width: 90%; left: 10%; }
}

@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; max-width: 86vw; transform: translateX(-104%); transition: transform .22s ease; box-shadow: var(--shadow-pop); }
  .sidebar.is-open { transform: none; }
  .sidebar-close { display: inline-grid; position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; place-items: center; border-radius: 6px; color: var(--heading); }
  .backdrop { position: fixed; inset: 0; background: rgba(15, 20, 30, .45); z-index: 25; display: none; }
  .backdrop.is-open { display: block; }
  .menubtn { display: inline-grid; }
  .topbar { height: 72px; padding: 0 16px; gap: 10px; }
  .topbar h1 { font-size: 19px; }
  .content { border-top-left-radius: 0; padding: 20px 16px 40px; }
  .search { width: 240px; }
  .hero { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .hero-art { min-height: 250px; }
  .three { grid-template-columns: 1fr; }
  .providers { grid-template-columns: 1fr 1fr; }
  .edit-head { grid-template-columns: 1fr 1fr; }
  .edit-head .title { grid-column: 1 / -1; }
  .perf { grid-template-columns: minmax(200px, 1fr) minmax(70px, auto) 130px 130px 130px; gap: 12px 16px; }
  .perf-wrap { overflow-x: auto; }
  .perf-wrap .perf { min-width: 700px; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .search { display: none; }
  .topbar h1 { font-size: 17px; }
  .topbar .iconbtn.help { display: none; }
  .pop.notif { width: calc(100vw - 24px); right: -60px; }
  .pop.notif::before { right: 74px; }
  .notif-row { flex-wrap: wrap; }
  .notif-row .btn { order: 3; }
  .dash-grid { grid-template-columns: 1fr; }
  .hero { padding: 24px 20px; min-height: 0; }
  .hero h2 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .checklist .top { flex-direction: column; align-items: flex-start; }
  .hero-art { min-height: 230px; }
  .phone { right: -10px; width: 190px; height: 220px; }
  .activity { width: 200px; }
  .content-list .item { grid-template-columns: 1fr; }
  .content-list .thumb { aspect-ratio: 16 / 9; }
  .features h2 { font-size: 24px; }
  .feature-card .list { grid-template-columns: 1fr; padding: 28px 22px; gap: 26px; }
  .feature-card .shot { min-height: 0; padding: 26px 0 0 26px; }
  .feature-card .laptop { position: relative; left: 0; top: 0; width: 100%; border-radius: 10px 0 0 0; }
  .feature-card .laptop .screen { height: 250px; overflow: hidden; border-radius: 5px 0 0 0; }
  .feature-card .laptop .base { display: none; }
  .mini-kv { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .stepper .step { display: grid; grid-template-columns: 28px 1fr; text-align: left; gap: 0 12px; align-items: center; }
  .stepper .step .dot { margin: 0; grid-row: 1 / span 2; justify-self: center; }
  .stepper .step:not(:last-child)::after { left: 13px; top: 28px; width: 1px; height: calc(100% + 4px); }
  .stepper .step b { font-size: 15px; }
  .legal { height: 300px; padding: 16px; }
  .ob-actions { flex-direction: column; align-items: stretch; }
  .ob-actions .mid { order: 3; justify-content: center; }
  .ob-actions .btn { justify-content: center; }
  .card .card-head, .card .card-body { padding-left: 18px; padding-right: 18px; }
  .card .card-foot { padding: 12px 18px; gap: 10px; }
  .kv-cols { grid-template-columns: 1fr; gap: 14px; }
  .kv-cols > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .section-head { flex-wrap: wrap; }
  .fund-card .grid { grid-template-columns: 1fr 1fr; padding: 18px; }
  .fund-card .grid > div:first-child { grid-column: 1 / -1; }
  .fund-card .grid > div + div { border-left: 0; padding-left: 0; }
  .fund-card .grid > div:nth-child(3) { border-left: 1px solid var(--line) !important; padding-left: 16px !important; }
  .fund-card .grid > div:last-child { grid-column: 1 / -1; }
  .fund-card .card-foot .jur { margin-left: 0; width: 100%; }
  .fp-toolbar .reports { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .fp-toolbar .updated { width: 100%; margin: 4px 0 0; }
  .chart-head .ctrl.select { min-width: 0; width: 100%; }
  .chart-head .segs.right { margin-left: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .providers { grid-template-columns: 1fr; }
  .addr-grid { grid-template-columns: 1fr; }
  .map { min-height: 240px; }
  .terms-grid { grid-template-columns: 1fr; }
  .terms-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .edit-head { grid-template-columns: 1fr; padding: 16px 18px; }
  .edit-head .unit .ctrl, .edit-head .amount .ctrl { width: 100%; }
  .perf { padding: 16px 18px; grid-template-columns: minmax(150px, auto) auto 120px 120px 120px; gap: 12px 12px; }
  .perf-wrap .perf { min-width: 600px; }
  .perf .h.name { font-size: 16px; }
  .perf .divider { margin: 4px -18px; }
  .modal { padding: 22px 18px 18px; }
  .modal .actions { grid-template-columns: 1fr; gap: 10px; }
  .login { grid-template-columns: 1fr; grid-template-rows: 180px auto; }
  .login .photo { order: -1; min-height: 180px; }
  .login .form-side { padding: 28px 20px 40px; align-items: flex-start; }
  .login .heads { flex-direction: column; gap: 16px; }
  .login .heads h1 { margin-top: 6px; font-size: 24px; }
  .sso { grid-template-columns: 1fr; gap: 12px; }
  .login .set-pw .grid, .login .who .grid { grid-template-columns: 1fr; }
  .login .agree { flex-direction: column; align-items: stretch; }
  .login .agree .btn { width: 100%; justify-content: center; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .toast-wrap { bottom: 14px; }
}

@media (max-width: 480px) {
  .fund-card .grid { grid-template-columns: 1fr; gap: 14px; }
  .fund-card .grid > div:nth-child(3) { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); padding-top: 14px; }
  .fund-card .grid > div:nth-child(2) { border-top: 1px solid var(--line); padding-top: 14px; }
  .hero .checklist .top .btn { width: 100%; }
}
