/* Potty Routine — palette per Addendum SS C.2 (computed WCAG pairings in the spec). */
:root{--ink:#1F2A1E;--cream:#FFF7E6;--card:#FFFFFF;--routine:#14532D;--step:#1B6B3A;--amber:#FFD166;--sage:#DCE8D2;--terra:#B44A1F;--slate:#4A5568;--gate:#6B7280;--navy:#24324A;--link:#1D4ED8;--clin:#9B2226}
*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
button{font-family:inherit;cursor:pointer;border:none}
:focus-visible{outline:4px solid var(--link);outline-offset:2px}
/* ---------- Rin surface ---------- */
.rin{min-height:100dvh;position:relative;padding:12px;display:flex;flex-direction:column;align-items:center}
.rin-home-btn{position:absolute;top:12px;left:12px;width:72px;height:72px;border-radius:16px;background:var(--sage);color:var(--ink);font-size:24px;font-weight:700}
.rin-gate{position:absolute;top:12px;right:12px;width:48px;height:48px;background:transparent;display:flex;align-items:center;justify-content:center}
.rin-gate svg{display:block}
.routine-btn{margin-top:96px;width:min(92vw,360px);min-width:280px;min-height:180px;border-radius:24px;background:var(--routine);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px}
.routine-btn .rb-pic svg{width:84px;height:84px}
.routine-btn .rb-label{font-size:36px;font-weight:800;line-height:1.15;max-height:96px;overflow:hidden;text-align:center}
.chain{display:flex;gap:4px;align-items:flex-end;justify-content:center}
.chain .ch{width:32px;height:32px;background:var(--sage);border-radius:6px;display:flex;align-items:center;justify-content:center}
.chain .ch svg{width:28px;height:28px}
.chain .ch-celeb{width:40px;height:40px;background:var(--amber);border-radius:8px}
.chain .ch-celeb svg{width:34px;height:34px}
.request-btn{margin-top:auto;margin-bottom:16px;min-width:240px;min-height:88px;border-radius:22px;background:var(--amber);color:var(--ink);font-size:28px;font-weight:800;padding:10px 22px;max-width:92vw}
.step-pic{margin-top:12dvh;width:min(70vw,340px);height:min(70vw,340px);background:var(--sage);border-radius:28px;display:flex;align-items:center;justify-content:center;border:none}
.step-pic svg{width:78%;height:78%}
.step-label{width:320px;max-width:92vw;min-height:96px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:36px;font-weight:800;line-height:1.2}
@media(min-width:700px){.step-label{width:480px;min-height:112px}.routine-btn{width:360px;min-height:220px}.chain .ch{width:44px;height:44px}.chain .ch svg{width:38px;height:38px}.chain .ch-celeb{width:56px;height:56px}.chain .ch-celeb svg{width:48px;height:48px}}
.rin-back{position:absolute;bottom:16px;left:16px;width:96px;height:96px;border-radius:20px;background:var(--terra);color:#fff;font-size:24px;font-weight:800}
.rin-next{position:absolute;bottom:16px;right:16px;min-width:96px;height:96px;border-radius:20px;background:var(--step);color:#fff;font-size:24px;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px}
.rin-next svg{width:40px;height:40px}
.celeb-wrap{margin-top:10dvh;display:flex;flex-direction:column;align-items:center;animation:prfade .2s linear}
.celeb-pic{width:min(76vw,380px);height:min(76vw,380px);background:var(--amber);border-radius:28px;display:flex;align-items:center;justify-content:center}
.celeb-pic svg{width:80%;height:80%}
.celeb-text{width:320px;max-width:92vw;min-height:96px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:32px;font-weight:800}
@keyframes prfade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.celeb-wrap{animation:none}}
/* ---------- Parent surface ---------- */
.parent{max-width:760px;margin:0 auto;padding:16px 16px 64px}
.parent h1{font-size:24px}.parent h2{font-size:24px;margin-top:28px}.parent h3{font-size:20px}
.p-body{font-size:18px;line-height:1.5}
.p-small{font-size:14px;color:var(--slate)}
.card{background:var(--card);border-radius:16px;padding:18px;margin:14px 0;box-shadow:0 1px 4px rgba(31,42,30,.12)}
.btn{min-height:56px;min-width:120px;border-radius:14px;background:var(--step);color:#fff;font-size:18px;font-weight:700;padding:10px 20px}
.btn2{min-height:56px;min-width:120px;border-radius:14px;background:var(--sage);color:var(--ink);font-size:18px;font-weight:700;padding:10px 20px}
.btn-danger{background:var(--terra);color:#fff}
.row{min-height:48px;display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--sage)}
.row input[type=checkbox]{width:28px;height:28px;flex:none}
input[type=text],input[type=time],input[type=number],textarea,select{font-size:18px;padding:10px;border:2px solid var(--slate);border-radius:10px;background:#fff;color:var(--ink);max-width:100%}
textarea{width:100%;min-height:90px}
.fence{border:3px solid var(--clin);border-radius:12px;padding:14px;background:#fff}
.night-head{background:var(--navy);color:#fff;border-radius:12px;padding:14px}
.night-head .amber{color:var(--amber)}
.draft-note{font-size:14px;color:var(--slate);font-style:italic}
.timer-fire{position:fixed;inset:0;background:var(--cream);z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:20px;text-align:center}
.timer-fire .tf-text{font-size:32px;font-weight:800;max-width:600px}
.gate-card{max-width:440px;margin:10dvh auto;background:var(--card);border-radius:16px;padding:24px;text-align:center}
.ver-line{font-size:18px;padding:18px;border-radius:12px;background:var(--sage);user-select:none;-webkit-user-select:none;touch-action:none;width:100%}
a{color:var(--link)}
details{margin:8px 0}summary{font-size:18px;min-height:48px;display:flex;align-items:center;cursor:pointer}
.kit-row input[type=checkbox]{width:28px;height:28px}
@media print{
 body{background:#fff}.no-print{display:none!important}
 .print-sheet{display:block!important}
 .print-step{display:flex;align-items:center;gap:16px;page-break-inside:avoid;margin:10mm 0}
 .print-step svg{width:90mm;height:90mm;flex:none}
 .print-step .pl{font-size:24pt;font-weight:800}
}
.print-sheet{display:none}
