/* Shared tokens follow the explicit choice or the system theme. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#f7f7f5, #111111);
  --panel: light-dark(#ffffff, #262626);
  --row-bg: light-dark(#eeefec, #2c2c2c);
  --text: light-dark(#242623, #f4f4f4);
  --muted: light-dark(#565e57, #b3b3b3);
  --line: light-dark(#dedfd9, #3e3e3e);
  --control-line: light-dark(#747974, #a5a5a5);
  --accent: light-dark(#2f624f, #aad0be);
  --accent-soft: light-dark(#e5efe9, #22362e);
  --action: light-dark(var(--accent), #c3dbcf);
  --action-hover: light-dark(#254c3e, #d4e7dc);
  --action-text: light-dark(#fff, #17241e);
  --calendar-ink: light-dark(#365b86, #b2cce4);
  --calendar-wash: light-dark(#e8eef7, #263747);
  --deadline-ink: light-dark(#775317, #e2bd82);
  --deadline-wash: light-dark(#f5ebd8, #392e20);
  --mono-ink: light-dark(#424242, #dedede);
  --mono-wash: light-dark(#e8e8e8, #2b2b2b);
  --danger: light-dark(#b42e49, #f4aeb2);
  --danger-soft: light-dark(#fbeef1, #3e2527);
  --shadow: 0 16px 56px light-dark(#00000014, #0005), 0 2px 8px light-dark(#00000008, #0003);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
[data-platform="desktop"] [data-theme-platform="mobile"],
[data-platform="mobile"] [data-theme-platform="desktop"],
[data-home-shortcuts-hidden] [data-home-shortcuts-expanded] { display: none; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; border: 1px solid transparent; border-radius: 14px;
  padding: 6px 14px; background: transparent; color: inherit;
  font-weight: 600; font-size: 1rem; line-height: 1.5; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input[type=checkbox]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
:is(input:not([type=checkbox]), textarea, select):focus {
  outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
@media (forced-colors: active) {
  :is(input:not([type=checkbox]), textarea, select):focus { outline: 2px solid Highlight; outline-offset: -2px; }
}
input:not([type=checkbox]), textarea {
  width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line);
  border-radius: 14px; padding: 6px 12px; line-height: 1.5; background: var(--panel); color: var(--text);
  box-shadow: 0 1px 2px #00000004;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[readonly] { font-size: 1rem; text-overflow: ellipsis; }
input[type=checkbox] { accent-color: var(--accent); width: 22px; height: 22px; margin: 11px; flex-shrink: 0; cursor: pointer; }
label { display: block; margin: 8px 0 3px; font-size: .875rem; font-weight: 650; }
h1 { margin: 0; font-size: 2.125rem; font-weight: 730; line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; }
:is(h1, h2, h3, h4, h5, h6):focus { outline: none; }
h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.03em; overflow-wrap: anywhere; }
p { line-height: 1.5; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .875rem; line-height: 1.5; }
.ui-icon { display: block; flex-shrink: 0; width: 22px; height: 22px; pointer-events: none; }
.plant-name { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; font: inherit; line-height: inherit; text-align: left; overflow-wrap: anywhere; }
.plant-methods { display: grid; gap: 10px; margin: 18px 0 8px; }
.plant-methods > button { width: 100%; padding: 14px 12px; gap: 12px; text-align: left; }
.plant-methods > button > span { flex: 1; min-width: 0; }
.plant-methods small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; line-height: 1.5; margin-top: 4px; }
.plant-name:focus-visible { outline-offset: 2px; }
.plant-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; }
.plant-row-meta .task-deadline { margin: 3px 0 0; }
.plant-row-meta .plant-location { color: var(--muted); margin: 3px 0 0; }
.task-row .task-schedule { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); margin: 3px 0 0; font-weight: 500; }
.task-schedule .ui-icon { width: 14px; height: 14px; flex-shrink: 0; }
.plant-group-title { font-size: .75rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 8px 8px; }
.list-types label { display: flex; align-items: center; min-height: 44px; }
.list-types input[type=radio] { accent-color: var(--accent); width: 20px; height: 20px; min-height: 20px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 16px; margin: 10px; flex-shrink: 0; }
.app-shell { max-width: 704px; margin: auto; padding: max(28px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) calc(120px + env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left)); }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 730; letter-spacing: -.025em; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.wordmark img { width: 30px; height: 30px; }
.brand-name { white-space: nowrap; }
.brand-don { color: light-dark(#246748, #83c9a4); }
main { position: relative; }
.page-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; min-height: 56px; }
.menu-area { position: relative; margin-bottom: 12px; }
.menu-area .page-header { margin-bottom: 0; }
.page-header h1, .page-header > div:first-child { flex: 1; min-width: 0; }
.page-intro { margin: 8px 0 12px; color: var(--muted); font-size: 1rem; }
.overview-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 8px 0 12px; }
.overview-summary .page-intro { flex: 1 1 160px; margin: 0; font-size: .875rem; }
.overview-summary .reward-balance { margin: 0 0 0 auto; }
.eyebrow { color: var(--accent); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 10px; border-radius: 13px; }
.header-action, .back { background: transparent; border: 1px solid transparent; }
.primary { background: var(--action); color: var(--action-text); font-weight: 650; box-shadow: 0 3px 8px #00000015; }
.secondary { border-color: var(--line); background: var(--panel); }
.danger { color: var(--danger); }
.danger.primary { background: #b42e49; color: #fff; }
.menu-backdrop, .composer-backdrop { position: fixed; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; cursor: default; z-index: 7; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 8; background: var(--panel); box-shadow: 0 8px 28px #0005; border: 1px solid var(--line); border-radius: 10px; padding: 5px; width: min(300px, 100%); animation: appear .12s ease-out; }
.menu button, .menu a { display: flex; justify-content: flex-start; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; width: 100%; border-radius: 6px; min-height: 48px; font-size: .875rem; font-weight: 550; }
.menu .ui-icon { width: 20px; height: 20px; color: var(--muted); }
.menu .danger .ui-icon { color: inherit; }
.menu form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.list-rows { margin-top: 8px; }
.list-entry { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); min-height: 64px; }
.list-link { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 10px; min-width: 0; padding: 10px 0; }
.list-link > div { min-width: 0; }
.list-name { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; }
.list-link > .count-badge { flex-shrink: 0; }
.list-link > .ui-icon, .home-shortcuts a > .ui-icon { color: var(--muted); width: 18px; height: 18px; }
.list-link { position:relative; border-radius:6px; }
.shared { display: inline-flex; vertical-align: middle; color: var(--accent); margin-left: 8px; }
.shared .ui-icon { width: 17px; height: 17px; }
.fab { position: fixed; bottom: calc(28px + env(safe-area-inset-bottom)); right: max(24px, calc((100vw - 640px) / 2)); width: 60px; height: 60px; padding: 16px; border-radius: 22px; background: var(--action); color: var(--action-text); box-shadow: 0 8px 24px #0003, 0 2px 4px #0002; z-index: 3; }
.fab .ui-icon { width: 28px; height: 28px; }
.voice-entry-anchor { position: fixed; bottom: calc(28px + env(safe-area-inset-bottom)); right: max(24px, calc((100vw - 640px) / 2)); z-index: 3; }
.voice-entry-anchor .fab { position: relative; bottom: auto; right: auto; display: grid; place-items: center; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; }
.voice-entry .voice-entry-anchor .fab[data-voice-plus] {
    background-image: conic-gradient(from 0deg, color-mix(in srgb, var(--action) 77%, black) var(--voice-hold-angle, 0deg), transparent 0deg);
}
.voice-entry .voice-entry-anchor .fab[aria-expanded=true] {
    background-image: linear-gradient(color-mix(in srgb, var(--action) 77%, black), color-mix(in srgb, var(--action) 77%, black));
}
.voice-entry-anchor .fab[data-voice-plus]::after {
    content: "";
    position: absolute;
    inset: -4px;
    padding: 4px;
    border-radius: 26px;
    pointer-events: none;
    background: conic-gradient(from 0deg, light-dark(#154633, #e2fff0) var(--voice-hold-angle, 0deg), transparent 0deg);
    mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0);
    mask-composite: exclude;
}
.voice-entry-anchor .fab[aria-expanded=true]::after { --voice-hold-angle: 360deg; }
.voice-entry-menu { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: calc(100vw - 48px); padding: 4px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); }
.voice-entry-menu button { display: flex; align-items: center; justify-content: flex-start; width: 100%; gap: 10px; min-height: 44px; padding: 6px 10px; text-align: start; }
.voice-entry-menu button + button { border-top: 1px solid var(--line); }
.voice-entry-menu button:is(:hover, :focus-visible) { background: var(--accent-soft); }
.voice-dialog { display: flex; flex-direction: column; gap: 12px; }
.voice-dialog .task-editor-header { display: flex; justify-content: space-between; align-items: center; padding-inline-end: 50px; }
.voice-dialog-body { min-height: 0; overflow-y: auto; }
.voice-suggestions { display: grid; gap: 6px; }
.voice-entry-row > input[type=text] { flex: 1; min-width: 0; }
.voice-entry-row input[type=text] { min-height: 44px; padding: 4px 6px; }
.voice-quantity { flex: 0 1 96px; display: flex; align-items: center; gap: 2px; min-width: 56px; }
.voice-quantity input { width: 100%; min-width: 0; }
.voice-recording-state { display: grid; place-items: center; gap: 12px; padding-block: 18px; }
.voice-clock { font-variant-numeric: tabular-nums; font-size: 1.2rem; }
.voice-waveform { display: flex; align-items: center; gap: 5px; height: 32px; }
.voice-waveform i { background: var(--accent); width: 4px; height: 15px; border-radius: 10px; }
.voice-waveform i:nth-child(odd) { height: 25px; opacity: .65; }
.voice-waveform i:is(:first-child, :last-child) { height: 6px; }
.voice-dialog .task-editor-footer .primary { width: 100%; }
.empty { text-align: center; padding: 24px 16px 32px; max-width: 440px; margin: auto; }
.empty h2 { margin: 12px 0 8px; }
.empty p { color: var(--muted); font-size: .9375rem; margin: 8px 0 24px; }
.empty-mark { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); border-radius: 18px; margin: 0 auto 16px; transform: rotate(-5deg); }
.empty-mark .ui-icon { width: 28px; height: 28px; transform: rotate(5deg); stroke-width: 1.4; }
.state-page { padding-top: 16px; }
.state-page h1 { font-size: 2rem; }
.state-page .button, .state-page > button { width: 100%; margin-top: 4px; }
.state-page > a:not(.button) { display: block; padding: 16px; color: var(--accent); font-size: .875rem; }
.task-counter { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--muted); font-size: .875rem; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 27px; border-radius: 9px; padding: 2px 8px; background: var(--row-bg); color: var(--accent); font-weight: 700; }
.task-rows, .completed-rows { display: grid; gap: 2px; }
.task-row { display: flex; align-items: center; gap: 4px; min-height: 56px; padding-inline: 4px; border: 0; border-radius: 5px; background: var(--row-bg); }
.task-row .task-text { font-weight:500; line-height:1.35; }
.task-row .pencil .ui-icon, .task-row .defer .ui-icon { width:19px; height:19px; }
.task-row.completed { background:color-mix(in srgb, var(--row-bg) 70%, var(--bg)); }
.task-row .completion-meta { font-size:.75rem; line-height:1.4; }
.completion-effect { position: fixed; z-index: 20; width: 36px; height: 36px; transform: translate(-50%, -50%); pointer-events: none; }
.completion-effect.assigned { width: 54px; height: 54px; }
.completion-check { display: grid; place-items: center; width: 100%; height: 100%; background: var(--accent); color: var(--panel); border-radius: 50%; font-size: 24px; font-weight: 800; box-shadow: 0 0 0 4px var(--accent-soft); }
.circle.completion-acknowledged { position:relative; z-index:21; opacity:1; }
body:has([role=dialog],.menu) .circle.completion-acknowledged { z-index:auto; }
.circle.completion-acknowledged::after { content:'✓'; position:absolute; inset:0; display:grid; place-items:center; border-radius:50%; background:var(--accent); color:var(--panel); font-size:22px; font-weight:800; line-height:1; pointer-events:none; animation:source-check-in .18s ease-out; }
@keyframes source-check-in { from { transform:scale(.65); } to { transform:scale(1); } }
@media(prefers-reduced-motion:reduce) { .circle.completion-acknowledged::after { animation:none; } }
.completion-effect.assigned .completion-check { font-size: 34px; box-shadow: 0 0 0 8px var(--accent-soft); }
.completion-particle { position: absolute; left: 50%; top: 50%; width: 5px; height: 8px; border-radius: 2px; pointer-events: none; }
.completion-effect.bonus { width: 100%; height: 100%; transform: none; overflow: hidden; }
.completion-burst { position: absolute; width: 70px; height: 70px; transform: translate(-50%,-50%); }
.completion-illustration { position:absolute; left:50%; top:50%; width:min(340px,calc(100vw - 24px)); height:auto; transform:translate(-50%,-50%); pointer-events:none; }
.completion-burst.illustrated .completion-check,.completion-burst.illustrated .completion-points { visibility:hidden; }
.completion-burst.illustrated .completion-cheer { bottom:calc(100% + 136px); }
.completion-effect.bonus .completion-check { position: relative; z-index: 1; font-size: 44px; color: white; background: linear-gradient(140deg,#936026,#34705a,#385d80); box-shadow: 0 0 0 7px #fbbf2455, 0 6px 26px #5a947866; }
.completion-cheer { position: absolute; bottom: calc(100% + 18px); left: 50%; transform: translateX(-50%); color: var(--text); background: var(--panel); border: 2px solid #ffb703; border-radius: 12px; padding: 2px 10px; font-size: 14px; letter-spacing: .08em; white-space: nowrap; }
.bonus .completion-points { z-index: 2; font-size: 20px; padding: 6px 14px; border: 2px solid #ffe39a; box-shadow: 0 4px 22px #ffb70355; }
.completion-ring { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; border: 3px solid #ffb703; border-radius: 50%; }
.completion-ring + .completion-ring { border-color: #91bfb0; }
.bonus .completion-particle { width: 8px; height: 13px; }
.bonus .completion-particle[data-shape=dot] { width: 9px; height: 9px; border-radius: 50%; }
.bonus .completion-particle[data-shape=star] { width: 14px; height: 14px; border-radius: 0; clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%); }
.completion-effect.bonus[data-celebration]:not([data-celebration="0"]) .completion-check { background:linear-gradient(140deg,var(--celebration-from),var(--celebration-to)); text-shadow:0 1px 5px #0008; box-shadow:0 0 0 7px color-mix(in srgb,var(--celebration-accent) 45%,transparent),0 0 44px var(--celebration-accent); }
.bonus[data-celebration]:not([data-celebration="0"]) .completion-cheer { z-index:2; border-color:var(--celebration-accent); box-shadow:0 0 22px color-mix(in srgb,var(--celebration-accent) 50%,transparent); }
.bonus[data-celebration]:not([data-celebration="0"]) .completion-ring { border-color:var(--celebration-accent); box-shadow:0 0 16px color-mix(in srgb,var(--celebration-accent) 40%,transparent); }
.completion-halo { position:absolute; z-index:-1; left:50%; top:50%; width:260px; height:260px; border-radius:50%; pointer-events:none; background:radial-gradient(circle,var(--celebration-from),color-mix(in srgb,var(--celebration-to) 65%,transparent) 35%,transparent 70%); }
.bonus .completion-particle[data-shape=heart] { width:18px; height:18px; border-radius:0; clip-path:polygon(50% 93%,8% 48%,0 25%,14% 6%,35% 6%,50% 23%,65% 6%,86% 6%,100% 25%,92% 48%); }
.bonus .completion-particle[data-shape=diamond] { width:15px; height:23px; border-radius:0; clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%); }
.bonus .completion-particle[data-shape=ray] { width:5px; height:30px; border-radius:50%; box-shadow:0 0 10px var(--celebration-accent); }
.bonus[data-celebration="2"] .completion-particle[data-shape=star] { width:21px; height:21px; }
.bonus[data-celebration="5"] .completion-particle[data-shape=dot] { box-shadow:0 0 12px var(--celebration-accent); }
.completion-rocket,.completion-balloon,.completion-bubble,.completion-streamer,.completion-firework-glow { position:absolute; left:50%; top:50%; pointer-events:none; }
.completion-rocket { width:12px; height:32px; border-radius:55% 55% 15% 15%; background:linear-gradient(90deg,#fff,var(--scene-color) 50%,#fff8); box-shadow:0 0 10px var(--scene-color); }
.completion-rocket::before { content:""; position:absolute; bottom:-2px; left:-5px; width:22px; height:15px; background:var(--scene-color); clip-path:polygon(50% 0,100% 100%,50% 75%,0 100%); }
.completion-rocket::after { content:""; position:absolute; left:50%; top:100%; width:5px; height:70px; transform:translateX(-50%); border-radius:50%; background:linear-gradient(#fff5c6,#ffad33 25%,#ff5e1966 55%,transparent); filter:drop-shadow(0 0 5px #ffb703); }
.completion-firework-glow { width:180px; height:180px; border-radius:50%; background:radial-gradient(circle,var(--scene-color),transparent 65%); }
.completion-balloon { border-radius:50% 50% 47% 47%; background:radial-gradient(ellipse at 30% 25%,#fff9,transparent 32%),var(--scene-color); box-shadow:inset -5px -6px 0 #0002,0 3px 9px #0002; }
.completion-balloon::before { content:""; position:absolute; left:calc(50% - 3px); top:calc(100% - 1px); width:6px; height:6px; background:var(--scene-color); clip-path:polygon(50% 0,100% 100%,0 100%); }
.completion-balloon::after { content:""; position:absolute; left:50%; top:calc(100% + 4px); width:12px; height:62px; border-left:1.5px solid color-mix(in srgb,var(--text) 55%,transparent); border-radius:50%; }
.completion-bubble { border:2px solid color-mix(in srgb,var(--scene-color) 70%,white); border-radius:50%; background:linear-gradient(135deg,#fdbbff33,#a2f7ff18,transparent); box-shadow:inset -4px -5px 7px #fff5,inset 2px 3px 5px color-mix(in srgb,var(--scene-color) 30%,transparent),0 0 10px color-mix(in srgb,var(--scene-color) 25%,transparent); }
.completion-bubble::before { content:""; position:absolute; left:20%; top:15%; width:28%; height:12%; background:#fffd; border-radius:50%; transform:rotate(-35deg); }
.completion-bubble::after { content:""; position:absolute; right:18%; bottom:17%; width:9%; height:9%; background:#fff9; border-radius:50%; }
.completion-streamer { width:30px; height:140px; overflow:visible; filter:drop-shadow(0 1px 1px #0003); }
.bonus .completion-particle[data-shape=spark] { width:3px; height:15px; border-radius:50%; box-shadow:0 0 6px currentColor; }
.bonus:is([data-celebration="3"],[data-celebration="5"]) .completion-particle { width:4px; height:4px; }
.bonus[data-celebration="6"] .completion-particle[data-shape=confetti] { width:5px; height:20px; }
.medal-celebration { position:fixed; inset:0; z-index:2000; display:grid; place-items:center; overflow:hidden; color:var(--text); background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,#ffd15a 28%,var(--bg)),var(--bg) 72%); }
body:has(.medal-celebration) { overflow:hidden; }
.medal-scene { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); max-width:100%; pointer-events:none; }
.medal-eyebrow { color:var(--text); font-size:1rem; font-weight:800; letter-spacing:.18em; margin:0; }
.medal-scene .medal-prize { display:block; width:min(82vw,49dvh,max(96px,calc(100dvh - 19rem - env(safe-area-inset-top) - env(safe-area-inset-bottom))),520px); height:auto; aspect-ratio:1; filter:drop-shadow(0 0 36px #ffcd5477); }
.medal-scene .medal-title { font-size:clamp(1.6rem,5vw,2.7rem); line-height:1.15; margin:0; max-width:100%; overflow-wrap:anywhere; }
.medal-description { max-width:32ch; margin:0; font-size:1rem; }
.medal-hint { margin:10px 0 0; font-size:.875rem; color:var(--muted); }
.medal-rays { position:absolute; width:150vmax; height:150vmax; background:repeating-conic-gradient(from 0deg,#ffca3a18 0deg 10deg,transparent 10deg 24deg); mask-image:radial-gradient(circle,transparent 5%,black 24%,transparent 68%); animation:medal-rays-enter 3s ease-out both; pointer-events:none; }
.medal-dismiss { position:absolute; inset:0; z-index:3; width:100%; height:100%; border:0; border-radius:0; margin:0; padding:0; background:transparent; cursor:var(--cursor-interaction,pointer); }
.medal-dismiss:hover { background:transparent; }
.medal-spark { position:absolute; z-index:2; left:50%; top:43%; color:#e4ad24; font-size:28px; pointer-events:none; }
@keyframes medal-rays-enter { from { transform:rotate(-45deg) scale(.5);opacity:0; } 25% {opacity:1;} to {transform:rotate(20deg) scale(1);opacity:1;} }
@media(prefers-reduced-motion:reduce) { .medal-rays { animation:none; } }
@media(max-height:550px) { .medal-scene { gap:6px;padding:12px; } .medal-scene .medal-prize { width:min(40vw,42dvh); } .medal-hint {margin:0;} }
.art-sprite { display: inline-block; flex-shrink: 0; width: 48px; height: 48px; background-repeat: no-repeat; vertical-align: middle; }
.art-sprite.icons { background-image: url('/assets/list-icons.png'); background-size: 600% 600%; }
.art-sprite.stickers { background-image: url('/assets/stickers.png'); background-size: 300% 200%; }
.art-sprite.medals { background-image: url('/assets/medals.png'); background-size: 400% 300%; }
.category-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; color: var(--icon-ink); background: var(--icon-wash); }
.category-icon svg { width: 22px; height: 22px; }
.category-icon.sage { --icon-ink: var(--accent); --icon-wash: var(--accent-soft); }
.category-icon.blue { --icon-ink: var(--calendar-ink); --icon-wash: var(--calendar-wash); }
.category-icon.teal { --icon-ink: light-dark(#236b64, #9bd9c8); --icon-wash: light-dark(#e5f1ed, #25413e); }
.category-icon.green { --icon-ink: light-dark(#4b673e, #b7cf9e); --icon-wash: light-dark(#edf0e6, #343e2f); }
.category-icon.ochre { --icon-ink: light-dark(#805625, #e6c290); --icon-wash: light-dark(#f5eddf, #47382d); }
.reward-balance { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--text); font-weight: 700; margin: 8px 0 16px; }
.reward-balance :is(.art-sprite,.category-icon) { width: 28px; height: 28px; }
.reward-balance .category-icon svg { width: 18px; height: 18px; }
.home-shortcuts { display: grid; gap: 0; }
.home-shortcuts-trigger { display: none; }
[data-home-shortcuts-hidden] .home-shortcuts-trigger { display:flex; align-items:center; gap:10px; width:100%; min-height:48px; padding-inline:12px; margin:14px 0 4px; border-color:var(--line); background:var(--panel); }
.home-shortcuts-trigger .ui-icon { width:20px; height:20px; color:var(--accent); }
.home-preference-panel { padding:20px; }
.home-preference-panel .home-shortcuts a:last-child { border-bottom:0; }
.home-preference-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; border-bottom:1px solid var(--line); }
.home-preference-row label { margin:0; }
.home-preference-row select { width:auto; min-width:125px; }
.home-preference-panel .task-editor-footer button { width:100%; margin:0; }
.home-shortcuts a { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); text-decoration: none; background: transparent; }
.home-shortcuts a > span:not(.category-icon):not(.count-badge) { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 650; font-size: 1.0625rem; letter-spacing: -.015em; }
.home-shortcuts small { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; }
.home-shortcuts a[href="/calendar"] .count-badge { color: var(--calendar-ink); background: var(--calendar-wash); }
.home-shortcuts a[href="/my-tasks"] .count-badge, .task-counter .count-badge { color: var(--accent); background: var(--accent-soft); }
.list-section-title { margin: 16px 0 4px; padding-top: 0; font-size: 1.125rem; }
.bonus-kind { color: var(--accent); background: var(--accent-soft); }
.list-functions { border: 0; padding: 0; margin: 12px 0 6px; }
.list-functions legend { font-size: .875rem; font-weight: 650; margin-bottom: 4px; }
.list-functions label { display: flex; align-items: center; min-height: 44px; margin: 0; }
.list-functions { min-width:0; }
.dialog .list-types { display:flex; flex-wrap:wrap; gap:6px; }
.dialog .list-types label { flex:1 1 5.25rem; min-width:0; flex-direction:column; justify-content:center; gap:6px; min-height:76px; padding:8px 4px; border:1px solid var(--line); border-radius:8px; text-align:center; font-size:.75rem; overflow-wrap:anywhere; }
.dialog .list-types label input { width:18px; height:18px; margin:0; flex-shrink:0; }
.dialog .list-types label:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); }
.dialog .list-functions:not(.list-types) { display:flex; flex-wrap:wrap; gap:8px; }
.dialog .list-functions:not(.list-types)>label { flex:1 1 7rem; min-width:0; border:1px solid var(--line); border-radius:8px; padding:2px 8px; font-size:.875rem; }
.dialog .list-functions:not(.list-types)>label input { margin-inline:0 8px; flex-shrink:0; }
.dialog:has(.settings-title) .list-functions legend { color: var(--calendar-ink); }
.dialog:has(.settings-title) .list-functions label { border-radius: 8px; }
.dialog:has(.settings-title) .list-functions label:has(input:checked) { background: var(--accent-soft); }
.list-icon-choice { width: 64px !important; height: 64px; padding: 8px; margin: 0 !important; }
.settings-title { display: flex; align-items: center; gap: 8px; padding-right: 30px; }
.settings-title h2 { padding: 0; }
.app-tabs.icon-categories { display: flex; gap: 4px; overflow: auto; margin: 12px 0; }
.dialog .icon-categories > button { width: auto; min-width: 44px; flex-shrink: 0; }
.icon-grid button[aria-pressed=true] { background: var(--accent-soft); outline: 2px solid var(--accent); outline-offset: -2px; }
.icon-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px; }
.dialog .icon-grid button { width: 100%; aspect-ratio: 1; min-height: 44px; padding: 0; margin: 0; display: grid; place-items: center; border-color: var(--line); border-radius: 8px; }
.icon-grid .category-icon { max-width: 100%; }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,8rem),1fr)); gap: 10px; margin: 12px 0 24px; }
.reward-card { padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; text-align: center; min-width: 0; }
.reward-card .art-sprite { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.reward-card .art-sprite.medals { max-width: 88px; margin-inline: auto; }
.reward-card :is(.sticker-art,.art-sprite.stickers) { max-width: 120px; margin-inline: auto; }
.sticker-art { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.sticker-tier { margin: 20px 0; --sticker-edge: var(--line); }
.sticker-tier-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticker-tier-heading h2 { margin: 0; font-size: 1.125rem; }
.sticker-tier-heading > span { flex-shrink: 0; color: var(--muted); font-size: .875rem; font-weight: 650; }
.sticker-shop-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.sticker-shop-grid .sticker-card { padding: 8px; border-radius: 16px; }
.sticker-shop-grid .sticker-card h2 { font-size: .875rem; min-height: 2.6em; line-height: 1.3; }
.sticker-shop-grid .sticker-card p { font-size: .8125rem; }
.sticker-shop-grid .sticker-card button { padding: 6px; min-height: 44px; font-size: .875rem; }
@media(max-width:360px) { .sticker-shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.sticker-card { border-color: var(--sticker-edge, var(--line)); }
.sticker-level-50 { --sticker-edge: #6b946b; }
.sticker-level-100 { --sticker-edge: #5b9bb2; }
.sticker-level-250 { --sticker-edge: #6686af; }
.sticker-level-500 { --sticker-edge: #b68b28; }
.sticker-card.sticker-level-250 { background: linear-gradient(145deg,var(--accent-soft),var(--panel) 70%); }
.sticker-card.sticker-level-500 { background: linear-gradient(155deg,light-dark(#fff0c6, #463415),var(--panel) 75%); box-shadow: inset 0 0 0 1px #dcb44844, 0 4px 18px #b8861212; }
.sticker-card.sticker-level-500 :is(.sticker-art,.art-sprite) { filter: drop-shadow(0 0 7px #e4b63c55); }
.sticker-preview { width: 160px; max-width: 100%; margin: auto; }
.sticker-preview .art-sprite { width: 160px; height: 160px; }
.reward-card :is(h2, h3) { font-size: .9375rem; margin: 6px 0; overflow-wrap: anywhere; }
.reward-card p { color: var(--muted); font-size: .8125rem; line-height: 1.4; margin: 6px 0; overflow-wrap: anywhere; }
.reward-card button { width: 100%; }
.reward-card.locked .art-sprite { filter: grayscale(1); opacity: .45; }
.reward-card progress { width: 100%; }
.reward-card small { display: block; color: var(--muted); margin-top: 6px; }
.medal-earned { display: inline-flex; gap: 4px; align-items: center; color: var(--accent); font-size: .8125rem; }
.medal-earned .ui-icon { width: 16px; height: 16px; }
.collection-tabs { margin: 12px 0; }
.medal-section-title { font-size: 1.125rem; margin: 12px 0 0; }
.reward-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.reward-progress p { color: var(--muted); font-size: .8125rem; margin: 2px 0 4px; }
.reward-progress progress { display: block; width: 100%; }
.reward-progress > .art-sprite { width: 32px; height: 32px; }
.reward-progress .grow { flex-basis: 140px; }
progress { accent-color: var(--accent); height: 10px; }
.recipe-link-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.dialog .recipe-link-entry > button { width: auto; margin: 0; }
.item-editor .recipe-paste-status:empty { margin: 0; }
.recipe-analysis { display: grid; justify-items: center; gap: 7px; margin-top: 12px; padding: 20px 14px 16px; border-radius: 12px; background: var(--row-bg); text-align: center; }
.recipe-analysis > span:not(.recipe-analysis-icon) { color: var(--muted); font-size: .875rem; }
.recipe-analysis-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.recipe-analysis-track { width: min(180px, 100%); height: 4px; border-radius: 4px; margin-top: 8px; overflow: hidden; background: var(--line); }
.recipe-analysis-track::before { display: block; content: ""; width: 42%; height: 100%; border-radius: inherit; background: var(--accent); animation: recipe-scan 1.2s ease-in-out infinite alternate; }
@keyframes recipe-scan { to { transform: translateX(138%); } }
.recipe-preview-title { margin: 8px 0 4px; color: var(--text) !important; font-size:1.0625rem !important; line-height:1.35; font-weight: 650; overflow-wrap: anywhere; }
.recipe-source { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); overflow-wrap: anywhere; }
.recipe-servings { display: flex; align-items: center; gap: 6px; margin: 16px 0; padding: 8px; border:1px solid var(--line); border-radius: 9px; background: transparent; }
.recipe-servings small { display: block; color: var(--muted); }
.recipe-servings button { width: 44px; flex: 0 0 44px; padding: 0; font-size: 1.3rem; background: var(--accent-soft); color: var(--accent); border-radius: 8px; }
.recipe-servings output { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric:tabular-nums; }
.recipe-selection-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 6px; }
.recipe-selection-heading span { font-size: .875rem; color: var(--muted); }
.recipe-ingredients { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 4px; }
.recipe-ingredient { display: flex; align-items: center; min-height: 52px; padding: 4px 10px; gap: 8px; border-radius: 5px; background: var(--row-bg); overflow-wrap: anywhere; }
.recipe-ingredient input[type=checkbox] { margin: 0; }
.recipe-ingredient span { font-size:.9375rem; font-weight:500; }
.recipe-ingredient small { margin-left: auto; color: var(--muted); text-align: right; font-variant-numeric:tabular-nums; }
.recipe-actions { position: sticky; bottom: 0; display: grid; gap: 4px; margin-top: 16px; padding-block:12px 0; border-top:1px solid var(--line); background: var(--panel); }
.recipe-links { margin: 10px 0; }
.recipe-section-toggle { width: 100%; justify-content: flex-start; padding-inline: 4px; }
.recipe-section-toggle .ui-icon:last-child { margin-left: auto; }
.recipe-section-toggle[aria-expanded=true] .ui-icon:last-child { transform: rotate(90deg); }
.recipe-link-row { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; border-radius: 4px; background: var(--row-bg); }
.recipe-link-row > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 6px 0; min-height: 44px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.recipe-link-row small { display: block; font-size: .8125rem; color: var(--muted); }
.recipe-link-row > a > span:last-child { color: var(--accent); }
.recipe-book-rows { margin-top: 10px; }
.recipe-book-row { padding-left: 10px; }
.recipe-book-row > a { padding-right: 4px; }
.recipe-book-row > button { flex-shrink: 0; }
.recipe-link-row.selected { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.recipe-link-selection { display: flex; align-items: center; flex: 1; gap: 4px; min-width: 0; min-height: 44px; margin: 0; padding-right: 10px; overflow-wrap: anywhere; cursor: pointer; }
.recipe-link-selection > span:last-child { min-width: 0; padding-block: 6px; }
.streak-count { color: var(--muted); font-size: .8125rem; }
.task-points { display: inline-flex; flex-shrink: 0; align-self: center; align-items: center; justify-content: flex-end; gap: 2px; color: var(--deadline-ink); }
.task-points .ui-icon { width: 18px; height: 18px; }
.task-points-2, .task-points-3 { display: block; position: relative; width: 26px; height: 26px; }
.task-points-3 { width: 30px; height: 28px; }
.task-points-2 .ui-icon, .task-points-3 .ui-icon { position: absolute; width: 16px; height: 16px; }
.task-points-2 .ui-icon:nth-child(1) { left: 0; top: 10px; }
.task-points-2 .ui-icon:nth-child(2) { left: 10px; top: 0; }
.task-points-3 .ui-icon:nth-child(1) { left: 7px; top: 0; }
.task-points-3 .ui-icon:nth-child(2) { left: 0; top: 12px; }
.task-points-3 .ui-icon:nth-child(3) { left: 14px; top: 12px; }
.source-list { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; color: var(--muted); font-size: .8125rem; padding: 4px; }
.collected-group h2 { margin: 0; }
.collected-group h2 .source-list { font-size: .875rem; font-weight: 650; letter-spacing: normal; }
.collected-group + .collected-group { margin-top: 8px; }
.completion-points { position: absolute; top: 115%; left: 50%; transform: translateX(-50%); background: #fbbf24; color: #342400; padding: 5px 12px; border-radius: 12px; white-space: nowrap; font-size: 16px; box-shadow: var(--shadow); }
.timer-panel { width: 100%; max-width: 440px; margin: 12px auto; text-align: center; }
.timer-panel > button, .timer-panel > a.button { width: 100%; margin-top: 4px; }
.timer-panel .deadline-check { justify-content: center; text-align: left; }
.timer-panel > p, .timer-panel .deadline-check { margin-block: 8px; }
.timer-dial, .timer-countdown { width: min(100%,280px); height: auto; overflow: visible; margin: 4px 0; }
.timer-dial { touch-action: none; cursor: grab; }
.timer-dial:focus-visible { outline: 2px solid var(--accent); border-radius: 50%; outline-offset: -2px; }
.timer-track, .timer-progress { fill: none; stroke-width: 10; stroke: var(--line); }
.timer-progress { stroke: var(--accent); stroke-linecap: round; }
.timer-countdown .timer-progress { transition: stroke-dashoffset .5s linear; }
.dial-number { fill: var(--text); font-size: 56px; font-weight: 750; }
.countdown-number { fill: var(--text); font-size: 43px; font-weight: 750; font-variant-numeric: tabular-nums; }
.dial-caption, .dial-mark { fill: var(--muted); font-size: 11px; }
.timer-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.timer-finished .art-sprite { width: 88px; height: 88px; }
.timer-earned { display: block; color: var(--accent); font-size: 1.75rem; margin: 12px 0; }
@media(max-height:740px) { .timer-dial, .timer-countdown { width: min(100%,240px); } }
@media(min-width:900px) { .reward-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,10rem),1fr)); } .sticker-shop-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:380px) { .icon-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } .collection-tabs button { font-size: .875rem; } }
.circle { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; flex-shrink: 0; }
.circle::before { content: ""; position: absolute; inset: 9px; border: 1.5px solid var(--control-line); border-radius: 50%; }
.circle[aria-pressed=true]::before { border-color: var(--accent); background: var(--accent-soft); }
.circle .ui-icon { position: relative; width: 17px; height: 17px; color: var(--accent); }
.assignee-circle { color: var(--assignee-color); }
.circle.assignee-circle::before { border-color: currentColor; }
.assignee-initial { position: relative; font-size: 12px; font-weight: 750; line-height: 1; user-select: none; }
.assignee-color-0 { --assignee-color: light-dark(#545454, #b8b8b8); }
.assignee-color-1 { --assignee-color: light-dark(#116b61, #68c8b9); }
.assignee-color-2 { --assignee-color: light-dark(#2456a6, #87b5ff); }
.assignee-color-3 { --assignee-color: light-dark(#995000, #efab72); }
.assignee-color-4 { --assignee-color: light-dark(#a53d38, #f29b91); }
.assignee-color-5 { --assignee-color: light-dark(#616509, #c5c96a); }
.task-content { flex: 1; min-width: 0; padding: 8px 0; }
.task-text { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.task-content small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.45; margin-top: 4px; overflow-wrap: anywhere; }
.completed .task-text { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.pencil { color: var(--muted); }
.pencil .ui-icon { width: 19px; height: 19px; }
.drag-handle { padding: 10px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; color: var(--muted); touch-action: none; cursor: grab; flex-shrink: 0; }
.drag-handle .ui-icon { width: 18px; height: 18px; }
.sort-preview > [data-id] { transition: translate .16s ease-out; }
.sort-preview > .dragging {
  position: relative;
  z-index: 2;
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: none;
}
.dragging .drag-handle { cursor: grabbing; }
.completed-heading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .875rem; margin: 12px 0 4px; padding: 8px 0; }
.completed-heading .ui-icon { width: 18px; height: 18px; transition: transform .15s; }
.completed-heading[aria-expanded=true] .ui-icon { transform: rotate(90deg); }
.completed-heading > span:last-child { display: inline-flex; justify-content: center; min-width: 24px; background: var(--line); border-radius: 8px; padding: 2px 7px; font-size: .75rem; }
.selected { background: var(--accent-soft); }
.task-row.selected { box-shadow: inset 0 0 0 1px var(--accent); }
.select-all { color: var(--accent); margin: -6px 0 12px; padding-left: 0; }
.bottom-bar, .composer { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 640px; display: flex; align-items: center; gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; z-index: 5; }
.composer { bottom: calc(16px + env(safe-area-inset-bottom) + var(--keyboard-offset, 0px)); }
.composer :is(input, textarea) { border: 1px solid transparent; background: transparent; box-shadow: none; padding: 9px 8px; min-height: 44px; flex: 1; }
.composer .primary { border-radius: 14px; }
.composer-backdrop { position: fixed; inset: 0; z-index: 4; background: transparent; }
.bottom-bar .primary { flex: 1; }
.snackbar { position: fixed; bottom: calc(105px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: light-dark(var(--text), #eceeeb); color: light-dark(var(--bg), #242623); padding: 8px 10px 8px 18px; border-radius: 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; font-size: .875rem; z-index: 6; }
.snackbar button { color: light-dark(#c3dbcf, #2f624f); }
.modal-backdrop { position: fixed; inset: 0; background: light-dark(#0006, #0009); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 24px 24px calc(24px + var(--keyboard-offset, 0px)); z-index: 10; }
.dialog { background: var(--panel); border-radius: 20px; padding: 24px; max-width: 448px; width: 100%; position: relative; max-height: calc(var(--visual-height, 100dvh) - 48px); overflow: auto; overscroll-behavior: contain; box-shadow: var(--shadow); animation: appear .16s ease-out; }
.dialog h2 { padding-right: 44px; margin: 0 0 10px; font-size: 1.5rem; }
.dialog p { font-size: .9375rem; color: var(--muted); }
.dialog .hint { font-size: .8125rem; }
.dialog > button:not(.close), .dialog form button { display: flex; width: 100%; margin-top: 4px; }
.dialog > .empty-mark { width: 56px; height: 56px; border-radius: 18px; margin: 0 0 24px; transform: none; }
.dialog > .empty-mark .ui-icon { width: 26px; height: 26px; transform: none; }
.close { position: absolute; right: 16px; top: var(--dialog-close-top,calc(24px + .975rem - 22px)); color: var(--muted); }
.member { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.member-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 1rem; font-weight: 600; }
.member small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; margin-top: 4px; }
.sharing-panel .member { min-height:68px; padding:10px 0; }
.sharing-panel .avatar { width:36px; height:36px; border-radius:50%; }
.sharing-panel .member-name { font-size:.9375rem; overflow-wrap:anywhere; }
.sharing-panel .member-name small { font-size:.75rem; margin-top:2px; }
.sharing-panel .member>button { flex-shrink:0; font-size:.8125rem; padding-inline:8px; }
.dialog form .sharing-panel .member>button { width:auto; flex:0 0 auto; margin:0; min-height:44px; }
.dialog form .sharing-panel .sharing-remove { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:6px 10px; border:1px solid var(--danger); color:var(--danger); background:transparent; border-radius:12px; }
.sharing-remove .ui-icon { width:18px; height:18px; }
.invitation-status { display:inline-flex; align-items:center; min-height:22px; border:1px solid var(--line); color:var(--accent); border-radius:5px; padding:1px 6px; margin-top:3px; }
.avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.login { max-width: 380px; margin: 16px auto 0; }
.login-logo { display: block; width: 56px; height: 56px; margin-bottom: 16px; filter: drop-shadow(0 8px 16px #0000001a); }
.login h1 { font-size: 2.125rem; max-width: 340px; line-height: 1.08; letter-spacing: -.055em; }
.login > .muted { font-size: 1rem; line-height: 1.5; margin: 12px 0 0; max-width: 320px; }
.login form { margin-top: 16px; }
.login .primary { width: 100%; margin-top: 12px; display: flex; justify-content: space-between; min-height: 44px; }
.login .check-label { display: flex; align-items: center; min-height: 44px; font-weight: 450; margin: 8px 0; font-size: .875rem; }
.login input[type=checkbox] { margin-left: 0; margin-right: 12px; }
.login a { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 0; color: var(--accent); font-size: .875rem; font-weight: 600; }
.login .hint { margin: 12px 0 0; }
.login #code { letter-spacing: .28em; font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.login-code .login-logo { width: 56px; height: 56px; }
.login-code h1 { font-size: 2rem; }
.login .step { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .75rem; font-weight: 650; margin: 0 0 10px; }
.login .step .ui-icon { width: 16px; height: 16px; }
.settings-intro { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: start; margin: 16px 0; }
.settings-intro .empty-mark { grid-row: 1 / 3; margin: 0; width: 44px; height: 44px; border-radius: 14px; transform: none; }
.settings-intro .empty-mark .ui-icon { transform: none; width: 28px; height: 28px; }
.settings-intro h2 { margin: 0; font-size: 1.125rem; }
.settings-intro p { margin: 4px 0 0; }
.settings-status { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: var(--accent-soft); font-size: .875rem; line-height: 1.5; margin: 12px 0; }
.settings-status .ui-icon { color: var(--accent); margin-top: 2px; }
.settings-actions { display: flex; flex-direction: column; gap: 8px; }
.settings-help { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; font-size: .875rem; color: var(--muted); }
.settings-help + .settings-help { border-top: 0; padding-top: 0; margin-top: 8px; }
.trash-name { display: block; overflow-wrap: anywhere; font-size: 1rem; }
.trash-remaining { font-size: .8125rem; margin: 6px 0 0; }
.error { border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent); border-radius: 14px; padding: 14px 16px; background: var(--danger-soft); color: var(--danger) !important; font-size: .875rem; overflow-wrap: anywhere; }
.dialog .notice { padding: 12px 14px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; font-size: .8125rem; }
.modal-backdrop.item-editor-backdrop { justify-content: flex-end; align-items: stretch; padding: 0 0 var(--keyboard-offset, 0px); }
.dialog.item-editor { box-shadow: inset 0 1px 0 light-dark(transparent, #474747), var(--shadow); border-radius: 20px 0 0 20px; max-height: var(--visual-height, 100dvh); animation: item-editor-right .16s ease-out; }
.item-editor-fields { display: flex; gap: 8px; align-items: center; }
.item-editor-fields textarea { flex: 1; min-width: 0; }
.item-editor h2 { margin-bottom: 8px; }
.item-editor form label { margin: 8px 0 3px; }
.item-editor form > :is(input, select), .item-editor-fields textarea { min-height: 44px; padding-block: 6px; }
.item-editor form > button { min-height: 44px; margin-top: 4px; padding-block: 6px; }
.item-editor .hint { margin: 6px 0; }
.app-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.app-tabs > button, .dialog .app-tabs > button { position: relative; margin: 0; min-height: 44px; padding: 7px 6px; border: 0; border-radius: 0; background: transparent; color: var(--muted); overflow-wrap: anywhere; }
.app-tabs > button:is([aria-pressed=true], [aria-selected=true]) { color: var(--text); font-weight: 700; }
.app-tabs > button:is([aria-pressed=true], [aria-selected=true])::after { content: ""; position: absolute; inset: auto 10px -1px; border-bottom: 3px solid var(--accent); border-radius: 3px 3px 0 0; }
.app-tabs.icon-categories > button::after { bottom: 0; }
.app-tabs > button:focus-visible { outline-offset: -3px; }
@media (hover: hover) { .app-tabs > button:not(:disabled):hover { background: transparent; color: var(--text); } }
.task-edit-section { padding-block: 10px; }
.task-edit-section + .task-edit-section { margin-top: 10px; border-top: 1px solid var(--line); }
.item-editor .task-edit-details > label:first-child { margin-top: 0; }
.task-planning-title { margin: 0 0 8px; color: var(--muted); font-size: .875rem; }
.task-planning-mode { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.dialog .task-planning-mode button { font-size: .9375rem; }
.planning-frequency, .planning-days { display: grid; align-items: center; gap: 8px; margin-top: 10px; }
.planning-frequency { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.recurrence-interval { grid-template-columns: minmax(0, 1fr) 58px minmax(92px, 27%); }
.recurrence-start > span { font-size: .875rem; font-weight: 650; }
.recurrence-start > .start-date-toggle { min-width: 104px; justify-self: end; }
.planning-days { grid-template-columns: minmax(0, 1fr) 62px auto; }
.item-editor .task-edit-form :is(.planning-frequency, .planning-days, .planning-notifications) label { margin: 0; }
.task-edit-form .planning-days span { font-size: .875rem; }
.recurrence-interval input { padding-inline: 8px; appearance: textfield; }
.recurrence-interval input::-webkit-inner-spin-button, .recurrence-interval input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.recurrence-interval select { padding-inline: 8px 4px; }
.planning-notifications .deadline-check input { margin-inline: 2px 0; }
.planning-notifications .planning-days { margin-top: 6px; }
.item-editor .task-edit-planning > .hint:last-child { margin-bottom: 0; }
.dialog .task-edit-form .start-date-toggle { margin: 0; padding: 4px 7px; border-color: var(--line); color: var(--accent); gap: 4px; font-size: .875rem; white-space: nowrap; }
.start-date-toggle .ui-icon { width: 16px; height: 16px; }
.start-date-calendar { grid-column: 1 / -1; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--row-bg); }
.start-date-heading { display: flex; align-items: center; padding-left: 4px; }
.start-date-heading strong { flex: 1; font-size: .875rem; }
.dialog .start-date-heading button { width: 44px; padding: 0; margin: 0; }
.start-date-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.start-date-grid > span { color: var(--muted); }
.dialog .start-date-grid button { min-width: 0; padding: 0; margin: 0; color: var(--accent); font-size: .875rem; border-radius: 8px; }
.dialog .start-date-grid button[aria-pressed=true]:not(:disabled) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.dialog .start-date-grid button:disabled { color: var(--muted); }
.task-edit-actions { position: sticky; bottom: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; margin-top: 12px; padding-top: 8px; background: var(--panel); }
.dialog .task-edit-actions button { margin: 0; padding-inline: 6px; }
.task-edit-actions button:first-child { border-color: var(--line); color: var(--muted); }
.sharing-tabs { margin: 12px 0; }
.sharing-panel[hidden] { display: none; }
.sharing-panel > button { width: 100%; margin-top: 4px; }
.share-people { border: 0; padding: 0; margin: 0; }
.share-person { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.share-person input { flex: 0 0 20px; width: 20px; min-height: 20px; accent-color: var(--accent); }
.share-person span { min-width: 0; overflow-wrap: anywhere; }
.share-person small { display: block; color: var(--muted); font-weight: 400; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.deadline-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.deadline-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.task-deadline time { color: var(--deadline-ink); background: var(--deadline-wash); border-radius: 10px; padding: 2px 6px; }
.task-deadline.overdue time { color: var(--danger); background: var(--danger-soft); }
@keyframes item-editor-right { from { transform: translateX(100%); } }
@keyframes item-editor-bottom { from { transform: translateY(100%); } }
@media (max-width: 640px) {
  html:has([data-app-back-swipe]) { overscroll-behavior-x: none; }
  .task-rows, .completed-rows, .collected-task .task-row {
    margin-left: calc(max(8px, env(safe-area-inset-left)) - max(32px, env(safe-area-inset-left)));
    margin-right: calc(max(8px, env(safe-area-inset-right)) - max(32px, env(safe-area-inset-right)));
  }
  .modal-backdrop.item-editor-backdrop { align-items: flex-end; }
  .modal-backdrop .dialog { animation-name:item-editor-bottom; }
  .dialog.item-editor { max-width: none; max-height: calc(var(--visual-height, 100dvh) - max(16px, env(safe-area-inset-top))); border-radius: 20px 20px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); animation-name: item-editor-bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .dialog.item-editor { animation: none; }
}
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 32px 0; font-size: .875rem; }
.loading::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
.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; }
#connection-status { position: fixed; top: 0; left: 0; right: 0; background: var(--text); color: var(--bg); text-align: center; padding: 10px 16px; font-size: .8125rem; line-height: 1.5; z-index: 30; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; padding: 16px; background: #b42e49; color: white; width: 100%; z-index: 50; }
#blazor-error-ui a { text-decoration: underline; }
.components-reconnect-hide { display: none; }
.components-reconnect-show, .components-reconnect-failed, .components-reconnect-rejected { display: block; position: fixed; inset: 0; z-index: 20; pointer-events: all; background: #0001; }
.photo-recovery-card { position:absolute; inset:auto 16px max(24px,env(safe-area-inset-bottom)); max-width:420px; margin-inline:auto; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--text); box-shadow:var(--shadow); }
.photo-recovery-card p { margin:0 0 12px; font-size:.875rem; }
.photo-recovery-card button { margin-right:8px; }
.offline [data-photo-recovery] button { pointer-events:auto; opacity:1; }
.offline button, .offline input, .offline textarea, .offline select { pointer-events: none; opacity: .55; }
@media (hover: hover) {
  button:not(:disabled):hover, .menu a:hover { background: var(--accent-soft); }
  .primary:not(:disabled):hover { background: var(--action-hover); color: var(--action-text); }
  .fab:not(:disabled):hover { background: light-dark(#2a5847, #d4e7dc); color: var(--action-text); }
  .danger:not(:disabled):hover { background: var(--danger-soft); }
  .danger.primary:not(:disabled):hover { background: #98243c; color: #fff; }
  .list-link:hover .list-name { color: var(--accent); }
  .menu-backdrop:not(:disabled):hover, .composer-backdrop:not(:disabled):hover { background: transparent; }
}

:is(.list-link, .list-icon-choice, .icon-grid) .category-icon { --icon-ink: var(--mono-ink); --icon-wash: var(--mono-wash); }
@media (min-width: 900px) {
  .app-shell { padding-top: 40px; }
  .wordmark { margin-bottom: 42px; }
  .login { margin-top: 52px; }
}
@media (max-width: 480px) {
  .task-rows, .completed-rows, .collected-task .task-row {
    margin-left: calc(max(8px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-left)));
    margin-right: calc(max(8px, env(safe-area-inset-right)) - max(16px, env(safe-area-inset-right)));
  }
  .app-shell { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .wordmark { margin-bottom: 24px; padding-bottom: 16px; }
  .page-header { gap: 12px; align-items: flex-start; }
  .page-header h1 { font-size: 1.75rem; padding-top: 6px; }
  .page-header:has(.back) h1 { font-size: 1.625rem; }
  .task-row { gap: 0; }
  .task-content { padding: 8px 2px; }
  .task-counter { margin-top: 8px; }
  .list-entry { gap: 2px; }
  .login { margin-top: 12px; }
  .login h1 { font-size: 2.125rem; }
  .login-logo { width: 56px; height: 56px; }
  .modal-backdrop { align-items: flex-end; padding: max(16px, env(safe-area-inset-top)) 8px calc(max(8px, env(safe-area-inset-bottom)) + var(--keyboard-offset, 0px)); }
  .dialog { border-radius: 20px; padding: 16px; max-height: calc(var(--visual-height, 100dvh) - 32px - env(safe-area-inset-bottom)); }
  .dialog h2 { font-size: 1.25rem; }
  .dialog > .close { top:var(--dialog-close-top,calc(16px + .8125rem - 22px)); }
  .empty { padding-top: 24px; }
}
@media (max-width: 350px) {
  .app-shell { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .page-header { gap: 8px; }
  .page-header h1 { font-size: 1.5rem; }
  .page-header:has(.back) h1 { font-size: 1.375rem; }
  .login h1 { font-size: 2rem; }
  .dialog { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
html::view-transition-group(root) { animation-duration: 160ms; }
html::view-transition-old(root), html::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html:active-view-transition-type(list-in)::view-transition-new(root) { animation: list-slide-in 160ms ease-out both; }
html:active-view-transition-type(list-in)::view-transition-old(root) { filter:blur(2px) brightness(.87); }
html:active-view-transition-type(list-out)::view-transition-old(root) { animation: list-slide-out 160ms ease-in both; z-index: 1; }
html:active-view-transition-type(list-out)::view-transition-new(root) { animation:list-underlay-reveal 160ms ease-out both; }
@keyframes list-underlay-reveal { from { filter:blur(2px) brightness(.87); } to { filter:none; } }
@keyframes list-slide-in { from { transform: translateX(100vw); } to { transform: translateX(0); } }
@keyframes list-slide-out { from { transform: translateX(0); } to { transform: translateX(100vw); } }
@media (prefers-reduced-motion: reduce) {
  html::view-transition-group(*), html::view-transition-old(*), html::view-transition-new(*) { animation: none !important; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Shopping lists keep the same rows and add only their own fields. */
