
:root{
  --bg:#fff9f3;
  --surface:#ffffff;
  --text:#463f42;
  --muted:#8d8387;
  --line:#eee4e8;
  --rose:#b96f86;
  --rose-soft:#f6dfe7;
  --sage:#6f8c76;
  --sage-soft:#d7e5d8;
  --blue-soft:#dde8f2;
  --gold-soft:#ffe9c7;
  --danger:#c95f69;
  --shadow:0 12px 34px rgba(93,70,78,.09);
  --radius:24px;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  background:linear-gradient(180deg,var(--bg) 0%,#fff 72%);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-shell{max-width:560px;margin:0 auto;padding:18px 14px 110px}
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.brand-button{display:flex;align-items:center;gap:11px;border:0;background:transparent;padding:0;text-align:left;color:var(--text)}
.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:17px;background:var(--rose-soft);font-size:22px;font-weight:900;box-shadow:var(--shadow)}
.brand-copy{display:flex;flex-direction:column}
.brand-copy strong{font-size:17px}
.brand-copy small{margin-top:3px;color:var(--muted);font-size:11px}
.icon-button{border:0;background:var(--surface);width:44px;height:44px;border-radius:15px;color:var(--text);box-shadow:0 7px 22px rgba(0,0,0,.06);font-weight:800}
.icon-button.compact{width:34px;height:34px;border-radius:12px;font-size:22px;box-shadow:none}
.view{display:none}
.view.active{display:block}
.page-header{display:flex;align-items:center;justify-content:space-between;margin:2px 0 14px}
.page-title{font-size:25px;font-weight:900;letter-spacing:-.02em}
.page-subtitle{color:var(--muted);font-size:12px;margin-top:4px}
.back-button{border:0;background:transparent;color:var(--rose);font-weight:800;padding:4px 0 12px}
.card{background:var(--surface);border:1px solid rgba(185,111,134,.07);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}
.card.work{background:var(--rose-soft)}
.card.study{background:var(--sage-soft)}
.card.finance{background:var(--blue-soft)}
.card.dream{background:var(--gold-soft)}
.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.metric-label{font-size:11px;color:var(--muted);line-height:1.2}
.metric-value{font-size:18px;font-weight:900;margin-top:7px;letter-spacing:-.03em}
.savings-card{margin-top:10px}
.data-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 0}
.data-row+ .data-row{border-top:1px solid rgba(70,63,66,.07)}
.data-row strong{font-weight:900}
.muted{color:var(--muted)}
.small{font-size:12px}
.month-nav{display:flex;align-items:center;justify-content:space-between;margin:20px 0 11px}
.month-title{font-size:23px;font-weight:900}
.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.weekday{text-align:center;color:var(--muted);font-size:11px;padding:5px 0}
.day-cell{
  min-height:80px;border:1px solid var(--line);background:rgba(255,255,255,.86);
  border-radius:16px;padding:7px;display:flex;flex-direction:column;text-align:left;color:var(--text)
}
.day-cell.outside{opacity:.28}
.day-cell.today{background:var(--rose-soft);border-color:var(--rose)}
.day-cell.selected{outline:2px solid var(--rose)}
.day-number{font-weight:800}
.day-badges{margin-top:auto;font-size:9px;line-height:1.45;overflow:hidden}
.month-message{margin-bottom:12px;padding:14px 16px;border-radius:19px;background:#fff;font-size:14px;box-shadow:0 7px 22px rgba(0,0,0,.05)}
.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.plan-card{margin-bottom:12px}
.plan-card h3{margin:0 0 9px;font-size:16px}
.plan-item{display:flex;gap:10px;align-items:flex-start;padding:7px 0}
.plan-item input{width:18px;height:18px;accent-color:var(--sage)}
.timeline{display:flex;flex-direction:column;gap:11px;margin-top:14px}
.timeline-item{display:grid;grid-template-columns:52px 34px 1fr;gap:10px;align-items:start}
.timeline-time{font-size:12px;font-weight:800;padding-top:10px}
.timeline-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 5px 14px rgba(0,0,0,.05)}
.timeline-card{background:#fff;border-radius:18px;padding:13px 14px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.timeline-title{font-weight:900}
.timeline-meta{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.timeline-actions{display:flex;gap:7px;margin-top:8px}
.text-button{border:0;background:transparent;color:var(--rose);font-size:12px;font-weight:800;padding:0}
.fab{
  position:fixed;right:22px;bottom:24px;width:60px;height:60px;border-radius:50%;
  border:0;background:var(--rose);color:#fff;font-size:29px;box-shadow:0 12px 30px rgba(185,111,134,.36);z-index:4
}
.hidden{display:none!important}
.overlay{
  position:fixed;inset:0;background:rgba(40,31,34,.28);display:none;align-items:flex-end;justify-content:center;z-index:20;padding:0
}
.overlay.show{display:flex}
.bottom-sheet{
  width:min(100%,560px);background:#fff;border-radius:28px 28px 0 0;
  padding:10px 16px calc(20px + env(safe-area-inset-bottom));max-height:86vh;overflow:auto
}
.sheet-handle{width:42px;height:5px;border-radius:10px;background:#d8d0d3;margin:2px auto 14px}
.bottom-sheet h2{margin:0 0 10px}
.sheet-option{display:block;width:100%;border:0;background:transparent;text-align:left;padding:15px 5px;border-bottom:1px solid #eee;font-weight:800;color:var(--text)}
.primary-button,.secondary-button,.danger-button{
  width:100%;border:0;border-radius:16px;padding:14px;font-weight:900;margin-top:12px
}
.primary-button{background:var(--rose);color:#fff}
.secondary-button{background:#f1eaed;color:var(--text)}
.danger-button{background:#f8e1e4;color:var(--danger)}
.modal-overlay{align-items:center;padding:18px}
.modal-card{width:min(100%,470px);background:#fff;border-radius:26px;padding:18px;max-height:88vh;overflow:auto}
.modal-header{display:flex;align-items:center;justify-content:space-between}
.modal-header h2{margin:0}
.field{margin-top:12px}
.field label{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}
.field input,.field select,.field textarea{
  width:100%;border:1px solid var(--line);border-radius:15px;padding:12px 13px;background:#fff;color:var(--text)
}
.field textarea{min-height:92px;resize:vertical}
.list{display:flex;flex-direction:column;gap:11px}
.list-card{background:#fff;border-radius:19px;padding:14px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.progress{height:12px;border-radius:999px;background:#eee;overflow:hidden;margin:10px 0}
.progress-bar{height:100%;background:var(--sage);border-radius:999px}
.pill-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.pill-button{border:0;border-radius:999px;background:#fff;padding:9px 13px;color:var(--text);box-shadow:0 5px 14px rgba(0,0,0,.05);font-weight:800}
.report-section{margin-bottom:13px}
.empty-state{text-align:center;color:var(--muted);padding:42px 12px}
.birthday-card{background:linear-gradient(135deg,#f6dfe7,#ffe9c7);margin-bottom:12px}
.birthday-card h2{margin:0 0 8px}
.install-note{font-size:12px;color:var(--muted);line-height:1.5}
@media(max-width:380px){
  .metric-grid{grid-template-columns:1fr}
  .day-cell{min-height:70px}
  .brand-copy small{display:none}
}
