.pet163-dialog{width:min(880px,96vw);max-height:90dvh;overflow:auto;border:1px solid #d6bf96;border-radius:16px;background:#fffaf0;color:#624a2e;padding:16px;font:14px/1.5 system-ui;box-sizing:border-box}.pet163-dialog::backdrop{background:#29201688}.pet163-dialog *{box-sizing:border-box}.pet163-head{position:sticky;top:-16px;z-index:4;background:#fffaf0;display:flex;gap:8px;align-items:center;padding:10px 0;flex-wrap:wrap;border-bottom:1px solid #e4d2ad}.pet163-head strong{font-size:18px;margin-right:auto}.pet163-dialog button,.pet163-btn{font:inherit;border:1px solid #d5b98a;border-radius:8px;background:linear-gradient(#fff9ed,#efdfc0);color:#715333;padding:7px 12px;cursor:pointer}.pet163-dialog button:disabled{opacity:.5;cursor:wait}.pet163-dialog .active,.pet163-gold{background:linear-gradient(#f7db9a,#e9bd67)!important}.pet163-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.pet163-card{border:1px solid #ddc59c;border-radius:12px;background:linear-gradient(#fff9e9,#f7ecd5);padding:12px;min-width:0;text-align:center;display:flex;flex-direction:column;gap:6px}.pet163-card svg{width:100%;height:125px;display:block}.pet163-card strong{font-size:14px}.pet163-card small{font-size:12px;line-height:1.6}.pet163-card button{margin-top:auto}.pet163-note{padding:10px 0;font-size:12px;color:#8b7656}.pet163-status{color:#aa6f2c;min-height:22px}.pet163-row{display:flex;gap:7px;flex-wrap:wrap}.pet163-close{flex:0 0 32px;width:32px;height:32px;padding:0!important;border-radius:50%!important;display:grid;place-items:center;line-height:1;font-size:20px!important}.pet163-card input,.pet163-card select{width:100%;min-width:0;font:inherit;border:1px solid #d6bf96;border-radius:6px;padding:7px;background:white}.pet163-card label{font-size:12px}.pet163-card input[type=checkbox]{width:auto}.pet163-card .pet163-row button{flex:1;margin:0;padding:6px}.pet163-orders{border-collapse:collapse;width:100%;font-size:12px}.pet163-orders td,.pet163-orders th{padding:9px 5px;border-bottom:1px solid #e7d7ba;text-align:left;overflow-wrap:anywhere}.pet163-mobile{overflow:auto}.pet163-editor{width:min(520px,95vw)}.pet163-editor label{display:block;margin:12px 0}.pet163-editor input,.pet163-editor select,.pet163-editor textarea{width:100%;padding:9px;font:inherit;font-size:16px;border:1px solid #d6bf96;border-radius:7px;box-sizing:border-box}.pet163-editor input[type=checkbox]{width:auto}@media(max-width:600px){.pet163-dialog{padding:12px;width:96vw}.pet163-head{top:-12px}.pet163-grid{gap:7px}.pet163-card{padding:8px}.pet163-card svg{height:95px}.pet163-card button{padding:7px 5px;font-size:12px}.pet163-card strong{font-size:13px}.pet163-head strong{font-size:16px}.pet163-head button{font-size:12px;padding:7px}.pet163-grid.admin163{grid-template-columns:repeat(2,minmax(0,1fr))}}

.pet164-value{font-size:12px;line-height:1.7;display:flex;flex-direction:column;gap:2px}.pet164-value b{color:#a35e19;background:#f7e9bd;border-radius:6px;padding:3px}.pet164-value small{font-size:10px;color:#8a7255}@media(max-width:600px){.pet163-card svg{height:85px}.pet163-card small{font-size:11px}.pet164-value{font-size:10px}.pet164-value small{font-size:9px}.pet164-value b{font-size:10px}}

.pet164-best{font-size:10px;color:#fff5cf;background:#937333;border-radius:4px;padding:2px 4px;align-self:center}

.pet163-dialog{max-width:96vw}.pet163-status:empty{display:none}.pet163-note{padding:7px 0}.pet163-grid{margin-top:6px}.pet163-card{gap:4px}.pet164-value{line-height:1.45;gap:1px}@media(max-width:600px){.pet163-card{padding:7px;gap:3px}.pet163-card svg{height:65px}.pet163-card strong{font-size:12px}.pet163-card>small{font-size:10px}.pet164-value b{padding:2px}.pet164-value small{line-height:1.4}.pet163-note{font-size:11px}.pet163-card button{font-size:11px;padding:6px 4px}.pet164-best{font-size:9px}}

.pet167-actions{display:flex;flex-direction:column;gap:4px;margin-top:auto}.pet167-actions button{margin:0}.pet167-free{background:#fae6ad;color:#966523;border:1px solid #e0c17c;padding:4px;border-radius:6px;font-size:11px}.pet167-halo{--halo:#eac46a;width:100%;height:85px;position:relative;display:grid;place-items:center;margin:auto}.pet167-halo-2{--halo:#64c5be}.pet167-halo-3{--halo:#b998e4}.pet167-halo-4{--halo:#e9a5c0}.pet167-halo i{position:absolute;width:60px;height:60px;border:2px solid var(--halo);border-radius:50%;box-shadow:0 0 12px var(--halo),inset 0 0 12px var(--halo),0 0 0 6px #fff6}.pet167-halo span{position:relative;color:#927347;font-size:18px;background:#fff9e5b0;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}.pet167-shop .pet163-note{line-height:1.6}.pet167-shop .pet163-card svg{height:65px}.pet167-shop .pet163-card strong{font-size:12px}.pet167-shop .pet163-card small{font-size:10px}.pet167-shop .pet163-status{font-size:12px}.pet167-shop .pet164-value{font-size:10px}.pet167-shop .pet163-card button{font-size:11px;padding:6px 4px}.pet167-shop .pet163-card{gap:4px}.pet167-shop .pet163-grid{align-items:stretch}@media(max-width:600px){.pet167-shop .pet167-free{font-size:10px}.pet167-shop .pet167-halo{height:75px}.pet167-shop .pet167-halo i{width:50px;height:50px}}

.pet168-tabs{display:flex;border-bottom:1px solid #d4ba8d;margin-top:9px;gap:18px}.pet168-tabs[hidden]{display:none}.pet163-dialog .pet168-tabs button{border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:none!important;box-shadow:none!important;padding:8px 12px;color:#987b54;font-weight:600}.pet163-dialog .pet168-tabs button.active{border-bottom-color:#b58330!important;color:#845921;background:none!important}.pet163-dialog{touch-action:pan-x pan-y;overscroll-behavior:contain}.pet163-dialog input,.pet163-dialog select{font-size:16px!important}

.pet170-preview{display:flex;align-items:center;justify-content:center;gap:12px;background:radial-gradient(ellipse,#fff8e9,#f1e8d3);border:1px solid #e7d3af;border-radius:8px;margin-top:8px;min-height:100px}.pet170-preview>[data-preview170]{width:100px;height:100px}.pet170-preview svg{width:100%;height:100%}.pet170-preview small{font-size:11px;color:#896a41;max-width:45%}.pet167-shop .pet163-card>svg{height:44px!important}.pet167-shop .pet163-card{padding:6px;gap:3px}.pet167-shop .pet163-card strong{font-size:11px}.pet167-shop .pet163-card button{padding:5px 3px;font-size:10px}@media(max-height:650px){.pet170-preview{min-height:76px}.pet170-preview>[data-preview170]{width:76px;height:76px}}

.pet174-shop[open]{display:flex;flex-direction:column;height:min(720px,90dvh);max-height:90dvh;overflow:hidden!important;padding:12px}.pet174-shop>.pet163-head{position:static;flex:none;padding:7px 0}.pet174-shop>.pet170-preview{flex:none;margin-top:8px;min-height:100px}.pet174-shop>.pet168-tabs,.pet174-shop>[data-retry-row]{flex:none}.pet174-shop>[data-retry-row][hidden]{display:none!important}.pet174-shop .pet174-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 2px 4px;scrollbar-width:thin}.pet174-shop .pet174-scroll .pet163-grid{align-content:start}.pet174-shop .pet174-equipped{display:flex;align-items:center;gap:5px;max-width:60%;min-width:0}.pet174-shop .pet174-equipped small{max-width:none;overflow-wrap:anywhere}.pet174-shop .pet174-remove{display:grid;place-items:center;width:19px;height:19px;min-height:19px;flex:none;border:1px solid #cbb58e;border-radius:50%;padding:0;background:#fff9ed;color:#95734c;font-size:15px;line-height:1;box-shadow:none}.pet174-shop .pet174-remove[hidden]{display:none!important}@media(max-height:650px){.pet174-shop>.pet170-preview{min-height:76px}.pet174-shop .pet170-preview>[data-preview170]{width:76px;height:76px}.pet174-shop .pet168-tabs button{padding:6px 12px}}

/* Portal card art grows within the existing entry, without moving its label. */
.card-spirit-pet [data-pet159-icon]{overflow:visible!important}.card-spirit-pet [data-pet159-icon]>svg{transform:scale(1.4);transform-origin:center;overflow:visible}
/* Match the portal shop selected-item remove control. */
.pet174-shop .pet174-remove{display:grid;place-items:center;width:23px;height:23px;min-height:23px;flex:none;background:linear-gradient(#d97155,#a94736);border:1px solid #954432;border-radius:4px;color:#fff8dc;font-size:18px!important;line-height:1;box-shadow:inset 0 1px #ffd7b5;cursor:pointer}.pet174-shop .pet174-remove:hover{filter:brightness(1.08)}.pet174-shop .pet174-remove:focus-visible{outline:2px solid #a94736;outline-offset:3px}.pet174-shop .pet174-remove:disabled{opacity:.5;cursor:default}

.card-spirit-pet [data-pet159-icon]>svg{transform:scale(1.75)}
.pet174-shop .pet163-status,.pet174-shop .pet163-status:empty{display:block!important;min-height:20px;line-height:20px;margin:0;white-space:normal}.pet174-shop .pet163-note{min-height:38px}.pet174-shop .pet174-scroll{overflow-anchor:none}
