.pet-overlay{position:fixed;top:0;left:0;right:0;bottom:0;inset:0;z-index:12000;background:#080e1bd9;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;color:#c4d5ef;font:15px/1.5 system-ui,sans-serif;overscroll-behavior:contain}
.pet-dialog{width:850px;max-width:100%;max-height:94vh;max-height:94dvh;background:#17243d;border:1px solid #60799d;border-radius:16px;box-shadow:0 20px 80px #0009;display:flex;flex-direction:column;overflow:hidden}
.pet-dialog *{box-sizing:border-box}.pet-dialog header{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;background:#243451}.pet-dialog h2,.pet-dialog h3,.pet-dialog h4{margin:0 0 10px;color:#f0d995}.pet-dialog h2{margin:0;font-size:23px}.pet-dialog button{cursor:pointer;border:1px solid #647eaa;border-radius:8px;background:#243957;color:#c4d5ef;padding:9px 15px;font:inherit;min-height:40px}.pet-dialog button:hover:not(:disabled){background:#354f77}.pet-dialog button:disabled{opacity:.48;cursor:default}.pet-dialog button:focus-visible,.pet-dialog input:focus-visible,.pet-dialog select:focus-visible{outline:2px solid #f6d66b;outline-offset:2px}.pet-dialog .selected{border-color:#f4d66c;background:#38577e}.pet-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 22px;font-size:13px}.pet-summary button{margin-left:auto}.pet-dialog nav{display:flex;gap:10px;padding:0 22px 12px}.pet-notice{padding:10px 22px;background:#101c30;color:#bbcce6;font-size:13px;display:flex;align-items:center;gap:12px;justify-content:space-between}.pet-notice button{padding:4px 12px;min-width:58px}.pet-body{overflow:auto;padding:18px 22px;min-height:0;overscroll-behavior:contain}.pet-toolbar{display:flex;gap:10px;margin-bottom:15px}.pet-dialog input,.pet-dialog select{border:1px solid #526d99;background:#101c30;color:#c4d5ef;padding:10px;border-radius:7px;font:inherit;max-width:100%;min-height:42px}.pet-toolbar input{flex:1;min-width:0}.pet-cards{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 15px}.pet-dialog .pet-card{flex:0 0 165px;display:flex;flex-direction:column;align-items:center;gap:5px;white-space:normal}.pet-card img{width:64px;height:64px;object-fit:contain}.pet-card small{font-size:11px}.pet-detail{padding-top:15px}.pet-detail progress{width:100%;height:13px;accent-color:#729ede}.pet-detail p{margin:9px 0}.pet-muted,.pet-action small{color:#9eafc9}.pet-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.pet-action{display:flex;flex-direction:column;gap:7px;margin:8px 0}.pet-action small{font-size:12px}.pet-binding,.pet-skills{background:#111e34;border:1px solid #3b5277;border-radius:10px;padding:16px;margin-top:15px}.pet-binding input,.pet-binding select{width:100%;margin:8px 0}.pet-skills p{font-size:13px}.pet-skills small{color:#c9be96}@media(max-width:600px){.pet-overlay{padding:6px}.pet-dialog{max-height:98vh;max-height:98dvh;border-radius:10px}.pet-dialog header,.pet-summary,.pet-notice{padding:10px 14px}.pet-body{padding:12px 14px}.pet-actions{grid-template-columns:repeat(2,1fr)}.pet-summary{gap:6px}.pet-summary span{font-size:12px}.pet-dialog h2{font-size:18px}.pet-dialog nav{padding:0 14px 10px}.pet-dialog .pet-card{flex-basis:140px}.pet-notice{font-size:12px}}

/* Reuse the native treasure panel artwork and blue tab/button family. */
.pet-dialog{box-sizing:border-box;border-radius:3px;border:12px solid transparent;border-image:url(/treasure-pavilion/assets/bg_24.png) 15 fill stretch;background:#17243d}.pet-dialog header{background:linear-gradient(#2c4265,#192a47);border-bottom:1px solid #647eaa}.pet-dialog button{border-radius:3px;background:#243957 url(/treasure-pavilion/assets/btn_no.png) center/100% 100% no-repeat;border-color:#54719c;color:#9ff3ff}.pet-dialog .selected{color:#f0d995;border-color:#bdac7d}.pet-binding,.pet-skills{border-radius:3px}.pet-detail progress{accent-color:#729ede}
