:root {
  --bg: #f4f9fd;
  --panel: #ffffff;
  --panel-2: #e8f4ff;
  --text: #18242b;
  --muted: #63727d;
  --line: #d9e7f2;
  --brand-soft-blue: #c4e1ff;
  --brand-blue: #0466bf;
  --brand-cyan: #039fda;
  --brand-green: #05c148;
  --brand-dark-green: #017129;
  --green: #017129;
  --green-soft: #dcf8e7;
  --red: #c2413a;
  --red-soft: #fde8e7;
  --yellow: #b77a10;
  --yellow-soft: #fff2cf;
  --blue: #0466bf;
  --blue-soft: #e3f2ff;
  --shadow: 0 16px 44px rgba(4, 102, 191, 0.09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-hero {
  background: radial-gradient(circle at 16% 20%, rgba(196, 225, 255, .22), transparent 28%), linear-gradient(145deg, #017129, #039fda 52%, #0466bf);
  color: white;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-hero h1 { font-size: 54px; margin: 0; letter-spacing: 0; }
.auth-hero p { font-size: 19px; max-width: 560px; line-height: 1.6; color: rgba(255,255,255,.84); }
.auth-card {
  align-self: center;
  justify-self: center;
  width: min(440px, calc(100% - 40px));
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px 20px; font-weight: 800; font-size: 20px; }
.brand[data-route] { cursor: pointer; border-radius: 8px; }
.brand[data-route]:hover { background: var(--blue-soft); }
.brand.compact { padding-bottom: 20px; }
.brand-icon { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 18px rgba(4, 102, 191, .18); flex: 0 0 auto; }
.brand-word { font-family: Poppins, Inter, sans-serif; font-size: 32px; font-weight: 400; letter-spacing: .02em; color: #414141; line-height: 1; }
.brand-subtitle { display: none !important; }
.auth-hero .brand-word { color: white; }
.nav { display: grid; gap: 4px; }
.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}
.nav button.active, .nav button:hover { background: var(--blue-soft); color: var(--brand-blue); }
.nav button.locked { opacity: .72; }
.nav button.locked:hover { opacity: .92; }
.nav button small { margin-left: auto; font-size: 10px; color: var(--muted); }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--brand-blue) !important;
  font-weight: 800;
  white-space: nowrap;
}
.lock-mini-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-icon-wrap {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav button.active .nav-icon-wrap,
.nav button:hover .nav-icon-wrap {
  color: var(--brand-blue);
}
.main { padding: 24px; max-width: 1440px; width: 100%; margin: 0 auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.topbar h2 { margin: 0 0 4px; font-size: 28px; }
.hint { margin: 0; color: var(--muted); line-height: 1.5; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  padding: 10px 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.btn.primary { background: var(--brand-blue); border-color: var(--brand-blue); color: white; }
.btn.danger { background: var(--red-soft); border-color: #fac4c0; color: var(--red); }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 24px;
  border-radius: 8px;
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(196, 225, 255, .28), transparent 28%),
    linear-gradient(135deg, var(--brand-dark-green), var(--brand-cyan) 58%, var(--brand-blue));
  box-shadow: 0 18px 48px rgba(4, 102, 191, .16);
}
.dashboard-hero h3 { margin: 8px 0 8px; font-size: 32px; line-height: 1.15; max-width: 760px; }
.dashboard-hero p { margin: 0; color: rgba(255,255,255,.84); line-height: 1.6; max-width: 720px; }
.dashboard-kicker { display: block; font-size: 13px; font-weight: 800; color: rgba(255,255,255,.78); }
.hero-balance {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.hero-balance span, .hero-balance small { color: rgba(255,255,255,.8); }
.hero-balance strong { font-size: 34px; line-height: 1.05; color: white; }
.dashboard-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.dashboard-stats .stat {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  display: grid;
  align-content: space-between;
  border-color: rgba(4, 102, 191, .12);
}
.dashboard-stats .stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-blue);
}
.dashboard-stats .stat-positive::before { background: var(--brand-green); }
.dashboard-stats .stat-negative::before { background: var(--red); }
.dashboard-stats .stat-attention::before { background: var(--yellow); }
.dashboard-stats .stat-info::before { background: var(--brand-cyan); }
.dashboard-stats .stat small { color: var(--muted); line-height: 1.35; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 16px;
  align-items: start;
}
.dashboard-main-panel, .dashboard-chart-panel { min-height: 0; }
.category-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.category-summary div {
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f5fbff, #ffffff);
  border: 1px solid var(--line);
}
.category-summary span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.category-summary strong { font-size: 20px; color: var(--text); }
.category-chart { min-height: 330px; }
.category-chart svg { height: 330px; }
.dashboard-chart-panel .chart { min-height: 220px; }
.dashboard-chart-panel .chart svg { height: 220px; }
.achievements-card {
  background:
    radial-gradient(circle at top right, rgba(3, 159, 218, .10), transparent 34%),
    var(--panel);
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.achievement {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(5, 193, 72, .22);
  background: linear-gradient(180deg, #ffffff, #f3fff8);
}
.achievement span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan));
  box-shadow: 0 8px 18px rgba(5, 193, 72, .18);
}
.achievement strong { font-size: 13px; line-height: 1.25; }
.two-col { grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(31,48,42,.04);
}
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 24px; font-weight: 800; margin-top: 8px; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.attention { color: var(--yellow); }
.info { color: var(--blue); }
.alert { display: flex; gap: 12px; padding: 12px; border-radius: 8px; margin-bottom: 10px; line-height: 1.4; }
.alert.red { background: var(--red-soft); color: var(--red); }
.alert.yellow { background: var(--yellow-soft); color: #76500d; }
.alert.blue { background: var(--blue-soft); color: var(--blue); }
.alert.green { background: var(--green-soft); color: var(--green); }
.section-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.section-title h3 { margin: 0; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  min-height: 42px;
  color: var(--text);
}
textarea { min-height: 72px; resize: vertical; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.sync-badge { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border-radius: 999px; background: var(--panel-2); color: var(--brand-blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { border: 1px solid var(--line); background: white; border-radius: 8px; width: 36px; height: 36px; display: inline-grid; place-items: center; }
.progress { height: 10px; background: #edf1ef; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan)); border-radius: 999px; }
.chart { width: 100%; min-height: 260px; }
.chart svg { width: 100%; height: 260px; display: block; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.mobile-nav { display: none; }
.mobile-brand { display: none; }
.mobile-more-backdrop, .mobile-more-sheet { display: none; }
.muted { color: var(--muted); }
.kpi-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.login-switch { margin-top: 16px; color: var(--muted); }
.login-switch button { border: 0; background: transparent; color: var(--green); font-weight: 800; }
.onboarding-auth .auth-card { width: min(620px, calc(100% - 40px)); }
.onboarding-question { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 14px 0; }
.onboarding-question legend { padding: 0 6px; font-weight: 800; }
.choice { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--text); }
.choice input { width: auto; min-height: auto; }
.onboarding-progress { margin: 16px 0 18px; }
.onboarding-actions { justify-content: space-between; margin-top: 12px; }
.category-form { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: end; margin: 14px 0; }
.category-list h4 { margin: 16px 0 8px; }
.category-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--brand-blue); font-size: 13px; font-weight: 700; }
.category-pill button { border: 0; background: transparent; color: inherit; font-weight: 900; padding: 0; }
.category-select-field input[hidden] { display: none; }
.category-select-field input { margin-top: 8px; }
.locked-surface { display: grid; gap: 16px; }
.locked-state {
  min-height: min(620px, calc(100vh - 170px));
  display: grid;
  place-items: center;
  padding: 34px 16px;
}
.locked-state-card {
  width: min(640px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 34px;
  border: 1px solid rgba(4, 102, 191, .14);
  border-radius: 8px;
  background:
    radial-gradient(circle at top, rgba(196, 225, 255, .42), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fcff);
  box-shadow: var(--shadow);
}
.locked-state.coming-soon .locked-state-card {
  background:
    radial-gradient(circle at top, rgba(5, 193, 72, .12), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fcff);
}
.locked-state-icon-wrap {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-blue);
  background: var(--blue-soft);
  box-shadow: 0 14px 30px rgba(4, 102, 191, .12);
}
.locked-state.coming-soon .locked-state-icon-wrap {
  color: var(--brand-dark-green);
  background: var(--green-soft);
}
.locked-state-icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.locked-state-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand-blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}
.locked-state.coming-soon .locked-state-label {
  color: var(--brand-dark-green);
  background: var(--green-soft);
}
.locked-state h3 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.2;
}
.locked-state p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}
.locked-requirements {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.locked-requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: left;
}
.locked-requirement strong {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-blue);
  background: var(--blue-soft);
  flex: 0 0 auto;
}
.locked-requirement.ok {
  color: var(--brand-dark-green);
  border-color: #b8ebcd;
  background: var(--green-soft);
}
.locked-requirement.ok strong {
  color: white;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan));
}
.locked-progress {
  width: 100%;
  margin-top: 4px;
}
.locked-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.mission-list { display: grid; gap: 8px; margin: 12px 0; }
.journey-progress { margin-top: 14px; }
.badge-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mini-check { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; }
.mini-check.ok { background: var(--green-soft); color: var(--green); border-color: #b8ebcd; }
.simulator-panel .alert { margin-top: 14px; }
.simulation-stats { margin-bottom: 16px; }
.edu-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
.edu-block p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.bar-compare { height: 22px; display: flex; overflow: hidden; border-radius: 999px; background: #edf1ef; margin: 20px 0; }
.bar-compare span { background: var(--brand-blue); }
.bar-compare i { background: var(--brand-green); }
.reports-layout { display: grid; gap: 16px; }
.reports-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(196, 225, 255, .28), transparent 28%),
    linear-gradient(135deg, var(--brand-dark-green), var(--brand-cyan) 58%, var(--brand-blue));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 48px rgba(4, 102, 191, .16);
}
.reports-studio-main {
  display: grid;
  gap: 14px;
  align-content: start;
  color: white;
}
.reports-studio .dashboard-kicker { color: rgba(255,255,255,.86); }
.reports-studio h3 { margin: 0; font-size: 28px; line-height: 1.2; max-width: 760px; }
.reports-studio p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.55; }
.report-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.report-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
}
.report-option small {
  color: #9cf5b9;
  font-size: 10px;
  font-weight: 800;
}
.report-option.active {
  color: #0d211b;
  background: linear-gradient(135deg, #dfffe9, #9cf5b9);
  border-color: transparent;
}
.report-option.active small { color: var(--brand-dark-green); }
.report-option.locked-report { opacity: .58; }
.reports-side-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 240px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color: white;
  backdrop-filter: blur(10px);
}
.reports-side-panel h4 { margin: 0; font-size: 20px; line-height: 1.2; }
.reports-side-panel p { color: rgba(255,255,255,.82); }
.report-side-actions { display: grid; gap: 8px; margin-top: 6px; }
.report-side-actions .btn { justify-content: center; }
.reports-intro {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(196, 225, 255, .35), #fff);
}
.reports-intro h3 { margin: 6px 0; font-size: 24px; }
.reports-intro .dashboard-kicker { color: var(--brand-blue); }
.reports-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.report-card {
  display: grid;
  align-content: space-between;
  min-height: 178px;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(31,48,42,.035);
}
.report-card[data-report-card] { cursor: pointer; }
.report-card[data-report-card]:hover { border-color: rgba(4, 102, 191, .34); transform: translateY(-1px); transition: border-color .18s ease, transform .18s ease; }
.report-card.active { border-color: rgba(4, 102, 191, .38); box-shadow: 0 12px 28px rgba(4, 102, 191, .10); }
.report-card.locked-report { opacity: .72; }
.report-card .section-title { margin: 0; align-items: flex-start; }
.report-card h3 { font-size: 15px; line-height: 1.25; }
.report-result, .custom-report { display: grid; gap: 16px; }
.report-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.report-summary .stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fcff);
}
.report-summary .stat .value { font-size: 22px; font-weight: 800; margin-top: 6px; }
.report-insights { display: grid; gap: 8px; }
.report-bars { display: grid; gap: 12px; padding: 8px 0; }
.report-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr minmax(110px, auto);
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.report-bar-row div { height: 20px; border-radius: 999px; background: #eef6fc; overflow: hidden; }
.report-bar-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan)); }
.report-bar-row strong { color: var(--text); text-align: right; }
.report-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.report-table table { min-width: 620px; }
.donut-report { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; }
.donut-ring {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 54%, transparent 55%), conic-gradient(var(--brand-green), var(--brand-cyan), var(--brand-blue), #eaf3fb 0);
  text-align: center;
}
.donut-ring strong { font-size: 30px; color: var(--brand-dark-green); }
.donut-ring span { max-width: 120px; color: var(--muted); font-size: 12px; font-weight: 700; }
.report-generated { display: grid; gap: 14px; margin-top: 6px; }
.scenario-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; min-height: 240px; }
.scenario-bars div { display: grid; gap: 8px; justify-items: center; text-align: center; color: var(--muted); }
.scenario-bars strong { color: var(--text); font-size: 13px; }
.scenario-bars span { height: 170px; width: 42px; border-radius: 999px; background: #edf1ef; display: flex; align-items: flex-end; overflow: hidden; }
.scenario-bars i { width: 100%; background: linear-gradient(180deg, var(--brand-cyan), var(--brand-green)); border-radius: 999px; }
.scenario-bars small { color: var(--brand-blue); font-weight: 800; }
.scenario-bars p { margin: 0; font-size: 12px; line-height: 1.35; }
.simulation-actions { margin-top: 16px; }
.month-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.month-details summary { cursor: pointer; font-weight: 800; color: var(--brand-blue); margin-bottom: 12px; }
.disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; padding: 12px; border-radius: 8px; background: var(--blue-soft); }

