/* V0.4 — pastel daylight / cosy evening. All functional surfaces use theme tokens. */
:root{color-scheme:light;--paper:#f7f1f5;--ink:#382b40;--muted:#66596e;--coral:#b94250;--peach:#fbe6e3;--teal:#326963;--line:#d9cad8;--surface:#fffaf9;--surface-soft:#f1e7f1;--input:#fffdfb;--active:#f8d8df;--shadow:0 10px 34px #65425a0b;--mint:#e0eee6;--butter:#faf0cf;--lavender:#ece5f6;--toast:#382b40;--on-toast:#fffaf8}
html[data-theme=dark]{color-scheme:dark;--paper:#211f2c;--ink:#faf0f4;--muted:#c5b9cf;--coral:#efacb7;--peach:#43303b;--teal:#9cd7ca;--line:#66576f;--surface:#2d2839;--surface-soft:#383044;--input:#24202f;--active:#604152;--mint:#293f3e;--butter:#423b2e;--lavender:#38334d;--toast:#f5e4ec;--on-toast:#332635;--shadow:0 10px 34px #100e1724}
body{background:radial-gradient(ellipse at 7% 0%,#f9dfe970,transparent 48%),radial-gradient(ellipse at 100% 40%,#deddf560,transparent 50%),var(--paper);background-attachment:fixed}
html[data-theme=dark] body{background:radial-gradient(ellipse at 5% 0%,#46304470,transparent 48%),radial-gradient(ellipse at 100% 40%,#2c385260,transparent 50%),var(--paper)}
.choice{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
.mint{background:var(--mint)}.butter{background:var(--butter)}.peach{background:var(--peach)}.lavender{background:var(--lavender)}
.collection-hero,.collection-hero.ideas-hero{background:linear-gradient(125deg,var(--peach),var(--surface) 65%,var(--lavender));box-shadow:var(--shadow)}
.menu-card{border:1px solid color-mix(in srgb,var(--line) 55%,transparent);box-shadow:0 5px 14px #382b4004;transition:box-shadow .2s,transform .2s}
@media(hover:hover){.menu-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}}
.card-open h3{line-height:1.25}.card-note,.card-pairing,.category-banner p:not(.eyebrow),.example-label,.joy-card .meta{color:var(--muted)}
.small-button,.small-button:disabled,.secondary,.category-banner .secondary,.pill,.category-tabs button{background:var(--surface);color:var(--ink);border-color:var(--line)}
.small-button[aria-pressed=true],.category-tabs button[aria-pressed=true]{background:var(--active);border-color:var(--coral);color:var(--ink)}
.small-button:disabled{color:var(--teal)}.primary{background:#b94250;color:#fff;box-shadow:0 5px 0 #60242c15}.primary:hover{background:#a83745}
html[data-theme=dark] .primary{background:#efacb7;color:#321d2c;box-shadow:0 5px 0 #0002}html[data-theme=dark] .primary:hover{background:#f8bdc6}
.pill[aria-pressed=true]{background:#49334f;color:#fff}.intents .pill{background:transparent;border-color:var(--line)}.intents .pill[aria-pressed=true]{background:var(--mint);border-color:var(--teal);color:var(--ink)}
html[data-theme=dark] .pill[aria-pressed=true]{background:#f0b4c3;color:#321d2c}
.timer,.library-filters details,.illustration-picker,.check-pills label,.paper-preview{background:var(--surface-soft)}
.paper-preview{border-color:var(--line)}.paper-preview strong{color:var(--teal)}
.illustration-option{background:var(--surface)}.illustration-option:has(input:checked){background:var(--mint)}.illustration-option:has(input:checked):after{background:var(--teal);color:var(--paper)}
.empty-state,.empty-small,.card-pairing{background:var(--surface)}
.example-banner,.match,.resume,.pairing-note{background:var(--mint);color:var(--teal)}
.resume button{background:var(--teal);color:var(--paper)}
.resume button{white-space:nowrap;font:700 12px Nunito,Arial,sans-serif;min-height:44px}
.field input,.field textarea,.field select,.search-label input,.setting select,.custom-time input{background:var(--input);color:var(--ink);border:1px solid var(--line)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
select option{background:var(--input);color:var(--ink)}
.setting select{font:inherit;padding:10px;border-radius:12px;max-width:58%;min-height:44px}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
#mainNav{background:color-mix(in srgb,var(--surface) 96%,transparent);border-color:var(--line);box-shadow:var(--shadow)}
#mainNav a[aria-current]{background:var(--active);color:var(--ink)}#mainNav a:hover{background:var(--surface-soft)}
#notice{background:var(--toast);color:var(--on-toast)}#notice button{color:inherit}
.custom-time{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;color:var(--muted);font-size:13px}
.custom-time>span{display:flex;align-items:center;gap:8px}.custom-time input{width:76px;min-height:44px;border-radius:12px;padding:8px 10px;font:700 16px Nunito,Arial,sans-serif;text-align:center}
.time-validation{font-size:12px;color:var(--coral);margin-top:6px}.time-validation:empty{display:none}.timer-choice{padding:14px 16px;background:var(--surface);border-radius:17px;margin-top:20px}
.upload-panel{border-top:1px solid var(--line);padding-top:15px;margin-top:15px}.upload-panel .file-button{display:block}.upload-panel p{font-size:11px}.upload-panel [hidden]{display:none}
.uploaded-art{display:block;overflow:hidden;border-radius:16px;flex-shrink:0;background:#fff5ed}.uploaded-art img{width:100%;height:100%;object-fit:contain;display:block}.activity-picture .uploaded-art{width:280px;height:280px}
.brand-icon{padding:3px;background:var(--active)}.brand-icon img{width:100%;height:100%;object-fit:contain;display:block}.brand small{font-size:12px;letter-spacing:.03em}.brand strong{letter-spacing:-.035em}
@media(max-width:760px){.activity-picture .uploaded-art{width:145px;height:145px}.brand small{font-size:10px}.custom-time{font-size:12px}.collection-hero{overflow:hidden}.collection-hero h1{overflow-wrap:normal}.category-tabs button{min-height:104px}.form-row{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}.form-row>*{min-width:0}}
@media(max-width:380px){.collection-hero{padding:18px 16px}.collection-hero.ideas-hero h1{font-size:29px}.collection-hero img{width:78px;margin-right:-12px}.category-banner{gap:12px}.category-banner .art{width:62px;height:62px}}
@media(max-height:700px) and (max-width:760px){.activity-picture .uploaded-art{width:90px;height:90px}}
@media(prefers-reduced-motion:reduce){.menu-card{transition:none;transform:none!important}}
body.reduce .menu-card{transition:none;transform:none!important}
/* Home: illustrated choices first; the optional chooser follows. */
.brand .menu-brand{font-size:27px;letter-spacing:-.03em}.brand small{font-size:13px}
.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 48px;align-items:start}.home-grid>.hero{grid-column:1/-1;min-height:220px;padding-right:270px;position:relative}.home-grid>.hero .mascot-wrap{position:absolute;right:15px;top:0;width:230px;height:220px;margin:0}.home-grid>.hero .hello-note{display:none}.home-grid>.favorites{margin:0;padding:0}.home-grid>.choice{margin:0}.home-grid .note{display:none}
.moment-celebration{width:min(460px,calc(100% - 32px));padding:30px 24px;text-align:center;overflow:hidden;border:0;background:var(--surface);color:var(--ink);border-radius:32px}.moment-celebration::backdrop{background:rgba(36,24,43,.38);backdrop-filter:blur(5px)}.moment-celebration h2{font-size:32px;line-height:1.12;margin:14px 0}.moment-celebration>p:not(.eyebrow){color:var(--muted)}.moment-celebration button{position:relative;margin-top:20px}.happy-menu{width:180px;height:180px;object-fit:contain;animation:joy-bounce 1.1s ease-in-out 4}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;left:var(--x);top:-30px;color:var(--c);font-size:24px;font-style:normal;animation:joy-fall 3.6s var(--delay) ease-out both}
@keyframes joy-bounce{0%,100%{transform:translateY(0) rotate(-3deg)}45%{transform:translateY(-12px) rotate(5deg)}70%{transform:translateY(0) rotate(-2deg)}}@keyframes joy-fall{0%{transform:translateY(-30px) rotate(0);opacity:0}12%{opacity:1}85%{opacity:.8}100%{transform:translateY(490px) rotate(var(--r));opacity:0}}
body.reduce .confetti{display:none}@media(prefers-reduced-motion:reduce){.confetti{display:none}}
@media(max-width:760px){.brand .menu-brand{font-size:24px}.brand small{font-size:12px}.home-grid{display:flex;flex-direction:column;gap:24px}.home-grid>*{width:100%}.home-grid>.hero{min-height:190px;padding-right:0}.home-grid>.hero .mascot-wrap{width:36%;height:155px;right:-5px;top:30px}.home-grid>.choice{margin:0 0 14px}.home-grid .section-intro{margin-bottom:12px}.home-grid .joy-card{min-height:92px}.moment-celebration h2{font-size:28px}}
/* Joybites: six courses, always easy to scan on a phone. */
.brand .menu-brand{font-size:30px}.brand .product-type{font-size:16px;font-weight:700;color:var(--ink);margin-top:2px}.brand .brand-tagline{font-size:12px;max-width:280px;line-height:1.4;margin-top:4px;letter-spacing:0}.category-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible;gap:10px}.category-tabs button{min-width:0;width:100%;border-radius:23px;transition:transform .18s,box-shadow .18s}.category-tabs button:hover{transform:translateY(-3px)}.spicy-inspiration{margin-top:32px}.spicy-inspiration>p{margin:10px 0 20px;color:var(--muted)}.spicy-inspiration h2{font-size:30px}.category-tabs .art{border-radius:18px}.illustration-grid{max-height:430px;overflow-y:auto;padding:5px}.art.painted{border-radius:18px}html[data-theme=light] body{background:radial-gradient(ellipse at 8% 12%,#ffe6d9 0,transparent 38%),radial-gradient(ellipse at 90% 40%,#e4f1e5 0,transparent 38%),linear-gradient(145deg,#fcf3df,#f6eafa 70%,#ffe8e9)}
@media(max-width:760px){.category-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.category-tabs button{min-height:112px;padding:10px 5px;display:flex;flex-direction:column;align-items:center;gap:6px}.category-tabs button .art{width:48px;height:48px;flex-shrink:0}.category-tabs button span{font-size:13px}.category-tabs button small{font-size:10px}.brand .menu-brand{font-size:27px}.brand .product-type{font-size:15px}.brand .brand-tagline{font-size:10px;max-width:230px}.topbar{align-items:center}.brand-icon{width:43px;height:43px;flex-shrink:0}.brand{min-width:0}.category-banner{flex-wrap:wrap}.category-banner>div{flex:1;min-width:120px}.category-banner>button{margin-left:auto}.illustration-grid{max-height:350px}}
/* Explicit text colours: native buttons and gallery captions inherit neither reliably. */
.card-open,.card-open h3,.joy-card,.joy-card h3,.illustration-option,.illustration-option span,.category-tabs button span{color:var(--ink)}
.category-tabs small,.card-note,.card-pairing,.section-intro,.collection-footnote,.result-count,.illustration-picker small,.activity-picture .caption{color:var(--muted)}
.activity-picture .caption{background:var(--surface);padding:5px 12px;border-radius:12px}.now-card{margin-bottom:16px}.now-card .joy-card{width:100%;margin-bottom:0}.now-tools{display:flex;justify-content:space-between;gap:10px;padding:2px 10px}.now-tools button{min-height:44px;font-size:12px;color:var(--teal)}.now-picker{display:grid;gap:10px;margin:18px 0;max-height:45vh;overflow:auto}.now-picker button{display:flex;align-items:center;gap:12px;text-align:left;width:100%}.now-picker .art{width:48px;height:48px}.now-picker button span:nth-child(2){flex:1}.text-button{color:var(--teal)}
.section-head #addNow{width:auto;flex:0 0 auto;padding:10px 16px}.section-head{gap:12px;flex-wrap:wrap}

@media(max-width:760px){#notice{bottom:calc(90px + env(safe-area-inset-bottom));max-height:35vh;overflow:auto}#notice button{min-height:44px;margin-left:12px}}
.welcome-strip{max-width:1120px;margin:0 auto 20px;padding:10px 18px;border-radius:18px;background:var(--mint);color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.welcome-strip[hidden],[hidden].illustration-option,#installJoybites[hidden],#appUpdate[hidden]{display:none}.welcome-strip button{min-height:44px}.gallery-filters{display:grid;grid-template-columns:1.3fr 1fr;gap:10px;margin:14px 0}.gallery-filters label{font-size:12px;color:var(--ink)}.gallery-filters input,.gallery-filters select{display:block;width:100%;min-width:0;padding:10px;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--input);color:var(--ink);font:inherit;margin-top:6px}#guideDialog{max-width:580px}.start-steps{padding-left:22px}.start-steps li{padding:12px 0;color:var(--ink)}.start-steps p,.install-guide p{font-size:14px;line-height:1.65;color:var(--muted);margin-top:6px}.install-guide{padding:14px 0;border-top:1px solid var(--line)}.install-guide summary{cursor:pointer;color:var(--ink);min-height:40px;font-weight:700}#toggleNow{width:100%;margin:4px 0 14px}.topbar{padding-top:max(20px,env(safe-area-inset-top))}@media(max-width:760px){.welcome-strip{margin:0 20px 16px;flex-wrap:wrap}.welcome-strip>span{display:none}.gallery-filters{grid-template-columns:1fr 1fr}}

/* Roomier brand mascot and readable product descriptor. */
.brand-icon{width:76px;height:76px;flex:0 0 76px;padding:0;background:transparent}
.brand>span:last-child{min-width:0}
.brand .product-type{line-height:1.3;max-width:310px}
@media(max-width:760px){.brand{gap:10px}.brand-icon{width:64px;height:64px;flex-basis:64px}.brand .product-type{font-size:14px;max-width:230px}.topbar>#settings{flex-shrink:0}}
@media(max-width:360px){.brand-icon{width:56px;height:56px;flex-basis:56px}.brand .product-type{font-size:13px}.brand .brand-tagline{font-size:10px}}
