:root {
  color-scheme: light; --bg: #f4f5f7; --paper: #f4f5f7; --surface: #fff;
  --ink: #252d2a; --muted: #67736c; --line: #e8ece9; --green: #477560; --wash: #edf3ef;
  --red: #ac423e; --sans: 'Quicksand', 'Segoe UI', sans-serif; --serif: var(--sans);
  --ease: cubic-bezier(.16,1,.3,1);
  font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; font-weight: 500; font-optical-sizing: auto;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #c5cdc7 transparent; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid #44725b; }
::selection { background: #d5e7dc; color: #243f31; }
input, textarea { caret-color: var(--green); }
[hidden] { display: none !important; }
h1,h2,h3,p,blockquote { margin: 0; }
h1,h2,h3 { text-wrap: balance; }
h1 { font-size: clamp(1.6rem,2.6vw,2rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: 1rem; letter-spacing: -.02em; font-weight: 600; line-height: 1.4; }
h3 { font-size: .96rem; font-weight: 550; line-height: 1.5; }
svg { width: 20px; height: 20px; vertical-align: middle; flex-shrink: 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; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 30; padding: 12px 20px; background: white; border-radius: 12px; }
.skip-link:focus { top: 10px; }
.shell { display: grid; grid-template-columns: 222px minmax(0,1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; padding: 30px 17px 20px; display: flex; flex-direction: column; background: #ffffff99; border-right: 1px solid #e5e9e6; backdrop-filter: blur(24px) saturate(140%); }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px; text-decoration: none; font-size: .88rem; font-weight: 650; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 38px; background: #263b30; border-radius: 11px; color: #f3f6f0; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-caption { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.nav-list { position: relative; display: grid; gap: 6px; margin-top: 48px; }
.nav-indicator { position: absolute; top: 0; left: 0; background: #e5ede7; border-radius: 11px; pointer-events: none; }
.nav-button { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 11px 13px; border: 0; border-radius: 11px; background: transparent; color: #68726c; text-align: left; font-size: .8rem; font-weight: 500; z-index: 1; }
.nav-button svg { width: 19px; height: 19px; }
.nav-button:hover { color: #273e30; background: #e7ece650; }
.nav-button[aria-current='page'] { color: #294c36; font-weight: 650; }
.nav-count { margin-left: auto; font-size: .75rem; color: #607b68; }
.sidebar-bottom { margin-top: auto; padding: 36px 9px 0; }
.exam-block { padding: 18px 0; border-top: 1px solid #dfe5df; }
.exam-block > svg { width: 20px; height: 20px; color: #63836b; margin-bottom: 12px; }
.exam-name { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; line-height: 1.5; }
.exam-count { font-size: .95rem; letter-spacing: -.025em; font-weight: 550; margin: 6px 0 10px; }
.exam-block .text-button { font-size: .75rem; }
.exam-block .text-button svg { width: 14px; height: 14px; }
.local-status { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); margin-top: 12px; }
.local-status svg { width: 12px; height: 12px; }
.workspace { min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 36px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--muted); }
.breadcrumb svg { width: 12px; height: 12px; color: #88938b; }
.breadcrumb strong { font-weight: 500; color: #46554b; }
.person { display: flex; align-items: center; gap: 11px; }
.greeting { font-size: .76rem; font-weight: 500; }
.today-label { font-size: .75rem; color: var(--muted); margin-right: 7px; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #dee9e0; color: #36523f; font-size: .8rem; font-weight: 600; }
.demo-banner,.storage-warning { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 16px; margin: 0 36px 4px; border-radius: 10px; font-size: .75rem; line-height: 1.5; }
.demo-banner { color: #576b5c; background: #e8eee8; }
.demo-banner > span { display: flex; align-items: center; gap: 7px; }
.demo-banner i { width: 5px; height: 5px; background: #728f77; border-radius: 50%; flex-shrink: 0; }
.demo-banner a { font-weight: 500; white-space: nowrap; }
.storage-warning { color: #8b3c35; background: #f7e8e4; }
.app-main { padding: 28px 36px 38px; max-width: 1370px; margin: auto; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.overview-heading h1 { font-size: clamp(1.6rem,2.7vw,2.05rem); }
.overview-heading p { margin-top: 9px; font-size: .82rem; line-height: 1.6; color: var(--muted); }
.greeting-period { color: var(--green); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 11px; font-size: .78rem; font-weight: 550; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.button svg { width: 17px; height: 17px; }
.primary { background: #2c3e32; color: #fff; }
.primary:hover { background: #3d5745; }
.secondary { background: #f5f7f5; color: #3f5146; border-color: #e1e7e1; }
.secondary:hover { background: #eaf0e9; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; background: transparent; border: 0; font-size: .78rem; font-weight: 500; color: var(--green); }
.text-button:hover { color: #294d37; text-decoration: underline; }
.text-button svg { width: 15px; height: 15px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.icon-button svg { width: 18px; height: 18px; }
.icon-button:hover { background: #eaf0eb; color: var(--green); }
.overview-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 20px; }
.widget { min-width: 0; padding: 24px; border-radius: 24px; background: white; box-shadow: 0 3px 7px #25392d02, 0 12px 34px #25392d05; }
.widget-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.widget-header h2 { font-size: .91rem; font-weight: 600; letter-spacing: -.02em; }
.widget-header p { color: var(--muted); font-size: .75rem; margin-top: 6px; line-height: 1.5; }
.widget-header .icon-button { min-width: 28px; min-height: 28px; padding: 4px; margin: -3px -5px 0 0; }
.clock-widget { grid-column: span 7; background: #28332f; color: #f2f5f1; min-height: 264px; display: flex; flex-direction: column; }
.clock-widget-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .75rem; color: #c9d6ce; }
.clock-widget-top > span:first-child { display: flex; align-items: center; gap: 7px; }
.clock-widget-top svg { width: 15px; height: 15px; }
.clock-local { color: #c4d0c7; font-size: .75rem; }
.clock-stage { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1; padding: 16px 0; }
.digital-clock { display: flex; align-items: baseline; font-size: clamp(4rem,6.2vw,6rem); font-weight: 450; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.digital-clock > [data-clock] { display: inline-block; min-width: 1.25em; }
.clock-colon { align-self: center; font-size: .7em; margin: 0 .01em .12em; opacity: .85; }
.clock-seconds { display: flex; flex-direction: column; gap: 5px; margin-left: 12px; color: #c2d1c5; font-size: .23em; letter-spacing: -.015em; }
.clock-seconds small { font-size: .75rem; font-weight: 400; color: #c2d1c5; letter-spacing: .02em; }
.clock-date { display: flex; flex-wrap: wrap; gap: 9px; align-items: baseline; margin-top: 13px; font-size: .75rem; color: #c1d1c4; }
.clock-date strong { color: #eef4ee; font-weight: 500; }
.analog-clock { width: 120px; height: 120px; flex-shrink: 0; }
.clock-face { fill: #35413a; stroke: #4c5c50; stroke-width: .8; }
.clock-tick { stroke: #9bafa0; stroke-width: 1.5; }
.hour-hand,.minute-hand { stroke: #eaf1e9; stroke-width: 3.2; stroke-linecap: round; }
.minute-hand { stroke-width: 2.2; }
.second-hand { stroke: #aec7a7; stroke-width: 1; stroke-linecap: round; }
.clock-pin { fill: #b2c9ab; }
.clock-footer { display: flex; gap: 7px; align-items: center; font-size: .75rem; color: #c1d1c4; }
.live-time-dot { width: 5px; height: 5px; border-radius: 50%; background: #b4d2ad; }
.weather-widget { grid-column: span 5; display: flex; flex-direction: column; min-height: 264px; position: relative; }
.weather-city { display: flex; gap: 4px; align-items: center; border: 0; background: none; color: var(--muted); padding: 6px 0 0; font-size: .75rem; text-align: left; width: fit-content; }
.weather-city svg { width: 12px; height: 12px; }
.example-city { color: var(--muted); font-size: .75rem; margin-top: 3px; }
.weather-content { flex: 1; }
.weather-reading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 14px; }
.temperature { display: inline-flex; align-items: flex-start; font-size: 3.9rem; line-height: 1; font-weight: 450; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.temperature > span { font-size: .7em; margin-top: 3px; }
.weather-symbol { display: grid; place-items: center; width: 96px; height: 70px; color: #9b8c54; }
.weather-symbol svg { width: 72px; height: 72px; stroke-width: 1; }
.weather-symbol.cloud,.weather-symbol.rain,.weather-symbol.snow,.weather-symbol.fog { color: #728c80; }
.weather-condition { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; font-size: .78rem; font-weight: 500; margin-top: 8px; }
.weather-condition span { color: var(--muted); font-size: .75rem; font-weight: 400; }
.weather-details { display: flex; align-items: center; gap: 15px; margin-top: 14px; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.weather-details > span { display: inline-flex; gap: 3px; align-items: center; }
.weather-details svg { width: 12px; height: 12px; }
.weather-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: 17px; }
.weather-footer a { display: flex; align-items: center; gap: 3px; text-decoration: none; }
.weather-footer a:hover { text-decoration: underline; }
.weather-footer svg { width: 10px; height: 10px; }
.weather-footer .text-button { font-size: .75rem; }
.weather-empty { padding: 20px 0 8px; flex: 1; }
.weather-empty > svg { color: #7d9582; width: 34px; height: 34px; margin-bottom: 9px; stroke-width: 1.3; }
.weather-empty h3 { font-size: .86rem; }
.weather-empty p { font-size: .75rem; color: var(--muted); line-height: 1.6; margin: 5px 0 12px; }
.weather-empty .button { min-height: 35px; padding: 7px 10px; font-size: .75rem; }
.weather-loading { flex: 1; padding-top: 24px; }
.skeleton { background: #edf1ed; border-radius: 7px; }
.weather-skeleton-number { width: 90px; height: 58px; }
.weather-skeleton-text { width: 145px; height: 12px; margin-top: 15px; }
.weather-skeleton-small { width: 100px; height: 9px; margin-top: 14px; }
.today-widget { grid-column: span 8; }
.completion-chip { display: flex; gap: 3px; align-items: center; background: #f1f5f1; color: #405a48; padding: 7px 10px; border-radius: 10px; font-size: .86rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.completion-chip span { font-size: .75rem; font-weight: 400; color: #657b6a; }
.daily-completion { height: 4px; background: #edf2ed; border-radius: 3px; overflow: hidden; margin-top: 17px; }
.daily-completion > span { display: block; width: 100%; height: 100%; background: #73977b; transform-origin: left; }
.task-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.task-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: start; gap: 13px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.task-check { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -2px 0 0 -4px; cursor: pointer; }
.task-check input { appearance: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; border: 1.4px solid #bcc9bf; border-radius: 6px; background: white; cursor: pointer; }
.task-check input:checked { background: #578168; border-color: #578168; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E"); }
.task-title { font-size: .88rem; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.task-row.complete .task-title { color: #67736c; text-decoration: line-through; text-decoration-color: #b2bfb4; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 11px; color: var(--muted); font-size: .75rem; margin-top: 7px; }
.subject-label { display: inline-flex; gap: 6px; align-items: center; }
.subject-label::before { content: ''; width: 5px; height: 5px; background: var(--subject-color,#738e7a); border-radius: 50%; flex-shrink: 0; }
.task-note { color: var(--muted); font-size: .75rem; line-height: 1.6; margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-side { display: flex; align-items: center; gap: 2px; }
.task-count { min-height: 33px; padding: 6px 8px; color: #53735e; background: #f1f5f0; border: 0; border-radius: 8px; font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-count:hover { background: #e5eee3; }
.task-row.complete .task-count { background: transparent; color: var(--muted); }
.task-row .icon-button { min-width: 28px; min-height: 33px; padding: 5px; }
.task-row .icon-button svg { width: 14px; height: 14px; }
.task-progress { height: 3px; max-width: 180px; background: #eaf0e8; margin-top: 10px; border-radius: 2px; overflow: hidden; }
.task-progress > span { display: block; height: 100%; background: #87a184; }
.overview-tasks { border-top: 0; margin-top: 3px; }
.overview-tasks .task-row { padding: 18px 0; }
.overview-tasks .task-note { display: none; }
.overview-tasks .task-title { font-size: .8rem; }
.overview-tasks .task-meta { font-size: .75rem; gap: 5px 10px; }
.overview-tasks .task-progress { display: none; }
.today-widget-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; font-size: .75rem; color: var(--muted); margin-top: 13px; }
.today-widget-footer .text-button { font-size: .75rem; }
.quote-widget { grid-column: span 4; background: #e7efe5; display: flex; flex-direction: column; }
.quote-widget .widget-header h2 { color: #496447; font-size: .78rem; }
.quote-widget .icon-button { color: #5d7757; }
.quote-symbol { width: 24px; height: 19px; color: #8ba385; margin: 29px 0 15px; }
.quote-widget blockquote { font-size: clamp(1.1rem,1.7vw,1.45rem); font-weight: 450; letter-spacing: -.03em; line-height: 1.5; color: #365333; text-wrap: pretty; }
.quote-footnote { font-size: .75rem; color: #526b4e; padding-top: 22px; margin-top: auto; }
.rhythm-widget { grid-column: span 8; }
.rhythm-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; margin-top: 20px; }
.rhythm-day { display: flex; flex-direction: column; gap: 9px; align-items: center; border: 0; padding: 11px 4px; border-radius: 14px; background: transparent; color: var(--muted); font-size: .75rem; }
.rhythm-day:hover { background: #f1f5ef; }
.rhythm-day > strong { font-size: 1rem; font-weight: 500; color: #3c4b41; font-variant-numeric: tabular-nums; }
.rhythm-today { background: #f0f4ee; }
.rhythm-today > strong { color: #32563a; }
.rhythm-check { display: grid; place-items: center; position: relative; width: 18px; height: 18px; overflow: hidden; background: #edf2ec; border-radius: 6px; }
.rhythm-check > i { position: absolute; inset: 0; background: #abc2a3; transform-origin: bottom; }
.rhythm-check.finished { background: #628364; color: white; }
.rhythm-check svg { width: 12px; height: 12px; }
.target-widget { grid-column: span 4; }
.target-widget .widget-header > svg { width: 16px; height: 16px; color: #789277; }
.target-number { display: flex; align-items: baseline; gap: 9px; margin-top: 20px; }
.target-number strong { font-size: 3rem; letter-spacing: -.04em; font-weight: 450; line-height: 1; font-variant-numeric: tabular-nums; }
.target-number > span { color: var(--muted); font-size: .75rem; }
.target-name { font-size: .75rem; margin-top: 14px; }
.target-name > span { display: block; color: var(--muted); font-size: .75rem; margin-top: 5px; }
.target-empty { margin-top: 23px; }
.target-empty strong { font-size: .9rem; font-weight: 550; }
.target-empty p { font-size: .75rem; color: var(--muted); line-height: 1.6; margin: 9px 0 13px; }
.target-empty .text-button { font-size: .75rem; }
.overview-footer { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; margin: 22px 0 0 3px; line-height: 1.5; }
.overview-footer svg { width: 12px; height: 12px; }
.overview-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 27px 12px 16px; }
.empty-symbol { display: grid; place-items: center; width: 42px; height: 42px; background: #f0f5ee; border-radius: 14px; color: #70916d; margin-bottom: 13px; }
.overview-empty h3 { font-size: .95rem; }
.overview-empty p { color: var(--muted); line-height: 1.7; font-size: .75rem; margin: 8px 0 17px; }
.overview-empty .text-button { font-size: .75rem; margin-top: 13px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-heading p { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-top: 9px; }
.date-tools { display: flex; gap: 4px; align-items: center; margin-top: 16px; }
.date-tools .button { min-height: 34px; padding: 6px 12px; font-size: .75rem; }
.date-tools .icon-button { min-width: 32px; min-height: 34px; padding: 7px; }
.date-control { margin: 0; display: block; }
.date-control input { width: 128px; padding: 6px 8px; min-height: 34px; border-color: #e1e6e1; font-size: .75rem; }
.day-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); padding: 8px; gap: 5px; margin-bottom: 22px; border-radius: 20px; background: #fff; }
.day-button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px; min-height: 77px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--muted); font-size: .75rem; }
.day-button:hover { background: #f1f5ef; }
.day-number { font-size: 1.05rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.day-button.is-today:not(.selected) { border-color: #d9e4d6; }
.day-button.selected { color: #dfeade; background: #486d52; }
.selected .day-number { color: white; }
.day-dots { display: flex; justify-content: center; gap: 3px; height: 4px; }
.day-dots i { width: 3px; height: 3px; border-radius: 50%; background: #c6d3c1; }
.day-dots i.done { background: #567e59; }
.selected .day-dots i { background: #8fab86; }
.selected .day-dots i.done { background: #f0f5e8; }
.content-columns { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: start; gap: 22px; }
.content-columns > section { padding: 24px; background: white; border-radius: 24px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-heading > .muted { font-size: .75rem; }
.task-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.filters { display: flex; gap: 16px; }
.filter { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 10px 0; font-size: .75rem; color: var(--muted); }
.filter[aria-pressed='true'] { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.copy-button { font-size: .75rem; color: var(--muted); }
.day-footnote { display: flex; gap: 6px; align-items: center; font-size: .75rem; line-height: 1.6; color: var(--muted); margin-top: 18px; }
.day-footnote svg { width: 13px; height: 13px; }
.context-rail { min-width: 0; }
.context-section { background: white; padding: 21px; border-radius: 21px; }
.context-section + .context-section { margin-top: 17px; }
.context-section h2 { font-size: .86rem; }
.context-section p { font-size: .75rem; color: var(--muted); line-height: 1.7; margin-top: 9px; }
.context-section .text-button { margin-top: 7px; font-size: .75rem; }
.week-progress { height: 5px; background: #eaf0e6; border-radius: 3px; overflow: hidden; margin-top: 16px; }
.week-progress > span { display: block; height: 100%; background: #7a9a75; }
.stat-line { display: flex; justify-content: space-between; align-items: center; gap: 9px; font-size: .75rem; color: var(--muted); margin-top: 11px; }
.stat-line strong { font-weight: 550; color: var(--ink); font-variant-numeric: tabular-nums; }
.week-bars { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; height: 78px; align-items: end; margin-top: 16px; }
.week-bar { display: flex; align-items: center; flex-direction: column; justify-content: end; gap: 8px; height: 100%; }
.week-bar .bar { display: flex; flex-direction: column; justify-content: end; width: 100%; max-width: 14px; min-height: 3px; background: #e2ebdd; border-radius: 3px 3px 0 0; overflow: hidden; }
.week-bar .bar span { display: block; width: 100%; background: #88a17d; }
.week-bar small { font-size: .75rem; color: var(--muted); }
.backlog-list { list-style: none; padding: 0; margin: 14px 0 0; }
.backlog-list li + li { margin-top: 17px; }
.backlog-list strong { display: block; font-size: .75rem; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.backlog-list small { display: block; font-size: .75rem; color: var(--muted); margin-top: 5px; }
.backlog-list .text-button { font-size: .75rem; }
.muted { color: var(--muted); }
.empty-state { padding: 38px 10px; text-align: center; border-top: 1px solid var(--line); }
.empty-mark { width: 32px; height: 32px; color: #7f9978; margin-bottom: 15px; }
.empty-state h3 { font-size: 1rem; }
.empty-state p { max-width: 43ch; font-size: .8rem; line-height: 1.7; margin: 10px auto 19px; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 13px; }
.all-done { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: .75rem; margin-top: 15px; }
.all-done svg { width: 16px; height: 16px; }
.weekly-heading { margin-bottom: 20px; }
.week-board { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); padding: 12px 8px; background: white; border-radius: 24px; min-height: 320px; }
.week-column { min-width: 0; padding: 10px 12px; }
.week-column + .week-column { border-left: 1px solid var(--line); }
.week-column.current-day { background: #f1f6ed; border-radius: 13px; }
.week-day-heading { width: 100%; padding: 0 0 17px; background: none; border: 0; text-align: left; font-size: .75rem; color: var(--muted); }
.week-day-heading strong { display: block; margin-top: 6px; font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.week-task { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 15px 0; color: var(--ink); }
.week-task strong { display: block; font-size: .75rem; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.week-task small { display: block; color: var(--muted); font-size: .75rem; margin-top: 6px; }
.week-task.complete strong { color: var(--muted); text-decoration: line-through; }
.week-empty { font-size: .75rem; color: var(--muted); }
.week-add { margin-top: 8px; }
.week-caption { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 17px; color: var(--muted); font-size: .75rem; }
.chart-note { margin-top: 13px; font-size: .75rem; line-height: 1.7; color: var(--muted); }
.progress-intro { display: flex; gap: 45px; padding: 25px 0; border-top: 1px solid #dfe6df; border-bottom: 1px solid #dfe6df; margin-bottom: 28px; }
.progress-intro > div { display: flex; flex-direction: column; gap: 9px; }
.progress-intro strong { font-size: 2rem; font-weight: 500; letter-spacing: -.035em; }
.progress-intro strong span { font-size: .8rem; color: var(--muted); }
.progress-intro > div > span { font-size: .75rem; color: var(--muted); }
.analytics-columns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 23px; }
.analytics-columns > section { padding: 25px; background: white; border-radius: 24px; min-width: 0; }
.chart { display: flex; align-items: end; gap: 14px; height: 220px; padding-top: 20px; border-bottom: 1px solid var(--line); margin-top: 15px; }
.chart-column { display: flex; flex: 1; min-width: 0; height: 100%; flex-direction: column; align-items: center; justify-content: end; }
.chart-bar { width: 100%; max-width: 28px; background: #87a07d; border-radius: 5px 5px 0 0; min-height: 2px; }
.chart-value { font-size: .75rem; color: var(--muted); margin-bottom: 7px; }
.chart-column small { font-size: .75rem; color: var(--muted); padding: 10px 0; }
.subject-progress { margin-top: 24px; }
.subject-progress > div + div { margin-top: 24px; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 25px; }
.settings-layout > section,.settings-layout > div { background: white; padding: 26px; border-radius: 24px; min-width: 0; }
.settings-layout h2 { margin-bottom: 21px; }
.section-copy { color: var(--muted); font-size: .78rem; line-height: 1.8; margin-bottom: 17px; }
.settings-section + .settings-section { margin-top: 29px; padding-top: 27px; border-top: 1px solid var(--line); }
.settings-layout .button { margin: 0 4px 10px 0; }
.data-note { font-size: .75rem; line-height: 1.8; color: var(--muted); margin-top: 5px; }
label { display: grid; gap: 8px; margin: 0 0 19px; font-size: .75rem; font-weight: 550; }
label input,label select,label textarea,.city-search input { min-width: 0; width: 100%; padding: 11px 12px; min-height: 44px; background: #fafcf9; border: 1px solid #dce4da; border-radius: 10px; color: var(--ink); font-size: .83rem; font-weight: 400; }
input::placeholder,textarea::placeholder { color: #6b7767; }
textarea { min-height: 76px; resize: vertical; }
.optional { color: var(--muted); font-size: .75rem; font-weight: 400; }
dialog { width: min(510px,calc(100% - 30px)); max-height: calc(100dvh - 40px); padding: 28px; background: #fcfdfb; color: var(--ink); border: 0; border-radius: 24px; box-shadow: 0 24px 90px #1e392b30; overflow-y: auto; }
dialog::backdrop { background: #1e302f55; backdrop-filter: blur(4px); }
dialog:not([open]),dialog:not([open])::backdrop { pointer-events: none; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 25px; }
.dialog-header h2 { font-size: 1.16rem; font-weight: 600; letter-spacing: -.03em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 25px; }
.dialog-actions { display: flex; gap: 8px; margin-left: auto; }
.form-error { color: var(--red); font-size: .75rem; line-height: 1.7; margin-top: 10px; }
.danger-text { color: var(--red); padding-left: 0; font-weight: 400; }
#confirm-description,#progress-description,#copy-description { font-size: .82rem; line-height: 1.8; margin-bottom: 20px; }
.city-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 15px; }
#city-form label { margin-bottom: 8px; }
#city-search-status { font-size: .75rem; line-height: 1.7; }
.city-results { padding: 0; margin: 14px 0 0; list-style: none; }
.city-results button { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; padding: 14px 10px; width: 100%; background: transparent; border: 0; border-top: 1px solid var(--line); color: var(--ink); border-radius: 8px; font-size: .82rem; }
.city-results button:hover { background: var(--wash); }
.city-results small { display: block; font-size: .75rem; margin-top: 5px; color: var(--muted); }
.city-results svg { width: 16px; height: 16px; color: var(--green); }
.toast { position: fixed; bottom: 25px; left: calc(50% + 111px); transform: translateX(-50%); max-width: min(460px,calc(100vw - 32px)); z-index: 20; border-radius: 14px; padding: 14px 20px; color: white; background: #2e4436; box-shadow: 0 10px 32px #233e2d22; font-size: .78rem; text-align: center; line-height: 1.6; }
.boot { max-width: 650px; margin: 60px auto; padding: 24px; }
.boot p { line-height: 1.8; margin-top: 15px; }
.boot .button { margin-top: 20px; }
.noscript { padding: 24px; }
@media(min-width:1600px) { .app-main { padding-top: 38px; } .clock-widget { min-height: 285px; } }
@media(max-width:1180px) {
  .shell { grid-template-columns: 190px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { gap: 8px; font-size: .77rem; padding-inline: 4px; }
  .brand-mark { width: 29px; height: 34px; }
  .brand-caption { font-size: .75rem; }
  .nav-button { font-size: .75rem; padding-inline: 11px; gap: 8px; }
  .topbar { padding-inline: 27px; }
  .app-main { padding-inline: 27px; }
  .demo-banner,.storage-warning { margin-inline: 27px; }
  .overview-grid { gap: 17px; }
  .widget { padding: 21px; }
  .analog-clock { width: 95px; height: 95px; }
  .digital-clock { font-size: 4.6rem; }
  .clock-seconds { margin-left: 8px; }
  .content-columns { grid-template-columns: minmax(0,1fr) 210px; gap: 18px; }
  .content-columns > section { padding: 21px; }
  .task-row { gap: 9px; }
  .context-section { padding: 18px; }
  .toast { left: calc(50% + 95px); }
  .week-board { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .week-column:nth-child(5) { border-left: 0; }
  .week-column:nth-child(n+5) { border-top: 1px solid var(--line); }
}
@media(max-width:1020px) {
  .shell { grid-template-columns: 78px minmax(0,1fr); }
  .sidebar { padding: 25px 12px; }
  .brand { justify-content: center; padding: 0; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 37px; height: 41px; }
  .nav-button { justify-content: center; padding: 13px; min-height: 48px; }
  .nav-button > span { display: none; }
  .nav-button svg { width: 21px; height: 21px; }
  .sidebar-bottom { padding-inline: 0; }
  .exam-block { display: none; }
  .local-status { justify-content: center; font-size: 0; }
  .local-status svg { width: 17px; height: 17px; }
  .toast { left: calc(50% + 39px); }
  .digital-clock { font-size: 4.8rem; }
  .analog-clock { width: 105px; height: 105px; }
  .today-widget,.rhythm-widget { grid-column: span 7; }
  .quote-widget,.target-widget { grid-column: span 5; }
  .overview-tasks .task-row { grid-template-columns: 23px minmax(0,1fr); gap: 8px; padding: 15px 0; }
  .overview-tasks .task-side { grid-column: 2; justify-content: space-between; }
  .overview-tasks .task-count { min-height: 29px; }
}
@media(max-width:820px) {
  .topbar { padding-inline: 23px; }
  .app-main { padding-inline: 23px; }
  .demo-banner,.storage-warning { margin-inline: 23px; }
  .today-label { display: none; }
  .overview-grid { gap: 15px; }
  .widget { padding: 20px; }
  .clock-widget { grid-column: span 7; }
  .weather-widget { grid-column: span 5; }
  .analog-clock { display: none; }
  .digital-clock { font-size: 5.1rem; }
  .clock-stage { padding-top: 26px; }
  .weather-symbol { width: 60px; }
  .weather-symbol svg { width: 55px; height: 55px; }
  .temperature { font-size: 3.3rem; }
  .weather-details { gap: 8px; flex-wrap: wrap; }
  .content-columns { grid-template-columns: 1fr; }
  .context-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
  .context-section + .context-section { margin: 0; }
  .context-section:last-child { grid-column: 1/-1; }
  .settings-layout,.analytics-columns { grid-template-columns: 1fr; gap: 20px; }
}
@media(max-width:640px) {
  .shell { display: block; }
  .sidebar { display: contents; height: auto; }
  .sidebar .brand { position: absolute; top: 19px; left: 19px; font-size: .78rem; gap: 8px; }
  .brand-mark { width: 28px; height: 32px; border-radius: 9px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand > span:last-child { display: block; }
  .brand-caption { display: none; }
  .sidebar-bottom { display: none; }
  .nav-list { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 7px; gap: 2px; z-index: 10; background: #ffffffda; backdrop-filter: blur(24px) saturate(140%); box-shadow: 0 10px 45px #29392d1a; border-radius: 22px; }
  .nav-button { flex: 1; min-width: 0; min-height: 57px; flex-direction: column; padding: 7px 2px; gap: 5px; text-align: center; border-radius: 15px; }
  .nav-button > span:not(.nav-count) { display: block; font-size: .75rem; line-height: 1.25; letter-spacing: -.01em; }
  .nav-button svg { width: 18px; height: 18px; }
  .nav-indicator { border-radius: 15px; background: #e8efe6; }
  .topbar { height: 72px; padding: 0 20px; justify-content: flex-end; }
  .breadcrumb { display: none; }
  .person { gap: 8px; }
  .person .greeting { display: none; }
  .avatar { width: 28px; height: 28px; font-size: .75rem; }
  .app-main { padding: 23px 16px 112px; }
  .demo-banner,.storage-warning { margin-inline: 16px; margin-bottom: 0; padding: 9px 11px; gap: 10px; align-items: flex-start; font-size: .75rem; line-height: 1.6; }
  .demo-banner a { white-space: normal; min-width: 75px; max-width: 80px; text-align: right; }
  .demo-banner > span { align-items: flex-start; }
  .demo-banner i { margin-top: 5px; }
  .overview-heading { margin-bottom: 23px; }
  .overview-heading h1 { font-size: 1.7rem; }
  .overview-heading p { font-size: .75rem; max-width: 36ch; line-height: 1.7; }
  .overview-heading > .button { display: none; }
  .overview-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .overview-grid > .widget { grid-column: 1; border-radius: 23px; padding: 23px; }
  .clock-widget { min-height: 247px; }
  .analog-clock { display: block; width: 90px; height: 90px; }
  .digital-clock { font-size: 4.7rem; }
  .clock-seconds { font-size: .2em; margin-left: 7px; }
  .clock-stage { padding-top: 19px; gap: 5px; }
  .clock-date { flex-direction: column; gap: 7px; margin-top: 12px; font-size: .75rem; }
  .clock-widget-top,.clock-footer { font-size: .75rem; }
  .clock-local { font-size: .75rem; }
  .weather-widget { min-height: 250px; }
  .weather-symbol { width: 100px; }
  .weather-symbol svg { width: 76px; height: 76px; }
  .temperature { font-size: 4rem; }
  .weather-reading { margin-top: 17px; }
  .weather-condition { font-size: .8rem; }
  .weather-condition > span { font-size: .75rem; }
  .weather-details { gap: 18px; font-size: .75rem; }
  .weather-footer { font-size: .75rem; }
  .overview-tasks .task-row { grid-template-columns: 24px minmax(0,1fr); padding: 17px 0; gap: 9px; }
  .overview-tasks .task-title { font-size: .84rem; }
  .overview-tasks .task-meta { font-size: .75rem; }
  .overview-tasks .task-side { grid-column: 2; justify-content: space-between; margin-top: 2px; }
  .overview-tasks .task-count { min-height: 38px; }
  .quote-widget blockquote { font-size: 1.3rem; line-height: 1.5; }
  .quote-symbol { margin-top: 23px; }
  .quote-footnote { padding-top: 27px; }
  .widget-header h2 { font-size: .9rem; }
  .widget-header .icon-button { min-height: 36px; min-width: 36px; }
  .rhythm-days { gap: 2px; margin-top: 16px; }
  .rhythm-day { font-size: .75rem; padding: 11px 2px; }
  .target-widget { min-height: 200px; }
  .target-number strong { font-size: 3rem; }
  .overview-footer { font-size: .75rem; line-height: 1.8; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
  .page-heading h1 { font-size: 1.55rem; }
  .page-heading p { font-size: .75rem; }
  .page-heading > .button { font-size: .75rem; padding-inline: 12px; }
  .daily-heading .heading-copy { flex: 1; min-width: 180px; }
  .date-tools { flex-wrap: wrap; gap: 3px; margin-top: 15px; }
  .date-control input { width: 123px; min-height: 36px; font-size: .75rem; }
  .day-strip { gap: 2px; padding: 5px; border-radius: 17px; }
  .day-button { padding: 11px 2px; min-height: 74px; gap: 7px; font-size: .75rem; border-radius: 12px; }
  .day-number { font-size: .97rem; }
  .content-columns > section { padding: 20px 16px; border-radius: 22px; }
  .section-heading { gap: 9px; }
  .section-heading > .muted { font-size: .75rem; }
  .task-toolbar { gap: 8px; }
  .filters { gap: 11px; }
  .filter { min-height: 42px; font-size: .75rem; }
  .copy-button { font-size: .75rem; }
  .task-row { grid-template-columns: 22px minmax(0,1fr); gap: 8px; padding: 20px 0; }
  .task-title { font-size: .84rem; }
  .task-meta { font-size: .75rem; }
  .task-side { grid-column: 2; justify-content: space-between; margin-top: 3px; }
  .task-check { width: 33px; height: 44px; margin-top: -8px; margin-left: -6px; }
  .task-count { min-height: 40px; font-size: .75rem; }
  .task-row .icon-button { min-width: 40px; min-height: 40px; }
  .task-note { font-size: .75rem; }
  .context-rail { gap: 16px; }
  .context-section { border-radius: 20px; }
  .empty-state { padding: 31px 2px; }
  .empty-state p { font-size: .76rem; }
  .empty-actions { gap: 12px; }
  .empty-actions .button { font-size: .75rem; }
  .empty-actions .text-button { font-size: .75rem; }
  .week-board { grid-template-columns: 1fr; padding: 10px 15px; }
  .week-column { display: grid; grid-template-columns: 60px minmax(0,1fr); column-gap: 15px; padding: 18px 5px; border-bottom: 1px solid var(--line); }
  .week-column + .week-column { border-left: 0; }
  .week-column:nth-child(n+5) { border-top: 0; }
  .week-column:last-child { border-bottom: 0; }
  .week-day-heading { grid-column: 1; grid-row: 1/50; }
  .week-task,.week-empty,.week-add { grid-column: 2; }
  .week-task { padding: 11px 0; }
  .week-task strong { font-size: .8rem; }
  .week-task small { font-size: .75rem; }
  .week-caption { gap: 14px; font-size: .75rem; }
  .progress-intro { gap: 28px; padding: 22px 0; }
  .progress-intro strong { font-size: 1.7rem; }
  .progress-intro > div > span { font-size: .75rem; }
  .analytics-columns > section,.settings-layout > section,.settings-layout > div { padding: 23px 20px; border-radius: 22px; }
  .chart { gap: 12px; height: 180px; }
  .chart-column small { font-size: .75rem; }
  .chart-value { font-size: .75rem; }
  .toast { bottom: 97px; left: 50%; width: max-content; font-size: .75rem; }
  dialog { padding: 24px; border-radius: 23px; }
}
@media(max-width:380px) {
  .analog-clock { width: 73px; height: 73px; }
  .digital-clock { font-size: 4.25rem; }
  .clock-seconds { margin-left: 5px; }
  .clock-widget-top svg { width: 13px; height: 13px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .context-rail { grid-template-columns: 1fr; }
  .context-section:last-child { grid-column: 1; }
  .overview-grid > .widget { padding: 21px; }
  .progress-intro { gap: 21px; }
}
@media(prefers-reduced-transparency:reduce) { .sidebar,.nav-list { background: #fff; backdrop-filter: none; } dialog::backdrop { backdrop-filter: none; } }
@media(prefers-contrast:more) { :root { --muted: #465448; --line: #aebcaf; } .widget { outline: 1px solid #bac7bb; } .sidebar,.nav-list { background: #fff; backdrop-filter: none; } }
@media(prefers-reduced-motion:no-preference) {
  .button,.icon-button,.nav-button,.task-count,.rhythm-day { transition: transform 180ms var(--ease),background-color 160ms ease-out,color 160ms ease-out; }
  .button:active,.icon-button:active,.task-count:active { transform: scale(.97); transition-duration: 70ms; }
  .daily-completion > span { transition: transform 320ms var(--ease); }
  .weather-loading .skeleton { animation: skeleton-breathe 1.5s ease-in-out infinite alternate; }
  dialog { opacity: 0; transform: translateY(9px) scale(.98); transition: opacity .15s ease-out,transform .24s var(--ease),overlay .24s allow-discrete,display .24s allow-discrete; }
  dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
  @starting-style { dialog[open] { opacity: 0; transform: translateY(9px) scale(.98); } }
  @keyframes skeleton-breathe { from { opacity: .55; } to { opacity: 1; } }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; } }

/* Growth is a quiet reward beside the real study work. */
.garden-widget { grid-column: span 8; display: grid; grid-template-columns: 1fr 1fr; padding: 30px; background: #eef2e9; min-height: 337px; overflow: hidden; }
.garden-copy { position: relative; z-index: 1; }
.garden-copy h2 { font-size: .875rem; color: #4f6553; }
.garden-copy h3 { margin: 18px 0 9px; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.035em; font-weight: 550; }
.garden-copy > p { color: #596a59; font-size: .8125rem; line-height: 1.7; }
.garden-caption { display: grid; gap: 5px; margin-top: 22px; font-size: .8125rem; }
.garden-caption strong { font-weight: 550; }
.garden-caption span { color: #596a59; font-size: .75rem; }
.garden-meter { max-width: 230px; height: 4px; background: #d5dfce; margin: 11px 0; border-radius: 5px; overflow: hidden; }
.garden-meter span { display: block; width: 100%; height: 100%; background: #628356; transform-origin: left; }
.garden-copy .garden-rule { max-width: 36ch; font-size: .75rem; line-height: 1.6; }
.garden-copy .text-button { margin-top: 13px; }
.garden-scene { position: relative; min-width: 0; align-self: stretch; min-height: 270px; }
.garden-ground { position: absolute; left: 0; right: -15px; bottom: 38px; height: 55px; border-radius: 50%; background: #e2e9d9; }
.garden-plant { display: block; position: absolute; width: 250px; height: 250px; background: var(--plant-image,url('./assets/garden-stages-v2.png')) no-repeat; background-size: var(--plant-size,300% 200%); background-position: var(--plant-x) var(--plant-y); clip-path: inset(1px); }
.garden-current { left: 50%; bottom: 19px; transform: translateX(-50%); transform-origin: 50% 88%; z-index: 2; }
.garden-grown { width: 140px; height: 140px; bottom: 41px; opacity: .85; }
.garden-grown-0 { left: -12px; transform: rotate(-4deg); }
.garden-grown-1 { right: -18px; transform: rotate(4deg); }
.garden-grown-2 { left: 18%; bottom: 65px; width: 110px; height: 110px; }
.garden-scene-note { position: absolute; bottom: 0; left: -10px; right: -10px; text-align: center; color: #52634c; font-size: .75rem; z-index: 3; }
.notebook-widget { grid-column: span 4; display: flex; flex-direction: column; }
.notebook-widget .widget-header > svg { color: #7a8e7b; }
.notebook-widget h3 { font-size: 1.45rem; letter-spacing: -.03em; margin-top: 34px; line-height: 1.3; }
.notebook-widget > p { font-size: .8125rem; color: var(--muted); line-height: 1.8; margin-top: 12px; }
.notebook-widget .text-button { align-self: flex-start; margin-top: auto; padding-top: 30px; }
.notebook-intro { display: flex; flex-wrap: wrap; gap: 25px; margin: 0 0 28px; font-size: .875rem; color: var(--muted); }
.notebook-intro strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.notebook-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 0 0 23px; }
.question-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.question-filter { border: 0; border-radius: 9px; min-height: 40px; padding: 9px 12px; font-size: .8125rem; background: transparent; color: var(--muted); }
.question-filter:hover { background: #e9eeea; }
.question-filter[aria-pressed='true'] { background: #e2ebe3; color: #34523d; font-weight: 550; }
.question-search { flex: 0 1 280px; min-width: 180px; }
.question-search input { width: 100%; margin: 0; background: white; font-size: .8125rem; min-height: 42px; }
.question-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: start; }
.question-card { background: white; overflow: hidden; border-radius: 16px; min-width: 0; }
.question-card-body { padding: 22px; }
.question-photo { position: relative; display: block; width: 100%; border: 0; padding: 0; height: 195px; background: #e9ece8; cursor: zoom-in; }
.question-photo img { width: 100%; height: 100%; object-fit: contain; }
.question-photo > svg { position: absolute; bottom: 10px; right: 10px; width: 30px; height: 30px; padding: 7px; background: #ffffffeb; border-radius: 8px; }
.question-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .75rem; color: var(--muted); line-height: 1.5; }
.question-meta > span:first-child { overflow-wrap: anywhere; color: #4a6551; }
.question-state { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.question-state svg { width: 13px; height: 13px; }
.question-solved .question-state { color: #477052; }
.question-card h2 { font-size: 1.05rem; line-height: 1.45; margin: 14px 0 6px; overflow-wrap: anywhere; }
.question-source { font-size: .75rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.question-note { margin: 16px 0 21px; font-size: .875rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.question-dates { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.question-actions { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.question-actions .button { margin-right: auto; padding: 9px 11px; font-size: .75rem; white-space: normal; }
.question-actions .icon-button { min-width: 36px; }
.notebook-empty { padding: 65px 25px; text-align: center; background: white; border-radius: 16px; }
.notebook-empty > svg { width: 34px; height: 34px; color: #69836d; margin-bottom: 19px; }
.notebook-empty h2 { font-size: 1.3rem; }
.notebook-empty p { max-width: 52ch; margin: 12px auto 23px; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.notebook-footer { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 17px; padding-top: 28px; }
.notebook-footer p { max-width: 55ch; font-size: .75rem; color: var(--muted); line-height: 1.8; }
.notebook-footer p svg { width: 13px; height: 13px; margin-right: 5px; }
.notebook-footer > div { display: flex; flex-wrap: wrap; gap: 18px; }
.photo-field { margin: 6px 0 20px; }
.photo-field > label { margin-bottom: 9px; }
.photo-field input { width: 100%; font-size: .8125rem; padding: 8px; border: 1px dashed #c4cec5; border-radius: 11px; }
.photo-field input::file-selector-button { background: #e8efe8; color: #385640; border: 0; border-radius: 7px; padding: 8px 12px; margin-right: 12px; cursor: pointer; font: inherit; }
#question-photo-preview { margin-top: 12px; background: #f4f5f3; border-radius: 10px; padding: 8px; text-align: center; }
#question-photo-preview img { max-width: 100%; max-height: 220px; object-fit: contain; }
#question-dialog { max-width: 620px; }
#photo-dialog { max-width: min(1000px,96vw); width: max-content; }
.photo-large-wrap { overflow: auto; max-height: 70dvh; margin-top: 15px; }
.photo-large-wrap img { display: block; max-width: 100%; height: auto; }
@media(max-width:1180px) {
  .garden-widget { grid-column: span 8; padding: 24px; }
  .garden-copy h3 { font-size: 1.4rem; }
  .garden-current { width: 215px; height: 215px; }
  .garden-grown { width: 110px; height: 110px; }
  .question-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:820px) {
  .garden-widget { grid-column: 1/-1; }
  .notebook-widget { grid-column: 1/-1; min-height: 210px; }
  .notebook-widget h3 { margin-top: 18px; }
  .notebook-widget .text-button { padding-top: 18px; }
  .notebook-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .question-search { flex: auto; }
}
@media(max-width:640px) {
  .nav-button { min-height: 52px; }
  .nav-button > span:not(.nav-count) { font-size: 0; }
  .nav-button > span:not(.nav-count)::after { font-size: .75rem; }
  .nav-button[data-view='overview'] > span::after { content: 'Özet'; }
  .nav-button[data-view='day'] > span:not(.nav-count)::after { content: 'Bugün'; }
  .nav-button[data-view='week'] > span::after { content: 'Hafta'; }
  .nav-button[data-view='notebook'] > span::after { content: 'Defter'; }
  .nav-button[data-view='progress'] > span::after { content: 'Gelişim'; }
  .nav-button[data-view='settings'] > span::after { content: 'Ayarlar'; }
  .overview-grid > .garden-widget { display: flex; flex-direction: column-reverse; gap: 12px; }
  .garden-scene { min-height: 260px; width: 100%; }
  .garden-current { width: 240px; height: 240px; }
  .garden-copy h3 { font-size: 1.6rem; margin-top: 12px; }
  .garden-copy .garden-rule { max-width: 45ch; }
  .garden-meter { max-width: none; }
  .garden-grown { width: 140px; height: 140px; }
  .garden-grown-0 { left: 5%; }
  .garden-grown-1 { right: 4%; }
  .notebook-intro { gap: 10px 18px; font-size: .8125rem; }
  .question-grid { grid-template-columns: 1fr; gap: 18px; }
  .question-card-body { padding: 23px; }
  .question-photo { height: 220px; }
  .question-filters { gap: 2px; justify-content: space-between; }
  .question-filter { padding-inline: 8px; font-size: .75rem; }
  .notebook-footer { flex-direction: column; }
  .notebook-empty { padding: 40px 22px; }
  #question-dialog { padding: 22px; }
  #question-dialog .dialog-header h2 { font-size: 1.2rem; }
}
@media(prefers-reduced-motion:no-preference) {
  .garden-meter span { transition: transform 400ms var(--ease); }
  .question-photo img { transition: transform 300ms var(--ease); }
  .question-photo:hover img { transform: scale(1.025); }
}

/* A tablet can stay here all day: only the present task and a quiet companion. */
.shell { display: block; }
.topbar { padding-left: 150px; }
.app-main { padding-right: 190px; padding-bottom: 180px; }
.menu-trigger { position: fixed; top: max(20px,env(safe-area-inset-top)); left: max(22px,env(safe-area-inset-left)); z-index: 9; display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 13px; background: #ffffffb3; color: #5b6b60; font-size: .8125rem; backdrop-filter: blur(14px); }
.menu-trigger:hover { background: #e6ede6; color: #2e4a36; }
.menu-trigger svg { width: 18px; height: 18px; }
body[data-view='overview'] .topbar { display: none; }
.view-overview { min-height: 100dvh; display: grid; align-content: center; padding: 80px 190px 130px 52px; max-width: 1440px; }
.focus-dashboard { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,370px); grid-template-areas: 'primary plan'; gap: 21px 58px; align-items: center; }
.focus-primary { grid-area: primary; display: flex; flex-direction: column; align-items: center; gap: 27px; min-width: 0; }
.focus-primary > section,.focus-primary > aside { width: 100%; }
.focus-dashboard .clock-widget { grid-area: clock; background: none; color: var(--ink); min-height: 0; padding: 0; }
.focus-dashboard .overview-heading { display: block; text-align: center; margin: 0 0 16px; }
.focus-dashboard .overview-heading h1 { font-size: 1rem; font-weight: 450; color: #627168; letter-spacing: -.015em; }
.focus-dashboard .clock-stage { padding: 0; display: block; flex: none; }
.focus-dashboard .digital-clock { justify-content: center; font-family: 'Quicksand Clock',var(--sans); font-size: clamp(4.5rem,8.4vw,6rem); font-weight: 400; letter-spacing: -.035em; }
.focus-dashboard .digital-clock > [data-clock] { text-align: center; }
.focus-dashboard .clock-seconds { color: #6a7c70; font-size: .2em; margin-left: 13px; min-width: 1.3em; align-items: center; }
.focus-dashboard .clock-seconds small { color: #647267; font-family: var(--sans); }
.focus-dashboard .clock-date { justify-content: center; align-items: center; margin-top: 19px; gap: 8px; color: #647267; font-size: .875rem; }
.focus-dashboard .clock-date strong { color: #536558; font-weight: 450; }
.focus-dashboard .weather-widget { grid-area: weather; min-height: 0; padding: 7px 0; background: transparent; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 14px; }
.focus-dashboard .weather-widget > .widget-header { display: none; }
.focus-dashboard .weather-city { padding: 0; margin: 0; color: #53685a; font-size: .8125rem; }
.focus-dashboard .example-city { margin: 0; }
.focus-dashboard .weather-content { flex: 0 1 auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.focus-dashboard .weather-reading { margin: 0; gap: 10px; }
.focus-dashboard .temperature { font-size: 1.7rem; }
.focus-dashboard .weather-symbol,.focus-dashboard .weather-symbol svg { width: 27px; height: 27px; }
.focus-dashboard .weather-condition { margin: 0; font-size: .8125rem; gap: 6px; }
.focus-dashboard .weather-condition > span,.focus-dashboard .weather-details { display: none; }
.focus-dashboard .weather-footer { width: 100%; justify-content: center; margin-top: 4px; gap: 12px; }
.focus-dashboard .weather-empty { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; padding: 0; flex: 0 1 auto; }
.focus-dashboard .weather-empty > svg { width: 25px; height: 25px; margin: 0; }
.focus-dashboard .weather-empty h3 { font-size: .8125rem; font-weight: 400; }
.focus-dashboard .weather-empty p { display: none; }
.focus-dashboard .weather-loading { flex: 0 1 auto; padding: 0; }
.focus-dashboard .weather-skeleton-number { width: 80px; height: 24px; }
.focus-dashboard .weather-skeleton-text,.focus-dashboard .weather-skeleton-small { display: none; }
.focus-dashboard .quote-widget { grid-area: quote; display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 0; background: transparent; min-width: 0; }
.focus-dashboard .quote-widget blockquote { flex: 1; font-size: clamp(1.05rem,1.5vw,1.25rem); text-align: center; line-height: 1.65; color: #5a7159; letter-spacing: -.02em; }
.focus-dashboard .quote-widget .icon-button { opacity: .7; min-width: 36px; }
.focus-dashboard .quote-widget .icon-button:hover,.focus-dashboard .quote-widget .icon-button:focus-visible { opacity: 1; }
.focus-dashboard .today-widget { grid-area: plan; align-self: center; padding: 26px; border-radius: 22px; }
.focus-dashboard .today-widget .widget-header h2 { font-size: 1rem; }
.focus-dashboard .overview-tasks .task-row { grid-template-columns: 23px minmax(0,1fr); padding: 16px 0; gap: 7px 10px; }
.focus-dashboard .overview-tasks .task-side { grid-column: 2; justify-content: space-between; }
.focus-dashboard .overview-tasks .task-title { font-size: .875rem; }
.focus-dashboard .overview-tasks .task-count { min-height: 36px; }
.focus-demo-label { margin-left: 9px; color: #5c6d5d; font-size: .75rem; font-weight: 400; }
.focus-dashboard .today-widget-footer { gap: 12px; }
.focus-dashboard .overview-empty { padding: 25px 0 6px; }
.garden-companion { position: fixed; right: max(20px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom)); width: 154px; height: 176px; padding: 0; border: 0; border-radius: 18px; background: transparent; color: #526849; z-index: 6; }
.garden-companion .garden-current { width: 154px; height: 154px; bottom: 20px; }
.companion-label { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-size: .75rem; line-height: 1.4; }
.garden-companion:hover .companion-label { text-decoration: underline; text-underline-offset: 4px; }
.toast { left: 50%; bottom: 22px; }
html { scroll-padding-bottom: 185px; }
#navigation-dialog { position: fixed; inset: 12px auto 12px 12px; width: min(324px,calc(100vw - 24px)); height: calc(100dvh - 24px); max-height: none; margin: 0; padding: 0; border-radius: 23px; }
#navigation-dialog .sidebar { position: static; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; padding: 24px 19px; background: #fcfdfb; border: 0; backdrop-filter: none; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 9px; }
.drawer-heading h2 { font-size: 1rem; }
#navigation-dialog .nav-list { position: relative; display: grid; flex: none; gap: 5px; margin: 24px 0 0; padding: 0; inset: auto; background: transparent; box-shadow: none; backdrop-filter: none; border-radius: 0; z-index: auto; }
#navigation-dialog .nav-button { display: flex; flex: none; flex-direction: row; align-items: center; justify-content: flex-start; width: 100%; min-height: 48px; padding: 12px; gap: 12px; text-align: left; border-radius: 11px; }
#navigation-dialog .nav-button > span { display: block; font-size: .875rem; }
#navigation-dialog .nav-button > span::after { content: none; }
#navigation-dialog .nav-button svg { width: 20px; height: 20px; }
#navigation-dialog .nav-count { font-size: .75rem; }
#navigation-dialog .nav-indicator { border-radius: 11px; }
#navigation-dialog .sidebar-bottom { display: block; margin-top: auto; padding: 25px 9px 0; }
#navigation-dialog .exam-block { display: block; padding: 14px 0 6px; }
#navigation-dialog .local-status { font-size: .75rem; justify-content: flex-start; }
.drawer-demo { font-size: .75rem; color: var(--muted); line-height: 1.7; margin: 15px 9px 4px; }
#navigation-dialog .sidebar > .text-button { margin-left: 9px; font-size: .75rem; }
#garden-dialog { width: min(720px,calc(100vw - 30px)); }
#garden-dialog .garden-widget { box-shadow: none; border-radius: 16px; min-height: 300px; }
#garden-dialog .garden-copy > h2 { display: none; }
#garden-dialog .garden-copy h3 { margin-top: 0; }
#garden-dialog .garden-scene { min-height: 270px; }
@media(min-width:901px) and (max-width:1180px) {
  .view-overview { padding-left: 32px; padding-right: 170px; }
  .focus-dashboard { grid-template-columns: minmax(0,1fr) 310px; gap: 20px 25px; }
  .focus-dashboard .today-widget { padding: 23px; }
  .focus-dashboard .digital-clock { font-size: 5.4rem; }
}
@media(max-width:900px) {
  .app-main { padding-right: 24px; padding-bottom: 180px; }
  .view-overview { padding: 100px 32px 180px; }
  .focus-dashboard { grid-template-columns: minmax(0,1fr) minmax(280px,320px); gap: 20px 30px; }
  .focus-dashboard .digital-clock { font-size: 4.6rem; }
  .focus-dashboard .clock-date { flex-direction: column; font-size: .8125rem; }
  .garden-companion { width: 132px; height: 150px; right: 12px; bottom: 12px; }
  .garden-companion .garden-current { width: 132px; height: 132px; bottom: 17px; }
}
@media(max-width:700px) {
  .workspace { height: 100dvh; display: flex; flex-direction: column; padding-bottom: 136px; overflow: hidden; }
  .topbar,.status-banners { flex-shrink: 0; }
  .app-main { flex: 1; min-height: 0; width: 100%; margin: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 32px; }
  .view-overview { display: block; min-height: 0; padding: 98px 22px 32px; }
  .focus-dashboard { display: flex; flex-direction: column; gap: 26px; }
  .focus-dashboard .clock-widget,.focus-dashboard .weather-widget,.focus-dashboard .today-widget,.focus-dashboard .quote-widget { width: 100%; }
  .focus-dashboard .digital-clock { font-size: clamp(4rem,20vw,5.5rem); }
  .focus-dashboard .clock-date { flex-direction: row; flex-wrap: wrap; }
  .focus-dashboard .weather-widget { order: 1; gap: 5px 12px; }
  .focus-dashboard .quote-widget { order: 2; padding: 8px 0 9px; }
  .focus-dashboard .today-widget { order: 3; padding: 23px; }
  .focus-dashboard .quote-widget blockquote { font-size: 1.05rem; }
  .menu-trigger { top: 15px; left: 16px; padding: 9px 12px; }
  .garden-companion { width: 110px; height: 126px; right: 10px; bottom: 10px; }
  .garden-companion .garden-current { width: 110px; height: 110px; bottom: 16px; }
  .companion-label { font-size: .75rem; }
  .topbar { height: 78px; padding-left: 120px; }
  .app-main:not(.view-overview) { padding-top: 24px; padding-inline: 18px; }
  .toast { left: 50%; bottom: 145px; }
  .notebook-footer > div { flex-direction: column; align-items: flex-start; }
  #garden-dialog .garden-widget { display: flex; flex-direction: column-reverse; }
  #garden-dialog .garden-scene { min-height: 250px; }
}
@media(prefers-reduced-motion:no-preference) {
  #navigation-dialog { transform: translateX(-20px); transition: opacity 160ms ease-out,transform 280ms var(--ease),overlay 280ms allow-discrete,display 280ms allow-discrete; }
  #navigation-dialog[open] { transform: translateX(0); }
  @starting-style { #navigation-dialog[open] { transform: translateX(-20px); } }
}
@media(prefers-reduced-transparency:reduce) { .menu-trigger { background: #fff; backdrop-filter: none; } }

.focus-dashboard .today-widget { box-shadow: 0 16px 45px #243b2d06; }
.focus-dashboard .today-widget .completion-chip { background: transparent; padding-right: 0; font-size: 1rem; }
.focus-dashboard .overview-tasks .focus-task { grid-template-columns: 22px minmax(0,1fr); padding: 17px 0; gap: 12px; }
.focus-task .task-check { width: 44px; height: 44px; margin: 20px 0 0 -11px; }
.subject-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 9px; border-radius: 7px; background: #edf2ee; color: #47614f; font-size: .75rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.focus-dashboard .focus-task .task-title { margin-top: 6px; font-size: .9375rem; line-height: 1.5; font-weight: 500; }
.focus-task.complete .subject-badge { background: #f0f3f0; color: #647467; }
.focus-task-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.focus-dashboard .focus-task .task-count { display: inline-flex; align-items: center; gap: 3px; padding: 0; min-height: 44px; background: transparent; color: #65736a; font-size: .75rem; }
.focus-task .task-count strong { font-weight: 550; color: #3f5c49; }
.focus-task .task-count > svg { width: 13px; height: 13px; margin-left: 5px; color: #637d68; }
.focus-task-actions .icon-button { min-height: 44px; min-width: 44px; }
.focus-dashboard .focus-task:last-child { border-bottom: 0; }
.focus-dashboard .today-widget-footer { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
@media(max-width:1180px) and (min-width:701px) {
  .focus-dashboard .overview-tasks .focus-task { padding: 14px 0; }
}

.focus-task-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; }
.focus-dashboard .overview-tasks .focus-task { padding: 11px 0; gap: 10px; }
.focus-task .task-check { margin-top: 44px; }
.focus-dashboard .focus-task .task-count { gap: 7px; min-width: 0; color: #4b6253; }
.progress-change { color: #526f59; font-size: .75rem; font-weight: 450; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b1c5b4; }
.focus-task-heading { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.focus-dashboard .focus-task .task-title { flex: 1; min-width: 0; margin: 0; }
.focus-task-heading .icon-button { width: 44px; min-width: 44px; min-height: 44px; flex: 0 0 44px; }
.focus-dashboard .focus-task.complete .task-title { text-decoration: none; color: #67736c; }
.focus-task.complete .subject-badge { background: #edf2ee; color: #47614f; }
@media(hover:hover) and (pointer:fine) {
  .focus-dashboard .focus-task .task-count:hover { background: #f0f5ef; color: #2d5838; }
  .focus-task .task-count:hover .progress-change { color: #264d32; text-decoration-color: currentColor; }
}
@media(hover:none) { .focus-task .icon-button:hover { background: transparent; } }
@media(prefers-reduced-motion:no-preference) {
  .focus-dashboard .daily-completion > span { transition: transform 180ms cubic-bezier(.23,1,.32,1); }
}
body[data-input='keyboard'] .daily-completion > span,
body[data-input='keyboard'] dialog,
body[data-input='keyboard'] #navigation-dialog { transition: none; }
body[data-input='keyboard'] .button:active,
body[data-input='keyboard'] .icon-button:active,
body[data-input='keyboard'] .task-count:active { transform: none; }

/* The friend occupies the same quiet bottom edge as the garden. */
.study-friend { position: fixed; left: clamp(22px,7vw,100px); bottom: max(12px,env(safe-area-inset-bottom)); width: 180px; height: min(230px,28dvh); z-index: 5; pointer-events: none; }
.study-friend[hidden] { display: none; }
.friend-stage { position: absolute; inset: 0 0 32px; }
.friend-stage model-viewer { display: block; width: 100%; height: 100%; background: transparent; pointer-events: auto; touch-action: pan-y; cursor: grab; --poster-color: transparent; }
.friend-stage model-viewer:active { cursor: grabbing; }
.friend-toggle { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); min-height: 44px; padding: 8px 12px; white-space: nowrap; border: 0; border-radius: 12px; background: transparent; color: #5c6e63; font: inherit; font-size: .6875rem; pointer-events: auto; }
.friend-toggle:disabled { cursor: default; }
.friend-status { position: absolute; bottom: 35px; left: 0; right: 0; margin: 0; text-align: center; font-size: .6875rem; color: #5c6e63; }
.study-friend[data-ready='true'] .friend-status:not(:empty) { bottom: 12px; background: var(--bg,#f4f5f7); }
.study-friend[data-ready='true'] .friend-toggle:disabled { visibility: hidden; }
@media(hover:hover) and (pointer:fine) { .friend-toggle:not(:disabled):hover { background: #e7ece8; color: #314e3b; } }
@media(max-width:900px) { .study-friend { left: 24px; width: 160px; height: min(210px,25dvh); } }
@media(max-width:700px) {
  .study-friend { left: 12px; bottom: max(4px,env(safe-area-inset-bottom)); width: 132px; height: 132px; }
  .friend-stage { inset: -2px 0 27px; }
  .friend-toggle { min-height: 44px; bottom: -4px; }
  .friend-status { bottom: 40px; }
}
