.planner[data-planner="pets"] { max-width:1180px; padding:26px 0 35px; }
.pets-page { --pet-grade:#a7b6c8; color:var(--text); }
.pets-page [data-rarity="1"] { --pet-grade:#79b679; }
.pets-page [data-rarity="2"] { --pet-grade:#76acd3; }
.pets-page [data-rarity="3"] { --pet-grade:#b68bd6; }
.pets-page [data-rarity="4"] { --pet-grade:#deb56c; }
.pets-header { margin-bottom:26px; }
.pets-header > a { display:inline-flex; align-items:center; min-height:44px; margin-bottom:8px; color:var(--muted); font-size:13px; }
.planner .pets-header h1 { margin:0 0 12px; color:var(--text); font:600 clamp(29px,3vw,39px)/1.15 Inter,system-ui,sans-serif; letter-spacing:-.025em; }
.pets-header > p { max-width:750px; color:var(--muted); font-size:14px; line-height:1.7; }
.planner .pets-roster-section > h2 { margin:0 0 14px; font:600 17px/1.4 Inter,system-ui,sans-serif; color:var(--text); }
.pets-roster { display:flex; gap:10px; padding:0 0 12px; overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:var(--tool-border) transparent; }
.planner .pets-choice { display:flex; flex-direction:column; flex:0 0 111px; min-width:0; min-height:135px; gap:5px; padding:10px 7px; border:1px solid var(--tool-border); border-bottom:3px solid var(--pet-grade); border-radius:5px; background:var(--tool-base); color:var(--text); font:500 13px/1.3 Inter,system-ui,sans-serif; box-shadow:none; }
.pets-choice-art { width:66px; height:66px; object-fit:contain; }
.pets-choice > span { display:block; max-width:100%; overflow-wrap:anywhere; }
.pets-choice small { color:var(--muted); font-size:11px; font-weight:400; }
.planner .pets-choice[aria-pressed="true"] { border-color:var(--pet-grade); background:var(--tool-surface); box-shadow:inset 0 0 0 1px var(--pet-grade); }
.planner .pets-choice:hover { background:var(--tool-surface); border-color:var(--pet-grade); transform:none; }
.pets-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); align-items:start; gap:24px; margin-top:16px; }
.pets-companion,.pets-plan-panel { min-width:0; }
.pets-scene { position:relative; overflow:hidden; border:1px solid color-mix(in srgb,var(--pet-grade) 50%,var(--tool-border)); border-radius:6px; background:radial-gradient(ellipse at 50% 36%,color-mix(in srgb,var(--pet-grade) 9%,var(--tool-surface)),var(--tool-base) 72%); }
.pets-scene > header { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:22px 24px 0; }
.pets-scene > header div > span { color:var(--pet-grade); font-size:12px; }
.planner .pets-scene h2 { margin:6px 0 0; color:var(--text); font:600 29px/1.2 Inter,system-ui,sans-serif; letter-spacing:-.025em; }
.pets-scene [data-pet-current-level] { color:var(--muted); font-size:13px; white-space:nowrap; }
.pets-art-stage { position:relative; display:flex; align-items:center; justify-content:center; height:378px; isolation:isolate; }
.pets-art-stage::after { content:''; position:absolute; z-index:-1; bottom:27px; left:18%; right:18%; height:45px; border-radius:50%; background:radial-gradient(ellipse,#0007,transparent 70%); }
.pets-art-stage[data-art-kind="archive"] { height:auto; aspect-ratio:628/300; margin-top:22px; }
.pets-art-stage[data-art-kind="archive"]::after { display:none; }
.pets-art-stage[data-art-kind="archive"] .pets-body-art { width:100%; height:100%; object-fit:cover; object-position:center; filter:none; }
.pets-art-stage[data-art-kind="model"]::after { display:none; }
.pets-lab-backdrop { position:absolute; z-index:-1; inset:0; width:100%; height:100%; object-fit:cover; object-position:center bottom; }
.pets-art-stage[data-art-kind="model"] .pets-body-art { width:100%; height:100%; object-fit:contain; object-position:center bottom; }
.pets-body-art { display:block; width:88%; height:93%; object-fit:contain; object-position:center 65%; filter:drop-shadow(0 12px 12px #0004); }
.pets-art-pending { padding:50px; color:var(--muted); font-size:13px; text-align:center; }
.pets-motion { position:absolute; inset:0; opacity:0; pointer-events:none; }
.pets-motion.is-ready { opacity:1; }
.pets-idle-loop { width:100%; height:100%; object-fit:contain; object-position:center bottom; }
.pets-art-stage:has(.pets-motion.is-ready) > .pets-body-art { opacity:0; }
.pets-motion-control { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; margin:0 16px 12px; color:var(--muted); font-size:12px; }
.pets-biography { margin:18px 2px 22px!important; color:var(--muted); font-size:13px; line-height:1.75; }
.pets-archive { margin-top:17px; border-top:1px solid var(--tool-border); }
.pets-archive > summary { min-height:44px; padding:13px 0; color:var(--text); font-size:13px; cursor:pointer; }
.pets-archive .pets-biography { margin:8px 0 15px!important; }
.pets-plan-panel { padding:22px; border:1px solid var(--tool-border); border-radius:6px; background:var(--tool-base); }
.planner .pets-plan-panel > header h2 { margin:0 0 7px; color:var(--text); font:600 23px/1.3 Inter,system-ui,sans-serif; letter-spacing:-.015em; }
.pets-plan-panel > header p { color:var(--muted); font-size:13px; line-height:1.65; }
.pets-build-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; margin:22px 0 14px; }
.pets-build-side { min-width:0; }
.planner .pets-build-side h3 { margin:0 0 7px; color:var(--text); font-size:15px; font-weight:600; letter-spacing:0; }
.pets-build-side .p-control { padding:10px 0 18px; }
.pets-build-side .p-control-label { color:var(--muted); font-size:12px; font-weight:400; }
.pets-build-side .p-control-label output { color:var(--text); font-size:15px; font-weight:600; }
.pets-build-side .p-range-row { grid-template-columns:44px minmax(20px,1fr) 44px 45px; gap:5px; }
.planner .pets-build-side .p-step { min-width:44px; min-height:44px; padding:0; border:1px solid var(--tool-border); border-radius:4px; background:var(--tool-surface); color:var(--text); font-size:17px; font-weight:400; }
.planner .pets-build-side input.p-number { min-width:0; min-height:44px; padding:7px 2px; border-radius:4px; background:var(--tool-surface); text-align:center; font-size:12px; font-variant-numeric:tabular-nums; }
.pets-build-side input[type="range"] { width:100%; min-width:0; height:44px; accent-color:var(--tool-highlight); }
.pets-build-side .p-select { gap:8px; color:var(--muted); font-size:11px; font-weight:400; line-height:1.4; }
.planner .pets-build-side select { min-height:44px; padding:8px; border-radius:4px; background:var(--tool-surface); color:var(--text); font-size:12px; }
.pets-progression-help { color:var(--muted); font-size:12px; line-height:1.65; }
.planner .pets-example { min-height:44px; margin:0 0 20px; padding:8px 0; border:0; border-radius:0; background:none; color:var(--tool-highlight); font-size:12px; font-weight:500; text-decoration:underline; text-underline-offset:4px; }
.pets-results { padding-top:22px; border-top:1px solid var(--tool-border); }
.pets-result-heading { display:flex; justify-content:space-between; align-items:baseline; gap:15px; margin-bottom:17px; }
.planner .pets-result-heading h3,.planner .pets-materials h3 { margin:0; color:var(--text); font-size:17px; font-weight:600; letter-spacing:0; }
.pets-result-heading > span { color:var(--muted); font-size:11px; text-align:right; }
.pets-progression-change { display:grid; grid-template-columns:.7fr 1.3fr; gap:16px; margin:0 0 19px; }
.pets-progression-change > div { display:grid; gap:6px; }
.pets-progression-change span { color:var(--muted); font-size:11px; }
.pets-progression-change strong { color:var(--text); font-size:13px; font-weight:500; line-height:1.5; }
.pets-effects-wrap { max-width:100%; overflow-x:auto; }
.pets-effects { width:100%; border-collapse:collapse; font-size:12px; font-variant-numeric:tabular-nums; }
.pets-effects th,.pets-effects td { padding:12px 8px; text-align:right; border-bottom:1px solid var(--tool-border); white-space:nowrap; }
.pets-effects th:first-child { padding-left:0; text-align:left; white-space:normal; }
.pets-effects th:last-child,.pets-effects td:last-child { padding-right:0; }
.pets-effects thead th { color:var(--muted); font-size:11px; font-weight:400; }
.pets-effects tbody th { color:var(--text); font-size:12px; font-weight:500; }
.pets-effects td { color:var(--text); }
.pets-effects td:last-child { color:var(--tool-highlight); }
.pets-main-attributes tbody td { font-size:17px; font-weight:600; }
.pets-breakdown > h4 { margin:16px 0 5px; color:var(--text); font-size:12px; font-weight:500; }
.pets-power { padding:18px 0 21px; }
.pets-power > span { color:var(--muted); font-size:11px; }
.pets-cp-scope { display:inline-block; margin-left:9px; color:var(--muted); font-size:10px; }
.pets-power > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin-top:9px; }
.pets-power div > span { display:grid; gap:5px; color:var(--muted); font-size:11px; }
.pets-power strong { color:var(--text); font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }
.pets-materials { padding:17px 0 6px; border-top:1px solid var(--tool-border); }
.pets-cost-list { list-style:none; margin:8px 0 0!important; padding:0!important; }
.pets-cost-list li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; padding:13px 0; border-bottom:1px solid var(--tool-border); }
.pets-cost-list li:not(:has(img)) { grid-template-columns:minmax(0,1fr) auto; }
.pets-cost-icon { width:30px; height:30px; object-fit:contain; }
.pets-cost-list li > span { color:var(--text); font-size:13px; line-height:1.45; }
.pets-cost-list strong { color:var(--text); font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.pets-empty-cost { padding:14px 0 7px; color:var(--muted); font-size:12px; line-height:1.65; }
.pets-breakdown,.pets-skills { margin-top:18px; border-top:1px solid var(--tool-border); }
.pets-breakdown > summary,.pets-skills > summary { min-height:48px; padding:14px 0; color:var(--text); font-size:13px; font-weight:500; cursor:pointer; }
.pets-note { margin:17px 0 0!important; color:var(--muted); font-size:11px; line-height:1.7; }
.pets-training-attributes { padding:17px 0; }
.planner .pets-training-attributes h4 { margin:0 0 11px; color:var(--text); font-size:13px; font-weight:500; }
.pets-training-attributes > p:not(.pets-note) { display:flex; justify-content:space-between; gap:15px; margin:7px 0; color:var(--muted); font-size:12px; }
.pets-training-attributes strong { font-weight:500; color:var(--text); }
.pets-step-list { max-height:330px; overflow:auto; list-style:none; padding:0!important; margin:0; }
.pets-step-list li { display:grid; gap:5px; padding:12px 0; border-bottom:1px solid var(--tool-border); font-size:12px; line-height:1.5; }
.pets-step-list strong { color:var(--text); font-weight:500; }
.pets-step-list span { color:var(--muted); }
.pets-skills { margin-top:24px; }
.pets-skills-mobile { display:none; }
.pets-video { margin-top:18px; border-top:1px solid var(--tool-border); }
.pets-video summary { min-height:44px; padding:13px 0; color:var(--text); font-size:12px; cursor:pointer; }
.pets-video video { display:block; width:100%; max-height:440px; background:var(--tool-base); }
.pets-skill-list article { display:grid; grid-template-columns:auto minmax(0,1fr); gap:13px; padding:17px 0; border-bottom:1px solid var(--tool-border); }
.pets-skill-list article:not(:has(img)) { grid-template-columns:1fr; }
.pets-skill-icon { width:45px; height:45px; object-fit:contain; }
.pets-skill-level { color:var(--muted); font-size:11px; }
.planner .pets-skill-list h3 { margin:5px 0 7px; color:var(--text); font-size:15px; font-weight:600; }
.pets-skill-list p { color:var(--muted); font-size:12px; line-height:1.7; }
.pets-skill-list small { color:var(--tool-highlight); font-size:11px; line-height:1.5; }
.pets-plan-error { padding:15px 0; color:var(--muted); font-size:13px; line-height:1.7; }
.pets-page :is(button,a,select,input,summary):focus-visible { outline:2px solid var(--tool-highlight); outline-offset:3px; }
@media(max-width:1000px) { .pets-workspace { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:18px; } .pets-plan-panel { padding:19px; } .pets-build-controls { grid-template-columns:1fr; gap:18px; } .pets-art-stage { height:340px; } }
@media(max-width:700px) {
 .planner[data-planner="pets"] { padding:21px 0 30px; }
 .pets-header { margin-bottom:22px; }
 .pets-header > p { font-size:13px; }
 .pets-workspace { display:flex; flex-direction:column; gap:23px; }
 .pets-companion,.pets-plan-panel { width:100%; }
 .pets-roster { gap:8px; }
 .planner .pets-choice { flex-basis:94px; min-height:122px; padding:8px 6px; font-size:12px; }
 .pets-choice-art { width:57px; height:57px; }
 .pets-choice small { font-size:10px; }
 .pets-scene > header { padding:18px 20px 0; }
 .planner .pets-scene h2 { font-size:26px; }
 .pets-art-stage { height:292px; }
 .pets-biography { margin:15px 0 0!important; font-size:12px; }
 .pets-companion .pets-skills { display:none; }
 .pets-skills-mobile { display:block; width:100%; margin-top:0; }
 .pets-plan-panel { padding:19px 16px; }
 .pets-build-controls { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
 .pets-build-side .p-range-row { grid-template-columns:44px minmax(20px,1fr) 44px; gap:5px; }
 .pets-build-side .p-number { grid-column:1/-1; }
 .pets-effects th,.pets-effects td { padding:11px 5px; font-size:11px; }
 .pets-effects thead th { font-size:10px; }
 .pets-effects tbody th { font-size:11px; }
 .pets-power strong { font-size:14px; }
 .pets-progression-change { grid-template-columns:.65fr 1.35fr; gap:13px; }
}
@media(max-width:360px) { .pets-build-controls { grid-template-columns:1fr; } .pets-build-side .p-range-row { grid-template-columns:44px minmax(35px,1fr) 44px 60px; } .pets-build-side .p-number { grid-column:auto; } }
