/* finesse · register=product · A=mint+citron+coral · B=750/400-system-CJK
 * C=airy-sidebar+asymmetric-daily-desk · D=CSS-feedback · E=cut-paper-doodles · SOUL=8 SPECTACLE=3 DENSITY=6 */
:root {
  --page: #f3f5ef; --surface: #fcfdf9; --rail: #f9fbf5; --ink: #26342a;
  --muted: #5f695d; --line: #e6eadf; --lime: #d9f57b; --mint: #e4f0df;
  --green: #365b39; --green-soft: #edf3e4; --coral: #f4a687; --peach: #faecdc;
  --lavender: #eeeafa; --lilac-ink: #665780; --yellow: #f5e7a2; --error: #aa3636;
  --shadow: 0 2px 5px rgb(38 52 42 / 3%); --r: 22px; --nav-h: 72px;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--page); color: var(--ink); font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button, a { touch-action: manipulation; }
button { border: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
button:active:not(:disabled) { transform: translateY(1px); }
svg { vertical-align: middle; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; letter-spacing: -.035em; line-height: 1.5; font-weight: 750; overflow-wrap: anywhere; }
h2 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 16px; font-weight: 700; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: fixed; top: 8px; left: 10px; z-index: 200; background: var(--lime); padding: 12px; border-radius: 12px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.app-shell { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { height: 100dvh; position: sticky; top: 0; background: var(--rail); padding: 32px 18px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; text-decoration: none; font-weight: 850; font-size: 23px; letter-spacing: -.05em; line-height: 1.15; }
.brand-caption { display: block; font-size: 11px; font-weight: 500; letter-spacing: .22em; margin-top: 5px; }
.nav-caption { color: var(--muted); font-size: 11px; padding: 42px 13px 16px; }
.nav-link { width: 100%; min-height: 48px; display: flex; gap: 13px; align-items: center; padding: 12px 16px; border-radius: 13px; margin-bottom: 7px; background: transparent; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background .18s, color .18s; }
.nav-link:hover { background: var(--green-soft); color: var(--green); }
.nav-link.active { background: var(--mint); color: var(--green); font-weight: 700; }
.nav-link.active .nav-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 48px; }
.little-note { padding: 20px 14px 24px; margin: 0 6px 22px; background: var(--green-soft); border-radius: 18px; position: relative; transform: rotate(-3deg); }
.note-star { color: var(--green); font-size: 27px; line-height: 1; }
.little-note p { margin-top: 10px; font-size: 11px; line-height: 1.9; color: var(--green); }
.note-line { position: absolute; bottom: 14px; right: 14px; width: 44px; height: 8px; border-bottom: 2px solid var(--green); border-radius: 50%; transform: rotate(-7deg); opacity: .5; }
.storage-button { display: flex; align-items: center; gap: 12px; background: none; min-height: 44px; width: 100%; color: var(--muted); padding: 12px; font-size: 12px; }
.profile { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); margin-top: 16px; padding: 20px 7px 0; }
.avatar { width: 35px; height: 35px; background: var(--lavender); color: var(--lilac-ink); border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 750; }
.profile b { display: block; font-size: 12px; }
.profile span:not(.profile-dot) { display: block; font-size: 10px; margin-top: 4px; color: var(--muted); }
.profile-dot { background: var(--green); width: 6px; height: 6px; border-radius: 50%; margin-left: auto; }
.workspace { padding: 0 34px; min-width: 0; max-width: 1570px; width: 100%; margin-inline: auto; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 12px; color: var(--muted); white-space: nowrap; }
.breadcrumb span { margin: 0 12px; color: var(--muted); opacity: .5; }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; gap: 22px; align-items: center; }
.save-state { font-size: 10px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.add-button, .primary-button { min-height: 43px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: var(--ink); color: var(--surface); padding: 11px 18px; border-radius: 12px; font-size: 12px; font-weight: 650; white-space: nowrap; transition: background .18s; }
.add-button:hover, .primary-button:hover { background: var(--green); }
.add-button .icon { width: 16px; height: 16px; }
.icon-button { width: 44px; height: 44px; background: transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.icon-button:hover { background: var(--green-soft); color: var(--green); }
.mobile-settings, .mobile-nav { display: none; }
main { padding-top: 28px; min-width: 0; }
main:focus { outline: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading p { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.date-tag { display: flex; gap: 8px; font-size: 11px; align-items: center; padding: 10px 13px; background: var(--surface); border-radius: 10px; white-space: nowrap; }
.date-tag .icon { width: 16px; height: 16px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.left-stack, .right-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.welcome-card { background: var(--lime); border-radius: var(--r); padding: 30px; min-height: 226px; position: relative; overflow: clip; display: flex; align-items: center; }
.welcome-copy { z-index: 1; position: relative; max-width: 65%; }
.welcome-sticker { display: inline-block; padding: 5px 10px; border: 1px solid rgb(38 52 42 / 28%); border-radius: 30px; font-size: 10px; font-weight: 600; margin-bottom: 15px; transform: rotate(-3deg); }
.welcome-card h2 { font-size: 27px; line-height: 1.6; letter-spacing: -.04em; font-weight: 750; }
.welcome-card p { font-size: 11px; margin-top: 8px; color: var(--green); line-height: 1.8; }
.welcome-card .primary-button { margin-top: 20px; min-height: 38px; padding: 9px 15px; }
.welcome-art { position: absolute; width: 225px; height: 210px; right: 4px; bottom: 1px; }
.welcome-art .draw-outline { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.card { background: var(--surface); border-radius: var(--r); padding: 23px; box-shadow: var(--shadow); min-width: 0; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-heading .subtitle { color: var(--muted); font-size: 11px; margin-top: 5px; line-height: 1.7; }
.text-button { background: none; color: var(--green); font-size: 11px; min-height: 44px; min-width: 44px; padding: 10px 0 10px 10px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.text-button .icon { width: 14px; height: 14px; }
.filters { display: flex; gap: 5px; align-items: center; margin: 18px 0 10px; flex-wrap: wrap; }
.filter { padding: 7px 12px; background: none; color: var(--muted); font-size: 11px; border-radius: 8px; min-height: 34px; white-space: nowrap; }
.filter.active { background: var(--green-soft); color: var(--green); font-weight: 650; }
.task-list { margin-top: 5px; }
.task-row { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); min-height: 69px; }
.task-row:last-child { border: 0; }
.check-button { width: 42px; height: 44px; display: grid; place-items: center; background: transparent; flex-shrink: 0; }
.check-circle { width: 21px; height: 21px; border: 1.5px solid #798673; border-radius: 7px; display: grid; place-items: center; }
.check-button:hover .check-circle { border-color: var(--green); background: var(--green-soft); }
.completed .check-circle { background: var(--green); border-color: var(--green); color: var(--surface); }
.check-circle .icon { width: 14px; height: 14px; }
.task-content { flex: 1; min-width: 0; padding: 11px 0; }
.task-title { font-size: 14px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.completed .task-title { color: var(--muted); text-decoration: line-through; }
.task-meta { display: flex; align-items: center; gap: 9px; font-size: 11px; margin-top: 5px; color: var(--muted); flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 5px; font-size: 10px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.tag.english { background: var(--lavender); color: var(--lilac-ink); }
.tag.fitness { background: var(--peach); color: #965431; }
.task-row .icon-button { width: 34px; }
.task-row .icon-button .icon { width: 15px; height: 15px; }
.task-time { font-size: 10px; color: var(--muted); white-space: nowrap; }
.starter-list { display: grid; gap: 10px; margin-top: 18px; }
.starter-row { padding: 15px; border-radius: 13px; background: var(--page); display: flex; align-items: center; gap: 12px; }
.starter-icon { width: 37px; height: 37px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; flex-shrink: 0; color: var(--green); }
.starter-icon.english { background: var(--lavender); color: var(--lilac-ink); }
.starter-icon.fitness { background: var(--peach); color: #965431; }
.starter-content { flex: 1; min-width: 0; }
.starter-content b { display: block; font-size: 14px; line-height: 1.6; }
.starter-content span { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; }
.starter-add { background: var(--surface); width: 44px; min-width: 44px; min-height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--green); }
.empty { color: var(--muted); text-align: center; padding: 25px 15px; font-size: 12px; line-height: 1.9; }
.empty .icon { display: block; margin: 0 auto 12px; width: 26px; height: 26px; color: var(--green); }
.empty strong { font-weight: 600; display: block; color: var(--ink); margin-bottom: 4px; }
.dual-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.path-card { border-radius: var(--r); padding: 22px; background: var(--lavender); position: relative; min-height: 180px; overflow: clip; }
.path-card.fitness-path { background: var(--peach); }
.path-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.path-head .icon { width: 25px; height: 25px; }
.path-head span { font-size: 10px; border: 1px solid rgb(38 52 42 / 16%); padding: 4px 8px; border-radius: 20px; }
.path-card h3 { font-size: 17px; line-height: 1.7; }
.path-card p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.path-card .text-button { margin-top: 7px; color: var(--ink); padding-left: 0; font-weight: 650; }
.focus-card { background: var(--peach); border-radius: var(--r); padding: 24px; min-height: 226px; position: relative; }
.focus-top { display: flex; align-items: center; justify-content: space-between; }
.focus-top h2 { font-size: 16px; }
.focus-top .icon { width: 19px; height: 19px; }
.focus-sub { color: var(--muted); font-size: 10px; margin-top: 8px; }
.timer-display { font-size: 51px; line-height: 1.25; font-weight: 750; letter-spacing: -.05em; margin: 15px 0 14px; font-variant-numeric: tabular-nums; }
.timer-controls { display: flex; gap: 8px; align-items: center; }
.timer-controls .primary-button { flex: 1; min-height: 39px; }
.timer-controls .primary-button .icon { width: 16px; height: 16px; }
.timer-preset { display: inline-flex; gap: 8px; align-items: center; font-size: 10px; color: var(--muted); margin-top: 14px; }
.timer-preset button { background: transparent; padding: 5px 6px; border-radius: 6px; color: var(--muted); font-size: 10px; }
.timer-preset button.active { color: var(--ink); background: rgb(38 52 42 / 8%); }
.timer-end { background: transparent; color: var(--muted); min-width: 40px; min-height: 40px; border-radius: 10px; }
.habit-row { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.ring { width: 56px; height: 56px; position: relative; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 5; }
.ring-progress { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring-value { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 650; font-size: 10px; font-variant-numeric: tabular-nums; }
.habit-copy { flex: 1; min-width: 0; }
.habit-copy b { font-size: 12px; }
.habit-copy p { font-size: 10px; color: var(--muted); margin-top: 5px; }
.habit-add { min-width: 42px; min-height: 44px; background: var(--green-soft); border-radius: 11px; font-size: 11px; color: var(--green); }
.activity-card { background: var(--mint); border-radius: var(--r); padding: 23px; }
.activity-card h2 { font-size: 16px; }
.week-total { display: flex; gap: 5px; align-items: baseline; margin-top: 15px; }
.week-total b { font-size: 30px; font-weight: 750; letter-spacing: -.04em; }
.week-total span { font-size: 11px; color: var(--muted); }
.week-dots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 21px; }
.day-dot { text-align: center; color: var(--muted); font-size: 9px; }
.day-bubble { width: 28px; height: 32px; border-radius: 11px; margin: 0 auto 8px; background: rgb(252 253 249 / 70%); display: grid; place-items: center; border: 1px solid rgb(38 52 42 / 5%); color: var(--green); }
.day-dot.today .day-bubble { border: 1.5px solid var(--green); }
.day-dot.done .day-bubble { background: var(--green); color: var(--surface); }
.day-bubble .icon { width: 14px; height: 14px; }
.activity-card .text-button { margin-top: 12px; padding-left: 0; }
.memo-peek { display: flex; gap: 12px; align-items: center; padding: 18px 23px; border-top: 1px dashed #cad4bf; margin-top: 4px; }
.memo-peek .icon { color: var(--green); width: 22px; height: 22px; }
.memo-peek div { flex: 1; }
.memo-peek b { font-size: 12px; }
.memo-peek p { margin-top: 5px; color: var(--muted); font-size: 10px; }
.page-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; padding: 29px 2px 24px; gap: 10px; }
.page-footer span:last-child { font-size: 8px; letter-spacing: .1em; }
.page-footer i { font-style: normal; color: var(--green); margin: 0 7px; }
.view-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.view-grid .span-all { grid-column: 1 / -1; }
.section-banner { padding: 28px; border-radius: var(--r); background: var(--lavender); display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.section-banner.workout-banner { background: var(--peach); }
.section-banner h2 { font-size: 24px; line-height: 1.7; }
.section-banner p { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.8; }
.section-banner .banner-icon { width: 75px; height: 75px; border-radius: 24px; display: grid; place-items: center; background: rgb(252 253 249 / 60%); transform: rotate(8deg); flex-shrink: 0; }
.banner-icon .icon { width: 36px; height: 36px; }
.section-banner .primary-button { margin-top: 18px; }
.record-row { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.record-row:last-child { border: 0; }
.record-icon { width: 37px; height: 37px; display: grid; place-items: center; background: var(--green-soft); border-radius: 12px; flex-shrink: 0; color: var(--green); }
.record-content { min-width: 0; flex: 1; }
.record-content b { font-size: 14px; }
.record-content p { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-date { font-size: 10px; color: var(--muted); white-space: nowrap; }
.stats-list { display: flex; flex-direction: column; gap: 22px; margin-top: 22px; }
.stat-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.stat-line span { font-size: 12px; color: var(--muted); }
.stat-line b { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat-line small { font-size: 10px; margin-left: 5px; color: var(--muted); font-weight: 400; }
.tips-list { margin: 20px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 2.1; }
.memo-toolbar { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 22px; }
.search-field { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; max-width: 330px; min-width: 0; width: 100%; }
.search-field .icon { width: 17px; height: 17px; color: var(--muted); }
.search-field input { background: transparent; border: 0; padding: 12px 0; width: 100%; min-width: 0; outline-offset: 0; }
.memos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.memo-card { padding: 24px; border-radius: var(--r); background: var(--surface); min-width: 0; min-height: 180px; box-shadow: var(--shadow); }
.memo-card:nth-child(3n+2) { background: var(--yellow); }
.memo-card:nth-child(3n+3) { background: var(--lavender); }
.memo-card p { margin-top: 18px; line-height: 1.9; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.memo-card .memo-bottom { margin-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.memo-card a { display: block; font-size: 11px; margin-top: 12px; color: var(--green); overflow-wrap: anywhere; }
.review-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.review-metric { background: var(--mint); border-radius: var(--r); padding: 22px; }
.review-metric:nth-child(2) { background: var(--lavender); }
.review-metric:nth-child(3) { background: var(--peach); }
.review-metric .icon { width: 23px; height: 23px; margin-bottom: 20px; }
.review-metric span { display: block; font-size: 12px; color: var(--muted); }
.review-metric b { display: block; font-size: 32px; line-height: 1.3; font-variant-numeric: tabular-nums; margin-top: 8px; font-weight: 750; }
.review-metric small { font-size: 12px; font-weight: 400; margin-left: 5px; }
.chart-wrap { margin-top: 28px; }
.chart-bars { height: 190px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; align-items: end; }
.chart-column { display: flex; align-items: center; flex-direction: column; height: 100%; justify-content: flex-end; gap: 10px; font-size: 11px; color: var(--muted); }
.chart-bar { background: var(--green); width: 100%; max-width: 45px; border-radius: 9px 9px 4px 4px; min-height: 2px; }
.chart-value { color: var(--ink); font-size: 11px; }
.chart-label { white-space: nowrap; }
.review-copy { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.table-toggle { font-size: 11px; color: var(--muted); margin-top: 22px; }
.table-toggle summary { cursor: pointer; min-height: 34px; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 11px; }
.data-table th, .data-table td { text-align: right; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
dialog { border: 0; border-radius: 25px; padding: 26px; background: var(--surface); color: var(--ink); width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 40px); box-shadow: 0 24px 90px rgb(38 52 42 / 18%); }
dialog::backdrop { background: rgb(38 52 42 / 36%); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 21px; }
.dialog-heading .icon-button { margin: -7px -7px -7px 0; }
.form-field { margin-bottom: 17px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #d9e0d1; background: var(--page); border-radius: 11px; padding: 11px 12px; color: var(--ink); min-height: 43px; }
.form-field textarea { resize: vertical; min-height: 100px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
.form-help { font-size: 11px; line-height: 1.8; color: var(--muted); margin: -2px 0 18px; }
.form-error { color: var(--error); font-size: 12px; line-height: 1.7; margin-bottom: 12px; }
.dialog-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.dialog-actions .primary-button { flex: 1; }
.secondary-button { background: var(--green-soft); color: var(--green); min-height: 43px; border-radius: 11px; padding: 11px 16px; font-size: 12px; white-space: nowrap; }
.danger-button { background: none; color: var(--error); min-height: 43px; padding: 10px 8px; font-size: 11px; }
.backup-buttons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.settings-rule { border-top: 1px solid var(--line); margin: 24px 0 18px; padding-top: 20px; }
.settings-rule h3 { margin-bottom: 8px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 18px); background: var(--ink); color: var(--surface); padding: 13px 20px; border-radius: 13px; font-size: 12px; z-index: 150; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 30px); line-height: 1.7; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; color: var(--lime); font-size: 12px; margin-left: 12px; min-height: 24px; }
.noscript { position: fixed; top: 0; background: var(--yellow); width: 100%; padding: 16px; }
@media (min-width: 1550px) { .workspace { padding: 0 48px; } .home-grid, .view-grid { grid-template-columns: minmax(0, 1fr) 345px; } .welcome-art { right: 28px; } }
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); } .sidebar { padding-inline: 12px; } .workspace { padding: 0 24px; }
  .home-grid, .view-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; } .welcome-art { width: 190px; right: -15px; }
  .welcome-card { padding: 25px; } .welcome-card h2 { font-size: 24px; } .welcome-copy { max-width: 75%; } .memos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 160px minmax(0, 1fr); } .brand { font-size: 20px; gap: 7px; padding-inline: 3px; }
  .brand img { width: 33px; height: 33px; } .nav-link { padding: 11px; gap: 9px; font-size: 12px; }
  .home-grid, .view-grid { grid-template-columns: minmax(0, 1fr); } .right-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .memo-peek { grid-column: 1 / -1; } .welcome-art { right: 18px; width: 210px; } .welcome-copy { max-width: 70%; }
  .page-heading { align-items: flex-start; } .date-tag { font-size: 10px; } h1 { font-size: 27px; } .save-state { display: none; }
  .view-grid > .left-stack + .right-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card { padding: 21px; }
}
@media (max-width: 700px) {
  .app-shell { display: block; } .sidebar { display: none; } .workspace { padding: 0 20px; }
  .topbar { height: calc(72px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); } .top-actions { gap: 5px; } .mobile-settings { display: inline-flex; } .breadcrumb { font-size: 11px; }
  .breadcrumb span { margin: 0 7px; } .add-button { padding: 10px 13px; font-size: 11px; min-height: 44px; }
  .task-row .icon-button, .check-button { width: 44px; min-width: 44px; } .timer-end { width: 44px; min-width: 44px !important; min-height: 44px; }
  .mobile-nav { position: fixed; z-index: 80; display: flex; bottom: 0; left: 0; right: 0; justify-content: space-around; background: var(--rail); border-top: 1px solid var(--line); padding: 8px 7px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -3px 18px rgb(38 52 42 / 4%); }
  .mobile-nav .nav-link { display: flex; flex-direction: column; gap: 5px; padding: 7px 9px; min-height: 48px; margin: 0; width: auto; font-size: 10px; min-width: 48px; }
  .mobile-nav .nav-link .icon { width: 19px; height: 19px; } .mobile-nav .nav-dot { display: none; }
  main { padding-top: 23px; } .page-heading { flex-direction: column; gap: 14px; margin-bottom: 19px; }
  h1 { font-size: 27px; } .page-heading p { font-size: 11px; } .date-tag { align-self: flex-start; padding: 7px 10px; background: transparent; border: 1px solid #dae3d1; }
  .welcome-card { min-height: 224px; padding: 25px; } .welcome-copy { max-width: 72%; } .welcome-card h2 { font-size: 23px; }
  .welcome-art { width: 190px; height: 195px; right: -17px; bottom: -2px; } .welcome-card p { max-width: 165px; font-size: 11px; }
  .left-stack { gap: 16px; } .home-grid { display: flex; flex-direction: column; gap: 16px; } .home-grid > .left-stack, .home-grid > .right-stack { display: contents; }
  .home-grid #tasks-card { order: 0; width: 100%; } .home-grid .focus-card { order: 1; width: 100%; } .home-grid .welcome-card { order: 2; width: 100%; }
  .home-grid .habit-card { order: 3; width: 100%; } .home-grid .dual-cards { order: 4; width: 100%; } .home-grid .activity-card { order: 5; width: 100%; } .home-grid .memo-peek { order: 6; width: 100%; }
  .right-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; } .filter { min-height: 44px; } .timer-preset button { min-width: 44px; min-height: 44px; }
  .focus-card { padding: 20px; } .habit-card { padding: 20px; } .habit-row { gap: 8px; flex-wrap: wrap; }
  .ring { width: 45px; height: 45px; } .habit-copy p { line-height: 1.6; } .habit-add { min-height: 44px; width: auto; }
  .timer-display { font-size: 48px; margin-top: 20px; } .timer-preset { flex-wrap: wrap; gap: 3px; } .timer-preset > span { display: none; }
  .focus-sub { line-height: 1.8; } .timer-controls .primary-button { padding: 10px 7px; font-size: 12px; } .timer-controls .primary-button .icon { width: 15px; }
  .timer-controls { gap: 3px; } .timer-end { min-width: 26px; } .activity-card { grid-column: 1 / -1; }
  .day-bubble { width: 34px; height: 38px; } .page-footer { padding-bottom: 100px; font-size: 9px; } .page-footer span:last-child { font-size: 7px; }
  .section-banner { padding: 23px; gap: 12px; } .section-banner h2 { font-size: 21px; } .section-banner .banner-icon { width: 57px; height: 57px; border-radius: 17px; }
  .banner-icon .icon { width: 29px; height: 29px; } .section-banner p { font-size: 11px; }
  .view-grid > .left-stack + .right-stack { grid-template-columns: minmax(0, 1fr); } .memos-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .memo-toolbar { flex-wrap: wrap; } .search-field { max-width: none; } .memo-toolbar .primary-button { width: 100%; }
  .review-metrics { gap: 9px; } .review-metric { padding: 17px 12px; border-radius: 17px; } .review-metric b { font-size: 25px; }
  .review-metric span { font-size: 10px; } .review-metric small { font-size: 10px; margin-left: 3px; } .chart-bars { gap: 10px; height: 160px; }
  .toast { bottom: 91px; width: max-content; }
}
@media (max-width: 390px) {
  .workspace { padding: 0 14px; } h1 { font-size: 24px; } .card { padding: 19px; }
  .welcome-card { padding: 22px; } .welcome-card h2 { font-size: 21px; } .welcome-art { opacity: .9; width: 162px; right: -25px; }
  .welcome-card p { max-width: 155px; } .dual-cards { grid-template-columns: minmax(0, 1fr); gap: 13px; } .path-card { min-height: 165px; }
  .right-stack { grid-template-columns: minmax(0, 1fr); } .focus-card { min-height: auto; } .timer-display { font-size: 48px; margin: 18px 0; }
  .timer-controls .primary-button { font-size: 12px; } .habit-add { width: 42px; min-height: 44px; } .habit-row { flex-wrap: nowrap; gap: 12px; }
  .ring { width: 53px; height: 53px; } .review-metrics { grid-template-columns: minmax(0, 1fr); } .review-metric { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; }
  .review-metric .icon { margin: 0; } .review-metric b { margin: 0; } .review-metric span { font-size: 12px; } .starter-row { padding: 12px; gap: 8px; }
  .starter-content b { font-size: 13px; } .task-time { display: none; } .page-footer span:last-child { display: none; }
}
/* Planning stays close to the daily list; focus gets its own quiet space. */
.task-scope { display:flex; gap:4px; padding:4px; margin-top:18px; width:max-content; max-width:100%; border-radius:12px; background:var(--page); }
.task-scope button { display:flex; align-items:center; gap:7px; padding:9px 15px; min-height:42px; border-radius:9px; font-size:12px; color:var(--muted); background:transparent; }
.task-scope button[aria-pressed="true"] { background:var(--surface); color:var(--green); box-shadow:0 2px 6px #26342a0b; font-weight:650; }
.task-scope .icon { width:16px; height:16px; }
.planner { margin-top:21px; }
.planner-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.planner-top b { display:block; font-size:13px; }
.planner-top span { display:block; font-size:10px; color:var(--muted); margin-top:6px; }
.planner-controls { display:flex; align-items:center; flex-shrink:0; }
.planner-controls .icon-button { font-size:26px; width:36px; }
.planner-controls .text-button { padding-inline:6px; }
.planner-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; }
.planner-day { background:var(--page); border:1px solid transparent; border-radius:14px; padding:12px 2px 9px; display:flex; align-items:center; flex-direction:column; gap:7px; min-width:0; transition:background .18s; }
.planner-day > span { font-size:10px; color:var(--muted); }
.planner-day > b { font-size:19px; font-weight:650; }
.planner-day > i { width:4px; height:4px; border-radius:50%; background:transparent; }
.planner-day > i.has-plans { background:var(--green); }
.planner-day.is-today { border-color:#9bae83; }
.planner-day.selected { background:var(--lime); border-color:#b7d662; box-shadow:0 3px 7px #5b762511; }
.planner-day:hover { background:var(--mint); }
.plan-summary { display:flex; align-items:center; gap:8px; justify-content:space-between; padding-block:12px; border-bottom:1px solid var(--line); font-size:12px; flex-wrap:wrap; }
.plan-summary span { color:var(--muted); font-size:11px; }
.planner-empty { padding-block:26px 13px; }
.planner-empty > .icon { padding:10px; width:49px; height:49px; border-radius:16px; background:var(--green-soft); transform:rotate(-7deg); }
.focus-room-link { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; min-height:44px; background:transparent; border-top:1px solid #26342a16; font-size:11px; margin-top:13px; padding-top:10px; color:var(--green); }
.focus-room-link > .icon { width:14px; height:14px; }
.focus-room-link > .icon:last-child { margin-left:auto; }
.focus-room-link > .icon:first-child { margin-right:auto; }
.focus-room-link:hover { text-decoration:underline; text-underline-offset:4px; }
html:has(.focus-room[open]) { overflow:hidden; }
.focus-room { width:calc(100% - 40px); max-width:1200px; height:calc(100dvh - 40px); max-height:none; padding:0; overflow:auto; background:#f5f5e9; border:1px solid #d7dec8; }
.focus-room::backdrop { background:#26342ad1; backdrop-filter:blur(9px); }
#focus-room-content { position:relative; isolation:isolate; min-height:100%; display:flex; flex-direction:column; overflow:hidden; }
.room-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:24px 32px; position:relative; z-index:1; }
.room-brand { display:flex; align-items:center; gap:10px; font-size:12px; font-weight:650; letter-spacing:.03em; }
.room-brand > .icon { color:var(--green); }
.room-brand > i { color:#859476; font-style:normal; font-weight:400; }
.room-exit { display:flex; align-items:center; gap:10px; padding:10px 14px; min-height:44px; border:1px solid #cdd8bc; border-radius:24px; background:#f9fbee; font-size:11px; }
.room-exit:hover { background:var(--mint); }
.room-exit .icon { width:16px; height:16px; }
.room-center { position:relative; z-index:1; text-align:center; display:flex; flex:1; align-items:center; flex-direction:column; justify-content:center; padding:15px 20px 35px; }
.room-eyebrow { font-size:10px; letter-spacing:.2em; color:var(--green); }
.room-center h2 { font-size:clamp(22px,3vw,35px); margin-top:16px; letter-spacing:-.04em; }
.room-subtitle { font-size:12px; color:var(--muted); margin-top:12px; line-height:1.8; }
.room-clock { width:clamp(220px,34vh,320px); aspect-ratio:1; position:relative; margin:30px 0; }
.room-clock > svg { width:100%; height:100%; transform:rotate(-90deg); }
.room-clock circle { fill:none; }
.room-ticks { stroke:#748863; stroke-width:2; stroke-dasharray:1 15.12; opacity:.45; }
.room-track { stroke:#dbe4cd; stroke-width:4; }
[data-room-progress] { stroke:var(--green); stroke-width:4; stroke-linecap:round; transition:stroke-dashoffset .6s linear; }
.room-clock > div { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.room-state { font-size:11px; color:var(--green); border-radius:20px; background:#e3ecd4; padding:6px 12px; }
[data-room-time] { font-size:clamp(54px,7vw,76px); letter-spacing:-.05em; line-height:1.5; font-variant-numeric:tabular-nums; font-weight:650; }
.room-duration { font-size:11px; color:var(--muted); }
.room-controls { display:flex; justify-content:center; align-items:center; gap:12px; flex-wrap:wrap; }
.room-controls > button { min-height:48px; padding:14px 26px; border-radius:16px; display:flex; gap:8px; align-items:center; }
.room-controls .secondary-button { border:1px solid #aabe91; background:#eef5e4; }
.room-controls .icon { width:17px; height:17px; }
.room-hint { margin-top:18px; font-size:11px; color:#52613f; line-height:1.8; }
.room-scene { position:absolute; inset:auto 0 0; height:40%; min-height:200px; z-index:-1; pointer-events:none; }
.room-scene svg { width:100%; height:100%; }
.room-footer { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:25px 32px; color:#3f542e; font-size:10px; position:relative; z-index:1; }
.room-footer span:first-child { display:flex; align-items:center; gap:7px; }
.room-footer .icon { width:16px; height:16px; }
.room-footer span:last-child { letter-spacing:.15em; }
.focus-room[data-state="paused"] .room-state { background:var(--peach); }
.focus-room[data-state="complete"] .room-state { background:var(--lime); }
@media (max-width:700px) {
  .task-scope button { min-height:44px; }
  .planner-days { display:flex; gap:6px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; scrollbar-width:none; padding-bottom:5px; }
  .planner-days::-webkit-scrollbar { display:none; }
  .planner-day { flex:0 0 44px; min-height:64px; border-radius:11px; scroll-snap-align:start; }
  .planner-top { flex-wrap:wrap; gap:3px; }
  .planner-top span { font-size:9px; }
  .planner-controls .icon-button { width:32px; }
  .focus-room { width:100%; height:100dvh; margin:0; border:0; border-radius:0; }
  .room-header { padding:16px; padding-top:max(16px,env(safe-area-inset-top)); }
  .room-brand { gap:6px; font-size:10px; }
  .room-brand > .icon { width:16px; }
  .room-exit { padding:9px 11px; font-size:10px; }
  .room-center { padding:28px 18px; }
  .room-center h2 { font-size:24px; }
  .room-subtitle { font-size:11px; }
  .room-clock { margin-block:30px; width:250px; max-width:80vw; }
  [data-room-time] { font-size:62px; }
  .room-controls { gap:8px; }
  .room-controls > button { padding-inline:18px; font-size:12px; }
  .room-footer { padding:20px 18px max(24px,env(safe-area-inset-bottom)); justify-content:center; }
  .room-footer span:last-child { display:none; }
}
/* Action-led details: live focus, tactile paper, and a small reward for finishing. */
.daily-pulse { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 22px; }
.daily-pulse > button { display:flex; align-items:center; gap:12px; text-align:left; min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:13px 18px; transition:background .2s, border-color .2s; }
.daily-pulse > button:hover, .daily-pulse > button:focus-visible { background:var(--green-soft); border-color:#c1cdb5; }
.pulse-icon { display:grid; place-items:center; width:39px; height:39px; flex-shrink:0; border-radius:12px; background:var(--mint); }
.daily-pulse > button:nth-child(2) .pulse-icon { background:var(--lavender); color:var(--lilac-ink); }
.daily-pulse > button:nth-child(3) .pulse-icon { background:var(--peach); color:#965431; }
.daily-pulse small { display:block; font-size:10px; color:var(--muted); }
.daily-pulse b { display:block; margin-top:2px; font-size:23px; font-weight:750; font-variant-numeric:tabular-nums; line-height:1.3; }
.daily-pulse em { font-size:10px; font-weight:400; font-style:normal; margin-left:7px; color:var(--muted); }
.daily-pulse > button > .icon { margin-left:auto; width:15px; color:var(--muted); }
.welcome-card { border:1px solid #c9e56b; box-shadow:inset 0 1px 0 #efffc8,0 6px 20px #7389470a; }
.welcome-card::before { content:''; position:absolute; width:330px; height:330px; border:1px solid #bed764; border-radius:50%; right:-140px; top:-160px; box-shadow:0 0 0 25px #e7fa9c55,0 0 0 26px #bed76477; pointer-events:none; }
.welcome-sticker { background:#edffc08c; box-shadow:1px 3px 0 #26342a0a; }
.welcome-art { filter:drop-shadow(0 7px 2px #5474260b); }
.art-character { transform-origin:130px 180px; transition:transform .45s cubic-bezier(.2,.8,.2,1); }
.art-label { transform-origin:199px 95px; transition:translate .4s; }
.card, .path-card { border:1px solid #26342a07; }
.path-card::after { content:''; width:76px; height:76px; border:13px solid #bca9d52b; position:absolute; right:-26px; bottom:-23px; border-radius:24px; transform:rotate(-24deg); pointer-events:none; }
.fitness-path::after { border-color:#d49a6530; border-radius:50%; }
.path-card .text-button .icon, .welcome-card .primary-button .icon { transition:transform .2s; }
.path-card:focus-within .text-button .icon, .welcome-card:focus-within .primary-button .icon { transform:translateX(3px); }
.starter-row { border:1px solid transparent; transition:background .2s,border-color .2s; }
.starter-row:focus-within { background:var(--green-soft); border-color:#cad6bd; }
.focus-card { border:1px solid #ecd7be; transition:background .35s,border-color .35s,box-shadow .35s; }
.focus-card[data-state="running"] { background:#e4f0df; border-color:#a5bd93; box-shadow:0 0 0 4px #dce9d54d; }
.focus-card[data-state="complete"] { background:#edf6d4; border-color:#c0d694; }
.timer-stage { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 0 20px; }
.timer-stage .timer-display { margin:0 0 4px; font-size:49px; }
.focus-status { display:flex; align-items:center; gap:5px; font-size:9px; color:var(--muted); line-height:1.6; }
.focus-status > i { width:5px; height:5px; border-radius:50%; background:currentColor; flex-shrink:0; }
.focus-card[data-state="running"] .focus-status { color:var(--green); }
.focus-orbit { width:82px; height:82px; position:relative; flex-shrink:0; }
.focus-orbit > svg { width:100%; height:100%; transform:rotate(-90deg); }
.focus-orbit circle { fill:none; stroke-width:3; }
.orbit-track { stroke:#26342a16; }
#focus-progress { stroke:var(--green); stroke-linecap:round; transition:stroke-dashoffset .6s linear; }
.focus-bars { position:absolute; inset:0; display:flex; justify-content:center; align-items:center; gap:4px; }
.focus-bars i { width:4px; height:14px; border-radius:4px; background:#bc8a58; transform:scaleY(.5); }
.focus-bars i:nth-child(2),.focus-bars i:nth-child(4) { height:24px; }
.focus-bars i:nth-child(3) { height:33px; }
.focus-card[data-state="running"] .focus-bars i { background:var(--green); animation:focus-wave 2.4s ease-in-out infinite; }
.focus-card[data-state="running"] .focus-bars i:nth-child(2n) { animation-delay:-.8s; }
.focus-card[data-state="running"] .focus-bars i:nth-child(3) { animation-delay:-1.6s; }
.day-dot { padding:4px 0; border-radius:12px; min-height:60px; background:transparent; transition:background .18s,transform .18s; }
.day-dot:hover, .day-dot:focus-visible { background:#fcfdf96b; }
.day-dot:active { transform:scale(.94); }
.day-entry { display:flex; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }
.day-entry > span { display:grid; place-items:center; background:var(--mint); border-radius:11px; width:36px; height:36px; flex-shrink:0; }
.day-entry b { display:block; font-size:13px; font-weight:550; line-height:1.7; overflow-wrap:anywhere; white-space:pre-wrap; }
.day-entry p { color:var(--muted); font-size:11px; margin-top:3px; }
.day-entry > div { min-width:0; }
.celebration-bit { position:fixed; width:6px; height:9px; border-radius:2px; z-index:120; pointer-events:none; }
dialog[open] { animation:dialog-in .2s cubic-bezier(.2,.8,.2,1); }
@keyframes dialog-in { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes focus-wave { 0%,100% { transform:scaleY(.45); } 50% { transform:scaleY(1); } }
@media (hover:hover) and (pointer:fine) {
  .path-card { transition:transform .25s,box-shadow .25s; }
  .path-card:hover { transform:translateY(-3px); box-shadow:0 9px 20px #26342a0a; }
  .path-card:hover .text-button .icon, .welcome-card:hover .primary-button .icon { transform:translateX(3px); }
  .welcome-card:hover .art-character { transform:rotate(-4deg) translateY(-4px); }
  .welcome-card:hover .art-label { translate:0 -5px; }
  .starter-row:hover { border-color:#cfd8c5; background:var(--green-soft); }
}
@media (max-width:700px) {
  .art-label { display:none; }
  .daily-pulse { gap:7px; margin-bottom:16px; }
  .daily-pulse > button { flex-wrap:wrap; padding:11px; gap:8px; border-radius:14px; }
  .daily-pulse .pulse-icon { width:29px; height:29px; border-radius:9px; }
  .pulse-icon .icon { width:16px; height:16px; }
  .daily-pulse > button > .icon { display:none; }
  .daily-pulse > button > span:nth-child(2) { width:100%; }
  .daily-pulse b { font-size:23px; }
  .daily-pulse em { display:inline; font-size:9px; margin-left:4px; }
  .daily-pulse small { font-size:11px; }
  .timer-stage { padding-block:16px 20px; }
  .timer-stage .timer-display { font-size:52px; }
  .focus-orbit { width:90px; height:90px; }
}
@media (max-width:390px) { .daily-pulse > button { padding:10px 8px; } .daily-pulse em { display:block; margin:0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count:1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .focus-card .focus-bars i { animation:none !important; transform:scaleY(.75); } }
