:root {
  color-scheme: light;
  --bg: #f2f7fa;
  --surface: rgba(255, 255, 255, .76);
  --surface-soft: #e7f0f5;
  --surface-hover: #dceaf2;
  --text: #18384f;
  --muted: #657f91;
  --line: rgba(42, 96, 140, .15);
  --blue: #2a608c;
  --blue-strong: #346b96;
  --teal: #4a9bb3;
  --gold: #b58b4b;
  --danger: #ff8d9e;
  --shadow: 0 20px 58px rgba(42, 96, 140, .09);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: radial-gradient(ellipse at 80% 0%, rgba(102,164,198,.17), transparent 39%), radial-gradient(ellipse at 12% 50%, rgba(175,209,225,.2), transparent 35%), var(--bg); color: var(--text); }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1320px, calc(100% - 52px)); margin-inline: auto; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.ambient-one { width: 520px; height: 520px; top: -270px; right: -100px; background: radial-gradient(circle, rgba(102, 164, 198, .25), transparent 68%); }
.ambient-two { width: 600px; height: 600px; left: -340px; top: 560px; background: radial-gradient(circle, rgba(175, 209, 225, .28), transparent 68%); }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 45px; height: 45px; border-radius: 14px; object-fit: contain; padding: 2px; background: rgba(255,255,255,.58); }
.brand span { display: grid; gap: 1px; }
.brand strong { font-size: 17px; letter-spacing: -.4px; }
.brand small { color: var(--muted); font-size: 10px; }
nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; }
nav a { transition: color .18s ease; }
nav a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.local-badge { display: flex; gap: 7px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 10px; }
.local-badge i, .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px rgba(134, 211, 197, .45); }
.icon-button { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--blue); font-size: 18px; transition: background .18s, transform .18s; }
.icon-button:hover { background: var(--surface-hover); transform: translateY(-1px); }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 51px 2px 31px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 11px; font-weight: 600; }
.sparkle { color: var(--gold); }
h1 { margin: 15px 0 12px; font-size: clamp(34px, 5vw, 50px); line-height: 1.4; letter-spacing: -.9px; font-weight: 600; }
h1 em { color: var(--blue); font-style: normal; }
.hero p { margin: 0; max-width: 500px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.today-card { min-width: 224px; display: grid; grid-template-columns: 43px 1fr; align-items: center; column-gap: 10px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(125deg, rgba(22, 37, 61, .82), rgba(14, 25, 42, .77)); }
.today-icon { width: 42px; height: 42px; display: grid; place-items: center; grid-row: span 2; border-radius: 14px; background: rgba(141, 184, 255, .12); color: var(--blue); font-size: 20px; }
.today-card span:not(.today-icon) { font-size: 12px; font-weight: 600; }
.today-card small { color: var(--muted); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: stretch; gap: 17px; }
.side-column { display: grid; grid-template-rows: auto 1fr; gap: 17px; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.timer-panel { padding: 24px 26px 20px; text-align: center; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: start; }
.panel h2 { margin: 6px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.muted { color: var(--muted); }
.panel-top .icon-button { flex: 0 0 auto; }
.intent-label { display: block; margin: 21px 0 7px; text-align: start; color: var(--muted); font-size: 11px; }
.intent-input, .task-form input, .custom-duration input, .goal-controls input { border: 1px solid var(--line); background: rgba(8, 15, 27, .45); border-radius: 11px; }
.intent-input { width: 100%; height: 43px; padding: 0 13px; color: var(--text); text-align: start; font-size: 12px; }
.intent-input::placeholder, .task-form input::placeholder { color: #77869e; }
.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.mode-button { padding: 9px 6px; border: 1px solid var(--line); border-radius: 11px; background: transparent; transition: .18s ease; }
.mode-button strong, .mode-button small { display: block; }
.mode-button strong { font-size: 12px; font-weight: 600; }
.mode-button small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.mode-button:hover { background: var(--surface-hover); }
.mode-button.selected { border-color: rgba(141, 184, 255, .57); background: rgba(111, 157, 243, .12); color: var(--blue); }
.mode-button.selected small { color: #aabfe4; }
.custom-duration { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: var(--muted); font-size: 11px; }
.custom-duration input { width: 76px; padding: 6px 8px; }
.timer-face { position: relative; width: 210px; height: 210px; display: grid; place-items: center; margin: 18px auto 12px; border: 1px solid rgba(141, 184, 255, .12); border-radius: 50%; background: radial-gradient(circle, rgba(78, 116, 178, .13), rgba(12, 21, 36, .13) 65%); }
.timer-face::before { position: absolute; inset: 12px; border: 1px dashed rgba(141, 184, 255, .16); border-radius: 50%; content: ""; }
.timer-orbit { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.orbit-one { top: 24px; right: 44px; }
.orbit-two { bottom: 36px; left: 26px; width: 4px; height: 4px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.timer-readout { display: grid; justify-items: center; gap: 5px; }
.timer-readout span:first-child { color: var(--teal); font-size: 10px; }
.timer-readout strong { direction: ltr; font-variant-numeric: tabular-nums; font-size: 51px; line-height: 1.1; font-weight: 500; letter-spacing: 1px; }
.timer-readout small { color: var(--muted); font-size: 10px; }
.timer-actions { display: flex; justify-content: center; gap: 9px; }
.button { min-height: 42px; padding: 0 19px; border-radius: 12px; border: 1px solid transparent; font-size: 12px; font-weight: 600; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { min-width: 156px; background: linear-gradient(110deg, #88b4ff, #76a2f0); color: #101a2d; box-shadow: 0 8px 24px rgba(111, 157, 243, .16); }
.button-primary:hover { filter: brightness(1.06); }
.button-primary span:first-child { margin-inline-end: 6px; font-size: 10px; }
.button-quiet { border-color: var(--line); background: transparent; color: var(--muted); }
.button-quiet:hover { background: var(--surface-hover); color: var(--text); }
.timer-tip { margin: 15px 0 0; color: #71809a; font-size: 10px; }
.goal-panel, .task-panel, .progress-panel, .sounds-panel { padding: 21px; }
.goal-panel h2 { direction: ltr; text-align: right; color: var(--blue); font-size: 27px; }
.goal-panel h2 small { color: var(--muted); font-size: 13px; font-weight: 400; }
.goal-icon { color: var(--teal); font-size: 25px; }
.progress-track { height: 7px; overflow: hidden; margin: 18px 0 16px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #76c9b9, #91b9ff); transition: width .3s ease; }
.goal-controls { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.goal-controls div { display: flex; align-items: center; gap: 6px; }
.goal-controls input { width: 55px; padding: 5px 7px; text-align: center; font-size: 11px; }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.quick-stats div { display: grid; gap: 3px; text-align: center; }
.quick-stats div + div { border-inline-start: 1px solid var(--line); }
.quick-stats strong { color: var(--text); font-size: 16px; font-weight: 600; }
.quick-stats span { color: var(--muted); font-size: 9px; }
.task-count { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(141, 184, 255, .12); color: var(--blue); font-size: 10px; }
.task-form { display: flex; gap: 7px; margin-top: 16px; }
.task-form input { min-width: 0; flex: 1; height: 39px; padding: 0 11px; text-align: start; font-size: 11px; }
.task-form button { width: 40px; border: 0; border-radius: 11px; background: var(--surface-soft); color: var(--blue); font-size: 22px; }
.task-form button:hover { background: var(--surface-hover); }
.task-list { display: grid; gap: 6px; max-height: 178px; overflow-y: auto; margin-top: 12px; }
.task-item { display: flex; align-items: center; gap: 9px; min-height: 37px; padding: 5px 8px; border: 1px solid transparent; border-radius: 10px; background: rgba(9, 17, 30, .35); }
.task-item:hover { border-color: var(--line); }
.task-check { appearance: none; width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid #71819c; border-radius: 5px; background: transparent; cursor: pointer; }
.task-check:checked { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #152a36; }
.task-title { min-width: 0; flex: 1; overflow: hidden; color: #dce5f3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.task-item.done .task-title { color: #74839b; text-decoration: line-through; }
.task-delete { width: 25px; height: 25px; border: 0; border-radius: 7px; background: transparent; color: #8996aa; font-size: 16px; }
.task-delete:hover { background: rgba(255, 141, 158, .12); color: var(--danger); }
.empty-tasks { margin: 17px 0 3px; color: #71809a; text-align: center; font-size: 10px; }
.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }
.text-button { padding: 6px 0; border: 0; background: none; color: var(--blue); font-size: 10px; }
.text-button:hover { color: var(--teal); }
.week-chart { height: 152px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 12px; padding: 18px 4px 0; }
.chart-day { height: 100%; display: grid; grid-template-rows: 1fr 17px; justify-items: center; align-items: end; gap: 7px; }
.chart-bar-area { width: 100%; height: 100%; display: flex; align-items: end; justify-content: center; }
.chart-bar { position: relative; width: min(29px, 75%); min-height: 4px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #93baff, #5579bb); transition: height .3s ease; }
.chart-bar.today { background: linear-gradient(180deg, #92decf, #64a99f); }
.chart-bar:hover::after { position: absolute; top: -23px; right: 50%; padding: 3px 6px; transform: translateX(50%); border-radius: 5px; background: #050a12; color: #fff; content: attr(data-label); font-size: 9px; white-space: nowrap; }
.chart-day small { color: var(--muted); font-size: 9px; }
.chart-summary { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.chart-summary span { display: flex; align-items: center; gap: 7px; }
.chart-summary i { width: 8px; height: 8px; border-radius: 3px; background: var(--blue); }
.chart-summary strong { color: var(--text); font-size: 10px; font-weight: 500; }
.recent-session { display: flex; align-items: center; gap: 9px; margin-top: 11px; color: var(--muted); font-size: 9px; }
.recent-icon { color: var(--gold); }
.sound-note { color: var(--muted); font-size: 9px; }
.sound-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 23px; }
.sound-option { min-height: 95px; display: grid; justify-items: center; align-content: center; gap: 5px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: transparent; transition: .18s ease; }
.sound-option:hover { transform: translateY(-2px); background: var(--surface-hover); }
.sound-option.selected { border-color: rgba(134, 211, 197, .63); background: rgba(134, 211, 197, .1); }
.sound-option > span { color: var(--teal); font-size: 21px; line-height: 1.2; }
.sound-option strong { font-size: 9px; font-weight: 500; }
.sound-option small { color: var(--muted); font-size: 8px; }
.volume-row { display: flex; align-items: center; gap: 10px; margin-top: 17px; color: var(--muted); font-size: 9px; }
.volume-row input { min-width: 40px; flex: 1; accent-color: var(--teal); }
.volume-row .text-button { flex: 0 0 auto; }
.audio-note { margin: 10px 0 0; color: #75839a; font-size: 9px; }
.closing-note { display: flex; align-items: center; gap: 13px; margin: 18px 0; padding: 17px 20px; border: 1px solid rgba(134, 211, 197, .14); border-radius: 16px; background: linear-gradient(110deg, rgba(20, 45, 54, .48), rgba(19, 30, 48, .55)); }
.closing-note > span { color: var(--gold); font-size: 22px; }
.closing-note div { display: grid; gap: 3px; flex: 1; }
.closing-note strong { font-size: 11px; font-weight: 600; }
.closing-note small { color: var(--muted); font-size: 9px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 59px; border-top: 1px solid var(--line); color: #71809a; font-size: 9px; }
.footer-brand { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.footer-brand img { width: 22px; height: 22px; border-radius: 7px; }
.site-footer .text-button { color: #8996aa; }
.toast { position: fixed; z-index: 10; right: 50%; bottom: 22px; max-width: calc(100% - 32px); padding: 11px 18px; transform: translate(50%, 20px); border: 1px solid var(--line); border-radius: 12px; background: #1c2a40; color: var(--text); opacity: 0; pointer-events: none; font-size: 11px; box-shadow: var(--shadow); transition: .22s ease; }
.toast.show { transform: translate(50%, 0); opacity: 1; }
.noscript { margin: 30px; color: var(--gold); text-align: center; }
.theme-light { color-scheme: light; --bg: #f2f7fa; --surface: rgba(255,255,255,.82); --surface-soft: #e7f0f5; --surface-hover: #dceaf2; --text: #18384f; --muted: #657f91; --line: rgba(42,96,140,.15); --blue: #2a608c; --blue-strong: #346b96; --teal: #4a9bb3; --gold: #a77736; --shadow: 0 20px 58px rgba(42,96,140,.09); }
.theme-light .intent-input, .theme-light .task-form input, .theme-light .custom-duration input, .theme-light .goal-controls input { background: rgba(247, 249, 253, .9); }
.theme-light .timer-face { background: radial-gradient(circle, rgba(111, 157, 243, .1), rgba(255, 255, 255, .2) 65%); }
.theme-light .task-item { background: rgba(235, 240, 248, .7); }
.theme-light .task-title { color: #34445d; }
.theme-light .mode-button.selected small { color: #526b92; }
.theme-light .chart-bar:hover::after { background: #1c2a40; }

body.focus-mode { overflow: hidden; }
.focus-mode .site-header, .focus-mode .hero, .focus-mode .goal-panel, .focus-mode .task-panel, .focus-mode .lower-grid, .focus-mode .closing-note, .focus-mode .site-footer { display: none; }
.focus-mode main { min-height: 100vh; display: grid; align-items: center; }
.focus-mode .dashboard-grid { display: block; }
.focus-mode .side-column { display: none; }
.focus-mode .timer-panel { max-width: 650px; margin: auto; padding: 45px; }
.focus-mode .timer-face { width: 270px; height: 270px; }
.focus-mode .timer-readout strong { font-size: 66px; }
.focus-mode #fullscreen-button { position: fixed; top: 22px; left: 22px; }

.theme-light .hero h1 em { color: #2a608c; }

/* iOS-inspired glass workspace and compact section navigation */
:root { --surface: rgba(255,255,255,.74); --line: rgba(42,96,140,.15); --shadow: 0 22px 70px rgba(42,96,140,.1); }
body { margin-inline-start: 248px; background-image: radial-gradient(ellipse at 75% 0%, rgba(104,146,211,.12), transparent 44%); }
.glass, .panel, .today-card, .closing-note, .site-header { -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); }
.sidebar { position: fixed; z-index: 20; inset-block: 14px; inset-inline-start: 14px; width: 218px; display: flex; flex-direction: column; padding: 18px 13px 12px; border: 1px solid var(--line); border-radius: 25px; background: rgba(248,252,254,.78); box-shadow: 0 25px 70px rgba(42,96,140,.12); }
.sidebar .brand { padding: 2px 7px 20px; }
.side-label { padding: 11px 10px 8px; color: var(--muted); font-size: 10px; }
.side-nav { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.side-nav a { min-height: 41px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 13px; transition: .18s ease; }
.side-nav a:hover, .side-nav a.active { color: var(--text); background: rgba(141,184,255,.105); border-color: rgba(177,204,247,.12); }
.side-nav a.active { color: var(--blue); }
.side-nav svg, .icon-button svg, .line-icon, .today-icon svg, .goal-icon, .recent-icon, .closing-icon, .assistant-mark, .sound-option svg, .chat-form svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.side-nav a.active svg { stroke-width: 1.9; }
.sidebar-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 11px 3px 2px; border-top: 1px solid var(--line); }
.sidebar-bottom .local-badge { font-size: 9px; padding: 7px 8px; }
.sidebar-bottom .icon-button { width: 34px; height: 34px; display: grid; place-items: center; }
.sidebar-bottom .icon-button svg { width: 17px; height: 17px; }
.site-header { height: 62px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 17px 17px; background: rgba(255,255,255,.5); }
.site-header > .brand { display: none; }
.hero { padding-top: 44px; }
.panel, .today-card { border-radius: 24px; background-color: rgba(255,255,255,.72); }
.timer-panel { background: linear-gradient(145deg,rgba(255,255,255,.86),rgba(229,241,248,.72)); }
.icon-button { display: inline-grid; place-items: center; }
.button-primary span:first-child { margin: 0; display: inline-flex; }
.button-primary #start-icon { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 1.4; }
.assistant-panel { position: fixed; z-index: 50; inset-inline-end: 24px; bottom: 92px; width: min(470px,calc(100vw - 32px)); max-height: min(690px,calc(100dvh - 116px)); margin: 0; padding: 20px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(17,42,62,.24); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
.assistant-panel[hidden] { display: none !important; }
.assistant-panel .panel-top { flex: 0 0 auto; gap: 12px; }
.assistant-panel .panel-top h2 { font-size: 16px; }
.assistant-close { flex: 0 0 auto; }
.assistant-launcher { position: fixed; z-index: 49; inset-inline-end: 24px; bottom: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 19px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; color: #fff; background: linear-gradient(120deg,#28618d,#4f91b7 58%,#67adc5); box-shadow: 0 12px 32px rgba(37,91,130,.3); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.assistant-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(37,91,130,.36); }
.assistant-launcher:focus-visible, .assistant-close:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.assistant-launcher svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.assistant-mark { width: 25px; height: 25px; color: var(--teal); }
.assistant-disclaimer, .chat-privacy { color: var(--muted); font-size: 11px; line-height: 1.8; }
.assistant-disclaimer { margin: 13px 0; }
.chat-log { min-height: 112px; max-height: min(330px,34dvh); overflow-y: auto; display: flex; flex: 1 1 auto; flex-direction: column; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: rgba(6,13,24,.28); }
.chat-welcome, .chat-message { max-width: min(88%, 720px); margin: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-welcome, .chat-message.assistant { align-self: flex-start; background: rgba(255,255,255,.045); }
.chat-message.user { align-self: flex-end; background: rgba(101,148,223,.16); }
.chat-form { display: flex; align-items: end; gap: 9px; margin-top: 10px; }
.chat-form textarea { flex: 1; min-width: 0; resize: vertical; min-height: 48px; max-height: 150px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,15,27,.44); color: var(--text); font: inherit; font-size: 12px; line-height: 1.7; }
.chat-form .button { display: flex; align-items: center; gap: 7px; }
.chat-form .button svg { width: 16px; height: 16px; }
.chat-form button:disabled { opacity: .65; cursor: wait; }
.chat-privacy { display: block; margin-top: 8px; font-size: 9px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.closing-icon { color: var(--gold); }
.theme-light .sidebar { background: rgba(249,252,254,.86); }
.theme-light .site-header { background: rgba(255,255,255,.52); }
.theme-light .panel, .theme-light .today-card { background-color: rgba(255,255,255,.78); }
.theme-light .chat-log { background: rgba(235,240,248,.6); }
.theme-light .chat-form textarea { background: rgba(255,255,255,.8); }
.theme-light .today-card { background: linear-gradient(135deg,rgba(255,255,255,.92),rgba(226,240,247,.9)); }
.theme-light .timer-panel { background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(232,243,248,.82)); }
.theme-light .button-primary { background: linear-gradient(115deg,#2a608c,#4f91b7 58%,#66a4c6); color: #fff; box-shadow: 0 10px 24px rgba(42,96,140,.2); }
.theme-light .button-quiet { color: #4d6a7f; }
.theme-light .mode-button.selected { border-color: rgba(42,96,140,.32); background: rgba(102,164,198,.13); }
.theme-light .mode-button.selected small { color: #537c96; }
.theme-light .timer-face { border-color: rgba(42,96,140,.2); background: radial-gradient(circle,rgba(102,164,198,.18),rgba(255,255,255,.5) 68%); }
.theme-light .timer-face::before { border-color: rgba(42,96,140,.22); }
.theme-light .progress-track { background: #e4edf2; }
.theme-light .progress-track span { background: linear-gradient(90deg,#66a4c6,#2a608c); }
.theme-light .chart-bar { background: linear-gradient(180deg,#8bc2dc,#346b96); }
.theme-light .chart-bar.today { background: linear-gradient(180deg,#9bd3d9,#4a9bb3); }
.theme-light .sound-option.selected { border-color: rgba(74,155,179,.48); background: rgba(102,164,198,.11); }
.theme-light .closing-note { border-color: rgba(42,96,140,.14); background: linear-gradient(110deg,rgba(222,239,247,.9),rgba(249,252,254,.85)); }
.theme-light .toast { background: #18384f; color: #f4f9fc; }
.theme-light .task-item { background: rgba(231,240,245,.72); }
.theme-light .task-title { color: #28485f; }
.theme-light .task-check:checked { box-shadow: inset 0 0 0 3px #f7fbfd; }
.theme-light .chat-message.user { background: rgba(102,164,198,.15); }
.theme-light .local-badge { background: rgba(255,255,255,.55); }
.brand img { background: rgba(255,255,255,.74); box-shadow: 0 4px 14px rgba(42,96,140,.09); }
.article-brand img { width: 40px; height: 40px; object-fit: contain; padding: 2px; }
.footer-brand img { object-fit: contain; }
.theme-dark .brand img { background: rgba(255,255,255,.92); }
.side-nav a:last-child { display: flex; }
.task-form button { display: grid; place-items: center; }
.task-form button svg, .task-delete svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-delete { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.task-delete:hover { color: var(--danger); background: rgba(255,141,158,.08); }
.focus-mode .sidebar { display: none; }
body.article-page { margin-inline-start: 0; min-height: 100vh; padding: 30px 0; }
.article-wrap { width: min(900px, calc(100% - 32px)); }
.article-brand { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: 14px; font-weight: 700; }
.article-brand img { border-radius: 12px; }
.article-card { padding: clamp(20px, 5vw, 50px); }
.breadcrumbs { display: flex; gap: 10px; margin-bottom: 32px; color: var(--muted); font-size: 12px; }
.breadcrumbs a, .article-card a:not(.button) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-card header { max-width: 720px; }
.article-card h1 { margin: 10px 0 12px; font-size: clamp(30px, 5vw, 46px); line-height: 1.45; }
.article-lead { color: var(--muted); font-size: 16px; line-height: 2; }
.article-card section { margin-top: 30px; }
.article-card h2 { margin: 0 0 8px; font-size: 20px; }
.article-card p, .article-card li { color: var(--muted); font-size: 14px; line-height: 2; }
.article-card li + li { margin-top: 5px; }
.article-card ul, .article-card ol { padding-inline-start: 24px; }
.article-cta { display: inline-flex; align-items: center; margin-top: 18px; }
.article-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 4px; color: var(--muted); font-size: 11px; }
.article-footer a { color: var(--blue); }
@media (max-width: 900px) {
  body { margin-inline-start: 0; padding-bottom: 84px; }
  .sidebar { inset: auto 0 0; width: auto; height: 76px; padding: 7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); border-radius: 20px 20px 0 0; border-bottom: 0; }
  .sidebar > .brand, .sidebar > .side-label, .sidebar-bottom { display: none; }
  .side-nav { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { min-width: 69px; flex: 1 0 69px; min-height: 58px; flex-direction: column; justify-content: center; gap: 4px; padding: 5px 3px; font-size: 9px; }
  .side-nav svg { width: 18px; height: 18px; }
  .site-header > .brand { display: flex; }
  .site-header { border-top: 1px solid var(--line); border-radius: 16px; margin-top: 10px; padding-inline: 10px; }
  .site-header .header-tools .local-badge { display: none; }
  .header-tools::after { content: ""; }
  #theme-button { position: fixed; z-index: 21; top: 23px; inset-inline-end: 22px; }
  .header-tools { padding-inline-end: 48px; }
}
@media (max-width: 560px) {
  .sidebar { height: 72px; }
  .side-nav a { min-width: 62px; flex-basis: 62px; }
  .assistant-panel { inset-inline: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; max-height: min(680px,calc(100dvh - 108px - env(safe-area-inset-bottom))); padding: 16px; }
  .assistant-launcher { inset-inline-end: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); min-height: 50px; }
  .chat-form { align-items: stretch; }
  .chat-form .button { min-width: 86px; justify-content: center; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

@media (max-width: 800px) {
  .wrap { width: min(100% - 28px, 620px); }
  .site-header { height: 68px; }
  nav { gap: 14px; font-size: 11px; }
  .local-badge { display: none; }
  .hero { padding: 36px 1px 22px; }
  .hero p { max-width: 390px; font-size: 12px; }
  .today-card { min-width: 190px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .brand img { width: 38px; height: 38px; }
  .brand small { display: none; }
  nav { gap: 11px; font-size: 10px; }
  nav a:last-child { display: none; }
  .header-tools { gap: 0; }
  .hero { display: block; padding-top: 29px; }
  h1 { margin-top: 11px; font-size: 36px; }
  .hero p { max-width: 100%; font-size: 12px; }
  .today-card { margin-top: 19px; min-width: 0; width: 100%; grid-template-columns: 38px 1fr; padding: 10px 12px; }
  .today-icon { width: 36px; height: 36px; }
  .side-column { grid-template-columns: 1fr; }
  .timer-panel, .goal-panel, .task-panel, .progress-panel, .sounds-panel { padding: 17px; border-radius: 16px; }
  .timer-face { width: 190px; height: 190px; margin-top: 14px; }
  .timer-readout strong { font-size: 46px; }
  .lower-grid { grid-template-columns: 1fr; }
  .sound-grid { grid-template-columns: repeat(4, 1fr); }
  .sound-option { min-height: 84px; }
  .closing-note { align-items: flex-start; padding: 13px; }
  .closing-note .text-button { align-self: center; font-size: 9px; }
  .closing-note small { max-width: 210px; line-height: 1.7; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; padding: 12px 0; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; }
  .focus-mode .timer-panel { padding: 25px 15px; }
  .focus-mode .timer-face { width: 230px; height: 230px; }
}

/* Final palette and type scale based on the supplied SAND logo. */
:root { --muted:#536f82; }
.theme-light { --muted:#536f82; }
.theme-light .today-card { background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(226,240,247,.92)); }
.theme-light .timer-panel { background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(232,243,248,.88)); }
.theme-light .button-primary { background:linear-gradient(115deg,#2a608c,#4f91b7 58%,#66a4c6); color:#fff; box-shadow:0 10px 24px rgba(42,96,140,.2); }
.theme-light .mode-button.selected { border-color:rgba(42,96,140,.32); background:rgba(102,164,198,.13); }
.theme-light .mode-button.selected small { color:#537c96; }
.theme-light .timer-face { border-color:rgba(42,96,140,.2); background:radial-gradient(circle,rgba(102,164,198,.18),rgba(255,255,255,.5) 68%); }
.theme-light .timer-face::before { border-color:rgba(42,96,140,.22); }
.theme-light .progress-track { background:#e4edf2; }
.theme-light .progress-track span { background:linear-gradient(90deg,#66a4c6,#2a608c); }
.theme-light .chart-bar { background:linear-gradient(180deg,#8bc2dc,#346b96); }
.theme-light .chart-bar.today { background:linear-gradient(180deg,#9bd3d9,#4a9bb3); }
.theme-light .sound-option.selected { border-color:rgba(74,155,179,.48); background:rgba(102,164,198,.11); }
.theme-light .closing-note { border-color:rgba(42,96,140,.14); background:linear-gradient(110deg,rgba(222,239,247,.9),rgba(249,252,254,.88)); }
.theme-light .toast { background:#18384f; color:#f4f9fc; }
.theme-light .task-item { background:rgba(231,240,245,.76); }
.theme-light .task-title { color:#28485f; }
.theme-light .task-check:checked { box-shadow:inset 0 0 0 3px #f7fbfd; }
.theme-light .chat-message.user { background:rgba(102,164,198,.15); }
.brand img { background:rgba(255,255,255,.78); box-shadow:0 4px 14px rgba(42,96,140,.09); }
.article-brand img { width:40px; height:40px; object-fit:contain; padding:2px; }
.footer-brand img { object-fit:contain; }
.theme-dark .brand img { background:rgba(255,255,255,.92); }
.theme-dark .button-primary { background:linear-gradient(115deg,#346b96,#4f91b7 58%,#66a4c6); color:#fff; }
.eyebrow { font-size:12px; }
.hero p { font-size:15px; }
.panel h2 { font-size:19px; }
.today-card span:not(.today-icon) { font-size:13px; }
.today-card small { font-size:11px; }
.intent-label, .goal-controls, .sound-note { font-size:12px; }
.mode-button strong { font-size:14px; }
.mode-button small, .timer-readout small, .timer-tip { font-size:11px; }
.quick-stats span, .task-title, .empty-tasks, .chart-day small, .chat-welcome, .chat-message { font-size:12px; }
.sound-option strong { font-size:11px; }
.sound-option small { font-size:10px; }
.volume-row, .audio-note { font-size:11px; }
.focus-mode .sidebar { display:none; }
.custom-duration[hidden] { display:none; }
@media (min-width:901px) {
  .site-header { display:none; }
  .side-column { grid-template-rows:auto auto; align-content:start; }
}
@media (max-width:560px) {
  .sidebar { height:64px; }
  .side-nav a { min-height:50px; }
  .hero { padding-top:18px; padding-bottom:15px; }
  .hero h1 { margin-top:8px; margin-bottom:7px; }
  .hero p { font-size:12px; line-height:1.65; }
  .today-card { margin-top:12px; padding:8px 11px; }
  .timer-panel { padding:14px; }
  .intent-label { margin-top:13px; }
  .mode-row { margin-top:10px; }
  .timer-face { width:132px; height:132px; margin:8px auto 7px; }
  .timer-face::before { inset:9px; }
  .timer-readout strong { font-size:35px; }
  .timer-tip { display:none; }
}
.theme-dark body { background:radial-gradient(ellipse at 80% 0%,rgba(69,125,158,.2),transparent 40%),radial-gradient(ellipse at 10% 55%,rgba(43,96,126,.17),transparent 35%),var(--bg); }
.theme-dark .sidebar { background:rgba(17,32,47,.84); box-shadow:0 25px 70px rgba(0,0,0,.3); }
.theme-dark .site-header { background:rgba(17,32,47,.55); }
.theme-dark .panel, .theme-dark .today-card { background-color:rgba(20,37,54,.8); }
.theme-dark .timer-panel { background:linear-gradient(145deg,rgba(36,63,84,.84),rgba(17,31,47,.88)); }
.theme-dark .chat-log { background:rgba(5,13,22,.34); }
.theme-dark .chat-form textarea, .theme-dark .intent-input, .theme-dark .task-form input, .theme-dark .custom-duration input, .theme-dark .goal-controls input { background:rgba(6,16,27,.5); }
.theme-dark .task-item { background:rgba(7,17,28,.38); }
.theme-dark .task-title { color:#e0edf5; }
.theme-dark .mode-button.selected small { color:#c0d8e5; }
.theme-dark .chart-bar:hover::after { background:#172b3c; }
.theme-dark .chat-message.user { background:rgba(73,132,170,.24); }
.theme-dark .theme-light { color-scheme:dark; }

/* assistant window v2: taller, compact, launcher hides while open */
.assistant-panel { bottom: 20px; inset-inline-end: 20px; width: min(420px,calc(100vw - 32px)); height: min(640px,calc(100dvh - 40px)); max-height: none; padding: 14px; }
.assistant-panel .panel-top { align-items: center; margin-bottom: 10px; }
.assistant-panel .panel-top h2 { margin: 0; font-size: 15px; }
.assistant-panel .icon-button.assistant-close { width: 34px; height: 34px; min-height: 0; }
.assistant-panel .assistant-close svg { width: 16px; height: 16px; }
.assistant-panel .chat-log { flex: 1 1 0; min-height: 0; max-height: none; }
.assistant-panel .chat-form { flex: 0 0 auto; align-items: flex-end; margin-top: 10px; gap: 8px; }
.assistant-panel .chat-form textarea { min-height: 44px; max-height: 120px; resize: none; }
.chat-send-btn { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(120deg,#28618d,#4f91b7 58%,#67adc5); cursor: pointer; }
.chat-send-btn svg { width: 18px; height: 18px; }
.chat-send-btn:disabled { opacity: .65; cursor: wait; }
.chat-send-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.assistant-launcher[aria-expanded="true"] { display: none; }
@media (max-width: 760px) {
  .assistant-panel { inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; height: min(640px,calc(100dvh - 20px - env(safe-area-inset-bottom))); padding: 12px; }
}
