/* Serve Aurora Access - styles. Mobile first. Calm, high-readability, large touch targets (min 48px). */
:root{
  --brand:#1a3a8f;--brand-2:#0b1f5c;--brand-ink:#ffffff;--bg:#ffffff;--surface:#f4f6fb;--surface-2:#e9eef9;--text:#0f1b33;--muted:#4a5670;--line:#c9d3e8;
  --focus:#ffbf47;--good:#1e7b45;--bad:#b3261e;--sky:#dfe9ff;--mint:#dcf3e7;--peach:#ffe9db;--lav:#ebe5ff;--sun:#fff3cc;--rose:#ffe3ea;
  --radius:16px;--gap:1rem;--lh:1.6;--ls:normal;--ws:normal;--font:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color-scheme:light;
}
[data-theme="dark"]{--brand:#9db8ff;--brand-2:#c9d7ff;--brand-ink:#0b1530;--bg:#0b1530;--surface:#13214a;--surface-2:#1b2c5e;--text:#eef2ff;--muted:#b9c4e2;--line:#33467e;
  --sky:#1d3266;--mint:#173f35;--peach:#4a2e22;--lav:#2e2759;--sun:#433a16;--rose:#4a2131;--good:#6fdc9e;--bad:#ff8f86;color-scheme:dark}
[data-theme="contrast"]{--brand:#ffd400;--brand-2:#ffd400;--brand-ink:#000;--bg:#000;--surface:#000;--surface-2:#111;--text:#fff;--muted:#fff;--line:#fff;
  --sky:#000;--mint:#000;--peach:#000;--lav:#000;--sun:#000;--rose:#000;--good:#7CFF7C;--bad:#ff7070;--focus:#00e5ff;color-scheme:dark}
[data-spacing="wide"]{--lh:1.95;--ls:.03em;--ws:.12em}
[data-font="readable"]{--font:Verdana,Tahoma,"Segoe UI",sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);line-height:var(--lh);letter-spacing:var(--ls);word-spacing:var(--ws);font-size:1.0625rem;min-height:100vh;display:flex;flex-direction:column}
.motion-off *,.motion-off *::before,.motion-off *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
a{color:var(--brand)}
[data-theme="contrast"] a{color:#ffd400}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:.5rem;top:-4rem;background:var(--brand);color:var(--brand-ink);padding:.75rem 1rem;border-radius:10px;z-index:100}
.skip:focus{top:.5rem}
h1,h2,h3{line-height:1.25;margin:.2em 0 .5em}
h2{font-size:1.3rem}h3{font-size:1.1rem}
p{margin:.4em 0 .9em}
.ic{width:1.5em;height:1.5em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ic.filled{fill:currentColor}

/* header */
.top{position:sticky;top:0;z-index:20;background:var(--brand);color:var(--brand-ink);padding:env(safe-area-inset-top) .5rem 0;box-shadow:0 2px 8px rgba(0,0,0,.15)}
[data-theme="dark"] .top{background:#10224f;color:#fff}
[data-theme="contrast"] .top{background:#000;border-bottom:2px solid #fff;color:#fff}
.top-in{display:flex;align-items:center;gap:.5rem;min-height:60px;max-width:1100px;margin:0 auto}
.top-title{flex:1;font-weight:700;font-size:1.1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.tbtn{display:inline-flex;align-items:center;gap:.35rem;min-height:48px;min-width:48px;padding:.4rem .8rem;border-radius:12px;border:2px solid rgba(255,255,255,.55);background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.tbtn:hover{background:rgba(255,255,255,.12)}
.tbtn[aria-current="page"]{background:rgba(255,255,255,.18)}
.netb{display:inline-flex;align-items:center;gap:.3rem;font-size:.85rem;font-weight:700;background:rgba(255,255,255,.18);border-radius:999px;padding:.25rem .6rem}
.netb .ic{width:1.1em;height:1.1em}

/* layout */
.main{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:1rem 1rem 3rem;outline:none}
.ptitle{font-size:1.75rem;margin-top:.3rem;color:var(--brand-2)}
[data-theme="dark"] .ptitle{color:#fff}
.intro{color:var(--muted);font-size:1.05rem;max-width:60ch}
.muted{color:var(--muted)}.small{font-size:.9rem}.center{text-align:center}.grow{flex:1;min-width:0}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.1rem;margin:1rem 0}
.panel.hl{border:2px solid var(--brand)}
.row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:.6rem 0}
.row.center{justify-content:center}.row.tight{gap:.35rem;margin:0}
.two{display:grid;gap:.6rem;grid-template-columns:1fr 1fr}
.note{display:flex;gap:.6rem;align-items:flex-start;background:var(--sun);border-radius:12px;padding:.8rem 1rem;color:var(--text)}
.note.ok{background:var(--mint)}
.note.crisis{background:var(--rose);font-size:1.05rem}
[data-theme="contrast"] .note{border:2px solid #fff}
.empty{color:var(--muted);padding:1rem;text-align:center;list-style:none}
.plain{list-style:none;padding:0;margin:0}.plain li{padding:.35rem 0}.plain a{display:inline-flex;gap:.5rem;align-items:center;min-height:44px;font-weight:600}
.plain-list{padding-left:1.2rem}.plain-list li{margin:.45rem 0}
.steps{padding-left:1.5rem}.steps li{margin:.55rem 0;padding-left:.2rem}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:48px;min-width:48px;padding:.55rem 1rem;border-radius:12px;border:2px solid var(--brand);background:var(--bg);color:var(--brand);font:inherit;font-weight:700;text-decoration:none;cursor:pointer;line-height:1.2}
.btn:hover{background:var(--surface-2)}
.btn.primary{background:var(--brand);color:var(--brand-ink)}
.btn.primary:hover{filter:brightness(1.1)}
.btn.danger{border-color:var(--bad);color:var(--bad)}
.btn.subtle{border-color:transparent;color:var(--muted)}
.btn.big{min-height:60px;font-size:1.15rem;padding:.7rem 1.4rem}
.btn.icon-only{padding:.4rem}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn[aria-pressed="true"]{background:var(--brand);color:var(--brand-ink)}
.link{background:none;border:0;color:var(--brand);text-decoration:underline;font:inherit;cursor:pointer;padding:.4rem .2rem;min-height:44px}

/* cards */
.cards{list-style:none;padding:0;margin:1rem 0;display:grid;gap:var(--gap);grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.card{display:flex;align-items:center;gap:1rem;min-height:96px;padding:1rem;border-radius:var(--radius);background:var(--tint,var(--sky));color:var(--text);text-decoration:none;border:2px solid transparent;height:100%}
.card:hover{border-color:var(--brand)}
[data-theme="contrast"] .card{border:2px solid #fff}
.card-ic{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:var(--bg);color:var(--brand);flex:none}
.card-ic .ic{width:36px;height:36px}
.card-txt{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.card-t{font-weight:800;font-size:1.15rem}
.card-d{color:var(--muted);font-size:.95rem}
.card-meta{font-size:.82rem;color:var(--muted);font-weight:600}
/* children: bigger, picture-first cards */
[data-exp="kids"] .home-cards{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
[data-exp="kids"] .home-cards .card{flex-direction:column;text-align:center;min-height:170px;justify-content:center}
[data-exp="kids"] .home-cards .card-ic{width:84px;height:84px}
[data-exp="kids"] .home-cards .card-ic .ic{width:48px;height:48px}
[data-exp="kids"] .home-cards .card-d{display:none}
/* adults: quieter professional tiles */
[data-exp="adults"] .card{background:var(--surface);border:1px solid var(--line)}
[data-exp="adults"] .card .card-ic{background:var(--tint,var(--sky))}
[data-exp="adults"] .card:hover{border-color:var(--brand)}
/* layouts */
[data-layout="simplified"] .card-d,[data-layout="simplified"] .adv,[data-layout="simplified"] .card-meta{display:none}
[data-layout="simplified"] .cards{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
[data-layout="compact"]{--gap:.5rem}
[data-layout="compact"] .card{min-height:64px;padding:.6rem}
[data-layout="compact"] .card-ic{width:44px;height:44px}
[data-layout="compact"] .card-ic .ic{width:26px;height:26px}
[data-layout="compact"] .panel{padding:.7rem .9rem;margin:.6rem 0}

/* welcome */
.hero{text-align:center;padding:1rem 1rem 1.4rem;background:#fff;color:#0f1b33;border-radius:24px;margin:.5rem 0 1rem;border:1px solid var(--line)}
[data-theme="contrast"] .hero{background:#000;border:2px solid #fff}
.hero-logo{width:min(78vw,340px);height:auto;display:block;margin:0 auto}
.about-logo{width:min(70vw,260px);height:auto;background:#fff;border-radius:20px;padding:.5rem}
.top-logo{width:40px;height:40px;border-radius:10px;background:#fff;flex:none}
.hero-s{font-size:1.1rem;max-width:40ch;margin:.3rem auto 0}
.choice-grid{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.choice{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;text-align:left;padding:1rem;border-radius:var(--radius);border:2px solid var(--line);background:var(--bg);color:var(--text);font:inherit;cursor:pointer;min-height:110px}
.choice:hover{border-color:var(--brand)}
.choice .ic{color:var(--brand);width:2rem;height:2rem}
.choice-t{font-weight:800;font-size:1.15rem}.choice-d{color:var(--muted)}
.today h2{margin-top:0}
.quick{margin-top:1.5rem}

/* dedication */
.dedication{background:linear-gradient(170deg,var(--brand),var(--brand-2));color:#fff;border-radius:24px;padding:1.6rem 1.4rem;margin:1rem 0;max-width:820px}
[data-theme="dark"] .dedication{background:linear-gradient(170deg,#1a3a8f,#0b1f5c)}
[data-theme="contrast"] .dedication{background:#000;border:2px solid #ffd400}
.dedication h2{font-size:1.5rem;color:#fff;margin-bottom:.8rem}
.dedication p{font-size:1.08rem;line-height:1.75}
.ded-mark{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.15);color:#ffd36b}
.ded-mark .ic{width:30px;height:30px}
.ded-sign{font-weight:800;color:#ffd36b;font-size:1.15rem;margin-top:1rem}
.dedication-short{margin:2rem 0 0;padding:1rem 1.2rem;border-left:5px solid var(--brand);background:var(--surface);border-radius:0 var(--radius) var(--radius) 0}
.dedication-short p{margin:.25rem 0}

/* forms */
.form label,.form legend{display:block;font-weight:700;margin:.8rem 0 .3rem}
input[type="text"],input:not([type]),input[type="email"],input[type="password"],input[type="url"],input[type="search"],input[type="number"],input[type="date"],input[type="time"],input[type="tel"],select,textarea{
  width:100%;min-height:48px;padding:.6rem .8rem;border-radius:10px;border:2px solid var(--line);background:var(--bg);color:var(--text);font:inherit}
.row input,.row select{width:auto;flex:1;min-width:8rem}
input:focus,select:focus,textarea:focus{border-color:var(--brand)}
input[type="range"]{width:100%;min-height:44px;accent-color:var(--brand)}
input[type="checkbox"],input[type="radio"]{accent-color:var(--brand)}
fieldset{border:0;padding:0;margin:.8rem 0}
fieldset.sub{border:1px solid var(--line);border-radius:12px;padding:.6rem 1rem;margin:1rem 0}
.seg legend{font-weight:700;margin-bottom:.4rem}
.seg{display:flex;flex-wrap:wrap;gap:.4rem}
.seg legend{width:100%}
.seg input{position:absolute;opacity:0;width:1px;height:1px}
.seg label{display:inline-flex;align-items:center;min-height:48px;padding:.4rem 1rem;border-radius:999px;border:2px solid var(--line);cursor:pointer;font-weight:600;margin:0}
.seg input:checked+label{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
.seg input:focus-visible+label{outline:3px solid var(--focus);outline-offset:2px}
.tog{display:flex;gap:.8rem;align-items:flex-start;padding:.5rem 0}
.tog input{width:28px;height:28px;margin-top:.15rem;flex:none}
.tog label{display:flex;flex-direction:column;font-weight:700;cursor:pointer}
.tog label .muted{font-weight:400}

/* search + chips */
.search{display:flex;gap:.5rem;margin:.6rem 0}
.search input{flex:1}
.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:.6rem 0}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:.35rem .95rem;border-radius:999px;border:2px solid var(--line);background:var(--bg);color:var(--text);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.chip[aria-pressed="true"],.chip[aria-current="page"]{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}

/* resource list */
.res-list{list-style:none;padding:0;margin:.5rem 0 1rem;display:grid;gap:.7rem}
.res{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:space-between;align-items:center;padding:.9rem 1rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.res-main{flex:1 1 260px;min-width:0}
.res-t{margin:0 0 .2rem;font-size:1.12rem}
.res-d{margin:.3rem 0;color:var(--text)}
.res-host{margin:0;font-size:.85rem;color:var(--muted)}
.res-act{display:flex;gap:.4rem;align-items:center}
.badge{display:inline-flex;align-items:center;gap:.25rem;font-size:.8rem;font-weight:700;padding:.15rem .55rem;border-radius:999px;background:var(--surface-2);color:var(--muted)}
.badge.ok{background:var(--mint);color:var(--good)}
.badge .ic{width:1em;height:1em}

/* item lists */
.item-list{list-style:none;padding:0;margin:.5rem 0;display:grid;gap:.5rem}
.item{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:space-between;padding:.75rem 1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.item a.grow{text-decoration:none;color:var(--text);min-height:44px;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.item > div{display:flex;flex-direction:column}
.item .row{flex-direction:row}
.step-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--sun);color:var(--brand)}
ol.steps-edit{counter-reset:none}
.checks{list-style:none;padding:0;margin:.5rem 0;display:grid;gap:.45rem}
.checks li{display:flex;align-items:center;gap:.7rem;padding:.55rem .8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.checks input{width:30px;height:30px;flex:none}
.checks label{flex:1;cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:1.08rem}
.checks .is-done label{text-decoration:line-through;color:var(--muted)}
.progress{height:14px;border-radius:999px;background:var(--surface-2);overflow:hidden;margin:.6rem 0}
.progress span{display:block;height:100%;background:var(--brand);border-radius:999px;transition:width .3s}

/* routine runner */
.run{text-align:center;padding:1.5rem 1rem;border-radius:24px;background:var(--sun);margin:.5rem 0 1rem}
.run.done{background:var(--mint)}
.run-ic{display:inline-grid;place-items:center;width:120px;height:120px;border-radius:30px;background:var(--bg);color:var(--brand)}
.run-ic .ic{width:72px;height:72px}
.run-t{font-size:clamp(1.6rem,6vw,2.4rem);font-weight:800;margin:.6rem 0}
/* first-then */
.ft{display:grid;grid-template-columns:1fr auto 1fr;gap:.8rem;align-items:center;margin:1rem 0}
.ft-box{display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:1.2rem .8rem;border-radius:24px;background:var(--sky);text-align:center;min-height:220px;justify-content:center}
.ft-box + .ft-arrow + .ft-box{background:var(--mint)}
.ft-done{opacity:.55}
.ft-l{font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--brand)}
.ft-ic .ic{width:72px;height:72px;color:var(--brand)}
.ft-t{font-size:1.3rem;font-weight:800}
.ft-arrow .ic{width:40px;height:40px;color:var(--muted)}
/* timer */
.timer{position:relative;width:min(80vw,320px);margin:1rem auto}
.ring{width:100%;transform:rotate(-90deg)}
.ring-bg{fill:none;stroke:var(--surface-2);stroke-width:12}
.ring-fg{fill:none;stroke:var(--brand);stroke-width:12;stroke-linecap:round;transition:stroke-dashoffset .25s linear}
.timer-t{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(2.4rem,12vw,4rem);font-weight:800;font-variant-numeric:tabular-nums}
/* budget */
.brow{display:grid;grid-template-columns:1fr 9rem auto;gap:.4rem;margin:.35rem 0}
.total p{margin:.3rem 0}.big-num{font-size:1.5rem;font-weight:800}.big-num.pos{color:var(--good)}.big-num.neg{color:var(--bad)}
/* scripts */
.script{padding-left:1.4rem}.script li{display:flex;align-items:center;gap:.5rem;padding:.35rem 0;font-size:1.1rem}
.script-big li{font-size:1.7rem;font-weight:700}
.q-card .q-t,.q-t{font-size:1.4rem;font-weight:800}
/* talk board */
.strip{position:sticky;top:64px;z-index:5;background:var(--bg);border:2px solid var(--brand);border-radius:var(--radius);padding:.6rem;margin:.5rem 0}
.strip-w{min-height:52px;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin-bottom:.4rem}
.strip-c{background:var(--sky);border-radius:10px;padding:.35rem .7rem;font-weight:700;font-size:1.1rem}
.board{list-style:none;padding:0;display:grid;gap:.6rem;grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
.bcard{position:relative;width:100%;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;border-radius:18px;border:2px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-weight:800;font-size:1.05rem;cursor:pointer;padding:.5rem;text-align:center}
.bcard:hover{border-color:var(--brand)}
.bcard .ic{width:48px;height:48px;color:var(--brand)}
.bcard img{width:64px;height:64px;object-fit:cover;border-radius:10px}
.bcard.editing{border-style:dashed}
.bdel{position:absolute;top:.3rem;right:.3rem;color:var(--bad)}
.bdel .ic{width:22px;height:22px;color:var(--bad)}
/* reading */
.reading{font-size:1.25rem;line-height:1.9;max-width:62ch;background:var(--surface);border-radius:var(--radius);padding:1rem 1.2rem;margin:1rem 0}
.reading-now{background:var(--sun);border-radius:8px;outline:2px solid var(--brand)}
/* calm */
.breath{display:grid;place-items:center;height:240px}
.breath-c{width:90px;height:90px;border-radius:50%;background:radial-gradient(circle,var(--sky),var(--brand));opacity:.85;transition-property:transform;transition-timing-function:ease-in-out;transform:scale(1)}
.breath-c.in,.breath-c.hold{transform:scale(2.2)}.breath-c.out{transform:scale(1)}
.motion-off .breath-c.in,.motion-off .breath-c.hold{transform:scale(1.6)}
.breath-t{text-align:center;font-size:1.4rem;font-weight:700}
.accordion summary{cursor:pointer;list-style:none;min-height:44px;display:flex;align-items:center}
.accordion summary::-webkit-details-marker{display:none}
.accordion summary h2{margin:0;font-size:1.15rem}
.accordion summary::before{content:"+";font-weight:800;font-size:1.4rem;width:1.5rem;color:var(--brand)}
.accordion details[open] summary::before{content:"\2212"}
details.panel summary h2{display:inline;margin:0}

/* games */
.fb{min-height:2.5rem;display:flex;gap:.5rem;align-items:center;justify-content:center;font-weight:700;font-size:1.15rem;margin:.8rem 0;border-radius:12px;padding:.3rem}
.fb.good{background:var(--mint);color:var(--good)}.fb.try{background:var(--sun)}
.q-big{font-size:clamp(2rem,10vw,3.4rem);font-weight:800;text-align:center;margin:.6rem 0;font-variant-numeric:tabular-nums}
.q-big.small-q{font-size:clamp(1.4rem,6vw,2rem)}
.answers{display:grid;gap:.7rem;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));margin:1rem 0}
.answers.col{grid-template-columns:1fr}
.ans{min-height:72px;border-radius:16px;border:2px solid var(--brand);background:var(--bg);color:var(--text);font:inherit;font-size:1.6rem;font-weight:800;cursor:pointer;display:grid;place-items:center;padding:.5rem}
.answers.col .ans{font-size:1.15rem;min-height:60px;text-align:left;justify-items:start;padding:.6rem 1rem}
.ans .ic{width:42px;height:42px;color:var(--brand)}
.ans.good{background:var(--mint);border-color:var(--good)}.ans.bad{background:var(--rose);border-color:var(--bad)}
.mgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;max-width:520px;margin:1rem auto}
.mcard{aspect-ratio:1;border-radius:14px;border:2px solid var(--brand);background:var(--brand);cursor:pointer;display:grid;place-items:center;padding:0}
.mface{visibility:hidden;color:var(--brand)}.mface .ic{width:44px;height:44px}
.mcard.up,.mcard.done{background:var(--bg)}.mcard.up .mface,.mcard.done .mface{visibility:visible}
.mcard.done{border-color:var(--good);background:var(--mint)}
.tiles{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin:1rem 0}
.tile{width:60px;height:60px;border-radius:12px;border:2px solid var(--brand);background:var(--bg);color:var(--text);font:inherit;font-size:1.6rem;font-weight:800;cursor:pointer;text-transform:lowercase}
.tile[disabled]{opacity:.3}
.spell-out{font-size:2rem;font-weight:800;text-align:center;letter-spacing:.15em;font-family:ui-monospace,Menlo,monospace}
.count-box{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;padding:1rem;background:var(--surface);border-radius:var(--radius);max-width:520px;margin:0 auto}
.count-box .ic{width:52px;height:52px;color:var(--brand)}
.pattern{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin:1rem 0}
.pat{display:grid;place-items:center;width:58px;height:58px;border-radius:12px;background:var(--surface);color:var(--brand)}
.pat .ic{width:36px;height:36px}.pat.q{font-size:2rem;font-weight:800;border:2px dashed var(--brand)}
.slide{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;width:min(90vw,340px);margin:1rem auto}
.stile{aspect-ratio:1;border-radius:14px;border:2px solid var(--brand);background:var(--sky);color:var(--text);font:inherit;font-size:2rem;font-weight:800;cursor:pointer}
.stile.empty{background:transparent;border:2px dashed var(--line)}
.swatch{width:48px;height:48px;border-radius:50%;border:3px solid var(--line);cursor:pointer}
.swatch[aria-pressed="true"]{border-color:var(--text);box-shadow:0 0 0 3px var(--focus)}
.canvas{width:100%;max-width:1000px;aspect-ratio:10/7;border:2px solid var(--line);border-radius:12px;touch-action:none;background:#fff;display:block;margin:.6rem 0}

/* admin tables */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.tbl{width:100%;border-collapse:collapse;font-size:.95rem}
.tbl th,.tbl td{padding:.6rem .7rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.tbl th{background:var(--surface-2)}
code{background:var(--surface-2);padding:.05rem .35rem;border-radius:6px}

/* dialog + toast */
dialog{border:0;border-radius:20px;padding:1.2rem;max-width:min(560px,94vw);width:100%;background:var(--bg);color:var(--text);box-shadow:0 20px 60px rgba(0,0,0,.35)}
dialog::backdrop{background:rgba(5,12,30,.55)}
.toast{position:fixed;left:50%;bottom:calc(1rem + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(150%);background:#0f1b33;color:#fff;padding:.85rem 1.2rem;border-radius:14px;max-width:92vw;z-index:60;font-weight:600;box-shadow:0 8px 30px rgba(0,0,0,.3);transition:transform .25s}
.toast.show{transform:translateX(-50%) translateY(0)}
[data-theme="contrast"] .toast{background:#000;border:2px solid #ffd400}

/* footer */
.foot{border-top:1px solid var(--line);padding:1.2rem 1rem calc(1.2rem + env(safe-area-inset-bottom));text-align:center;color:var(--muted);font-size:.92rem}
.foot p{margin:.3rem 0}
.foot-ded{font-weight:700;color:var(--text)}
.foot a{margin:0 .4rem;display:inline-block;min-height:44px;line-height:44px}

/* standalone (installed) tweaks */
@media (display-mode: standalone){.top{padding-top:max(env(safe-area-inset-top),.25rem)}}
@media (max-width:560px){
  .ptitle{font-size:1.5rem}.two{grid-template-columns:1fr}
  .tbtn span.lbl{display:none}
  .ft{grid-template-columns:1fr}.ft-arrow{transform:rotate(90deg);justify-self:center}
  .brow{grid-template-columns:1fr 6.5rem auto}
  .cards{grid-template-columns:1fr}
  [data-exp="kids"] .home-cards{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}

/* print: resume only */
#print-area{display:none}
@media print{
  body.printing > *:not(#print-area){display:none!important}
  body.printing #print-area{display:block}
  .resume{font-family:Georgia,serif;color:#000;max-width:7.5in;margin:0 auto}
  .resume h1{font-size:22pt;margin:0}.resume h2{font-size:13pt;border-bottom:1px solid #000;margin-top:14pt;text-transform:uppercase}
  .resume h3{font-size:11.5pt;margin:8pt 0 2pt}.resume p,.resume li{font-size:11pt}
}
