/* Dedicated layouts; no inherited fixed-size exhibition cards or hidden shop hero. */
#app #collection.inventory-screen,#app #shop.inventory-shop{box-sizing:border-box;flex-direction:column!important;gap:8px;padding:8px max(10px,var(--safe-inline,0px)) max(6px,env(safe-area-inset-bottom,0px));background:radial-gradient(ellipse at 15% 0,#234237,#081710 70%)!important;overflow:hidden!important;color:#f6efdd}
#app #collection.inventory-screen.is-active,#app #shop.inventory-shop.is-active{display:flex!important}
.inventory-header{display:flex;align-items:center;gap:12px;flex:0 0 auto;min-height:44px;border-bottom:1px solid #baa16755;padding-bottom:6px}
.inventory-header>div:first-child{margin-right:auto;min-width:0}.inventory-header h1{font-size:20px;line-height:1.1;margin:1px 0;color:#fff2ce}.inventory-header small{font-size:10px;color:#cdb67d}
#app :is(.inventory-screen,.inventory-shop) button{font:700 12px/1.25 system-ui;cursor:pointer;touch-action:manipulation}
.inventory-header>button{min-height:36px;border:1px solid #a68b51;border-radius:8px;background:#1b342b;color:#f6e7c1;padding:6px 10px}
#app :is(.inventory-screen,.inventory-shop) .char-close{position:static!important;flex:0 0 40px;width:40px!important;height:40px!important;min-height:40px;padding:0!important;margin:0!important;font-size:23px;transform:none!important}
.inventory-counters{display:flex;gap:10px}.inventory-counters>span{font-size:10px;color:#b9caba;white-space:nowrap}.inventory-counters strong{font-size:17px;color:#f7d58c;margin:0 3px}.inventory-counters small{font-size:10px}
.inventory-purpose{font-size:12px!important;line-height:1.4!important;margin:0!important;color:#c0d0c6;flex:0 0 auto;min-width:0}
#app #collection .inventory-main-tabs{position:static!important;inset:auto!important;height:auto!important;flex:0 0 auto;min-height:36px;gap:6px;display:flex;align-items:stretch;margin:0!important}
#app #collection .inventory-main-tabs button{padding:7px 18px;min-height:36px;font-size:13px;background:#0b241a;color:#c9c4a9;border:1px solid #786844;border-radius:8px}
#app #collection .inventory-main-tabs button.is-active{background:#776030;border-color:#f0cf8b;color:#fff5dc}
#app #collection .noir-cabinet__progress{position:static!important;margin-left:auto;align-self:center;min-width:0}
#app #collection #casinoirCosmeticsStage{position:static!important;inset:auto!important;flex:1 1 auto;min-width:0;min-height:0;height:auto!important;display:flex;flex-direction:column;gap:7px;overflow:hidden}
#app #collection #casinoirCosmeticsStage[hidden],#app #collection #noirCabinet[hidden]{display:none!important}
.inventory-toolbar,.shop-toolbar{display:flex;gap:10px;align-items:center;flex:0 0 auto;min-width:0}
.inventory-scope,.inventory-categories{display:flex;gap:5px;align-items:center;min-width:0}
.inventory-scope>button,.inventory-categories>button,#shop .shop-filters>button{white-space:nowrap;min-height:34px;border:1px solid #627a61;border-radius:7px;color:#d5e0cd;background:#102a20;padding:6px 10px}
.inventory-scope>button.is-active,.inventory-categories>button.is-active,#shop .shop-filters>button.is-active{background:#3b6247;color:#fff2cb;border-color:#d9c48d}
.inventory-search{display:block;min-width:100px;margin-left:auto;max-width:230px;width:26%}
.inventory-search input{box-sizing:border-box;width:100%;min-width:0;min-height:36px;border:1px solid #889b7c;border-radius:8px;color:#fff6df;background:#071e16;padding:6px 9px;font:16px/1.25 system-ui}
#collection .inventory-categories{position:static!important;flex:0 0 auto;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;padding:0 0 3px!important}
.inventory-categories small{font-size:10px;opacity:.8}.inventory-categories #collectionVisibleCount{margin-left:auto;white-space:nowrap;font-size:11px;color:#c0cdb9}
#app #collection #collectionGrid{display:grid!important;position:static!important;grid-auto-flow:row!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;grid-template-rows:none!important;grid-auto-columns:auto!important;grid-auto-rows:max-content!important;gap:9px!important;min-width:0!important;min-height:0!important;flex:1 1 auto;width:100%!important;height:auto!important;max-height:none!important;overflow:auto!important;padding:1px 3px 8px!important;align-content:start!important;scroll-snap-type:none!important}
#app #collection #collectionGrid>.collection-item{display:block!important;min-width:0;min-height:104px!important;height:auto!important;max-height:none!important;padding:0!important;border:1px solid #738a63;border-radius:10px!important;overflow:hidden;background:linear-gradient(135deg,#234237,#0c231a);box-shadow:none!important}
#app #collection #collectionGrid>.collection-item.is-equipped{border-color:#dfbf6c;background:linear-gradient(140deg,#344b2e,#162c1d)}
.inventory-card{display:grid;grid-template-columns:66px minmax(0,1fr) 12px;gap:10px;align-items:center;width:100%;height:100%;min-height:104px;background:none;border:0;text-align:left;color:#f5efde;padding:10px}
.inventory-card__visual{display:block;width:66px;height:82px}.inventory-card__copy{display:flex;flex-direction:column;gap:4px;min-width:0}.inventory-card__copy small{color:#bea76e;font-size:10px}.inventory-card__copy strong{font-size:14px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.inventory-card__copy>span{font-size:11px;color:#bdcdbf}.inventory-card__copy>b{font-size:11px;color:#f0d590}.inventory-card__arrow{font-size:20px;color:#d2b675}
.inventory-art{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0}.inventory-art img{display:block;width:100%;height:100%;object-fit:contain}.inventory-art--costume img{object-position:center 22%}
.inventory-empty{grid-column:1/-1;padding:22px;color:#e2dfc7;font-size:14px}.inventory-empty p{font-size:12px;color:#a7c2ad}.inventory-empty button{min-height:36px;padding:5px 15px;background:#3b634b;border:1px solid #c2ad75;color:#fff4d2;border-radius:8px}
.inventory-art--decor{--decor:#cfab56;--decor-dark:#20281a}.inventory-art--decor[data-decor="ruby-edge"]{--decor:#cf7185;--decor-dark:#632138}.inventory-art--decor[data-decor="emerald-edge"],.inventory-art--decor[data-decor="grand-felt"]{--decor:#7cdbb1;--decor-dark:#146346}.inventory-art--decor[data-decor="midnight-edge"],.inventory-art--decor[data-decor="neon-noir"],.inventory-art--decor[data-decor="tokyo-midnight"]{--decor:#8bcaf3;--decor-dark:#341d4d}.inventory-art--decor[data-decor="silver-line"],.inventory-art--decor[data-decor="midnight"]{--decor:#c4d2e4;--decor-dark:#263347}
.decor-sample{display:grid;place-items:center;color:var(--decor);background:linear-gradient(145deg,var(--decor-dark),#0b1715);border:2px solid var(--decor);box-shadow:inset 0 0 13px #0008;box-sizing:border-box}.decor-sample b{font:700 25px/1 Georgia,serif}.decor-sample--card{width:66%;height:85%;border-radius:7px;outline:1px solid var(--decor);outline-offset:-6px}.decor-sample--chip{width:85%;aspect-ratio:1;border-radius:50%;border-width:5px;border-style:dashed}.decor-sample--table{width:100%;height:65%;border-width:4px;border-radius:50%;background:radial-gradient(ellipse,#235f42,var(--decor-dark))}.decor-sample--table b{font-size:10px}.decor-sample--frame{width:84%;aspect-ratio:1;border-radius:20%;border-width:4px;outline:1px solid var(--decor);outline-offset:3px}
#app :is(#collection.inventory-screen,#shop.inventory-shop).screen>.home-bottom-nav.inventory-bottom-nav{position:static!important;inset:auto!important;transform:none!important;flex:0 0 44px!important;box-sizing:border-box;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:1fr!important;width:100%!important;min-height:44px!important;height:44px!important;margin:0!important;padding:0!important;gap:0!important;overflow:hidden!important}
#app :is(#collection.inventory-screen,#shop.inventory-shop).screen>.home-bottom-nav.inventory-bottom-nav>button{position:static!important;display:flex!important;flex-direction:row!important;gap:5px!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:0!important;height:100%!important;padding:3px!important;border-radius:6px!important;font-size:11px!important}
#app :is(#collection.inventory-screen,#shop.inventory-shop).screen>.home-bottom-nav.inventory-bottom-nav .nav-icon{position:static!important;width:28px!important;height:32px!important;transform:none!important}.inventory-screen>.home-bottom-nav.inventory-bottom-nav strong,.inventory-shop>.home-bottom-nav.inventory-bottom-nav strong{font-size:11px!important}
#app #collection #noirCabinet{position:static!important;inset:auto!important;flex:1 1 auto;height:auto!important;min-height:0;overflow:hidden;gap:8px}
#collection .noir-cabinet__controls{max-height:none!important;overflow:visible;gap:7px}.inventory-screen .noir-cabinet__categories,.inventory-screen .noir-cabinet__rarity{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:2px}
#collection .noir-cabinet__categories button,#collection .noir-cabinet__rarity button{min-height:32px;font-size:11px;padding:5px 9px;flex:0 0 auto}.inventory-screen .noir-cabinet__rows{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:9px;padding:2px 3px 8px}.inventory-screen .noir-cabinet__card-copy strong{font-size:14px;white-space:normal}.inventory-screen .noir-cabinet__card-copy em{font-size:11px}.inventory-screen .noir-cabinet__card{min-height:96px}.inventory-screen .noir-cabinet__footer{display:none!important}
#collection .noir-cabinet__filters input{font-size:16px!important;min-height:34px}.inventory-screen .noir-cabinet__modal{z-index:26000}.inventory-screen .noir-cabinet__modal[hidden]{display:none!important;pointer-events:none}.inventory-screen .noir-cabinet__modal-card{width:min(650px,90vw);max-height:85vh}.inventory-screen .noir-cabinet__modal-x{min-width:40px;min-height:40px}
.inventory-wallets{display:flex;gap:8px}.inventory-wallets>span{display:grid;grid-template-columns:22px auto;gap:2px 6px;align-items:center;min-width:75px;background:#0a251c;border:1px solid #698969;border-radius:9px;padding:4px 8px}.inventory-wallets img{grid-row:1/3;width:22px;height:22px;object-fit:contain}.inventory-wallets small{font-size:10px}.inventory-wallets strong{font-size:14px;color:#fff0c4}
#shop .shop-filters{position:static!important;display:flex;gap:5px;min-width:0;flex:1 1 auto;overflow-x:auto;padding-bottom:2px}#shop .shop-filters button{flex:0 0 auto}
.inventory-shop-stage{display:flex;flex:1 1 auto;min-height:0;overflow:hidden}
#shop :is(#irgemCheckoutTab,#irgemCheckoutPanel,#irgemCheckOrder,.inventory-search)[hidden]{display:none!important}
.irgem-checkout{width:100%;overflow:auto;padding:.35rem .65rem .75rem;color:#eef6ff}
.irgem-checkout p:empty{display:none}
.irgem-checkout__packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.55rem}
.irgem-checkout__packs button,#irgemCheckOrder{min-height:42px;border:1px solid #5c9fea;border-radius:.55rem;background:#101f3e;color:#f4faff;padding:.45rem .75rem}
.irgem-checkout__packs button{display:flex;align-items:center;justify-content:space-between;gap:.4rem;flex-wrap:wrap;text-align:left}
.irgem-checkout__packs strong{color:#b3e7ff}
.irgem-checkout__packs button:disabled,#irgemCheckOrder:disabled{opacity:.55}
#app #shop #irItemShopPanel{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;margin:0!important;padding:0!important;border:0!important;background:none!important}
#app #shop #irItemShopPanel[hidden],#app #shop #shopGrid[hidden]{display:none!important}
#app #shop #irItemCards,#app #shop #shopGrid{display:grid!important;flex:1 1 auto;min-height:0;align-content:start;grid-template-columns:repeat(auto-fill,minmax(245px,1fr))!important;grid-auto-flow:row!important;grid-auto-rows:max-content!important;overflow:auto!important;gap:10px!important;padding:1px 3px 8px!important;height:auto!important}
/* Product rows keep their content height inside the scrollable catalog. */
#app #shop #shopGrid{grid-template-rows:none!important}
#app #shop .ir-item,#app #shop .shop-item{display:grid!important;grid-template-columns:70px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;min-height:0!important;height:auto!important;gap:8px!important;padding:10px!important;border:1px solid #85915d;border-radius:10px;background:linear-gradient(135deg,#263e2d,#0c251b);box-sizing:border-box;align-content:start!important}
#app #shop #shopGrid .shop-item{grid-template-rows:auto auto!important}
#shop .shop-product-art{display:block;grid-column:1;grid-row:1;border:0;background:transparent;width:70px;height:85px;padding:0;overflow:hidden}
@media(max-height:360px){
  #app #shop #shopGrid .shop-item{padding:8px!important;gap:6px!important}
  #shop #shopGrid .shop-product-art{height:67px}
}
#shop .ir-item__image{width:100%!important;height:100%!important;object-fit:contain!important}#shop .ir-item__copy,#shop .shop-item__copy{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:0!important}#shop .ir-item__copy strong,#shop .shop-item__copy strong{font-size:15px!important;line-height:1.4;white-space:normal!important;color:#fff1d0}#shop .ir-item__copy span,#shop .ir-item__copy small,#shop .shop-item__copy p{font-size:12px!important;color:#bdcdb8;margin:0}#shop .shop-item__copy small{font-size:10px;color:#ccb475}
#shop .ir-item__buttons{display:grid!important;grid-template-columns:1fr 1fr;grid-column:1/-1;gap:6px}#shop .ir-item__buttons button,#shop .shop-item__foot button{min-height:36px!important;white-space:normal;background:#486e42;border:1px solid #d6bb78;border-radius:7px;padding:7px;color:#fff5d7}#shop .ir-item__buttons>[data-ir-buy]{grid-column:1/-1;background:linear-gradient(#b69a50,#735e2d)}#shop button:disabled,.item-detail button:disabled{cursor:default;opacity:.55}#shop .shop-buy-note{grid-column:1/-1;font-size:11px;color:#bdd0b7;margin:0}#shop .shop-item__foot{display:flex!important;grid-column:1/-1;align-items:center;justify-content:space-between;gap:10px}#shop .shop-item__foot>span{font-size:12px;color:#e4d596}
#itemDetailModal{position:fixed;inset:0;z-index:26000;display:grid;place-items:center;opacity:1;visibility:visible;pointer-events:auto;padding:max(8px,env(safe-area-inset-top)) max(10px,var(--safe-inline,0px)) max(8px,env(safe-area-inset-bottom));box-sizing:border-box;background:#020b08d9;backdrop-filter:blur(5px);color:#f8efd7}
#itemDetailModal[hidden]{display:none!important;pointer-events:none}
.item-detail-panel{box-sizing:border-box;display:flex;flex-direction:column;width:min(820px,100%);max-height:100%;min-height:0;border:1px solid #c3aa67;border-radius:14px;background:linear-gradient(140deg,#1a3627,#081b14);box-shadow:0 12px 50px #000b;overflow:hidden}
.item-detail-panel>header{display:flex;gap:10px;align-items:center;justify-content:space-between;flex:0 0 auto;padding:10px 15px;border-bottom:1px solid #9f874a66}.item-detail-panel h2{font-size:20px;margin:3px 0;line-height:1.3}.item-detail-panel header small{font-size:11px;color:#ccb779}#itemDetailClose{width:44px;height:44px;flex:0 0 44px;border:1px solid #a49262;border-radius:50%;background:#10291f;color:#fff0c6;font-size:23px}
.item-detail-body{display:grid;grid-template-columns:minmax(120px,28%) minmax(0,1fr);gap:18px;flex:1 1 auto;min-height:0;overflow:auto;padding:14px 16px}.item-detail-art{min-height:120px;max-height:240px;display:flex;align-items:center;justify-content:center}.item-detail-copy{min-width:0}.item-detail-copy>strong{display:inline-block;padding:5px 9px;background:#42633d;color:#ffebad;border-radius:6px;font-size:13px}.item-detail-copy dl{margin:10px 0;display:grid;gap:4px;font-size:13px;line-height:1.6}.item-detail-copy dt{color:#bba46b;font-size:11px;font-weight:700}.item-detail-copy dd{margin:0 0 8px;overflow-wrap:anywhere}.item-detail-copy p{font-size:12px;line-height:1.5;color:#bbccb9}
.item-detail-panel>footer{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center;flex:0 0 auto;border-top:1px solid #9f874a66;padding:10px 14px;background:#0c241a}.item-detail-panel footer label{display:flex;gap:8px;align-items:center;font-size:12px}.item-detail-panel footer label[hidden]{display:none!important}.item-detail-panel select{font-size:16px;padding:5px;min-height:36px;background:#102c20;color:#fff3cd;border:1px solid #8ca16d;border-radius:6px}#itemDetailStatus{font-size:12px;margin:0;flex:1 1 220px;color:#d9cda9;line-height:1.4}#itemDetailActions{display:flex;gap:8px;flex:1 0 100%;flex-wrap:wrap}#itemDetailActions button{min-height:38px;border:1px solid #c5ac63;border-radius:8px;background:#4c6e3e;color:#fff6d9;padding:7px 14px;font:700 13px/1.3 system-ui}
.profile-appearance{border:1px solid #78905c;border-radius:10px;padding:10px;margin-bottom:10px;background:#153022}.profile-appearance header{display:flex;justify-content:space-between;align-items:center;gap:8px}.profile-appearance h3{font-size:14px;margin:0}.profile-appearance button{border:1px solid #96824e;border-radius:6px;padding:7px;color:#f5e5b4;background:#25432e;cursor:pointer}.profile-appearance header button{font-size:11px;min-height:32px}#profileAppearanceItems{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;margin:8px 0}#profileAppearanceItems button{display:flex;flex-direction:column;text-align:left;gap:4px;min-width:0}#profileAppearanceItems small{font-size:10px;color:#b7c49e}#profileAppearanceItems strong{font-size:12px;line-height:1.35;overflow-wrap:anywhere}#profileAppearanceItems span{font-size:10px;color:#cfb96b}.profile-appearance p{font-size:11px;color:#c0ccad;line-height:1.5;margin:0}
@media(max-width:690px){.inventory-header{gap:7px}.inventory-header h1{font-size:17px}.inventory-counters{gap:6px}.inventory-counters>span:last-child{display:none}.inventory-header>button{font-size:11px!important;padding:5px 7px}.inventory-search{width:140px;min-width:110px}.inventory-scope>button{padding:5px 7px;font-size:11px!important}#app #collection .inventory-main-tabs button{padding:6px 12px;font-size:12px}#app :is(#collection.inventory-screen,#shop.inventory-shop).screen>.home-bottom-nav.inventory-bottom-nav .nav-icon{width:22px!important;height:28px!important}.inventory-screen>.home-bottom-nav.inventory-bottom-nav strong,.inventory-shop>.home-bottom-nav.inventory-bottom-nav strong{font-size:10px!important}.inventory-wallets>span{min-width:62px;padding:3px 5px}.inventory-wallets{gap:5px}.inventory-wallets img{width:18px;height:18px}.item-detail-panel h2{font-size:17px}.item-detail-body{gap:12px;padding:10px}.item-detail-panel>header{padding:6px 10px}.item-detail-panel>footer{padding:7px 10px}.item-detail-copy dl{font-size:12px}}

.inventory-purpose-bar{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:0}.inventory-purpose-bar p{flex:1 1 auto}.inventory-purpose-bar label{display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap}.inventory-purpose-bar label[hidden]{display:none!important}.inventory-purpose-bar select{font-size:16px;padding:4px;min-height:32px;background:#0e2a1e;color:#f7e6b6;border:1px solid #988253;border-radius:6px}#collectionRecordCount{min-width:34px}#collection #cabinetRows>[hidden]{display:none!important}
#collection .inventory-toolbar{gap:8px}#collection .inventory-categories{flex:1 1 auto}#collection .inventory-search{flex:0 0 160px;width:160px}#collection .inventory-categories>button{flex:0 0 auto}#collection .inventory-header #collectionEquippedTotal{font-size:10px}
@media(max-height:430px){#app #collection.inventory-screen,#app #shop.inventory-shop{gap:5px;padding-top:5px;padding-bottom:5px}.inventory-header{min-height:40px;padding-bottom:4px}#app #collection .inventory-main-tabs{min-height:32px}#app #collection .inventory-main-tabs button{min-height:32px;padding:5px 14px}.inventory-purpose{font-size:11px!important}.inventory-categories>button,#shop .shop-filters>button{min-height:32px}.inventory-card{padding:8px;min-height:100px}.inventory-card__visual{height:78px}#app #collection #collectionGrid>.collection-item{min-height:100px!important}#collection .inventory-toolbar .inventory-search{flex-basis:140px;width:140px}}
#app #collection .inventory-toolbar>.inventory-categories{position:static!important;display:flex!important;flex:1 1 0%!important;width:auto!important;max-width:none!important;height:auto!important;min-height:34px!important;min-width:0!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important}
#app #collection .inventory-toolbar>.inventory-categories>button{position:static!important;width:auto!important;flex:0 0 auto!important;min-height:32px!important;margin:0!important;padding:5px 9px!important;transform:none!important;font-size:11px!important}
#app :is(#collection.inventory-screen,#shop.inventory-shop)>.home-bottom-nav.inventory-bottom-nav>button>strong{position:static!important;inset:auto!important;display:block!important;transform:none!important;translate:none!important;margin:0!important;padding:0!important;width:auto!important;height:auto!important;min-height:0!important;align-self:center!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
#app :is(#collection.inventory-screen,#shop.inventory-shop)>.home-bottom-nav.inventory-bottom-nav>button>.nav-icon{margin:0!important;padding:0!important;inset:auto!important;align-self:center!important;flex:0 0 24px!important;order:0!important}
#inventoryRecordEmpty{grid-column:1/-1;padding:16px;font-size:13px;line-height:1.5;color:#cccfb8}
.profile-approved-summary{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px;color:#edcf86}.profile-approved-summary button,.profile-approved-card{border:1px solid #ad9557;border-radius:8px;padding:9px;background:#173e2a;color:#f9efca;cursor:pointer;min-height:36px}.profile-approved-card{display:flex;flex-direction:column;gap:5px;text-align:left}.profile-approved-card small{color:#c2b480}.profile-approved-card strong{font-size:14px}.profile-approved-card span{font-size:11px;color:#acbea4}
