:root {
  color-scheme: light;
  --bg: #edf1ea;
  --surface: #f9faf6;
  --surface-strong: #ffffff;
  --surface-muted: #e9eee7;
  --ink: #14251f;
  --ink-soft: #53665e;
  --ink-faint: #7c8a83;
  --line: #d9e1d8;
  --line-strong: #c3d0c6;
  --green: #26745c;
  --green-dark: #123d32;
  --green-soft: #dff1e7;
  --amber: #b96f3f;
  --amber-soft: #f4e8de;
  --red: #a65049;
  --red-soft: #f4e3e0;
  --blue: #517087;
  --blue-soft: #e3eaee;
  --navy: #0d2a24;
  --mint: #66deb0;
  --lime: #d7ff92;
  --gold: #f1c86f;
  --shadow: 0 20px 58px rgb(25 53 42 / 10%);
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --sidebar: 236px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
svg { flex: 0 0 auto; }
::selection { background: #cadecf; color: var(--ink); }
:focus-visible { outline: 3px solid rgb(53 116 92 / 28%); outline-offset: 2px; }

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 9px 14px; border-radius: var(--radius-sm); background: var(--ink); color: white; transform: translateY(-150%); transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; padding: 28px 18px 20px; border-right: 1px solid var(--line); background: #eeece6; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 34px; }
.brand-mark, .brand-seed { display: grid; place-items: center; color: white; background: var(--green); font-family: "Songti SC", Georgia, serif; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px 11px 11px 4px; font-size: 17px; box-shadow: 0 6px 18px rgb(53 116 92 / 20%); }
.brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand small { color: var(--ink-faint); font-size: 11px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 13px; border-radius: var(--radius-sm); color: var(--ink-soft); background: transparent; text-align: left; transition: background .15s ease, color .15s ease, transform .15s ease; }
.nav-item:hover { color: var(--ink); background: rgb(255 255 255 / 55%); }
.nav-item.active { color: var(--green-dark); background: white; box-shadow: 0 4px 14px rgb(30 42 35 / 5%); font-weight: 650; }
.nav-item.active svg { stroke-width: 2.2; }
.sidebar-spacer { flex: 1; }
.sidebar-card { padding: 15px; margin: 12px 0 16px; border: 1px solid rgb(53 116 92 / 14%); border-radius: var(--radius-md); background: linear-gradient(145deg, #f7faf7, #e8efe9); }
.sidebar-card > span { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-card strong { display: block; margin-top: 5px; font-size: 14px; }
.sidebar-card p { margin: 5px 0 9px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.sidebar-footer { display: grid; gap: 4px; padding-top: 13px; border-top: 1px solid var(--line); }
.sidebar-footer button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); background: transparent; text-align: left; font-size: 12px; }
.sidebar-footer button:hover { background: rgb(255 255 255 / 55%); color: var(--ink); }
.site-record { padding: 8px 10px 0; color: var(--ink-faint); font-size: 9px; text-decoration: none; }
.site-record:hover { color: var(--green-dark); text-decoration: underline; }

.workspace { grid-column: 2; min-width: 0; }
.topbar { height: 54px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 clamp(24px, 3.5vw, 56px); border-bottom: 1px solid rgb(222 223 216 / 72%); }
.topbar-brand, .mobile-menu { display: none; }
.storage-chip { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 8px; color: var(--ink-faint); background: transparent; font-size: 11px; }
.storage-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.storage-chip.error { color: var(--red); background: var(--red-soft); }
.storage-chip.error i { background: var(--red); }

.view { width: min(1510px, 100%); min-height: calc(100vh - 54px); padding: 42px clamp(24px, 3.5vw, 56px) 64px; margin: 0 auto; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .07em; }
.page-header h1 { max-width: 820px; margin: 0; font-size: clamp(27px, 2.2vw, 35px); line-height: 1.22; letter-spacing: -.035em; }
.page-intro { max-width: 680px; margin: 9px 0 0; color: var(--ink-soft); font-size: 14px; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: var(--radius-sm); white-space: nowrap; font-weight: 650; transition: transform .14s ease, background .14s ease, border-color .14s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green); box-shadow: 0 7px 18px rgb(53 116 92 / 18%); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { border: 1px solid var(--line-strong); background: var(--surface-strong); }
.button.secondary:hover { border-color: var(--green); }
.button.quiet { color: var(--ink-soft); background: var(--surface-muted); }
.button.quiet:hover { color: var(--ink); background: #e5e4de; }
.button.danger-link { padding-left: 0; color: var(--red); background: transparent; font-weight: 550; }
.button.full { width: 100%; margin-top: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 650; }
.text-button:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--ink-soft); background: transparent; }
.icon-button:hover { color: var(--ink); background: var(--surface-muted); }

.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px 12px 16px; margin: -17px 0 28px; border: 1px solid #d9cbb8; border-radius: var(--radius-md); background: #f8f2e8; }
.demo-banner div { display: flex; gap: 10px; align-items: baseline; }
.demo-banner strong { color: #775237; }
.demo-banner span { color: #7c7065; font-size: 12px; }
.demo-banner.compact { margin-bottom: 24px; }

.today-layout { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(315px, .82fr); gap: 24px; align-items: start; }
.today-main, .panel, .calendar-panel, .goal-card, .review-form, .review-stats article, .ledger-toolbar { border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 1px rgb(32 40 34 / 2%); }
.today-main { min-height: 590px; padding: 24px; border-radius: var(--radius-lg); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-heading h2, .section-heading h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-heading p { margin: 3px 0 0; color: var(--ink-faint); font-size: 12px; }
.section-heading.compact { margin-bottom: 15px; }
.section-heading.compact h2, .section-heading.compact h3 { font-size: 15px; }

.task-list { display: grid; gap: 8px; }
.task-row { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: flex-start; padding: 14px 12px; border: 1px solid transparent; border-radius: var(--radius-md); background: var(--surface-strong); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.task-row:hover { border-color: var(--line); box-shadow: 0 6px 18px rgb(35 43 37 / 5%); transform: translateY(-1px); }
.task-row.overdue { border-left: 3px solid var(--red); }
.task-row.completed { color: var(--ink-faint); background: transparent; }
.task-check { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 50%; color: white; background: white; }
.task-check:hover { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.completed .task-check { border-color: var(--green); background: var(--green); }
.task-title-line { display: flex; align-items: center; gap: 8px; }
.task-copy h3 { min-width: 0; margin: 0; font-size: 14px; line-height: 1.45; font-weight: 690; }
.completed .task-copy h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 6px; color: var(--ink-faint); font-size: 11px; }
.task-meta span { display: inline-flex; align-items: center; gap: 3px; }
.goal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--goal-color); }
.meta-separator { opacity: .55; }
.task-notes { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; }
.task-actions { display: flex; align-items: center; gap: 3px; }
.task-actions .icon-button { width: 29px; height: 29px; }
.priority { margin-right: 4px; padding: 3px 6px; border-radius: 5px; color: var(--ink-faint); background: var(--surface-muted); font-size: 10px; }
.priority.high { color: #8a4b2c; background: var(--amber-soft); }
.status-pill { flex: 0 0 auto; padding: 2px 6px; border-radius: 5px; font-size: 10px; font-weight: 650; }
.status-pill.done { color: var(--green-dark); background: var(--green-soft); }
.status-pill.partial { color: #80602a; background: #f2ead7; }
.status-pill.postponed { color: var(--blue); background: var(--blue-soft); }
.status-pill.todo { display: none; }
.overdue-label { padding: 2px 5px; border-radius: 4px; color: var(--red); background: var(--red-soft); font-weight: 650; }
.done-divider { position: relative; height: 28px; display: flex; align-items: center; margin-top: 5px; color: var(--ink-faint); font-size: 10px; }
.done-divider::after { content: ""; flex: 1; height: 1px; margin-left: 10px; background: var(--line); }

.today-side { display: grid; gap: 14px; }
.panel { padding: 19px; border-radius: var(--radius-md); }
.panel-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.goal-focus { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 15px; align-items: center; }
.goal-focus h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.goal-focus p { margin: 5px 0 3px; color: var(--ink-soft); font-size: 12px; }
.progress-ring { --progress: 0; width: 74px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--progress) * 1%), var(--surface-muted) 0); }
.progress-ring::before { content: ""; grid-area: 1 / 1; width: 58px; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.progress-ring span { z-index: 1; grid-area: 1 / 1; font-size: 18px; font-weight: 750; }
.progress-ring small { font-size: 10px; font-weight: 550; }
.capacity-panel strong { font-size: 17px; }
.capacity-track { height: 7px; overflow: hidden; border-radius: 7px; background: var(--surface-muted); }
.capacity-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .4s ease; }
.capacity-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--ink-faint); font-size: 10px; }
.capacity-warning { margin: 10px 0 0; padding: 8px 9px; border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 11px; }
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.week-day { min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 7px 2px; border-radius: 8px; color: var(--ink-faint); }
.week-day.today { color: var(--green-dark); background: var(--green-soft); }
.week-day span { font-size: 9px; }
.week-day strong { font-size: 13px; }
.week-day i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--green) calc(var(--done) * 1%), var(--line-strong)); }