@media (max-width: 1100px) {
  .stats, .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid, .two-col, .three-col { grid-template-columns: 1fr; }
  .reports-studio { grid-template-columns: 1fr; }
  .reports-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 32px 24px; min-height: 320px; }
  .auth-hero h1 { font-size: 40px; }
  .app-shell { grid-template-columns: 1fr; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main { padding: 16px; }
  .mobile-brand { display: flex; }
  .mobile-brand .brand { padding: 4px 0 18px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar, .toolbar { width: 100%; }
  .toolbar select { flex: 1 1 96px; }
  .toolbar input[type="number"] { flex: 1 1 112px; }
  .toolbar .btn, .toolbar .sync-badge { flex: 1 1 auto; justify-content: center; }
  .card { padding: 16px; }
  .section-title { align-items: flex-start; }
  .section-title .badge { flex: 0 0 auto; }
  .dashboard-hero { grid-template-columns: 1fr; padding: 20px; }
  .dashboard-hero h3 { font-size: 25px; }
  .hero-balance strong { font-size: 29px; }
  .stats, .dashboard-stats, .form-grid { grid-template-columns: 1fr; }
  .dashboard-stats .stat { min-height: 128px; }
  .category-summary, .achievement-grid { grid-template-columns: 1fr; }
  .reports-intro { flex-direction: column; }
  .reports-studio { padding: 14px; }
  .reports-studio h3 { font-size: 22px; }
  .report-option-list { max-height: 156px; overflow: auto; padding-right: 2px; }
  .reports-side-panel { min-height: auto; }
  .reports-cards, .report-summary, .donut-report { grid-template-columns: 1fr; }
  .report-bar-row { grid-template-columns: 1fr; gap: 6px; }
  .report-bar-row strong { text-align: left; }
  .locked-state { min-height: auto; padding: 18px 0; }
  .locked-state-card { padding: 24px 18px; }
  .locked-state h3 { font-size: 23px; }
  .locked-state-icon-wrap { width: 62px; height: 62px; }
  .locked-actions { width: 100%; }
  .locked-actions .btn { width: 100%; justify-content: center; }
  .category-form { grid-template-columns: 1fr; }
  .mobile-more-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    z-index: 9;
    background: rgba(8, 24, 32, .22);
    backdrop-filter: blur(2px);
  }
  .mobile-more-sheet {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(98px + env(safe-area-inset-bottom));
    z-index: 11;
    display: grid;
    gap: 14px;
    max-height: min(68vh, 520px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(4, 102, 191, .16);
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(196, 225, 255, .54), transparent 34%),
      #ffffff;
    box-shadow: 0 22px 54px rgba(4, 102, 191, .24);
  }
  .mobile-more-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
  }
  .mobile-more-head strong { display: block; font-size: 18px; }
  .mobile-more-head span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
  .mobile-more-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mobile-more-item {
    min-width: 0;
    min-height: 82px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    color: var(--text);
    text-align: left;
  }
  .mobile-more-item .nav-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--brand-blue);
  }
  .mobile-more-item .nav-icon { width: 18px; height: 18px; }
  .mobile-more-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }
  .mobile-more-item small {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
  }
  .mobile-more-item small .lock-mini-icon { width: 11px; height: 11px; }
  .mobile-more-item.locked { opacity: .74; }
  .mobile-more-item.active {
    color: var(--brand-blue);
    border-color: rgba(4, 102, 191, .32);
    background: linear-gradient(180deg, rgba(196, 225, 255, .72), rgba(255,255,255,.94));
    box-shadow: 0 10px 24px rgba(4, 102, 191, .11);
  }
  .mobile-more-item.active .nav-icon-wrap {
    color: white;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan), var(--brand-blue));
  }
  .mobile-nav {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: white;
    border: 1px solid rgba(4, 102, 191, .14);
    border-radius: 26px;
    z-index: 10;
    padding: 8px;
    box-shadow: 0 16px 38px rgba(4, 102, 191, .18);
    min-height: 72px;
    backdrop-filter: blur(14px);
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    padding: 8px 4px;
    color: var(--muted);
    font-size: 9px;
    display: grid;
    place-items: center;
    gap: 3px;
    border-radius: 18px;
    min-width: 0;
  }
  .mobile-nav button > .nav-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--muted);
  }
  .mobile-nav .nav-icon { width: 16px; height: 16px; stroke-width: 2; }
  .mobile-nav button > span:nth-child(2) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-nav button.active {
    background: linear-gradient(180deg, rgba(196, 225, 255, .72), rgba(227, 242, 255, .86));
    color: var(--brand-blue);
    font-weight: 800;
  }
  .mobile-nav button.active > .nav-icon-wrap {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan), var(--brand-blue));
    color: white;
    box-shadow: 0 8px 18px rgba(3, 159, 218, .28);
  }
  .mobile-nav button.locked { opacity: .62; }
  .mobile-nav button small { display: none; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 420px) {
  .mobile-more-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}