select { font: inherit; width: 100%; min-width: 0; min-height: 44px; line-height: 1.5; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; }
.list-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.list-title .shared { margin-left: 0; }
.list-kind { display: inline-block; flex-shrink: 0; color: var(--accent); background: var(--row-bg); border-radius: 7px; padding: 3px 7px; font-size: .75rem; font-weight: 650; }
.composer-entry { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.composer-entry :is(input, textarea) { flex: 1; min-width: 0; }
.shopping-composer { display: block; padding: 10px; }
.shopping-composer .composer-entry { gap: 6px; }
.quantity-field { flex: 0 0 80px; min-width: 0; }
.quantity-field input[type=number] { width: 100%; min-width: 0; min-height: 44px; padding: 6px 8px; font-size: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; appearance: textfield; }
.composer .quantity-field input[type=number] { border: 1px solid var(--line) !important; background: var(--bg) !important; padding: 6px 8px; }
.quantity-field input::-webkit-inner-spin-button, .quantity-field input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.shopping-suggestions { max-height: clamp(72px, calc(var(--visual-height, 100dvh) * .24), 144px); overflow-y: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
.shopping-suggestions > p { margin: 8px; font-size: .75rem; font-weight: 650; color: var(--muted); }
.shopping-suggestions button { width: 100%; justify-content: flex-start; text-align: left; min-height: 44px; padding: 8px; font-size: .875rem; font-weight: 500; }
.shopping-suggestions button > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.shopping-suggestions small { color: var(--muted); flex-shrink: 0; }
.shopping-suggestions .ui-icon { width: 16px; height: 16px; color: var(--accent); }
.task-label { display: flex; align-items: baseline; gap: 8px; }
.task-label-main { min-width: 0; overflow-wrap: anywhere; }
.task-label .inline-source-list { display: inline-block; align-content: center; vertical-align: baseline; margin-inline-start: 4px; }
.shopping-amount { flex-shrink: 0; white-space: nowrap; font-size: .875rem; color: var(--accent); font-weight: 600; }
.item-editor-fields .quantity-field { flex-basis: 72px; }
@media(prefers-reduced-motion:reduce) { select { scroll-behavior: auto; } }

.app-shell:has(.workspace-header) > .wordmark { display: none; }
.page-header.workspace-header { position: relative; isolation: isolate; padding: calc(6px + env(safe-area-inset-top)) 0 6px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; min-height: 44px; }
.workspace-header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); box-shadow: 0 0 0 100vmax var(--line); clip-path: inset(0 -100vmax); pointer-events: none; }
.workspace-brand { justify-self: start; display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.workspace-logo { width: 30px; height: 30px; justify-self: start; }
.page-header.workspace-header h1, .page-header.workspace-header:has(.back) h1 { margin: 0; padding: 0; text-align: center; font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }

.app-shell:has(.composer) { padding-bottom: calc(112px + env(safe-area-inset-bottom) + var(--keyboard-offset, 0px)); }

/* One compact app bar, including secondary authenticated screens. */
.app-shell:has(.workspace-header) { padding-top: 0; }
.menu-area:has(.workspace-header), main > .workspace-header { position: sticky; top: 0; z-index: 7; }
.workspace-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.selection-toggle { display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; min-height: 44px; margin: 0; cursor: pointer; }
.selection-toggle input[type=checkbox] { margin: 0; }

textarea[data-task-entry] { display: block; resize: none; overflow: hidden; line-height: 1.5; }

.edit-plant-reference { display:flex; align-items:center; gap:10px; margin-block:10px; }
.edit-plant-reference img { width:70px; height:80px; object-fit:cover; border-radius:8px; }

.list-loading-backdrop { position:fixed; inset:0; z-index:89; background:#0002; backdrop-filter:blur(2px); pointer-events:none; }
.list-loading-shell { position:fixed; inset:0; z-index:90; overflow:auto; background:var(--bg); isolation:isolate; }
.list-loading-shell > .app-shell { padding-top:0; min-height:100%; }
.list-loading-message { display:flex; justify-content:center; margin:28px 0; }
.overview-loading .list-loading-message { align-items:center; gap:12px; padding-top:env(safe-area-inset-top); }
.dialog-opening-preview { position:fixed; right:0; bottom:0; z-index:90; padding:20px 24px; border-radius:16px 0 0 0; background:var(--panel); box-shadow:var(--shadow); pointer-events:none; animation:item-editor-right .16s ease-out; }
@media (max-width:640px) {
  .dialog-opening-preview { left:0; border-radius:16px 16px 0 0; padding-bottom:calc(20px + env(safe-area-inset-bottom)); animation-name:item-editor-bottom; }
}
.list-loading-message::before { content:""; width:24px; height:24px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:spin 700ms linear infinite; }
.list-content-arriving { animation:list-content-in 80ms ease-out both; }
.reference-cover { display:block; position:relative; width:100%; height:192px; padding:0; overflow:hidden; border-radius:8px; background:var(--row-bg); }
.reference-cover img { width:100%; height:100%; object-fit:cover; }
.reference-count { position:absolute; bottom:10px; right:10px; border-radius:20px; padding:5px 10px; background:#101510dd; color:#fff; font-size:.8rem; }
.reference-credit { display:block; margin:8px 0 12px; font-size:.7rem; color:var(--muted); overflow-wrap:anywhere; }
a.reference-credit { text-decoration:underline; }
.dialog:has(.reference-viewer) { width:100%; max-width:760px; height:calc(var(--visual-height, 100dvh) - 32px); max-height:calc(var(--visual-height, 100dvh) - 32px); padding:16px; }
.dialog:has(.reference-viewer) > .close, .plant-panel:has(.reference-viewer) > :not(.reference-gallery) { display:none; }
.reference-viewer { height:calc(var(--visual-height, 100dvh) - 64px); display:flex; flex-direction:column; gap:8px; }
.reference-viewer header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-shrink:0; }
.reference-viewer header > div { flex:1; min-width:0; }
.reference-viewer header > .icon { margin-top:calc(.8125rem - 22px); }
.reference-viewer h3 { margin:0 0 4px; font-size:1.25rem; line-height:1.3; overflow-wrap:anywhere; }
.reference-viewer header span { font-size:.8rem; color:var(--muted); }
.reference-stage { position:relative; flex:1; min-height:100px; display:flex; align-items:center; justify-content:center; background:#080a08; touch-action:pan-y; overflow:hidden; }
.reference-stage > img { width:100%; height:100%; object-fit:contain; }
.reference-stage > button { position:absolute; top:calc(50% - 22px); min-width:44px; border-radius:50%; background:#111b; color:white; font-size:1.7rem; padding:0; }
.reference-prev { left:8px; } .reference-next { right:8px; }
.reference-unavailable { position:absolute; padding:8px; background:var(--panel); }
.reference-viewer .reference-credit { text-align:center; margin:0; flex-shrink:0; }
.reference-thumbnails { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; padding:8px 0; flex-shrink:0; }
.reference-thumbnails button { width:66px; height:66px; padding:3px; position:relative; border:1px solid var(--control-line); border-radius:8px; }
.reference-thumbnails button.selected { border:2px solid var(--accent); padding:2px; }
.reference-thumbnails img { width:100%; height:100%; object-fit:cover; border-radius:4px; }
.reference-default { position:absolute; right:-5px; top:-5px; width:20px; height:20px; border-radius:50%; background:var(--accent); color:var(--action-text); display:grid; place-items:center; font-size:.75rem; }
.reference-select { width:100%; flex-shrink:0; } .reference-caption { text-align:center; }
.reference-select:disabled { opacity:1; }
@media(max-width:600px) { .modal-backdrop:has(.reference-viewer) { padding:0; } .dialog:has(.reference-viewer) { height:var(--visual-height, 100dvh); max-height:var(--visual-height, 100dvh); border-radius:0; padding:16px 16px max(16px, env(safe-area-inset-bottom)); } .reference-viewer { height:calc(var(--visual-height, 100dvh) - 32px - env(safe-area-inset-bottom)); } }
@keyframes list-content-in { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .list-content-arriving { animation:none; } }

.sticker-season-preview { position: relative; isolation: isolate; overflow: hidden; margin: 20px 0 24px; padding: 16px 18px 14px; border: 1px solid #d5b779; border-radius: 24px; color: #fffaf0; background: radial-gradient(ellipse at 10% 0%,#bda05c22,transparent 55%),radial-gradient(ellipse at 100% 100%,#bda05c18,transparent 50%),linear-gradient(135deg,#173f2d,#102e24); box-shadow: 0 8px 28px #00000012; }
.sticker-season-preview::before,.sticker-season-preview::after { content: "✦"; position: absolute; pointer-events: none; color: #e6cd91; font-size: 20px; text-shadow: 0 0 18px #e6cd9155; }
.sticker-season-preview::before { top: 12px; left: 14px; }
.sticker-season-preview::after { bottom: 12px; right: 14px; font-size: 16px; }
.season-preview-heading { text-align: center; }
.season-preview-heading h2 { margin: 0; font-size: clamp(1rem,4.4vw,1.15rem); line-height: 1.35; font-weight: 650; text-wrap: balance; }
.season-preview-heading p { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 6px 0 12px; color: #b8e5cd; font-size: .875rem; line-height: 1.5; }
.season-preview-heading .ui-icon { width: 20px; height: 20px; flex-shrink: 0; }
.season-preview-stickers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; max-width: 14rem; margin: auto; }
.season-preview-sticker { min-width: 0; text-align: center; }
.season-preview-art { aspect-ratio: 1; border-radius: 50%; border: 1px solid #d6e4b72b; background: #e4f1d509; overflow: hidden; display: grid; place-items: center; }
.season-preview-art img { display: block; width: 86%; height: 86%; object-fit: contain; filter: blur(9px); pointer-events: none; user-select: none; }
.season-preview-price { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 6px; font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.season-preview-price .ui-icon { width: 18px; height: 18px; flex-shrink: 0; color: #e6cd91; }
@media(max-width: 360px) { .sticker-season-preview { padding-inline: 12px; } .season-preview-stickers { gap: 8px; } }
.task-edit-hint { display:flex; align-items:center; gap:8px; margin:12px 0 16px; color:var(--muted); font-size:.8125rem; }
.task-edit-hint[hidden] { display:none; }
.task-edit-hint .ui-icon { width:16px; height:16px; flex-shrink:0; }
.deferral-preview { margin:14px 0 0; padding:12px; border-radius:12px; background:var(--accent-soft); font-size:.875rem; }
.deferral-preview p { margin:0; }
.deferral-preview p + p { margin-top:6px; }
.christmas-stickers { margin: 20px 0 28px; padding: 16px 12px 12px; border: 1px solid #b4934e; border-radius: 20px; background: linear-gradient(150deg,#c5282810,#d9ad3414,var(--panel)); }
.christmas-heading { text-align: center; margin: 0 0 18px; }
.christmas-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.christmas-heading h2 { font-size: 1.35rem; margin: 6px 0 10px; }
.christmas-countdown { display: inline-block; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--panel); color: var(--text); font-size: .875rem; font-variant-numeric: tabular-nums; }
.christmas-stickers .sticker-shop-grid { gap: 8px; }
.christmas-stickers .sticker-card { min-width: 0; }
.demo-exit { display:block; width:fit-content; margin:.5rem auto; color:var(--muted); font-size:.85rem; text-underline-offset:.2em; }

@media (prefers-reduced-motion: no-preference) {
  .list-entry.overview-row-arriving { animation: overview-row-arrival 145ms ease-out both; }
  .list-entry.overview-row-leaving { animation: overview-row-departure 145ms ease-in both; }
}
@media (prefers-reduced-motion: reduce) {
  .list-entry.overview-row-leaving { display: none; }
}
@keyframes overview-row-arrival {
  from { opacity: 0; transform: translateY(-5px); }
}
@keyframes overview-row-departure {
  to { opacity: 0; transform: translateY(-5px); }
}

.revealing-live-overview [data-live-overview][hidden] { display: block; }
.revealing-live-overview [data-live-list] { display: none; }
