
/* R89: one calm pet sheet, readable choices and secondary collection. */
#pet-panel-r37{width:min(480px,calc(100vw - 20px));max-height:min(82vh,760px);overflow:auto}
#pet-panel-r37 .r37-pet{padding:12px;gap:10px;min-width:0}
#pet-panel-r37 .r37-pet-header{padding:0 0 8px;border-bottom:1px solid #78624455}
#pet-panel-r37 .r37-pet-slots{display:grid;grid-template-columns:1fr;gap:8px}
#pet-panel-r37 .r37-pet-slot{padding:10px;border:1px solid #66573d;background:#171c1c;border-radius:5px}
#pet-panel-r37 .r37-pet-slot-header{gap:8px}#pet-panel-r37 .r37-pet-slot-copy{min-width:0;flex:1}
#pet-panel-r37 .r37-pet-slot-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:5px}
#pet-panel-r37 .r37-pet-choices{display:grid;grid-template-columns:1fr;gap:6px}
#pet-panel-r37 .r37-pet-egg-r59>.r37-pet-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
#pet-panel-r37 .r37-pet-choice{display:grid;grid-template-columns:26px minmax(0,1fr);gap:3px 8px;padding:9px;text-align:left;min-height:50px;white-space:normal;border:1px solid #76664b;border-radius:4px;background:#202624}
#pet-panel-r37 .r37-pet-choice svg{grid-row:1/3}#pet-panel-r37 .r37-pet-choice small{grid-column:2;font-size:11px;line-height:1.35;color:#c4bba8}
#pet-panel-r37 .r37-pet-filter{display:grid;grid-template-columns:1fr;gap:5px;margin:10px 0}
#pet-panel-r37 select{box-sizing:border-box;max-width:100%;width:100%;min-height:40px;padding:7px 9px;background:#171d20;color:#e5dbc2;border:1px solid #75664e;border-radius:4px}
#pet-panel-r37 .r37-pet-detail{font-size:12px;line-height:1.4;margin:6px 0;color:#c9c2b0}
#pet-panel-r37 .r37-pet-action{min-height:32px;padding:5px 9px}#pet-panel-r37 .r37-pet-egg-r59>.r37-pet-action{width:100%;min-height:42px;margin-top:8px}
#pet-panel-r37 .r89-pet-collection{margin-top:10px;border-top:1px solid #66573d;padding-top:8px}
#pet-panel-r37 .r89-pet-collection>summary{cursor:pointer;color:#c6b994;padding:6px 0;font-size:12px}
#pet-panel-r37 .pet-collection-r78{margin:8px 0 0;padding:8px;background:#171c1c}
#pet-panel-r37 .r37-pet-status{font-size:11px;color:#b7b1a2;line-height:1.35}