.empty-state { min-height: 340px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 14px 14px 14px 5px; color: var(--green); background: var(--green-soft); }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { max-width: 390px; margin: 7px 0 16px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.inline-empty { margin: 16px 0; padding: 14px; border-radius: 9px; color: var(--ink-faint); background: var(--surface-muted); font-size: 12px; line-height: 1.6; }

.goal-stack { display: grid; gap: 18px; }
.goal-card { position: relative; overflow: hidden; padding: 25px; border-radius: var(--radius-lg); }
.goal-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--goal-color); }
.goal-card-header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 20px; }
.goal-title-wrap { display: flex; gap: 13px; }
.goal-mark { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--goal-color); box-shadow: 0 0 0 5px color-mix(in srgb, var(--goal-color) 13%, white); }
.goal-title-wrap p { margin: 0 0 3px; color: var(--ink-faint); font-size: 11px; }
.goal-title-wrap h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.goal-title-wrap div > span { display: block; max-width: 690px; margin-top: 7px; color: var(--ink-soft); font-size: 12px; }
.goal-summary { display: flex; align-items: flex-start; gap: 8px; }
.goal-summary .progress-ring { width: 66px; }
.goal-summary .progress-ring::before { width: 52px; }
.metric-row { display: grid; grid-template-columns: auto minmax(110px, auto) 1fr; gap: 12px; align-items: center; padding: 11px 13px; margin-bottom: 20px; border-radius: 9px; background: color-mix(in srgb, var(--goal-color) 8%, white); }
.metric-row span { color: var(--ink-faint); font-size: 10px; }
.metric-row strong { font-size: 12px; }
.metric-row em { color: var(--ink-soft); font-size: 11px; font-style: normal; }
.goal-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.milestone-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.milestone-row { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 11px; min-height: 54px; }
.milestone-check { z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--goal-color) 45%, var(--line)); border-radius: 50%; color: var(--goal-color); background: white; font-size: 10px; font-weight: 700; }
.milestone-row.done .milestone-check { color: white; background: var(--goal-color); }
.milestone-line { position: absolute; left: 12px; top: 25px; bottom: 0; width: 1px; background: color-mix(in srgb, var(--goal-color) 25%, var(--line)); }
.milestone-copy { padding: 2px 0 13px; background: transparent; text-align: left; }
.milestone-copy strong { display: block; line-height: 1.4; }
.milestone-copy span { color: var(--ink-faint); font-size: 10px; }
.milestone-row.done .milestone-copy strong { color: var(--ink-faint); text-decoration: line-through; }
.next-task-list { display: grid; gap: 7px; }
.next-task { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px; border-radius: 9px; background: var(--surface-muted); text-align: left; }
.next-task:hover { background: #e7e7e0; }
.next-task strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.next-task small { color: var(--ink-faint); font-size: 10px; }
.mini-check { width: 15px; height: 15px; border: 1px solid var(--line-strong); border-radius: 50%; background: white; }
.archive-section { margin-top: 22px; color: var(--ink-soft); }
.archive-section summary { cursor: pointer; font-size: 12px; }
.archive-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.archive-item { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 8px; background: var(--surface-muted); font-size: 12px; }

.calendar-panel { overflow: hidden; border-radius: var(--radius-lg); }
.calendar-toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.calendar-navigation { display: flex; align-items: center; gap: 7px; }
.calendar-navigation h2 { margin: 0 0 0 9px; font-size: 16px; }
.segmented { display: flex; padding: 3px; border-radius: 9px; background: var(--surface-muted); }
.segmented button { min-width: 42px; min-height: 30px; padding: 0 11px; border-radius: 7px; color: var(--ink-soft); background: transparent; font-size: 12px; }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 2px 7px rgb(25 35 28 / 7%); font-weight: 650; }
.segmented.compact button { min-width: auto; padding-inline: 10px; }
.week-calendar { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); min-height: 570px; overflow-x: auto; }
.week-column { min-width: 130px; border-right: 1px solid var(--line); }
.week-column:last-child { border-right: 0; }
.week-column > header { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--ink-faint); }
.week-column > header span { font-size: 10px; }
.week-column > header strong { font-size: 17px; }
.week-column > header small { font-size: 9px; }
.week-column.today > header { color: var(--green-dark); background: var(--green-soft); }
.calendar-dropzone { min-height: 500px; display: flex; flex-direction: column; gap: 7px; padding: 8px; }
.calendar-task { padding: 8px; border-left: 3px solid var(--goal-color); border-radius: 7px; background: var(--surface-strong); box-shadow: 0 2px 9px rgb(32 40 34 / 5%); }
.calendar-task.done { opacity: .58; }
.calendar-task-main { width: 100%; display: block; padding: 0; background: transparent; text-align: left; }
.calendar-task-main strong { display: -webkit-box; overflow: hidden; font-size: 11px; line-height: 1.42; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.calendar-task-main small { display: block; margin-top: 4px; color: var(--ink-faint); font-size: 9px; }
.calendar-task .status-pill { display: inline-block; margin-top: 6px; }
.add-day-task { width: 100%; display: flex; justify-content: center; align-items: center; gap: 4px; padding: 6px; margin-top: auto; border-radius: 6px; color: var(--ink-faint); background: transparent; font-size: 10px; }
.add-day-task:hover { color: var(--green); background: var(--green-soft); }
.due-reminders { padding-top: 7px; border-top: 1px dashed var(--line); }
.due-reminders span { display: block; color: var(--red); font-size: 9px; font-weight: 700; }
.due-reminders button { width: 100%; padding: 4px 0; overflow: hidden; color: var(--ink-soft); background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.month-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.month-weekdays span { padding: 8px; color: var(--ink-faint); text-align: center; font-size: 10px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); min-width: 826px; }
.month-calendar { overflow-x: auto; }
.month-day { min-height: 116px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.month-day:nth-child(7n) { border-right: 0; }
.month-day.muted { background: #f1f0eb; opacity: .58; }
.month-day.today { box-shadow: inset 0 0 0 2px var(--green); }
.month-date { width: 24px; height: 24px; padding: 0; border-radius: 50%; background: transparent; font-size: 11px; }
.today .month-date { color: white; background: var(--green); }
.month-task { width: 100%; display: flex; align-items: center; gap: 5px; padding: 3px 4px; margin-top: 3px; overflow: hidden; border-radius: 4px; background: color-mix(in srgb, var(--goal-color) 9%, white); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; text-align: left; }
.month-task > span { width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--goal-color); }
.month-task.done { text-decoration: line-through; opacity: .55; }
.month-more { padding: 4px; color: var(--ink-faint); background: transparent; font-size: 9px; }
.calendar-legend { display: flex; gap: 18px; margin-top: 12px; color: var(--ink-faint); font-size: 10px; }
.calendar-legend span { display: flex; align-items: center; gap: 5px; }
.calendar-legend i { width: 7px; height: 7px; border-radius: 50%; }
.legend-plan { background: var(--green); }.legend-due { background: var(--red); }.legend-done { background: var(--line-strong); }

.ledger-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px; margin-bottom: 18px; border-radius: var(--radius-md); }
.search-field { width: min(340px, 100%); }
.search-field input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.ledger-timeline { display: grid; gap: 18px; }
.ledger-day { display: grid; grid-template-columns: 130px 1fr; gap: 24px; }
.ledger-day > header { padding-top: 12px; }
.ledger-day > header strong { display: block; font-size: 13px; }
.ledger-day > header span { color: var(--ink-faint); font-size: 10px; }
.ledger-day > div { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.ledger-entry { display: grid; grid-template-columns: 9px 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 64px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ledger-entry:last-child { border-bottom: 0; }
.event-dot { width: 8px; height: 8px; border: 2px solid var(--line-strong); border-radius: 50%; background: white; }
.event-dot.done { border-color: var(--green); background: var(--green); }.event-dot.partial { border-color: #c19849; background: #c19849; }.event-dot.postponed { border-color: var(--blue); background: var(--blue); }.event-dot.deleted { border-color: var(--red); background: var(--red); }
.ledger-entry time { color: var(--ink-faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.ledger-entry strong { font-size: 12px; }
.ledger-entry p { margin: 3px 0 0; color: var(--ink-faint); font-size: 10px; }

.review-header { align-items: center; }
.review-week-nav { display: flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.review-week-nav strong { min-width: 176px; text-align: center; font-size: 11px; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(300px, .72fr); gap: 22px; align-items: start; }
.review-main { display: grid; gap: 15px; }
.review-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.review-stats article { min-height: 112px; display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: var(--radius-md); }
.review-stats .progress-ring { width: 56px; }.review-stats .progress-ring::before { width: 44px; }.review-stats .progress-ring span { font-size: 14px; }
.stat-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 18px; }
.review-stats div > span { display: block; color: var(--ink-faint); font-size: 10px; }
.review-stats div > strong { display: block; margin: 2px 0; font-size: 16px; }
.review-stats div > small { color: var(--ink-faint); font-size: 9px; }
.review-form { padding: 22px; border-radius: var(--radius-lg); }
.review-form .form-field + .form-field { margin-top: 17px; }
.review-form textarea { background: white; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; }
.form-actions > span { color: var(--ink-faint); font-size: 10px; }
.review-side { display: grid; gap: 14px; }
.goal-breakdown { display: grid; gap: 14px; }
.goal-breakdown > div > span { display: flex; align-items: center; gap: 6px; max-width: 78%; font-size: 11px; }
.goal-breakdown > div > span i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--goal-color); }
.goal-breakdown > div > strong { float: right; margin-top: -18px; font-size: 11px; }
.mini-progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: var(--surface-muted); }
.mini-progress i { display: block; height: 100%; background: var(--green); }
.achievement-list { display: grid; gap: 8px; }
.achievement { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px; border-radius: 9px; color: var(--ink-faint); }
.achievement > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-muted); }
.achievement strong { display: block; font-size: 11px; }.achievement small { display: block; font-size: 9px; }.achievement em { font-size: 9px; font-style: normal; }
.achievement.reached { color: var(--green-dark); background: var(--green-soft); }
.achievement.reached > span { background: white; }
.next-week-hint { display: flex; gap: 9px; color: var(--ink-soft); background: #f5f0e7; }
.next-week-hint p { margin: 0; font-size: 11px; line-height: 1.65; }

.dialog { width: min(680px, calc(100vw - 28px)); max-height: min(86vh, 850px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 28px 90px rgb(28 34 29 / 25%); }
.dialog::backdrop { background: rgb(30 36 31 / 42%); backdrop-filter: blur(3px); }
.dialog-frame > header { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 24px; border-bottom: 1px solid var(--line); }
.dialog-frame > header h2 { margin: 0; font-size: 18px; }
.dialog-body { max-height: calc(86vh - 62px); padding: 22px 24px 24px; overflow-y: auto; }
.dialog-form { display: grid; gap: 15px; }
.form-field { display: grid; gap: 6px; }
.form-field > span { font-size: 12px; font-weight: 650; }
.form-field > small { color: var(--ink-faint); font-size: 10px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; background: white; transition: border-color .15s ease, box-shadow .15s ease; }
.form-field textarea { resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(53 116 92 / 12%); }
.form-field .color-input { padding: 5px; }
.form-grid { display: grid; gap: 13px; }.form-grid.two { grid-template-columns: repeat(2, 1fr); }.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.input-suffix { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: white; }
.input-suffix input { border: 0; box-shadow: none !important; }.input-suffix span { padding-right: 11px; color: var(--ink-faint); font-size: 11px; }
.dialog-lead { margin: -2px 0 2px; padding: 11px; border-radius: 8px; background: var(--surface-muted); font-weight: 650; }
.form-error { min-height: 0; color: var(--red); font-size: 11px; }
.form-error:not(:empty) { padding: 9px 10px; border-radius: 7px; background: var(--red-soft); }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 5px; }
.dialog-actions > div { display: flex; gap: 8px; }
.data-center { display: grid; gap: 18px; }
.data-explainer { display: flex; gap: 13px; padding: 14px; border-radius: 10px; background: var(--green-soft); }
.data-explainer > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: white; }
.data-explainer strong { font-size: 13px; }.data-explainer p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.data-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.data-action-card { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: left; }
.data-action-card:hover { border-color: var(--green); }.data-action-card svg { color: var(--green); }.data-action-card strong { display: block; font-size: 12px; }.data-action-card small { display: block; margin-top: 4px; color: var(--ink-faint); font-size: 10px; line-height: 1.5; }
.data-action-card.danger-card { grid-column: 1 / -1; }.data-action-card.danger-card svg, .data-action-card.danger-card strong { color: var(--red); }
.data-facts { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.data-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 12px; border-bottom: 1px solid var(--line); }.data-facts div:last-child { border: 0; }.data-facts span { color: var(--ink-faint); font-size: 10px; }.data-facts strong { font-size: 11px; text-align: right; }
.privacy-note, .about-limit { margin: 0; padding: 10px 12px; border-radius: 8px; color: var(--ink-soft); background: #f5f0e7; font-size: 10px; }
.about-content { display: grid; gap: 9px; }
.about-content section { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 12px; border-radius: 9px; background: white; }
.about-content section > span { color: var(--green); font-size: 11px; font-weight: 750; }.about-content strong { font-size: 12px; }.about-content p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }

.toast-region { position: fixed; z-index: 80; right: 24px; bottom: 24px; pointer-events: none; }
.toast { min-width: 290px; max-width: 450px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 15px; border: 1px solid #3d4b42; border-radius: 10px; color: white; background: #29352e; box-shadow: var(--shadow); pointer-events: auto; animation: toast-in .22s ease both; }
.toast > span { flex: 1; font-size: 12px; }.toast > button { padding: 4px 7px; border-radius: 6px; color: #d9f0e1; background: transparent; font-size: 11px; font-weight: 700; }.toast .toast-close { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; color: #bfc8c1; }.toast.danger { border-color: #74403c; background: #5d3532; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  :root { --sidebar: 210px; }
  .view { padding-inline: 28px; }
  .today-layout, .review-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .goal-grid { grid-template-columns: 1fr; }
  .review-stats { grid-template-columns: 1fr; }
  .review-stats article { min-height: 86px; }
  .task-meta span:nth-of-type(3), .task-meta .meta-separator { display: none; }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .workspace { grid-column: 1; }
  .sidebar { transform: translateX(-102%); box-shadow: var(--shadow); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .topbar { justify-content: space-between; padding-inline: 18px; }
  .topbar-brand, .mobile-menu { display: flex; align-items: center; }
  .topbar-brand { gap: 8px; }.brand-seed { width: 27px; height: 27px; border-radius: 8px 8px 8px 3px; font-size: 12px; }.topbar-brand strong { font-size: 13px; }
  .mobile-menu { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-muted); }
  .storage-chip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .today-layout, .review-layout { grid-template-columns: 1fr; }
  .today-side, .review-side { grid-template-columns: repeat(2, 1fr); }
  .today-side .week-glance, .review-side .next-week-hint { grid-column: 1 / -1; }
  .review-stats { grid-template-columns: repeat(3, 1fr); }
  .calendar-panel { overflow-x: auto; }
}

@media (max-width: 680px) {
  .view { padding: 26px 14px 52px; }
  .page-header, .calendar-toolbar, .review-header { align-items: stretch; flex-direction: column; }
  .page-header .button.primary { align-self: flex-start; }
  .demo-banner, .demo-banner div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .today-main, .goal-card, .review-form { padding: 16px; }
  .today-side, .review-side, .review-stats { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: 24px minmax(0, 1fr); }
  .task-actions { grid-column: 2; justify-self: end; }
  .goal-card-header { flex-direction: column; }
  .goal-summary { justify-content: space-between; }
  .metric-row { grid-template-columns: 1fr; gap: 3px; }
  .form-grid.two, .form-grid.three, .data-actions { grid-template-columns: 1fr; }
  .ledger-toolbar { align-items: stretch; flex-direction: column; }
  .ledger-toolbar .segmented { overflow-x: auto; }
  .ledger-day { grid-template-columns: 1fr; gap: 6px; }
  .ledger-day > header { display: flex; justify-content: space-between; }
  .ledger-entry { grid-template-columns: 8px 38px minmax(0, 1fr); }
  .ledger-entry .text-button { grid-column: 3; justify-self: start; }
  .calendar-navigation { flex-wrap: wrap; }.calendar-navigation h2 { flex-basis: 100%; margin: 5px 0 0; }
  .calendar-legend { flex-wrap: wrap; }
  .review-week-nav { align-self: flex-start; }
  .form-actions, .dialog-actions { align-items: stretch; flex-direction: column; }.form-actions .button, .dialog-actions > div, .dialog-actions > div .button { width: 100%; }
  .toast-region { right: 12px; bottom: 12px; left: 12px; }.toast { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }

/* Visual direction v2: 静谧生长舱 */
body {
  background:
    radial-gradient(circle at 84% 3%, rgb(128 207 171 / 16%), transparent 23rem),
    radial-gradient(circle at 15% 86%, rgb(239 199 111 / 10%), transparent 28rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .28;
  pointer-events: none;
  background-image: radial-gradient(rgb(16 54 44 / 18%) .55px, transparent .55px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.sidebar {
  padding: 24px 16px 18px;
  color: #f5fbf7;
  border-right: 0;
  background:
    radial-gradient(circle at 20% 12%, rgb(99 222 175 / 15%), transparent 15rem),
    linear-gradient(180deg, #102f28 0%, #0b2520 100%);
  box-shadow: 12px 0 36px rgb(19 53 43 / 10%);
}

.brand { margin: 0 8px 34px; gap: 11px; }
.brand-logo { display: block; filter: drop-shadow(0 8px 16px rgb(0 0 0 / 18%)); }
.brand strong { color: #f5fbf7; font-size: 16px; letter-spacing: -.01em; }
.brand small { color: rgb(216 237 227 / 58%); letter-spacing: .05em; }
.nav-item { min-height: 45px; padding: 0 14px; color: rgb(224 238 231 / 62%); border: 1px solid transparent; }
.nav-item:hover { color: #fff; background: rgb(255 255 255 / 6%); }
.nav-item.active { color: #e9ffd0; border-color: rgb(215 255 146 / 10%); background: linear-gradient(90deg, rgb(110 226 183 / 16%), rgb(255 255 255 / 4%)); box-shadow: inset 3px 0 0 var(--lime), 0 10px 28px rgb(0 0 0 / 9%); }
.sidebar-card { border: 1px solid rgb(137 225 188 / 16%); background: linear-gradient(145deg, rgb(103 218 176 / 10%), rgb(255 255 255 / 4%)); }
.sidebar-card > span, .sidebar-card .text-button { color: var(--lime); }
.sidebar-card strong { color: #f5fbf7; }
.sidebar-card p { color: rgb(220 236 227 / 60%); }
.sidebar-footer { border-color: rgb(255 255 255 / 9%); }
.sidebar-footer button { color: rgb(222 237 229 / 58%); }
.sidebar-footer button:hover { color: white; background: rgb(255 255 255 / 6%); }
.site-record { color: rgb(215 233 223 / 38%); }
.site-record:hover { color: #dff6e9; }

.topbar {
  height: 64px;
  padding-inline: clamp(24px, 3.5vw, 56px);
  border-bottom: 1px solid rgb(24 70 56 / 8%);
  background: rgb(246 248 243 / 68%);
  backdrop-filter: blur(18px);
}
.storage-chip { padding: 7px 11px; border: 1px solid rgb(30 93 72 / 9%); border-radius: 999px; background: rgb(255 255 255 / 54%); }
.storage-chip i { box-shadow: 0 0 0 4px rgb(69 177 134 / 10%); }
.view { min-height: calc(100vh - 64px); padding-top: 34px; }

.page-header:not(.today-hero) {
  position: relative;
  overflow: hidden;
  align-items: center;
  padding: 29px 30px;
  border: 1px solid rgb(27 76 60 / 9%);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgb(97 225 178 / 18%), transparent 16rem),
    linear-gradient(125deg, rgb(255 255 255 / 78%), rgb(245 249 243 / 88%));
  box-shadow: 0 20px 50px rgb(25 62 48 / 7%);
}
.page-header:not(.today-hero)::after { content: ""; position: absolute; right: 8%; bottom: -48px; width: 160px; height: 160px; border: 1px solid rgb(26 104 79 / 12%); border-radius: 50%; box-shadow: 0 0 0 24px rgb(32 125 94 / 4%), 0 0 0 52px rgb(32 125 94 / 3%); }
.page-header:not(.today-hero) > * { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(30px, 2.6vw, 40px); font-family: "Songti SC", "STSong", Georgia, serif; font-weight: 700; }
.eyebrow { color: #26745c; letter-spacing: .13em; text-transform: uppercase; }

.today-view { padding-top: 24px; }
.today-hero {
  position: relative;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  overflow: hidden;
  padding: 42px clamp(30px, 4vw, 62px) 94px;
  margin-bottom: 26px;
  border: 1px solid rgb(177 250 207 / 9%);
  border-radius: 30px;
  color: #f6fcf8;
  background:
    radial-gradient(circle at 74% 42%, rgb(71 190 145 / 24%), transparent 21rem),
    radial-gradient(circle at 16% 108%, rgb(239 197 108 / 13%), transparent 22rem),
    linear-gradient(128deg, #102f28 0%, #0d2923 55%, #123b32 100%);
  box-shadow: 0 28px 70px rgb(13 45 36 / 22%);
  isolation: isolate;
}
.today-hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgb(211 250 230 / 12%) 1px, transparent 1px), linear-gradient(90deg, rgb(211 250 230 / 12%) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 45%, black, transparent 60%); }
.today-hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -90px; height: 170px; border: 1px solid rgb(217 255 146 / 15%); border-radius: 50% 50% 0 0; transform: rotate(-2deg); }
.hero-copy, .growth-orbit, .hero-metrics { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: rgb(226 244 235 / 65%); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.hero-kicker span { width: 26px; height: 1px; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero-copy h1 { margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-size: clamp(38px, 4vw, 58px); font-weight: 650; line-height: 1.15; letter-spacing: -.04em; }
.hero-copy h1 em { color: var(--lime); font-style: normal; }
.hero-copy > p:not(.hero-kicker) { max-width: 540px; margin: 21px 0 0; color: rgb(224 240 232 / 72%); font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.button.luminous { min-height: 44px; padding-inline: 19px; color: #14362c; background: linear-gradient(135deg, var(--lime), #86edbd); box-shadow: 0 12px 30px rgb(121 227 179 / 24%); }
.button.luminous:hover { background: #e3ffb1; box-shadow: 0 14px 34px rgb(121 227 179 / 32%); }
.hero-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; color: rgb(232 245 238 / 70%); background: transparent; font-size: 12px; }
.hero-link:hover { color: #fff; }

.growth-orbit { min-height: 280px; display: grid; place-items: center; }
.growth-orbit svg { width: min(100%, 410px); overflow: visible; filter: drop-shadow(0 22px 36px rgb(0 0 0 / 22%)); }
.orbit-center { position: absolute; display: grid; justify-items: center; margin-top: -4px; }
.orbit-center span { font-size: 38px; font-weight: 750; letter-spacing: -.05em; }
.orbit-center span small { margin-left: 2px; color: var(--lime); font-size: 13px; }
.orbit-center p { margin: -2px 0 0; color: rgb(226 242 234 / 56%); font-size: 10px; letter-spacing: .12em; }
.orbit-label { position: absolute; right: 4%; bottom: 10%; display: grid; gap: 2px; padding: 10px 13px; border: 1px solid rgb(214 255 233 / 14%); border-radius: 12px; background: rgb(7 32 25 / 46%); backdrop-filter: blur(10px); }
.orbit-label span { max-width: 180px; overflow: hidden; color: #eef9f3; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; }
.orbit-label small { color: rgb(222 240 231 / 54%); font-size: 9px; }
.orbit-star { transform-origin: center; animation: star-breathe 3.2s ease-in-out infinite; }
.star-two { animation-delay: -1.6s; }
@keyframes star-breathe { 50% { opacity: .45; transform: scale(.65); } }

.hero-metrics { position: absolute; left: clamp(30px, 4vw, 62px); right: clamp(30px, 4vw, 62px); bottom: 0; height: 68px; display: flex; align-items: center; gap: 34px; border-top: 1px solid rgb(221 248 234 / 11%); }
.hero-metrics > span { display: flex; align-items: baseline; gap: 4px; }
.hero-metrics small { margin-right: 4px; color: rgb(223 240 231 / 52%); font-size: 9px; letter-spacing: .08em; }
.hero-metrics strong { color: #fff; font-size: 21px; }
.hero-metrics i { color: rgb(223 240 231 / 54%); font-size: 9px; font-style: normal; }

.today-main, .panel, .calendar-panel, .goal-card, .review-form, .review-stats article, .ledger-toolbar { border-color: rgb(29 76 61 / 9%); background: rgb(252 253 250 / 86%); box-shadow: 0 14px 38px rgb(25 62 48 / 6%); backdrop-filter: blur(10px); }
.today-main { padding: 26px; border-radius: 22px; }
.panel { border-radius: 18px; }
.section-heading h2, .section-heading h3 { color: #18342b; }
.task-list { gap: 10px; }
.task-row { padding: 15px 14px; border-color: rgb(30 83 65 / 7%); border-radius: 15px; background: rgb(255 255 255 / 82%); }
.task-row:hover { border-color: rgb(40 123 93 / 22%); box-shadow: 0 12px 28px rgb(30 74 58 / 9%); }
.task-check { border-color: #b9cbbf; box-shadow: inset 0 0 0 3px rgb(46 119 91 / 4%); }
.completed .task-check { box-shadow: 0 0 0 4px rgb(64 160 122 / 10%); }
.focus-panel { color: #eff9f3; border-color: rgb(104 207 167 / 14%); background: radial-gradient(circle at 10% 0%, rgb(116 225 181 / 16%), transparent 12rem), linear-gradient(145deg, #17483b, #11372e); }
.focus-panel h2 { color: white; }
.focus-panel p { color: rgb(223 240 231 / 62%); }
.focus-panel .panel-kicker, .focus-panel .text-button { color: var(--lime); }
.focus-panel .progress-ring { background: conic-gradient(var(--lime) calc(var(--progress) * 1%), rgb(255 255 255 / 10%) 0); }
.focus-panel .progress-ring::before { background: #153f35; }
.focus-panel .progress-ring span { color: white; }
.capacity-track { background: #e2ebe4; }
.capacity-track span { background: linear-gradient(90deg, #26745c, #6adeaf); box-shadow: 0 0 12px rgb(80 202 153 / 28%); }
.week-day.today { background: linear-gradient(145deg, #daf2e5, #ecf7e4); box-shadow: inset 0 0 0 1px rgb(41 116 89 / 8%); }

.goal-stack { gap: 22px; }
.goal-card { padding: 28px; border-radius: 24px; }
.goal-card::before { inset: 0 0 auto; width: auto; height: 5px; background: linear-gradient(90deg, var(--goal-color), color-mix(in srgb, var(--goal-color) 25%, white), transparent); }
.goal-card::after { content: ""; position: absolute; top: -100px; right: -65px; width: 230px; height: 230px; border: 1px solid color-mix(in srgb, var(--goal-color) 13%, transparent); border-radius: 50%; box-shadow: 0 0 0 28px color-mix(in srgb, var(--goal-color) 4%, transparent), 0 0 0 58px color-mix(in srgb, var(--goal-color) 2%, transparent); pointer-events: none; }
.goal-card-header, .metric-row, .goal-grid { position: relative; z-index: 1; }
.goal-title-wrap h2 { font-family: "Songti SC", "STSong", Georgia, serif; font-size: 25px; }
.metric-row { border: 1px solid color-mix(in srgb, var(--goal-color) 9%, transparent); border-radius: 12px; }
.next-task { border: 1px solid rgb(31 81 64 / 6%); border-radius: 11px; }
.next-task:hover { background: #edf4ed; }

.calendar-panel { border-radius: 24px; }
.calendar-toolbar { min-height: 72px; background: linear-gradient(120deg, #fdfefa, #f0f6ef); }
.week-column > header, .month-weekdays { background: rgb(244 247 242 / 72%); }
.week-column.today > header { background: linear-gradient(145deg, #daf2e5, #edf7e7); }
.calendar-task { border-radius: 9px; box-shadow: 0 5px 16px rgb(29 71 55 / 7%); }
.month-day.today { box-shadow: inset 0 0 0 2px #45a77f, inset 0 0 30px rgb(79 187 143 / 6%); }

.ledger-toolbar { padding: 15px; border-radius: 16px; }
.ledger-day > div { border-color: rgb(29 76 61 / 9%); border-radius: 16px; box-shadow: 0 12px 30px rgb(25 62 48 / 5%); }
.ledger-entry { background: rgb(255 255 255 / 68%); }
.review-stats article { border-radius: 18px; }
.review-form { border-radius: 22px; }
.achievement.reached { border: 1px solid rgb(72 165 126 / 9%); background: linear-gradient(135deg, #dff2e7, #f0f7e7); }
.dialog { border-color: rgb(33 83 66 / 14%); border-radius: 22px; background: #f9fbf7; box-shadow: 0 34px 100px rgb(14 43 34 / 30%); }
.dialog::backdrop { background: rgb(8 31 24 / 58%); backdrop-filter: blur(8px); }
.dialog-frame > header { background: linear-gradient(120deg, #f9fcf7, #edf5ed); }
.button.primary { background: linear-gradient(135deg, #28765e, #1f5e4c); box-shadow: 0 9px 22px rgb(35 113 86 / 20%); }
.button.primary:hover { background: #174c3c; }
.empty-icon { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #f0ffd2, #d8eee2); box-shadow: 0 10px 28px rgb(39 108 82 / 10%); }
.toast { border-color: rgb(137 224 188 / 20%); border-radius: 14px; background: #12372e; }

@media (max-width: 1180px) {
  .today-hero { grid-template-columns: minmax(0, 1fr) 360px; padding-inline: 36px; }
  .hero-metrics { left: 36px; right: 36px; }
}

@media (max-width: 920px) {
  .sidebar { box-shadow: 20px 0 60px rgb(7 28 22 / 28%); }
  .topbar { height: 60px; }
  .topbar-brand { color: var(--green-dark); }
  .today-hero { min-height: auto; grid-template-columns: 1fr; padding: 38px 34px 94px; }
  .growth-orbit { min-height: 265px; margin-top: 12px; }
  .hero-metrics { left: 34px; right: 34px; }
}

@media (max-width: 680px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .app-shell { min-height: calc(100vh - 70px); }
  .workspace { padding-bottom: 8px; }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
    transform: none;
    border-top: 1px solid rgb(204 245 224 / 12%);
    box-shadow: 0 -14px 40px rgb(8 39 30 / 18%);
  }
  .sidebar.open { transform: none; }
  .sidebar .brand, .sidebar .sidebar-card, .sidebar .sidebar-spacer, .sidebar .sidebar-footer { display: none; }
  .sidebar nav { height: 54px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .nav-item { min-width: 0; min-height: 54px; flex-direction: column; justify-content: center; gap: 2px; padding: 3px 1px; border: 0; border-radius: 12px; text-align: center; }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-item span { max-width: 100%; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .nav-item.active { border: 0; background: rgb(117 225 182 / 14%); box-shadow: inset 0 2px 0 var(--lime); }
  .topbar { position: sticky; top: 0; z-index: 12; height: 58px; padding-inline: 14px; }
  .topbar .mobile-menu { display: none; }
  .topbar-brand { display: flex; gap: 7px; }
  .topbar-brand > span { display: grid; line-height: 1.1; }
  .topbar-brand strong { font-size: 12px; }
  .topbar-brand small { margin-top: 3px; color: var(--ink-faint); font-size: 8px; font-weight: 500; }
  .storage-chip { max-width: 145px; padding: 6px 9px; }
  .view { padding-top: 18px; }
  .page-header:not(.today-hero) { align-items: flex-start; padding: 23px 20px; border-radius: 20px; }
  .today-hero { padding: 30px 20px 122px; border-radius: 22px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .growth-orbit { min-height: 235px; }
  .growth-orbit svg { width: 320px; max-width: 100%; }
  .orbit-label { right: 0; bottom: 5%; }
  .hero-metrics { left: 20px; right: 20px; bottom: 8px; height: 94px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-metrics > span { display: grid; gap: 0; }
  .hero-metrics small { margin: 0; }
  .hero-metrics strong { font-size: 19px; }
  .today-main, .goal-card, .review-form { padding: 18px; }
  .toast-region { bottom: calc(82px + env(safe-area-inset-bottom)); }
}
