/* Accessible theme surfaces stay light; custom page and primary-button colors use computed contrasting ink. */
body{background:var(--style-background,#f6f7ee);--green:var(--style-accent,#476548)}
body .shell{background:var(--style-background,#f6f7ee);color:var(--style-on-background,#000)}
body .page-heading,body footer{color:var(--style-on-background,#000)}
body .page-heading :is(h1,p,.eyebrow),body footer span{color:inherit}
body :is(.card,[class*="-card"],.companion-dialogue,.access-directory,.world-portal){color:#263745}
body .access-directory>p{color:#263745}
body .daily-section>.section-inline>.text-button{color:var(--style-on-background,#000)}
body .button.primary{background:var(--style-accent,#476548);border-color:var(--style-accent,#476548);color:var(--style-on-accent,#fff)}
body .sidebar,body .topbar,body .mobile-nav{background:#fafcfb;color:#263745}
body .topbar{border-radius:0 0 16px 16px;padding-inline:14px}
body .nav-item.active,body .mobile-nav button.active{background:var(--style-accent,#476548);color:var(--style-on-accent,#fff)}
body[data-style=summit],body[data-style=sport],body[data-style=cosmic]{--line:#cbd5df}
body[data-style=summit] :is(h1,h2,h3),body[data-style=sport] :is(h1,h2,h3),body[data-style=cosmic] :is(h1,h2,h3),body[data-style=arcade] :is(h1,h2,h3){font-family:'Segoe UI',system-ui,sans-serif;font-weight:650;letter-spacing:-.025em}
body[data-style=summit] .card,body[data-style=sport] .card{border-radius:12px;border-color:#c7d5df}
body[data-style=cosmic] .card{border-color:#c7c5de;box-shadow:0 3px 13px #34306b0a}
body[data-style=bloom] .card{border-color:#e8c9da}
body[data-style=arcade] .card{border:2px solid #c4b8e5;border-radius:16px}
.style-home{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0}.style-home>div{flex:1;min-width:200px}.style-home h2{font-size:22px;margin:0 0 8px}.style-home p{margin:0;max-width:65ch}
.style-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-block:16px}.style-preset{display:flex;align-items:center;flex-direction:column;gap:8px;padding:12px 7px;border:2px solid #d7dee4;border-radius:14px;background:#fff;color:#263745;min-width:0}.style-preset strong{font-size:13px;overflow-wrap:anywhere}.style-swatch{display:grid;place-items:center;font-size:32px;border-bottom:7px solid;width:100%;height:65px;border-radius:9px}.style-preset[aria-pressed=true]{border-color:#263745;outline:2px solid #263745;outline-offset:1px}
.style-preview{background:var(--preview-bg);color:var(--preview-ink);padding:20px;border:1px solid currentColor;border-radius:12px;display:flex;flex-wrap:wrap;gap:15px;align-items:center;margin:20px 0}.style-preview b{padding:12px;background:var(--preview-accent);color:var(--preview-on-accent);border-radius:10px}.style-preview span{flex:1}
.style-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.style-status{color:#8a263b}.feelings-welcome{margin:20px 0;border:2px solid #afa4d5;background:#f8f5ff}.feelings-welcome>span{font-size:38px}.feelings-welcome .button{margin:6px}
.feelings-workshop fieldset{border:0;padding:0;margin:24px 0}.feelings-workshop legend{font-weight:650;font-size:18px;margin-bottom:12px;color:#27374a}.feeling-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.feeling-choice{border:2px solid #ccd5df;background:#f8fafd;border-radius:15px;padding:16px 8px;color:#27374a;display:flex;flex-direction:column;gap:8px;align-items:center;min-height:100px}.feeling-choice>span{font-size:36px}.feeling-choice b{font-size:14px;overflow-wrap:anywhere}.feeling-choice[aria-pressed=true],.feeling-strength [aria-pressed=true]{border:2px solid #284772;background:#e0edff;box-shadow:inset 0 0 0 1px #284772}.feeling-strength{display:flex;gap:10px;flex-wrap:wrap}.feeling-strength .button{min-height:50px}.feeling-explanation,.feeling-result{padding:18px;border-radius:12px;background:#edf4ff;color:#27374a;line-height:1.7}.feeling-result p{font-size:20px}.trusted-adult{font-size:21px;line-height:1.6}
body[data-play-mode=guided] .feelings-welcome{font-size:17px}body[data-play-mode=guided] .feelings-welcome .button{min-height:50px;font-size:16px}
.pet-options{grid-template-columns:repeat(3,minmax(0,1fr))}
.feelings-workshop p,.trusted-adult{color:#27374a}
@media(max-width:650px){.style-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.style-home>.button{width:100%}.feeling-options{grid-template-columns:repeat(2,minmax(0,1fr))}.style-home>div{min-width:0}.topbar .all-tools-shortcut{max-width:92px}.style-actions>.button{flex:1}.style-preview{padding:12px}.feeling-choice{min-height:110px}.style-preset strong{font-size:12px}}
