:root {
  --bg: #f4f6fb;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --border: rgba(21, 42, 88, 0.08);
  --text: #16244f;
  --muted: #7382a4;
  --blue: #3a7bff;
  --blue-deep: #245de9;
  --green: #1faa67;
  --red: #df4b52;
  --shadow: 0 24px 60px rgba(23, 44, 93, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(73, 127, 255, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(97, 208, 184, 0.13), transparent 22%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 32px;
  padding: 36px;
}
.auth-panel, .auth-art, .surface-card, .auth-card, .persona-card, .hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.auth-panel {
  border-radius: 32px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand-lockup p, .auth-subtitle, .field span, .empty-state, .persona-card p, .flow-header p, .review-box p, .upload-form p, .sidebar-plan span, .secure-card span, .activity-item span, .metric-card small {
  color: var(--muted);
}
.brand-logo { width: 176px; margin-bottom: 20px; }
.auth-card { border-radius: 28px; padding: 32px; }
.auth-card h1, .hero-card h1, .flow-header h1, .persona-card h1 { font-family: "Sora", sans-serif; margin: 0 0 12px; }
.auth-form, .check-form, .upload-form, .modal-fields { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field input, .field select, .topbar-search {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(28, 55, 116, 0.1);
  background: rgba(255, 255, 255, 0.94);
  padding: 16px 18px;
  color: var(--text);
}
.primary-button, .ghost-button, .link-button {
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}
.primary-button, .link-button {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 18px 30px rgba(58, 123, 255, 0.24);
}
.ghost-button {
  background: rgba(58, 123, 255, 0.08);
  color: var(--blue-deep);
}
.primary-button:hover, .ghost-button:hover, .link-button:hover { transform: translateY(-1px); }
.upload-file-input {
  width: 100%;
  border: 1px solid rgba(58, 123, 255, 0.26);
  border-radius: 18px;
  background: #ffffff;
  color: #5a6a8f;
  padding: 10px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.upload-file-input::file-selector-button {
  border: 1px solid rgba(58, 123, 255, 0.9);
  border-radius: 12px;
  background: #ffffff;
  color: #2f5fe7;
  font-weight: 700;
  padding: 10px 16px;
  margin-right: 12px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 6px 16px rgba(58, 123, 255, 0.1);
}
.upload-file-input::-webkit-file-upload-button {
  border: 1px solid rgba(58, 123, 255, 0.9);
  border-radius: 12px;
  background: #ffffff;
  color: #2f5fe7;
  font-weight: 700;
  padding: 10px 16px;
  margin-right: 12px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 6px 16px rgba(58, 123, 255, 0.1);
}
.upload-file-input:hover::file-selector-button,
.upload-file-input:hover::-webkit-file-upload-button {
  background: #f5f8ff;
  color: #224dd6;
}
.form-error {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(223, 75, 82, 0.08);
  color: var(--red);
  margin-bottom: 16px;
}
.auth-switch { margin-top: 16px; }
.auth-art {
  border-radius: 36px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  align-items: center;
}
.auth-art img { border-radius: 24px; }

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}
.sidebar {
  padding: 24px 18px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}
.sidebar-brand img { width: 170px; margin: 10px 10px 30px; }
.sidebar-nav { display: grid; gap: 8px; }
.nav-item {
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 600;
}
.nav-item.active, .nav-item:hover {
  color: var(--blue-deep);
  background: rgba(58, 123, 255, 0.1);
}
.sidebar-plan {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 8px;
}
.sidebar-plan a { color: var(--blue-deep); font-weight: 700; }
.workspace { padding: 24px; }
.workspace-topbar, .hero-card, .content-grid, .approval-card, .approval-main, .approval-stats, .approval-actions, .flow-grid, .persona-summary {
  display: flex;
  gap: 18px;
}
.workspace-topbar {
  justify-content: space-between;
  align-items: center;
}
.topbar-search {
  max-width: 720px;
  color: #9aa6c0;
}
.topbar-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.topbar-profile span { display: block; color: var(--muted); font-size: 14px; }
.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5b174, #d4663d);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.hero-card {
  margin-top: 18px;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
  padding: 30px 32px;
}
.hero-card p { color: var(--muted); margin: 0; }
.hero-emblem {
  min-width: 180px;
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--blue-deep);
  font-weight: 800;
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(58, 123, 255, 0.1), transparent 64%);
}
.content-grid { margin-top: 18px; align-items: flex-start; }
.main-column { flex: 1; display: grid; gap: 18px; }
.rail-column { width: 320px; display: grid; gap: 18px; }
.surface-card {
  border-radius: 26px;
  padding: 24px;
}
.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.card-title-row h2, .surface-card h3, .surface-card h2 { margin: 0 0 8px; }
.pill {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(114, 91, 255, 0.1);
  color: #705eff;
  font-size: 13px;
  font-weight: 700;
}
.check-form {
  margin-top: 18px;
  grid-template-columns: 1fr 220px 190px;
  align-items: end;
}
.company-results {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.company-option, .document-item, .activity-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(22, 36, 79, 0.08);
  background: rgba(249, 251, 255, 0.9);
}
.company-option button {
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-weight: 700;
  cursor: pointer;
}
.approval-card {
  justify-content: space-between;
  align-items: center;
}
.approval-main { align-items: center; flex: 1; }
.approval-icon, .decision-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
}
.approval-icon { color: #fff; background: linear-gradient(135deg, #2cb76b, #129b57); }
.approval-stats { min-width: 250px; justify-content: space-between; }
.approval-stats span, .metric-card span, .persona-summary span { display: block; color: var(--muted); font-size: 14px; }
.approval-stats strong, .metric-card strong, .persona-summary strong { font-size: 22px; }
.approval-actions { align-items: center; }
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.metric-card strong { display: block; margin: 12px 0 6px; }
.activity-list, .quick-links, .document-list { display: grid; gap: 12px; }
.activity-dot {
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border-radius: 50%;
  background: #9aa6c0;
}
.activity-dot.approved { background: var(--green); }
.activity-dot.rejected { background: var(--red); }
.quick-links a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(22, 36, 79, 0.06);
}
.secure-card { display: grid; gap: 8px; }
.modal, .decision-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
}
.modal.hidden, .decision-modal.hidden, .modal-state.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.35);
  backdrop-filter: blur(6px);
}
.modal-panel, .decision-card {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 30px 100px rgba(16, 30, 66, 0.18);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.loading-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(58, 123, 255, 0.12);
  margin: 22px 0 16px;
}
.loading-bar {
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ba2ff, #285eef);
  animation: loading 1.1s linear infinite;
}
.modal-company { padding: 12px 0 4px; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.decision-card { text-align: center; }
.decision-icon { margin: 0 auto 18px; color: #fff; }
.decision-icon.approved { background: linear-gradient(135deg, #20b968, #159c57); }
.decision-icon.rejected { background: linear-gradient(135deg, #ef6b73, #cf3944); }
.flow-shell, .persona-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.flow-header { margin-bottom: 18px; }
.back-link { color: var(--blue-deep); font-weight: 700; }
.flow-grid { align-items: flex-start; }
.flow-grid > * { flex: 1; }
.upload-field input {
  padding: 12px 14px;
  background: rgba(244, 246, 251, 0.88);
}
.review-box {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 18px;
}
.financial-doc-list {
  margin-top: 18px;
}
.removable-document-item {
  position: relative;
  padding-right: 54px;
}
.document-delete-form {
  position: absolute;
  top: 10px;
  right: 12px;
  margin: 0;
}
.document-delete-button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(225, 93, 105, 0.28);
  background: #fff;
  color: #d54552;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(213, 69, 82, 0.12);
}
.document-delete-button:hover {
  background: rgba(239, 107, 115, 0.08);
}
.financial-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.financial-kpi-grid > div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(216, 226, 248, 0.95);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(245, 248, 255, 0.96));
}
.financial-kpi-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.financial-kpi-grid strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}
.review-success { background: rgba(31, 170, 103, 0.08); }
.review-warning { background: rgba(223, 75, 82, 0.08); }
.manual-review-copy {
  margin: -6px 0 0;
  font-weight: 700;
  color: #25406e;
}
.manual-review-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.error-review-dialog {
  text-align: center;
}
.error-review-dialog .decision-icon {
  margin: 0 auto 16px;
}
.error-review-modal .processing-backdrop {
  background: rgba(24, 29, 47, 0.42);
}
.manual-review-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 107, 115, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.99));
}
.manual-review-badge {
  background: linear-gradient(135deg, #ef6b73, #cf3944);
  box-shadow: 0 24px 48px rgba(202, 63, 76, 0.22);
}
.missing-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.persona-card {
  max-width: 860px;
  margin: 56px auto 0;
  padding: 38px 38px 34px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(85, 132, 255, 0.09), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
}
.persona-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
  gap: 16px;
}
.persona-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.persona-hero-copy {
  max-width: 560px;
}
.persona-brand-panel {
  position: relative;
  width: 196px;
  height: 156px;
  flex: 0 0 196px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.persona-brand-halo {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(103, 137, 231, 0.12);
  background: rgba(255, 255, 255, 0.24);
}
.persona-brand-halo-a {
  inset: 8px 24px 8px 34px;
}
.persona-brand-halo-b {
  inset: 20px 40px 20px 50px;
}
.persona-brand-tile {
  position: absolute;
  right: 26px;
  top: 24px;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.98));
  border: 1px solid rgba(88, 129, 255, 0.14);
  box-shadow:
    0 22px 48px rgba(65, 101, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  padding: 18px;
}
.persona-brand-tile img {
  width: 100%;
  height: auto;
  display: block;
}
.persona-note {
  margin: 4px 0 26px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(58, 123, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(255, 255, 255, 0.98)),
    linear-gradient(90deg, rgba(66, 112, 255, 0.06), rgba(54, 197, 140, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.persona-note strong {
  display: block;
  margin-bottom: 6px;
  color: #24406f;
}
.persona-note p {
  margin: 0;
}
.approval-final-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(49, 186, 112, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.99));
}
.final-approval-badge {
  width: 126px;
  height: 126px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #28be70, #149458);
  color: #fff;
  font-size: 58px;
  font-weight: 800;
  box-shadow: 0 24px 48px rgba(22, 142, 84, 0.24);
}
.processing-modal[hidden] {
  display: none;
}
.processing-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
}
.processing-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 54, 0.36);
  backdrop-filter: blur(8px);
}
.processing-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  padding: 30px 30px 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(84, 129, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.99));
  box-shadow: 0 32px 70px rgba(18, 38, 88, 0.18);
  border: 1px solid rgba(218, 228, 251, 0.95);
}
.processing-dialog h2 {
  margin: 16px 0 10px;
  font-size: 28px;
  line-height: 1.08;
}
.processing-dialog p {
  margin: 0 0 22px;
  color: #627397;
}
.processing-meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(220, 229, 250, 0.9);
  overflow: hidden;
}
.processing-meter-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5f8fff, #275bef);
  box-shadow: 0 10px 20px rgba(58, 123, 255, 0.24);
  transition: width 120ms linear;
}
.processing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.processing-meta strong {
  font-size: 18px;
  color: #1f3462;
}
.processing-meta span {
  color: #5e7095;
  font-size: 13px;
}
body.modal-open {
  overflow: hidden;
}

