@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;450;500;550;600;650;700&display=swap');

/* Champagne glass: translucent planes, warm light, restrained type. */
:root {
  color-scheme: light;
  --bg: #ede5d9; --ink: #30231c; --muted: #4c392c; --quiet: #594535;
  --accent: #825337; --line: #5b382927; --edge: #fffaf0b5;
  --glass: #fff9ee70; --field: #fffaf394; --solid: #fff9ef; --panel: #f5eee2f2;
  --button: #493021; --button-ink: #fffaf3; --hover: #fff8edb3;
  --rim: #fffdf5ed; --shade: #56301920; --shadow: #583b2620; --ring-track: #d8c6ad;
  --sheen: #ffffff5c; --glass-bottom: #fff7e70d; --readable-glass: #fff9eeb8;
}
[data-theme=dark] {
  color-scheme: dark;
  --bg: #251b16; --ink: #fcf2e7; --muted: #ead9c8; --quiet: #d3c0aa;
  --accent: #e2b789; --line: #f5d4b32a; --edge: #fbe0ba40;
  --glass: #2a1d16a6; --field: #fff0d810; --solid: #392820; --panel: #30221bf5;
  --button: #efdbc0; --button-ink: #352419; --hover: #fff2d920;
  --rim: #ffe8c65c; --shade: #09050246; --shadow: #12090240; --ring-track: #715139;
  --sheen: #ffe6c415; --glass-bottom: #29160a33; --readable-glass: #2a1d16ba;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: none; touch-action: manipulation; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button, input, textarea, select { transition: background .18s, box-shadow .18s, border-color .18s, transform .18s; }
button:active:not(:disabled) { transform: translateY(1px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
[data-icon], .icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.atelier-wallpaper { position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg,#f6efe466,#f6efe41f 85%), url('assets/atelier-glass.webp') 55% center / cover; pointer-events: none; }
.atelier-wallpaper::after { content: ''; position: absolute; inset: 0; background: #21160e00; transition: background .35s; }
[data-theme=dark] .atelier-wallpaper::after { background: #1e140fd1; }
.app-shell { max-width: 1320px; margin: auto; padding: 0 42px; }
.glass, .quadrant {
  background: linear-gradient(125deg, var(--sheen), transparent 32%, var(--glass-bottom) 67%, var(--sheen) 160%), var(--glass);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--rim), inset 1px 0 0 #fffef63b, inset 0 -1px 1px var(--shade), 0 16px 36px -16px var(--shadow), 0 2px 5px #38230e08;
  backdrop-filter: blur(10px) saturate(115%); -webkit-backdrop-filter: blur(10px) saturate(115%);
}
.app-header { height: 100px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 33px; font-weight: 650; letter-spacing: -1.9px; }
.brand-mark { width: 32px; height: 32px; color: var(--accent); }
.brand-dot { color: var(--accent); }
.top-nav { display: flex; padding: 4px; gap: 4px; border-radius: 100px; margin: 0 auto; }
.top-nav button { min-height: 42px; padding: 10px 18px; border-radius: 100px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.top-nav svg { width: 16px; height: 16px; }
.top-nav .nav-active { background: var(--field); color: var(--ink); box-shadow: 0 1px 4px var(--shade); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.local-status { font-size: 11px; color: var(--quiet); display: none; align-items: center; gap: 8px; }
.local-status i { width: 4px; height: 4px; border-radius: 50%; background: var(--quiet); }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); flex-shrink: 0; }
.icon-button svg { width: 19px; height: 19px; }
.icon-button:hover { background: var(--hover); color: var(--ink); }
#theme-toggle { color: var(--ink); }
.welcome { padding: 48px 0 43px; }
.eyebrow { margin: 0 0 20px; color: var(--quiet); font-size: 10px; font-weight: 450; letter-spacing: 1.8px; }
.welcome h1 { font-size: clamp(48px,4.6vw,64px); font-weight: 450; line-height: 1.08; letter-spacing: -3.2px; margin: 0 0 19px; }
.welcome h1 span { color: var(--accent); }
.welcome-copy { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 480px; }
.planner-bar { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.month-control { display: flex; align-items: center; gap: 2px; margin-left: -12px; }
.date-picker { display: flex; align-items: center; gap: 9px; position: relative; font-size: 15px; min-height: 44px; padding: 8px 4px; font-weight: 500; }
.date-picker input { position: absolute; opacity: 0; inset: 0; width: 100%; cursor: pointer; }
.date-picker input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.date-picker:focus-within { outline: 2px solid var(--accent); border-radius: 8px; }
.date-picker svg { width: 13px; height: 13px; color: var(--quiet); }
.today-button { border: 1px solid var(--edge); border-radius: 30px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; gap: 9px; min-height: 44px; color: var(--muted); font-size: 14px; padding: 8px 16px; }
.today-button svg { width: 15px; height: 15px; }
.workspace { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
.main-column { min-width: 0; }
.week-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; padding: 7px; border-radius: 24px; }
.week-day { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 70px; gap: 8px; border-radius: 17px; color: var(--muted); }
.week-day:hover { background: var(--hover); }
.weekday { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; }
.day-number { font-size: 24px; font-weight: 450; letter-spacing: -.9px; }
.week-day.selected { background: var(--button); color: var(--button-ink); box-shadow: 0 3px 8px var(--shade); }
.week-day.is-today::after { content: ''; position: absolute; bottom: 5px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.week-day.has-tasks .day-number::after { content: ''; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); margin: 3px 0 0 4px; }
.quick-capture { display: flex; align-items: center; gap: 13px; min-height: 66px; border-radius: 20px; padding: 10px 10px 10px 20px; margin-top: 15px; }
.capture-icon { color: var(--accent); }
.quick-capture input { min-width: 0; flex: 1; background: none; border: 0; outline: 0; padding: 10px 0; color: var(--ink); font-size: 16px; }
.quick-capture input::placeholder { color: var(--muted); opacity: 1; }
.quick-capture:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #a9705310; }
.capture-hint { font-size: 12px; white-space: nowrap; color: var(--quiet); }
.capture-submit { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: var(--button); color: var(--button-ink); }
.capture-submit:hover, .primary:hover { background: var(--accent); color: #fff; }
.matrix-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 34px 0 18px; }
.matrix-heading>div:first-child { display: flex; align-items: baseline; gap: 12px; }
.matrix-heading h2 { font-size: 24px; font-weight: 500; letter-spacing: -.5px; margin: 0; }
.matrix-heading #day-label { font-size: 14px; color: var(--quiet); }
.filter-switch { display: flex; padding: 3px; border-radius: 100px; box-shadow: none; }
.filter-switch button { min-height: 36px; padding: 8px 13px; border-radius: 100px; font-size: 14px; color: var(--muted); }
.filter-switch button.selected { background: var(--field); color: var(--ink); box-shadow: 0 1px 3px var(--shade); }
.matrix { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.quadrant { --q: #825337; min-width: 0; border-radius: 28px; padding: 25px 24px 12px; min-height: 280px; display: flex; flex-direction: column; position: relative; transition: border-color .2s, box-shadow .2s; }
.quadrant[data-q=plan] { --q: #596247; }
.quadrant[data-q=delegate] { --q: #4b5d68; }
.quadrant[data-q=later] { --q: #725b61; }
[data-theme=dark] .quadrant { --q: #edc397; }
[data-theme=dark] .quadrant[data-q=plan] { --q: #ced3b0; }
[data-theme=dark] .quadrant[data-q=delegate] { --q: #bdceda; }
[data-theme=dark] .quadrant[data-q=later] { --q: #dbc1cb; }
.q-top { display: flex; align-items: center; gap: 10px; }
.q-symbol { width: 28px; height: 30px; display: grid; place-items: center; flex-shrink: 0; color: var(--q,var(--accent)); }
.q-symbol svg { width: 24px; height: 24px; stroke-width: 1.4; }
.q-top h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.8px; line-height: 1.3; }
.q-count { margin-left: auto; min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.q-sub { font-size: 16px; color: var(--muted); margin: 12px 0 22px; line-height: 1.5; }
.cards { display: flex; flex-direction: column; flex: 1; gap: 10px; }
.empty { display: flex; align-items: center; flex: 1; min-height: 94px; padding: 8px 0 22px; }
.empty p { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 29ch; margin: 0; }
.add-q { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 50px; padding: 13px 0; margin-top: 9px; text-align: left; border-top: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.add-q svg { width: 18px; height: 18px; }
.add-q:hover { color: var(--accent); }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 15px 12px; background: var(--field); border: 1px solid var(--edge); border-radius: 15px; box-shadow: 0 1px 3px var(--shadow); transition: background .18s; }
.task:hover { background: var(--hover); }
.task.entering { animation: taskEnter .25s ease-out; }
.check { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--solid); }
.check::before { content: ''; position: absolute; inset: -8px; }
.check svg { width: 13px; height: 13px; }
.task.done .check { background: var(--q); border-color: var(--q); }
.task.done .task-name { text-decoration: line-through; color: var(--quiet); }
.task-open { min-width: 0; flex: 1; text-align: left; padding: 0; }
.task-name { display: block; font-size: 16px; font-weight: 450; line-height: 1.65; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 16px; margin-top: 5px; }
.task-meta svg { width: 16px; height: 16px; }
.task-note { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-pin { position: relative; display: grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; padding: 0; color: var(--quiet); opacity: 0; }
.task-pin::after { content: ''; position: absolute; inset: -7px; }
.task-pin svg { width: 16px; height: 16px; }
.task-pin.pinned { color: var(--accent); opacity: 1; }
.task:hover .task-pin, .task:focus-within .task-pin { opacity: 1; }
.quadrant.over { border-color: var(--q); box-shadow: 0 0 0 2px var(--q); }
.matrix-footnote { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; padding: 12px 15px; display: flex; align-items: center; gap: 8px; margin: 18px 3px 0; font-size: 13px; line-height: 1.7; color: var(--quiet); }
.matrix-footnote svg { width: 14px; height: 14px; }
.day-sidebar { display: flex; flex-direction: column; gap: 18px; }
.rhythm-card { --ink: #fff6e8; --muted: #f0dfca; --quiet: #e1ccb5; --line: #ffead933; --ring-track: #cda78345; --accent: #f0c591; color: var(--ink); background: linear-gradient(130deg,#a16f486e,#3e231ead), #4b2c2270; border-color: #efc99c85; box-shadow: inset 0 1px 0 #ffebd990, inset 0 -1px 0 #3f261975, 0 20px 40px -15px #57351a40; border-radius: 28px; padding: 24px 22px 22px; text-align: center; }
.side-heading { display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: var(--muted); font-weight: 450; }
.side-heading>span:first-child { display: flex; align-items: center; gap: 8px; }
.side-heading svg { width: 18px; height: 18px; color: var(--quiet); }
.progress-ring { position: relative; width: 128px; height: 128px; margin: 28px auto 21px; }
.progress-ring>svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.progress-ring circle { fill: none; stroke-width: 3; }
.ring-track { stroke: var(--ring-track); }
.ring-value { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 320.443; stroke-dashoffset: 320.443; transition: stroke-dashoffset .5s ease; }
.progress-ring>div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.progress-ring strong { font-size: 35px; font-weight: 450; letter-spacing: -1.8px; }
.progress-ring strong span { font-size: 16px; color: var(--muted); margin-left: 2px; }
.progress-ring #ring-caption { font-size: 12px; color: var(--quiet); }
.rhythm-card h3 { font-size: 16px; line-height: 1.65; font-weight: 450; margin: 0; }
.rhythm-card p { font-size: 14px; line-height: 1.8; color: var(--quiet); margin: 10px 0 25px; }
.day-stats { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); padding-top: 20px; }
.day-stats>div { display: flex; flex-direction: column; gap: 6px; }
.day-stats>div+div { border-left: 1px solid var(--line); }
.day-stats strong { font-size: 18px; font-weight: 450; letter-spacing: -.5px; }
.day-stats span { font-size: 12px; color: var(--quiet); }
.focus-card { background-color: var(--readable-glass); padding: 24px 22px 18px; border-radius: 26px; }
.focus-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
#focus-content h3 { font-size: 18px; font-weight: 450; line-height: 1.5; letter-spacing: -.4px; margin: 21px 0 10px; overflow-wrap: anywhere; }
#focus-content p { font-size: 16px; color: var(--muted); line-height: 1.8; margin: 0 0 12px; }
#focus-content button { font-size: 16px; color: var(--accent); display: flex; align-items: center; gap: 9px; padding: 0; min-height: 40px; }
#focus-content button svg { width: 15px; height: 15px; }
.guide-card { display: flex; align-items: center; gap: 12px; text-align: left; padding: 19px; border-radius: 22px; }
.guide-orb { color: var(--accent); }
.guide-card>span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.guide-card strong { font-weight: 500; font-size: 16px; }
.guide-card>span:nth-child(2)>span { font-size: 14px; line-height: 1.65; color: var(--quiet); }
.guide-arrow { margin-left: auto; color: var(--quiet); }
.guide-arrow svg { width: 15px; height: 15px; }
.gentle-note { display: none; margin: 0; padding: 10px 22px; font-size: 13px; line-height: 1.85; color: var(--quiet); }
footer { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; margin-bottom: 25px; margin-top: 26px; border-top: 1px solid var(--line); font-size: 11px; color: var(--quiet); }
.footer-save, footer button { display: flex; align-items: center; gap: 7px; }
footer button { font-size: 11px; color: var(--muted); min-height: 44px; padding: 0; }
footer svg { width: 14px; height: 14px; }
.mobile-add { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 22px; min-height: 48px; border-radius: 100px; font-size: 14px; font-weight: 450; }
.button svg { width: 17px; height: 17px; }
.primary { background: var(--button); color: var(--button-ink); }
dialog { width: min(500px,calc(100% - 28px)); max-height: 91dvh; padding: 28px; border: 1px solid var(--edge); border-radius: 28px; background: var(--panel); color: var(--ink); box-shadow: inset 0 1px 0 var(--rim), 0 30px 90px #141a1525; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); scrollbar-width: thin; }
dialog::backdrop { background: #2e1c126b; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
dialog[open] { animation: dialogEnter .22s ease-out; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.dialog-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); color: var(--accent); }
dialog .eyebrow { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 12px; }
dialog h2 { font-size: 32px; font-weight: 450; line-height: 1.2; letter-spacing: -1.3px; margin: 0 0 12px; }
.dialog-intro { font-size: 16px; color: var(--muted); line-height: 1.8; margin: 0 0 23px; }
.field { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted); margin: 18px 0; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; min-height: 48px; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 13px; padding: 13px; font-size: 16px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #ad765716; }
.field input::placeholder, .field textarea::placeholder { color: var(--quiet); }
.field select option { color: var(--ink); background: var(--solid); }
.fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.fields .field { margin: 0; }
.mode-tabs { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 100px; margin: 23px 0; }
.mode-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1; border-radius: 100px; padding: 10px 8px; min-height: 44px; font-size: 12px; color: var(--muted); }
.mode-tabs svg { width: 14px; height: 14px; }
.mode-tabs button.active { background: var(--field); box-shadow: 0 1px 4px var(--shade); color: var(--ink); }
fieldset { border: 0; margin: 22px 0; padding: 0; }
legend { padding: 0; font-size: 16px; line-height: 1.6; font-weight: 450; }
legend>span { font-size: 10px; color: var(--accent); margin-right: 7px; }
fieldset p { margin: 7px 0 12px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choices label { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px; font-size: 14px; cursor: pointer; background: var(--field); border: 1px solid var(--line); border-radius: 13px; }
.choices input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
.choices label:has(input:checked) { border-color: var(--accent); background: #ac795610; }
.recommendation { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--field); padding: 15px; border-radius: 14px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.recommendation svg { color: var(--accent); }
.recommendation strong { color: var(--ink); font-weight: 500; }
.note-details { margin-top: 20px; }
.note-details summary { display: flex; align-items: center; justify-content: space-between; list-style: none; min-height: 44px; font-size: 12px; color: var(--muted); cursor: pointer; }
.note-details summary::-webkit-details-marker { display: none; }
.note-details summary svg { width: 14px; height: 14px; }
.note-details .field { margin-top: 9px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.delete { display: flex; align-items: center; gap: 6px; margin-right: auto; font-size: 12px; color: #b67864; min-height: 44px; padding: 0; }
.delete svg { width: 14px; height: 14px; }
.help-item { display: flex; gap: 13px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.help-item strong { font-size: 15px; font-weight: 500; }
.help-item small { display: block; font-size: 13px; margin-top: 6px; color: var(--accent); }
.help-item p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 8px 0 0; }
#help-dialog>.primary { width: 100%; margin-top: 22px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%,12px); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); background: var(--panel); border-radius: 18px; padding: 15px 20px; font-size: 13px; line-height: 1.6; opacity: 0; pointer-events: none; z-index: 100; transition: transform .2s, opacity .2s; }
.toast.visible { transform: translate(-50%,0); opacity: 1; pointer-events: auto; }
.toast button { font-size: 13px; color: var(--accent); text-decoration: underline; white-space: nowrap; }
.toast svg { width: 16px; height: 16px; color: var(--accent); }
#celebration { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.confetti { position: absolute; width: 4px; height: 4px; border-radius: 2px; background: var(--color); animation: confetti .8s ease-out forwards; }
@keyframes taskEnter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes dialogEnter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes confetti { from { opacity: 1; transform: translate(0,0) rotate(0); } to { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(var(--spin)); } }
@media(hover:hover) { .quadrant:hover { border-color: var(--rim); box-shadow: inset 0 1px 0 var(--rim), 0 2px 3px var(--shade), 0 12px 28px var(--shadow); } }
@media(min-width:951px) and (max-width:1200px) { .workspace { grid-template-columns: minmax(0,1fr) 240px; } .q-top { flex-wrap: wrap; gap: 6px; } .q-top h3 { font-size: 22px; } .q-symbol { width: 24px; } }
@media(max-width:1150px) { .app-shell { padding-inline: 30px; } .workspace { grid-template-columns: minmax(0,1fr) 240px; gap: 20px; } .capture-hint { display: none; } .quadrant { padding-inline: 18px; } .q-top { gap: 8px; } .local-status { display: none; } }
@media(max-width:950px) {
  .workspace { grid-template-columns: 1fr; }
  .day-sidebar { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; }
  .rhythm-card { display: grid; grid-template-columns: 95px minmax(0,1fr); column-gap: 17px; text-align: left; }
  .rhythm-card .side-heading { grid-column: 1/-1; }
  .rhythm-card .progress-ring { grid-column: 1; grid-row: 2/4; width: 90px; height: 90px; margin: 23px 0 0; }
  .rhythm-card h3 { grid-column: 2; grid-row: 2; align-self: end; margin-top: 22px; font-size: 16px; }
  .rhythm-card p { display: none; }
  .day-stats { grid-column: 2; grid-row: 3; margin-top: 12px; padding-top: 12px; align-self: start; }
  .day-stats>div+div { padding-left: 6px; }
  .day-stats strong { font-size: 16px; }
  .day-stats span { font-size: 12px; }
  .guide-card, .gentle-note { display: none; }
  .footer-sign { display: none; }
}
@media(max-width:600px) {
  .app-shell { padding-inline: 20px; }
  .atelier-wallpaper { background-position: 67% center; background-image: linear-gradient(100deg,#f9f1e480,#f9f1e45c),url('assets/atelier-glass.webp'); }
  .app-header { height: 82px; gap: 14px; }
  .brand { font-size: 32px; gap: 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .top-nav { margin: 0 0 0 auto; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top-nav #matrix-nav { display: none; }
  .top-nav #help { width: 44px; height: 44px; padding: 0; font-size: 0; gap: 0; justify-content: center; border: 1px solid var(--edge); background: var(--field); }
  .top-nav #help svg { width: 22px; height: 22px; }
  .header-actions { margin-left: -4px; }
  #theme-toggle { border-color: var(--edge); box-shadow: inset 0 1px 0 var(--rim); background: var(--field); }
  .welcome { padding: 30px 0 27px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.35px; margin-bottom: 21px; }
  .welcome h1 { font-size: 44px; line-height: 1.08; letter-spacing: -1.9px; margin-bottom: 18px; }
  .welcome h1 span { display: block; }
  .welcome-copy { max-width: 345px; font-size: 16px; line-height: 1.8; }
  .planner-bar { margin-bottom: 12px; }
  .month-control { margin-left: -12px; gap: 0; }
  .month-control .icon-button { width: 34px; }
  .date-picker { font-size: 14px; gap: 7px; }
  .today-button { font-size: 0; gap: 0; padding: 0; width: 44px; justify-content: center; }
  .today-button svg { width: 18px; height: 18px; }
  .week-strip { border-radius: 21px; padding: 6px; gap: 1px; }
  .week-day { min-height: 66px; gap: 8px; border-radius: 15px; }
  .weekday { font-size: 12px; letter-spacing: .3px; }
  .day-number { font-size: 24px; }
  .quick-capture { border-radius: 18px; margin-top: 14px; padding: 9px 9px 9px 16px; gap: 8px; min-height: 64px; }
  .capture-icon { display: none; }
  .matrix-heading { margin: 26px 0 17px; }
  .matrix-heading>div:first-child { display: block; }
  .matrix-heading h2 { font-size: 24px; }
  .matrix-heading #day-label { display: block; margin-top: 5px; font-size: 14px; }
  .filter-switch button { font-size: 14px; padding: 8px 12px; min-height: 40px; }
  .matrix { grid-template-columns: 1fr; gap: 18px; }
  .quadrant { padding: 24px 22px 10px; min-height: 262px; border-radius: 27px; }
  .q-top { gap: 8px; }
  .q-symbol { width: 28px; }
  .q-count { min-width: 30px; height: 30px; }
  .q-sub { font-size: 16px; line-height: 1.5; margin: 14px 0 18px; }
  .empty { min-height: 88px; padding: 4px 0 18px; }
  .add-q { min-height: 50px; font-size: 16px; }
  .task { padding: 14px 11px; gap: 9px; }
  .task-name { font-size: 16px; }
  .task-meta { font-size: 16px; }
  .task-pin { opacity: 1; width: 27px; }
  .task-pin::after { inset: -8px; }
  .check::before { inset: -10px; }
  .matrix-footnote { font-size: 13px; align-items: flex-start; margin-top: 18px; }
  .matrix-footnote svg { margin-top: 2px; }
  .day-sidebar { grid-template-columns: 1fr; gap: 18px; }
  .rhythm-card { padding: 24px 21px; grid-template-columns: 95px minmax(0,1fr); column-gap: 16px; }
  .side-heading { font-size: 16px; }
  .focus-card { padding: 24px 21px 17px; }
  #focus-content h3 { font-size: 19px; }
  #focus-content p, #focus-content button { font-size: 16px; }
  #focus-content button { min-height: 44px; }
  .mobile-add { position: fixed; bottom: max(20px,env(safe-area-inset-bottom)); right: 22px; display: none; place-items: center; width: 54px; height: 54px; border-radius: 18px; padding: 0; font-size: 0; background: var(--button); color: var(--button-ink); border: 1px solid var(--rim); box-shadow: 0 5px 15px #27301f26; z-index: 25; }
  .mobile-add svg { width: 22px; height: 22px; }
  body:has(dialog[open]) .mobile-add { visibility: hidden; }
  footer { flex-wrap: wrap; justify-content: flex-start; gap: 6px 20px; padding: 18px 20px; margin-top: 26px; }
  .footer-save { line-height: 1.7; }
  .toast { bottom: max(20px,env(safe-area-inset-bottom)); font-size: 12px; padding: 13px 16px; }
  .toast button { font-size: 12px; }
  dialog { padding: 23px 21px; width: calc(100% - 20px); max-height: 94dvh; border-radius: 25px; }
  dialog h2 { font-size: 30px; }
  .choices label { padding: 12px 10px; }
  .dialog-actions .button { font-size: 13px; padding-inline: 18px; }
}
@media(max-width:360px) {
  .fields { grid-template-columns: 1fr; }
  .fields .field + .field { margin-top: 5px; }
  .app-shell { padding-inline: 17px; }
  .welcome h1 { font-size: 38px; }
  .welcome-copy { font-size: 16px; }
  .quadrant { padding-inline: 17px; }
  .q-symbol { width: 25px; }
  .q-top { gap: 6px; }
  .q-top h3 { font-size: 22px; letter-spacing: -.8px; }
  .q-top .q-symbol { display: none; }
  .matrix-heading h2 { font-size: 20px; }
  .filter-switch button { padding-inline: 10px; }
  .rhythm-card { grid-template-columns: 80px minmax(0,1fr); column-gap: 12px; padding-inline: 17px; }
  .rhythm-card .progress-ring { width: 78px; height: 78px; }
  .progress-ring strong { font-size: 30px; }
  .day-stats strong { font-size: 15px; }
  .choices label { font-size: 14px; gap: 6px; padding-inline: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .confetti { display: none; }
}
