:root {
  --ink: #173f35;
  --ink-2: #245548;
  --mint: #2f7d68;
  --mint-soft: #e7f1ed;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --sand: #d5a85e;
  --sand-soft: #f7ecd9;
  --rose: #b85f57;
  --rose-soft: #fae9e6;
  --blue: #527a92;
  --blue-soft: #e8f0f4;
  --text: #18352e;
  --muted: #708078;
  --line: #e4e5dd;
  --shadow: 0 18px 55px rgba(30, 65, 55, .08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button, input, textarea { outline: none; }
button { cursor: pointer; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.ambient-one { width: 430px; height: 430px; top: 110px; right: -220px; background: rgba(47, 125, 104, .09); }
.ambient-two { width: 360px; height: 360px; bottom: 5%; left: -180px; background: rgba(213, 168, 94, .12); }

.topbar {
  height: 82px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 229, 221, .92);
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); justify-self: start; }
.brand-mark { width: 43px; height: 43px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(23,63,53,.18); }
.brand-mark svg { width: 27px; fill: none; stroke: #f7ecd9; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.brand span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-size: 20px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 5px; }

.month-navigator { position: relative; display: flex; align-items: center; gap: 7px; justify-self: center; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; font-size: 25px; display: grid; place-items: center; transition: .2s; }
.icon-btn:hover:not(:disabled) { border-color: var(--mint); transform: translateY(-1px); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.month-display { min-width: 142px; border: 0; background: transparent; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 8px; }
.month-display span { font-size: 16px; font-weight: 700; }
.month-display strong { color: var(--mint); }
.month-display svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.month-picker { position: absolute; top: 49px; right: 50%; transform: translateX(50%); width: 340px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.year-tabs { display: flex; gap: 4px; overflow: auto; padding-bottom: 10px; }
.year-tabs button { flex: 0 0 auto; border: 0; background: transparent; border-radius: 9px; padding: 7px 10px; font-size: 12px; color: var(--muted); }
.year-tabs button.active { background: var(--ink); color: white; }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.month-grid button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 5px; font-size: 12px; }
.month-grid button:hover { border-color: var(--mint); }
.month-grid button.active { background: var(--mint-soft); border-color: var(--mint); color: var(--ink); font-weight: 700; }
.month-grid button:disabled { opacity: .3; cursor: default; }

.header-actions { display: flex; gap: 8px; justify-self: end; }
.ghost-btn, .primary-btn { border-radius: 12px; padding: 10px 14px; border: 1px solid var(--line); background: var(--paper); font-weight: 650; font-size: 12px; transition: .2s; }
.ghost-btn:hover { border-color: var(--mint); }
.primary-btn { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(23,63,53,.14); }
.primary-btn:hover { background: var(--ink-2); transform: translateY(-1px); }

.shell { width: min(1440px, calc(100% - 40px)); margin: 28px auto 0; }
.hero-card {
  min-height: 260px;
  border-radius: 30px;
  background: var(--ink);
  padding: clamp(30px, 4vw, 56px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 65px rgba(23, 63, 53, .17);
}
.hero-card::after { content: ""; position: absolute; width: 360px; height: 360px; left: -50px; top: -100px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.02); }
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .09em; color: #c8dfd7; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #dbb978; box-shadow: 0 0 0 5px rgba(219,185,120,.14); }
.hero-copy h1 { margin: 14px 0 8px; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.045em; line-height: 1.08; }
.hero-copy h1 em { color: #e7c584; font-style: normal; }
.hero-copy p { margin: 0; color: #c8d8d2; max-width: 570px; line-height: 1.9; font-size: 15px; }
.hero-tags { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.hero-tags span { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); color: #dbe8e3; padding: 8px 12px; border-radius: 999px; font-size: 11px; }
.health-hero { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; min-width: 350px; }
.score-ring { --score: 0; width: 134px; height: 134px; border-radius: 50%; flex: 0 0 auto; background: conic-gradient(#e7c584 calc(var(--score) * 1%), rgba(255,255,255,.1) 0); display: grid; place-items: center; position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--ink); }
.score-ring div { position: relative; display: grid; text-align: center; }
.score-ring strong { font-size: 38px; line-height: 1; }
.score-ring small { color: #a9c0b8; margin-top: 5px; font-size: 10px; }
.health-hero .label { color: #9eb8af; font-size: 11px; }
.health-hero h2 { margin: 6px 0 5px; font-size: 24px; }
.health-hero p { margin: 0; color: #bcd0c9; font-size: 12px; max-width: 180px; line-height: 1.65; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.kpi-card { background: var(--paper); border: 1px solid rgba(228,229,221,.9); border-radius: 19px; padding: 19px; display: flex; align-items: center; gap: 13px; box-shadow: 0 10px 30px rgba(30,65,55,.035); }
.kpi-card > div:last-child { min-width: 0; display: grid; }
.kpi-card span { color: var(--muted); font-size: 11px; }
.kpi-card strong { font-size: clamp(19px, 2vw, 27px); margin: 5px 0 3px; letter-spacing: -.02em; white-space: nowrap; }
.kpi-card small { color: #94a099; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-icon, .mini-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; font-weight: 800; flex: 0 0 auto; }
.income-icon { background: var(--mint-soft); color: var(--mint); }
.debt-icon { background: var(--rose-soft); color: var(--rose); }
.cash-icon { background: var(--sand-soft); color: #9b6c27; }
.wealth-icon { background: var(--blue-soft); color: var(--blue); }
.expense-icon { background: #efe9f5; color: #74578f; }

.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.panel { background: var(--paper); border: 1px solid rgba(228,229,221,.92); border-radius: var(--radius); box-shadow: 0 12px 42px rgba(30,65,55,.045); }
.cashflow-panel, .allocation-panel, .outlook-panel, .notes-panel, .portfolio-panel { padding: 24px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.section-kicker { color: var(--mint); font-size: 9px; }
.panel-head h2, .section-heading h2 { margin: 5px 0 0; font-size: 20px; }
.panel-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 10px; padding-top: 6px; }
.legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend .green { background: var(--mint); }.legend .sand { background: var(--sand); }.legend .blue { background: var(--blue); }
.chart-wrap { height: 245px; margin-top: 18px; position: relative; }
canvas { width: 100%; height: 100%; display: block; }
.donut-layout { display: flex; align-items: center; gap: 24px; min-height: 245px; }
.donut-wrap { width: 165px; height: 165px; position: relative; flex: 0 0 auto; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center strong { font-size: 23px; }.donut-center span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.allocation-legend { flex: 1; display: grid; gap: 11px; }
.allocation-item { display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; font-size: 11px; }
.allocation-item i { width: 8px; height: 8px; border-radius: 50%; }
.allocation-item span { color: var(--muted); }.allocation-item strong { font-size: 11px; }

.section-heading { margin: 38px 4px 15px; display: flex; justify-content: space-between; align-items: end; }
.autosave-status, .disclaimer { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.autosave-status i { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px var(--mint-soft); }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ledger-card, .savings-card { overflow: hidden; }
.ledger-title { padding: 20px 22px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.ledger-title h3 { font-size: 15px; margin: 0 0 4px; }.ledger-title p { font-size: 10px; color: var(--muted); margin: 0; }
.mini-icon { width: 37px; height: 37px; border-radius: 11px; }
.ledger-body { padding: 5px 22px; }
.input-row { display: grid; grid-template-columns: 1fr 130px; align-items: center; gap: 12px; min-height: 51px; border-bottom: 1px dashed #e7e7df; }
.input-row:last-child { border-bottom: 0; }
.input-row label { font-size: 12px; }.input-note { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.money-input, .input-pair input, .expense-row input, .portfolio-foot input, .portfolio-input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 10px; color: var(--ink); text-align: left; direction: ltr; font-weight: 650; transition: .18s; }
.money-input:focus, .input-pair input:focus, .expense-row input:focus, .portfolio-foot input:focus, .portfolio-input:focus, .text-label input:focus, .text-label textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(47,125,104,.1); }
.ledger-total { display: flex; align-items: center; justify-content: space-between; background: #f3f6f3; border-top: 1px solid var(--line); padding: 16px 22px; font-size: 12px; }
.ledger-total strong { font-size: 17px; }
.wide-card { grid-column: span 1; }
.variable-title { position: relative; }.add-expense-btn { margin-right: auto; border: 1px solid #d8cce3; background: #f5f0f9; color: #74578f; border-radius: 9px; padding: 7px 9px; font-size: 9px; font-weight: 750; white-space: nowrap; }.add-expense-btn:hover { background: #74578f; color: white; }.budget-pill { font-size: 9px; color: var(--mint); background: var(--mint-soft); padding: 6px 9px; border-radius: 999px; }
.budget-pill.over { color: var(--rose); background: var(--rose-soft); }
.expense-table-head, .expense-row { display: grid; grid-template-columns: 1.35fr .8fr .8fr .65fr; gap: 10px; align-items: center; }
.expense-table-head { color: var(--muted); font-size: 9px; padding: 12px 20px 8px; }
.expense-rows { padding: 0 20px 10px; }
.expense-row { min-height: 47px; border-bottom: 1px dashed #e7e7df; font-size: 11px; }
.expense-row:last-child { border-bottom: 0; }.expense-row input { padding: 7px 8px; }.expense-name-cell { min-width: 0; display: flex; align-items: center; gap: 5px; }.expense-label-input { min-width: 0; width: 100%; border: 1px solid transparent; background: transparent; border-radius: 8px; color: var(--text); text-align: right; }.expense-label-input:hover, .expense-label-input:focus { border-color: var(--line); background: #fff; }.delete-expense-btn { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #a5ada9; font-size: 16px; }.delete-expense-btn:hover { background: var(--rose-soft); color: var(--rose); }.expense-row .variance { direction: ltr; text-align: left; font-weight: 700; color: var(--mint); }.expense-row .variance.negative { color: var(--rose); }
.multi-total { display: grid; grid-template-columns: 1fr auto; }.multi-total small { grid-column: 1 / -1; margin-top: 5px; color: var(--muted); }

.saving-block { padding: 21px 22px; border-bottom: 1px solid var(--line); }.saving-block:last-child { border-bottom: 0; }
.saving-head { display: flex; justify-content: space-between; font-size: 12px; }.saving-head span { display: flex; gap: 7px; align-items: center; }.saving-head i { width: 8px; height: 8px; border-radius: 50%; }.emergency-dot { background: var(--mint); }.safe-dot { background: var(--blue); }
.progress { height: 7px; background: #e9ece8; border-radius: 99px; margin: 14px 0 8px; overflow: hidden; }.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--mint),#7bb39f); border-radius: inherit; transition: width .4s; }
.saving-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }.input-pair label { color: var(--muted); font-size: 9px; }.input-pair input { margin-top: 5px; }
.blank-input-trio { grid-template-columns: repeat(3, 1fr); }
.safe-block { background: #fbfcfc; }.safe-block .saving-head { margin-bottom: 9px; }

.health-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.health-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 17px; min-height: 148px; display: flex; flex-direction: column; }
.health-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.health-card-head span:first-child { font-size: 10px; color: var(--muted); }.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px var(--sand-soft); }.status-dot.good { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }.status-dot.bad { background: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.health-card strong { font-size: 23px; margin-top: 15px; }.health-card p { margin: 5px 0 0; font-size: 9px; line-height: 1.6; color: var(--muted); }
.mini-meter { height: 4px; background: #edf0ed; margin-top: auto; border-radius: 99px; overflow: hidden; }.mini-meter i { display: block; height: 100%; border-radius: inherit; background: var(--sand); }.mini-meter i.good { background: var(--mint); }.mini-meter i.bad { background: var(--rose); }

.outlook-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; margin-top: 30px; }
.outlook-chart { height: 265px; }.outlook-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 16px; }.outlook-stats div { display: grid; }.outlook-stats span { color: var(--muted); font-size: 9px; }.outlook-stats strong { margin-top: 5px; font-size: 15px; }
.notes-panel { display: flex; flex-direction: column; }.text-label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; margin-top: 18px; }.text-label input, .text-label textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 11px 12px; color: var(--text); resize: vertical; line-height: 1.7; }.notes-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; margin-top: auto; padding-top: 12px; }

.portfolio-panel { margin-top: 18px; }.portfolio-head-actions { display: flex; align-items: center; gap: 14px; }.portfolio-total { display: grid; text-align: left; }.portfolio-total small { color: var(--muted); font-size: 9px; }.portfolio-total strong { font-size: 22px; margin-top: 3px; }.add-stock-btn { border: 1px solid var(--mint); background: var(--mint-soft); color: var(--ink); border-radius: 11px; padding: 9px 12px; font-size: 10px; font-weight: 750; white-space: nowrap; transition: .2s; }.add-stock-btn:hover { background: var(--mint); color: white; }
.table-scroll { overflow-x: auto; margin-top: 18px; }.portfolio-panel table { width: 100%; border-collapse: collapse; min-width: 1180px; }.portfolio-panel th { background: #f3f6f3; color: var(--muted); padding: 11px 9px; font-size: 9px; text-align: right; font-weight: 650; }.portfolio-panel th:first-child { border-radius: 0 10px 10px 0; }.portfolio-panel th:last-child { border-radius: 10px 0 0 10px; }.portfolio-panel td { padding: 11px 9px; border-bottom: 1px solid var(--line); font-size: 11px; white-space: nowrap; }.portfolio-panel td:first-child { font-weight: 700; }.portfolio-input { max-width: 92px; padding: 7px; }.company-input { max-width: 180px; min-width: 150px; direction: rtl; text-align: right; font-weight: 700; }.delete-stock-btn { border: 0; background: var(--rose-soft); color: var(--rose); border-radius: 8px; padding: 7px 9px; font-size: 9px; }.delete-stock-btn:hover { background: var(--rose); color: white; }.positive { color: var(--mint)!important; }.negative { color: var(--rose)!important; }
.portfolio-foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 16px; padding: 14px; background: #f8f7f1; border-radius: 13px; }.portfolio-foot label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }.portfolio-foot input { width: 130px; }.portfolio-foot > div { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted); }.portfolio-foot strong { color: var(--ink); font-size: 18px; }

footer { min-height: 95px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(23,63,53,.12); margin-top: 35px; }.footer-actions, footer > div:first-child { display: flex; gap: 13px; align-items: center; }.footer-actions button, .footer-actions a { border: 0; background: transparent; color: var(--mint); font-size: 10px; text-decoration: underline; text-underline-offset: 4px; }.footer-actions .danger-link { color: var(--rose); }footer strong { color: var(--ink); }footer span { color: var(--muted); font-size: 10px; }
.privacy-page { min-height: 100vh; padding: 32px 0 60px; }.privacy-nav { width: min(880px, calc(100% - 32px)); margin: 0 auto 20px; display: flex; justify-content: space-between; align-items: center; }.privacy-nav .brand { justify-self: auto; }.back-link { color: var(--mint); text-decoration: none; font-size: 12px; font-weight: 700; }.privacy-card { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: clamp(24px, 5vw, 54px); background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }.privacy-card h1 { margin: 8px 0 12px; font-size: clamp(30px, 5vw, 48px); color: var(--ink); }.privacy-lead { color: var(--muted); line-height: 1.9; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }.privacy-section { padding: 22px 0; border-bottom: 1px solid var(--line); }.privacy-section:last-child { border-bottom: 0; padding-bottom: 0; }.privacy-section h2 { margin: 0 0 10px; font-size: 17px; }.privacy-section p, .privacy-section li { color: var(--muted); font-size: 12px; line-height: 1.9; }.privacy-section ul { margin: 0; padding-right: 18px; }.privacy-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); background: var(--mint-soft); padding: 7px 11px; border-radius: 999px; font-size: 10px; font-weight: 700; }.privacy-badge::before { content: "●"; font-size: 7px; }
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 50; padding: 12px 16px; color: white; background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); font-size: 11px; transform: translateY(90px); opacity: 0; transition: .3s; }.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: auto 1fr auto; }.ghost-btn { display: none; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }.health-grid { grid-template-columns: repeat(3,1fr); }
  .dashboard-grid, .outlook-grid { grid-template-columns: 1fr; }.allocation-panel { min-height: auto; }
}
@media (max-width: 760px) {
  .topbar { height: auto; min-height: 72px; padding: 10px 14px; gap: 8px; }.brand small, .primary-btn span { display: none; }.brand-mark { width: 36px; height: 36px; }.brand strong { font-size: 16px; }.month-display { min-width: 100px; }.month-display span { font-size: 13px; }.icon-btn { width: 32px; height: 32px; }.primary-btn { padding: 9px; font-size: 10px; }
  .shell { width: min(100% - 20px, 1440px); margin-top: 12px; }.hero-card { padding: 27px 22px; display: grid; border-radius: 22px; }.hero-copy h1 { font-size: 38px; }.health-hero { min-width: 0; }.score-ring { width: 105px; height: 105px; }.score-ring strong { font-size: 29px; }
  .kpi-grid { gap: 9px; }.kpi-card { padding: 14px; }.kpi-icon { display: none; }.kpi-card strong { font-size: 18px; }
  .dashboard-grid, .edit-grid, .outlook-grid { gap: 11px; }.edit-grid { grid-template-columns: 1fr; }.wide-card { grid-column: auto; }
  .cashflow-panel, .allocation-panel, .outlook-panel, .notes-panel, .portfolio-panel { padding: 18px; }.donut-layout { gap: 12px; }.donut-wrap { width: 135px; height: 135px; }.chart-wrap { height: 220px; }
  .health-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }.health-card { min-height: 135px; }.section-heading { align-items: start; gap: 10px; }.disclaimer { text-align: left; }
  .variable-title { flex-wrap: wrap; }.add-expense-btn { margin-right: auto; }.budget-pill { order: 4; margin-right: 49px; }
  .outlook-stats { grid-template-columns: 1fr; }.portfolio-panel .panel-head { flex-direction: column; }.portfolio-head-actions { width: 100%; justify-content: space-between; }.portfolio-foot { align-items: stretch; flex-direction: column; }.portfolio-foot > div, .portfolio-foot label { justify-content: space-between; }
  footer { flex-direction: column; align-items: flex-start; padding: 25px 5px; gap: 15px; }footer > div:first-child { display: grid; }
}
@media (max-width: 480px) {
  .brand span:last-child { display: none; }.topbar { grid-template-columns: auto 1fr auto; }.month-picker { width: 300px; }.hero-tags span:last-child { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }.kpi-card span { font-size: 9px; }.kpi-card strong { font-size: 16px; }
  .health-grid { grid-template-columns: 1fr 1fr; }.expense-table-head, .expense-row { grid-template-columns: 1.2fr .8fr .8fr; }.expense-table-head span:last-child, .expense-row .variance { display: none; }.input-row { grid-template-columns: 1fr 110px; }.donut-layout { flex-direction: column; }.allocation-legend { width: 100%; grid-template-columns: 1fr 1fr; }
  .blank-input-trio { grid-template-columns: 1fr; }
}
@media print {
  body { background: white; }.topbar, .ambient, .header-actions, footer, .autosave-status, .footer-actions { display: none!important; }.shell { width: 100%; margin: 0; }.hero-card { box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }.panel, .kpi-card { box-shadow: none; break-inside: avoid; }.edit-grid, .dashboard-grid, .outlook-grid { grid-template-columns: 1fr 1fr; }.health-grid { grid-template-columns: repeat(5,1fr); }
}
