.pet-page-head,.pet-tools,.pet-actions,.pet-level-line,.pet-style-tabs{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pet-page-head{justify-content:space-between;margin-bottom:18px}.pet-page-head h2{font-size:26px;margin:4px 0}
.pet-eyebrow{font-size:11px;color:#647d7a;margin:0;font-weight:700;letter-spacing:0}
.pet-tools button{font-size:13px;min-height:40px}.pet-tools .lucide{width:17px;height:17px}
body:not(.auth-screen) #petsPane{--pet-accent:#a65078;--pet-ink:#4b3949;--pet-line:#e6cfdc;--pet-paper:#fcf1f5;padding:24px;background:#fffcf9f5}
body:not(.auth-screen) #petsPane[data-pet-style="mecha"]{--pet-accent:#237887;--pet-ink:#24444c;--pet-line:#b9d6dc;--pet-paper:#edf5f7}
.pet-style-tabs{margin-bottom:12px;gap:4px;border-bottom:1px solid var(--pet-line);padding-bottom:12px}
.pet-style-tabs button{background:transparent;border:1px solid transparent;color:var(--pet-ink);font-size:14px;min-height:44px;padding:10px 18px;display:flex;gap:8px;align-items:center}
.pet-style-tabs button[aria-pressed="true"]{background:var(--pet-paper);border-color:var(--pet-line);color:var(--pet-accent)}
.pet-style-tabs .lucide{width:18px;height:18px}.pet-stage{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr);gap:30px;align-items:center;padding:12px 0 26px;border-bottom:1px solid var(--pet-line)}
.pet-world{min-width:0;position:relative}.pet-scene{height:360px;width:100%;position:relative;touch-action:pan-y;overflow:hidden}
.pet-scene canvas,.pet-mini-scene canvas{display:block;width:100%;height:100%;outline:0}
.pet-stage-caption{text-align:center;font-size:13px;color:#697b78;margin:0 0 14px;min-height:20px}
.pet-actions{justify-content:center;gap:10px}.pet-actions button{width:44px;height:44px;display:grid;place-items:center;padding:9px;border:1px solid var(--pet-line);color:var(--pet-accent);background:var(--pet-paper);border-radius:8px}
.pet-actions .lucide{width:21px;height:21px}.pet-profile h3{font-size:25px;margin:7px 0;color:var(--pet-ink);overflow-wrap:anywhere}
.pet-profile>p:not(.pet-eyebrow){font-size:13px;line-height:1.65}.pet-level-line{justify-content:space-between;margin:18px 0 8px}.pet-level-line strong{font-size:27px;color:var(--pet-accent)}.pet-level-line span{font-size:13px;color:var(--pet-ink)}
.pet-profile progress{display:block;appearance:none;width:100%;height:7px;border:0;background:#e4e8e1;border-radius:4px;overflow:hidden}.pet-profile progress::-webkit-progress-bar{background:#e4e8e1}.pet-profile progress::-webkit-progress-value{background:var(--pet-accent)}.pet-profile progress::-moz-progress-bar{background:var(--pet-accent)}
#petForm{display:grid;gap:14px;margin:20px 0 10px}#petForm label{font-size:13px}#petForm input:not([type="checkbox"]){height:44px;border-color:var(--pet-line)}
#petForm .pet-check{display:flex;align-items:center;gap:9px;font-weight:400;margin:0}#petForm .pet-check input{width:18px;height:18px;accent-color:var(--pet-accent);flex-shrink:0}
#petSave{display:flex;justify-content:center;align-items:center;gap:9px;background:var(--pet-accent);border-color:var(--pet-accent);min-height:44px}#petSave .lucide{width:18px;height:18px}.pet-rule{font-size:11px!important;color:#718279}
.pet-growth,.pet-catalog{padding:24px 0;border-bottom:1px solid var(--pet-line)}.pet-growth h3,.pet-catalog h3{font-size:18px;margin:0}
.pet-growth-pages{display:flex;gap:4px;border-bottom:1px solid var(--pet-line);padding-bottom:10px;margin:14px 0}
.pet-growth-pages button{flex:1;min-height:40px;background:transparent;color:var(--pet-ink);border:1px solid transparent;font-size:13px;padding:8px 5px}
.pet-growth-pages button[aria-pressed="true"]{background:var(--pet-paper);border-color:var(--pet-line);color:var(--pet-accent)}
.pet-growth-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.pet-growth-steps button{padding:12px 4px;min-height:92px;background:var(--pet-paper);border:1px solid var(--pet-line);color:var(--pet-ink);display:flex;flex-direction:column;align-items:center;gap:6px}
.pet-growth-steps button[aria-pressed="true"]{border-color:var(--pet-accent);box-shadow:inset 0 -3px var(--pet-accent)}.pet-growth-steps .lucide{width:20px;height:20px}.pet-growth-steps small{font-size:10px;font-weight:400;color:#69827c}
.pet-growth-steps button.is-locked{opacity:1;background:#39434a;border-color:#4c5a63;color:#e0e6e9;cursor:not-allowed;box-shadow:none}
.pet-growth-steps button.is-locked small{color:#c0ccd2}.pet-growth-steps button.is-current:not([aria-pressed="true"]){border-color:var(--pet-accent)}
.pet-filter{margin:0;max-width:150px}.pet-filter select{min-height:40px;font-size:13px}
.pet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pet-choice{min-width:0;text-align:left;position:relative;display:flex;flex-direction:column;gap:4px;padding:10px 12px 16px;background:#fff;border:1px solid var(--pet-line);border-radius:8px;color:var(--pet-ink)}
.pet-choice img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:var(--pet-paper);border-radius:4px;margin-bottom:6px}.pet-choice strong{font-size:14px;overflow-wrap:anywhere}.pet-choice small{font-size:11px;line-height:1.55;font-weight:400;color:#71817b;overflow-wrap:anywhere}
.pet-choice[aria-pressed="true"]{border:2px solid var(--pet-accent);padding:9px 11px 15px;background:var(--pet-paper)}.pet-adopted-mark{position:absolute;top:15px;left:15px;padding:4px 6px;background:#2c675c;color:#fff;font-size:10px;border-radius:3px}
.pet-dialog{width:min(500px,calc(100% - 24px));max-height:85vh;max-height:85dvh;overflow:auto;padding:24px;border:1px solid #d8c3a1;border-radius:8px;color:#354a42;background:#fffdf7}
.pet-dialog h2{font-size:21px;margin:0 0 12px}.pet-dialog>p{line-height:1.8;overflow-wrap:anywhere}.pet-dialog .dialog-actions{flex-wrap:wrap}.pet-dialog .dialog-actions button{min-height:44px}
.pet-help-dialog[open]{display:flex;flex-direction:column;height:min(640px,85vh);height:min(640px,85dvh)}.pet-help-dialog .panel-head{margin-bottom:12px;flex-shrink:0}.pet-help-dialog .panel-head h2{margin-bottom:4px}.pet-help-dialog .panel-head .hint{margin:0;font-size:11px}
.pet-chat-log{flex:1;min-height:120px;overflow-y:auto;border-block:1px solid #dae0cf;padding:10px 0 16px;overscroll-behavior:contain}
.pet-chat{background:#eaf3e8;border:1px solid #d2e1d1;padding:12px 14px;border-radius:8px;font-size:14px;line-height:1.8;margin:12px 20px 8px 0;overflow-wrap:anywhere}.pet-chat.mine{background:#f4e8ed;border-color:#e5d0d9;margin-left:40px;margin-right:0}
.pet-chat-links{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}.pet-chat-links button{font-size:12px;min-height:36px}
.pet-help-topics{display:flex;gap:6px;flex-wrap:wrap;padding:12px 0}.pet-help-topics button{padding:6px 8px;font-size:12px;min-height:34px;background:#f3f6ed;color:#4e695f;border:1px solid #d7dfca;font-weight:400}
#petChatForm{display:flex;gap:8px;align-items:center}#petChatInput{min-width:0;flex:1;font-size:14px}#petChatForm button{flex:0 0 44px;height:44px}
.pet-companion{display:flex;gap:12px;align-items:center;padding:8px 0;border-block:1px solid #d8e3d6;margin:6px 0 16px;min-height:82px}.pet-companion>div:last-child{min-width:0}.pet-mini-scene{flex:0 0 92px;height:92px;width:92px;position:relative;overflow:hidden;pointer-events:none}.pet-companion-name{font-size:12px;color:#3f7866}.pet-companion-message{font-size:14px;line-height:1.65;margin:3px 0;overflow-wrap:anywhere}
.pet-speaking{display:inline-block;font-size:11px;color:#867236}.pet-companion.is-speaking{border-bottom-color:#bd9e65}.pet-companion.is-speaking .pet-companion-name{color:#a06442}
#petQuickOpen{font-size:12px;max-width:100%;min-height:36px;margin-left:auto;white-space:normal;text-align:left;display:flex;align-items:center;gap:6px}#petQuickOpen .lucide{flex:0 0 17px;width:17px;height:17px}#petQuickLabel{overflow-wrap:anywhere}
.pet-fallback{width:100%;height:100%;object-fit:contain}.pet-fallback-note{position:absolute;bottom:0;left:0;width:100%;text-align:center;font-size:10px;color:#617669;background:#ffffffb8}
@media(max-width:1100px){.pet-stage{grid-template-columns:minmax(0,1fr) minmax(230px,.9fr);gap:18px}.pet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pet-scene{height:310px}}
@media(max-width:760px){.pet-nav{display:none!important}body:not(.auth-screen) #petsPane{padding:18px 12px}.pet-page-head{gap:12px}.pet-page-head h2{font-size:22px}.pet-tools{gap:8px}.pet-tools button{padding:8px;font-size:12px}.pet-stage{grid-template-columns:minmax(0,1fr);gap:16px}.pet-scene{height:300px}.pet-profile{padding:0 4px}.pet-profile h3{font-size:23px}.pet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pet-choice{padding:8px 8px 12px}.pet-choice[aria-pressed="true"]{padding:7px 7px 11px}.pet-choice strong{font-size:13px}.pet-growth-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.pet-dialog{padding:18px}.pet-style-tabs{gap:0}.pet-style-tabs button{padding:10px 12px;font-size:13px}.pet-companion{gap:8px}.pet-mini-scene{width:72px;height:72px;flex-basis:72px}.pet-companion-message{font-size:12px}#petQuickOpen{margin-left:0}.pet-page-head .pet-eyebrow{font-size:10px}}
@media(prefers-reduced-motion:reduce){.pet-fallback{animation:none}}
.roster-person .roster-pet{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:9px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.roster-pet.is-muted{color:#748079}.roster-pet.is-adopted{color:#2c675c}
.roster-pet .lucide{width:15px;height:15px;flex-shrink:0}
.roster-pet-state{display:inline-flex;align-items:center;gap:5px;font-weight:600;white-space:nowrap}
.roster-pet span>small{display:block;color:#687b72;font-size:11px}
.roster-summary-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
.roster-summary-line .hint{margin:0;line-height:1.7}.roster-summary-line button{flex-shrink:0}
