:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#152941;background:#f4f7fa;font-size:16px;line-height:1.55}
[hidden]{display:none!important}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:12px;background:#1763a3;color:white;padding:.75rem 1.1rem;font-weight:700}button:hover{background:#104d82}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #dc8e33;outline-offset:2px}.quiet{background:transparent;color:#195a91;padding:.5rem}.quiet:hover{background:#eaf2f8}.outline{background:white;color:#195a91;border:2px solid #b2cde2}.outline:hover{background:#eaf2f8}.shell{max-width:1320px;margin:auto;padding:0 1.3rem}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid #d6e0e9}.brand{display:flex;align-items:center;gap:.7rem;font-size:1.3rem;font-weight:850;letter-spacing:-.035em}.brand small{display:block;font-size:.66rem;font-weight:600;letter-spacing:.02em;color:#607388}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#d8eaf7;color:#1763a3;font-size:1.6rem}.top-actions{display:flex;align-items:center;gap:.75rem;color:#53697e}.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:white;padding:.5rem;z-index:4}.login-card{max-width:520px;margin:8vh auto 12vh;padding:2.2rem;background:white;border:1px solid #dce5ed;border-radius:24px;box-shadow:0 18px 50px #183a5710}.login-card h1,.hero h1,.section-heading h1{font-size:clamp(2.1rem,4vw,3.3rem);line-height:1.1;letter-spacing:-.055em;margin:.2rem 0 1rem}.login-card form{display:grid;gap:.5rem;margin-top:1.8rem}.eyebrow{font-size:.8rem;letter-spacing:.13em;text-transform:uppercase;font-weight:800;color:#ad5d2a;margin:0}.error{color:#a22d31;min-height:1.2rem}.tabs{display:flex;flex-wrap:wrap;gap:.3rem;padding:1.2rem 0}.tabs button{background:transparent;color:#49647d}.tabs button.active{background:#dceaf5;color:#144b79}.view{padding-bottom:2rem}.hero{display:flex;align-items:center;justify-content:space-between;gap:2rem;background:#152941;color:white;border-radius:24px;padding:2rem 2.2rem;margin-bottom:1.3rem}.hero p:not(.eyebrow){color:#d2e3f1;max-width:660px}.mission-time{border:1px solid #7898af;border-radius:20px;padding:.7rem 1rem;white-space:nowrap}.mission-time span:first-child{font-size:1.4rem;margin-right:.4rem}.learn-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:1.2rem}.lesson-stack{display:grid;gap:1.2rem;min-width:0}.card{background:white;border:1px solid #dce5ed;border-radius:21px;padding:1.55rem;box-shadow:0 5px 20px #12345208}.card h2{font-size:1.45rem;letter-spacing:-.03em;margin:.2rem 0 .6rem}.card h3{font-size:1.06rem;margin:0 0 .25rem}.card p{margin:.4rem 0 1rem}.topic-card{align-self:start;position:sticky;top:1rem}.skill-list{display:grid;gap:.6rem;margin-top:1rem}.skill-item{display:block;text-align:left;background:#f2f7fb;color:#204861;width:100%;border:1px solid transparent}.skill-item.active{background:#dceaf5;border-color:#86b6d6;color:#123e62}.skill-item small{display:block;font-weight:500;color:#5c7080}.unit-pill{display:inline-block;padding:.24rem .7rem;border-radius:99px;background:#eaf4df;color:#477025;font-size:.8rem;font-weight:800}.lead{font-size:1.13rem;color:#344f63}.muted{color:#62778a;font-size:.91rem}.step{display:flex;align-items:flex-start;gap:.75rem;margin:1.2rem 0}.step p{margin:0}.step-num{flex:none;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#e5eef6;color:#195a91;font-weight:800}.graph-wrap{background:#f7fafc;border:1px solid #d9e6f0;border-radius:17px;padding:1rem;margin:1rem 0}.graph-wrap canvas{width:100%;height:auto;background:white;border-radius:10px;border:1px solid #e3eaf0}.graph-wrap label{display:block;margin-top:.7rem;font-weight:700}.graph-wrap input{width:100%}.audio-row{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-top:1rem}.practice-card{border-top:4px solid #e59b42}.practice-card form,.card form{display:grid;gap:.5rem}.practice-card form{margin-top:1rem}label{font-weight:700;display:block;margin-top:.6rem}input:not([type=checkbox],[type=range],[type=file]),select,textarea{width:100%;border:1px solid #a9bac9;border-radius:10px;padding:.65rem;background:white;color:#152941}input[type=file]{max-width:100%;padding:.7rem;border:1px dashed #9bb7cb;border-radius:10px}.hint{background:#fff4db;border-radius:10px;padding:.8rem}.feedback{border-radius:12px;padding:1rem;margin-top:1rem;background:#e8f4e9}.feedback.try-again{background:#fff2e1}.section-heading{max-width:830px;margin:1rem 0 1.5rem}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-bottom:1.2rem}.upload-list,.intent-list{display:grid;gap:.6rem}.upload-item,.intent-item{padding:.8rem;border:1px solid #d9e4ec;border-radius:12px;margin:.5rem 0}.upload-item button{margin-top:.5rem}.settings-card{max-width:650px}.settings-card label{display:flex;gap:.6rem;align-items:center;padding:.6rem 0}.settings-card input{width:18px;height:18px}footer{border-top:1px solid #d6e0e9;padding:1.5rem 0 2rem;color:#6c8090;font-size:.8rem}body.low-distraction{background:white}body.low-distraction .hero{background:#eff5f8;color:#152941}body.low-distraction .hero p:not(.eyebrow){color:#35516b}body.low-distraction .mission-time{border-color:#aac0d0}body.low-distraction .card{box-shadow:none}body.low-distraction .eyebrow{color:#375e7e}@media(max-width:850px){.learn-grid,.two-col{grid-template-columns:1fr}.topic-card{position:static}.hero{display:block}.mission-time{display:inline-flex;margin-top:.5rem}.shell{padding:0 .8rem}.card{padding:1.2rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.course-map{margin-top:1.2rem;border-top:1px solid #dce5ed;padding-top:1rem}.course-map summary{cursor:pointer;font-weight:700;color:#195a91}.course-map-unit{font-weight:800;margin:1rem 0 .3rem}.course-map-topic{font-size:.82rem;margin:.25rem 0;color:#526d80}.course-map-topic.active{color:#176f44}
.theme-toggle{white-space:nowrap;border:1px solid currentColor}
html[data-theme="dark"]{color-scheme:dark;background:#101923;color:#e7eef5}
html[data-theme="dark"] .topbar,html[data-theme="dark"] footer{border-color:#35485b}
html[data-theme="dark"] .brand small,html[data-theme="dark"] .top-actions,html[data-theme="dark"] footer,html[data-theme="dark"] .muted,html[data-theme="dark"] .skill-item small,html[data-theme="dark"] .course-map-topic{color:#afc2d2}
html[data-theme="dark"] .brand-mark,html[data-theme="dark"] .tabs button.active,html[data-theme="dark"] .step-num{background:#264762;color:#d5eaff}
html[data-theme="dark"] .quiet,html[data-theme="dark"] .tabs button,html[data-theme="dark"] .course-map summary{color:#add8ff}
html[data-theme="dark"] .quiet:hover,html[data-theme="dark"] .outline:hover{background:#294a64}
html[data-theme="dark"] .login-card,html[data-theme="dark"] .card{background:#1b2b3b;border-color:#3a5369;box-shadow:none}
html[data-theme="dark"] .hero{background:#173754}
html[data-theme="dark"] .hero p:not(.eyebrow){color:#d4e4f2}
html[data-theme="dark"] .mission-time{border-color:#94b3cb}
html[data-theme="dark"] .skill-item{background:#243b50;color:#e4f3ff}
html[data-theme="dark"] .skill-item.active{background:#2f5472;border-color:#78a8cd;color:#fff}
html[data-theme="dark"] .unit-pill{background:#32523a;color:#d9f2ce}
html[data-theme="dark"] .lead{color:#d1e3f0}
html[data-theme="dark"] .graph-wrap{background:#203347;border-color:#45627a}
html[data-theme="dark"] .graph-wrap canvas{border-color:#6184a0}
html[data-theme="dark"] .outline{background:#223b52;color:#d4ebff;border-color:#638caf}
html[data-theme="dark"] input:not([type=checkbox],[type=range],[type=file]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#142536;color:#f2f7fb;border-color:#6a8ba5}
html[data-theme="dark"] input[type=file],html[data-theme="dark"] .upload-item,html[data-theme="dark"] .intent-item,html[data-theme="dark"] .course-map{border-color:#4e6c82}
html[data-theme="dark"] .hint{background:#514127;color:#fff1d7}
html[data-theme="dark"] .feedback{background:#214a36;color:#e9f9ec}
html[data-theme="dark"] .feedback.try-again{background:#55402b;color:#fff0dc}
html[data-theme="dark"] .course-map-topic.active{color:#a8e2ba}
html[data-theme="dark"] .error{color:#ff9fa2}
html[data-theme="dark"] body.low-distraction{background:#142231}
html[data-theme="dark"] body.low-distraction .hero{background:#20394e;color:#e7eef5}
html[data-theme="dark"] body.low-distraction .hero p:not(.eyebrow){color:#d0e3f1}
html[data-theme="dark"] body.low-distraction .eyebrow{color:#efbc8e}
.companion{display:grid;grid-template-columns:180px minmax(0,1fr);gap:1.4rem;align-items:center;margin-bottom:1.2rem}
.companion h2{margin:0}.companion-controls>p{margin:.2rem 0 .75rem}
.pet-stage{position:relative;display:grid;place-items:center;min-height:155px;overflow:hidden;border-radius:18px;background:linear-gradient(160deg,#e4f6ff,#fff1dd);border:1px solid #d5e6e9}
.pet-character{z-index:1;font-size:5.4rem;line-height:1;filter:drop-shadow(0 5px 5px #28384b33);transform-origin:center bottom}
.pet-prop{position:absolute;z-index:2;bottom:5px;right:16px;font-size:2.7rem;line-height:1}
.pet-house{font-size:5rem}.pet-character[hidden],.pet-house[hidden]{display:none}
.pet-choices{display:flex;flex-wrap:wrap;gap:.4rem;margin:.55rem 0}
.pet-choices button{background:#ecf4fa;color:#244f6e;border:1px solid #b4cfdf;font-size:.83rem;padding:.43rem .65rem}
.pet-choices button[aria-pressed="true"]{background:#d0e8fb;border:2px solid #3276a4;padding:calc(.43rem - 1px) calc(.65rem - 1px)}
.focus-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin-top:.75rem}
.focus-controls label{margin:0}.focus-controls select{width:auto;min-width:7rem}
.focus-controls strong{font-variant-numeric:tabular-nums;font-size:1.2rem;color:#16609b}
.focus-note{font-size:.79rem}.break-glass{margin-top:.5rem;background:#ad3e3e;border:3px ridge #ffc4be;box-shadow:inset 0 0 0 3px #7e2727,0 3px 8px #4b1f1f33;color:white;text-transform:uppercase;letter-spacing:.05em}
.break-glass:hover{background:#8d2929}.break-confirm{margin-top:.6rem;padding:.8rem;border:2px solid #bd6256;border-radius:12px;background:#fff2ee}.break-confirm p{margin:0 0 .6rem}.break-confirm button{margin:.2rem .4rem .2rem 0}
html[data-theme="dark"] .pet-stage{background:linear-gradient(160deg,#274862,#4d3b4c);border-color:#597c96}
html[data-theme="dark"] .pet-choices button{background:#27445c;color:#e2f1ff;border-color:#6e9ab8}
html[data-theme="dark"] .pet-choices button[aria-pressed="true"]{background:#356384;border-color:#b1d9f3}
html[data-theme="dark"] .focus-controls strong{color:#b2ddff}
html[data-theme="dark"] .break-confirm{background:#473239;color:#fff0e9;border-color:#d89585}
body.focus-active{min-height:100vh}body.focus-active .topbar,body.focus-active .tabs,body.focus-active .hero,body.focus-active footer,body.focus-active .topic-card{display:none}
body.focus-active .learn-grid{grid-template-columns:minmax(0,1fr)}body.focus-active .pet-choices,body.focus-active .focus-note{display:none}
body.focus-active .companion{position:sticky;top:0;z-index:3;padding:.65rem 1rem;grid-template-columns:95px minmax(0,1fr);box-shadow:0 3px 16px #102d4855}
body.focus-active .pet-stage{min-height:80px}body.focus-active .pet-character{font-size:3.5rem}body.focus-active .pet-house{font-size:3.5rem}
.pet-dance .pet-character{animation:pet-dance 1.5s ease-in-out}.pet-spin .pet-character{animation:pet-spin 1.5s ease-in-out}
.pet-bike .pet-character,.pet-walk .pet-character{animation:pet-travel 1.6s ease-in-out}.pet-bike .pet-prop,.pet-walk .pet-prop{animation:pet-travel 1.6s ease-in-out}
.pet-sail .pet-character,.pet-sail .pet-prop{animation:pet-bob 1.5s ease-in-out}.pet-candy .pet-prop{animation:pet-toss 1.5s ease-out}
@keyframes pet-dance{0%,100%{transform:rotate(0) translateY(0)}25%{transform:rotate(-12deg) translateY(-10px)}50%{transform:rotate(12deg) translateY(0)}75%{transform:rotate(-9deg) translateY(-8px)}}
@keyframes pet-spin{to{transform:rotate(360deg)}}
@keyframes pet-travel{0%,100%{transform:translateX(0)}50%{transform:translateX(24px) translateY(-4px)}}
@keyframes pet-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-11px) rotate(7deg)}}
@keyframes pet-toss{0%{transform:translate(-45px,35px) scale(.4);opacity:.2}60%{transform:translate(15px,-70px) scale(1.2);opacity:1}100%{transform:translate(85px,-90px) scale(.6);opacity:0}}
body.reduced-motion .pet-stage *{animation:none!important}
@media(prefers-reduced-motion:reduce){.pet-stage *{animation:none!important}}
@media(max-width:700px){.companion{grid-template-columns:1fr}.pet-stage{min-height:110px}.pet-character{font-size:4.5rem}body.focus-active .companion{grid-template-columns:70px minmax(0,1fr)}body.focus-active .pet-character{font-size:2.8rem}.pet-choices button{font-size:.78rem}}

/* Operator Central inspired lab skin: navy panels, gold actions, compact hierarchy. */
:root{--oc-navy:#001b36;--oc-panel:#0b2542;--oc-border:#2c5479;--oc-gold:#c2a14e;--oc-text:#eef4fa;--oc-muted:#b7c7d7}
html[data-theme="dark"]{background:var(--oc-navy);color:var(--oc-text)}
html[data-theme="dark"] body{background:var(--oc-navy)}
.shell{max-width:1440px}
.topbar{min-height:64px;padding:.65rem 0;border-bottom:1px solid var(--oc-border)}
.brand{font-family:"Josefin Sans",Inter,system-ui,sans-serif;font-size:1.16rem;font-weight:800;letter-spacing:.035em;text-transform:uppercase}
.brand-mark{width:36px;height:36px;border:1px solid var(--oc-gold);border-radius:4px;background:transparent;color:var(--oc-gold)}
.brand small{font-family:Inter,system-ui,sans-serif;font-size:.58rem;letter-spacing:.09em;text-transform:uppercase}
.tabs{padding:.7rem 0;margin-bottom:1rem;border-bottom:1px solid #c9d4df;gap:.35rem}
.tabs button{border-radius:4px;padding:.55rem .85rem;font-size:.88rem}
.tabs button.active{border-bottom:2px solid var(--oc-gold)}
.hero{border-radius:8px;padding:1.3rem 1.5rem;margin-bottom:1rem;background:var(--oc-navy)}
.hero h1,.section-heading h1,.login-card h1{letter-spacing:-.035em}
.card,.login-card{border-radius:8px;box-shadow:none;padding:1.25rem}
.card h2{font-size:1.2rem;letter-spacing:0}
.skill-item{border-radius:5px;padding:.65rem .75rem}
.skill-list{gap:.35rem}
.unit-pill,.mission-time{border-radius:4px}
button{border-radius:5px;background:var(--oc-gold);color:var(--oc-navy)}
button:hover{background:#d4b667;color:var(--oc-navy)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:var(--oc-gold)}
.eyebrow{color:#aa8130;font-size:.72rem;letter-spacing:.12em}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .tabs,html[data-theme="dark"] footer{border-color:var(--oc-border)}
html[data-theme="dark"] .card,html[data-theme="dark"] .login-card{background:var(--oc-panel);border-color:var(--oc-border)}
html[data-theme="dark"] .hero{background:#08213d;border:1px solid var(--oc-border)}
html[data-theme="dark"] .brand small,html[data-theme="dark"] .top-actions,html[data-theme="dark"] .muted,html[data-theme="dark"] .skill-item small,html[data-theme="dark"] footer{color:var(--oc-muted)}
html[data-theme="dark"] .tabs button{color:var(--oc-text);background:transparent}
html[data-theme="dark"] .tabs button.active{background:var(--oc-panel);color:#f5d889;border-bottom-color:var(--oc-gold)}
html[data-theme="dark"] .skill-item{background:#123454;color:var(--oc-text);border:1px solid var(--oc-border)}
html[data-theme="dark"] .skill-item.active{background:#204567;border-color:var(--oc-gold)}
html[data-theme="dark"] .quiet,html[data-theme="dark"] .course-map summary{color:#f1d78e;background:transparent}
html[data-theme="dark"] .quiet:hover{background:#173b5c}
html[data-theme="dark"] input:not([type=checkbox],[type=range],[type=file]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#071d34;border-color:var(--oc-border);color:var(--oc-text);border-radius:4px}
html[data-theme="dark"] .graph-wrap{background:#102e4b;border-color:var(--oc-border);border-radius:6px}
html[data-theme="dark"] .unit-pill{background:#233f55;color:#f5d889}
html[data-theme="dark"] .pet-choices button{background:#173b5c;color:#e6f0fa;border-color:var(--oc-border)}
html[data-theme="dark"] .pet-choices button[aria-pressed="true"]{background:#294c6b;border-color:var(--oc-gold)}
.intent-item{border-radius:5px}.intent-meta{font-size:.75rem;color:#677f92;margin:.25rem 0}.intent-detail{display:grid;grid-template-columns:minmax(110px,32%) 1fr;gap:.35rem .75rem;font-size:.88rem}.intent-detail dt{font-weight:750}.intent-detail dd{margin:0;white-space:pre-wrap}.intent-item details{margin:.6rem 0}.intent-item summary{cursor:pointer;font-weight:700}.intent-item ol{font-size:.78rem;padding-left:1.1rem}
.course-map-resource{display:inline-block;margin-left:.5rem;color:#125b96;text-decoration:underline;text-underline-offset:2px}
html[data-theme="dark"] .course-map-resource{color:#f0d288}
html[data-theme="dark"] .intent-meta{color:var(--oc-muted)}
@media(max-width:700px){.intent-detail{grid-template-columns:1fr}.intent-detail dd{margin-bottom:.55rem}}
.practice-modes{display:flex;flex-wrap:wrap;gap:.45rem;margin:.8rem 0}
.practice-modes button[aria-pressed="true"]{background:var(--oc-gold);color:var(--oc-navy);border-color:var(--oc-gold)}
.sprint-status{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-variant-numeric:tabular-nums;margin:.7rem 0 .35rem}
.sprint-track{height:10px;background:#b9c7d4;border-radius:3px;overflow:hidden}
.sprint-track>div{height:100%;width:100%;background:var(--oc-gold);transition:width .1s linear}
.sprint-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:1rem 0}
.sprint-choice{min-height:72px;white-space:normal;text-align:left;font-size:1.05rem;background:#e7edf3;color:#122c43;border:2px solid #9db2c3}
.sprint-choice:hover:not(:disabled){background:#d3e4f1;color:#102b44;border-color:var(--oc-gold)}
.sprint-choice.eliminated{opacity:.25;text-decoration:line-through;transition:opacity .35s ease}
.sprint-choice:disabled{cursor:default}
.sprint-result{font-weight:800;margin-top:.7rem}
html[data-theme="dark"] .sprint-track{background:#32516b}
html[data-theme="dark"] .sprint-choice{background:#163956;color:#f1f6fa;border-color:#42708e}
html[data-theme="dark"] .sprint-choice:hover:not(:disabled){background:#265477;color:#fff;border-color:var(--oc-gold)}
body.reduced-motion .sprint-track>div,body.reduced-motion .sprint-choice.eliminated{transition:none}
@media(prefers-reduced-motion:reduce){.sprint-track>div,.sprint-choice.eliminated{transition:none}}
@media(max-width:600px){.sprint-choices{grid-template-columns:1fr}}

/* Original desk companions: a small scene, individual homes, and quiet motion. */
.hero{padding:.75rem 1.2rem;margin-bottom:.75rem}
.hero h1{font-size:clamp(1.55rem,2.5vw,2.25rem);margin:.15rem 0 .35rem}
.hero p:not(.eyebrow){margin:.2rem 0}
.companion{grid-template-columns:156px minmax(0,1fr);gap:1rem;padding:.85rem 1rem;margin-bottom:.8rem}
.companion-controls>p{margin:.15rem 0 .4rem}
.pet-stage{min-height:145px;border-radius:16px;background:linear-gradient(160deg,#d9eff0,#f7d9cc 82%);isolation:isolate}
html[data-theme="dark"] .pet-stage{background:linear-gradient(160deg,#31566a,#5e4d62 82%)}
.pet-ground{position:absolute;bottom:-25px;left:-12%;width:124%;height:53px;border-radius:50%;background:#9dc2af99}
.pet-sun{position:absolute;top:14px;right:17px;width:24px;height:24px;border-radius:50%;background:#ffebad;box-shadow:0 0 0 8px #ffebad55}
.pet-character,.pet-house{display:block;position:relative;z-index:1;width:113px;height:124px;filter:drop-shadow(0 8px 5px #312b3750)}
.pet-character svg,.pet-house svg{width:100%;height:100%}
.pet-character{animation:pet-idle 4s ease-in-out infinite;transform-origin:center 88%}
.pet-house{width:132px;height:112px;animation:house-breathe 5s ease-in-out infinite}
.pet-prop{z-index:3;right:16px;top:4px;bottom:auto;color:#fff3a2;font-size:2.5rem;text-shadow:0 2px 6px #4d4c60}
.pet-choices{gap:.35rem;margin:.35rem 0}
.pet-choices button,.pet-choices button[aria-pressed="true"]{display:flex;align-items:center;gap:.28rem;min-width:89px;text-align:left;padding:.24rem .4rem;border-width:1px;border-radius:12px;font-size:.8rem;line-height:1.05}
.pet-choices button[aria-pressed="true"]{border-width:2px;padding:calc(.24rem - 1px) calc(.4rem - 1px)}
.pet-choices button.at-home{opacity:.78}
.pet-choice-art{flex:none;width:31px;height:33px}
.pet-choice-art svg{width:100%;height:100%}
.pet-choice-state{display:block;font-size:.65rem;font-weight:500;margin-top:.16rem}
#tuck-pet{padding:.42rem .68rem;font-size:.8rem}
.focus-controls{display:inline-flex;margin:.2rem 0 0 .55rem}
.focus-controls select{padding:.4rem;min-width:6.5rem}
.focus-controls button{padding:.48rem .7rem}
.focus-note{margin-top:.2rem!important}
body.focus-active .pet-stage{min-height:80px}
body.focus-active .pet-character,body.focus-active .pet-house{height:72px;width:73px}
body.focus-active .pet-sun{width:13px;height:13px;top:7px;right:8px}
.pet-celebrate .pet-character{animation:pet-cheer 1.1s ease-in-out 1}
@keyframes pet-idle{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
@keyframes house-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes pet-cheer{0%,100%{transform:translateY(0) rotate(0)}28%{transform:translateY(-16px) rotate(-12deg)}65%{transform:translateY(-9px) rotate(12deg)}}
body.reduced-motion .pet-stage *,body.reduced-motion .pet-choice-art *{animation:none!important}
@media(prefers-reduced-motion:reduce){.pet-stage *,.pet-choice-art *{animation:none!important}}
@media(max-width:700px){.companion{grid-template-columns:1fr}.pet-stage{min-height:120px}.focus-controls{display:flex;margin:.55rem 0 0}.pet-choices button{min-width:82px}}
.graph-wrap canvas{display:block;max-width:680px;margin-inline:auto}
.pet-stage{min-height:168px;background:radial-gradient(circle at 84% 25%,#fff2b9 0 13px,transparent 14px),linear-gradient(160deg,#dceaf4,#f8dce3 82%)}
html[data-theme="dark"] .pet-stage{background:radial-gradient(circle at 84% 25%,#ffe9aa 0 13px,transparent 14px),linear-gradient(160deg,#476987,#785e79 82%)}
.pet-sun{display:none}
.pet-character{width:145px;height:153px}
.pet-house{width:151px;height:145px}
.pet-character img,.pet-house img,.pet-choice-art img{display:block;width:100%;height:100%;object-fit:contain;user-select:none}
.pet-choices button,.pet-choices button[aria-pressed="true"]{min-width:104px;gap:.32rem}
.pet-choice-art{width:42px;height:43px}
.pet-choices button:hover .pet-choice-art{transform:rotate(-7deg) scale(1.12);transition:transform .2s ease}
.pet-ground{background:#b3cabb88}
body.focus-active .pet-character,body.focus-active .pet-house{height:76px;width:81px}
body.reduced-motion .pet-choices button:hover .pet-choice-art{transform:none;transition:none}
@media(prefers-reduced-motion:reduce){.pet-choices button:hover .pet-choice-art{transform:none;transition:none}}
@media(max-width:700px){.pet-stage{min-height:145px}.pet-character,.pet-house{height:137px;width:139px}.pet-choices button,.pet-choices button[aria-pressed="true"]{min-width:92px}}
