/* Shared preparation scale. Inventory collections keep their existing icon grids. */
#duck-panel{--dk-space-1:8px;--dk-space-2:12px;--dk-space-3:16px;--dk-space-4:24px;--dk-target:44px}
#duck-panel .dk-prep-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,.9fr);gap:24px;align-items:start}
#duck-panel .dk-home-stage,#duck-panel .dk-home-sortie{min-width:0}
#duck-panel .dk-home-stage{display:flex;flex-direction:column;gap:16px}
#duck-panel .dk-home-stage .dk-world-preview{height:220px;min-height:0}
#duck-panel .dk-home-stage .dk-preview-title{top:24px;left:24px;right:24px}
#duck-panel .dk-home-stage .dk-preview-title h1{font-size:27px;margin:8px 0}
#duck-panel .dk-home-stage .dk-preview-title p{font-size:12px;line-height:1.5}
#duck-panel .dk-home-stage .dk-preview-title small{font-size:9px;letter-spacing:.06em}
#duck-panel .dk-home-stage .dk-preview-badge{left:24px;bottom:18px;font-size:11px}
#duck-panel .dk-home-stage .dk-preview-caption{display:none}
#duck-panel :is(.dk-preparation>header,.dk-home-sortie-heading){display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#duck-panel :is(.dk-preparation h2,.dk-home-sortie-heading h1){font-size:17px;line-height:24px;margin:0;color:#f0eddf}
#duck-panel :is(.dk-preparation>header,.dk-home-sortie-heading)>button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:12px;background:transparent;border-color:#617b8b66;padding:8px 12px}
#duck-panel .dk-home-sortie-heading svg{height:20px;width:20px}
#duck-panel .dk-prep-gear{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
#duck-panel .dk-prep-gear>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;aspect-ratio:1;min-height:72px;padding:6px;border-color:color-mix(in srgb,var(--grade),transparent 35%);background:linear-gradient(140deg,#2c4250,#1c2b36);overflow:hidden}
#duck-panel .dk-prep-gear .dk-icon{width:42px;height:42px;min-width:0;margin:0;border:0;background:transparent;display:grid;place-items:center}
#duck-panel .dk-prep-gear .dk-icon svg{width:100%;height:100%;max-width:42px;max-height:42px}
#duck-panel .dk-prep-gear small{font-size:10px;line-height:14px;white-space:nowrap;color:#b8ccd5}
#duck-panel .dk-prep-supplies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
#duck-panel .dk-prep-supplies>button{display:flex;align-items:center;gap:8px;height:64px;padding:8px;background:#20323d;border-color:#56718166;text-align:left;overflow:hidden}
#duck-panel .dk-prep-supplies .dk-icon{width:32px;height:32px;min-width:32px;border:0;background:transparent;display:grid;place-items:center;margin:0}
#duck-panel .dk-prep-supplies .dk-icon svg{width:100%;height:100%;max-width:32px;max-height:32px}
#duck-panel .dk-prep-supplies span{display:flex;flex-direction:column;min-width:0}
#duck-panel .dk-prep-supplies small{font-size:11px;line-height:18px;color:#adc6d2;white-space:nowrap}
#duck-panel .dk-prep-supplies b{font-size:13px;line-height:20px;white-space:nowrap}
#duck-panel .dk-prep-notices{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px;min-height:44px;font-size:12px;color:#a8c1c9}
#duck-panel .dk-prep-notices>button{display:flex;align-items:center;gap:6px;min-height:44px;padding:8px 10px;border:0;background:#493a2733;color:#ffd08f;font-size:12px}
#duck-panel .dk-prep-notices svg{width:18px;height:18px}
#duck-panel .dk-prep-notices b{font-weight:400}
#duck-panel .dk-prep-ready{color:#9adbb8}
#duck-panel .dk-prep-target{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin-top:8px;padding:8px 0;background:transparent;border:0;border-top:1px solid #a58d5444;color:#ecd18f;text-align:left;font-size:12px}
#duck-panel .dk-prep-target svg{width:20px;height:20px;flex:none}
#duck-panel .dk-prep-target span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#duck-panel .dk-home-sortie{padding:16px;border:1px solid #b4986466;border-top:2px solid #dec18a;border-radius:10px;background:linear-gradient(150deg,#3d382a66,#1a2a36 50%)}
#duck-panel .dk-home-sortie .dk-shell-page[data-shell-page=squad]{display:flex;flex-direction:column;gap:16px}
#duck-panel .dk-home-sortie .dk-sortie-config{gap:8px}
#duck-panel .dk-home-sortie .dk-squad-column{width:100%;min-width:0}
#duck-panel .dk-home-sortie .dk-squad-column>.dk-card{padding:12px 0 0;background:transparent;border:0;border-top:1px solid #66818c44;border-radius:0}
#duck-panel .dk-home-sortie .dk-squad-column h3{margin:0 0 8px;font-size:13px}
#duck-panel .dk-home-sortie .dk-member{min-height:48px;padding:8px 0;margin:0 0 12px}
#duck-panel .dk-member-check{font-size:11px;padding:8px;min-height:44px;background:transparent;border:0;color:#aad8c6}
#duck-panel .dk-home-sortie .dk-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
#duck-panel .dk-home-sortie .dk-actions>.dk-orange{grid-column:1/-1;font-size:16px;font-weight:700;min-height:52px;background:linear-gradient(120deg,#efd4a2,#d5b880);color:#29281f;border-color:#f4d9a4}
#duck-panel .dk-home-sortie .dk-actions>.dk-training{grid-column:1/-1;min-height:44px;background:transparent;border-style:dashed;color:#b0bfba}
#duck-panel .dk-home-sortie .dk-code-entry{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:8px}
#duck-panel .dk-prep-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
#duck-panel .dk-prep-shortcuts>button{height:44px;font-size:12px;background:#233744;border-color:#66899c66}
#duck-panel .dk-home-stage .dk-shell-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#duck-panel .dk-home-stage .dk-shell-actions>button{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;min-height:48px;padding:8px 12px;text-align:center}
#duck-panel .dk-home-stage .dk-shell-actions>button>span{width:22px;height:22px;font-size:20px}
#duck-panel .dk-home-stage .dk-shell-actions>button strong{font-size:12px;line-height:20px}
#duck-panel .dk-home-stage .dk-shell-actions>button small{display:none}
#duck-panel .dk-shell-dock{margin-top:16px;display:flex;justify-content:center;gap:8px;padding:8px;border:0;border-top:1px solid #5a728144;background:transparent;border-radius:0}
#duck-panel .dk-shell-favorites{display:flex;flex:0 1 auto;gap:8px;overflow-x:auto;scrollbar-width:none}
#duck-panel :is(.dk-shell-favorites,.dk-shell-dock)>button{flex:0 0 48px;width:48px;min-width:48px;height:48px;min-height:48px;display:grid;place-items:center;padding:10px}
#duck-panel :is(.dk-shell-favorites,.dk-shell-dock)>button>:is(strong,small){display:none}
#duck-panel :is(.dk-shell-favorites,.dk-shell-dock)>button>span{display:grid;place-items:center;width:24px;height:24px}
#duck-panel :is(.dk-shell-menu-action,.dk-shell-subnav button,.dk-shell-actions button)>span:first-child svg{width:24px;height:24px;display:block;margin:auto}
#duck-panel :is(.dk-shell-favorites,.dk-shell-dock)>button svg{width:24px;height:24px}
#duck-panel .dk-shell-header>[data-shell-back]{width:44px;height:44px;display:grid;place-items:center;padding:0}
#duck-panel .dk-shell-header small{letter-spacing:0;font-size:11px}
#duck-panel .dk-shell-menu-action>small{font-size:11px}
#duck-panel .dk-operation-row{grid-template-columns:minmax(0,1fr) 44px}
#duck-panel .dk-operation-row .dk-op-info{width:44px;min-width:44px}
#duck-panel .dk-risk-option{height:108px;display:grid;grid-template-rows:minmax(0,1fr) 44px}
#duck-panel .dk-risk-option>button[data-difficulty]{display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:3px 6px;padding:6px;min-height:0;text-align:center}
#duck-panel .dk-risk-option>button[data-difficulty]>svg{width:20px;height:20px}
#duck-panel .dk-risk-option small{flex-basis:100%;font-size:10px;line-height:16px;text-align:center}
#duck-panel .dk-risk-option .dk-op-info{position:static;display:flex;align-items:center;justify-content:center;width:100%;min-width:44px;height:44px;min-height:44px;border:0;border-top:1px solid #ffffff12;font-size:18px}
#duck-panel .dk-operation-risks{gap:8px}
#duck-panel :is(button,a,input,select):focus-visible{outline:2px solid #b1e6ee;outline-offset:3px}
@media(min-width:1100px){#duck-panel .dk-prep-home{grid-template-columns:minmax(0,1fr) minmax(420px,.85fr)}#duck-panel .dk-home-stage .dk-world-preview{height:250px}}
@media(max-width:900px){#duck-panel .dk-prep-home{grid-template-columns:minmax(0,1fr);gap:16px}#duck-panel .dk-home-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}#duck-panel .dk-home-stage>.dk-shell-hero{grid-column:1/-1}#duck-panel .dk-home-stage>.dk-shell-actions{align-self:end}#duck-panel .dk-home-stage .dk-world-preview{height:150px}#duck-panel .dk-prep-gear{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
 #duck-panel .dk-prep-home{gap:12px}#duck-panel .dk-home-stage{display:flex;gap:8px}
 #duck-panel .dk-home-stage .dk-world-preview{height:120px}#duck-panel .dk-home-stage .dk-preview-title{top:14px;left:14px;right:14px}#duck-panel .dk-home-stage .dk-preview-title h1{font-size:21px;line-height:26px;margin:4px 0}#duck-panel .dk-home-stage .dk-preview-title small{font-size:8px}#duck-panel .dk-home-stage .dk-preview-title p{display:none}#duck-panel .dk-home-stage .dk-preview-badge{left:14px;bottom:12px;font-size:10px;gap:6px}
 #duck-panel .dk-preparation>header{margin-bottom:8px}#duck-panel .dk-preparation h2{font-size:15px}#duck-panel .dk-prep-gear{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}#duck-panel .dk-prep-gear>button{aspect-ratio:auto;height:68px;min-height:68px;padding:4px 2px;gap:3px}#duck-panel .dk-prep-gear .dk-icon{width:30px;height:30px}#duck-panel .dk-prep-gear small{font-size:9px}
 #duck-panel .dk-prep-supplies{gap:5px;margin-top:8px}#duck-panel .dk-prep-supplies>button{gap:5px;padding:6px;height:58px}#duck-panel .dk-prep-supplies .dk-icon{width:24px;height:24px;min-width:24px}#duck-panel .dk-prep-supplies small{font-size:10px}#duck-panel .dk-prep-supplies b{font-size:11px}
 #duck-panel .dk-home-stage .dk-shell-actions{display:none}#duck-panel .dk-home-sortie{padding:12px}#duck-panel .dk-home-sortie-heading{margin-bottom:8px}#duck-panel .dk-home-sortie-heading h1{font-size:17px}#duck-panel .dk-home-sortie .dk-region-quest{height:56px;min-height:56px;padding:6px 8px}#duck-panel .dk-home-sortie .dk-member{margin-bottom:8px}
 #duck-panel .dk-shell-dock{padding:8px 0;gap:6px}#duck-panel .dk-shell-favorites{gap:6px}#duck-panel :is(.dk-shell-favorites,.dk-shell-dock)>button{width:44px;min-width:44px;height:44px;min-height:44px;flex-basis:44px;padding:8px}
 #duck-panel .dk-shell-dialog .dk-shell-subnav{gap:6px}#duck-panel .dk-shell-subnav button strong{font-size:11px}#duck-panel .dk-shell-subnav button svg{width:18px;height:18px}
}
@media(prefers-reduced-motion:reduce){#duck-panel .dk-prep-home *{animation:none!important;transition:none!important}}

/* Reset the site's generic white header inside the game and stretch flex children. */
#duck-panel :is(.dk-preparation>header,.dk-home-sortie-heading){position:static;inset:auto;width:100%;height:auto;min-height:44px;padding:0;background:transparent;border:0;box-shadow:none;z-index:auto}
#duck-panel .dk-home-sortie .dk-shell-page[data-shell-page=squad]{align-items:stretch}
#duck-panel .dk-prep-gear>button{aspect-ratio:auto;height:88px;max-height:88px}
#duck-panel .dk-home-stage .dk-shell-actions{grid-template-columns:minmax(0,1fr)}
#duck-panel .dk-home-sortie>.dk-prep-shortcuts{display:none}
@media(max-width:600px){#duck-panel .dk-prep-gear>button{height:68px;max-height:68px}}

@media(max-width:600px){
 #duck-panel.dk-shell-enabled:not(.dk-shell-field):has(.dk-prep-home){padding-bottom:92px}
 #duck-panel:not([data-shell-open]) .dk-home-sortie [data-prep-primary]{position:fixed;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 24px);height:52px;min-height:52px;margin:0;z-index:12;box-shadow:0 0 0 8px #101b23e8,0 -12px 28px #0a141acc;font-size:15px}
 #duck-panel:has(dialog[open]) .dk-home-sortie [data-prep-primary]{position:static;width:100%;box-shadow:none}
}

#duck-panel .dk-home-stage>.dk-shell-hero,#duck-panel .dk-home-stage .dk-world-preview{width:100%;align-self:stretch}
#duck-panel .dk-preparation>header{justify-content:space-between;max-width:none;gap:12px}
#duck-panel .dk-reticle-ammo{position:absolute;transform:translateX(-50%);z-index:5;pointer-events:none;white-space:nowrap;display:block;min-height:20px;padding:0;border:0;border-radius:0;background:transparent;color:#f9f4d8;font-size:14px;font-weight:750;line-height:20px;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #000,1px 0 2px #000;box-shadow:none}
#duck-panel .dk-reticle-ammo[hidden]{display:none!important}
#duck-panel .dk-reticle-ammo[data-state=low]{color:#ffd08a}
#duck-panel .dk-reticle-ammo[data-state=empty]{color:#ff9a94}
#duck-panel .dk-reticle-ammo[data-state=reload]{color:#a8e7ee}
#duck-panel .dk-ammo{min-height:60px;height:auto}
@media(max-width:700px){#duck-panel .dk-reticle-ammo{font-size:13px;line-height:18px}#duck-panel .dk-ammo{min-height:44px}}

@media(max-width:360px){#duck-panel .dk-prep-gear{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}}

/* Account status on the left, one unbroken quick-menu row on the right. */
#duck-panel .dk-top{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin:0 0 16px}
#duck-panel .dk-top>.dk-account{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:16px;max-width:none;min-width:0;margin:0;white-space:nowrap;font-size:12px}
#duck-panel .dk-top .dk-account .dk-level{padding:0;border:0;background:transparent;font-size:12px;line-height:20px}
#duck-panel .dk-top .dk-account>b{font-size:15px;line-height:20px}
#duck-panel .dk-top-tools{display:flex;flex:0 1 auto;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0;max-width:100%}
#duck-panel .dk-top-tools .dk-shell-dock{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0;max-width:100%;margin:0;padding:0;border:0;background:transparent}
#duck-panel .dk-top-tools .dk-shell-favorites{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;min-width:0;padding:0;overflow-x:auto;scrollbar-width:none}
#duck-panel .dk-top-tools .dk-shell-favorites::-webkit-scrollbar{display:none}
#duck-panel .dk-top-tools :is(.dk-shell-favorites,.dk-shell-dock)>button{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;max-height:44px;padding:8px;margin:0}
#duck-panel .dk-top-tools>.dk-sound-control{flex:0 0 44px;margin:0}
#duck-panel .dk-top-tools>.dk-sound-control>summary{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;line-height:1;font-size:18px;border:1px solid #63808c66;border-radius:6px;background:#23353d}
#duck-panel .dk-top-tools>.dk-sound-control>summary>span{display:none}
@media(max-width:720px){
 #duck-panel .dk-top{flex-direction:column;align-items:stretch;gap:10px;margin-bottom:12px}
 #duck-panel .dk-top>.dk-account{gap:12px;font-size:11px;max-width:none;justify-content:flex-start}
 #duck-panel .dk-top .dk-account .dk-level{font-size:11px}
 #duck-panel .dk-top .dk-account>b{font-size:14px}
 #duck-panel .dk-top-tools{width:100%;gap:6px;justify-content:flex-end}
 #duck-panel .dk-top-tools .dk-shell-dock,#duck-panel .dk-top-tools .dk-shell-favorites{gap:6px}
 #duck-panel .dk-top-tools .dk-shell-dock>[data-shell-open=menu]{flex-shrink:0}
}
/* The relocated settings popup anchors to the full toolbar on small screens. */
@media(max-width:720px){#duck-panel .dk-top-tools{position:relative}#duck-panel .dk-top-tools>.dk-sound-control{position:static}#duck-panel .dk-top-tools>.dk-sound-control>div{right:0;top:calc(100% + 8px);width:min(280px,calc(100vw - 48px));min-width:0;max-width:100%;z-index:20}}
/* Pack icons and quantity controls share fixed centers and a 44px action baseline. */
#duck-panel .dk-pack-columns .dk-stash-cell{position:relative;display:grid;place-items:center;padding:8px;touch-action:pan-y;cursor:grab}
#duck-panel .dk-pack-columns .dk-stash-cell>.dk-icon{display:grid;place-items:center;width:70%;height:70%;max-width:52px;max-height:52px;margin:0;padding:0;border:0;background:transparent}
#duck-panel .dk-pack-columns .dk-stash-cell>.dk-icon svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:0}
#duck-panel .dk-pack-editor{display:grid;grid-template-columns:minmax(0,1fr) 136px 112px;align-items:end;gap:12px;padding:14px 16px}
#duck-panel .dk-pack-selected{align-self:center;display:flex;align-items:center;gap:10px;min-width:0}
#duck-panel .dk-pack-selected>.dk-pack-detail{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;min-height:48px;margin:0;padding:6px;background:#263e49;border:1px solid #6f8b9466}
#duck-panel .dk-pack-detail>.dk-icon{display:grid;place-items:center;width:34px;height:34px;margin:0;padding:0;border:0;background:transparent}
#duck-panel .dk-pack-detail>.dk-icon svg{display:block;width:100%;height:100%;margin:0}
#duck-panel .dk-pack-selected>div{min-width:0}
#duck-panel .dk-pack-selected strong{font-size:12px;line-height:20px}
#duck-panel .dk-pack-selected small{font-size:11px;line-height:18px;margin-top:2px}
#duck-panel .dk-pack-quantity{display:grid;grid-template-rows:18px 44px;gap:6px;min-width:0}
#duck-panel .dk-pack-quantity>label{display:block;height:18px;line-height:18px;font-size:11px;margin:0;padding:0;white-space:nowrap}
#duck-panel .dk-pack-quantity>input{display:block;width:100%;height:44px;min-height:44px;max-height:44px;margin:0;padding:10px 12px;border:1px solid #6d879466;border-radius:6px;line-height:20px;font-size:13px;font-variant-numeric:tabular-nums}
#duck-panel .dk-pack-editor>[data-pack-set]{height:44px;min-height:44px;max-height:44px;align-self:end;margin:0;padding:10px 12px;font-size:12px;line-height:20px;white-space:nowrap}
#duck-panel .dk-pack-editor>p{grid-column:1/-1;margin:0;font-size:12px;color:#a9c2cb}
#duck-panel [data-pack-drop]{border-radius:6px}
#duck-panel [data-pack-drop].is-drop-target .dk-collection-frame{outline:2px dashed #9ce4d1;outline-offset:-2px;background:#6bd8bd12}
#duck-panel .dk-pack-drag-ghost{position:absolute;transform:translate(-50%,-50%);z-index:30;pointer-events:none;width:64px;height:64px;opacity:.85;display:grid;place-items:center;padding:8px;border:1px solid #a6e4d3;border-radius:6px;background:#25464df0}
#duck-panel .dk-pack-drag-ghost .dk-icon{width:44px;height:44px}
#duck-panel .dk-pack-drag-ghost>b{display:none}
@media(max-width:600px){#duck-panel .dk-pack-editor{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}#duck-panel .dk-pack-selected{grid-column:1/-1}#duck-panel .dk-pack-columns .dk-stash-cell{padding:4px}}

/* Keep the battlefield readout compact; only the ammunition icon is interactive. */
#duck-panel .dk-ammo-current{display:grid;place-items:center;position:relative;flex:none;width:42px;height:42px;min-width:0;min-height:0;padding:3px;border:1px solid #6b8c95;border-radius:5px;background:#172f3a;color:#dfe9cd;cursor:pointer;pointer-events:auto}
#duck-panel .dk-ammo-current .dk-icon{display:grid;place-items:center;margin:0;width:30px;height:30px}
#duck-panel .dk-ammo-current svg{width:28px;height:28px}
#duck-panel .dk-ammo-current kbd{position:absolute;right:1px;bottom:0;font-size:9px;line-height:12px}
#duck-panel #dk-ammo{box-sizing:border-box;display:flex;align-items:center;gap:8px;height:auto;min-height:58px;max-height:none;padding:8px}
#duck-panel #dk-ammo>div{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
#duck-panel #dk-ammo>div>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px}
#duck-panel #dk-ammo>div>span,#duck-panel #dk-ammo>div>small{display:block;margin:0;font-size:10px;line-height:15px;overflow-wrap:anywhere}
#duck-panel #dk-ammo>.dk-ammo-current{display:grid;place-items:center;box-sizing:border-box;flex:0 0 40px;width:40px;height:40px;min-width:40px;min-height:40px;padding:4px;overflow:hidden}
#duck-panel .dk-ammo-current>.dk-icon{display:grid;place-items:center;box-sizing:border-box;width:30px;height:30px;min-width:0;min-height:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#duck-panel .dk-ammo-current>.dk-icon>svg{display:block;width:28px;height:28px;margin:0}
#duck-panel #dk-ammo .dk-ammo-current>kbd{display:none}
@media(pointer:coarse){#duck-panel #dk-ammo>.dk-ammo-current{width:44px;min-width:44px;height:44px;min-height:44px;flex-basis:44px}}
/* Compact selectors: illustrations first, detail only when requested. */
#duck-panel .dk-ammo-dialog{box-sizing:border-box;width:208px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:visible;padding:10px;border:1px solid #718d99;border-radius:9px;background:#142b37;color:#e6e8cf;box-shadow:0 14px 50px #0009}
#duck-panel .dk-ammo-dialog::backdrop{background:#07141a44}
#duck-panel .dk-ammo-strip{display:flex;align-items:center;justify-content:space-between;gap:10px}
#duck-panel .dk-ammo-choices{display:grid;grid-template-columns:repeat(2,52px);gap:8px}
#duck-panel .dk-ammo-choices>button{position:relative;display:grid;place-items:center;width:52px;height:52px;min-width:52px;min-height:52px;padding:4px;border:1px solid transparent;border-radius:5px;background:#203843;cursor:pointer}
#duck-panel .dk-ammo-choices>button[aria-pressed=true]{border:2px solid #a6d4cb;background:#203843;box-shadow:none}
#duck-panel .dk-ammo-choices .dk-icon{width:32px;height:32px;min-width:0;margin:0;display:grid;place-items:center;border:0;background:none}
#duck-panel .dk-ammo-choices svg{width:30px;height:30px}
#duck-panel .dk-ammo-choices small{position:absolute;top:2px;right:3px;padding:0 2px;border:0;background:#12252bd9;font-size:9px;line-height:13px;color:#d8e1cc;font-variant-numeric:tabular-nums}
#duck-panel [data-ammo-close]{display:grid;place-items:center;min-width:36px;min-height:36px;width:36px;height:36px;padding:0;background:transparent;border:0;color:#bad0d8;font-size:20px}
#duck-panel .dk-ammo-details{border-top:1px solid #405d69;margin-top:10px;padding-top:10px;line-height:1.4}
#duck-panel .dk-ammo-details[hidden]{display:none}
#duck-panel .dk-ammo-details strong{font-size:12px}#duck-panel .dk-ammo-details p{font-size:11px;color:#bed0d3;margin:5px 0 10px}
#duck-panel .dk-ammo-details button{width:100%;min-height:36px;padding:6px;font-size:11px}

/* Equipment workspaces share a tight rhythm and keep secondary instructions off the canvas. */
#duck-panel .dk-shell-body{padding:14px}
#duck-panel .dk-shell-body .dk-toolbar{margin-bottom:10px;gap:10px}
#duck-panel .dk-shell-body .dk-toolbar h2{font-size:18px}
#duck-panel .dk-shell-body :is(h2,h3,h4,button,small){letter-spacing:0}
#duck-panel .dk-compact-armory{display:grid;grid-template-columns:176px minmax(0,1fr)!important;gap:14px;align-items:start}
#duck-panel .dk-armory-library{min-width:0}
#duck-panel .dk-library-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;min-height:26px;margin-bottom:6px;font-size:12px}
#duck-panel .dk-library-heading small{color:#aac0c9;font-size:10px}
#duck-panel .dk-armory-library .dk-collection-frame{flex:none}
#duck-panel .dk-armory-library .dk-collection-scroll{height:auto;max-height:calc(100dvh - 248px);padding:3px}
#duck-panel .dk-compact-guns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:none;overflow:visible;padding:0}
#duck-panel .dk-compact-guns>button{position:relative;display:grid;place-items:center;width:100%;height:52px;min-height:52px;max-height:52px;min-width:0;padding:3px;border:1px solid #506875;border-top:2px solid var(--grade);border-radius:5px;background:#1c303b}
#duck-panel .dk-compact-guns>button[aria-pressed=true]{outline:1px solid #d9c481;outline-offset:1px;background:#354a49}
#duck-panel .dk-compact-guns .dk-icon{width:34px;height:30px;min-width:0;margin:0 0 7px;border:0;background:none;display:grid;place-items:center}
#duck-panel .dk-compact-guns .dk-icon svg{width:34px;height:30px}
#duck-panel .dk-gun-number{position:absolute;bottom:1px;left:3px;right:3px;text-align:center;font-size:9px;color:#c2d1cd;line-height:12px}
#duck-panel .dk-gun-slot{position:absolute;left:3px;top:1px;font-size:10px;color:#b9d8e1;font-style:normal}
#duck-panel .dk-gun-rank{position:absolute;right:3px;top:1px;font-size:9px;color:#e7cf8f;font-style:normal}
#duck-panel .dk-compact-armory .dk-armory-hero{display:flex;flex-direction:row;align-items:center;gap:12px;padding:10px!important;border:0;border-radius:6px;background:#203541;min-height:104px}
#duck-panel .dk-compact-armory .dk-armory-hero .dk-weapon-showcase{width:124px;height:84px;flex:none}
#duck-panel .dk-armory-heading{min-width:0;flex:1}
#duck-panel .dk-armory-heading>small{font-size:10px;color:#a7c0ca}
#duck-panel .dk-text-inspect{min-height:30px;padding:0;border:0;background:transparent;text-align:left;color:inherit}
#duck-panel .dk-gun-title{display:block;width:100%;min-width:0}
#duck-panel .dk-compact-armory .dk-armory-hero h2{font-size:18px;line-height:24px;margin:2px 0}
#duck-panel .dk-armory-management{display:flex;flex-direction:column;gap:6px;flex:none}
#duck-panel .dk-armory-management .dk-ux-flags{display:grid;grid-template-columns:repeat(3,32px);gap:5px;flex-wrap:nowrap}
#duck-panel .dk-armory-management .dk-ux-flags button{display:grid;place-items:center;width:32px;height:32px;min-height:32px!important;padding:4px!important}
#duck-panel .dk-armory-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#duck-panel .dk-armory-links button{min-height:30px;padding:4px;font-size:10px}
#duck-panel .dk-compact-armory .dk-armory-equip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 12px}
#duck-panel .dk-compact-armory .dk-armory-equip button{min-height:38px;height:38px;padding:5px;font-size:11px}
#duck-panel .dk-armory-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);gap:14px;align-items:start}
#duck-panel .dk-compact-armory .dk-mount-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#duck-panel .dk-compact-armory .dk-mount{display:flex;flex-direction:column;min-height:0;height:auto;max-height:none;gap:8px;min-width:0;padding:9px;border:0;border-radius:5px;background:#1b303b}
#duck-panel .dk-compact-armory .dk-mount>b{font-size:11px;line-height:18px}
#duck-panel .dk-attachment-grid{display:grid;grid-template-columns:repeat(auto-fill,44px);gap:6px;align-content:start}
#duck-panel .dk-attachment-grid>.dk-attachment-cell{position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:3px;border:2px solid transparent;border-radius:5px;background:var(--ui-panel,#29414b);box-shadow:none}
#duck-panel .dk-attachment-grid>.dk-attachment-cell[aria-pressed=true]{border-color:var(--ui-accent,#a6d4cb);background:var(--studio-selected,#344d52)}
#duck-panel .dk-attachment-grid>.dk-attachment-cell:is(:hover,:focus-visible){background:var(--studio-hover,#3c535c);border-color:transparent}
#duck-panel .dk-attachment-grid>.dk-attachment-cell[aria-pressed=true]:is(:hover,:focus-visible){border-color:var(--ui-accent,#a6d4cb)}
#duck-panel .dk-attachment-cell:focus-visible{outline:2px solid #e6e1bb;outline-offset:2px}
#duck-panel .dk-attachment-cell.is-unavailable>.dk-icon{opacity:.38;filter:grayscale(1)}
#duck-panel .dk-attachment-cell>.dk-icon{display:grid;place-items:center;width:30px;height:30px;min-width:0;margin:0;border:0;background:none;color:var(--ui-muted,#bac8c9)}
#duck-panel .dk-attachment-cell>.dk-icon svg{width:30px;height:30px}
#duck-panel .dk-attachment-cell>small{position:absolute;right:2px;top:1px;font-size:9px;line-height:11px;padding:0 2px;border-radius:2px;background:#183039d9;color:#e0e7cf}
body:has(#duck-panel .dk-attachment-dialog[open]){overflow:hidden}
#duck-panel .dk-attachment-dialog{width:min(360px,calc(100vw - 24px));height:fit-content;max-height:calc(100dvh - 24px);padding:0;margin:auto;border:1px solid var(--studio-line-strong,#7898a1);border-radius:9px;background:var(--ui-paper,#182c37);color:var(--ui-ink,#e5ece7);box-shadow:0 20px 80px #0009;overflow:hidden}
#duck-panel .dk-attachment-dialog:not([open]){display:none}
#duck-panel .dk-attachment-dialog[open]{display:flex;flex-direction:column}
#duck-panel .dk-attachment-dialog::backdrop{background:#07121a99;backdrop-filter:blur(3px)}
#duck-panel .dk-attachment-dialog>[data-attachment-close]{position:absolute;right:9px;top:9px;width:32px;height:32px;min-height:32px;padding:0;font-size:21px;z-index:1}
#duck-panel .dk-attachment-detail-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;padding:14px}
#duck-panel .dk-attachment-detail-body::-webkit-scrollbar{display:none}
#duck-panel .dk-attachment-detail-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding-right:26px}
#duck-panel .dk-attachment-detail-heading>.dk-icon{display:grid;place-items:center;width:44px;height:44px;min-width:44px;margin:0;background:none;border:0;color:#b9cece}
#duck-panel .dk-attachment-detail-heading>.dk-icon svg{width:38px;height:38px}
#duck-panel .dk-attachment-detail-heading>div{min-width:0}
#duck-panel .dk-attachment-detail-heading small{font-size:10px;color:var(--ui-muted,#a6bfc8);line-height:15px}
#duck-panel .dk-attachment-detail-heading h3{font-size:17px;line-height:23px;margin:2px 0}
#duck-panel .dk-attachment-detail-heading span{font-size:10px;color:#b9cfbe}
#duck-panel .dk-attachment-compare>div{display:grid;grid-template-columns:1.15fr .8fr 1.15fr;gap:6px;align-items:center;min-height:29px;border-bottom:1px solid var(--ui-line,#a2bdc015);font-size:11px}
#duck-panel .dk-attachment-compare>div>:not(:first-child){text-align:right;white-space:nowrap}
#duck-panel .dk-attachment-compare-head{font-size:10px!important;color:#a5bdc6;min-height:24px!important}
#duck-panel .dk-attachment-compare strong{font-weight:600;color:#dde3db}
#duck-panel .dk-attachment-compare strong small{font-size:9px;font-weight:400}
#duck-panel .dk-attachment-compare .is-better{color:#8ddbb7}
#duck-panel .dk-attachment-compare .is-worse{color:#eda996}
#duck-panel .dk-attachment-current,#duck-panel .dk-attachment-issue{font-size:10px;line-height:16px;margin:8px 0 0;color:var(--ui-muted,#adc2c7)}
#duck-panel .dk-attachment-issue{color:#e2b49c}
#duck-panel .dk-attachment-detail-actions{display:flex;flex:none;gap:8px;padding:10px 14px;border-top:1px solid var(--ui-line,#48646e)}
#duck-panel .dk-attachment-detail-actions>button{flex:1;min-width:0;height:38px;min-height:38px;padding:5px;font-size:12px}
#duck-panel .dk-compact-upgrade{margin:0;padding:9px 0 0;border:0;border-top:2px solid #b8a675;background:none;border-radius:0}
#duck-panel .dk-compact-upgrade .dk-upgrade-heading{min-height:26px;margin-bottom:6px;gap:8px}
#duck-panel .dk-compact-upgrade h3{font-size:14px;margin:0;line-height:24px}
#duck-panel .dk-compact-upgrade .dk-enhance-badge{padding:1px 4px;font-size:11px;background:none;border:0}
#duck-panel .dk-compact-upgrade .dk-text-inspect{font-size:10px;min-height:26px;color:#b9c9c8}
#duck-panel .dk-compact-upgrade .dk-enhancement-compare{gap:3px 10px}
#duck-panel .dk-compact-upgrade .dk-enhancement-compare>div{padding:4px 0;min-height:26px;background:none;font-size:11px}
#duck-panel .dk-compact-upgrade .dk-enhancement-compare small{font-size:10px}
#duck-panel .dk-compact-upgrade .dk-enhancement-compare b{font-size:11px}
#duck-panel .dk-upgrade-cost-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}
#duck-panel .dk-compact-upgrade .dk-upgrade-materials{display:flex;gap:6px;margin:0;flex-wrap:wrap}
#duck-panel .dk-upgrade-material{position:relative;display:grid;place-items:center;width:44px;height:48px;min-width:44px;min-height:48px;padding:2px;background:#203944;border:1px solid #54716d;border-radius:4px}
#duck-panel .dk-upgrade-material.is-missing{border-color:#ae8173;color:#e6af94}
#duck-panel .dk-upgrade-material .dk-icon{width:28px;height:28px;margin:0 0 9px;border:0;background:none}
#duck-panel .dk-upgrade-material small{position:absolute;bottom:1px;left:1px;right:1px;font-size:9px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#duck-panel .dk-upgrade-workbench{display:flex;align-items:center;gap:4px;font-size:10px;color:#adc4ca;white-space:nowrap}
#duck-panel .dk-upgrade-workbench button{min-height:30px;width:30px;padding:0;background:none;border:0}
#duck-panel .dk-upgrade-actions{display:flex;gap:7px;align-items:stretch}
#duck-panel .dk-upgrade-actions>button{min-height:38px;padding:5px 8px;font-size:11px}
#duck-panel .dk-upgrade-actions>[data-track-upgrade]{width:38px;flex:none;padding:0;font-size:18px}
#duck-panel .dk-upgrade-actions>[data-upgrade-weapon]{flex:1}
#duck-panel .dk-compact-upgrade .dk-upgrade-issue{display:block;margin:6px 0 0;font-size:10px;line-height:15px}
#duck-panel .dk-compact-armory .dk-specialization{margin:12px 0 0;padding:10px 0;border:0;border-top:1px solid #4a6370;background:none}
#duck-panel .dk-specialization>summary,#duck-panel .dk-compact-presets>summary{cursor:pointer;font-size:12px;line-height:24px}
#duck-panel .dk-specialization>summary small,#duck-panel .dk-compact-presets>summary small{margin-left:8px;font-size:10px;color:#a8bdc4}
#duck-panel .dk-specialization-options{margin-top:8px;gap:8px}
#duck-panel .dk-shell-dialog:has([data-shell-page="loadout"]:not([hidden])){width:min(560px,calc(100vw - 24px));height:fit-content;max-height:calc(100dvh - 24px)}
#duck-panel .dk-shell-dialog .dk-compact-loadout{max-width:none;width:100%;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#duck-panel .dk-compact-loadout h3{margin:0 0 8px;font-size:13px}
#duck-panel .dk-shell-dialog .dk-compact-loadout .dk-gear{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
#duck-panel .dk-compact-loadout .dk-slot{display:grid;place-items:center;align-content:center;gap:4px;height:66px;min-height:66px;min-width:0;padding:4px}
#duck-panel .dk-compact-loadout .dk-slot>.dk-icon{width:32px;height:32px;min-width:0;margin:0;background:none;border:0}
#duck-panel .dk-compact-loadout .dk-slot>small{font-size:9px;line-height:13px;white-space:nowrap}
#duck-panel .dk-compact-loadout .dk-gear-check{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:10px;line-height:18px;margin:8px 0;padding:0;border:0;background:none}
#duck-panel .dk-compact-loadout .dk-pack-launch{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;height:44px;padding:6px 10px;margin:10px 0}
#duck-panel .dk-compact-loadout .dk-pack-launch>span{display:flex;align-items:center;gap:10px}
#duck-panel .dk-compact-loadout .dk-pack-launch strong{font-size:12px}
#duck-panel .dk-compact-loadout .dk-pack-launch small{font-size:10px;margin:0}
#duck-panel .dk-loadout-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#duck-panel .dk-loadout-actions button{min-height:38px;padding:5px;font-size:11px}
#duck-panel .dk-compact-presets{margin:12px 0 0;padding:8px 0;border:0;border-top:1px solid #4a6370;border-radius:0;background:none}
#duck-panel .dk-compact-presets .dk-ux-presets{margin-top:8px;gap:6px}
#duck-panel .dk-compact-presets .dk-ux-preset-row{padding:6px;gap:6px}
#duck-panel .dk-compact-presets form{margin-top:8px;gap:7px}
#duck-panel .dk-compact-presets input,#duck-panel .dk-compact-presets button{min-height:36px;padding:5px 8px}
@media(max-width:1000px){#duck-panel .dk-armory-workbench{grid-template-columns:1fr}}
@media(max-width:700px){
 #duck-panel .dk-compact-armory{grid-template-columns:1fr!important;gap:10px}
 #duck-panel .dk-armory-library .dk-collection-scroll{max-height:122px}
 #duck-panel .dk-compact-guns{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
 #duck-panel .dk-compact-guns>button{height:48px;min-height:48px;max-height:48px}
 #duck-panel .dk-compact-armory .dk-armory-hero{flex-wrap:wrap;gap:8px;padding:8px!important;min-height:0}
 #duck-panel .dk-compact-armory .dk-armory-hero .dk-weapon-showcase{width:84px;height:64px}
 #duck-panel .dk-compact-armory .dk-armory-hero h2{font-size:16px}
 #duck-panel .dk-armory-management{width:100%;flex-direction:row;justify-content:space-between;align-items:center;gap:8px}
 #duck-panel .dk-armory-links{grid-template-columns:repeat(2,60px)}
 #duck-panel .dk-compact-armory .dk-armory-equip{margin:8px 0;gap:5px}
 #duck-panel .dk-compact-armory .dk-armory-equip button{font-size:10px}
 #duck-panel .dk-shell-body{padding:10px}
 #duck-panel .dk-shell-dialog .dk-compact-loadout .dk-gear{gap:4px}
 #duck-panel .dk-compact-loadout .dk-slot{height:62px;min-height:62px}
 #duck-panel .dk-compact-loadout .dk-slot>.dk-icon{width:29px;height:29px}
 #duck-panel .dk-compact-loadout .dk-pack-launch>span{gap:6px}
}

#duck-panel .dk-shell-dialog:has([data-shell-page="tab:armory"]:not([hidden])){height:fit-content;min-height:0;max-height:calc(100dvh - 32px)}
#duck-panel .dk-shell-dialog:has([data-shell-page="tab:armory"]:not([hidden])) .dk-shell-body{flex:0 1 auto;max-height:calc(100dvh - 190px)}
#duck-panel .dk-shell-body{scrollbar-width:none}#duck-panel .dk-shell-body::-webkit-scrollbar{display:none}

/* Assembly has explicit mounted slots and a return area; storage cells stay compact. */
#duck-panel .dk-assembly-panel{display:grid;gap:12px;min-width:0}
#duck-panel .dk-assembly-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#duck-panel .dk-assembly-slot{display:grid;gap:5px;justify-items:center;min-width:0}
#duck-panel .dk-assembly-slot>small{font-size:11px;line-height:16px;color:var(--ui-muted,#b7c5c8)}
#duck-panel .dk-assembly-slot>.dk-attachment-cell{position:relative;display:grid;place-items:center;width:52px;height:52px;min-height:52px;padding:5px;border:2px solid transparent;border-radius:8px;background:var(--ui-panel,#29414b)}
#duck-panel .dk-assembly-slot>.dk-attachment-cell[aria-pressed=true]{border-color:var(--ui-accent,#a6d4cb)}
#duck-panel .dk-assembly-slot>.dk-attachment-cell:hover:not(:disabled){border-color:transparent}
#duck-panel .dk-assembly-slot>.dk-attachment-cell[aria-pressed=true]:hover:not(:disabled){border-color:var(--ui-accent,#a6d4cb)}
#duck-panel .dk-assembly-stash{min-height:98px;padding:10px;border:1px solid var(--ui-line,#48646e);border-radius:8px;background:var(--ui-paper,#182c37)}
#duck-panel .dk-assembly-stash-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
#duck-panel .dk-assembly-stash-heading strong{font-size:12px;font-weight:500}
#duck-panel .dk-assembly-return-hint{display:none;font-size:11px;color:var(--ui-accent,#a6d4cb)}
#duck-panel[data-assembly-dragging=mounted] .dk-assembly-return-hint{display:block}
#duck-panel [data-attachment-source]{touch-action:none;user-select:none;-webkit-user-select:none}
#duck-panel [data-attachment-source=mounted],#duck-panel [data-attachment-source=stash]:not(.is-unavailable){cursor:grab}
#duck-panel [data-drop-compatible=true]{outline:1px dashed var(--ui-accent,#a6d4cb);outline-offset:3px}
#duck-panel [data-drop-ready=true]{outline:2px solid var(--ui-accent,#a6d4cb);outline-offset:3px;background:var(--studio-selected,#344d52)!important}
#duck-panel .dk-attachment-drag-ghost{position:fixed;inset:auto;z-index:10005;display:grid;place-items:center;width:48px;height:48px;min-height:48px;margin:0;padding:4px;pointer-events:none;transform:translate(-50%,-50%);border:1px solid var(--ui-accent,#a6d4cb);background:var(--ui-panel,#29414b);border-radius:7px;opacity:.9;box-shadow:0 5px 18px #0006}
#duck-panel .dk-attachment-drag-ghost>.dk-icon{width:32px;height:32px;margin:0;border:0;background:none}
#duck-panel .dk-attachment-drag-ghost>small{display:none}
#duck-panel .dk-attachment-dialog{width:min(336px,calc(100vw - 24px))}
#duck-panel .dk-attachment-detail-body{padding:12px}
#duck-panel .dk-attachment-detail-heading{gap:8px;margin-bottom:8px}
#duck-panel .dk-attachment-detail-heading h3{font-size:15px;line-height:21px}
#duck-panel .dk-attachment-compare>div{min-height:26px;line-height:17px}
#duck-panel .dk-attachment-detail-actions{padding:9px 12px}
#duck-panel :is([data-attachment-close],[data-stash-close],[data-recipe-close],[data-operation-close],[data-ammo-close],[data-pack-close],[data-shell-close],[data-shell-back]){display:grid!important;place-items:center!important;line-height:1!important;padding:0!important}
#duck-panel :is([data-attachment-close],[data-stash-close],[data-recipe-close],[data-operation-close],[data-ammo-close],[data-pack-close],[data-shell-close],[data-shell-back])>svg{display:block;width:16px!important;height:16px!important;margin:0!important;transform:none}
#duck-panel .dk-item-dialog{width:min(384px,calc(100vw - 24px))}
#duck-panel .dk-item-detail-body{padding:12px}
#duck-panel .dk-item-detail-spec>strong{font-size:16px}
#duck-panel .dk-item-detail-spec .dk-weapon-facts{margin-block:8px;gap:5px 8px}
#duck-panel .dk-item-detail-spec p{font-size:12px;line-height:1.45;margin-block:7px}

/* Recipes, archives and pack editing share the same collection/detail scale. */
#duck-panel .dk-catalogue .dk-arsenal-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:6px;flex:none;margin-bottom:12px}
#duck-panel .dk-catalogue .dk-arsenal-filters>button{min-width:0;height:40px;min-height:40px;padding:6px;font-size:12px}
#duck-panel .dk-catalogue-preview{display:block;width:100%;height:124px;margin:0 0 10px}
#duck-panel .dk-recipe-grid{width:100%;max-width:none;max-height:none;overflow:visible;padding:0;scrollbar-gutter:auto}
#duck-panel .dk-recipe-grid>.dk-recipe-icon>.dk-icon{max-width:48px;max-height:48px}
#duck-panel .dk-recipe-filters{max-width:none;gap:8px;margin-bottom:10px}
#duck-panel .dk-recipe-list-heading{max-width:none;margin-bottom:8px}
#duck-panel .dk-recipe-dialog{width:min(384px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
#duck-panel .dk-recipe-dialog>[data-recipe-close]{position:absolute;z-index:2;top:10px;right:10px;width:36px;height:36px;min-height:36px;margin:0;font-size:22px}
#duck-panel .dk-recipe-detail-body{padding:14px 12px 12px;gap:12px;scrollbar-width:none}
#duck-panel .dk-recipe-spec{padding-top:2px;padding-right:38px}
#duck-panel .dk-recipe-spec>strong{font-size:16px;line-height:22px;margin-bottom:6px}
#duck-panel .dk-recipe-spec p{font-size:12px;line-height:1.45;margin-block:7px}
#duck-panel .dk-recipe-spec .dk-item-badges{margin-bottom:6px}
#duck-panel .dk-recipe-detail-body h3{font-size:12px;margin-bottom:7px}
#duck-panel .dk-recipe-requirements{padding:0;border:0;background:none}
#duck-panel .dk-recipe-materials{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
#duck-panel .dk-recipe-materials>.dk-stash-cell{height:auto;min-height:0}
#duck-panel .dk-recipe-materials>.is-missing>b{color:#edb1a1}
#duck-panel .dk-recipe-materials>.is-enough>b{color:#acd4b4}
#duck-panel .dk-recipe-dialog>footer{padding:10px 12px 12px;gap:7px}
#duck-panel .dk-recipe-dialog>footer button{height:44px}
#duck-panel .dk-drop-grid{grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:7px;margin-bottom:10px}
#duck-panel .dk-bestiary-list>button{height:100px;min-height:100px;overflow:hidden}
#duck-panel .dk-bestiary-regions{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px}
#duck-panel .dk-bestiary-regions>button{height:40px;min-height:40px;min-width:0;padding:6px;font-size:12px}
#duck-panel .dk-pack-dialog .dk-pack-detail{width:44px;height:44px;min-height:44px;flex-basis:44px}
#duck-panel .dk-pack-selected strong{display:block;overflow-wrap:anywhere}
#duck-panel .dk-pack-dialog>footer p:empty{display:none}
@media(max-width:600px){
 #duck-panel .dk-catalogue .dk-arsenal-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 #duck-panel .dk-catalogue .dk-arsenal-filters>button{height:44px;min-height:44px;font-size:11px}
 #duck-panel .dk-pack-columns .dk-stash-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #duck-panel .dk-drop-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 #duck-panel .dk-recipe-materials{grid-template-columns:repeat(4,minmax(0,1fr))}
 #duck-panel .dk-bestiary-list>button{min-width:0;height:88px;min-height:88px}
}
@media(pointer:coarse){#duck-panel :is([data-stash-close],[data-recipe-close],[data-pack-close]){width:44px;height:44px;min-height:44px}}
#duck-panel :is([data-stash-close],[data-recipe-close],[data-pack-close]){box-sizing:border-box;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;flex:0 0 40px;margin:0!important}
#duck-panel .dk-recipe-materials>.dk-stash-cell{height:auto;aspect-ratio:1;padding:6px}
#duck-panel .dk-recipe-materials .dk-icon{width:100%;height:100%;max-width:42px;max-height:42px}
#duck-panel .dk-recipe-materials>.dk-stash-cell>b{font-size:9px}
body:has(#duck-panel dialog[open]){overflow:hidden}
#duck-panel :is(.dk-item-dialog,.dk-recipe-dialog,.dk-pack-dialog){box-sizing:border-box;inset:0;margin:auto!important;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
@media(max-width:600px){#duck-panel .dk-pack-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}}
@media(max-height:500px){#duck-panel .dk-pack-dialog{overflow-y:auto;scrollbar-width:none}#duck-panel .dk-pack-columns{flex:none;height:180px}#duck-panel .dk-pack-editor{flex:none}}

/* Field inventory uses the same icon cells, compact details and action metrics. */
#duck-panel .dk-floating{box-sizing:border-box;width:452px;max-width:calc(100% - 12px);max-height:min(620px,calc(100% - 12px))!important;--collection-bg:var(--ui-paper,#1c1c20)}
#duck-panel .dk-window-gear{width:452px!important}
#duck-panel .dk-window-info{width:384px!important;max-width:calc(100% - 12px);max-height:min(680px,calc(100% - 12px))!important;background:var(--ui-paper,#1c1c20)!important;border-color:var(--studio-line-strong,#55555c)!important}
#duck-panel .dk-floating>header{min-height:52px;padding:6px 10px!important;gap:10px}
#duck-panel .dk-floating>header h3{font-size:15px!important;line-height:22px;margin:0}
#duck-panel .dk-floating>header.is-item-detail{min-height:48px;border-bottom:0}
#duck-panel .dk-detail-grip{display:block;color:var(--ui-muted,#aaa9b0);font-size:20px;line-height:24px}
#duck-panel .dk-floating [data-close-window]{display:grid;place-items:center;box-sizing:border-box;flex:0 0 40px;width:40px!important;min-width:40px!important;max-width:40px;height:40px!important;min-height:40px!important;margin:0;padding:0!important;line-height:1}
#duck-panel .dk-floating [data-close-window]>svg{display:block;width:16px;height:16px;margin:0!important}
#duck-panel .dk-floating .dk-window-scroll{scrollbar-width:none;max-height:none}
#duck-panel .dk-floating .dk-window-scroll::-webkit-scrollbar{display:none}
#duck-panel .dk-floating .dk-grid-scroll{padding:10px;min-height:0}
#duck-panel .dk-floating .dk-inventory-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
#duck-panel .dk-floating :is(.dk-inventory-grid>*,.dk-field-slot>.dk-inventory-cell){box-sizing:border-box;position:relative;display:grid;place-items:center;aspect-ratio:1;width:100%;height:auto;min-height:0!important;max-height:none;padding:6px;overflow:hidden;flex:none}
#duck-panel .dk-floating .dk-inventory-cell>.dk-icon{display:grid;place-items:center;width:100%;height:100%;min-height:0;max-width:48px;max-height:48px;margin:0;padding:0;flex:none;pointer-events:none}
#duck-panel .dk-floating .dk-inventory-cell>.dk-icon svg{display:block;width:100%;height:100%;max-width:48px;max-height:48px}
#duck-panel .dk-floating .dk-inventory-cell>b{top:2px;right:3px;left:auto;font-size:10px;line-height:14px;padding:0 2px;background:#16161be6;border-radius:2px}
#duck-panel .dk-floating .dk-item-handle{top:auto;bottom:0;right:0;width:22px;height:22px;min-height:22px;line-height:22px;font-size:16px}
#duck-panel .dk-field-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:10px}
#duck-panel .dk-field-slot{min-width:0}
#duck-panel .dk-field-slot>small{display:block;margin-top:5px;font-size:10px;line-height:16px;color:var(--ui-muted,#aaa9b0);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#duck-panel .dk-field-slot.is-active .dk-inventory-cell{border-color:var(--ui-accent,#f5d34f)}
#duck-panel .dk-slot-active{position:absolute;bottom:2px;left:0;right:0;width:auto!important;min-height:0!important;font-size:9px!important;line-height:12px!important;color:var(--ui-accent,#f5d34f)!important;text-align:center}
#duck-panel .dk-floating .dk-field-detail-scroll{padding:0 12px 12px}
#duck-panel .dk-window-info .dk-item-detail-hero>.dk-icon{width:48px;height:48px}
#duck-panel .dk-window-info .dk-item-detail-hero svg{width:40px;height:40px}
#duck-panel .dk-floating .dk-overlay-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;min-height:0;padding:10px 12px;flex:none}
#duck-panel .dk-floating .dk-bag-tools{display:flex;gap:8px;padding:8px 10px}
#duck-panel .dk-floating button.dk-icon-action{display:grid;place-items:center;flex:0 0 40px;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px;padding:0!important;margin:0;font-size:12px}
#duck-panel .dk-floating .dk-icon-action>svg{width:18px;height:18px}
#duck-panel .dk-floating footer{min-height:0;padding:8px 10px;justify-content:flex-start;gap:8px}
#duck-panel .dk-floating .dk-loot-capacity{padding:8px 10px;font-size:11px;gap:8px;flex-wrap:wrap}
#duck-panel .dk-floating .dk-split-controls{margin:12px 0 0;padding:10px 0 0;border:0;border-top:1px solid var(--ui-line,#45454a);background:none}
#duck-panel .dk-floating .dk-split-controls :is(input,button){box-sizing:border-box;height:44px;min-height:44px;margin:0}
#duck-panel .dk-floating .dk-ux-compare{margin:10px 0;padding:10px;font-size:12px}
#duck-panel .dk-floating .dk-ux-compare>small{display:none}
#duck-panel .dk-floating .dk-window-feedback{padding-inline:10px;font-size:11px}
#duck-panel .dk-field-collection{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;max-height:350px}
#duck-panel .dk-field-collection>.dk-collection-scroll{height:auto;flex:1 1 auto;max-height:350px}
@media(max-width:700px){
 #duck-panel .dk-floating{width:min(452px,calc(100% - 12px))!important;max-width:calc(100% - 12px);max-height:calc(100% - 12px)!important}
 #duck-panel .dk-window-info{width:min(384px,calc(100% - 12px))!important}
 #duck-panel .dk-floating :is(.dk-inventory-grid,.dk-field-slots){gap:5px}
 #duck-panel .dk-floating .dk-inventory-grid>*{padding:4px}
 #duck-panel .dk-floating .dk-inventory-cell>b{font-size:9px}
}
@media(pointer:coarse){#duck-panel .dk-floating :is([data-close-window],button.dk-icon-action){width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px;flex-basis:44px}}
@media(max-height:500px){#duck-panel .dk-field{min-height:0!important;height:calc(100dvh - 56px)!important}}
@media(max-height:500px) and (max-width:700px){#duck-panel .dk-field{height:calc(100dvh - 40px)!important}}
@media(pointer:coarse){#duck-panel :is([data-stash-close],[data-recipe-close],[data-pack-close]){width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;flex-basis:44px}}
/* Plain menu names size to their text instead of inheriting the weapon card width. */
.dk-weapon-tooltip{width:max-content;max-width:min(328px,calc(100vw - 20px));min-width:0;min-height:0;padding:11px 12px;font-size:12px;line-height:1.45;background:var(--ui-paper,#182c37);color:var(--ui-ink,#e5ece7);border-color:var(--studio-line-strong,#7898a1);border-radius:8px;overflow-wrap:anywhere}
.dk-weapon-tooltip>strong{font-size:14px;line-height:19px;margin:0 0 6px}
.dk-weapon-tooltip p{font-size:12px;line-height:1.45;margin:6px 0 0}
.dk-weapon-tooltip .dk-weapon-facts{gap:4px 8px;font-size:11px;line-height:16px}
.dk-weapon-tooltip .dk-item-badges{margin-bottom:7px}
.dk-weapon-tooltip .dk-weapon-options{margin-top:8px;padding-top:8px}
.dk-weapon-tooltip .dk-weapon-options ul{gap:4px}
.dk-weapon-tooltip .dk-weapon-options li{gap:10px;font-size:11px;line-height:16px}
.dk-weapon-tooltip .dk-weapon-build{margin-top:7px;font-size:11px;line-height:16px}
.dk-weapon-tooltip .dk-tooltip-ammo{margin-top:8px;padding:6px;gap:7px}
.dk-weapon-tooltip:is(.is-label,.is-action){width:max-content;max-width:min(240px,calc(100vw - 20px));min-width:0;min-height:0;padding:6px 9px;font-size:12px;line-height:18px;border-radius:6px;white-space:normal}
.dk-weapon-tooltip:is(.is-label,.is-action)>strong{font-size:12px;line-height:18px;margin:0}
.dk-weapon-tooltip.is-action small{font-size:11px;line-height:16px;margin:2px 0 0}
@media(max-width:700px){#duck-panel .dk-assembly-slots{gap:6px}#duck-panel .dk-assembly-slot>.dk-attachment-cell{width:48px;height:48px;min-height:48px}.dk-weapon-tooltip{max-width:calc(100vw - 20px)}}
/* All icon-only item actions share one square footprint, including a single buy action. */
#duck-panel :is(.dk-item-buttons,.dk-ux-flags)[data-icon-actions]{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px!important;height:auto;min-height:0}
#duck-panel :is(.dk-item-buttons,.dk-ux-flags)>.dk-icon-action{display:grid!important;place-items:center!important;flex:0 0 40px!important;box-sizing:border-box;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;border-radius:8px!important;line-height:1!important}
#duck-panel .dk-icon-action>svg{display:block;width:18px!important;height:18px!important;margin:0}
#duck-panel .dk-item-buttons>.dk-roll-purchase-note{flex-basis:100%;margin:0;font-size:11px;line-height:16px}
.dk-weapon-tooltip .dk-tooltip-meta{margin-top:8px;padding-top:7px;gap:5px 8px;font-size:11px;line-height:16px}
#duck-panel [data-item-icon][tabindex="0"]{cursor:help}
@media(pointer:coarse){#duck-panel :is(.dk-item-buttons,.dk-ux-flags)>.dk-icon-action{flex-basis:44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important}}
#duck-panel .dk-home-stage .dk-preview-badge{display:flex;align-items:center;flex-wrap:wrap;width:auto;max-width:calc(100% - 40px);height:auto;min-height:0;gap:8px;padding:0;border:0;border-radius:0;background:transparent;backdrop-filter:none;font-size:11px;line-height:18px;color:#e5e9e5;text-shadow:0 1px 3px #0009}
#duck-panel .dk-home-stage .dk-preview-badge i{display:block;flex:none;width:1px;height:10px;min-height:0;background:#d2d9d577}
@media(max-width:700px){#duck-panel .dk-home-stage .dk-preview-badge{font-size:10px;line-height:16px;max-width:calc(100% - 28px)}}
#duck-panel .dk-operation-detail-body .dk-objective-steps{display:block;list-style:disc outside!important;margin:10px 0 12px;padding:0 0 0 14px;counter-reset:none;font-size:12px;line-height:18px;color:#c7bdd4}
#duck-panel .dk-operation-detail-body .dk-objective-steps>li{position:static;display:list-item!important;list-style:disc outside!important;margin:4px 0;padding:0;min-height:18px;font-size:12px;line-height:18px;counter-increment:none;color:inherit}
#duck-panel .dk-operation-detail-body .dk-objective-steps>li::marker{color:currentColor;font-size:10px}
#duck-panel .dk-operation-detail-body .dk-objective-steps>li::before,#duck-panel .dk-operation-detail-body .dk-objective-steps>li::after{content:none!important;display:none!important}
/* A single mobile workspace replaces overlapping field windows. Desktop layouts stay independent. */
#duck-panel #dk-loot-host[data-field-tabs="true"]>.dk-ux-layout{display:none!important}
#duck-panel #dk-loot-host[data-field-tabs="true"]>.dk-floating[hidden]{display:none!important}
#duck-panel .dk-field-tabs{position:absolute;inset:6px 6px auto;z-index:60;display:flex;align-items:center;gap:6px;height:52px;padding:4px;box-sizing:border-box;pointer-events:auto;background:var(--ui-paper,#1c1c20);border:1px solid var(--studio-line-strong,#55555c);border-radius:12px}
#duck-panel .dk-field-tabs>[role="tablist"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;min-width:0;gap:4px}
#duck-panel .dk-field-tabs [role="tab"]{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;height:44px;min-height:44px;padding:0 5px;box-sizing:border-box;border:1px solid transparent;background:transparent;border-radius:8px;font-size:12px;line-height:18px;white-space:nowrap}
#duck-panel .dk-field-tabs [role="tab"]>svg{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
#duck-panel .dk-field-tabs [aria-selected="true"]{border-color:var(--ui-accent,#f5d34f);color:var(--ui-accent,#f5d34f);background:color-mix(in srgb,var(--ui-accent,#f5d34f) 12%,transparent)}
#duck-panel .dk-field-tabs [role="tab"]:disabled{opacity:.35}
#duck-panel .dk-field-tabs>[data-field-close]{display:grid;place-items:center;flex:0 0 44px;width:44px!important;min-width:44px;height:44px!important;min-height:44px;padding:0!important;margin:0;font-size:23px;line-height:1;border-radius:8px}
#duck-panel #dk-loot-host[data-field-tabs="true"]>:is(.dk-window-bag,.dk-window-gear,.dk-window-loot){left:6px!important;top:64px!important;bottom:6px;z-index:50!important;width:calc(100% - 12px)!important;max-width:none;height:calc(100% - 70px);max-height:none!important;transform:none;border-radius:12px}
#duck-panel #dk-loot-host[data-field-tabs="true"]>[role="tabpanel"]>header{display:none}
#duck-panel #dk-loot-host[data-field-tabs="true"]>[role="tabpanel"] .dk-field-collection{max-height:none;flex:1 1 0}
#duck-panel #dk-loot-host[data-field-tabs="true"]>[role="tabpanel"] .dk-collection-scroll{max-height:none;flex:1 1 0}
#duck-panel #dk-loot-host[data-field-tabs="true"]>[role="tabpanel"] footer :is([data-bag],[data-equipment]){display:none!important}
#duck-panel #dk-loot-host[data-field-tabs="true"]>.dk-window-info{left:50%!important;top:50%!important;z-index:90!important;transform:translate(-50%,-50%);width:min(384px,calc(100% - 24px))!important;max-width:calc(100% - 24px);height:auto;max-height:calc(100% - 24px)!important;border-radius:12px}
#duck-panel #dk-loot-host[data-field-tabs="true"]>.dk-field-detail-shade{position:absolute;inset:0;z-index:80!important;display:block;width:100%!important;height:100%!important;max-width:none;min-height:0;margin:0;padding:0!important;border:0;border-radius:0;background:#08090eb3;backdrop-filter:blur(3px);pointer-events:auto}
#duck-panel #dk-loot-host[data-field-tabs="true"] .dk-window-info>header{cursor:default;touch-action:auto}

#duck-panel #dk-loot-host[data-field-tabs="true"] .dk-detail-grip{visibility:hidden}
/* The tactical map uses the browser top layer above every field HUD/window. */
#duck-panel dialog.dk-map-overlay{position:fixed;inset:0;box-sizing:border-box;width:100dvw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--ui-ink,#e5ece7);overflow:hidden}
#duck-panel dialog.dk-map-overlay::backdrop{background:#06090b80}
#duck-panel .dk-map-overlay>.dk-minimap.is-expanded{inset:16px;padding-top:60px;max-height:none}
#duck-panel .dk-map-overlay .dk-map-close{position:absolute;top:8px;right:8px;z-index:3;display:grid;place-items:center;box-sizing:border-box;width:40px!important;min-width:40px;max-width:40px;height:40px!important;min-height:40px;max-height:40px;padding:0!important;margin:0;border-radius:8px;font-size:24px;line-height:1}
#duck-panel .dk-window-menu{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:min(420px,calc(100% - 24px))!important;max-height:calc(100% - 24px)!important;padding:0!important;gap:0!important}
#duck-panel .dk-window-menu>header{display:flex;align-items:center;justify-content:space-between;flex:none;border-bottom:1px solid var(--ui-line,#45454a)}
#duck-panel .dk-operation-menu-body{padding:16px;overflow:auto;scrollbar-width:none}
#duck-panel .dk-operation-menu-body>p{margin:0 0 16px;font-size:12px;line-height:1.6}
#duck-panel .dk-operation-menu-body>[data-abandon]{box-sizing:border-box;width:100%;height:44px;min-height:44px;padding:0 12px;margin:0;font-size:12px}
@media(max-width:700px){#duck-panel .dk-map-overlay>.dk-minimap.is-expanded{inset:6px;padding:58px 10px 10px}}
@media(pointer:coarse){#duck-panel .dk-map-overlay .dk-map-close{width:44px!important;min-width:44px;max-width:44px;height:44px!important;min-height:44px;max-height:44px}}
/* Extraction destinations use equal compact list rows rather than tall cards. */
#duck-panel .dk-map-overlay .dk-exit-list{align-self:start;height:auto;max-height:100%!important;margin:0;overflow:auto;scrollbar-width:none;scrollbar-gutter:auto}
#duck-panel .dk-map-overlay .dk-exit-list::-webkit-scrollbar{display:none}
#duck-panel .dk-exit-list .dk-exit-helper{padding:10px;background:var(--ui-paper,#1c1c20);border:1px solid var(--studio-line-strong,#55555c);border-radius:10px}
#duck-panel .dk-exit-list .dk-exit-helper>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 8px;margin:0 0 4px;border-bottom:1px solid var(--ui-line,#45454a)}
#duck-panel .dk-exit-list .dk-exit-helper h3{margin:0;font-size:13px;line-height:20px}
#duck-panel .dk-exit-list .dk-exit-helper>header span{font-size:10px;white-space:nowrap;color:var(--ui-muted,#aaa9b0)}
#duck-panel .dk-exit-rows{display:block;list-style:none;margin:0;padding:0}
#duck-panel .dk-exit-rows>li{margin:0;padding:0;list-style:none}
#duck-panel .dk-exit-list .dk-exit-rows .dk-exit-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:18px 16px;align-content:center;align-items:center;box-sizing:border-box;width:100%;height:56px!important;min-height:56px!important;max-height:56px!important;margin:0;padding:8px!important;gap:2px 8px!important;border:0;border-bottom:1px solid var(--ui-line,#45454a);border-radius:0;background:transparent;text-align:left}
#duck-panel .dk-exit-rows>li:last-child .dk-exit-card{border-bottom:0}
#duck-panel .dk-exit-list .dk-exit-rows .dk-exit-card>b{grid-column:1;grid-row:1;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px!important;line-height:18px}
#duck-panel .dk-exit-list .dk-exit-rows .dk-exit-condition{grid-column:1;grid-row:2;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px!important;line-height:16px;color:var(--ui-muted,#aaa9b0)}
#duck-panel .dk-exit-list .dk-exit-rows .dk-exit-distance{grid-column:2;grid-row:1/-1;align-self:center;white-space:nowrap;font-size:11px!important;font-variant-numeric:tabular-nums;color:var(--ui-ink,#e5ece7)}
#duck-panel .dk-exit-list .dk-exit-rows [data-open="true"]>b{color:#b5dda6}
#duck-panel .dk-exit-list .dk-exit-rows .dk-exit-card.is-selected{background:color-mix(in srgb,var(--ui-accent,#f5d34f) 10%,transparent);box-shadow:inset 2px 0 var(--ui-accent,#f5d34f);border-radius:4px}
#duck-panel .dk-exit-rows .dk-exit-card>progress{position:absolute;left:8px;right:8px;bottom:2px;width:calc(100% - 16px);height:3px;margin:0}
@media(max-width:899px){#duck-panel .dk-map-overlay .dk-exit-list{align-self:stretch;max-height:48%!important;flex:0 1 auto}#duck-panel .dk-map-overlay .dk-minimap>canvas{min-height:0!important}}
@media(max-height:500px){#duck-panel .dk-map-overlay>.dk-minimap.is-expanded{display:grid;grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:minmax(0,1fr) auto;gap:6px 10px}#duck-panel .dk-map-overlay .dk-minimap>canvas{grid-column:1;grid-row:1;height:100%;min-height:0!important}#duck-panel .dk-map-overlay .dk-minimap>span{grid-column:1;grid-row:2;font-size:9px;line-height:14px;padding:0}#duck-panel .dk-map-overlay .dk-exit-list{grid-column:2;grid-row:1/-1;align-self:start;max-height:100%!important}}

/* Keep the scene comfortably framed instead of compressing it into a short banner. */
#duck-panel .dk-home-stage .dk-world-preview{height:auto;aspect-ratio:2/1;min-height:220px;max-height:360px}
#duck-panel .dk-home-stage #dk-lobby-preview{display:block;width:100%;height:100%;min-width:0;min-height:0}
@media(max-width:600px){#duck-panel .dk-home-stage .dk-world-preview{aspect-ratio:16/9;min-height:180px;max-height:260px}}
