:root {
  color-scheme: light;
  --ink: #1e342e;
  --muted: #73817b;
  --deep: #173f36;
  --deep-2: #24584c;
  --mint: #dbece5;
  --mint-2: #eef5ef;
  --paper: #f7f6f0;
  --surface: #fffefa;
  --line: #e8e9df;
  --sun: #e9bc62;
  --coral: #cd7661;
  --soft-coral: #fbefeb;
  --blue: #dcebf0;
  --shadow: 0 14px 36px rgba(31, 58, 48, .055);
  --radius: 22px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.65; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(36, 88, 76, .35); outline-offset: 3px; }
button:disabled { opacity: .56; cursor: not-allowed; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 0 0 auto; z-index: 20; display: flex; flex-direction: column; width: 248px; padding: 30px 20px 18px; background: #fbfaf5; border-left: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 4px 8px 27px; }
.brand-mark { position: relative; display: inline-flex; align-items: end; gap: 3px; justify-content: center; width: 37px; height: 37px; padding: 7px; border-radius: 13px; background: var(--deep); overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.21); border-radius: 9px; }
.brand-mark i { position: relative; z-index: 1; display: block; width: 5px; border-radius: 4px 4px 2px 2px; background: #e6c575; transform: skewY(-23deg); }
.brand-mark i:nth-child(1) { height: 9px; opacity: .72; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 22px; opacity: .9; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 20px; letter-spacing: -.04em; }
.brand-copy small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.sidebar-label { padding: 0 11px 8px; color: #99a39d; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.side-nav { display: grid; gap: 6px; }
.nav-item { position: relative; width: 100%; display: flex; align-items: center; gap: 13px; border: 0; background: transparent; border-radius: 13px; padding: 11px 12px; text-align: right; color: #6b7b73; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-item:hover { background: #f0f2ea; color: var(--deep); transform: translateX(-2px); }
.nav-item.active { background: var(--mint-2); color: var(--deep); font-weight: 700; }
.nav-icon { display: inline-grid; place-items: center; width: 24px; color: #71867b; font-size: 20px; line-height: 1; }
.nav-item.active .nav-icon { color: var(--deep); }
.nav-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-inline-start: auto; padding: 0 5px; border-radius: 99px; background: var(--coral); color: white; font-size: 11px; }
.sidebar-spacer { flex: 1; min-height: 36px; }
.sidebar-note { position: relative; overflow: hidden; margin: 0 2px 18px; padding: 18px 17px 16px; border-radius: 18px; background: #f2eee1; }
.sidebar-note::after { content: ""; position: absolute; left: -20px; top: -24px; width: 84px; height: 84px; border: 1px solid rgba(185, 151, 82, .2); border-radius: 48% 52% 60% 40%; transform: rotate(28deg); }
.note-spark { color: #b38d43; font-size: 17px; }
.sidebar-note p { position: relative; z-index: 1; margin: 7px 0 0; color: #777463; font-size: 12px; line-height: 1.9; }
.sidebar-note strong { color: #3e4d43; }
.settings-link { margin-top: 3px; }
.sidebar-foot { padding: 15px 10px 0; color: #9aa29d; font-size: 10px; }
.main-content { max-width: 1450px; min-height: 100vh; margin-right: 248px; padding: 0 44px 35px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 83px; border-bottom: 1px solid rgba(226, 228, 219, .72); }
.topbar-date { color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button, .avatar-button { position: relative; display: inline-grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; }
.icon-button { color: var(--deep); font-size: 19px; }
.icon-button b { position: absolute; top: 7px; left: 8px; width: 7px; height: 7px; border: 1.5px solid white; border-radius: 50%; background: var(--coral); }
.avatar-button { border: 0; border-radius: 50%; background: #e5ebe3; color: var(--deep); font-weight: 800; }
.mobile-only { display: none; }
.view { padding-top: 34px; animation: enter .32s ease both; }
.view[hidden] { display: none !important; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.welcome-row, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.welcome-row { padding: 12px 0 0; }
.eyebrow { margin: 0 0 6px; color: #7b8b80; font-size: 11px; font-weight: 750; letter-spacing: .055em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; color: var(--ink); font-size: clamp(27px, 3.2vw, 37px); font-weight: 750; letter-spacing: -.045em; line-height: 1.35; }
h2 { margin: 0; font-size: 18px; font-weight: 720; letter-spacing: -.025em; line-height: 1.45; }
h3 { margin: 0; font-size: 15px; }
.subheading { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 9px 16px; border: 1px solid transparent; border-radius: 13px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--deep); box-shadow: 0 7px 15px rgba(23, 63, 54, .12); }
.button-primary:hover { background: var(--deep-2); }
.button-secondary { color: var(--deep); background: #e9f1eb; border-color: #e0eae1; }
.button-quiet { color: #4f6559; background: transparent; border-color: var(--line); }
.button-quiet:hover { background: #f7f8f2; }
.plus { font-size: 18px; line-height: 1; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; border: 0; background: transparent; color: #547665; font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--deep); }
.quote-strip { position: relative; display: flex; align-items: center; gap: 13px; min-height: 63px; margin-bottom: 20px; padding: 13px 18px; border: 1px solid rgba(218, 225, 211, .8); border-radius: 17px; background: #f0f3eb; color: #4d6458; }
.quote-strip p { margin: 0; font-size: 13px; }
.quote-mark { align-self: flex-start; color: #a4b6a6; font-family: Georgia, serif; font-size: 37px; line-height: 1; }
.quote-leaf { margin-inline-start: auto; color: #9ba98d; font-size: 16px; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 19px; }
.stat-card { position: relative; overflow: hidden; min-height: 111px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 6px 20px rgba(37, 56, 45, .025); }
.stat-card::before { content: ""; position: absolute; left: -23px; bottom: -32px; width: 93px; height: 70px; border-radius: 50%; background: var(--stat-wash, #edf2e9); transform: rotate(-23deg); }
.stat-label { position: relative; color: var(--muted); font-size: 11px; }
.stat-value { position: relative; display: block; margin-top: 5px; color: var(--deep); font-size: 25px; font-weight: 760; line-height: 1.25; }
.stat-foot { position: relative; display: block; margin-top: 4px; color: #9aa39d; font-size: 10px; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 16px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.today-panel, .focus-panel, .money-panel, .tip-panel { padding: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.panel-heading .eyebrow { margin-bottom: 3px; }
.task-list { display: grid; gap: 8px; }
.task-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 11px; padding: 12px 11px; border: 1px solid #eef0e8; border-radius: 14px; background: #fff; transition: border-color .15s ease, background .15s ease; }
.task-item:hover { border-color: #dbe6db; background: #fdfefb; }
.task-item.is-overdue { border-color: #f1ddd5; background: #fffaf7; }
.task-check { appearance: none; display: grid; place-items: center; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid #bcc9bf; border-radius: 7px; background: white; cursor: pointer; }
.task-check::after { content: "✓"; color: white; font-size: 13px; font-weight: 800; opacity: 0; transform: scale(.6); transition: .13s ease; }
.task-check:checked { border-color: var(--deep); background: var(--deep); }
.task-check:checked::after { opacity: 1; transform: scale(1); }
.task-main { min-width: 0; }
.task-title { display: block; color: #304239; font-size: 13px; font-weight: 650; line-height: 1.55; }
.task-item.completed .task-title { color: #89938b; text-decoration: line-through; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin-top: 4px; color: #909b92; font-size: 10px; }
.task-tag { display: inline-flex; align-items: center; gap: 4px; }
.task-priority { width: 6px; height: 6px; border-radius: 50%; background: #9db3a2; }
.task-priority.high { background: var(--coral); }
.task-priority.low { background: var(--sun); }
.task-actions { display: flex; gap: 4px; }
.mini-action { display: inline-grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 9px; background: transparent; color: #84928a; cursor: pointer; }
.mini-action:hover { background: #edf2ec; color: var(--deep); }
.mini-action.danger:hover { background: #fff0ec; color: #b35443; }
.add-inline { width: 100%; margin-top: 11px; }
.empty-state { display: grid; place-items: center; min-height: 117px; padding: 20px 15px; border: 1px dashed #dce4d9; border-radius: 15px; color: #8b988e; text-align: center; font-size: 12px; }
.empty-state strong { display: block; margin-bottom: 2px; color: #566a5e; font-size: 13px; }
.empty-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 5px; border-radius: 50%; background: #edf3eb; color: #77937d; font-size: 16px; }
.goal-preview-list { display: grid; gap: 13px; }
.goal-preview { display: grid; gap: 7px; padding: 12px 0; border-bottom: 1px solid #f0f1e9; }
.goal-preview:last-child { border-bottom: 0; }
.goal-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: #33453a; font-size: 12px; font-weight: 650; }
.goal-percent { color: #648271; font-size: 11px; font-weight: 750; }
.progress-track { overflow: hidden; height: 7px; border-radius: 99px; background: #edf0e8; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8dac91, #35715e); transition: width .3s ease; }
.goal-subline { color: #929c93; font-size: 10px; }
.money-summary { display: grid; gap: 11px; }
.money-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f1e9; color: #7d8981; font-size: 12px; }
.money-row:last-of-type { border: 0; }
.money-row strong { color: var(--ink); font-size: 13px; font-weight: 700; }
.money-row strong.positive { color: #428066; }
.money-row strong.negative { color: #bd6955; }
.saving-mini { margin-top: 7px; padding: 12px; border-radius: 13px; background: #f4f2e7; }
.saving-mini-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #74806d; font-size: 10px; }
.saving-mini .progress-track { background: rgba(255,255,255,.8); }
.saving-mini .progress-fill { background: #b68d43; }
.tip-panel { position: relative; overflow: hidden; min-height: 218px; background: #eaf0e6; border-color: #e0e9db; }
.tip-panel::after { content: ""; position: absolute; left: -22px; bottom: -38px; width: 156px; height: 100px; border: 1px solid rgba(104, 139, 108, .18); border-radius: 55% 45% 40% 60%; transform: rotate(-20deg); }
.tip-panel-top { display: flex; align-items: center; gap: 8px; }
.tip-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 10px; background: #d8e5d5; color: #52765d; }
.tip-panel h2 { margin-top: 14px; font-size: 17px; }
.tip-panel p { max-width: 420px; margin: 8px 0 12px; color: #67786c; font-size: 12px; line-height: 1.9; }
.tip-panel .text-button { position: relative; z-index: 1; }
.overdue-panel { margin-top: 17px; padding: 21px; border-color: #f0ddd4; background: #fffdfa; }
.eyebrow-warn { color: #bd705c; }
.small-muted { color: #9a9d93; font-size: 10px; }
.privacy-inline { margin: 19px 4px 0; color: #a0a59d; font-size: 10px; }
.home-companion-stack { display: grid; gap: 12px; margin-bottom: 18px; }
.home-plan-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border: 1px solid #e0e9db; border-radius: 17px; background: #eaf0e6; }
.home-plan-copy { display: grid; gap: 2px; min-width: 0; }
.home-plan-copy strong { color: #3c5947; font-size: 13px; }
.home-plan-copy span { color: #78877b; font-size: 10px; }
.home-checkin { padding: 18px 20px; }
.checkin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.checkin-date-nav { display: flex; align-items: center; gap: 6px; }
.checkin-date-nav button { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #e3e9df; border-radius: 9px; background: #fff; color: #66806d; cursor: pointer; }
.checkin-date-nav button:disabled { opacity: .4; cursor: default; }
.checkin-date-nav .small-muted { min-width: 90px; text-align: center; }
.checkin-columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.9fr); gap: 15px; }
.checkin-priorities { display: grid; gap: 8px; }
.checkin-reflection { display: grid; gap: 8px; }
.checkin-field { display: grid; gap: 4px; color: #728076; font-size: 10px; }
.checkin-field input, .checkin-field textarea, .companion-form input, .companion-form textarea, .companion-form select { min-height: 38px; padding: 8px 10px; border: 1px solid #e2e7de; border-radius: 10px; background: #fff; color: #34453b; font-size: 11px; }
.checkin-field textarea, .companion-form textarea { min-height: 68px; resize: vertical; }
.checkin-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.companion-plan-panel, .companion-card, .companion-weekly-panel { padding: 22px; }
.companion-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(310px,.9fr); gap: 15px; margin-top: 15px; }
.companion-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.companion-section-head .eyebrow { margin-bottom: 3px; }
.companion-form { display: grid; gap: 11px; }
.companion-form label { display: grid; gap: 5px; }
.companion-form .form-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.plan-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 15px; align-items: center; margin-bottom: 17px; }
.plan-summary h2 { margin-bottom: 4px; color: #344b3d; }
.plan-reason { margin: 4px 0 0; color: #7d897f; font-size: 11px; }
.plan-days { display: grid; place-items: center; min-width: 77px; min-height: 77px; padding: 8px; border-radius: 19px; background: #edf4ec; color: #4b715b; text-align: center; }
.plan-days strong { font-size: 21px; line-height: 1.1; }
.plan-days span { font-size: 9px; }
.weekly-step-list { display: grid; gap: 8px; margin: 13px 0; }
.weekly-step-item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #edf0e8; border-radius: 12px; background: #fff; }
.weekly-step-item.done { background: #f1f6ef; }
.weekly-step-indicator { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 21px; border: 1px solid #c5d2c4; border-radius: 7px; color: #fff; font-size: 12px; }
.weekly-step-item.done .weekly-step-indicator { border-color: #648772; background: #648772; }
.weekly-step-copy { display: grid; min-width: 0; }
.weekly-step-copy strong { color: #4a5e50; font-size: 11px; }
.weekly-step-copy small { color: #929c92; font-size: 9px; }
.habit-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0 13px; }
.preset-chip { min-height: 31px; padding: 5px 9px; border: 1px solid #e1e8df; border-radius: 99px; background: #f6f8f3; color: #607466; font-size: 10px; cursor: pointer; }
.preset-chip:hover { background: #eaf1e8; }
.habit-list { display: grid; gap: 9px; margin-top: 14px; }
.habit-card { padding: 12px; border: 1px solid #edf0e8; border-radius: 14px; background: #fff; }
.habit-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.habit-title { color: #3c5144; font-size: 12px; font-weight: 700; }
.habit-meta { color: #929c92; font-size: 9px; }
.habit-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; margin-top: 11px; }
.habit-day { display: grid; justify-items: center; gap: 4px; color: #929c92; font-size: 8px; }
.habit-day-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; background: #f1f3ed; color: #a4ada4; font-size: 10px; }
.habit-day-mark.done { background: #dcebe0; color: #42745a; }
.habit-day-mark.today { outline: 1px solid #9eb8a1; outline-offset: 1px; }
.habit-actions { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.habit-actions .button { min-height: 34px; padding: 6px 10px; font-size: 10px; }
.habit-actions .mini-action { margin-inline-start: auto; }
.focus-clock { display: grid; place-items: center; min-height: 165px; margin: 12px 0; border-radius: 22px; background: #edf3eb; color: #254e40; text-align: center; }
.focus-clock strong { font-size: clamp(42px,7vw,60px); font-variant-numeric: tabular-nums; font-weight: 720; letter-spacing: -.04em; line-height: 1.15; }
.focus-clock span { color: #77897c; font-size: 11px; }
.focus-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 11px; }
.focus-controls .button { min-height: 38px; padding: 7px 12px; font-size: 11px; }
.focus-stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; color: #78857a; font-size: 10px; }
.weekly-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 13px 0 16px; }
.weekly-summary-card { display: grid; gap: 2px; padding: 11px; border-radius: 12px; background: #f3f5ef; }
.weekly-summary-card strong { color: #3e634d; font-size: 17px; }
.weekly-summary-card span { color: #818c83; font-size: 9px; }
.weekly-history { display: grid; gap: 8px; margin-top: 14px; }
.weekly-history-item { padding: 10px 12px; border-radius: 12px; background: #f7f7f1; color: #6e7b70; font-size: 10px; line-height: 1.75; }
.weekly-history-item strong { color: #4a6251; }
.companion-empty { padding: 13px; border: 1px dashed #dce4d9; border-radius: 13px; color: #8b988e; font-size: 11px; line-height: 1.8; }
.page-heading { align-items: center; margin-bottom: 26px; }
.page-heading .subheading { max-width: 600px; }
.planner-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; padding: 12px 15px; }
.segmented-control { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: #f2f3ed; }
.segment { min-width: 84px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: #7d8a80; font-size: 11px; cursor: pointer; }
.segment.active { background: white; color: var(--deep); font-weight: 750; box-shadow: 0 2px 9px rgba(25,53,39,.07); }
.planner-summary { color: #78857a; font-size: 11px; }
.planner-list-panel { padding: 21px; }
.count-pill { min-width: 26px; height: 26px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 9px; background: #edf3ec; color: #577661; font-size: 11px; font-weight: 700; }
.goal-guidance { display: flex; align-items: center; gap: 10px; margin: -4px 0 19px; padding: 12px 15px; border-radius: 14px; background: #f0f3e9; color: #667668; font-size: 12px; }
.goal-guidance span { color: #b18e4a; font-size: 17px; }
.goal-guidance p { margin: 0; }
.goals-list { display: grid; gap: 13px; }
.goal-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 20px 21px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.goal-card-main { min-width: 0; }
.goal-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 7px; }
.goal-card-title h3 { color: #34473b; }
.category-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 99px; background: #edf3ea; color: #66806d; font-size: 10px; }
.goal-card .progress-track { height: 8px; margin-top: 11px; }
.goal-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: #909b91; font-size: 10px; }
.goal-card-actions { display: flex; align-items: flex-start; gap: 5px; }
.wallet-overview { display: grid; grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); gap: 12px; margin-bottom: 16px; }
.wallet-card { position: relative; overflow: hidden; min-height: 116px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.wallet-card.primary { background: var(--deep); border-color: var(--deep); color: white; }
.wallet-card.primary.over-budget { background: #955449; border-color: #955449; }
.wallet-card.primary .wallet-label, .wallet-card.primary .wallet-hint { color: rgba(255,255,255,.71); }
.wallet-card.primary .wallet-amount { color: white; }
.wallet-card.daily { background: #edf4ec; border-color: #e0eadf; }
.wallet-card.daily.over-budget { background: #fbefeb; border-color: #f1ddd5; }
.wallet-card.daily.over-budget .wallet-amount { color: #ad5e4e; }
.wallet-card.savings { background: #f4f1e5; border-color: #eee9d9; }
.wallet-label { color: #829087; font-size: 10px; }
.wallet-amount { display: block; margin: 9px 0 2px; color: var(--ink); font-size: clamp(17px,2vw,24px); font-weight: 760; line-height: 1.25; }
.wallet-hint { color: #98a098; font-size: 10px; }
.wallet-columns { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 16px; }
.budget-breakdown, .transaction-panel { padding: 21px; }
.breakdown-list { display: grid; gap: 13px; }
.breakdown-row { display: grid; gap: 6px; }
.breakdown-top { display: flex; justify-content: space-between; gap: 10px; color: #718076; font-size: 11px; }
.breakdown-top strong { color: #46584c; font-weight: 650; }
.breakdown-track { height: 7px; overflow: hidden; border-radius: 99px; background: #f0f1eb; }
.breakdown-fill { height: 100%; min-width: 2px; border-radius: inherit; background: #9eb89f; }
.transaction-list { display: grid; }
.transaction-item { display: grid; grid-template-columns: 37px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f0f1e9; }
.transaction-item:last-child { border: 0; }
.transaction-kind { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; background: #f1f3ec; color: #668170; }
.transaction-kind.expense { background: #fbefeb; color: #bd705c; }
.transaction-kind.saving { background: #f4f1e5; color: #a68a4a; }
.transaction-copy { min-width: 0; }
.transaction-copy strong { display: block; color: #405148; font-size: 11px; }
.transaction-copy small { color: #a0a69e; font-size: 9px; }
.transaction-amount { text-align: left; color: #4d765f; font-size: 11px; font-weight: 700; white-space: nowrap; }
.transaction-amount.expense { color: #bd705c; }
.transaction-amount.saving { color: #a68a4a; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0; }
.filter-chip { min-height: 33px; padding: 6px 12px; border: 1px solid #e2e7dd; border-radius: 99px; background: transparent; color: #718177; font-size: 11px; cursor: pointer; }
.filter-chip.active { border-color: var(--deep); background: var(--deep); color: white; }
.wisdom-feature { position: relative; overflow: hidden; padding: 23px 26px; border-radius: 21px; background: #e9f0e5; color: #445d4e; }
.wisdom-feature::after { content: "✦"; position: absolute; left: 25px; top: 5px; color: rgba(105, 140, 111, .19); font-size: 77px; }
.wisdom-feature .eyebrow { color: #7c907e; }
.wisdom-feature h2 { position: relative; z-index: 1; margin: 4px 0 5px; font-size: 19px; }
.wisdom-feature p { position: relative; z-index: 1; max-width: 750px; margin: 0; color: #708173; font-size: 12px; line-height: 1.9; }
.tips-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.tip-card { min-height: 155px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.tip-card .category-pill { margin-bottom: 10px; }
.tip-card h3 { margin-bottom: 7px; color: #3c5043; font-size: 13px; }
.tip-card p { margin: 0; color: #76837a; font-size: 11px; line-height: 1.9; }
.settings-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.settings-card { padding: 21px; }
.settings-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; background: #edf3ec; color: #63806b; }
.settings-description { margin: -4px 0 14px; color: #818c83; font-size: 11px; line-height: 1.9; }
.install-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.install-steps li { padding: 10px 12px; border-radius: 12px; background: #f4f6ef; color: #718076; font-size: 11px; line-height: 1.9; }
.install-steps strong { color: #3f5c49; }
.notification-state { margin: 11px 0; padding: 10px 12px; border-radius: 12px; background: #f5f5ef; color: #738177; font-size: 11px; }
.notification-state.granted { background: #edf5ec; color: #4c755b; }
.notification-state.denied { background: #fbefeb; color: #ad6656; }
.micro-note { margin: 9px 0 0; color: #a0a69e; font-size: 9px; line-height: 1.8; }
.form-stack { display: grid; gap: 11px; }
label { display: grid; gap: 6px; color: #68776c; font-size: 11px; font-weight: 650; }
input, select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #e2e7de; border-radius: 11px; background: #fff; color: #34453b; font-size: 12px; font-weight: 450; }
input::placeholder { color: #b3bab2; }
input[type="range"] { min-height: auto; padding: 0; accent-color: var(--deep); }
label span { color: var(--deep); }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.file-button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 13px; background: transparent; color: #4f6559; font-size: 13px; cursor: pointer; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; padding: 27px 5px 4px; color: #a0a69e; font-size: 10px; }
.app-footer span:first-child { color: #64776a; font-weight: 700; }
.mobile-nav { display: none; }
.app-dialog { width: min(490px, calc(100% - 28px)); max-height: min(88vh, 760px); padding: 0; overflow: auto; border: 1px solid #e5e7de; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(19, 43, 33, .2); }
.app-dialog::backdrop { background: rgba(21, 38, 31, .4); backdrop-filter: blur(3px); }
.dialog-form { display: grid; gap: 13px; padding: 22px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 3px; }
.dialog-heading h2 { font-size: 20px; }
.close-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 11px; background: #f2f3ed; color: #6b7b70; font-size: 24px; line-height: 1; cursor: pointer; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.toast-region { position: fixed; z-index: 70; bottom: 25px; left: 25px; display: grid; gap: 8px; width: min(350px, calc(100% - 30px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 15px; border: 1px solid #dfe7dd; border-radius: 14px; background: #fffefa; color: #4c6353; box-shadow: 0 13px 34px rgba(29, 49, 36, .14); font-size: 12px; animation: toast-in .24s ease both; }
.toast.error { border-color: #f0d8cf; color: #a65948; }
.toast.success::before { content: "✓"; display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%; background: #e5f0e5; color: #447451; font-size: 12px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) { .main-content { margin-left: auto; margin-right: max(248px, calc((100vw - 1450px) / 2)); } }
@media (max-width: 1120px) { .main-content { padding-right: 28px; padding-left: 28px; } .dashboard-layout { grid-template-columns: minmax(0,1fr) minmax(250px,.9fr); } .tips-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 850px) { .sidebar { width: 210px; padding-right: 15px; padding-left: 15px; } .main-content { margin-right: 210px; padding-right: 21px; padding-left: 21px; } .dashboard-layout { grid-template-columns: 1fr; } .wallet-overview { grid-template-columns: repeat(2,minmax(0,1fr)); } .wallet-columns { grid-template-columns: 1fr; } .tip-panel { min-height: auto; } }
@media (max-width: 640px) {
  body { font-size: 14px; }
  .sidebar { display: none; }
  .main-content { margin: 0; padding: 0 17px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { position: relative; min-height: 64px; border-bottom-color: rgba(226,228,219,.8); }
  .mobile-only { display: inline-flex; }
  .topbar-brand { align-items: center; gap: 8px; color: var(--deep); font-size: 17px; }
  .topbar-brand .brand-mark { width: 29px; height: 29px; padding: 5px; border-radius: 10px; }
  .brand-mark.small i:nth-child(1) { height: 7px; }
  .brand-mark.small i:nth-child(2) { height: 12px; }
  .brand-mark.small i:nth-child(3) { height: 17px; }
  .topbar-date { display: none; }
  .topbar-actions { gap: 8px; }
  .icon-button, .avatar-button { width: 35px; height: 35px; }
  .view { padding-top: 23px; }
  .welcome-row, .page-heading { align-items: flex-start; gap: 13px; margin-bottom: 18px; }
  .welcome-row { flex-direction: column; padding-top: 4px; }
  .welcome-row > .button { align-self: stretch; }
  .page-heading { flex-direction: column; }
  .page-heading > .button { align-self: stretch; }
  h1 { font-size: 27px; }
  h2 { font-size: 16px; }
  .subheading { font-size: 12px; }
  .quote-strip { min-height: 58px; gap: 8px; margin-bottom: 13px; padding: 10px 12px; }
  .quote-strip p { font-size: 11px; }
  .stats-row { gap: 8px; margin-bottom: 13px; }
  .stat-card { min-height: 94px; padding: 12px 10px; border-radius: 15px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 20px; }
  .stat-foot { font-size: 9px; }
  .dashboard-layout { gap: 12px; }
  .today-panel, .focus-panel, .money-panel, .tip-panel, .planner-list-panel, .budget-breakdown, .transaction-panel, .settings-card { padding: 17px; border-radius: 18px; }
  .panel-heading { margin-bottom: 13px; }
  .task-item { gap: 8px; padding: 10px 8px; }
  .task-title { font-size: 12px; }
  .task-actions { gap: 1px; }
  .mini-action { width: 26px; height: 26px; }
  .planner-toolbar { align-items: flex-start; flex-direction: column; padding: 12px; }
  .segmented-control { display: flex; width: 100%; }
  .segment { min-width: 0; flex: 1; padding: 8px 7px; font-size: 10px; }
  .planner-summary { padding-inline: 4px; }
  .goal-card { grid-template-columns: minmax(0,1fr); gap: 7px; padding: 16px; }
  .goal-card-actions { justify-content: flex-end; }
  .wallet-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .wallet-card { min-height: 101px; padding: 13px; border-radius: 15px; }
  .wallet-amount { font-size: 18px; }
  .tips-grid { grid-template-columns: 1fr; gap: 10px; }
  .tip-card { min-height: auto; padding: 16px; }
  .wisdom-feature { padding: 19px; }
  .settings-layout { grid-template-columns: 1fr; gap: 11px; }
  .checkin-columns, .companion-grid { grid-template-columns: 1fr; }
  .home-plan-strip { align-items: flex-start; flex-direction: column; }
  .home-plan-strip .button { align-self: stretch; }
  .companion-plan-panel, .companion-card, .companion-weekly-panel { padding: 17px; }
  .plan-summary { grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
  .plan-days { min-width: 65px; min-height: 65px; border-radius: 16px; }
  .weekly-summary { gap: 6px; }
  .weekly-summary-card { padding: 9px; }
  .app-footer { padding-top: 20px; font-size: 9px; }
  .mobile-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(225,228,218,.9); background: rgba(255,254,250,.96); backdrop-filter: blur(17px); }
  .mobile-nav-item { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 4px 2px; border: 0; border-radius: 11px; background: transparent; color: #909c92; cursor: pointer; }
  .mobile-nav-item span { font-size: 19px; line-height: 1.15; }
  .mobile-nav-item small { font-size: 8px; white-space: nowrap; }
  .mobile-nav-item.active { color: var(--deep); font-weight: 750; }
  .mobile-nav-item.active span { color: #56806a; }
  .toast-region { bottom: calc(78px + env(safe-area-inset-bottom)); left: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }


/* التقارير والهوية الشخصية */
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; padding: 12px; }
.report-period-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 13px; background: #f2f4ed; }
.report-period-button { min-height: 35px; padding: 6px 13px; border: 0; border-radius: 10px; background: transparent; color: #76857a; font-size: 11px; font-weight: 700; cursor: pointer; }
.report-period-button.active { background: var(--deep); color: #fff; box-shadow: 0 3px 8px rgba(23,63,54,.12); }
.report-date-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 245px; }
.report-date-nav strong { min-width: 120px; text-align: center; color: #4a5e51; font-size: 12px; }
.report-date-nav .icon-button { width: 34px; height: 34px; border-radius: 11px; }
.report-compare-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 2px 9px; color: #7b897e; font-size: 10px; }
.report-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.report-metric-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 7px 20px rgba(37,56,45,.025); }
.report-metric-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; color: #758278; font-size: 10px; }
.report-metric-heading strong { color: var(--deep); font-size: 18px; line-height: 1.35; text-align: left; }
.report-metric-context { min-height: 30px; margin: 4px 0 8px; color: #9aa49c; font-size: 9px; }
.report-trend { display: inline-flex; align-items: center; min-height: 23px; margin-bottom: 6px; padding: 3px 8px; border-radius: 99px; background: #f1f3ec; color: #768176; font-size: 9px; }
.report-trend.better { background: #eaf3e9; color: #4d7958; }
.report-trend.worse { background: #fbefeb; color: #ae6656; }
.report-bars { display: grid; gap: 7px; }
.report-bar-row { display: grid; grid-template-columns: 47px minmax(18px,1fr) auto; align-items: center; gap: 7px; color: #8c988f; font-size: 8px; }
.report-bar-row b { max-width: 85px; color: #52685a; font-size: 9px; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.report-bar-track { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #eff2ec; }
.report-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#8bad91,#48745c); }
.report-bar-row.previous .report-bar-track i { background: #bacbbb; }
.report-notes { margin-top: 16px; padding: 21px; }
.report-note-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.report-note-grid textarea { width: 100%; min-height: 110px; resize: vertical; padding: 11px 12px; border: 1px solid #e2e7de; border-radius: 12px; background: #fff; color: #34453b; font: inherit; font-size: 12px; line-height: 1.8; }
.report-note-grid textarea::placeholder { color: #adb6ad; }
.report-note-grid textarea:focus-visible { outline: 3px solid rgba(36,88,76,.24); outline-offset: 2px; }
.report-note-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.home-report-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 15px 18px; border: 1px solid #dce8dc; border-radius: 17px; background: linear-gradient(115deg,#edf5ed,#f4f4e9); }
.home-report-card strong { display: block; color: var(--deep); font-size: 15px; }
.home-report-card p:not(.eyebrow) { margin: 3px 0 0; color: #7a897d; font-size: 10px; }
.home-report-card .eyebrow { margin-bottom: 2px; }
.install-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.button[hidden] { display: none !important; }
.app-footer { align-items: center; }
.app-footer-brand, .creator-credit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.app-footer-brand { display: grid; gap: 1px; }
.creator-credit { justify-content: flex-end; color: #89958b; }
.creator-credit strong { color: #52685a; font-size: 10px; }
.creator-credit a { color: var(--deep); font-weight: 750; text-decoration: none; }
.creator-credit a:hover { text-decoration: underline; }

@media (max-width: 850px) {
  .report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .mobile-nav { grid-template-columns: repeat(7,minmax(0,1fr)); }
  .mobile-nav-item small { font-size: 7px; }
  .report-toolbar { align-items: stretch; flex-direction: column; gap: 8px; padding: 10px; }
  .report-period-tabs { justify-content: space-between; }
  .report-period-button { flex: 1; padding-inline: 5px; }
  .report-date-nav { min-width: 0; }
  .report-date-nav strong { min-width: 0; font-size: 10px; }
  .report-compare-caption { align-items: flex-start; flex-direction: column; gap: 2px; }
  .report-metrics { gap: 8px; }
  .report-metric-card { padding: 11px; border-radius: 14px; }
  .report-metric-heading { flex-direction: column; gap: 2px; font-size: 9px; }
  .report-metric-heading strong { font-size: 16px; text-align: right; }
  .report-metric-context { min-height: 33px; font-size: 8px; }
  .report-bar-row { grid-template-columns: 35px minmax(12px,1fr) auto; gap: 4px; }
  .report-bar-row b { max-width: 55px; font-size: 8px; }
  .report-note-grid { grid-template-columns: 1fr; gap: 10px; }
  .report-notes { padding: 15px; }
  .report-note-footer { align-items: stretch; flex-direction: column; }
  .report-note-footer .button { width: 100%; }
  .home-report-card { align-items: stretch; flex-direction: column; gap: 10px; padding: 13px; }
  .home-report-card .button { width: 100%; }
  .app-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .creator-credit { justify-content: flex-start; }
}
