.shop-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:1.5rem;padding:2rem;border:1px solid #d4e5dc;border-radius:26px;background:linear-gradient(120deg,#e9f4ed,#fff4d7);box-shadow:0 7px 22px #244d3210;overflow:hidden}.shop-balance-label{font-size:.9rem;font-weight:700;letter-spacing:.1em;color:#35644e}.shop-balance{font-size:3.8rem;font-weight:850;line-height:1.3;color:#244f3a;font-variant-numeric:tabular-nums}.shop-balance>span{font-size:2.4rem;color:#947009}.shop-balance small{font-size:1rem;margin-left:.5rem}.shop-hero p{margin:.4rem 0;line-height:1.7}.shop-hero-note{font-size:.85rem;color:#435e4e}.shop-companion{display:flex;align-items:center;gap:1rem}.shop-portrait{width:150px;flex-shrink:0}.shop-portrait>*,.shop-pet-art>*{width:100%;max-width:100%;height:auto;display:block}.shop-portrait .pet-portrait,.shop-pet-art .pet-portrait{width:100%;height:170px}.shop-companion h2{margin:.5rem 0 1rem}.shop-tag{display:inline-block;border-radius:50px;padding:.22rem .65rem;font-size:.75rem;font-weight:750;background:#e4eee7;color:#31583e}.shop-tabs{display:flex;gap:.5rem;margin:1.75rem 0 1.5rem;padding-bottom:.7rem;border-bottom:1px solid #ddd8cb;flex-wrap:wrap}.shop-tabs button{min-height:46px;border:1px solid transparent;border-radius:24px;background:transparent;color:#53554b;font:inherit;font-weight:700;padding:.7rem 1rem;cursor:pointer}.shop-tabs button.is-active{background:#254d39;color:white}.shop-tabs button>span{background:#ffffff28;border-radius:50%;padding:.1rem .4rem}.shop-section-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.shop-section-heading h2{margin:0 0 .4rem;font-size:1.3rem}.shop-section-heading p{color:#656359;margin:.2rem 0;line-height:1.75;max-width:55rem}.shop-pet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.shop-pet-card{display:flex;gap:1rem;align-items:center;border:1px solid #dedbd0;background:#fffdfa;border-radius:22px;padding:1.2rem;min-width:0}.shop-pet-card.equipped{border-color:#4b8060;box-shadow:inset 0 0 0 1px #4b8060}.shop-pet-art{flex:0 0 120px;overflow:hidden}.shop-pet-info{min-width:0}.shop-pet-info h3{font-size:1.25rem;margin:.5rem 0}.shop-pet-info p{font-size:.9rem;color:#636256;line-height:1.7}.shop-pet-info button{margin-top:.3rem;min-height:44px}.shop-ticket-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.shop-ticket{display:flex;border:1px solid #d9c7a0;border-radius:17px;background:#fffaf0;min-width:0;overflow:hidden}.shop-ticket-mark{display:grid;place-items:center;flex:0 0 62px;border-right:2px dashed #dfceb0;color:#805e20;background:#f8ebd0;font-size:2rem}.shop-ticket-body{padding:1.25rem;min-width:0;flex:1}.shop-ticket h3{margin:.5rem 0;font-size:1.2rem}.shop-ticket p{line-height:1.7;color:#676052;font-size:.88rem}.shop-ticket small{display:block;color:#686154;margin:.4rem 0}.shop-ticket button{display:block;margin-top:1rem;min-height:44px}.shop-price{font-size:1.1rem;color:#674912}.shop-ticket-used{background:#f5f4ef;border-color:#d9d8d0}.shop-ticket-used .shop-ticket-mark{background:#e8e9e1;color:#697467;border-color:#d4d7ce}.shop-ticket .shop-redeemed{color:#31664d;font-weight:700}.shop-empty{border:1px dashed #c6cbbb;border-radius:18px;padding:1.5rem;background:#fafbf5;grid-column:1/-1;line-height:1.8}.shop-empty h3{margin-top:0}.shop-collection-title{margin:2rem 0 1rem;font-size:1.3rem}.shop-achievements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.shop-achievements article{display:flex;gap:1rem;align-items:center;border:1px solid #dedbd2;border-radius:16px;padding:1rem;background:#f2f1ed;color:#55584f}.shop-achievements article.owned{background:#fff4d6;border-color:#d3b86c}.shop-achievements article>span{font-size:2.5rem}.shop-achievements h3{font-size:1rem;margin:0}.shop-achievements p{font-size:.82rem;line-height:1.7;margin:.5rem 0}.shop-achievements strong{font-size:.75rem}.shop-details{border-top:1px solid #dedacf;padding:1rem 0;margin-top:1.5rem}.shop-details summary{cursor:pointer;font-weight:700;line-height:1.7;padding:.5rem 0;min-height:44px}.shop-rules{line-height:1.9;padding-left:1.4rem}.shop-ledger{max-height:420px;overflow:auto}.shop-ledger>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3e2d9;gap:1rem;padding:.8rem .2rem}.shop-ledger small{display:block;color:#65645c;font-size:.75rem;margin-top:.3rem}.shop-ledger strong{font-variant-numeric:tabular-nums;color:#305b43}.shop-parent{scroll-margin-top:1rem}.shop-parent>p{line-height:1.8}.shop-config-list{display:grid;gap:.6rem}.shop-config-row{display:grid;grid-template-columns:minmax(100px,1fr) 100px 85px auto;gap:1rem;align-items:center;padding:1rem 0;border-bottom:1px solid #e2ded2}.shop-config-row small{display:block;margin-top:.4rem;color:#686458}.shop-config-row input[type=number]{width:100%;min-height:44px}.shop-fulfilled{display:flex!important;align-items:center;gap:.6rem;line-height:1.7}.shop-fulfilled input{width:22px;height:22px;flex-shrink:0}.shop-recovery{background:#fff0cc;border:1px solid #c9a24c;border-radius:14px;padding:1rem;margin:1rem 0}.shop-recovery p{line-height:1.7}.shop-content button:disabled{opacity:.65;cursor:default}#shop-confirm{width:min(500px,calc(100% - 2rem));box-sizing:border-box;padding:1.75rem;border:1px solid #d3cbb9;border-radius:22px;background:#fffdf7;color:#283e30}#shop-confirm::backdrop{background:#13291cc0}#shop-confirm p{line-height:1.8}#shop-confirm .j-actions{margin-top:1.5rem;justify-content:flex-end}.shop-tabs button:focus-visible,.shop-content button:focus-visible,.shop-parent button:focus-visible{outline:3px solid #ab7415;outline-offset:3px}@media(max-width:1100px){.shop-pet-card{flex-direction:column;align-items:stretch}.shop-pet-art{flex-basis:auto;width:135px;align-self:center}.shop-hero{padding:1.5rem}.shop-portrait{width:105px}}@media(max-width:760px){.shop-hero{grid-template-columns:1fr;gap:1rem}.shop-companion{border-top:1px solid #cbdcc7;padding-top:1rem}.shop-balance{font-size:3rem}.shop-ticket-grid{grid-template-columns:1fr}.shop-section-heading{display:block}.shop-config-row{grid-template-columns:1fr 90px}.shop-achievements{grid-template-columns:1fr}.shop-pet-grid{gap:.65rem}.shop-pet-card{padding:.8rem}.shop-pet-info h3{font-size:1.1rem}.shop-ticket-mark{flex-basis:48px}.shop-tabs button{font-size:.85rem;padding:.6rem .75rem}}@media(max-width:400px){.shop-pet-grid{grid-template-columns:1fr}.shop-pet-card{flex-direction:row}.shop-pet-art{width:100px;flex-basis:100px}}
.shop-management{margin-bottom:2rem}.shop-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.7fr);gap:1.5rem;background:#f4f8ef;border:1px solid #c5d6bc;border-radius:18px;padding:1.25rem;margin:1.25rem 0}.shop-editor label{display:block;font-weight:650;margin:.7rem 0 .4rem}.shop-editor input,.shop-editor textarea,.shop-editor select{box-sizing:border-box;width:100%;min-height:44px}.shop-editor textarea{resize:vertical}.shop-editor-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.shop-editor aside{padding-top:.5rem}.shop-editor aside>.shop-tag{margin-bottom:.75rem}.shop-stock-row{display:flex;justify-content:space-between;gap:1rem;align-items:center;border-bottom:1px solid #dddcd2;padding:1.15rem 0}.shop-stock-row>div:first-child{min-width:0}.shop-stock-row h3{margin:.5rem 0}.shop-stock-row p{font-size:.85rem;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.shop-stock-row strong{font-size:.85rem;color:#47633e}.shop-stock-row .j-actions{flex-shrink:0;max-width:260px;flex-wrap:wrap}.shop-locked{font-size:.85rem;color:#5a674d;white-space:nowrap}.shop-ticket-body>p{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:1050px){.shop-editor{grid-template-columns:1fr}.shop-editor aside{max-width:500px}.shop-stock-row{align-items:flex-start;flex-direction:column}}@media(max-width:500px){.shop-editor-fields{grid-template-columns:1fr}.shop-editor{padding:1rem}}
/* Keep the original promise visible while parent and child confirm fulfillment. */
.shop-promise{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f6ee;border-left:3px solid #6b9478;padding:12px}
.shop-terms{font-size:.9rem;color:#4e6356;line-height:1.7;overflow-wrap:anywhere}
.shop-issue{background:#fff2d4;border-radius:10px;padding:12px;color:#694c16}
.shop-editor-fields small{font-weight:400;line-height:1.6}
#shop-voucher-issue{display:block;width:100%;min-height:48px;font:inherit;margin:12px 0}
