/* Equal icon cells. Labels and transactions live in the selected item's native dialog. */
#duck-panel .dk-shell-dialog:has(.dk-shell-page:not([hidden]) .dk-stash-collection) { height: calc(100dvh - 48px); }
#duck-panel .dk-shell-dialog:has(.dk-shell-page:not([hidden]) .dk-stash-collection) .dk-shell-body { display:flex; flex-direction:column; min-height:0; max-height:none; overflow:hidden; }
#duck-panel .dk-shell-page:has(.dk-stash-collection):not([hidden]) { display:flex; flex:1; flex-direction:column; min-height:0; }
#duck-panel .dk-stash-collection { display:flex; flex:1; flex-direction:column; min-height:0; }
#duck-panel .dk-stash-collection .dk-toolbar { flex:none; gap:8px; margin-bottom:12px; }
#duck-panel .dk-stash-collection .dk-toolbar h2 { margin:0; font-size:16px; }
#duck-panel .dk-stash-count { color:#9cb5bf; font-size:11px; margin-left:8px; font-weight:400; }
#duck-panel .dk-stash-collection .dk-toolbar-filters { grid-template-columns:minmax(120px,1fr) 160px; }
#duck-panel .dk-stash-collection .dk-toolbar-filters>[data-ux-bulk] { min-height:36px; padding:6px 10px; font-size:11px; }
#duck-panel .dk-stash-equipped { display:flex; flex:none; align-items:center; gap:8px; min-height:48px; margin-bottom:10px; }
#duck-panel .dk-stash-equipped>span { color:#9cb5bf; font-size:11px; }
#duck-panel .dk-stash-equipped>button { width:42px; height:42px; padding:5px; position:relative; display:grid; place-items:center; }
#duck-panel .dk-stash-equipped .dk-icon { width:30px; height:30px; border:0; background:none; }
#duck-panel .dk-stash-equipped i { position:absolute; bottom:1px; right:3px; font-size:9px; color:#b9d9d2; font-style:normal; }
#duck-panel .dk-collection-frame { position:relative; flex:1; min-width:0; min-height:0; overflow:hidden; isolation:isolate; }
#duck-panel .dk-collection-scroll { height:100%; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:none; scrollbar-gutter:auto; padding:3px; scroll-padding-block:22px; -webkit-overflow-scrolling:touch; }
#duck-panel .dk-collection-scroll::-webkit-scrollbar { display:none; width:0; height:0; }
#duck-panel .dk-collection-frame::before,#duck-panel .dk-collection-frame::after { content:""; position:absolute; z-index:2; left:0; right:0; height:26px; pointer-events:none; opacity:0; transition:opacity .15s; }
#duck-panel .dk-collection-frame::before { top:0; background:linear-gradient(to bottom,var(--collection-bg,#172832),transparent); }
#duck-panel .dk-collection-frame::after { bottom:0; background:linear-gradient(to top,var(--collection-bg,#172832),transparent); }
#duck-panel .dk-collection-frame[data-above="true"]::before,#duck-panel .dk-collection-frame[data-below="true"]::after { opacity:.9; }
#duck-panel .dk-stash-grid,#duck-panel .dk-report-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(68px,1fr)); gap:7px; align-content:start; align-items:start; width:100%; max-width:none; max-height:none; margin:0; }
#duck-panel .dk-stash-grid>.dk-stash-cell,#duck-panel .dk-report-item { position:relative; display:grid; place-items:center; aspect-ratio:1; width:100%; height:auto; min-height:0; min-width:0; padding:8px; border:1px solid #506875; border-top:2px solid var(--grade); border-radius:5px; background:radial-gradient(ellipse at 50% 30%,#2b434c,#1c303b); overflow:hidden; }
#duck-panel .dk-stash-cell:is(:hover,:focus-visible),#duck-panel .dk-report-item:is(:hover,:focus-visible) { background:#334e58; outline:2px solid #a3d5d5; outline-offset:-2px; }
#duck-panel .dk-stash-cell>.dk-icon,#duck-panel .dk-report-item>.dk-icon { width:100%; height:100%; max-width:48px; max-height:48px; display:grid; place-items:center; background:none; border:0; margin:0; }
#duck-panel :is(.dk-stash-cell,.dk-report-item)>.dk-icon>svg { width:100%; height:100%; max-width:48px; max-height:48px; }
#duck-panel :is(.dk-stash-cell,.dk-report-item)>b { position:absolute; right:3px; top:3px; padding:1px 3px; background:#10232be0; color:#e5e9c8; font-size:10px; line-height:14px; border-radius:2px; }
#duck-panel .dk-stash-cell>small { position:absolute; bottom:3px; left:4px; color:#b6e6df; font-size:9px; line-height:12px; }
#duck-panel .dk-stash-cell .dk-target-dot { position:absolute; top:3px; left:3px; }
#duck-panel .dk-stash-empty { grid-column:1/-1; color:#9fb6c1; font-size:12px; padding:12px 2px; }
#duck-panel .dk-item-dialog { width:min(440px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:hidden; color:#e6eae1; border:1px solid #829fa8; border-radius:10px; background:#182c37; box-shadow:0 20px 80px #0009; }
#duck-panel .dk-item-dialog[open] { display:flex; flex-direction:column; }
#duck-panel .dk-item-dialog::backdrop { background:#07121a99; backdrop-filter:blur(3px); }
#duck-panel .dk-item-dialog>header { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; border-bottom:1px solid #45616b; flex:none; }
#duck-panel .dk-item-dialog h2 { margin:0; font-size:15px; }
#duck-panel .dk-item-dialog [data-stash-close] { width:36px; height:36px; padding:0; font-size:23px; }
#duck-panel .dk-item-detail-body { min-height:0; overflow:auto; padding:14px 16px; scrollbar-width:none; }
#duck-panel .dk-item-detail-body::-webkit-scrollbar { display:none; }
#duck-panel .dk-item-detail-hero { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
#duck-panel .dk-item-detail-hero>.dk-icon { width:64px; height:64px; flex:none; display:grid; place-items:center; border-color:var(--grade); background:#233e48; }
#duck-panel .dk-item-detail-hero svg { width:52px; height:52px; }
#duck-panel .dk-item-detail-hero>span { color:#aac3cb; font-size:12px; }
#duck-panel .dk-item-detail-spec>strong { display:block; font-size:18px; margin-bottom:7px; }
#duck-panel .dk-item-detail-spec .dk-weapon-facts { margin-block:12px; }
#duck-panel .dk-item-detail-spec p { font-size:12px; line-height:1.55; }
#duck-panel .dk-item-detail-actions { padding:12px 16px; border-top:1px solid #45616b; flex:none; background:#192f3a; }
#duck-panel .dk-item-detail-actions .dk-item-buttons,#duck-panel .dk-item-detail-actions .dk-ux-flags { margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
#duck-panel .dk-item-detail-actions .dk-ux-flags { margin-top:8px; grid-template-columns:repeat(3,minmax(0,1fr)); }
#duck-panel .dk-item-detail-actions .dk-roll-purchase-note { grid-column:1/-1; font-size:10px; color:#b3c2bb; }
#duck-panel .dk-report { width:100%; max-width:1180px; min-height:0; box-sizing:border-box; margin:12px auto 0; padding:14px 18px 0; overflow:hidden; }
#duck-panel .dk-report-heading,#duck-panel .dk-result-stats,#duck-panel .dk-report>h3 { flex:none; }
#duck-panel .dk-report>h3 { margin:12px 0 10px; }
#duck-panel .dk-report .dk-collection-frame { --collection-bg:#141f28; }
#duck-panel .dk-report .dk-report-loot { height:100%; overflow-y:auto; padding:3px; }
#duck-panel .dk-report-actions { position:static; margin-top:0; padding-top:14px; padding-bottom:4px; }
@media(max-width:600px){
 #duck-panel .dk-shell-dialog:has(.dk-shell-page:not([hidden]) .dk-stash-collection) { height:calc(100dvh - 12px); }
 #duck-panel .dk-stash-collection .dk-toolbar { display:block; margin-bottom:8px; }
 #duck-panel .dk-stash-collection .dk-toolbar-filters { margin-top:8px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px; }
 #duck-panel .dk-stash-collection .dk-toolbar-filters>:is(input,select) { height:40px; min-height:40px; }
 #duck-panel .dk-stash-equipped { gap:5px; flex-wrap:wrap; margin-bottom:6px; }
 #duck-panel .dk-stash-equipped>button { width:38px; height:38px; }
 #duck-panel .dk-stash-equipped>span { display:none; }
 #duck-panel .dk-stash-grid,#duck-panel .dk-report-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; }
 #duck-panel .dk-stash-grid>.dk-stash-cell,#duck-panel .dk-report-item { padding:5px; }
 #duck-panel .dk-report { min-height:0; width:100%; padding:10px 4px 0; margin-top:8px; }
 #duck-panel .dk-report-actions { gap:8px; padding-top:10px; }
}
#duck-panel .dk-pack-launch { display:flex; align-items:center; gap:10px; width:100%; margin:10px 0; padding:10px 12px; text-align:left; background:linear-gradient(100deg,#29494a,#1c303b); }
#duck-panel .dk-pack-launch>.dk-icon { width:40px; height:40px; flex:none; }
#duck-panel .dk-pack-launch>span { flex:1; }
#duck-panel .dk-pack-launch strong,#duck-panel .dk-pack-launch small { display:block; }
#duck-panel .dk-pack-launch small { margin-top:4px; color:#afc7c9; font-size:11px; }
#duck-panel .dk-pack-dialog { width:min(920px,calc(100vw - 24px)); height:min(780px,calc(100dvh - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:hidden; background:#182c37; color:#e6eae1; border:1px solid #829fa8; border-radius:10px; }
#duck-panel .dk-pack-dialog[open] { display:flex; flex-direction:column; }
#duck-panel .dk-pack-dialog::backdrop { background:#07121ab5; backdrop-filter:blur(3px); }
#duck-panel .dk-pack-dialog>header { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; flex:none; }
#duck-panel .dk-pack-dialog h2 { margin:0; font-size:17px; }
#duck-panel .dk-pack-dialog [data-pack-close] { width:36px; height:36px; padding:0; font-size:23px; }
#duck-panel .dk-pack-status { display:flex; justify-content:space-between; gap:12px; padding:8px 16px; border-block:1px solid #45616b; font-size:12px; }
#duck-panel .dk-pack-columns { display:grid; grid-template-columns:1fr 1fr; gap:16px; flex:1; min-height:0; padding:10px 14px 0; }
#duck-panel .dk-pack-columns>section { display:flex; flex-direction:column; min-height:0; min-width:0; }
#duck-panel .dk-pack-columns h3 { margin:0 0 8px; font-size:12px; }
#duck-panel .dk-pack-columns .dk-stash-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
#duck-panel .dk-pack-dialog [aria-pressed=true] { outline:2px solid #9cddd1; outline-offset:-2px; }
#duck-panel .dk-pack-editor { flex:none; display:grid; grid-template-columns:minmax(0,1fr) 110px 100px; gap:10px; align-items:center; padding:12px 14px; border-block:1px solid #45616b; }
#duck-panel .dk-pack-selected { display:flex; align-items:center; gap:8px; min-width:0; }
#duck-panel .dk-pack-selected>.dk-icon { width:40px; height:40px; flex:none; }
#duck-panel .dk-pack-selected>div { min-width:0; flex:1; }
#duck-panel .dk-pack-selected strong,#duck-panel .dk-pack-selected small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
#duck-panel .dk-pack-selected small { margin-top:4px; color:#9fbac4; }
#duck-panel .dk-pack-selected>button { width:32px; height:32px; padding:0; }
#duck-panel .dk-pack-editor label { color:#abc4c9; font-size:10px; }
#duck-panel .dk-pack-editor input { width:100%; min-width:0; height:36px; box-sizing:border-box; margin-top:4px; }
#duck-panel .dk-pack-editor>button { min-height:40px; padding:6px 10px; }
#duck-panel .dk-pack-dialog>footer { flex:none; padding:8px 14px 12px; }
#duck-panel .dk-pack-dialog>footer p { min-height:16px; margin:0 0 6px; color:#efc594; font-size:11px; }
#duck-panel .dk-pack-dialog>footer>div { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
@media(max-width:600px){
 #duck-panel .dk-pack-dialog { width:calc(100vw - 12px); height:calc(100dvh - 12px); max-height:calc(100dvh - 12px); }
 #duck-panel .dk-pack-columns { gap:8px; padding-inline:8px; }
 #duck-panel .dk-pack-columns .dk-stash-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 #duck-panel .dk-pack-editor { grid-template-columns:minmax(0,1fr) 90px; gap:8px; padding:10px; }
 #duck-panel .dk-pack-selected { grid-column:1/-1; }
}
#duck-panel .dk-item-dialog>[data-stash-close] { position:absolute; top:10px; right:10px; z-index:3; width:32px; height:32px; padding:0; font-size:22px; background:#253e49; }
#duck-panel .dk-item-dialog .dk-item-detail-hero { padding-right:36px; }
#duck-panel .dk-item-dialog .dk-item-detail-body { padding-top:18px; }
#duck-panel .dk-pack-dialog>header { position:static; width:auto; background:#1c3440; color:#e6eae1; box-shadow:none; }
#duck-panel .dk-stash-collection .dk-toolbar-filters { grid-template-columns:minmax(120px,200px) 160px 36px 36px; align-items:center; }
#duck-panel .dk-stash-collection .dk-toolbar-filters>[data-ux-bulk] { display:grid; place-items:center; width:36px; height:36px; padding:7px; }
#duck-panel .dk-toolbar-filters>[data-ux-bulk]>svg { width:20px; height:20px; }
@media(max-width:600px){#duck-panel .dk-stash-collection .dk-toolbar-filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px 36px; }}

#duck-panel .dk-report .dk-report-loot { display:block; }
#duck-panel .dk-key-archive [data-locked=true]>.dk-icon { filter:grayscale(1); opacity:.38; }
#duck-panel .dk-key-archive .dk-stash-cell>small { right:4px; text-align:center; }
#duck-panel .dk-world-label.is-interact-key { display:grid; place-items:center; min-width:30px; height:30px; padding:0 5px; border:1px solid #f3f9efcf; border-radius:6px; background:#152b36dd; color:#fff; font-size:15px; font-weight:800; line-height:1; box-shadow:0 3px 10px #0008; }
#duck-panel .dk-world-label.is-interact-key.is-locked { color:#f4ce87; border-color:#e2b96c; }
#duck-panel .dk-world-label.is-interact-key .dk-world-health { position:absolute; bottom:-5px; left:0; width:100%; height:3px; }
#duck-panel .dk-world-label.is-container { padding:2px 4px; font-size:11px; }
#duck-panel .dk-context:not([hidden]) { width:min(260px,calc(100% - 28px)); padding:8px 10px; gap:6px 8px; grid-template-columns:28px minmax(0,1fr) auto; }
#duck-panel .dk-context .dk-context-copy small { display:none; }
#duck-panel .dk-context .dk-context-copy strong { font-size:12px; }
#duck-panel .dk-context .dk-context-key { width:28px; min-width:28px; max-width:28px; height:28px; font-size:14px; }
#duck-panel .dk-report .dk-report-loot { display:block; width:100%; max-width:none; height:100%; max-height:none; margin:0; scrollbar-gutter:auto; }
#duck-panel .dk-item-dialog>.dk-item-detail-actions,#duck-panel .dk-pack-dialog>footer { display:block; box-sizing:border-box; width:100%; }
#duck-panel .dk-item-detail-actions>.dk-item-buttons,#duck-panel .dk-item-detail-actions>.dk-ux-flags { width:100%; min-width:0; flex:none; }