#skill-book-list .skill-book-entry{height:auto;min-height:64px;align-items:start}
#skill-book-list .skill-book-entry>span{min-width:0}
#skill-book-list .skill-reading-r89{display:block!important;max-height:none!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere;margin:7px 0 2px;color:#c8c2b4;font:12px/1.5 system-ui,sans-serif;user-select:text}
#skill-book-list .skill-reading-kind-r89{display:block;margin-top:4px;color:#c9ad79;font-size:11px}
#character-screen .creation-panel-r62 .creation-skill-r62{display:flex;height:auto!important;min-height:52px;align-items:flex-start;cursor:default;white-space:normal!important}
#character-screen .creation-panel-r62 .creation-skill-r62>span{display:block;min-width:0}
#character-screen .creation-panel-r62 .creation-skill-r62 small{display:block!important;max-height:none!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;line-height:1.45;opacity:1!important;margin-top:5px;overflow-wrap:anywhere}
#character-screen .creation-panel-r62 .creation-dossier-r62{overflow-y:auto;overscroll-behavior:contain}
@media(max-width:620px){#skill-book-list .skill-reading-r89{font-size:11px}#character-screen .creation-panel-r62 .creation-skill-r62 small{font-size:10px}}


/* R89: top-level random chest, clear collection/equipment sections, warm bronze. */
:is(#game-ui,.commerce-preview) .rune-collection-panel.commerce-window[data-commerce-kind]{width:min(660px,calc(100vw - 16px));max-height:min(900px,calc(100dvh - 16px));font-family:Georgia,serif;background:radial-gradient(ellipse at top left,#5d442125,transparent 60%),linear-gradient(120deg,#241e17,#141410 65%,#191814)}
.rune-collection-panel .commerce-body{padding:10px;gap:5px}.rune-collection-panel .commerce-titlebar{flex:0 0 auto;min-height:42px;height:auto}.rune-collection-panel .rune-panel-content{gap:10px;min-width:0}.rune-collection-panel .rune-tabs{gap:7px}
.rune-collection-panel :is(.rune-button,.rune-tab){min-width:0;min-height:38px;padding:8px 10px;line-height:1.35;font-size:12px;border-color:#806942;background:linear-gradient(#423526,#221e18);color:#e3d2ae;white-space:normal;overflow-wrap:anywhere}
.rune-collection-panel :is(.rune-button,.rune-tab):focus-visible{outline:2px solid #ddbf7e;outline-offset:2px}.rune-collection-panel .rune-tab.is-selected{border-color:#d3b16c;color:#f5dfa9;box-shadow:inset 0 0 16px #c6963c22}
.r89-rune-shop{flex:none;display:grid;grid-template-columns:84px minmax(0,1fr);gap:9px 12px;align-items:center;padding:12px;border:1px solid #97794d;border-radius:5px;background:radial-gradient(ellipse at 15% 30%,#80605245,transparent 65%),linear-gradient(125deg,#35271f,#211e1c);box-shadow:inset 0 1px #f2dca629}
.r89-rune-chest-icon{display:block;width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 3px 6px #0007)}.r89-rune-shop-copy{min-width:0}.r89-rune-shop-copy h3{font:18px/1.2 Georgia,serif;color:#f1d69c;margin:0 0 5px}.r89-rune-shop-copy p{font:12px/1.4 Arial,sans-serif;color:#baa98c;margin:0 0 9px}
.rune-collection-panel .r89-rune-buy-chest{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;min-height:40px;background:linear-gradient(#695236,#3c3022);border-color:#c19d62;color:#ffedbe}.r89-rune-owned{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding-top:9px;border-top:1px solid #9e7e492f}.r89-rune-owned>span{flex:1;min-width:100px;font:11px/1.4 Arial,sans-serif;color:#bfae91}.rune-collection-panel .r89-rune-owned .rune-button{min-height:33px;padding:6px 9px;font-size:11px}
.r89-rune-library{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:10px;min-width:0}.rune-collection-panel .rune-type-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.rune-collection-panel .rune-type{min-width:0;min-height:84px;padding:8px 4px;gap:5px;background:linear-gradient(140deg,#29251c,#171713);border-color:#615238;font:11px/1.3 Arial,sans-serif;color:#c7baa0}.rune-collection-panel .rune-type .rune-glyph{width:32px;height:32px}.rune-collection-panel .rune-type b{color:#d9bd82;font-size:11px}.rune-collection-panel .rune-type.is-selected{border-color:#d2ac65;background:linear-gradient(140deg,#59452c,#292116);box-shadow:inset 0 0 0 1px #b18f4a33}
.rune-collection-panel .rune-selected-card,.rune-collection-panel .rune-equipment-card{min-width:0;border:1px solid #806940;border-radius:4px;background:linear-gradient(125deg,#30271c,#171713);gap:10px;padding:12px}.r89-rune-selected-heading{display:flex;align-items:center;gap:10px;border-bottom:1px solid #9d7c4433;padding-bottom:9px}.r89-rune-selected-heading .rune-glyph{flex:none;width:35px;height:35px}.rune-collection-panel .r89-rune-selected-heading h4{font-size:16px;margin:0;color:#e6cca0}.rune-collection-panel .rune-tier-grid{gap:5px}.rune-collection-panel .rune-tier{min-height:43px;font-size:11px;border-color:#605238;background:#201d16}.rune-collection-panel .rune-tier b{font-size:10px}.rune-collection-panel .rune-range{font-size:12px;line-height:1.5;color:#b6a990}.rune-collection-panel .r89-rune-specific{grid-template-columns:minmax(0,1fr);padding-top:9px;border-top:1px solid #9d7c4433}.r89-rune-specific .rune-button{display:flex;align-items:center;justify-content:center;gap:6px}.rune-collection-panel .rune-panel-status{font-size:11px;color:#cfb990;line-height:1.4}.rune-collection-panel .commerce-wallet.r89-rune-wallet{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px 9px;max-width:42%;min-width:0}.r89-rune-currency{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font:11px/1.3 Arial,sans-serif;color:#d6c6a5}
@media(max-width:600px){.rune-collection-panel .commerce-body{padding:7px}.r89-rune-shop{grid-template-columns:64px minmax(0,1fr);gap:8px;padding:10px}.r89-rune-chest-icon{width:64px;height:64px}.r89-rune-shop-copy h3{font-size:16px}.r89-rune-shop-copy p{font-size:11px;margin-bottom:6px}.r89-rune-library{display:flex;flex-direction:column}.r89-rune-library>.rune-type-grid,.r89-rune-library>.rune-selected-card{width:100%;box-sizing:border-box}.r89-rune-owned>span{flex-basis:100%}.r89-rune-owned .rune-button{flex:1}.rune-collection-panel .r89-rune-wallet{max-width:38%;gap:3px}.r89-rune-currency{font-size:10px}.rune-collection-panel .rune-range{font-size:11px}}
