:root {
  --navy: #0d1830;
  --navy-soft: #15223f;
  --navy-line: rgba(255, 255, 255, 0.08);
  --brand: #2864e8;
  --brand-dark: #1d4fc4;
  --brand-light: #eef4ff;
  --teal: #14a99a;
  --teal-light: #e8f8f5;
  --amber: #e69b24;
  --amber-light: #fff7e7;
  --red: #e05252;
  --red-light: #fff0ef;
  --purple: #7957d5;
  --purple-light: #f1edff;
  --text: #1d293d;
  --text-2: #526078;
  --muted: #8591a5;
  --line: #e7eaf0;
  --line-strong: #d9dee8;
  --bg: #f4f6fa;
  --card: #ffffff;
  --sidebar-width: 238px;
  --topbar-height: 68px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 36, 66, 0.03), 0 8px 24px rgba(22, 36, 66, 0.045);
  --shadow-float: 0 18px 50px rgba(16, 29, 55, 0.18);
  --font: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }
body { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(40, 100, 232, 0.2); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(40, 100, 232, 0.18); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd5df; border-radius: 20px; }
::-webkit-scrollbar-track { background: transparent; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); height: 100vh; position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; color: #fff; background: linear-gradient(160deg, #111e3a 0%, #0b152c 58%, #0a1428 100%); border-right: 1px solid rgba(255,255,255,.03); }
.brand { height: 78px; padding: 0 22px; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; color: #fff; display: grid; place-items: center; background: linear-gradient(145deg, #3978ff, #1d51ce); box-shadow: 0 7px 18px rgba(40,100,232,.34); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.15; }
.brand-sub { font-size: 8px; letter-spacing: 1.6px; color: #7d8ba6; margin-top: 4px; font-weight: 600; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 5px 12px 16px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); }
.nav-group { margin: 17px 0 7px; padding: 0 12px; font-size: 10px; letter-spacing: 1.1px; color: #68758e; font-weight: 600; }
.nav-group:first-child { margin-top: 4px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; margin: 3px 0; border-radius: 9px; color: #adb8cc; font-size: 13px; transition: .18s ease; border: 0; background: transparent; width: 100%; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(48,108,236,.30), rgba(48,108,236,.12)); box-shadow: inset 0 0 0 1px rgba(94,143,255,.15); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 4px 4px 0; background: #5e91ff; box-shadow: 0 0 12px rgba(94,145,255,.7); }
.nav-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: #e05252; }
.nav-badge.soft { color: #89aaff; background: rgba(75,126,255,.15); }
.sidebar-support { margin: 4px 15px 12px; min-height: 58px; display: flex; align-items: center; gap: 10px; border-radius: 11px; padding: 10px; color: #a9b7cf; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.055); }
.support-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; color: #7da4ff; background: rgba(71,123,246,.13); flex: 0 0 auto; }
.support-icon svg { width: 17px; height: 17px; }
.sidebar-support > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sidebar-support strong { font-size: 11px; color: #dce5f4; font-weight: 600; }
.sidebar-support span { font-size: 9px; color: #72809a; white-space: nowrap; }
.sidebar-user { height: 76px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 17px; border-top: 1px solid var(--navy-line); background: rgba(0,0,0,.08); }
.sidebar-user-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sidebar-user-meta strong { font-size: 12px; color: #eef4ff; font-weight: 600; }
.sidebar-user-meta span { font-size: 9px; color: #77839a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-more { color: #75839c !important; }

.main-shell { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: var(--topbar-height); flex: 0 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: relative; z-index: 20; }
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.breadcrumb svg { width: 12px; height: 12px; color: #b3bac7; }
.breadcrumb strong { font-size: 13px; color: var(--text); font-weight: 600; }
.topbar-actions { gap: 8px; }
.search-trigger { width: 290px; height: 36px; display: flex; align-items: center; gap: 9px; margin-right: 7px; padding: 0 10px; border: 1px solid var(--line); background: #f7f8fb; border-radius: 9px; color: #8b95a7; transition: .16s; }
.search-trigger:hover { border-color: #cbd4e3; background: #fff; box-shadow: 0 3px 12px rgba(20,35,65,.05); }
.search-trigger svg { width: 17px; height: 17px; }
.search-trigger span { flex: 1; text-align: left; font-size: 11px; }
.search-trigger kbd { padding: 2px 5px; border-radius: 4px; border: 1px solid #dce1e9; background: #fff; color: #9aa4b5; font-size: 9px; font-family: var(--font); }
.top-divider { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.icon-button { width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: #68758b; display: inline-grid; place-items: center; transition: .16s; position: relative; flex: 0 0 auto; }
.icon-button:hover { background: #f1f4f8; color: var(--text); }
.icon-button svg { width: 19px; height: 19px; }
.icon-button.tiny { width: 24px; height: 24px; }
.icon-button.tiny svg { width: 14px; height: 14px; }
.notification-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; top: 7px; right: 7px; background: #e05252; border: 1.5px solid #fff; }
.top-profile { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 13px; border-left: 1px solid var(--line); }
.top-profile > div:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.top-profile strong { font-size: 11px; font-weight: 600; }
.top-profile span { font-size: 9px; color: var(--muted); }
.top-profile > svg { width: 12px; height: 12px; color: #9aa4b5; margin-left: 3px; }
.avatar { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(145deg, #3381f4, #7761e7); flex: 0 0 auto; }
.avatar-photo { background: linear-gradient(145deg, #e3b886, #b87947); }
.mobile-menu { display: none; }

.page-content { flex: 1; overflow-y: auto; padding: 24px 28px 42px; outline: 0; scroll-behavior: smooth; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-eyebrow { font-size: 10px; color: var(--brand); font-weight: 700; letter-spacing: 1.2px; margin-bottom: 6px; }
.page-head h1 { font-size: 23px; line-height: 1.25; font-weight: 700; letter-spacing: -.4px; color: #182338; }
.page-head p { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.page-head-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.demo-pill { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 9px; border-radius: 20px; color: #8a651e; background: #fff8e9; border: 1px solid #f2dfb7; font-size: 9px; font-weight: 600; }
.demo-pill::before { content:""; width: 5px; height: 5px; border-radius: 50%; background: #e2a53b; }

.btn { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--text-2); font-size: 11px; font-weight: 600; transition: .16s; white-space: nowrap; }
.btn:hover { border-color: #bfc8d8; background: #fafbfd; color: var(--text); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(40,100,232,.2); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-danger { color: var(--red); border-color: #f1c8c5; background: #fffafa; }
.btn-danger:hover { background: var(--red-light); color: #c74444; }
.btn-success { color: var(--teal); border-color: #bce7e0; background: #fafefd; }
.btn-success:hover { background: var(--teal-light); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 10px; }
.btn-text { height: auto; padding: 0; border: 0; background: transparent; color: var(--brand); font-weight: 600; font-size: 10px; display: inline-flex; align-items: center; gap: 3px; }
.btn-text:hover { background: transparent; color: var(--brand-dark); }
.btn:disabled { opacity: .5; pointer-events: none; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.kpi-card { min-width: 0; min-height: 128px; padding: 17px 17px 15px; border-radius: var(--radius-md); background: var(--card); border: 1px solid rgba(227,231,239,.85); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi-card::after { content:""; position: absolute; width: 84px; height: 84px; border-radius: 50%; top: -44px; right: -36px; background: rgba(40,100,232,.035); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { color: #69768b; font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--brand); background: var(--brand-light); }
.kpi-icon svg { width: 16px; height: 16px; }
.kpi-icon.teal { color: var(--teal); background: var(--teal-light); }
.kpi-icon.amber { color: var(--amber); background: var(--amber-light); }
.kpi-icon.red { color: var(--red); background: var(--red-light); }
.kpi-icon.purple { color: var(--purple); background: var(--purple-light); }
.kpi-value { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.5px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 11px; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.kpi-foot { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 9px; color: var(--muted); }
.trend-up, .trend-down { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.trend-up { color: var(--teal); }
.trend-down { color: var(--red); }
.trend-up svg, .trend-down svg { width: 10px; height: 10px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 16px; }
.dashboard-grid.equal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dashboard-grid.wide { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .8fr); }
.card { background: var(--card); border: 1px solid rgba(227,231,239,.9); border-radius: var(--radius-lg); box-shadow: var(--shadow); min-width: 0; }
.card-header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 19px 10px; }
.card-title-wrap { min-width: 0; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #243046; }
.card-title .sub-label { font-size: 9px; color: var(--muted); font-weight: 400; }
.card-subtitle { font-size: 9px; color: var(--muted); margin-top: 5px; }
.card-body { padding: 8px 19px 18px; }
.card-body.flush { padding: 0; }
.card-body.tight { padding-top: 0; }
.card-footer { border-top: 1px solid var(--line); padding: 12px 19px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-link { font-size: 10px; color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; background: transparent; border: 0; padding: 0; }
.card-link svg { width: 12px; height: 12px; transition: transform .15s; }
.card-link:hover svg { transform: translateX(2px); }

.segmented { display: inline-flex; align-items: center; padding: 3px; background: #f3f5f9; border-radius: 7px; gap: 1px; }
.segmented button { height: 25px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #8490a3; font-size: 9px; font-weight: 600; }
.segmented button.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(24,39,70,.09); }

.chart-area { height: 210px; position: relative; padding-top: 8px; }
.chart-area.sm { height: 175px; }
.chart-area.lg { height: 270px; }
.line-chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: #edf0f5; stroke-width: 1; }
.chart-axis-label { fill: #98a2b3; font-size: 8px; font-family: var(--font); }
.chart-line { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.primary { stroke: var(--brand); }
.chart-line.secondary { stroke: var(--teal); }
.chart-area-fill { opacity: .16; }
.chart-point { stroke: #fff; stroke-width: 2; }
.chart-legend { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); }
.legend-dot { width: 7px; height: 7px; border-radius: 3px; background: var(--brand); }
.legend-dot.teal { background: var(--teal); }
.legend-dot.amber { background: var(--amber); }
.legend-dot.purple { background: var(--purple); }
.legend-dot.red { background: var(--red); }
.chart-tooltip { position: absolute; z-index: 5; pointer-events: none; background: #17233c; color: #fff; padding: 8px 10px; border-radius: 7px; box-shadow: 0 8px 22px rgba(0,0,0,.18); font-size: 9px; line-height: 1.65; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; }
.chart-tooltip.visible { opacity: 1; }
.chart-tooltip strong { color: #fff; }
.chart-hover-zone { fill: transparent; cursor: crosshair; }

.donut-wrap { display: flex; align-items: center; gap: 24px; padding: 7px 0 9px; }
.donut-chart { width: 138px; height: 138px; border-radius: 50%; position: relative; flex: 0 0 auto; background: conic-gradient(var(--brand) 0 73%, var(--teal) 73% 91%, var(--amber) 91% 97%, var(--red) 97% 100%); transform: rotate(-25deg); }
.donut-chart::before { content:""; position: absolute; inset: 20px; background: #fff; border-radius: 50%; }
.donut-chart::after { content:""; position: absolute; inset: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(230,234,242,.8); }
.donut-center { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(25deg); }
.donut-center strong { font-size: 17px; letter-spacing: -.5px; }
.donut-center span { font-size: 8px; color: var(--muted); margin-top: 3px; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.donut-legend-row { display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--text-2); }
.donut-legend-row .legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.donut-legend-row span:nth-child(2) { flex: 1; color: var(--muted); }
.donut-legend-row strong { color: var(--text); font-size: 10px; font-variant-numeric: tabular-nums; }
.asset-foot { border-top: 1px dashed var(--line); display: flex; justify-content: space-between; margin-top: 4px; padding-top: 12px; font-size: 9px; color: var(--muted); }
.asset-foot strong { color: var(--teal); }

.funnel { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 4px; }
.funnel-row { display: flex; align-items: center; gap: 9px; }
.funnel-name { width: 60px; color: var(--muted); font-size: 9px; flex: 0 0 auto; }
.funnel-track { height: 23px; flex: 1; border-radius: 5px; background: #f2f4f8; overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 5px; display: flex; align-items: center; justify-content: flex-end; padding-right: 7px; background: linear-gradient(90deg, #6c9bff, #2864e8); color: #fff; font-size: 8px; font-weight: 700; min-width: 26px; }
.funnel-row:nth-child(2) .funnel-bar { background: linear-gradient(90deg, #72b7ed, #398bd6); }
.funnel-row:nth-child(3) .funnel-bar { background: linear-gradient(90deg, #65cfc3, #20ae9f); }
.funnel-row:nth-child(4) .funnel-bar { background: linear-gradient(90deg, #ecc66f, #dca033); }
.funnel-row:nth-child(5) .funnel-bar { background: linear-gradient(90deg, #ab99e8, #7a5bd2); }
.funnel-count { width: 24px; text-align: right; font-size: 10px; font-weight: 700; color: var(--text-2); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }
.data-table th { height: 37px; padding: 0 12px; text-align: left; font-weight: 600; color: #8b95a7; background: #f8f9fc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 9px; }
.data-table th:first-child, .data-table td:first-child { padding-left: 19px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 19px; }
.data-table td { height: 56px; padding: 0 12px; border-bottom: 1px solid #eef1f5; color: var(--text-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .13s; }
.data-table tbody tr:hover { background: #fafbfe; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table .primary-cell { color: var(--text); font-weight: 600; }
.data-table .secondary-cell { display: block; font-size: 8px; color: #9aa4b5; font-weight: 400; margin-top: 3px; }
.company-cell { display: flex; align-items: center; gap: 9px; }
.company-logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; flex: 0 0 auto; background: linear-gradient(145deg, #7f9ee4, #3f67b7); }
.company-logo.green { background: linear-gradient(145deg, #5bc4ae, #1d938d); }
.company-logo.orange { background: linear-gradient(145deg, #e9b15a, #c77b2f); }
.company-logo.purple { background: linear-gradient(145deg, #a186e3, #7152c7); }
.company-logo.red { background: linear-gradient(145deg, #e88783, #c64e53); }
.company-logo.dark { background: linear-gradient(145deg, #71809d, #34445f); }
.money { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.text-muted { color: var(--muted); }
.text-right { text-align: right !important; }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 5px; font-size: 8px; font-weight: 600; white-space: nowrap; }
.badge::before { content:""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.no-dot::before { display: none; }
.badge-blue { color: #2864e8; background: #edf3ff; }
.badge-teal { color: #138d81; background: #e9f8f5; }
.badge-amber { color: #b57d1e; background: #fff6e5; }
.badge-red { color: #c94949; background: #fff0ef; }
.badge-gray { color: #758197; background: #f1f3f7; }
.badge-purple { color: #6f51c0; background: #f1edff; }
.badge-dark { color: #fff; background: #344158; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; }
.rating-dot { width: 6px; height: 6px; border-radius: 50%; }
.rating.aaa { color: #139887; }
.rating.aaa .rating-dot { background: #19aa98; }
.rating.aa { color: #3979da; }
.rating.aa .rating-dot { background: #4b8aec; }
.rating.a { color: #b48228; }
.rating.a .rating-dot { background: #e1a63a; }
.rating.bbb { color: #c75a55; }
.rating.bbb .rating-dot { background: #df6964; }
.rating.none { color: #858fa1; }
.rating.none .rating-dot { background: #aab2c1; }
.risk-level { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600; }
.risk-level.high { color: var(--red); }
.risk-level.mid { color: var(--amber); }
.risk-level.low { color: var(--teal); }
.risk-level::before { content:""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent); }

.progress-line { width: 78px; height: 5px; background: #edf0f5; border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.progress-line span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6d9cff, #2864e8); }
.progress-line.teal span { background: linear-gradient(90deg, #65cbbf, #18a696); }
.progress-line.amber span { background: linear-gradient(90deg, #f0cc7d, #dfa237); }
.progress-line.red span { background: linear-gradient(90deg, #ee9995, #dc5956); }
.progress-text { font-size: 8px; color: var(--muted); }

.alert-list { display: flex; flex-direction: column; }
.alert-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.alert-item:first-child { padding-top: 4px; }
.alert-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.alert-severity { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; display: grid; place-items: center; color: var(--red); background: var(--red-light); }
.alert-severity.mid { color: var(--amber); background: var(--amber-light); }
.alert-severity.low { color: var(--brand); background: var(--brand-light); }
.alert-severity svg { width: 14px; height: 14px; }
.alert-main { flex: 1; min-width: 0; }
.alert-title { font-size: 10px; font-weight: 600; line-height: 1.35; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-desc { margin-top: 4px; font-size: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-meta { flex: 0 0 auto; text-align: right; }
.alert-meta span { display: block; font-size: 8px; color: #a0a9b8; margin-top: 4px; }

.todo-list { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.todo-item { display: flex; align-items: center; gap: 9px; padding: 10px; background: #fafbfd; border: 1px solid #edf0f5; border-radius: 9px; }
.todo-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--brand); background: #edf3ff; flex: 0 0 auto; }
.todo-icon.amber { color: var(--amber); background: var(--amber-light); }
.todo-icon.teal { color: var(--teal); background: var(--teal-light); }
.todo-icon.red { color: var(--red); background: var(--red-light); }
.todo-icon svg { width: 15px; height: 15px; }
.todo-main { flex: 1; min-width: 0; }
.todo-main strong { display: block; font-size: 10px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-main span { display: block; color: var(--muted); font-size: 8px; margin-top: 3px; }
.todo-count { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-size: 9px; color: var(--text-2); font-weight: 700; }

.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.summary-icon { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); flex: 0 0 auto; }
.summary-icon.teal { background: var(--teal-light); color: var(--teal); }
.summary-icon.amber { background: var(--amber-light); color: var(--amber); }
.summary-icon.red { background: var(--red-light); color: var(--red); }
.summary-icon.purple { background: var(--purple-light); color: var(--purple); }
.summary-icon svg { width: 18px; height: 18px; }
.summary-text { min-width: 0; }
.summary-text span { display: block; color: var(--muted); font-size: 9px; }
.summary-text strong { display: block; margin-top: 4px; font-size: 18px; line-height: 1.1; letter-spacing: -.3px; }
.summary-text small { color: var(--muted); font-size: 8px; margin-left: 4px; font-weight: 400; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: #9aa4b5; pointer-events: none; }
.input, .select { height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--text); font-size: 10px; padding: 0 10px; transition: .15s; }
.input::placeholder { color: #a7afbd; }
.input:focus, .select:focus { outline: 0; border-color: #95b3f2; box-shadow: 0 0 0 3px rgba(40,100,232,.08); }
.input-wrap .input { padding-left: 31px; width: 220px; }
.select { padding-right: 27px; min-width: 100px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%238592a5' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 11px; }
.filter-count { color: var(--muted); font-size: 9px; padding-left: 3px; }
.tab-bar { display: flex; align-items: center; gap: 24px; padding: 0 19px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-bar button { height: 44px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; white-space: nowrap; padding: 0; display: flex; align-items: center; gap: 6px; }
.tab-bar button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-count { min-width: 18px; height: 17px; border-radius: 8px; padding: 0 5px; display: grid; place-items: center; font-size: 8px; color: #79859a; background: #f1f3f7; }
.tab-bar button.active .tab-count { color: var(--brand); background: #edf3ff; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 19px; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.page-buttons { display: flex; align-items: center; gap: 4px; }
.page-btn { width: 27px; height: 27px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--text-2); display: grid; place-items: center; font-size: 9px; }
.page-btn.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.page-btn:disabled { opacity: .4; pointer-events: none; }
.page-btn svg { width: 12px; height: 12px; }

.project-cell strong { display: block; font-size: 10px; color: var(--text); font-weight: 600; }
.project-cell span { display: block; margin-top: 3px; font-size: 8px; color: var(--muted); }
.stage-cell { min-width: 130px; }
.stage-track { display: flex; align-items: center; gap: 3px; margin-top: 6px; }
.stage-dot { height: 3px; border-radius: 2px; flex: 1; background: #edf0f5; }
.stage-dot.done { background: #6493f1; }
.stage-dot.current { background: #2e68e5; box-shadow: 0 0 0 2px rgba(46,104,229,.13); }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(235px, 1fr)); gap: 13px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { min-width: 235px; background: #eef1f6; border-radius: 12px; padding: 10px; min-height: 420px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 11px; }
.kanban-head strong { font-size: 10px; display: flex; align-items: center; gap: 6px; }
.kanban-head .kanban-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.kanban-head .kanban-dot.amber { background: var(--amber); }
.kanban-head .kanban-dot.teal { background: var(--teal); }
.kanban-head .kanban-dot.purple { background: var(--purple); }
.kanban-count { min-width: 18px; height: 17px; border-radius: 8px; display: grid; place-items: center; background: #fff; font-size: 8px; color: var(--muted); }
.kanban-cards { display: flex; flex-direction: column; gap: 8px; }
.kanban-card { background: #fff; border: 1px solid rgba(222,227,236,.9); border-radius: 10px; padding: 12px; box-shadow: 0 1px 3px rgba(21,35,60,.04); cursor: pointer; transition: .16s; }
.kanban-card:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(21,35,60,.09); border-color: #cfd9e9; }
.kanban-card-head { display: flex; justify-content: space-between; gap: 8px; }
.kanban-card-head strong { font-size: 10px; line-height: 1.4; }
.kanban-card-company { font-size: 8px; color: var(--muted); margin-top: 5px; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 9px; border-top: 1px dashed #edf0f4; font-size: 8px; color: var(--muted); }
.kanban-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.mini-avatar { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: #8da4d9; font-size: 8px; font-weight: 700; }
.mini-avatar + .mini-avatar { margin-left: -4px; border: 2px solid #fff; }

.risk-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.risk-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.risk-summary-left { display: flex; align-items: center; gap: 10px; }
.risk-summary-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--red-light); color: var(--red); }
.risk-summary-icon.mid { background: var(--amber-light); color: var(--amber); }
.risk-summary-icon.low { background: var(--teal-light); color: var(--teal); }
.risk-summary-icon svg { width: 18px; height: 18px; }
.risk-summary-left span { font-size: 9px; color: var(--muted); }
.risk-summary-left strong { display: block; font-size: 19px; margin-top: 2px; }
.risk-summary > small { font-size: 8px; color: var(--muted); }
.risk-row-title { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
.risk-row-title .badge { flex: 0 0 auto; }
.risk-row-title span { font-size: 10px; }

.heatmap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding-top: 7px; }
.heat-cell { aspect-ratio: 1.15; border-radius: 5px; display: grid; place-items: center; font-size: 8px; color: #5680c8; background: #eef4ff; cursor: default; }
.heat-cell.l2 { background: #dbe8ff; color: #3e6bc4; }
.heat-cell.l3 { background: #f9e9bc; color: #9c701e; }
.heat-cell.l4 { background: #f5c5bd; color: #a34e42; }
.heat-cell.l5 { background: #e88d84; color: #fff; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 8px; color: var(--muted); margin-top: 9px; }
.heat-legend i { width: 12px; height: 7px; border-radius: 2px; display: inline-block; background: #eef4ff; }
.heat-legend i:nth-child(2) { background: #dbe8ff; }
.heat-legend i:nth-child(3) { background: #f9e9bc; }
.heat-legend i:nth-child(4) { background: #f5c5bd; }
.heat-legend i:nth-child(5) { background: #e88d84; }

.monitor-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); gap: 16px; margin-bottom: 16px; }
.exposure-list { display: flex; flex-direction: column; gap: 13px; }
.exposure-row { display: grid; grid-template-columns: 76px 1fr 60px; align-items: center; gap: 10px; font-size: 9px; }
.exposure-row > span:first-child { color: var(--muted); }
.exposure-track { height: 7px; border-radius: 4px; background: #f1f3f7; overflow: hidden; }
.exposure-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #527fdf, #82a7f6); }
.exposure-row:nth-child(2) .exposure-track i { background: linear-gradient(90deg, #35aa9c, #73cabe); }
.exposure-row:nth-child(3) .exposure-track i { background: linear-gradient(90deg, #d9a23f, #ecc871); }
.exposure-row:nth-child(4) .exposure-track i { background: linear-gradient(90deg, #8b6bd4, #b29beb); }
.exposure-row:nth-child(5) .exposure-track i { background: linear-gradient(90deg, #d96861, #ea9b95); }
.exposure-row strong { font-size: 9px; text-align: right; color: var(--text); }
.repayment-list { display: flex; flex-direction: column; gap: 9px; }
.repayment-item { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid #edf0f5; border-radius: 9px; background: #fff; }
.repayment-date { width: 39px; height: 39px; border-radius: 8px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--brand); background: #edf3ff; }
.repayment-date strong { font-size: 14px; line-height: 1; }
.repayment-date span { font-size: 7px; margin-top: 3px; }
.repayment-main { flex: 1; min-width: 0; }
.repayment-main strong { display: block; font-size: 9px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repayment-main span { display: block; font-size: 8px; color: var(--muted); margin-top: 4px; }
.repayment-amount { font-size: 9px; color: var(--text); font-weight: 600; white-space: nowrap; }

.analytics-hero { background: linear-gradient(115deg, #12213f 0%, #17305e 60%, #1b3b73 100%); color: #fff; border-radius: var(--radius-lg); padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 16px; overflow: hidden; position: relative; }
.analytics-hero::before { content:""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(78,132,247,.23), transparent 65%); right: 4%; top: -150px; }
.analytics-hero::after { content:""; position: absolute; width: 200px; height: 200px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; right: 13%; bottom: -150px; }
.analytics-hero-copy { position: relative; z-index: 1; }
.analytics-hero-copy span { font-size: 9px; color: #8fa6cc; letter-spacing: .5px; }
.analytics-hero-copy h2 { margin-top: 7px; font-size: 20px; letter-spacing: .2px; }
.analytics-hero-copy p { margin-top: 7px; color: #9cafd0; font-size: 10px; }
.analytics-hero-metrics { display: flex; gap: 36px; position: relative; z-index: 1; }
.analytics-hero-metric { display: flex; flex-direction: column; gap: 6px; }
.analytics-hero-metric span { font-size: 8px; color: #93a7c8; }
.analytics-hero-metric strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.analytics-hero-metric small { font-size: 8px; color: #6bd2bf; }
.analytics-bar-chart { height: 225px; display: flex; align-items: flex-end; gap: 14px; padding: 15px 5px 0; border-bottom: 1px solid #edf0f5; }
.bar-group { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 7px; position: relative; min-width: 23px; }
.bar-group:hover .bar-label { color: var(--text); }
.bar { width: 20px; min-height: 3px; border-radius: 3px 3px 1px 1px; background: linear-gradient(to top, #2d66e5, #6e9cff); transition: .15s; position: relative; }
.bar.alt { background: linear-gradient(to top, #16a697, #68cfc2); }
.bar-group:hover .bar { filter: brightness(1.08); }
.bar-label { position: absolute; bottom: -23px; font-size: 8px; color: #9aa4b5; white-space: nowrap; }
.bar-value { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 7px; color: transparent; white-space: nowrap; }
.bar-group:hover .bar-value { color: var(--text-2); }
.rank-list { display: flex; flex-direction: column; gap: 13px; }
.rank-row { display: flex; align-items: center; gap: 9px; }
.rank-num { width: 19px; height: 19px; border-radius: 5px; background: #f3f5f9; display: grid; place-items: center; color: #8a95a7; font-size: 8px; font-weight: 700; flex: 0 0 auto; }
.rank-row:nth-child(1) .rank-num { color: #b57c13; background: #fff4d9; }
.rank-row:nth-child(2) .rank-num { color: #65758e; background: #eef1f5; }
.rank-row:nth-child(3) .rank-num { color: #a96d42; background: #f9ede4; }
.rank-main { flex: 1; min-width: 0; }
.rank-main strong { display: block; font-size: 9px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-main span { display: block; height: 4px; margin-top: 6px; background: #f1f3f7; border-radius: 4px; overflow: hidden; }
.rank-main span i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #88aaf1, #4076e7); }
.rank-amount { font-size: 9px; font-weight: 600; color: var(--text); text-align: right; white-space: nowrap; }
.rank-amount small { display: block; font-size: 7px; color: var(--muted); font-weight: 400; margin-top: 3px; }

.settings-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 16px; }
.settings-menu { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px; height: max-content; }
.settings-menu button { width: 100%; height: 38px; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; border-radius: 7px; padding: 0 10px; color: var(--muted); font-size: 10px; text-align: left; }
.settings-menu button svg { width: 15px; height: 15px; }
.settings-menu button.active { background: #edf3ff; color: var(--brand); font-weight: 600; }
.settings-section { padding: 20px; }
.settings-section + .settings-section { border-top: 1px solid var(--line); }
.settings-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.settings-desc { font-size: 9px; color: var(--muted); line-height: 1.6; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #f0f2f6; }
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-info strong { display: block; font-size: 10px; font-weight: 600; }
.setting-info span { display: block; font-size: 8px; color: var(--muted); margin-top: 4px; max-width: 500px; line-height: 1.5; }
.switch { width: 36px; height: 20px; border-radius: 12px; background: #d8dee8; position: relative; border: 0; flex: 0 0 auto; transition: .18s; }
.switch::after { content:""; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; left: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: .18s; }
.switch.on { background: var(--brand); }
.switch.on::after { left: 18px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 13px; }
.role-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.role-card-top { display: flex; align-items: center; gap: 8px; }
.role-avatar { width: 29px; height: 29px; display: grid; place-items: center; color: var(--brand); background: var(--brand-light); border-radius: 8px; font-size: 10px; font-weight: 700; }
.role-card strong { display: block; font-size: 9px; }
.role-card span { display: block; color: var(--muted); font-size: 8px; margin-top: 3px; }
.role-card p { color: var(--muted); font-size: 8px; line-height: 1.6; margin-top: 10px; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(11,21,42,.32); backdrop-filter: blur(2px); z-index: 60; opacity: 0; transition: opacity .2s; }
.drawer-backdrop.show, .modal-backdrop.show { opacity: 1; }
.drawer-backdrop { z-index: 70; }
.drawer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(520px, 94vw); background: #fff; box-shadow: -20px 0 60px rgba(16,28,51,.15); transform: translateX(102%); transition: transform .25s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.show { transform: translateX(0); }
.drawer-header { padding: 20px 22px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.drawer-eyebrow { font-size: 8px; color: var(--brand); font-weight: 700; letter-spacing: .8px; margin-bottom: 6px; }
.drawer-header h2 { font-size: 18px; line-height: 1.35; }
.drawer-header p { font-size: 9px; color: var(--muted); margin-top: 5px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 28px; }
.drawer-footer { border-top: 1px solid var(--line); padding: 13px 22px; display: flex; justify-content: flex-end; gap: 8px; background: #fff; }
.drawer-section + .drawer-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #eef1f5; }
.drawer-section-title { font-size: 11px; font-weight: 700; margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; }
.detail-item span { display: block; color: var(--muted); font-size: 8px; margin-bottom: 4px; }
.detail-item strong { display: block; font-size: 10px; color: var(--text); font-weight: 600; line-height: 1.5; }
.detail-summary { background: linear-gradient(120deg, #f3f7ff, #f9fbff); border: 1px solid #e5ecfa; border-radius: 10px; padding: 14px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 17px; }
.detail-summary span { display: block; font-size: 8px; color: var(--muted); }
.detail-summary strong { display: block; margin-top: 5px; font-size: 15px; color: var(--text); }
.detail-summary small { font-size: 8px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.company-hero { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 11px; background: #f8f9fc; border: 1px solid #edf0f5; }
.company-hero .company-logo { width: 44px; height: 44px; border-radius: 11px; font-size: 13px; }
.company-hero-main { flex: 1; min-width: 0; }
.company-hero-main strong { display: block; font-size: 12px; }
.company-hero-main span { display: block; font-size: 8px; color: var(--muted); margin-top: 5px; }
.company-hero-side { text-align: right; }
.company-hero-side strong { display: block; font-size: 15px; }
.company-hero-side span { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 10px; position: relative; padding-bottom: 15px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-axis { width: 16px; display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.timeline-dot { width: 7px; height: 7px; border-radius: 50%; background: #c8d0dd; margin-top: 4px; z-index: 1; }
.timeline-item.done .timeline-dot { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }
.timeline-item.current .timeline-dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.timeline-line { width: 1px; background: #e9ecf2; flex: 1; margin-top: 3px; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content { padding-bottom: 3px; }
.timeline-content strong { font-size: 9px; display: block; }
.timeline-content span { display: block; font-size: 8px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.score-ring { width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--teal) 0 82%, #edf0f5 82% 100%); position: relative; flex: 0 0 auto; }
.score-ring::after { content:""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.score-ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.score-ring strong { font-size: 17px; line-height: 1; }
.score-ring span { font-size: 7px; color: var(--muted); margin-top: 4px; }
.risk-score-block { display: flex; align-items: center; gap: 16px; padding: 12px; background: #fafbfd; border: 1px solid #edf0f5; border-radius: 10px; }
.risk-score-info { flex: 1; }
.risk-score-info strong { font-size: 11px; }
.risk-score-info p { font-size: 8px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.document-list { display: flex; flex-direction: column; gap: 7px; }
.document-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #edf0f5; border-radius: 8px; }
.document-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; background: #edf3ff; color: var(--brand); }
.document-icon svg { width: 14px; height: 14px; }
.document-item div:nth-child(2) { flex: 1; min-width: 0; }
.document-item strong { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.document-item span { display: block; font-size: 7px; color: var(--muted); margin-top: 3px; }
.modal { position: fixed; z-index: 80; top: 50%; left: 50%; width: min(640px, 94vw); max-height: 90vh; transform: translate(-50%, -47%) scale(.98); opacity: 0; background: #fff; border-radius: 15px; box-shadow: var(--shadow-float); display: flex; flex-direction: column; transition: .2s; }
.modal.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal.lg { width: min(820px, 94vw); }
.modal.sm { width: min(440px, 94vw); }
.modal-header { padding: 19px 22px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 16px; }
.modal-header p { font-size: 9px; color: var(--muted); margin-top: 5px; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-footer { padding: 13px 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 9px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.form-field label em { color: var(--red); font-style: normal; margin-left: 2px; }
.form-field .input, .form-field .select, .form-field textarea { width: 100%; }
.form-field textarea { min-height: 76px; padding: 9px 10px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 10px; line-height: 1.6; }
.form-field textarea:focus { outline: 0; border-color: #95b3f2; box-shadow: 0 0 0 3px rgba(40,100,232,.08); }
.form-hint { font-size: 8px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.info-banner { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border-radius: 8px; background: #f2f7ff; border: 1px solid #dfeafa; color: #4b6eaa; font-size: 9px; line-height: 1.6; }
.info-banner svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.info-banner.amber { background: #fff9ed; border-color: #f3e3be; color: #8c6a28; }
.info-banner.red { background: #fff5f4; border-color: #f2d5d2; color: #a04944; }
.decision-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.decision-option { border: 1px solid var(--line); border-radius: 9px; padding: 11px; text-align: left; background: #fff; }
.decision-option:hover { border-color: #bac9e6; }
.decision-option.selected { border-color: var(--brand); background: #f5f8ff; box-shadow: inset 0 0 0 1px var(--brand); }
.decision-option strong { display: block; font-size: 9px; }
.decision-option span { display: block; font-size: 8px; color: var(--muted); margin-top: 4px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-action { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #fff; text-align: left; display: flex; align-items: center; gap: 9px; }
.quick-action:hover { border-color: #c2cee3; background: #fafcff; }
.quick-action-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; }
.quick-action-icon svg { width: 15px; height: 15px; }
.quick-action strong { display: block; font-size: 9px; }
.quick-action span { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; }

.toast-root { position: fixed; z-index: 120; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 360px; display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 12px 35px rgba(17,30,57,.16); animation: toast-in .25s ease; pointer-events: auto; }
.toast.hide { animation: toast-out .2s ease forwards; }
.toast-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; flex: 0 0 auto; }
.toast-icon svg { width: 12px; height: 12px; }
.toast.error .toast-icon { background: var(--red-light); color: var(--red); }
.toast-main { flex: 1; }
.toast-main strong { display: block; font-size: 9px; color: var(--text); }
.toast-main span { display: block; font-size: 8px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

.popover { position: fixed; z-index: 50; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-float); overflow: hidden; animation: pop-in .15s ease; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.popover-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.popover-header strong { font-size: 10px; }
.popover-header span { font-size: 8px; color: var(--brand); }
.popover-list { max-height: 290px; overflow-y: auto; }
.popover-item { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-bottom: 1px solid #f0f2f6; }
.popover-item:last-child { border-bottom: 0; }
.popover-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-top: 4px; flex: 0 0 auto; }
.popover-dot.amber { background: var(--amber); }
.popover-dot.blue { background: var(--brand); }
.popover-item div { min-width: 0; }
.popover-item strong { display: block; font-size: 9px; font-weight: 600; line-height: 1.4; }
.popover-item span { display: block; font-size: 8px; color: var(--muted); margin-top: 4px; }
.command-modal .modal-body { padding: 0; }
.command-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.command-search svg { width: 18px; height: 18px; color: var(--muted); }
.command-search input { flex: 1; border: 0; outline: 0; font-size: 12px; }
.command-search kbd { font-size: 8px; color: var(--muted); border: 1px solid var(--line); background: #f7f8fa; border-radius: 4px; padding: 2px 5px; }
.command-results { padding: 7px; max-height: 390px; overflow-y: auto; }
.command-group-label { font-size: 8px; color: var(--muted); padding: 8px 10px 4px; }
.command-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 7px; cursor: pointer; }
.command-item:hover, .command-item.active { background: #f4f7fc; }
.command-item-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); flex: 0 0 auto; }
.command-item-icon svg { width: 14px; height: 14px; }
.command-item-main { flex: 1; min-width: 0; }
.command-item-main strong { display: block; font-size: 9px; }
.command-item-main span { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; }
.command-item > span { font-size: 8px; color: var(--muted); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px 20px; color: var(--muted); text-align: center; }
.empty-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #f2f5fa; color: #9aa7ba; margin-bottom: 12px; }
.empty-icon svg { width: 22px; height: 22px; }
.empty-state strong { color: var(--text-2); font-size: 11px; }
.empty-state span { font-size: 9px; margin-top: 5px; }

.sidebar-overlay { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1320px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .kpi-card:nth-child(4), .kpi-card:nth-child(5) { min-height: 112px; }
  .analytics-hero-metrics { gap: 22px; }
}
@media (max-width: 1120px) {
  :root { --sidebar-width: 214px; }
  .sidebar { width: var(--sidebar-width); }
  .main-shell { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); }
  .dashboard-grid, .dashboard-grid.wide, .monitor-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid.equal { grid-template-columns: minmax(0,1fr); }
  .summary-strip { grid-template-columns: repeat(2,1fr); }
  .risk-summary-grid { grid-template-columns: repeat(3,1fr); }
  .top-profile > div:nth-child(2), .top-profile > svg { display: none; }
  .search-trigger { width: 230px; }
  .analytics-hero { align-items: flex-start; flex-direction: column; }
  .analytics-hero-metrics { width: 100%; justify-content: space-between; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; width: 238px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(10,20,38,.38); z-index: 25; opacity: 0; pointer-events: none; transition: .2s; }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
  .main-shell { margin-left: 0; width: 100%; height: auto; min-height: 100vh; }
  .page-content { overflow: visible; padding: 20px; }
  .mobile-menu { display: inline-grid; margin-right: 7px; }
  .topbar { padding: 0 18px; }
  .search-trigger { width: 36px; padding: 0; justify-content: center; background: transparent; border-color: transparent; margin-right: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .top-divider { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-menu { display: flex; overflow-x: auto; }
  .settings-menu button { width: auto; white-space: nowrap; }
  .role-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .topbar { height: 60px; padding: 0 13px; }
  .breadcrumb span, .breadcrumb svg { display: none; }
  .topbar-actions > .icon-button:nth-of-type(1) { display: none; }
  .top-profile { padding-left: 8px; margin-left: 2px; }
  .page-content { padding: 16px 13px 30px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .page-head h1 { font-size: 21px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { padding: 13px; min-height: 112px; }
  .kpi-value { font-size: 20px; }
  .kpi-foot { font-size: 8px; }
  .summary-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary-card { padding: 11px; }
  .summary-icon { width: 30px; height: 30px; }
  .summary-text strong { font-size: 15px; }
  .card-header { padding: 14px 14px 8px; }
  .card-body { padding: 7px 14px 15px; }
  .card-footer { padding: 11px 14px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 14px; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 14px; }
  .toolbar { padding: 12px 14px; }
  .toolbar-left { width: 100%; }
  .input-wrap { flex: 1; }
  .input-wrap .input { width: 100%; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .toolbar-right .select { flex: 1; }
  .tab-bar { padding: 0 14px; gap: 18px; }
  .dashboard-grid { gap: 12px; margin-bottom: 12px; }
  .donut-wrap { gap: 16px; }
  .donut-chart { width: 116px; height: 116px; }
  .donut-chart::before, .donut-chart::after { inset: 17px; }
  .risk-summary-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .analytics-hero { padding: 18px; }
  .analytics-hero-metrics { gap: 10px; flex-wrap: wrap; }
  .analytics-hero-metric { min-width: 110px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .drawer { width: 100vw; }
  .decision-options { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .modal { max-height: 94vh; }
  .modal-body { padding: 15px; }
  .modal-header, .modal-footer { padding-left: 15px; padding-right: 15px; }
  .toast-root { left: 13px; right: 13px; bottom: 13px; }
  .toast { width: 100%; min-width: 0; }
}

/* Interaction polish */
.document-item > svg { width: 14px; height: 14px; color: #98a3b5; flex: 0 0 auto; }
.document-item[data-action] { transition: background .15s, border-color .15s; }
.document-item[data-action]:hover { background: #f8faff; border-color: #cfdbef; }


/* Login experience */
body.login-mode { overflow: hidden; background: #0d1830; }
.app-shell.app-hidden { display: none; }

.login-screen { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(430px, .95fr); min-height: 100vh; background: #f5f7fb; overflow: hidden; transition: opacity .35s ease, visibility .35s ease; }
.login-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.login-visual { position: relative; min-width: 0; padding: 34px 44px 28px; color: #fff; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(circle at 73% 20%, rgba(46, 112, 240, .24), transparent 34%), radial-gradient(circle at 5% 96%, rgba(20, 169, 154, .14), transparent 30%), linear-gradient(145deg, #101e3a 0%, #0a1730 54%, #09132a 100%); }
.login-grid-pattern { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(142,168,215,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(142,168,215,.18) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, black 0%, transparent 86%); }
.login-visual::after { content:""; position: absolute; width: 440px; height: 440px; border-radius: 50%; border: 1px solid rgba(255,255,255,.055); right: -180px; bottom: -170px; box-shadow: 0 0 0 90px rgba(255,255,255,.016), 0 0 0 180px rgba(255,255,255,.012); }
.login-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.login-orb-one { width: 310px; height: 310px; right: 3%; top: -155px; background: radial-gradient(circle, rgba(66,127,255,.29), rgba(66,127,255,0) 68%); }
.login-orb-two { width: 230px; height: 230px; left: 36%; bottom: -140px; background: radial-gradient(circle, rgba(28,189,171,.14), rgba(28,189,171,0) 68%); }
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; }
.login-brand-mark { width: 42px; height: 42px; border-radius: 12px; }
.login-brand-mark svg { width: 29px; height: 29px; }
.login-brand-name { font-size: 21px; line-height: 1.1; font-weight: 700; letter-spacing: 2px; }
.login-brand-sub { margin-top: 5px; color: #6f81a2; font-size: 8px; font-weight: 600; letter-spacing: 2.1px; }
.login-hero { position: relative; z-index: 2; margin: auto 0 0; padding-top: 7vh; max-width: 720px; }
.login-kicker { display: flex; align-items: center; gap: 9px; color: #6f89b5; font-size: 9px; font-weight: 600; letter-spacing: 1.7px; }
.login-kicker span { width: 24px; height: 1px; background: #597dcc; }
.login-hero h1 { margin: 20px 0 0; font-size: clamp(36px, 4.05vw, 59px); line-height: 1.24; letter-spacing: -2.2px; font-weight: 700; color: #f7f9ff; }
.login-hero h1 em { font-style: normal; color: #7ea5ff; background: linear-gradient(100deg, #80a8ff, #4f8bff 56%, #66d1c3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.login-hero p { margin-top: 18px; color: #8d9db8; font-size: 12px; line-height: 1.8; max-width: 540px; }
.login-process { position: relative; z-index: 2; margin-top: clamp(30px, 5vh, 58px); display: flex; align-items: flex-start; gap: 8px; max-width: 760px; }
.login-process-item { width: 121px; min-width: 0; flex: 0 1 121px; }
.login-process-index { display: block; color: #506482; font-size: 8px; font-weight: 700; letter-spacing: 1px; margin-bottom: 9px; }
.login-process-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: rgba(66,126,248,.1); border: 1px solid rgba(104,152,255,.16); color: #72a0ff; margin-bottom: 10px; }
.login-process-icon svg { width: 16px; height: 16px; }
.login-process-item strong { display: block; color: #dce6f8; font-size: 10px; font-weight: 600; }
.login-process-item div span { display: block; margin-top: 4px; color: #657994; font-size: 8px; line-height: 1.5; white-space: nowrap; }
.login-process-line { flex: 1; height: 1px; margin-top: 43px; background: linear-gradient(90deg, rgba(105,150,236,.34), rgba(105,150,236,.05)); }
.login-proof { position: relative; z-index: 2; margin-top: clamp(32px, 5vh, 58px); padding-top: 22px; display: flex; gap: clamp(34px, 5vw, 78px); border-top: 1px solid rgba(255,255,255,.075); max-width: 620px; }
.login-proof div { display: flex; flex-direction: column; gap: 5px; }
.login-proof strong { color: #f2f6ff; font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -.2px; }
.login-proof span { color: #657997; font-size: 8px; }
.login-visual-footer { position: relative; z-index: 2; margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; color: #526681; font-size: 8px; }
.login-secure { display: inline-flex; align-items: center; gap: 6px; color: #7a8ca7; }
.login-secure svg { width: 13px; height: 13px; color: #55b6a9; }

.login-panel { position: relative; min-width: 0; padding: 30px clamp(32px, 4.3vw, 70px) 24px; display: flex; flex-direction: column; background: #f7f8fc; }
.login-panel::before { content:""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0, rgba(65,116,232,.075), transparent 34%), linear-gradient(180deg, rgba(255,255,255,.62), transparent 35%); }
.login-panel-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9aa4b4; font-size: 8px; }
.login-demo-badge { height: 24px; padding: 0 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; color: #8d681f; background: #fff8e8; border: 1px solid #f0ddb0; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.login-demo-badge i { width: 5px; height: 5px; border-radius: 50%; background: #dfa02f; box-shadow: 0 0 0 3px rgba(223,160,47,.12); }
.login-card-wrap { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; padding: 25px 0; }
.login-card { width: min(100%, 420px); padding: 29px 31px 24px; border-radius: 20px; background: rgba(255,255,255,.96); border: 1px solid rgba(225,230,239,.9); box-shadow: 0 24px 70px rgba(20,38,73,.11), 0 2px 8px rgba(20,38,73,.035); animation: login-card-in .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes login-card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.login-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.login-card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #2864e8; background: linear-gradient(145deg, #edf3ff, #f7f9ff); border: 1px solid #e0e9fb; flex: 0 0 auto; }
.login-card-icon svg { width: 20px; height: 20px; }
.login-card-heading h2 { margin: 0; color: #19253a; font-size: 23px; line-height: 1.25; letter-spacing: -.5px; }
.login-card-heading p { margin: 5px 0 0; color: #929cad; font-size: 9px; }
.login-form { display: flex; flex-direction: column; gap: 15px; }
.login-field label { display: block; margin-bottom: 7px; color: #526078; font-size: 9px; font-weight: 600; }
.login-input-wrap { position: relative; }
.login-input-wrap > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #9ba5b6; pointer-events: none; }
.login-input-wrap input { width: 100%; height: 43px; padding: 0 42px 0 39px; color: #1f2b3e; background: #fbfcfe; border: 1px solid #e0e4ec; border-radius: 9px; font-size: 11px; outline: 0; transition: .16s; }
.login-input-wrap input::placeholder { color: #abb3bf; }
.login-input-wrap input:focus { background: #fff; border-color: #8aaaf0; box-shadow: 0 0 0 3px rgba(40,100,232,.08); }
.login-input-wrap.has-error input { border-color: #e7908b; box-shadow: 0 0 0 3px rgba(224,82,82,.08); }
.login-password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 29px; height: 29px; border: 0; border-radius: 6px; display: grid; place-items: center; color: #8a95a7; background: transparent; }
.login-password-toggle:hover { color: #526078; background: #f1f4f8; }
.login-password-toggle svg { width: 16px; height: 16px; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -2px; }
.login-remember { display: inline-flex; align-items: center; gap: 7px; color: #798598; font-size: 8px; cursor: pointer; user-select: none; }
.login-remember input { position: absolute; opacity: 0; pointer-events: none; }
.login-remember > span { width: 14px; height: 14px; border-radius: 4px; border: 1px solid #ccd3df; background: #fff; position: relative; transition: .15s; }
.login-remember input:checked + span { background: #2864e8; border-color: #2864e8; }
.login-remember input:checked + span::after { content:""; position: absolute; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); left: 3px; top: 3px; }
.login-options button { border: 0; background: transparent; color: #5478bd; font-size: 8px; padding: 0; }
.login-options button:hover { color: #2864e8; }
.login-error { display: none; margin-top: -3px; padding: 8px 10px; color: #b94b47; background: #fff4f3; border: 1px solid #f2d5d2; border-radius: 7px; font-size: 8px; line-height: 1.5; }
.login-error.show { display: block; }
.login-submit { height: 43px; margin-top: 1px; border: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: linear-gradient(100deg, #2864e8, #3273f3); box-shadow: 0 7px 18px rgba(40,100,232,.24); font-size: 11px; font-weight: 600; transition: .18s; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(40,100,232,.3); }
.login-submit:active { transform: translateY(0); }
.login-submit:disabled { opacity: .75; pointer-events: none; }
.login-submit svg { width: 16px; height: 16px; }
.login-divider { position: relative; text-align: center; margin: 20px 0 13px; }
.login-divider::before { content:""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #edf0f5; }
.login-divider span { position: relative; padding: 0 10px; color: #a2aab8; background: #fff; font-size: 8px; }
.demo-login-button { width: 100%; min-height: 57px; padding: 9px 12px; border: 1px solid #dfe7f5; background: linear-gradient(100deg, #f7faff, #fbfcff); border-radius: 10px; display: flex; align-items: center; gap: 10px; text-align: left; transition: .16s; }
.demo-login-button:hover { border-color: #b9ccef; background: #f5f8ff; box-shadow: 0 5px 15px rgba(40,100,232,.06); }
.demo-login-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #4b78d7; background: #eaf1ff; flex: 0 0 auto; }
.demo-login-icon svg { width: 17px; height: 17px; }
.demo-login-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.demo-login-copy strong { color: #30415e; font-size: 9px; font-weight: 600; }
.demo-login-copy span { color: #8e99aa; font-size: 8px; }
.demo-login-arrow { width: 15px; height: 15px; color: #7d91b3; flex: 0 0 auto; }
.login-credentials { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #a0a9b8; font-size: 7px; }
.login-credentials code { padding: 3px 6px; border-radius: 4px; color: #63718a; background: #f2f5f9; font-size: 7px; font-family: "Consolas", monospace; }
.login-panel-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a1a9b7; font-size: 7px; }
.login-panel-footer span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.login-panel-footer i { width: 5px; height: 5px; border-radius: 50%; background: #24b29e; box-shadow: 0 0 0 3px rgba(36,178,158,.11); }
.top-profile { cursor: pointer; }

@media (max-width: 1180px) {
  .login-screen { grid-template-columns: minmax(0, 1.2fr) minmax(400px, .9fr); }
  .login-visual { padding: 30px 35px 25px; }
  .login-hero h1 { font-size: clamp(34px, 4.2vw, 48px); }
  .login-process { gap: 5px; }
  .login-process-item { flex-basis: 108px; }
  .login-process-item div span { font-size: 7px; }
  .login-panel { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 900px) {
  .login-screen { display: block; overflow-y: auto; background: #f5f7fb; }
  .login-visual { height: 205px; min-height: 205px; padding: 22px 24px; display: block; }
  .login-grid-pattern { opacity: .12; }
  .login-orb-one { width: 220px; height: 220px; right: -60px; top: -110px; }
  .login-brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .login-brand-mark svg { width: 25px; height: 25px; }
  .login-brand-name { font-size: 18px; }
  .login-hero { margin: 0; padding-top: 25px; }
  .login-kicker { font-size: 7px; letter-spacing: 1.1px; }
  .login-kicker span { width: 16px; }
  .login-hero h1 { margin-top: 11px; font-size: 28px; line-height: 1.24; letter-spacing: -1px; }
  .login-hero p, .login-process, .login-proof, .login-visual-footer { display: none; }
  .login-panel { min-height: calc(100vh - 205px); padding: 0 18px 20px; display: flex; }
  .login-panel-top { display: none; }
  .login-card-wrap { padding: 22px 0 14px; }
  .login-card { width: min(100%, 440px); padding: 27px 28px 23px; }
  .login-panel-footer { padding: 0 3px; }
}
@media (max-width: 560px) {
  .login-visual { height: 176px; min-height: 176px; padding: 18px 18px; }
  .login-hero { padding-top: 17px; }
  .login-hero h1 { font-size: 24px; }
  .login-kicker { display: none; }
  .login-panel { min-height: calc(100vh - 176px); padding: 0 12px 15px; }
  .login-card-wrap { padding-top: 14px; }
  .login-card { padding: 24px 20px 21px; border-radius: 16px; box-shadow: 0 14px 45px rgba(20,38,73,.09); }
  .login-card-heading { margin-bottom: 20px; }
  .login-card-heading h2 { font-size: 21px; }
  .login-card-icon { width: 38px; height: 38px; }
  .login-panel-footer { font-size: 7px; }
  .login-panel-footer span:first-child { display: none; }
  .login-panel-footer { justify-content: center; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .login-visual { height: 140px; min-height: 140px; }
  .login-hero { padding-top: 12px; }
  .login-hero h1 { font-size: 22px; display: none; }
  .login-panel { min-height: calc(100vh - 140px); }
}

.login-card.login-shake { animation: login-shake .38s ease; }
@keyframes login-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.popover-divider { height: 1px; background: #eef1f5; margin: 2px 0; }
.logout-item strong { color: #c64d4d !important; }
.logout-icon { color: #c64d4d !important; background: #fff1f0 !important; }

/* Neutral secure workspace badge */
.login-demo-badge { color: #416b9e; background: #f1f7ff; border-color: #d8e7fa; }
.login-demo-badge i { background: #4b88e6; box-shadow: 0 0 0 3px rgba(75,136,230,.12); }

/* Platform branding adjustments */
.brand-name { font-size: 15.5px; letter-spacing: .3px; white-space: nowrap; }
.login-brand-name { font-size: 17px; letter-spacing: .7px; white-space: nowrap; }

.config-hidden { display: none !important; }