@keyframes loading {
  from { transform: translateX(-120%); }
  to { transform: translateX(260%); }
}

@media (max-width: 1100px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content-grid, .flow-grid { flex-direction: column; }
  .rail-column { width: 100%; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; padding: 20px; }
  .auth-art { display: none; }
  .workspace { padding: 18px; }
  .workspace-topbar, .hero-card, .approval-card, .approval-main, .approval-stats, .approval-actions { flex-direction: column; align-items: flex-start; }
  .check-form, .split-fields, .persona-summary { grid-template-columns: 1fr; }
  .financial-kpi-grid { grid-template-columns: 1fr; }
  .manual-review-actions {
    flex-direction: column;
  }
  .persona-hero {
    flex-direction: column;
  }
  .persona-brand-panel {
    display: none;
  }
  .metric-row { grid-template-columns: 1fr; }
}

html:has(.dashboard-demo),
body:has(.dashboard-demo) {
  height: 100%;
  overflow: hidden;
}

body:has(.dashboard-demo) {
  background:
    radial-gradient(circle at 22% 0%, rgba(80, 129, 255, 0.08), transparent 24%),
    radial-gradient(circle at 90% 100%, rgba(112, 208, 183, 0.08), transparent 20%),
    #fbfcff;
}

.dashboard-demo {
  grid-template-columns: 292px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.demo-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(252,253,255,0.96));
  border-right: 1px solid rgba(30, 55, 111, 0.06);
  padding: 24px 18px 20px;
  overflow: auto;
}
.demo-brand img { width: 148px; margin: 6px 14px 30px; }
.demo-nav { gap: 7px; }
.demo-nav .nav-item {
  position: relative;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 10px 14px 10px 34px;
  font-size: 13px;
  font-weight: 700;
  color: #506183;
  border-radius: 14px;
  white-space: nowrap;
}
.demo-nav .nav-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 4px;
  border: 1.7px solid #97a3be;
  opacity: 0.95;
}
.demo-nav .nav-item.active {
  background: linear-gradient(180deg, #f1f5ff, #eff4ff);
  color: #2d67f4;
  box-shadow: inset 0 0 0 1px rgba(68, 122, 255, 0.08);
}
.demo-nav .nav-item.active::before {
  background: linear-gradient(180deg, #5c92ff, #2d67f4);
  border-color: transparent;
}
.demo-plan {
  margin-top: auto;
  padding: 16px 14px 14px;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(20, 45, 95, 0.05);
}
.demo-plan span,
.demo-plan a {
  white-space: nowrap;
}
.plan-badge {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #53a4ff, #635dff);
  margin-bottom: 10px;
}
.demo-plan strong { font-size: 14px; }
.demo-plan span, .demo-plan a { font-size: 12px; }
.demo-workspace {
  padding: 24px 22px 20px 18px;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}
.demo-topbar { gap: 16px; }
.demo-search {
  height: 44px;
  max-width: none;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(32, 56, 106, 0.07);
  box-shadow: 0 10px 28px rgba(18, 36, 78, 0.04);
  color: #9aa5bf;
  font-size: 13px;
}
.search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid #96a4c0;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #96a4c0;
  transform: rotate(45deg);
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.notif-chip {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(31, 54, 103, 0.07);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(19, 37, 79, 0.04);
}
.notif-bell {
  width: 12px;
  height: 12px;
  border: 1.8px solid #223c7a;
  border-radius: 6px 6px 4px 4px;
  position: relative;
}
.notif-bell::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -4px;
  width: 4px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  border: 1.8px solid #223c7a;
  border-bottom: 0;
}
.notif-count {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4b62;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.demo-profile {
  gap: 11px;
  padding: 7px 13px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(18, 36, 78, 0.04);
}
.profile-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #f0c39b 0 28%, transparent 29%),
    radial-gradient(circle at 50% 88%, #4067c8 0 36%, transparent 37%),
    linear-gradient(180deg, #513228, #7a5234);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.45);
}
.demo-profile strong { font-size: 13px; }
.demo-profile span { font-size: 11px; }
.profile-caret {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #8290ae;
  border-bottom: 1.8px solid #8290ae;
  transform: rotate(45deg);
  margin-left: 6px;
}
.demo-hero {
  margin-top: 16px;
  padding: 24px 28px;
  border-radius: 22px;
  min-height: 112px;
  overflow: hidden;
}
.hero-copy h1 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-copy p { font-size: 14px; }
.hero-illustration { position: relative; width: 210px; height: 90px; }
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(122, 148, 244, 0.16);
}
.hero-ring-a { width: 140px; height: 140px; right: 26px; top: -28px; }
.hero-ring-b { width: 100px; height: 100px; right: 84px; top: -6px; }
.hero-shield {
  position: absolute;
  right: 68px;
  top: 14px;
  width: 50px;
  height: 56px;
  border-radius: 18px 18px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,248,255,0.82));
  border: 1px solid rgba(89, 131, 255, 0.12);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(74, 111, 213, 0.07);
}
.hero-shield-core {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #5f86ff;
  position: relative;
}
.hero-shield-core::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #5f86ff;
  border-bottom: 2px solid #5f86ff;
  transform: rotate(40deg);
}
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 16px;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.demo-main,
.demo-rail {
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding-right: 4px;
  padding-bottom: 28px;
  scroll-padding-bottom: 28px;
}

