:root {
  --brand-blue: #0a3a87;
  --brand-blue-2: #1657c2;
  --brand-yellow: #f7b733;
  --brand-orange: #ee8d23;
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e3e6ec;
  --muted: #6b7280;
  --text: #1f2430;
  --green: #1faa64;
  --red: #d93939;
  --shadow: 0 1px 2px rgba(16,24,40,0.05), 0 1px 3px rgba(16,24,40,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#app { display: flex; min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.brand-logo { display: inline-flex; }
.brand-text { font-weight: 700; font-size: 20px; letter-spacing: -0.5px; }
.brand-savings { color: var(--brand-yellow); }
.brand-plus { color: var(--brand-blue); }

.nav-main { flex: 1; padding: 10px 8px; overflow-y: auto; }
.nav-group { margin: 0 0 4px; }
.nav-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8a93a0;
  padding: 6px 12px 4px;
  margin: 6px 0 2px;
  text-transform: uppercase;
  border-top: 1px solid #f0f1f5;
}
.nav-section-label:first-of-type { border-top: 0; margin-top: 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  cursor: pointer;
}
.nav-item:hover { background: #f0f3fa; }
.nav-item.active { background: #e9efff; color: var(--brand-blue); }
.nav-sub {
  padding-left: 42px;
  font-weight: 400;
  font-size: 13px;
  color: #2a3a5e;
}
.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}
.nav-icon svg { width: 20px; height: 20px; }
.ext-link {
  margin-left: auto;
  opacity: 0.55;
  font-size: 12px;
  transform: rotate(45deg);
  display: inline-block;
}
.badge {
  margin-left: auto;
  background: var(--brand-blue-2);
  color: #fff;
  font-size: 12px;
  border-radius: 12px;
  padding: 1px 8px;
  font-weight: 600;
}

.sidebar-footer {
  background: var(--brand-blue);
  padding: 10px 8px 12px;
}
.sidebar-footer .nav-dark {
  color: #fff;
}
.sidebar-footer .nav-dark:hover { background: rgba(255,255,255,0.10); }
.sidebar-footer .nav-icon { color: #fff; }
.lang-picker {
  margin: 10px 8px 4px;
  background: #1657c2;
  border-radius: 8px;
  padding: 0;
}
.lang-picker select {
  background: transparent;
  color: #fff;
  border: none;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.lang-picker select option { color: #1f2430; }
.topbar-menu { display: none; }
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    height: 100vh;
    z-index: 95;
    transition: left 0.25s;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
  .sidebar.mobile-open { left: 0; }
  .topbar-menu { display: inline-flex; }
  body.menu-open::after {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 94;
  }
}

/* ===== Main ===== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.scenario-selector { display: flex; align-items: center; gap: 10px; }
.scenario-selector select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  min-width: 320px;
  font-weight: 500;
}
.default-pill {
  background: var(--brand-blue-2);
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.topbar-actions { display: flex; gap: 6px; }

.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.icon-btn:hover { background: #f4f7fc; }

.topbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #6b7280;
  text-transform: uppercase;
  margin-right: 4px;
}

.topbar-btn {
  border: 1px solid var(--border);
  background: #fff;
  height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2430;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-btn:hover { background: #f4f7fc; border-color: var(--brand-blue-2); color: var(--brand-blue); }

.sb-chip {
  background: #eef4ff;
  border: 1px solid #c4d7ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--brand-blue);
  font-weight: 500;
}
.sb-chip:hover { background: #1657c2; color: #fff; border-color: #1657c2; }

.sb-detected {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px;
  background: #f0faf4;
  border: 1px solid #c5e8d0;
  border-radius: 8px;
  margin-bottom: 6px;
}
.sb-detected-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1faa64;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.topbar-btn span:first-child { font-size: 14px; }
@media (max-width: 1100px) {
  .topbar-btn span:last-child { display: none; }   /* show emoji-only on smaller screens */
  .topbar-btn { padding: 0 10px; }
}

.content {
  padding: 24px;
  max-width: 1400px;
  width: 100%;
}

/* ===== Cards & layout ===== */
h1.page-title { margin: 0 0 4px; font-size: 22px; }
.page-sub { color: var(--muted); margin: 0 0 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card .icon-circle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e9efff;
  border-radius: 50%;
  margin-bottom: 10px;
  font-size: 20px;
}
.card-link { color: var(--brand-blue-2); font-weight: 700; }
.card-desc { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; } }

/* tiles like screenshot */
.tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
.tile:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,24,40,0.06); }
.tile h3 { color: var(--brand-blue-2); margin-top: 0; font-size: 17px; }
.tile p  { color: #4a5468; margin: 6px 0 0; font-size: 13px; }
.tile .tile-icon {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.tile .tile-icon svg { width: 56px; height: 56px; }

/* ===== Tables ===== */
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table.data th, table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
table.data th { background: #f7f9fc; color: #475066; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
table.data tr:hover td { background: #fafbff; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .actions { text-align: right; white-space: nowrap; }

/* ===== Buttons ===== */
.btn {
  border: 1px solid var(--brand-blue-2);
  background: var(--brand-blue-2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}
.btn:hover { background: var(--brand-blue); border-color: var(--brand-blue); }
.btn.secondary { background: #fff; color: var(--brand-blue-2); }
.btn.secondary:hover { background: #f0f3fa; }
.btn.danger { background: #fff; color: var(--red); border-color: #f3c1c1; }
.btn.danger:hover { background: #fff0f0; }
.btn.small { padding: 5px 9px; font-size: 12px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand-blue-2); }

/* ===== Forms ===== */
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-row label { font-size: 12px; font-weight: 600; color: #475066; }
.form-row input, .form-row select, .form-row textarea {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--brand-blue-2);
  box-shadow: 0 0 0 3px #c7d8ff66;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.help-text { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(16,24,40,0.45);
  align-items: center; justify-content: center;
  z-index: 100;
  display: none;
}
.modal-backdrop:not([hidden]) { display: flex; }
.modal {
  background: #fff;
  border-radius: 14px;
  width: min(640px, 92vw);
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 16px; margin: 0; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1f2430;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 200;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

/* ===== KPIs ===== */
.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.kpi .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi .value { font-size: 24px; font-weight: 700; margin-top: 4px; }
.kpi .value.green { color: var(--green); }
.kpi .value.red { color: var(--red); }
.kpi .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ===== Lists & misc ===== */
.list-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: #fff;
}
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 0 10px;
}
.section-title h2 { font-size: 16px; margin: 0; }
.tag {
  display: inline-block;
  background: #eef2fb;
  color: var(--brand-blue);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
}
.tag.green { background: #e6f6ee; color: var(--green); }
.tag.red   { background: #fdecec; color: var(--red); }
.tag.amber { background: #fff4dd; color: #a06a00; }

.chart-wrap { position: relative; height: 280px; }
.chart-wrap.tall { height: 360px; }

.coach-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; margin-bottom: 10px;
}
.coach-item .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.coach-item.priority-high .dot { background: var(--red); }
.coach-item.priority-med  .dot { background: #f7b733; }
.coach-item.priority-low  .dot { background: var(--green); }
.coach-item.validation-item {
  background: #f0faf4;
  border-color: #c5e8d0;
}
.coach-item.validation-item .dot { background: #1faa64; }
.coach-item h4 { margin: 0 0 4px; font-size: 14px; }
.coach-item p { margin: 0; font-size: 13px; color: #475066; }

/* ===== Risk Profile ===== */
.risk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) { .risk-grid { grid-template-columns: 1fr; } }

.q-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.q-block:last-child { border-bottom: 0; }
.q-num {
  display: inline-block;
  background: var(--brand-blue-2);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.q-text { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.q-opts { display: flex; flex-direction: column; gap: 6px; }
.q-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
}
.q-opt:hover { background: #f4f7fc; }
.q-opt input { margin: 0; }

.gauge-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.gauge-cell {
  background: #eef2f8;
  color: #6b7280;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
}
.gauge-cell.active {
  background: var(--brand-blue-2);
  color: #fff;
}

/* ===== Risk Profile: tabs + model gallery ===== */
.rp-tabs {
  display: flex;
  gap: 4px;
  background: #eef2fb;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 16px;
  max-width: 560px;
}
.rp-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #475066;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rp-tab:hover { background: #ffffff80; }
.rp-tab.active {
  background: #ffffff;
  color: var(--brand-blue);
  box-shadow: 0 1px 3px rgba(16,24,40,0.08);
}
.rp-tab-emoji { font-size: 14px; }
.rp-pane { margin-bottom: 20px; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px) { .model-grid { grid-template-columns: 1fr; } }
.model-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.model-card.suggested {
  border-color: #f7b733;
  box-shadow: 0 0 0 3px #f7b73333;
}
.model-card.selected {
  border-color: var(--brand-blue-2);
  box-shadow: 0 0 0 3px #1657c233;
}
.model-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.model-title h3 { margin: 0; font-size: 15px; color: var(--brand-blue); }
.model-author { font-size: 11px; color: var(--muted); margin-top: 2px; font-style: italic; }
.model-blurb {
  margin: 0 0 12px;
  font-size: 13px;
  color: #475066;
}
.comp-bar {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2fb;
  margin-bottom: 12px;
}
.comp-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
}
.model-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 12px;
}
.model-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
}
.model-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.model-details {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.model-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue-2);
}
.model-details[open] summary { margin-bottom: 6px; }

/* ===== Onboarding Wizard ===== */
#onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 58, 135, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.ob-wrap {
  background: #fff;
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.ob-header {
  padding: 18px 28px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ob-brand { font-weight: 700; font-size: 18px; }
.ob-brand-y { color: var(--brand-yellow); }
.ob-brand-b { color: var(--brand-blue); }
.ob-progress { display: flex; gap: 6px; }
.ob-dot {
  width: 24px; height: 6px;
  background: #e7eaf3;
  border-radius: 3px;
  transition: background .2s;
}
.ob-dot.done { background: var(--brand-yellow); }
.ob-dot.active { background: var(--brand-blue-2); }

.ob-body {
  padding: 32px 36px;
  overflow-y: auto;
  flex: 1;
}
.ob-step h1 {
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.4px;
}
.ob-lead {
  font-size: 15px;
  color: #475066;
  margin: 0 0 22px;
  line-height: 1.5;
}
.ob-form {
  max-width: 480px;
  margin: 0 auto;
}
.ob-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ob-form-grid .form-row.full { grid-column: 1 / -1; }

.ob-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.ob-feature {
  text-align: center;
  padding: 14px 10px;
  background: #f7f9ff;
  border-radius: 12px;
}
.ob-feature-emoji { font-size: 28px; margin-bottom: 6px; }
.ob-feature-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.ob-feature-body { font-size: 12px; color: #475066; }

.ob-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ob-pick {
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 14px 8px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #475066;
  transition: border-color .15s, background .15s;
}
.ob-pick:hover { border-color: var(--brand-blue-2); }
.ob-pick.active {
  border-color: var(--brand-blue-2);
  background: #eef4ff;
  color: var(--brand-blue);
  font-weight: 600;
}
.ob-pick-emoji { font-size: 24px; margin-bottom: 6px; }

.ob-goal-list { display: flex; flex-direction: column; gap: 8px; }
.ob-goal {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color .15s, background .15s;
}
.ob-goal.on {
  border-color: var(--brand-blue-2);
  background: #f7f9ff;
}
.ob-goal-head {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.ob-goal-head input { width: 18px; height: 18px; cursor: pointer; }
.ob-goal-emoji { font-size: 22px; }
.ob-goal-label { font-weight: 500; font-size: 14px; }
.ob-goal-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ob-risk-list { display: flex; flex-direction: column; gap: 10px; }
.ob-risk {
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: center;
}
.ob-risk:hover { border-color: var(--brand-blue-2); }
.ob-risk.active {
  border-color: var(--brand-blue-2);
  background: #f7f9ff;
}
.ob-risk-bal {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 15px;
}
.ob-risk-label { font-weight: 600; margin-bottom: 2px; }
.ob-risk-desc { font-size: 12px; color: #475066; }
.ob-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff8e6;
  border-left: 3px solid var(--brand-yellow);
  border-radius: 6px;
  font-size: 13px;
  color: #7a5d00;
}

.ob-summary {
  background: #f7f9ff;
  border-radius: 12px;
  padding: 16px 20px;
}
.ob-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #dbe4ff;
  font-size: 14px;
}
.ob-summary-row:last-child { border-bottom: 0; }
.ob-summary-label { color: #475066; }
.ob-summary-val { font-weight: 600; color: var(--brand-blue); }

.ob-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: #fafbff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ===== Dashboard hero ===== */
.dash-greet { margin-bottom: 16px; }
.dash-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) { .dash-hero { grid-template-columns: 1fr; } }

.hero-card { padding: 22px; }
.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 6px;
}
.hero-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.hero-nw.pos .hero-value { color: var(--green); }
.hero-nw.neg .hero-value { color: var(--red); }
.hero-status {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.hero-rt.green .hero-status { color: var(--green); }
.hero-rt.amber .hero-status { color: #a06a00; }
.hero-rt.red .hero-status { color: var(--red); }
.hero-sub { font-size: 13px; color: #475066; margin-bottom: 10px; }
.hero-bar {
  display: flex; height: 22px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.hero-bar-a {
  background: var(--brand-blue-2);
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
}
.hero-bar-b {
  background: var(--brand-yellow);
  color: #5a3e00;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
}
.hero-progress {
  height: 10px;
  background: #e7eaf3;
  border-radius: 5px;
  overflow: hidden;
  margin: 10px 0;
}
.hero-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1657c2, #1faa64);
  transition: width .3s;
}
.hero-msg { font-size: 13px; color: #475066; }

/* ===== Setup Coach ===== */
.setup-coach {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
  border: 1.5px solid #c4d7ff;
  padding: 22px;
  margin-bottom: 18px;
}
.setup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.setup-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.setup-progress-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 2px;
}
.setup-progress-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-blue-2) calc(var(--p) * 1%), #e7eaf3 0);
  position: relative;
}
.setup-progress-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}

.setup-next {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #1657c2;
  color: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.1s;
}
.setup-next:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(22,87,194,0.3); }
.setup-next-emoji { font-size: 32px; }
.setup-next-body { flex: 1; }
.setup-next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.85;
}
.setup-next-title {
  font-size: 17px;
  font-weight: 700;
  margin: 2px 0 4px;
}
.setup-next-blurb {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.4;
}
.setup-next .btn {
  background: #fff;
  color: var(--brand-blue);
  border-color: #fff;
  white-space: nowrap;
}
.setup-next .btn:hover { background: #f0f4ff; color: var(--brand-blue); }

.setup-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 900px) { .setup-list { grid-template-columns: 1fr; } }
.setup-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.setup-step.done { background: #f0faf4; border-color: #c5e8d0; opacity: 0.7; }
.setup-step.pending { border-color: #d7e0f0; }
.setup-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #eef2fb;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.setup-step.done .setup-step-num { background: var(--green); color: #fff; }
.setup-step-body { flex: 1; min-width: 0; }
.setup-step-title { font-weight: 600; font-size: 13px; }
.setup-step-blurb { font-size: 11px; color: #6b7280; margin-top: 2px; line-height: 1.3; }
.setup-step .btn { flex-shrink: 0; }
.setup-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* ===== Goal cards ===== */
.goal-card { padding: 16px; }
.goal-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.goal-emoji {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #f7f9ff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.goal-amounts {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.goal-amount-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.goal-amount-value {
  font-size: 14px;
  font-weight: 700;
}
.goal-bar {
  height: 8px;
  background: #e7eaf3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.goal-bar-fill {
  height: 100%;
  transition: width .3s;
}
.goal-bar-fill.ok { background: linear-gradient(90deg, #1faa64, #39c47e); }
.goal-bar-fill.warn { background: linear-gradient(90deg, #f7b733, #ee8d23); }
.goal-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

/* ===== BETA Feedback bubble ===== */
/* ===== Disclaimer ===== */
#disclaimer-overlay {
  position: fixed; inset: 0;
  background: rgba(10,58,135,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1500;
  padding: 20px;
}
.dc-wrap {
  background: #fff; border-radius: 14px;
  width: min(680px, 92vw); max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  overflow: hidden;
}
.dc-header { padding: 22px 28px 14px; border-bottom: 1px solid var(--border); }
.dc-body { padding: 18px 28px; overflow-y: auto; flex: 1; }
.dc-para {
  display: flex; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px; color: #475066; line-height: 1.5;
}
.dc-para:last-child { border-bottom: 0; }
.dc-para-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: #5a3e00;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
  flex-shrink: 0;
}
.dc-check-row {
  padding: 16px 28px;
  background: #f7f9fc;
  display: flex; gap: 10px; align-items: flex-start;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.dc-check-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.dc-buttons {
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
}

.dc-banner {
  display: flex; align-items: center;
  padding: 8px 14px;
  background: #fffbe6;
  border: 1px solid #f3d779;
  border-radius: 8px;
  margin-bottom: 12px;
  color: #7a5d00;
}

#fb-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-blue-2);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22,87,194,0.4);
  z-index: 90;
  transition: transform 0.15s, box-shadow 0.15s;
}
#fb-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(22,87,194,0.5); }

.fb-backdrop {
  position: fixed; inset: 0;
  background: rgba(16,24,40,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.fb-wrap {
  background: #fff;
  border-radius: 14px;
  width: min(560px, 92vw);
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.fb-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.fb-close {
  border: none; background: transparent;
  font-size: 24px; cursor: pointer; color: #6b7280;
}
.fb-body { padding: 18px; overflow-y: auto; }
.fb-body textarea {
  width: 100%; padding: 10px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical;
}
.fb-list {
  max-height: 180px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 8px; padding: 6px;
}
.fb-item {
  padding: 6px 10px; border-bottom: 1px solid #eee;
  font-size: 13px;
}
.fb-item:last-child { border-bottom: 0; }
.fb-item-meta { font-size: 11px; color: #6b7280; margin-bottom: 2px; }
/* ===== Pricing page ===== */
.pricing-hero {
  background: linear-gradient(135deg, #1657c2 0%, #0a3a87 100%);
  color: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 24px;
  text-align: center;
}
.pricing-badge {
  display: inline-block;
  background: var(--brand-yellow);
  color: #5a3e00;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.pricing-title {
  font-size: 36px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -1px;
  color: #fff;
}
.pricing-title-accent { color: var(--brand-yellow); }
.pricing-subtitle {
  font-size: 16px;
  margin: 18px auto 24px;
  max-width: 720px;
  line-height: 1.5;
  opacity: 0.92;
}
.pricing-cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px;
}
.pricing-cta-btn { font-size: 15px; padding: 12px 22px; }
.pricing-fineprint { font-size: 12px; opacity: 0.82; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
.pricing-card-highlight {
  border-color: var(--brand-blue-2);
  background: linear-gradient(180deg, #f0f6ff 0%, #fff 100%);
  box-shadow: 0 6px 20px rgba(22,87,194,0.18);
  transform: translateY(-4px);
}
.pricing-card-tag {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand-yellow);
  color: #5a3e00;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
}
.pricing-card-name { margin: 0 0 8px; font-size: 16px; }
.pricing-card-price {
  font-size: 36px; font-weight: 800; letter-spacing: -1px;
  color: var(--brand-blue);
}
.pricing-card-period { font-size: 12px; color: #6b7280; margin-bottom: 14px; }
.pricing-card-perks {
  list-style: none; padding: 0; margin: 0;
  font-size: 13px; color: #475066; line-height: 1.6;
}
.pricing-card-perks li { padding: 3px 0; }

.pricing-matrix th, .pricing-matrix td { font-size: 12px; }
.pricing-col-us { background: #eef4ff; }
.pricing-yes { color: var(--green); font-weight: 700; font-size: 14px; }
.pricing-yes-us { color: var(--green); font-weight: 700; font-size: 14px; background: #eef4ff; }
.pricing-no  { color: var(--red);  font-weight: 700; font-size: 14px; }
.pricing-partial { color: #a06a00; font-style: italic; }

.pricing-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .pricing-why-grid { grid-template-columns: 1fr; } }
.pricing-why-card {
  padding: 14px;
  background: #f7f9ff;
  border-radius: 10px;
}
.pricing-why-icon { font-size: 28px; margin-bottom: 6px; }
.pricing-why-title { font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.pricing-why-body { font-size: 12px; color: #475066; line-height: 1.5; }

.pricing-trial-list { padding-left: 20px; margin: 0; line-height: 1.7; }
.pricing-trial-list li { padding: 4px 0; }
.pricing-trial-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}

.fc-list { display: flex; flex-direction: column; gap: 8px; }
.fc-row {
  display: flex; gap: 12px;
  padding: 10px 12px;
  background: #f7f9ff;
  border: 1px solid #dbe4ff;
  border-radius: 8px;
}
.fc-check {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
}
.fc-body { flex: 1; min-width: 0; }
.fc-title { font-weight: 600; margin-bottom: 2px; }
.fc-desc { font-size: 13px; color: #475066; line-height: 1.45; }
.fc-where { font-size: 11px; color: #6b7280; margin-top: 4px; font-style: italic; }

.fb-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}

.print-only { display: none; }
@media print {
  @page { margin: 0.5in; size: letter; }
  body { font-size: 11px; }
  .sidebar, .topbar, .modal-backdrop, .toast, .no-print, #onboarding-overlay, #fb-bubble, .fb-backdrop { display: none !important; }
  .main { display: block; }
  .content { padding: 0; max-width: none; }
  .card, .tile, .kpi { box-shadow: none; border-color: #ccc; break-inside: avoid; padding: 10px; margin-bottom: 8px; }
  .print-only { display: block; }
  .print-header { margin-bottom: 16px; border-bottom: 2px solid #1657c2; padding-bottom: 8px; }
  .section-title { margin: 16px 0 6px; break-after: avoid; break-before: auto; }
  .section-title h2 { font-size: 13px !important; color: #1657c2; border-left: 3px solid #1657c2; padding-left: 8px; }
  h1.page-title { font-size: 16px; }
  .page-sub { font-size: 10px; color: #666; }
  table.data { font-size: 10px; }
  table.data th, table.data td { padding: 4px 6px; }
  .kpi .value { font-size: 16px; }
  .kpi .label { font-size: 9px; }
  .grid, .grid.cols-2, .grid.cols-4 { gap: 8px; }
  .coach-item { padding: 6px 8px; margin-bottom: 4px; break-inside: avoid; }
  .coach-item h4 { font-size: 11px; }
  .coach-item p { font-size: 10px; }
  .chart-wrap, canvas { display: none !important; }   /* hide canvases in print to avoid blank boxes */
  a { color: inherit; text-decoration: none; }
  .tag { padding: 1px 6px; font-size: 9px; }
}