.demo-main {
  display: grid;
  gap: 14px;
  align-content: start;
}

.demo-rail {
  width: 286px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.demo-main::-webkit-scrollbar,
.demo-rail::-webkit-scrollbar,
.demo-sidebar::-webkit-scrollbar {
  width: 10px;
}

.demo-main::-webkit-scrollbar-thumb,
.demo-rail::-webkit-scrollbar-thumb,
.demo-sidebar::-webkit-scrollbar-thumb {
  background: rgba(123, 141, 184, 0.26);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.demo-main::-webkit-scrollbar-track,
.demo-rail::-webkit-scrollbar-track,
.demo-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.demo-check-card,
.demo-approval-card,
.funding-prompt-card,
.demo-activity-card,
.demo-links-card,
.demo-secure-card,
.demo-metric-card {
  border-radius: 20px;
  background: rgba(255,255,255,0.93);
  border: 1px solid rgba(30, 55, 111, 0.06);
  box-shadow: 0 14px 40px rgba(20, 45, 95, 0.05);
}
.demo-check-card { padding: 18px 18px 14px; }
.demo-card-title h2, .funding-prompt-card h2 { font-size: 17px; margin-bottom: 4px; }
.demo-card-title p, .funding-prompt-card p { font-size: 12px; }
.demo-pill { padding: 5px 9px; font-size: 11px; }
.demo-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.9fr);
  gap: 16px;
  margin-top: 14px;
}
.section-mini-title {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #5e6d8b;
}
.demo-search-fields { margin-top: 14px; display: grid; gap: 12px; }
.demo-search-fields .field span, .modal-fields .field span {
  font-size: 11px;
  font-weight: 700;
  color: #63718f;
}
.demo-search-fields .field input, .demo-search-fields .field select {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 13px;
}
.demo-inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: end;
}
.demo-search-button {
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 13px;
}
.insurer-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.insurer-tile {
  min-height: 122px;
  border-radius: 16px;
  border: 1px solid rgba(34, 61, 118, 0.08);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  padding: 14px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.insurer-tile strong { font-size: 13px; line-height: 1.3; color: #23325b; }
.insurer-selected { box-shadow: inset 0 0 0 1.5px rgba(67, 113, 255, 0.4); }
.insurer-logo { width: 24px; height: 24px; border-radius: 50%; display: block; }
.insurer-euler { background: linear-gradient(180deg, #1b5de4, #0a3b9b); }
.insurer-atradius { background: linear-gradient(180deg, #ff5d68, #d62531); }
.insurer-both { background: linear-gradient(180deg, #b194ff, #7d67ff); }
.insurer-radio {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.8px solid #c1cadc;
  display: block;
}
.insurer-radio.on {
  border-color: #4478ff;
  box-shadow: inset 0 0 0 4px #4478ff;
}
.demo-results { margin-top: 12px; }
.demo-results .company-option {
  align-items: center;
  padding: 13px 16px;
  border-radius: 14px;
}
.demo-results .company-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}
.demo-results .company-option > div { font-size: 12px; color: #607090; }
.demo-approval-card { padding: 18px 18px 16px; }
.result-card {
  width: 100%;
}
.demo-approval-main { gap: 14px; align-items: center; min-width: 0; }
.demo-approval-icon {
  width: 48px;
  height: 48px;
  font-size: 22px;
  background: linear-gradient(180deg, #31c172, #1ea85f);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.2);
}
.is-rejected .demo-approval-icon {
  background: linear-gradient(180deg, #ef6e77, #d6424c);
}
.approval-placeholder .demo-approval-icon {
  background: linear-gradient(180deg, #eef3ff, #eef3ff);
  color: #9aa7c0;
}
.demo-eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #7a89a7;
}
.demo-approval-card h3 { margin: 0 0 4px; font-size: 14px; }
.demo-approval-card p { margin: 0; font-size: 13px; color: #5f6f8d; }
.approval-empty-shell {
  min-height: 132px;
  display: flex;
  align-items: center;
}
.approval-empty-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.result-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}
.result-card-row {
  width: 100%;
}
.result-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 18px;
  align-items: start;
  width: 100%;
}
.insurer-card-row-live {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
}
.result-card-bottom {
  padding-top: 14px;
  border-top: 1px solid rgba(31, 54, 103, 0.06);
  display: block;
  width: 100%;
}
.demo-approval-stats {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 110px;
  gap: 18px;
  align-items: start;
}
.demo-approval-stats > div { min-width: 0; }
.demo-approval-stats span {
  font-size: 11px;
  white-space: nowrap;
}
.demo-approval-stats strong {
  margin-top: 4px;
  display: block;
  font-size: 20px;
  color: #1f9159;
  white-space: normal;
}
.demo-approval-stats > div:nth-child(2) strong,
.demo-approval-stats > div:nth-child(3) strong,
.is-rejected .demo-approval-stats strong {
  color: #23406f;
  font-size: 22px;
}
.insurer-limit-chip small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #6f7fa1;
}
.insurer-limit-chip-large {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  align-content: start;
  min-height: 164px;
  width: 100%;
}
.insurer-limit-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.insurer-limit-head span {
  display: block;
  font-size: 12px;
  color: #6f7fa1;
}
.insurer-limit-head strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: #20325d;
}
.insurer-term-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.insurer-term-grid label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  color: #8a97b2;
}
.insurer-term-grid b {
  font-size: 12px;
  color: #23345e;
}
.declined-chip {
  grid-column: 1 / -1;
}
.result-funding-panel {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.result-funding-copy h2 {
  margin: 0 0 4px;
  font-size: 17px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
.result-funding-copy p {
  margin: 0;
  font-size: 12px;
  color: #607090;
  text-align: center;
}
.demo-funding-actions {
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: center;
}
.demo-funding-actions .ghost-button,
.demo-funding-actions .primary-button,
.demo-funding-actions .link-button,
.timeline-button {
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  min-width: 172px;
}
.checklist-button {
  background: rgba(58, 123, 255, 0.12);
}
.timeline-button {
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(34, 61, 118, 0.07);
  background: #fff;
  color: #23406f;
  font-weight: 700;
}
.demo-metric-row { gap: 14px; }
.demo-metric-card { padding: 16px 16px 12px; }
.metric-top { display: flex; gap: 10px; align-items: center; }
.metric-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: #edf3ff;
  flex: 0 0 auto;
}
.metric-icon.green { background: rgba(49, 193, 114, 0.14); }
.metric-icon.violet { background: rgba(124, 103, 255, 0.12); }
.metric-icon.blue { background: rgba(61, 119, 255, 0.12); }
.metric-icon.pink { background: rgba(255, 82, 162, 0.12); }
.demo-metric-card .metric-top span { font-size: 11px; }
.demo-metric-card .metric-top small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}
.demo-metric-card strong {
  margin: 14px 0 4px;
  font-size: 25px;
  color: #1f315c;
}
.demo-metric-card em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #1ca95d;
}
.demo-metric-card em.negative { color: #ef4564; }
.sparkline {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  overflow: visible;
}
.sparkline path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spark-green path { stroke: #3f7cff; }
.spark-violet path { stroke: #8a63ff; }
.spark-blue path { stroke: #4b82ff; }
.spark-pink path { stroke: #ff4ea2; }
.demo-activity-card,
.demo-links-card { padding: 18px 16px; }
.demo-activity-card h3,
.demo-links-card h3 { margin-bottom: 14px; font-size: 15px; }
.demo-activity-list { gap: 10px; }
.demo-activity-item {
  padding: 0;
  border: 0;
  background: transparent;
  align-items: flex-start;
}
.demo-activity-item time {
  margin-left: auto;
  padding-top: 1px;
  font-size: 10px;
  color: #93a0b7;
  white-space: nowrap;
}
.activity-text { display: grid; gap: 3px; }
.activity-text strong { font-size: 12px; color: #213560; }
.activity-text span { font-size: 12px; color: #7c8aa8; }
.activity-dot { width: 15px; height: 15px; margin-top: 3px; }
.activity-dot.neutral {
  background: #fff;
  border: 2px solid #4a7eff;
}
.demo-quick-links a {
  padding: 11px 0;
  font-size: 12px;
  color: #647391;
}
.demo-quick-links a::after {
  content: "›";
  color: #8c99b3;
  font-size: 16px;
  line-height: 1;
}
.demo-secure-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 26px 1fr 12px;
  gap: 12px;
  align-items: center;
}
.secure-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, #edf2ff, #f5f8ff);
  border: 1px solid rgba(61, 119, 255, 0.08);
  position: relative;
}
.secure-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 8px;
  height: 10px;
  border: 1.8px solid #657aab;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.secure-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1fbe62;
  justify-self: end;
}
.demo-secure-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}
.demo-secure-card span { font-size: 12px; }
@media (max-width: 1280px) {
  .demo-check-layout { grid-template-columns: 1fr; }
  .result-card-top {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .insurer-card-row-live {
    grid-template-columns: 1fr;
  }
  .demo-approval-stats,
  .result-funding-panel {
    min-width: 0;
    width: 100%;
  }
  .demo-approval-stats {
    grid-template-columns: 1fr 120px 110px;
  }
  .result-funding-panel {
    min-width: 0;
    justify-items: start;
  }
  .result-funding-copy p {
    text-align: left;
  }
  .result-funding-copy h2 {
    text-align: left;
  }
  .demo-funding-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 1100px) {
  html:has(.dashboard-demo),
  body:has(.dashboard-demo) {
    overflow: auto;
  }
  .dashboard-demo {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .demo-sidebar { display: none; }
  .demo-workspace {
    height: auto;
    display: block;
    overflow: visible;
  }
  .demo-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .demo-main,
  .demo-rail {
    width: 100%;
    height: auto;
    overflow: visible;
  }
}
@media (max-width: 820px) {
  .demo-workspace { padding: 16px; }
  .demo-topbar { align-items: stretch; }
  .topbar-right { justify-content: space-between; }
  .demo-hero { min-height: auto; }
  .hero-illustration { width: 100%; height: 84px; }
  .demo-inline-fields { grid-template-columns: 1fr; }
  .result-funding-copy h2,
  .demo-approval-stats span,
  .demo-approval-stats strong {
    white-space: normal;
  }
}

.insurer-logo-image {
  width: 88px;
  height: 24px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.insurer-logo-atradius {
  width: 76px;
}

.insurer-logo-stack {
  display: flex;
  align-items: center;
  gap: 6px;
}

.insurer-logo-image.mini {
  width: 44px;
  height: 18px;
}

.insurer-limit-stack {
  display: grid;
  gap: 10px;
  min-width: 320px;
}

.insurer-limit-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(34, 61, 118, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.9);
}

.insurer-limit-logo {
  width: 74px;
  height: 20px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.insurer-limit-logo.atradius {
  width: 62px;
}

.insurer-limit-chip span {
  display: block;
  white-space: nowrap;
}

.insurer-limit-chip strong {
  margin-top: 2px;
  font-size: 18px;
  color: #1f315c;
  white-space: nowrap;
}

.result-funding-copy h2 {
  white-space: normal;
}

.modal-company-premium {
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(31, 54, 103, 0.08);
  margin-bottom: 14px;
}

.modal-insurer-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.modal-insurer-pill {
  min-height: 68px;
  border-radius: 16px;
  border: 1px solid rgba(34, 61, 118, 0.08);
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  justify-items: start;
  color: #22345d;
  font-weight: 700;
}

.modal-insurer-pill.selected {
  box-shadow: inset 0 0 0 1.5px rgba(67, 113, 255, 0.45);
  background: rgba(247, 250, 255, 0.96);
}

.modal-insurer-logo {
  width: 88px;
  height: 22px;
  object-fit: contain;
  object-position: left center;
}

.modal-insurer-logo.atradius {
  width: 76px;
}

.modal-insurer-both-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(58, 123, 255, 0.12), rgba(125, 103, 255, 0.16));
  color: #325ce6;
  font-size: 12px;
}

.premium-modal-fields {
  gap: 18px;
}

.selling-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(31, 54, 103, 0.08);
}

.selling-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #23325b;
}

.selling-copy {
  margin: 0;
  font-size: 12px;
  color: #7280a0;
}

.selling-toggle {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #23325b;
}

.selling-toggle-track {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  background: #ffdde0;
  box-shadow: inset 0 0 0 1px rgba(203, 68, 82, 0.14);
  transition: background 160ms ease;
}

.selling-toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #df4b52;
  box-shadow: 0 6px 16px rgba(80, 28, 35, 0.18);
  transition: transform 160ms ease, background 160ms ease;
}

.selling-toggle.on .selling-toggle-track {
  background: #dff6e8;
  box-shadow: inset 0 0 0 1px rgba(31, 170, 103, 0.16);
}

.selling-toggle.on .selling-toggle-knob {
  transform: translateX(30px);
  background: #22b464;
}

.selling-toggle-text {
  min-width: 92px;
  text-align: left;
}

.hidden-input-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .insurer-limit-stack {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .modal-insurer-pills {
    grid-template-columns: 1fr;
  }

  .selling-toggle-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
