/* Duckfront interface: quiet home, deliberate overlays, predictable list geometry.
   Loaded last so arcade page rules cannot become game component rules. */
#duck-panel {
  --dk-bg: #11171e;
  --dk-panel: #19232d;
  --dk-panel2: #222f3c;
  --dk-ink: #f1f1e9;
  --dk-muted: #a8b6c2;
  --dk-line: #394958;
  --dk-accent: #88dedc;
  --dk-green: #93d5b2;
  --dk-ux-line: #52687866;
  --dk-ux-muted: #a8b8c8;
  --dk-ux-surface: #192630;
  --dk-ux-focus: #99e2df;
  --dk-control-height: 44px;
  --dk-space-1: 6px;
  --dk-space-2: 10px;
  --dk-space-3: 16px;
  --dk-space-4: 24px;
  --dk-space-5: 32px;
  padding: 22px;
  min-width: 0;
  border: 1px solid #3a4958;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0, #293a462b, transparent 65%), var(--dk-bg);
  color: var(--dk-ink);
  font-size: 13px;
  line-height: 1.55;
  color-scheme: dark;
  box-shadow: 0 18px 65px #08101824;
}
#duck-panel, #duck-panel * { box-sizing: border-box; }
#duck-panel :is(h1,h2,h3,h4,p,span,strong,small,em) { min-width: 0; }
#duck-panel :is(ol,ul) { list-style: none; counter-reset: none; }
#duck-panel li { list-style: none; counter-increment: none; padding-left: 0; margin-bottom: 0; color: inherit; }
#duck-panel li::before, #duck-panel li::after { content: none !important; display: none !important; counter-increment: none; }
#duck-panel :is(button,input,select) { min-width: 0; font: inherit; }
#duck-panel button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #4b5b6b;
  border-radius: 6px;
  background: #25313d;
  color: #e6edf0;
  line-height: 1.4;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  touch-action: manipulation;
}
#duck-panel button:hover:not(:disabled) { background: #344756; border-color: #88cdcf; }
#duck-panel button:focus-visible, #duck-panel :is(input,select,summary):focus-visible {
  outline: 2px solid #a2eeeb; outline-offset: 3px;
}
#duck-panel :is(input,select) { min-height: 44px; border-radius: 6px; border: 1px solid #506372; background: #15222d; color: #e5edf1; }
#duck-panel button:disabled { opacity: .48; }
#duck-panel .dk-primary { background: #416b6b; border-color: #82c9c8; color: #f5ffff; }
#duck-panel .dk-orange { background: #dfc18b; border-color: #f5d79e; color: #202a32; }
#duck-panel .dk-danger { background: #743f3f; border-color: #c18b81; color: #ffe7dc; }
#duck-panel .dk-top { gap: 16px; margin: 0 0 18px; min-height: 54px; }
#duck-panel .dk-logo strong { color: #f2eee0; font-size: 24px; letter-spacing: 1px; }
#duck-panel .dk-logo small, #duck-panel .dk-logo strong span { color: #99aeba; }
#duck-panel .dk-mini-portrait { border-color: #6d8596; border-radius: 6px; background-color: #273944; box-shadow: none; }
#duck-panel .dk-account { color: #abbcc7; gap: 16px; }
#duck-panel .dk-account b { color: #e9d4a8; }
#duck-panel .dk-account .dk-level { border-radius: 5px; border-color: #536b7b; background: #233744; color: #dce7e8; white-space: nowrap; }
#duck-panel .dk-overline { color: #9bb4bf; font-size: 10px; line-height: 1.6; letter-spacing: 1.3px; }
#duck-panel kbd { border-color: #778c9b80; background: #12212ad9; color: #d7e4e8; border-radius: 3px; }
#duck-panel .dk-card { padding: 20px; border-radius: 8px; border-color: #435663; background: #1d2a35; box-shadow: none; }
#duck-panel .dk-card h3 { color: #ecebdd; font-size: 15px; }
#duck-panel .dk-card p { color: #a8bac7; font-size: 12px; line-height: 1.8; }
#duck-panel .dk-icon { border-radius: 5px; border-color: #5b7483; background: #2b3e47; box-shadow: none; }
#duck-panel .dk-toast { position: fixed; inset: auto 20px 24px; z-index: 300; width: fit-content; max-width: min(620px,calc(100vw - 40px)); margin: 0 auto; border-radius: 7px; background: #233d47f5; border-color: #83c3c5; color: #f0f6ed; font-size: 13px; pointer-events: none; }
#duck-panel .dk-guest { background: #23323b; color: #b3c0cb; border-color: #546575; margin-top: 16px; font-size: 11px; border-radius: 6px; }
#duck-panel .dk-guest a { color: #ade7e4; }

/* The home keeps the place and next action visible; details belong to menus. */
#duck-panel .dk-shell-home { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; min-width: 0; position: relative; }
#duck-panel .dk-shell-hero { position: relative; min-width: 0; overflow: hidden; border-radius: 10px; border: 1px solid #5c7482; background: #243940; }
#duck-panel .dk-shell-hero .dk-world-preview { width: 100%; height: clamp(330px,46vw,520px); margin: 0; border: 0; border-radius: 0; box-shadow: none; }
#duck-panel .dk-shell-hero .dk-world-preview::after { background: linear-gradient(180deg,#0a1825bf 0,transparent 44%,#101e2dcc 100%); }
#duck-panel .dk-shell-hero .dk-preview-title { left: 32px; top: 30px; }
#duck-panel .dk-shell-hero .dk-preview-title small { color: #b7d4dc; font-size: 10px; letter-spacing: 1.7px; }
#duck-panel .dk-shell-hero .dk-preview-title h1 { color: #fff6df; font-size: clamp(30px,3vw,45px); line-height: 1.35; margin: 12px 0; letter-spacing: -1px; }
#duck-panel .dk-shell-hero .dk-preview-title p { color: #d5e4e1; font-size: 13px; }
#duck-panel .dk-shell-hero .dk-preview-badge { left: 32px; bottom: 27px; gap: 14px; color: #d6e7e7; font-size: 12px; }
#duck-panel .dk-shell-hero .dk-preview-caption { right: 28px; bottom: 27px; color: #c0d1d3; font-size: 11px; }
#duck-panel .dk-shell-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 10px; min-width: 0; }
#duck-panel .dk-shell-actions > button { width: 100%; height: 58px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 14px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-shell-actions > button small { font-size: 10px; font-weight: 400; }
#duck-panel .dk-shell-dock { display: grid; grid-template-columns: minmax(0,1fr) 88px; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #3e5565; border-radius: 9px; background: #182731; }
#duck-panel .dk-shell-favorites { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(72px,1fr); align-items: center; gap: 8px; min-width: 0; padding: 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #5e7c89 #182731; scroll-padding-inline: 3px; }
#duck-panel .dk-shell-favorites::-webkit-scrollbar { height: 5px; }
#duck-panel .dk-shell-favorites::-webkit-scrollbar-thumb { border-radius: 3px; background: #5e7c89; }
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button { height: 72px; width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 7px 5px; background: #243440; border-color: #52687566; font-size: 12px; overflow: hidden; }
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button > :is(i,b,span:first-child) { font-style: normal; }
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button > i, #duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button > b { color: #9cd9dc; font-size: 22px; font-weight: 400; line-height: 1.1; }
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button :is(strong,small,span) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button[aria-pressed=true] { background: #34535d; border-color: #8bd6d5; }
#duck-panel .dk-shell-dock > [data-shell-open=menu] { border-color: #81b5be88; background: #2b4652; }
#duck-panel .dk-shell-favorites > .dk-shell-dock-empty { color: #b8d3dc; border-style: dashed; }
#duck-panel .dk-shell-stash { display: none !important; }
#duck-panel .dk-shell-menu-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; min-width: 0; }
#duck-panel .dk-shell-menu-grid > button { display: grid; grid-template-columns: 40px minmax(0,1fr); grid-template-rows: 28px 40px; gap: 5px 13px; align-content: center; align-items: center; height: 116px; padding: 16px; text-align: left; border-color: #526e7b88; background: #21313f; overflow: hidden; }
#duck-panel .dk-shell-menu-grid > button > i { grid-row: 1/3; font-size: 27px; color: #9ad9dc; font-style: normal; text-align: center; }
#duck-panel .dk-shell-menu-grid > button > strong { font-size: 15px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-shell-menu-grid > button > small { color: #9eb5c3; font-weight: 400; font-size: 11px; line-height: 1.7; max-height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#duck-panel .dk-shell-favorites-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; margin-bottom: 8px; min-width: 0; }
#duck-panel .dk-shell-favorites-header > div { min-width: 0; }
#duck-panel .dk-shell-favorites-header strong { color: #e9eee6; font-size: 14px; line-height: 1.6; }
#duck-panel .dk-shell-favorites-header strong > span { display: inline; margin-left: 8px; color: #9bd8dc; font-size: 12px; white-space: nowrap; }
#duck-panel .dk-shell-favorites-header p { margin: 5px 0 0; color: #a9bfcc; font-size: 11px; line-height: 1.8; }
#duck-panel .dk-shell-favorites-header > button { flex: 0 0 auto; min-height: 44px; padding: 10px 13px; white-space: nowrap; }
#duck-panel .dk-shell-favorite-status { display: flex; align-items: center; min-height: 42px; margin: 0 0 16px; padding: 8px 12px; border: 1px solid #506a7780; border-radius: 6px; background: #1b303c; color: #b5ccd4; font-size: 11px; line-height: 1.8; }
#duck-panel .dk-shell-menu-item { position: relative; min-width: 0; height: 116px; border: 1px solid #526e7b88; border-radius: 6px; background: #21313f; }
#duck-panel .dk-shell-menu-item:focus-within { border-color: #9ad9dc; }
#duck-panel .dk-shell-menu-item > .dk-shell-menu-action { display: grid; grid-template-columns: 32px minmax(0,1fr); grid-template-rows: 28px 40px; align-content: center; align-items: center; gap: 5px 10px; width: 100%; height: 100%; padding: 16px; border: 0; text-align: left; background: transparent; overflow: hidden; }
#duck-panel .dk-shell-menu-action > span:first-child { grid-column: 1; grid-row: 1; font-size: 27px; line-height: 1.2; color: #a0dcdd; text-align: center; }
#duck-panel .dk-shell-menu-action > strong { grid-column: 2; grid-row: 1; padding-right: 38px; font-size: 15px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#duck-panel .dk-shell-menu-action > small { grid-column: 1/-1; grid-row: 2; align-self: start; max-height: 38px; color: #9eb5c3; font-size: 11px; font-weight: 400; line-height: 1.7; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#duck-panel .dk-shell-menu-item > .dk-shell-favorite { position: absolute; top: 7px; right: 7px; width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; border-color: transparent; border-radius: 5px; background: #172631; color: #a0b8c6; }
#duck-panel .dk-shell-favorite > span { font-size: 25px; font-weight: 400; line-height: 1; pointer-events: none; }
#duck-panel .dk-shell-menu-item > .dk-shell-favorite[aria-pressed=true] { color: #edcf89; background: #4b4430; border-color: #bba66b80; }
#duck-panel .dk-shell-home-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
#duck-panel .dk-shell-home-summary > * { padding: 14px 16px; border: 1px solid #405765; border-radius: 7px; background: #1b2a34; min-width: 0; }
#duck-panel .dk-shell-home-summary strong { display: block; font-size: 13px; color: #e9eee6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-shell-home-summary small { display: block; font-size: 11px; color: #99b0bd; margin-top: 5px; }

/* Native dialogs keep focus, return actions and their scroll area together. */
#duck-panel .dk-shell-dialog, #duck-panel .dk-ux-dialog {
  width: min(1180px,calc(100vw - 48px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid #708b99;
  border-radius: 12px;
  background: #15212b;
  color: #edf2ed;
  box-shadow: 0 28px 120px #000b;
  overflow: hidden;
  overscroll-behavior: contain;
}
#duck-panel .dk-shell-dialog[open] { display: flex; flex-direction: column; }
#duck-panel :is(.dk-shell-dialog,.dk-ux-dialog):not([open]) { display: none; }
#duck-panel :is(.dk-shell-dialog,.dk-ux-dialog)::backdrop { background: #080f18c7; backdrop-filter: blur(5px); }
#duck-panel .dk-shell-dialog > .dk-shell-header,
#duck-panel .dk-ux-dialog > header {
  position: static; height: auto; min-height: 78px; flex: 0 0 auto;
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
  gap: 14px; margin: 0; padding: 14px 22px; border: 0; border-bottom: 1px solid #526c7b;
  background: #243642; color: #f2f1e8; box-shadow: none;
}
#duck-panel .dk-shell-header > div { min-width: 0; flex: 1; }
#duck-panel .dk-shell-header h2, #duck-panel .dk-ux-dialog > header h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.45; color: #f3f3e9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-shell-header small { font-size: 10px; color: #a8c9d2; letter-spacing: 1.6px; }
#duck-panel .dk-shell-header > button, #duck-panel .dk-ux-dialog > header > button { flex: 0 0 auto; height: 44px; width: 44px; padding: 0; border-color: #7796a077; font-size: 22px; background: #1a2b36; border-radius: 6px; }
#duck-panel .dk-shell-body, #duck-panel .dk-ux-body { min-height: 0; min-width: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 22px; max-height: calc(100dvh - 130px); touch-action: pan-y; }
#duck-panel .dk-shell-body::-webkit-scrollbar, #duck-panel .dk-ux-body::-webkit-scrollbar { width: 8px; height: 8px; }
#duck-panel .dk-shell-body::-webkit-scrollbar-thumb, #duck-panel .dk-ux-body::-webkit-scrollbar-thumb { background: #526d7c; border: 2px solid #15212b; border-radius: 8px; }
#duck-panel .dk-shell-page { min-width: 0; }
#duck-panel .dk-shell-page > :first-child { margin-top: 0; }
#duck-panel .dk-shell-page > :last-child { margin-bottom: 0; }
#duck-panel .dk-shell-dialog .dk-toolbar, #duck-panel .dk-shell-dialog .dk-section-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 20px; min-width: 0; }
#duck-panel .dk-shell-dialog .dk-toolbar h2, #duck-panel .dk-shell-dialog .dk-section-title h2 { margin: 4px 0; font-size: 22px; color: #edeedf; }
#duck-panel .dk-shell-dialog .dk-toolbar > span, #duck-panel .dk-shell-dialog .dk-section-title > span { color: #9cb2c0; font-size: 12px; max-width: 460px; }
#duck-panel .dk-shell-dialog .dk-section-title small { color: #9ab8c4; font-size: 10px; letter-spacing: 1px; }
#duck-panel .dk-shell-dialog .dk-world-column { display: block; min-width: 0; }
#duck-panel .dk-shell-dialog .dk-squad-column { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(230px,.8fr); align-items: start; gap: 18px; }
#duck-panel .dk-shell-dialog .dk-loadout-column { max-width: 800px; margin-inline: auto; }
#duck-panel .dk-shell-dialog .dk-loadout-column .dk-gear { grid-template-columns: repeat(2,minmax(0,1fr)); }
#duck-panel .dk-shell-dialog .dk-loadout-column .dk-character { height: 240px; }
#duck-panel .dk-shell-dialog .dk-loadout-column .dk-3d-character { width: 216px; height: 216px; }
#duck-panel .dk-shell-dialog .dk-side-tip { padding: 20px; margin: 0; background: #1e303c; border-color: #4a6573; border-radius: 7px; }
#duck-panel .dk-shell-dialog .dk-side-tip p { font-size: 12px; color: #a8c0ca; line-height: 1.9; }
#duck-panel .dk-shell-dialog .dk-member { min-height: 76px; border-color: #48606c; }
#duck-panel .dk-shell-dialog .dk-member > span { font-size: 13px; color: #e0e8e8; }
#duck-panel .dk-shell-dialog .dk-member small { font-size: 11px; color: #a2b8c2; }
#duck-panel .dk-shell-dialog .dk-member i { font-size: 11px; }
#duck-panel .dk-empty-squad { padding: 24px 0; }
#duck-panel .dk-empty-squad strong { color: #dde7e8; font-size: 15px; }
#duck-panel .dk-empty-squad p { color: #a0b5c2; font-size: 12px; }
#duck-panel .dk-room-badge { border-color: #648691; background: #223e49; border-radius: 6px; }
#duck-panel .dk-actions { gap: 9px; }
#duck-panel .dk-actions > button { min-height: 48px; font-size: 13px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-code-entry { display: grid; grid-template-columns: minmax(0,1fr) 76px; gap: 8px; }
#duck-panel .dk-code-entry input { border-color: #5f7b88; background: #142530; padding: 10px 12px; }

/* Fixed dimensions within each collection. Full details remain in inspection overlays. */
#duck-panel .dk-gear { gap: 8px; }
#duck-panel .dk-slot { width: 100%; height: 76px; min-height: 76px; gap: 10px; padding: 10px 12px; background: #1a2b36; border-color: #486371; overflow: hidden; }
#duck-panel .dk-slot strong { font-size: 12px; line-height: 1.5; color: #e1e9e2; }
#duck-panel .dk-slot small { font-size: 10px; color: #98b3bf; margin-bottom: 5px; }
#duck-panel .dk-slot > .dk-icon { width: 42px; height: 42px; }
#duck-panel .dk-slot > i { flex: 0 0 auto; }
#duck-panel .dk-toolbar-filters { display: grid; grid-template-columns: minmax(140px,1fr) 160px; gap: 8px; min-width: 0; }
#duck-panel .dk-toolbar-filters :is(input,select) { width: 100%; max-width: none; min-height: 44px; margin: 0; padding: 10px 12px; }
#duck-panel .dk-item-grid { grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 14px; align-items: stretch; }
#duck-panel .dk-item-grid > .dk-item {
  height: 360px; min-height: 360px; max-height: 360px; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 16px; overflow: hidden; border-radius: 7px;
  border-color: #526774; background: #20303b;
}
#duck-panel .dk-item-grid > .dk-item > .dk-weapon-inspect { height: 86px; min-height: 86px; margin: 0 !important; padding: 7px; border-color: #68828a66; background: linear-gradient(135deg,#304653,#1b2d38); border-radius: 6px; }
#duck-panel .dk-item-grid > .dk-item > .dk-weapon-inspect > .dk-icon { width: 100%; height: 68px; }
#duck-panel .dk-item-grid > .dk-item > .dk-weapon-inspect > .dk-icon > svg { width: 100%; height: 100%; max-width: 140px; }
#duck-panel .dk-item-grid > .dk-item > h4 { flex: 0 0 39px; height: 39px; min-height: 39px; max-height: 39px; margin: 10px 0 8px; white-space: normal; font-size: 13px; line-height: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#duck-panel .dk-item-grid > .dk-item > .dk-card-details { flex: 0 0 46px; height: 46px; min-height: 46px; max-height: 46px; gap: 4px; margin-top: 8px; overflow: hidden; }
#duck-panel .dk-item-grid > .dk-item > .dk-ux-flags { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); height: 44px; min-height: 44px; max-height: 44px; margin-top: 8px; gap: 5px; overflow: hidden; }
#duck-panel .dk-item-grid > .dk-item > .dk-ux-flags button { height: 44px; min-height: 44px !important; padding: 4px 5px !important; font-size: 10px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-item-grid > .dk-item > .dk-item-buttons { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); height: 48px; min-height: 48px; padding-top: 4px; gap: 5px; align-content: end; margin-top: auto; }
#duck-panel .dk-item-grid > .dk-item > .dk-item-buttons > button { height: 42px; min-height: 42px; margin: 0; padding: 6px 4px; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#duck-panel .dk-item-qty { top: 19px; right: 20px; z-index: 1; background: #142530d9; border-radius: 3px; padding: 2px 5px; font-size: 11px; }
#duck-panel .dk-item-badges { display: flex; gap: 5px; flex-wrap: nowrap; width: 100%; min-width: 0; overflow: hidden; }
#duck-panel :is(.dk-category-chip,.dk-grade) { flex: 0 1 auto; max-width: 100%; height: 24px; min-height: 24px; padding-inline: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 22px; font-size: 11px; border-radius: 4px; }
#duck-panel .dk-grade-guide { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
#duck-panel .dk-grade-guide > div { height: 125px; padding: 12px; overflow: hidden; border-radius: 5px; }
#duck-panel .dk-grade-guide :is(span,small) { font-size: 10px; line-height: 1.6; }

/* Compact recipe browser. Crafting controls stay in the focused detail dialog. */
#duck-panel .dk-recipe-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 12px; max-width: 760px; margin-bottom: 14px; }
#duck-panel .dk-recipe-filters label { display: grid; gap: 6px; min-width: 0; color: #bed0d8; font-size: 12px; }
#duck-panel .dk-recipe-filters select { min-width: 0; width: 100%; height: 44px; margin: 0; padding: 8px 10px; background: #142530; color: #edf1e5; border: 1px solid #587887; border-radius: 5px; }
#duck-panel .dk-recipe-filters > button { min-height: 44px; margin: 0; }
#duck-panel .dk-recipe-list-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; max-width: 600px; margin: 0 0 10px; color: #c8dbdf; font-size: 12px; }
#duck-panel .dk-recipe-list-heading small { color: #9bb6c3; font-size: 11px; }
#duck-panel .dk-recipe-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; width: min(100%,600px); max-height: clamp(220px,50dvh,520px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 3px; align-content: start; }
#duck-panel .dk-recipe-icon { display: grid; place-items: center; position: relative; width: 100%; min-width: 0; height: auto; min-height: 0; aspect-ratio: 1; padding: 7px; margin: 0; border: 1px solid #526b77; border-top: 2px solid var(--grade); border-radius: 6px; background: #22343e; }
#duck-panel .dk-recipe-icon:is(:hover,:focus-visible) { outline: 2px solid #a0dfdf; outline-offset: 0; background: #304d59; }
#duck-panel .dk-recipe-icon .dk-icon { width: 100%; height: 100%; min-width: 0; margin: 0; background: transparent; border: 0; box-shadow: none; }
#duck-panel .dk-recipe-icon .dk-icon svg { width: 84%; height: 84%; max-width: 68px; max-height: 68px; }
#duck-panel .dk-recipe-icon[data-locked=true] .dk-icon { opacity: .55; }
#duck-panel .dk-recipe-icon > b, #duck-panel .dk-recipe-icon > small { position: absolute; padding: 2px 4px; border-radius: 3px; line-height: 1.2; pointer-events: none; }
#duck-panel .dk-recipe-icon > b { top: 3px; right: 3px; color: #e0e6c7; background: #122632e8; font-size: 10px; }
#duck-panel .dk-recipe-icon > small { bottom: 3px; left: 3px; background: #152730ed; color: #b3c0c8; font-size: 9px; }
#duck-panel .dk-recipe-icon[data-ready=true] > small { background: #214f43; color: #b4f0cc; }
#duck-panel .dk-recipe-empty { grid-column: 1/-1; padding: 24px 12px; text-align: center; color: #c0d0d8; }
#duck-panel .dk-recipe-dialog { position: fixed; inset: 0; width: min(520px,calc(100vw - 24px)); max-width: none; max-height: min(840px,calc(100dvh - 32px)); margin: auto; padding: 0; border: 1px solid #7797a3; border-radius: 10px; color: #e6ece4; background: #182a35; box-shadow: 0 20px 80px #030c16a6; overflow: hidden; }
#duck-panel .dk-recipe-dialog[open] { display: flex; flex-direction: column; }
#duck-panel .dk-recipe-dialog::backdrop { background: #070f18a8; backdrop-filter: blur(2px); }
#duck-panel .dk-recipe-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #526e7c; background: #243742; flex: 0 0 auto; }
#duck-panel .dk-recipe-dialog > header h2 { margin: 0; font-size: 18px; line-height: 1.5; }
#duck-panel .dk-recipe-dialog > header button { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 24px; }
#duck-panel .dk-recipe-detail-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: grid; gap: 18px; }
#duck-panel .dk-recipe-output { display: flex; align-items: center; gap: 14px; font-size: 13px; }
#duck-panel .dk-recipe-output > .dk-icon { width: 64px; height: 64px; flex: 0 0 64px; }
#duck-panel .dk-recipe-output > span:last-child { display: flex; gap: 12px; align-items: center; color: #b9cbd2; }
#duck-panel .dk-recipe-output b { font-size: 20px; color: #e5e9c7; }
#duck-panel .dk-recipe-spec > strong { display: block; margin-bottom: 9px; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
#duck-panel .dk-recipe-spec .dk-item-badges { margin-bottom: 12px; }
#duck-panel .dk-recipe-roll-note { color: #dbc8a2; font-size: 11px; line-height: 1.7; margin: 12px 0 0; }
#duck-panel .dk-recipe-detail-body h3 { margin: 0 0 9px; color: #d9e4df; font-size: 14px; }
#duck-panel .dk-recipe-requirements { padding: 12px; background: #243943; border: 1px solid #486573; border-radius: 6px; }
#duck-panel .dk-recipe-requirements p { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 0; color: #b6ccd1; font-size: 12px; line-height: 1.7; }
#duck-panel .dk-recipe-requirements b { flex: none; color: #dce7c9; }
#duck-panel .dk-recipe-materials { display: grid; gap: 8px; }
#duck-panel .dk-recipe-materials > div { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; height: 80px; padding: 10px; border: 1px solid #476474; border-radius: 6px; background: #21343f; overflow: hidden; }
#duck-panel .dk-recipe-materials .dk-icon { width: 42px; height: 42px; }
#duck-panel .dk-recipe-materials strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dfebe1; font-size: 12px; }
#duck-panel .dk-recipe-materials small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a8c1cd; font-size: 10px; }
#duck-panel .dk-recipe-materials > div > b { white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
#duck-panel .dk-recipe-materials .is-missing > b { color: #efbc9c; }
#duck-panel .dk-recipe-materials .is-enough > b { color: #a9dfbf; }
#duck-panel .dk-recipe-dialog > footer { flex: 0 0 auto; display: grid; gap: 9px; padding: 12px 18px 16px; border-top: 1px solid #526e7c; background: #1e333e; }
#duck-panel .dk-recipe-dialog > footer p { margin: 0; color: #dfc19f; font-size: 12px; line-height: 1.6; }
#duck-panel .dk-recipe-dialog > footer p.is-ready { color: #a9dfbf; }
#duck-panel .dk-recipe-dialog > footer button { width: 100%; min-height: 44px; margin: 0; }
@media (max-width:700px) {
  #duck-panel .dk-recipe-filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #duck-panel .dk-recipe-filters > button { grid-column: 1/-1; }
  #duck-panel .dk-recipe-grid { gap: 6px; }
  #duck-panel .dk-recipe-icon { padding: 3px; }
  #duck-panel .dk-recipe-icon > b { top: 1px; right: 1px; padding: 1px 2px; font-size: 8px; }
  #duck-panel .dk-recipe-icon > small { bottom: 1px; left: 1px; padding: 1px 2px; font-size: 8px; }
  #duck-panel .dk-recipe-detail-body { padding: 14px; gap: 14px; }
  #duck-panel .dk-recipe-dialog > header { padding: 10px 14px; }
  #duck-panel .dk-recipe-dialog > footer { padding: 10px 14px 14px; }
  #duck-panel .dk-recipe-materials > div { grid-template-columns: 36px minmax(0,1fr) auto; gap: 8px; }
  #duck-panel .dk-recipe-materials .dk-icon { width: 36px; height: 36px; }
}

#duck-panel .dk-expedition-controls { padding: 16px; margin: 0 0 22px; background: #1d2d38; border-color: #4e6875; border-radius: 7px; }
#duck-panel .dk-theme-picker { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#duck-panel .dk-theme-picker > button { height: 50px; padding: 10px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-difficulty-picker { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
#duck-panel .dk-difficulty-picker > button { height: 120px; min-height: 120px; padding: 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: left; }
#duck-panel .dk-difficulty-picker strong { margin: 0; font-size: 14px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
#duck-panel .dk-difficulty-picker small { font-size: 11px; line-height: 1.75; color: #a9bdc6; }
#duck-panel .dk-expedition-controls button[aria-pressed=true] { border-color: #92d4d5; background: #32505c; box-shadow: inset 0 -2px #9fdddd; }
#duck-panel .dk-expedition-controls > p { font-size: 12px; color: #afc1ca; }
#duck-panel .dk-contract-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#duck-panel .dk-contract-options > button { height: 132px; min-height: 132px; max-height: 132px; padding: 15px; background: #203541; border-color: #536c78; gap: 5px 10px; grid-template-columns: 24px minmax(0,1fr); grid-template-rows: 22px 42px 20px; align-content: center; overflow: hidden; }
#duck-panel .dk-contract-options strong { font-size: 13px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-contract-options small { font-size: 11px; line-height: 20px; max-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #a6bdca; }
#duck-panel .dk-contract-options em { font-size: 10px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9d7c7; }
#duck-panel .dk-contract-options [aria-pressed=true] { background: #32525a; border-color: #8ecfd0; box-shadow: inset 3px 0 #9ae1dc; }
#duck-panel .dk-regions { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
#duck-panel .dk-region { width: 100%; height: 132px; min-height: 132px !important; max-height: 132px; padding: 14px 16px; background: #1f3440; border-color: #4c6976; overflow: hidden; }
#duck-panel .dk-region b { height: 40px; max-height: 40px; font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#duck-panel .dk-region-num { margin-bottom: 5px; color: #9db9c5; }
#duck-panel .dk-region small { font-size: 11px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#duck-panel .dk-region.active { background: #354e57 !important; border-color: #a2dcd9 !important; box-shadow: inset 3px 0 #aae3db !important; }
#duck-panel .dk-region-info { padding: 18px; border-radius: 6px; background: #1a2d39; border-color: #526f78; border-left-color: #9bd2cd; }
#duck-panel .dk-region-info b { font-size: 13px; color: #dfddbf; }
#duck-panel .dk-region-info p { color: #a5bfc8; font-size: 12px; }
#duck-panel .dk-region-info > span { font-size: 11px; color: #92aebd; }

#duck-panel .dk-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
#duck-panel .dk-mission { height: 275px; min-height: 275px; max-height: 275px; display: flex; flex-direction: column; padding: 20px; overflow: hidden; border-radius: 7px; border-color: #4b6571; background: #21313d; }
#duck-panel .dk-mission h3 { height: 44px; min-height: 44px; max-height: 44px; margin: 9px 0; font-size: 16px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #f0e9d5; }
#duck-panel .dk-mission p { height: 66px; min-height: 66px; max-height: 66px; margin: 0 0 12px; font-size: 12px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #a9bec8; }
#duck-panel .dk-mission > .dk-progress { flex: 0 0 5px; }
#duck-panel .dk-mission footer { min-height: 54px; padding: 10px 0 0; margin-top: auto; gap: 10px; letter-spacing: 0; font-size: 11px; color: #c3d2cf; }
#duck-panel .dk-mission footer button { min-height: 44px; flex: 0 0 88px; font-size: 11px !important; }
#duck-panel .dk-ux-preset-row { height: 116px; min-height: 116px; max-height: 116px; border-color: #4d6875; background: #152932; padding: 12px; gap: 4px 8px; overflow: hidden; }
#duck-panel .dk-ux-preset-row > strong { flex: 0 0 100%; font-size: 13px; line-height: 20px; height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#duck-panel .dk-ux-preset-row > small { flex: 0 0 100%; font-size: 11px; line-height: 18px; height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#duck-panel .dk-ux-preset-row > button { min-height: 44px; height: 44px; padding: 6px 12px; font-size: 11px; }
#duck-panel .dk-specialization-options { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
#duck-panel .dk-specialization-options > article { display: flex; flex-direction: column; height: 268px; min-height: 268px; max-height: 268px; padding: 14px; gap: 7px; overflow: hidden; background: #1c303c; border-color: #4c6a76; }
#duck-panel .dk-specialization-options strong { font-size: 13px; line-height: 1.6; min-height: 40px; }
#duck-panel .dk-specialization-options p { height: 64px; min-height: 64px; max-height: 64px; font-size: 11px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#duck-panel .dk-specialization-options small { max-height: 40px; font-size: 10px; line-height: 18px; overflow: hidden; }
#duck-panel .dk-specialization-options button { min-height: 44px; height: 44px; margin-top: auto; font-size: 11px; }
#duck-panel .dk-specialization-options > article.is-selected { border-color: #abd7d0; background: #324b52; }

/* Collection selectors never grow when a name wraps. */
#duck-panel .dk-arsenal-filters, #duck-panel .dk-bestiary-regions { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin: 0 0 18px; }
#duck-panel :is(.dk-arsenal-filters,.dk-bestiary-regions) > button { width: 100%; height: 48px; min-height: 48px; padding: 8px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel :is(.dk-arsenal-filters,.dk-bestiary-regions,.dk-bestiary-list,.dk-boss-phases) [aria-pressed=true] { background: #34545e !important; border-color: #9bddda !important; }
#duck-panel .dk-arsenal-showcase { border-color: color-mix(in srgb,var(--grade) 65%,#455b69); padding: 22px; border-radius: 8px; background: radial-gradient(ellipse at 20% 20%,#3b5467,#1c2d38 75%); }
#duck-panel .dk-arsenal-showcase h2 { font-size: 27px; color: #f0edda; }
#duck-panel .dk-arsenal-showcase > div { min-width: 0; }
#duck-panel .dk-arsenal-showcase > div > button { min-height: 44px; margin: 8px 4px 0 0; }
#duck-panel .dk-arsenal-showcase p { font-size: 12px; color: #acbfca; }
#duck-panel .dk-arsenal-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
#duck-panel .dk-arsenal-gun { width: 100%; height: 350px; min-height: 350px; max-height: 350px; padding: 16px; overflow: hidden; background: #1f303c; border-color: #536b79; border-top-color: var(--grade); border-radius: 7px; }
#duck-panel .dk-arsenal-gun > .dk-icon { height: 112px; min-height: 112px; max-height: 112px; margin: 0 0 10px; background: #2a414f; border-radius: 5px; }
#duck-panel .dk-arsenal-gun > strong { height: 42px; min-height: 42px; max-height: 42px; margin: 6px 0 8px; font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#duck-panel .dk-arsenal-gun > small { height: 54px; min-height: 54px; max-height: 54px; margin: 10px 0; color: #a8bfcb; font-size: 11px; line-height: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#duck-panel .dk-arsenal-gun > em { font-size: 10px; line-height: 18px; color: #d7cdab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-armory { grid-template-columns: 220px minmax(0,1fr); align-items: start; gap: 16px; }
#duck-panel .dk-armory .dk-acquisition { grid-column: 2; }
#duck-panel .dk-armory-list { max-height: 700px; gap: 8px; }
#duck-panel .dk-armory-list > button { height: 120px; min-height: 120px; max-height: 120px; padding: 12px; overflow: hidden; background: #1e303d; border-color: #4c6875; }
#duck-panel .dk-armory-list strong { height: 40px; max-height: 40px; font-size: 12px; line-height: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#duck-panel .dk-armory-list small { line-height: 18px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#duck-panel .dk-armory-list .dk-item-badges { gap: 3px; }
#duck-panel .dk-armory-list :is(.dk-grade,.dk-category-chip) { font-size: 9px !important; padding-inline: 4px !important; }
#duck-panel .dk-armory-hero { padding: 18px; gap: 16px; border-radius: 7px; background: #253947; }
#duck-panel .dk-armory-hero h2 { font-size: 24px; color: #f1ebd9; }
#duck-panel .dk-armory-equip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
#duck-panel .dk-armory-equip button { height: 48px; min-height: 48px; font-size: 11px; padding: 8px; }
#duck-panel .dk-mount-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#duck-panel .dk-mount { height: 376px; min-height: 376px; max-height: 376px; background: #1f303d; border-color: #4c6777; border-radius: 7px; padding: 16px; gap: 10px; overflow: hidden; }
#duck-panel .dk-mount-heading { min-height: 24px; }
#duck-panel .dk-mounted-part { height: 64px; min-height: 64px; margin: 0; gap: 8px; flex-wrap: wrap; }
#duck-panel .dk-mounted-part > strong { flex: 1; font-size: 12px; max-height: 38px; line-height: 18px; overflow: hidden; }
#duck-panel .dk-mounted-part > .dk-category-chip { display: none !important; }
#duck-panel .dk-mount select { height: 44px; min-height: 44px; padding: 8px; font-size: 11px; margin-bottom: 0; }
#duck-panel .dk-mount > small { height: 36px; min-height: 36px; max-height: 36px; margin: 0; font-size: 10px; line-height: 18px; overflow: hidden; }
#duck-panel .dk-mount > button { min-height: 44px; height: 44px; margin: 0; font-size: 11px; }
#duck-panel .dk-mount > button:first-of-type { margin-top: auto; }
#duck-panel .dk-part-blueprint { height: 36px !important; min-height: 36px !important; padding: 6px !important; }
#duck-panel .dk-weapon-upgrade, #duck-panel .dk-specialization { background: #243a42; border-color: #668085; border-radius: 7px; }
#duck-panel .dk-upgrade-materials > div, #duck-panel .dk-facility-cost > div { height: 92px; min-height: 92px; padding: 12px; background: #192c36; border-color: #49636e; overflow: hidden; }
#duck-panel .dk-material-source { height: 28px; max-height: 28px; font-size: 10px; line-height: 14px; overflow: hidden; }
#duck-panel .dk-upgrade-materials > div > span:not(.dk-icon), #duck-panel .dk-facility-cost > div > span:not(.dk-icon) { font-size: 11px; }
#duck-panel .dk-hideout-nav { flex-wrap: wrap; }
#duck-panel .dk-hideout-nav [role=tab] { min-height: 44px; }
#duck-panel .dk-hideout-layout { grid-template-columns: minmax(0,1fr) 315px; gap: 16px; }
#duck-panel .dk-hideout-detail { padding: 20px; background: #263a44; border-color: #688087; }
#duck-panel .dk-hideout-stage { border-color: #637f89; background: #243b47; }
#duck-panel .dk-hideout-facilities > button { height: 100px; min-height: 100px; max-height: 100px; overflow: hidden; background: #1c3542ed; border-color: #78969c88; padding: 11px; }
#duck-panel .dk-hideout-facilities strong { font-size: 13px; height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duck-panel .dk-hideout-facilities small { font-size: 9px; }
#duck-panel .dk-hideout-facilities [aria-pressed=true] { border-color: #a1d9d4; background: #3b5b63ef; }
#duck-panel .dk-hideout-collection { gap: 16px; }
#duck-panel .dk-bestiary-layout { grid-template-columns: 215px minmax(0,1fr); gap: 16px; }
#duck-panel .dk-bestiary-list { gap: 8px; }
#duck-panel .dk-bestiary-list > button { height: 126px; min-height: 126px; max-height: 126px; padding: 14px !important; gap: 6px; grid-template-rows: 18px 38px 20px; align-content: center; overflow: hidden; background: #20333f; border-color: #526d7a; }
#duck-panel .dk-bestiary-list strong { font-size: 14px; line-height: 19px; max-height: 38px; color: #efe8d1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#duck-panel .dk-bestiary-list :is(small,span) { font-size: 10px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a9bec8; }
#duck-panel .dk-bestiary-detail { border-color: #536f79; background: #1a2c36; border-radius: 8px; overflow: hidden; grid-template-columns: minmax(180px,.8fr) minmax(0,1fr); }
#duck-panel .dk-monster-stage { top: 0; background-color: #233946; }
#duck-panel .dk-bestiary-info { padding: 20px; }
#duck-panel .dk-bestiary-info h2 { font-size: 26px; color: #f0e8cf; }
#duck-panel .dk-bestiary-info p { color: #adbfca; font-size: 12px; }
#duck-panel .dk-monster-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
#duck-panel .dk-monster-stats > span { padding: 10px; background: #233d48; border: 1px solid #4f6a764d; border-radius: 5px; font-size: 10px; }
#duck-panel .dk-monster-stats b { font-size: 18px; }
#duck-panel .dk-boss-phases > button { height: 112px; min-height: 112px; max-height: 112px; grid-template-rows: 18px 22px 36px; gap: 5px; padding: 12px !important; overflow: hidden; }
#duck-panel .dk-boss-phases small { font-size: 10px; }
#duck-panel .dk-boss-phases strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#duck-panel .dk-boss-phases span { font-size: 11px; line-height: 18px; max-height: 36px; overflow: hidden; }
#duck-panel .dk-drop-rows > div { min-height: 64px; max-height: 64px; overflow: hidden; }
#duck-panel .dk-drop-rows > div > span:not(.dk-icon) { overflow: hidden; }
#duck-panel .dk-drop-rows :is(strong,small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Field information is available in an overlay, never spread over the play area. */
#duck-panel .dk-shell-field-tools { position: absolute; right: 16px; top: 54px; z-index: 29; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; width: 370px; max-width: calc(100% - 32px); pointer-events: auto; }
#duck-panel .dk-shell-field-tools > button { height: 48px; min-height: 48px; padding: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; background: #172b38ed; border-color: #7697a485; border-radius: 6px; font-size: 11px; overflow: hidden; white-space: nowrap; }
#duck-panel .dk-shell-field-tools > button > i { font-size: 18px; font-style: normal; color: #b5e5e4; }
#duck-panel .dk-shell-dialog :is(#dk-party,#dk-live-goals,#dk-journey-guide,#dk-conditions) { position: static !important; inset: auto !important; transform: none !important; width: 100% !important; max-width: none !important; max-height: none !important; margin: 0; overflow: visible; pointer-events: auto; }
#duck-panel .dk-shell-dialog #dk-live-goals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#duck-panel .dk-shell-dialog #dk-live-goals[hidden], #duck-panel .dk-shell-dialog #dk-journey-guide[hidden] { display: none !important; }
#duck-panel .dk-shell-dialog .dk-live-objective { min-height: 210px; padding: 18px; background: #233640; border-color: #587884; border-radius: 7px; }
#duck-panel .dk-shell-dialog .dk-live-objective > small { font-size: 11px; margin-bottom: 10px; }
#duck-panel .dk-shell-dialog .dk-live-objective > strong { font-size: 15px; margin-bottom: 10px; }
#duck-panel .dk-shell-dialog .dk-live-objective :is(p,span) { display: block; font-size: 12px; line-height: 1.8; }
#duck-panel .dk-shell-dialog .dk-live-objective button { min-height: 44px; font-size: 12px; }
#duck-panel .dk-shell-dialog .dk-live-objective > progress { height: 6px; margin-top: 14px; }
#duck-panel .dk-shell-dialog #dk-journey-guide > .dk-journey-guide { padding: 18px; margin-top: 14px; }
#duck-panel .dk-shell-dialog .dk-journey-guide.is-field :is(p,ol) { display: block; }
#duck-panel .dk-shell-dialog .dk-journey-guide.is-field > strong { font-size: 15px; }
#duck-panel .dk-shell-dialog .dk-journey-guide.is-field p { font-size: 12px; }
#duck-panel .dk-shell-dialog .dk-journey-guide.is-field > button { min-height: 44px; font-size: 12px; }
#duck-panel .dk-shell-dialog .dk-party-member { grid-template-columns: 38px minmax(0,1fr) auto; padding: 16px 0; min-height: 100px; gap: 8px 12px; }
#duck-panel .dk-shell-dialog .dk-party-member > strong { font-size: 14px; }
#duck-panel .dk-shell-dialog .dk-party-member > small { font-size: 11px; }
#duck-panel .dk-shell-dialog .dk-party-member > progress { height: 6px; }
#duck-panel .dk-shell-dialog .dk-party-support button { min-height: 44px; padding: 8px 12px; font-size: 11px; }
#duck-panel .dk-shell-dialog .dk-party-activities > span { font-size: 11px; padding: 3px 6px; }
#duck-panel .dk-shell-dialog #dk-conditions { display: flex; gap: 10px; flex-wrap: wrap; }
#duck-panel .dk-shell-dialog .dk-condition-chip { min-height: 44px; padding: 9px 12px; font-size: 12px; }
#duck-panel .dk-party-number { border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; min-width: 30px; padding: 0 3px; background: color-mix(in srgb,var(--party) 13%,transparent); }
#duck-panel .dk-situation { background: #142733e8; border-color: #5c7a8566; border-radius: 6px; }
#duck-panel .dk-map-title { background: #1d3342ed; border-color: #71929e; border-radius: 6px 6px 0 0; }
#duck-panel .dk-map-footer { background: #172d3be8; border-color: #71929e66; color: #c1d6dd; }
#duck-panel .dk-minimap { border-color: #8cb5bf; }
#duck-panel .dk-zone { border-radius: 6px; border-color: #7d9c9c77; background: #1c3240e8; box-shadow: none; }
#duck-panel .dk-hud { border-radius: 7px; border-color: #8aa7a480; background: #172d3be8; color: #e6eee1; }
#duck-panel .dk-ammo { border-color: #69868b66; border-radius: 7px; background: #172d3bdc; }
#duck-panel .dk-hp-bar { border-color: #748d8a; border-radius: 3px; }
#duck-panel .dk-hp-bar i { background: linear-gradient(90deg,#6eaf9b,#a2d0b4); }
#duck-panel .dk-stamina-bar { background: #263f50; }
#duck-panel .dk-stamina-bar i { background: #acd3df; }
#duck-panel .dk-quickslots > button { border-radius: 5px; background: #1b3241ed; border-color: #789aa485; }
#duck-panel .dk-survival { align-items: center; gap: 12px !important; }
#duck-panel .dk-vital { display: grid; grid-template-columns: 20px minmax(0,1fr); grid-template-rows: 18px 5px; gap: 3px 6px; align-items: center; min-width: 86px; flex: 1; color: #c7d9df; --ring: #dfb980; }
#duck-panel .dk-vital[data-tone=water] { --ring: #80c6dc; }
#duck-panel .dk-vital[data-low=true] { --ring: #ed9b86; color: #ffc3af; }
#duck-panel .dk-vital > .dk-vital-symbol { grid-column: 1; grid-row: 1; width: 18px; height: 18px; }
#duck-panel .dk-vital > span:not(.dk-vital-meter) { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; grid-column: 2; grid-row: 1; font-size: 10px; white-space: nowrap; }
#duck-panel .dk-vital b { font-size: 12px; }
#duck-panel .dk-vital-meter { display: block; width: 100%; height: 5px; min-height: 5px; grid-column: 1/-1; grid-row: 2; overflow: hidden; border-radius: 2px; border: 0; background: #71859338; }
#duck-panel .dk-vital-meter > :is(i,.dk-vital-fill) { display: block; height: 100%; background: var(--ring,#9dd5bc); width: var(--fill,0%); border-radius: 1px; }
#duck-panel .dk-heal-progress { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 8px 10px; padding: 12px 16px; border-radius: 7px; background: #1b3541f7; border-color: #9bd8d0; }
#duck-panel .dk-heal-progress > .dk-icon { width: 32px; height: 32px; border: 0; background: none; }
#duck-panel .dk-heal-progress > .dk-vital-meter { grid-column: 1/-1; grid-row: auto; height: 5px; }
#duck-panel .dk-heal-progress > b { font-size: 13px; }
#duck-panel .dk-heal-progress small { color: #b6d5d9; }
#duck-panel .dk-vital-ring { border-radius: 3px; background: #2e4553; }
#duck-panel .dk-vital-ring::before { content: none; }
#duck-panel .dk-armor-status { flex: 0 0 auto; color: #c8d5d7; }
#duck-panel .dk-context { background: #193340f2 !important; border-color: #88b1b68c !important; }
#duck-panel .dk-context .dk-context-copy small { color: #b4cbd1; }
#duck-panel .dk-context .dk-context-key { background: #395864; border-color: #9acacb88; color: #ebf6ee; }
#duck-panel .dk-context .dk-context-timer { color: #f0d4a1; }
#duck-panel .dk-weapon-inspect > i { border-radius: 3px; background: #486573; }

/* Draggable, simultaneous equipment/loot windows keep the established behavior. */
#duck-panel .dk-floating { border-color: #7d9aa6; border-radius: 9px; background: #152934f8; box-shadow: 0 18px 60px #050d17a6; }
#duck-panel .dk-floating > header { position: static; height: auto; min-height: 72px; margin: 0; padding: 12px 16px; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; border: 0; border-bottom: 1px solid #63808d80; background: #2c4451; color: #eef3ed; box-shadow: none; }
#duck-panel .dk-floating > header > div { min-width: 0; }
#duck-panel .dk-floating > header h3 { font-size: 17px !important; line-height: 1.45; margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f4efdd; }
#duck-panel .dk-floating > header small { font-size: 9px !important; letter-spacing: 1px; color: #b5ccd3; }
#duck-panel .dk-floating .close { min-width: 44px; width: 44px; min-height: 44px; height: 44px; padding: 0; flex: 0 0 44px; background: #193440; border-color: #7899a080; border-radius: 5px; color: #eff1df; }
#duck-panel .dk-floating .dk-grid-scroll { padding: 12px; }
#duck-panel .dk-floating .dk-inventory-grid { grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-rows: auto; gap: 7px; min-width: 0; }
#duck-panel .dk-floating .dk-inventory-grid > :is(.dk-inventory-cell,.dk-inventory-empty,.dk-search-skeleton,.dk-search-empty) { width: 100%; height: auto; min-height: 0 !important; max-height: none; aspect-ratio: 1; padding: 5px; overflow: hidden; border-radius: 4px; }
#duck-panel .dk-floating .dk-inventory-cell > .dk-icon { min-height: 0; }
#duck-panel .dk-search-skeleton i { min-height: 12px; }
#duck-panel .dk-floating .dk-loot-capacity, #duck-panel .dk-search-status { padding: 11px 14px; background: #192f3c; color: #b3c9d0; border-color: #57768166; font-size: 11px; }
#duck-panel .dk-search-status { padding-bottom: 18px; }
#duck-panel .dk-search-status > strong { color: #e0e8de; }
#duck-panel .dk-search-status > span { color: #a8c1c8; }
#duck-panel .dk-floating .dk-overlay-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px 14px; }
#duck-panel .dk-floating .dk-overlay-actions > button { height: 44px; min-height: 44px; padding: 8px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#duck-panel .dk-floating footer { min-height: 64px; padding: 10px 14px; gap: 8px; font-size: 11px; letter-spacing: 0; border-color: #55727d66; }
#duck-panel .dk-floating footer > button { min-height: 44px; height: 44px; padding: 8px; font-size: 11px; }
#duck-panel .dk-floating footer > span { font-size: 10px; }
#duck-panel .dk-field-weapons { gap: 10px; padding: 12px; }
#duck-panel .dk-field-weapon { background: #213a47; border-color: #597986; border-radius: 6px; }
#duck-panel .dk-field-armor { grid-template-columns: repeat(2,minmax(0,1fr)); }
#duck-panel .dk-field-armor > div { height: 84px; min-height: 84px; max-height: 84px; overflow: hidden; background: #203743; border-color: #526f7b; }
#duck-panel .dk-field-armor > div strong { line-height: 18px; max-height: 36px; overflow: hidden; }
#duck-panel .dk-world-drop { border-radius: 5px; background: #3e3733ed; border-color: #bfa18b; }
#duck-panel .dk-item-detail { color: #dfe9e5; }
#duck-panel .dk-item-detail p { color: #b5cbd0; font-size: 12px; }
#duck-panel .dk-window-tip { color: #a5bfca; font-size: 11px; }
#duck-panel .dk-window-feedback { color: #ecd5a3; font-size: 11px; }

/* Secondary dialogs inherit the same surface language and control metrics. */
#duck-panel .dk-ux-dialog { width: min(900px,calc(100vw - 48px)); }
#duck-panel .dk-ux-card, #duck-panel .dk-preferences, #duck-panel .dk-exit-helper { background: #20343f; border-color: #55727c; border-radius: 7px; }
#duck-panel :is(.dk-preferences,.dk-ux-card,.dk-ux-compare,.dk-exit-helper) > header { height: auto; min-height: 0; background: transparent; border-color: #5c788366; }
#duck-panel .dk-pref-columns fieldset { border-color: #607b8866; }
#duck-panel .dk-pref-field :is(select,input:not([type=range])) { min-height: 44px; background: #162b38; border-color: #617f8d; }
#duck-panel .dk-pref-field > span { font-size: 12px; color: #d8e4e8; }
#duck-panel .dk-pref-field small { color: #9fb8c6; }
#duck-panel .dk-key-settings summary { min-height: 44px; display: flex; align-items: center; }
#duck-panel .dk-ux-card button, #duck-panel .dk-ux-dialog button, #duck-panel .dk-preferences button { min-height: 44px; }
#duck-panel .dk-ux-compare { background: #19303b; border-color: #55727f; }
#duck-panel .dk-exit-card { min-height: 110px; height: 110px; max-height: 110px; overflow: hidden; }
#duck-panel .dk-exit-card b { max-height: 38px; overflow: hidden; }
#duck-panel .dk-exit-card small { max-height: 36px; overflow: hidden; }
#duck-panel .dk-exit-list .dk-exit-card { min-height: 110px; height: 110px; }
#duck-panel .dk-result-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
#duck-panel .dk-result-stats > span { height: 102px; padding: 15px; border: 1px solid #4d6a75; border-radius: 7px; background: #20343f; }
#duck-panel .dk-result-stats b { font-size: 26px; line-height: 1.3; color: #dcdfc5; }
#duck-panel .dk-report-loot { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; width: min(100%,520px); max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 3px; scrollbar-gutter: stable; }
#duck-panel .dk-report-loot .dk-empty { grid-column: 1/-1; }
#duck-panel .dk-report-item { position: relative; display: grid; place-items: center; width: 100%; min-width: 0; height: auto; min-height: 0; aspect-ratio: 1; padding: 5px; border: 1px solid #536d77; border-top: 2px solid var(--grade,#9ba785); border-radius: 5px; background: #20343f; }
#duck-panel .dk-report-item:is(:hover,:focus-visible) { background: #304b56; outline: 2px solid #a5d8db; outline-offset: 0; }
#duck-panel .dk-report-item .dk-icon { width: 100%; height: 100%; min-width: 0; border: 0; background: transparent; box-shadow: none; }
#duck-panel .dk-report-item .dk-icon svg { width: 80%; height: 80%; max-width: 56px; max-height: 56px; }
#duck-panel .dk-report-item > b { position: absolute; right: 3px; top: 3px; padding: 2px 4px; border-radius: 3px; background: #112630e8; color: #e5e8c5; font-size: 10px; line-height: 1.2; font-variant-numeric: tabular-nums; pointer-events: none; }
@media (max-width:700px) {
  #duck-panel .dk-report-loot { gap: 6px; max-height: 220px; }
  #duck-panel .dk-report-item { padding: 2px; }
  #duck-panel .dk-report-item > b { right: 1px; top: 1px; padding: 2px; font-size: 9px; }
}
#duck-panel .dk-help { max-width: 900px; }
#duck-panel .dk-help :is(p,li) { color: #a9c0ca; font-size: 13px; line-height: 1.9; }
#duck-panel .dk-help :is(h2,h3) { color: #ede6ce; }
#duck-panel .dk-help li { padding: 8px 0; border-bottom: 1px solid #536b713b; }
#duck-panel .dk-help ol { padding: 0; }

@media (max-width: 1050px) {
  #duck-panel .dk-shell-menu-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #duck-panel .dk-arsenal-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #duck-panel .dk-bestiary-detail { grid-template-columns: 1fr; }
  #duck-panel .dk-monster-stage { position: relative; top: auto; height: 320px; }
  #duck-panel .dk-monster-stage .dk-monster-showcase { height: 280px; }
  #duck-panel .dk-hideout-layout { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-hideout-detail { width: 100%; }
  #duck-panel .dk-hideout-collection { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #duck-panel .dk-specialization-options > article { height: 290px; min-height: 290px; max-height: 290px; }
  #duck-panel .dk-shell-hero .dk-preview-caption { display: none; }
}
@media (max-width: 780px) {
  #duck-panel { padding: 16px; border-radius: 9px; }
  #duck-panel .dk-shell-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  #duck-panel .dk-shell-body { padding: 16px; max-height: calc(100dvh - 100px); }
  #duck-panel .dk-shell-menu-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #duck-panel .dk-shell-dialog .dk-squad-column { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-shell-dock { gap: 5px; padding: 7px; }
  #duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button { font-size: 11px; height: 70px; }
  #duck-panel .dk-regions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #duck-panel .dk-arsenal-filters, #duck-panel .dk-bestiary-regions { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #duck-panel .dk-armory { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-armory-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 300px; }
  #duck-panel .dk-armory .dk-acquisition { grid-column: auto; }
  #duck-panel .dk-mount { height: 372px; min-height: 372px; max-height: 372px; }
  #duck-panel .dk-grade-guide { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #duck-panel .dk-bestiary-layout { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-bestiary-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  body:has(#duck-panel:not([hidden])) main { padding: 8px !important; }
  #duck-panel { padding: 12px; min-height: 0; border-radius: 7px; }
  #duck-panel .dk-top { margin-bottom: 14px; gap: 8px; align-items: center; }
  #duck-panel .dk-logo { gap: 8px; }
  #duck-panel .dk-logo strong { font-size: 17px; }
  #duck-panel .dk-logo small { font-size: 7px; letter-spacing: .8px; margin-bottom: 5px; }
  #duck-panel .dk-logo > .dk-mini-portrait { width: 38px; height: 38px; }
  #duck-panel .dk-account { max-width: 130px; gap: 5px 8px; font-size: 10px; }
  #duck-panel .dk-account .dk-level { padding: 4px 6px; font-size: 9px; }
  #duck-panel .dk-account b { font-size: 12px; }
  #duck-panel .dk-shell-home { gap: 10px; }
  #duck-panel .dk-shell-hero { border-radius: 7px; }
  #duck-panel .dk-shell-hero .dk-world-preview { height: 330px; }
  #duck-panel .dk-shell-hero .dk-preview-title { top: 22px; left: 20px; right: 16px; }
  #duck-panel .dk-shell-hero .dk-preview-title h1 { font-size: 29px; margin: 12px 0 8px; }
  #duck-panel .dk-shell-hero .dk-preview-title small { font-size: 8px; }
  #duck-panel .dk-shell-hero .dk-preview-title p { font-size: 11px; line-height: 1.7; }
  #duck-panel .dk-shell-hero .dk-preview-badge { bottom: 20px; left: 20px; right: 12px; gap: 8px; font-size: 10px; flex-wrap: wrap; }
  #duck-panel .dk-shell-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  #duck-panel .dk-shell-actions > button { height: 54px; min-height: 54px; padding: 9px 6px; font-size: 12px; }
  #duck-panel .dk-shell-actions > button:first-child:last-child { grid-column: 1/-1; }
  #duck-panel .dk-shell-dock { grid-template-columns: minmax(0,1fr) 72px; gap: 5px; padding: 6px; border-radius: 7px; }
  #duck-panel .dk-shell-favorites { gap: 5px; padding: 0; scroll-padding-inline: 0; }
  #duck-panel .dk-shell-favorites > button:focus-visible { outline-offset: -3px; }
  #duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button { height: 64px; min-height: 64px; font-size: 11px; gap: 4px; }
  #duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button > :is(i,b) { font-size: 20px; }
  #duck-panel .dk-shell-menu-grid { gap: 8px; }
  #duck-panel .dk-shell-menu-grid > button { height: 126px; min-height: 126px; padding: 12px; grid-template-columns: 28px minmax(0,1fr); grid-template-rows: 26px 52px; gap: 6px 8px; }
  #duck-panel .dk-shell-menu-grid > button > i { font-size: 22px; }
  #duck-panel .dk-shell-menu-grid > button > strong { font-size: 13px; }
  #duck-panel .dk-shell-menu-grid > button > small { font-size: 10px; line-height: 17px; max-height: 51px; -webkit-line-clamp: 3; }
  #duck-panel .dk-shell-favorites-header { gap: 10px; }
  #duck-panel .dk-shell-favorites-header strong { font-size: 13px; }
  #duck-panel .dk-shell-favorites-header p { font-size: 10px; }
  #duck-panel .dk-shell-favorites-header > button { padding: 8px 10px; font-size: 11px; }
  #duck-panel .dk-shell-favorite-status { min-height: 52px; margin-bottom: 12px; padding: 8px 10px; font-size: 10px; }
  #duck-panel .dk-shell-menu-item { height: 126px; }
  #duck-panel .dk-shell-menu-item > .dk-shell-menu-action { padding: 12px; grid-template-columns: 23px minmax(0,1fr); grid-template-rows: 28px 51px; gap: 6px; }
  #duck-panel .dk-shell-menu-action > span:first-child { font-size: 22px; }
  #duck-panel .dk-shell-menu-action > strong { font-size: 12px; padding-right: 31px; }
  #duck-panel .dk-shell-menu-action > small { font-size: 10px; line-height: 17px; max-height: 51px; -webkit-line-clamp: 3; }
  #duck-panel .dk-shell-menu-item > .dk-shell-favorite { top: 5px; right: 5px; }
  #duck-panel .dk-shell-home-summary { grid-template-columns: minmax(0,1fr); gap: 8px; }
  #duck-panel .dk-shell-dialog, #duck-panel .dk-ux-dialog { width: calc(100vw - 12px); max-width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 9px; }
  #duck-panel .dk-shell-dialog > .dk-shell-header, #duck-panel .dk-ux-dialog > header { min-height: 72px; padding: 12px; gap: 9px; }
  #duck-panel .dk-shell-header h2, #duck-panel .dk-ux-dialog > header h2 { font-size: 17px; }
  #duck-panel .dk-shell-header small { font-size: 8px; letter-spacing: 1px; }
  #duck-panel .dk-shell-body, #duck-panel .dk-ux-body { padding: 12px; max-height: calc(100dvh - 92px); scrollbar-gutter: auto; }
  #duck-panel .dk-shell-dialog .dk-toolbar, #duck-panel .dk-shell-dialog .dk-section-title { gap: 9px; margin-bottom: 16px; }
  #duck-panel .dk-shell-dialog .dk-toolbar h2, #duck-panel .dk-shell-dialog .dk-section-title h2 { font-size: 20px; }
  #duck-panel .dk-shell-dialog .dk-toolbar > span, #duck-panel .dk-shell-dialog .dk-section-title > span { font-size: 11px; }
  #duck-panel .dk-shell-dialog .dk-card { padding: 14px; }
  #duck-panel .dk-toolbar-filters { grid-template-columns: minmax(0,1fr) 125px; gap: 7px; width: 100%; }
  #duck-panel .dk-toolbar-filters :is(input,select) { max-width: none; font-size: 12px; }
  #duck-panel .dk-toolbar-filters > :is(input,select) { width: 100%; }
  #duck-panel .dk-item-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  #duck-panel .dk-item-grid > .dk-item { height: 390px; min-height: 390px; max-height: 390px; padding: 11px; }
  #duck-panel .dk-item-grid > .dk-item > .dk-weapon-inspect { height: 76px; min-height: 76px; }
  #duck-panel .dk-item-grid > .dk-item > .dk-weapon-inspect > .dk-icon { height: 56px; }
  #duck-panel .dk-item-grid > .dk-item > h4 { font-size: 12px; }
  #duck-panel .dk-item-grid > .dk-item > .dk-item-buttons { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 44px; height: 92px; min-height: 92px; padding-top: 0; gap: 4px; }
  #duck-panel .dk-item-grid > .dk-item > .dk-item-buttons > button { height: 44px; min-height: 44px !important; padding: 4px !important; font-size: 9px !important; }
  #duck-panel .dk-item-grid > .dk-item > .dk-item-buttons > button:first-child { grid-column: 1/-1; }
  #duck-panel .dk-item-grid > .dk-item > .dk-ux-flags { gap: 3px; }
  #duck-panel .dk-item-grid > .dk-item > .dk-ux-flags button { padding-inline: 5px !important; font-size: 9px !important; }
  #duck-panel .dk-item-qty { top: 15px; right: 15px; font-size: 10px; }
  #duck-panel :is(.dk-category-chip,.dk-grade) { font-size: 10px !important; padding-inline: 5px !important; }
  #duck-panel .dk-grade-guide { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  #duck-panel .dk-grade-guide > div { height: 120px; }
  #duck-panel .dk-difficulty-picker { gap: 6px; }
  #duck-panel .dk-difficulty-picker > button { padding: 8px; height: 128px; min-height: 128px; }
  #duck-panel .dk-difficulty-picker strong { font-size: 12px; }
  #duck-panel .dk-difficulty-picker small { font-size: 9px; line-height: 1.8; }
  #duck-panel .dk-expedition-controls { padding: 11px; }
  #duck-panel .dk-theme-picker { gap: 7px; }
  #duck-panel .dk-theme-picker > button { font-size: 12px; }
  #duck-panel .dk-contract-options { gap: 7px; }
  #duck-panel .dk-contract-options > button { grid-template-columns: 18px minmax(0,1fr); height: 160px; min-height: 160px; max-height: 160px; grid-template-rows: 34px 58px 28px; gap: 4px 6px; padding: 10px; }
  #duck-panel .dk-contract-options strong { font-size: 12px; line-height: 17px; height: 34px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  #duck-panel .dk-contract-options small { max-height: 57px; line-height: 19px; font-size: 10px; -webkit-line-clamp: 3; }
  #duck-panel .dk-contract-options em { font-size: 9px; line-height: 14px; white-space: normal; max-height: 28px; overflow: hidden; }
  #duck-panel .dk-region { padding: 12px; }
  #duck-panel .dk-region b { font-size: 13px; }
  #duck-panel .dk-region small { font-size: 10px; }
  #duck-panel .dk-shell-dialog .dk-loadout-column .dk-gear { gap: 7px; }
  #duck-panel .dk-slot { height: 84px; min-height: 84px; padding: 8px; gap: 7px; }
  #duck-panel .dk-slot .dk-icon { width: 32px; height: 32px; }
  #duck-panel .dk-slot strong { font-size: 11px; }
  #duck-panel .dk-slot small { font-size: 9px; }
  #duck-panel .dk-list { grid-template-columns: minmax(0,1fr); gap: 10px; }
  #duck-panel .dk-mission { padding: 16px; height: 264px; min-height: 264px; max-height: 264px; }
  #duck-panel .dk-specialization-options { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-specialization-options > article { height: 248px; min-height: 248px; max-height: 248px; }
  #duck-panel .dk-specialization-options strong { min-height: 24px; }
  #duck-panel .dk-specialization-options p { height: 60px; min-height: 60px; max-height: 60px; }
  #duck-panel .dk-arsenal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  #duck-panel .dk-arsenal-gun { height: 340px; min-height: 340px; max-height: 340px; padding: 11px; }
  #duck-panel .dk-arsenal-gun > .dk-icon { height: 90px; min-height: 90px; max-height: 90px; }
  #duck-panel .dk-arsenal-gun > strong { font-size: 12px; }
  #duck-panel .dk-arsenal-gun > small { height: 72px; min-height: 72px; max-height: 72px; -webkit-line-clamp: 4; font-size: 10px; }
  #duck-panel .dk-arsenal-gun > em { font-size: 9px; }
  #duck-panel .dk-arsenal-showcase { grid-template-columns: minmax(0,1fr); padding: 14px; gap: 8px; }
  #duck-panel .dk-arsenal-showcase h2 { font-size: 24px; }
  #duck-panel .dk-arsenal-showcase > div > button { display: inline-flex; margin: 7px 3px 0 0; font-size: 11px; }
  #duck-panel .dk-arsenal-filters, #duck-panel .dk-bestiary-regions { gap: 6px; }
  #duck-panel :is(.dk-arsenal-filters,.dk-bestiary-regions) > button { height: 46px; min-height: 46px; padding: 7px; font-size: 11px; }
  #duck-panel .dk-armory-list > button { height: 132px; min-height: 132px; max-height: 132px; padding: 8px; gap: 7px; }
  #duck-panel .dk-armory-list .dk-icon { width: 34px; height: 34px; }
  #duck-panel .dk-armory-list strong { font-size: 11px; }
  #duck-panel .dk-armory-hero .dk-weapon-showcase { height: 180px; }
  #duck-panel .dk-armory-hero h2 { font-size: 22px; }
  #duck-panel .dk-armory-equip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #duck-panel .dk-mount-grid { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-mount { height: 360px; min-height: 360px; max-height: 360px; }
  #duck-panel .dk-mounted-part { height: 56px; min-height: 56px; }
  #duck-panel .dk-upgrade-materials { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-upgrade-materials > div { height: 92px; min-height: 92px; }
  #duck-panel .dk-upgrade-heading { align-items: flex-start; flex-wrap: wrap; }
  #duck-panel .dk-upgrade-heading h3 { font-size: 17px; }
  #duck-panel .dk-hideout-nav { align-items: stretch; gap: 10px; }
  #duck-panel .dk-hideout-nav [role=tablist] { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #duck-panel .dk-hideout-facilities > button { height: 98px; min-height: 98px; max-height: 98px; padding: 9px 6px; }
  #duck-panel .dk-hideout-facilities strong { font-size: 11px; }
  #duck-panel .dk-hideout-facilities small { font-size: 7px; letter-spacing: .6px; }
  #duck-panel .dk-hideout-facilities em { font-size: 8px; }
  #duck-panel .dk-hideout-collection { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-bestiary-info { padding: 16px; }
  #duck-panel .dk-bestiary-info h2 { font-size: 24px; }
  #duck-panel .dk-bestiary-list > button { padding: 12px !important; }
  #duck-panel .dk-bestiary-list strong { font-size: 13px; }
  #duck-panel .dk-shell-field-tools { right: 8px; top: 52px; width: 270px; max-width: calc(100% - 16px); gap: 4px; }
  #duck-panel .dk-shell-field-tools > button { height: 44px; min-height: 44px; font-size: 10px; padding: 4px; gap: 3px; }
  #duck-panel .dk-shell-field-tools > button > i { display: none; }
  #duck-panel .dk-shell-dialog #dk-live-goals { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-shell-dialog .dk-live-objective { min-height: 190px; }
  #duck-panel .dk-shell-dialog .dk-party-member { grid-template-columns: 32px minmax(0,1fr) auto; gap: 7px; }
  #duck-panel .dk-shell-dialog .dk-party-member > strong { font-size: 12px; }
  #duck-panel .dk-shell-dialog .dk-party-member > small { font-size: 10px; }
  #duck-panel .dk-floating > header { min-height: 68px; padding: 10px 12px !important; }
  #duck-panel .dk-floating > header h3 { font-size: 15px !important; }
  #duck-panel .dk-floating > header small { font-size: 8px !important; }
  #duck-panel .dk-floating .dk-grid-scroll { padding: 9px; }
  #duck-panel .dk-floating .dk-inventory-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; }
  #duck-panel .dk-floating .dk-inventory-grid > :is(.dk-inventory-cell,.dk-inventory-empty,.dk-search-skeleton,.dk-search-empty) { min-height: 0 !important; padding: 3px; }
  #duck-panel .dk-search-skeleton small { font-size: 7px; }
  #duck-panel .dk-floating .dk-overlay-actions { gap: 6px; padding: 10px; }
  #duck-panel .dk-floating .dk-overlay-actions > button { min-height: 42px; height: 42px; font-size: 10px; }
  #duck-panel .dk-floating footer { padding: 8px 10px; min-height: 60px; }
  #duck-panel .dk-floating footer > span { font-size: 9px; }
  #duck-panel .dk-field-armor > div { height: 80px; min-height: 80px; max-height: 80px; }
  #duck-panel .dk-vital { min-width: 70px; grid-template-columns: 17px minmax(0,1fr); gap: 2px 4px; }
  #duck-panel .dk-vital > .dk-vital-symbol { width: 16px; height: 16px; }
  #duck-panel .dk-vital > span:not(.dk-vital-meter) { font-size: 9px; gap: 4px; }
  #duck-panel .dk-vital b { font-size: 10px; }
  #duck-panel .dk-survival { gap: 8px !important; }
  #duck-panel .dk-armor-status { font-size: 9px !important; }
  #duck-panel .dk-result-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  #duck-panel .dk-result-stats > span { height: 92px; }
  #duck-panel .dk-result-stats b { font-size: 23px; }
  #duck-panel .dk-exit-list .dk-exit-card { height: 110px; min-height: 110px; }
}
@media (max-height: 580px) and (min-width: 601px) {
  #duck-panel .dk-shell-dialog, #duck-panel .dk-ux-dialog { max-height: calc(100dvh - 16px); }
  #duck-panel .dk-shell-dialog > .dk-shell-header, #duck-panel .dk-ux-dialog > header { min-height: 64px; padding-block: 9px; }
  #duck-panel .dk-shell-body, #duck-panel .dk-ux-body { max-height: calc(100dvh - 84px); }
}
@media (prefers-reduced-motion: reduce) {
  #duck-panel .dk-shell-home *, #duck-panel .dk-shell-dialog *, #duck-panel .dk-shell-field-tools * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Shell DOM contract: personal shortcuts and a permanent menu destination. */
#duck-panel .dk-tabs[hidden], #duck-panel .dk-situation[hidden], #duck-panel .dk-shell-page[hidden] { display: none !important; }
#duck-panel .dk-shell-dock { margin-top: 16px; }
#duck-panel .dk-shell-home-copy { padding: 3px 3px 0; }
#duck-panel .dk-shell-home-copy h2 { margin: 4px 0; color: #f0eddf; font-size: 22px; line-height: 1.45; }
#duck-panel .dk-shell-home-copy p { margin: 0; color: #a6bdc9; font-size: 12px; }
#duck-panel .dk-shell-actions > button { display: grid; grid-template-columns: 26px minmax(0,1fr); grid-template-rows: 22px 18px; gap: 3px 9px; height: 80px; padding: 13px 16px; text-align: left; }
#duck-panel .dk-shell-actions > button > span { grid-column: 1; grid-row: 1/3; color: #a2dddd; font-size: 25px; text-align: center; }
#duck-panel .dk-shell-actions > button > strong { font-size: 14px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#duck-panel .dk-shell-actions > button > small { font-size: 10px; color: #acc0cc; font-weight: 400; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#duck-panel .dk-shell-actions > .dk-orange small { color: #40565d; }
#duck-panel .dk-shell-summary { color: #97b0bf; font-size: 11px; line-height: 1.8; margin: -3px 2px 0; }
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button > span:first-child { font-size: 22px; line-height: 22px; color: #9dd9de; }
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button > strong { font-size: 12px; font-weight: 600; }
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button > small { display: none; }
#duck-panel .dk-shell-menu-grid > button > span:first-child { grid-column: 1; grid-row: 1/3; font-size: 28px; line-height: 1.2; color: #a0dcdd; text-align: center; }
#duck-panel .dk-shell-dialog > .dk-shell-header > h2 { flex: 1; min-width: 0; }
#duck-panel .dk-shell-header > [data-shell-back] { display: flex; align-items: center; justify-content: center; gap: 5px; width: 126px; padding: 8px 12px; font-size: 24px; }
#duck-panel .dk-shell-header > [data-shell-back][hidden] { display: none; }
#duck-panel .dk-shell-header > [data-shell-back] > span { font-size: 11px; white-space: nowrap; }
#duck-panel .dk-shell-field-tools { grid-template-columns: repeat(4,minmax(0,1fr)); width: 320px; }
#duck-panel .dk-shell-field-tools > button { display: grid; grid-template-columns: 18px minmax(0,1fr); align-content: center; gap: 4px; }
#duck-panel .dk-shell-field-tools > button > span { font-size: 18px; color: #a4dbdd; }
#duck-panel .dk-shell-field-tools > button > strong { font-size: 11px; white-space: nowrap; }
#duck-panel .dk-shell-field-tools > button > small { display: none; }
#duck-panel .dk-shell-field-warning, #duck-panel .dk-shell-empty { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #6c7c7b80; border-left: 3px solid #ddc18b; border-radius: 5px; background: #29373b; color: #d4d4c4; font-size: 12px; line-height: 1.8; }
#duck-panel .dk-shell-empty { border-left-color: #89c9d0; }
#duck-panel .dk-shell-secondary { position: static !important; inset: auto !important; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #607a8655; width: 100%; }
#duck-panel .dk-shell-secondary > :is(button,details) { flex: 1 1 160px; }
#duck-panel .dk-shell-secondary > button { min-height: 48px; padding: 10px; }
#duck-panel .dk-shell-secondary details > summary { min-height: 48px; padding: 12px; font-size: 12px; text-align: center; border-radius: 6px; background: #233b48; border-color: #607e89; }
#duck-panel .dk-shell-secondary details > div { position: static; width: 100%; max-width: none; max-height: none; margin-top: 8px; background: #192e39; box-shadow: none; }
#duck-panel .dk-shell-dialog #dk-team { position: static; width: 100%; padding: 0; }
#duck-panel .dk-shell-dialog .dk-objectives { position: static; width: 100%; padding: 18px; margin-bottom: 14px; border: 1px solid #516d78; border-radius: 6px; background: #20333f; }
#duck-panel .dk-shell-dialog .dk-objectives :is(p,span,small) { font-size: 12px; line-height: 1.9; }
#duck-panel .dk-shell-dialog .dk-objectives strong { font-size: 15px; }
#duck-panel .dk-shell-dialog .dk-journey-guide.is-field .dk-journey-steps { display: grid; }
#duck-panel .dk-shell-dialog .dk-journey-guide.is-field p { display: block; }
#duck-panel .dk-vital { display: flex; align-items: center; gap: 6px; }
#duck-panel .dk-vital > .dk-vital-symbol { flex: 0 0 20px; width: 20px; height: 20px; }
#duck-panel .dk-vital > span:not(.dk-vital-meter) { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 18px 5px; align-items: baseline; gap: 3px 6px; flex: 1; }
#duck-panel .dk-vital > span > .dk-vital-meter { grid-column: 1/-1; grid-row: 2; }
#duck-panel .dk-heal-progress > b { min-width: 112px; }
#duck-panel .dk-heal-progress > b > .dk-vital-meter { display: block; height: 5px; margin-top: 7px; }
@media (max-width: 600px) {
  #duck-panel .dk-shell-dock { margin-top: 12px; padding: 6px; gap: 5px; }
  #duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button { height: 64px; min-height: 64px; padding: 6px 3px; }
  #duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button > strong { font-size: 10px; }
  #duck-panel :is(.dk-shell-dock,.dk-shell-favorites) > button > span:first-child { font-size: 20px; }
  #duck-panel .dk-shell-actions { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  #duck-panel .dk-shell-actions > button { grid-template-columns: minmax(0,1fr); grid-template-rows: 22px 18px 28px; height: 110px; padding: 10px 5px; gap: 4px; text-align: center; }
  #duck-panel .dk-shell-actions > button > span { grid-column: 1; grid-row: 1; font-size: 21px; }
  #duck-panel .dk-shell-actions > button > strong { font-size: 11px; line-height: 18px; }
  #duck-panel .dk-shell-actions > button > small { white-space: normal; max-height: 28px; font-size: 8px; line-height: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #duck-panel .dk-shell-home-copy h2 { font-size: 19px; }
  #duck-panel .dk-shell-home-copy p { font-size: 11px; }
  #duck-panel .dk-shell-summary { font-size: 10px; }
  #duck-panel .dk-shell-menu-grid > button > span:first-child { font-size: 23px; }
  #duck-panel .dk-shell-header > [data-shell-back] { width: 44px; padding: 0; }
  #duck-panel .dk-shell-header > [data-shell-back] > span { display: none; }
  #duck-panel .dk-shell-field-tools { width: 254px; }
  #duck-panel .dk-shell-field-tools > button { grid-template-columns: minmax(0,1fr); }
  #duck-panel .dk-shell-field-tools > button > span { display: none; }
  #duck-panel .dk-shell-field-tools > button > strong { font-size: 10px; }
  #duck-panel .dk-vital > .dk-vital-symbol { flex-basis: 16px; width: 16px; height: 16px; }
  #duck-panel .dk-vital > span:not(.dk-vital-meter) { gap: 2px 4px; }
}

/* Equal action slots remain readable with one, three or four available actions. */
#duck-panel .dk-item-grid > .dk-item { height: 420px; min-height: 420px; max-height: 420px; }
#duck-panel .dk-item-grid > .dk-item > .dk-card-details { height: 56px; min-height: 56px; max-height: 56px; flex-basis: 56px; }
#duck-panel .dk-item-grid > .dk-item > .dk-item-buttons { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,44px); grid-auto-rows: 44px; height: 96px; min-height: 96px; max-height: 96px; gap: 6px; padding-top: 2px; align-content: end; }
#duck-panel .dk-item-grid > .dk-item > .dk-item-buttons > button { height: 44px; min-height: 44px !important; max-height: 44px; grid-column: auto; padding: 6px !important; font-size: 11px !important; }
#duck-panel .dk-item-grid > .dk-item > .dk-item-buttons > button:only-child { grid-column: 1/-1; }
#duck-panel .dk-item-grid > .dk-item > .dk-item-buttons > button:first-child { grid-column: auto; }
#duck-panel .dk-item-grid > .dk-item > .dk-item-buttons > button:only-child { grid-column: 1/-1; }

/* A single graphite/cyan surface system across guides, crafting and growth. */
#duck-panel .dk-journey-guide, #duck-panel #dk-journey-guide > .dk-journey-guide { background: #213540; border-color: #658992; color: #b7cdd5; }
#duck-panel .dk-journey-heading { color: #a5c7d0; }
#duck-panel .dk-journey-heading > button { min-height: 44px; height: 44px; width: 44px; background: #1a2e3a; border-color: #5d7c8b; color: #e2ecec; }
#duck-panel .dk-journey-steps > li { background: #182d38; border-color: #59798866; color: #9ebac6; }
#duck-panel .dk-journey-steps > li.is-current { background: #35565f; border-color: #93d2d2; color: #e4f7f3; }
#duck-panel .dk-journey-steps > li.is-done { background: #29434b; border-color: #76b6b1; color: #b7e4d4; }
#duck-panel .dk-journey-guide > strong { color: #f0ecd8; font-size: 15px; }
#duck-panel .dk-journey-guide p { font-size: 12px; line-height: 1.9; color: #b0c5d0; }
#duck-panel .dk-journey-guide > button { min-height: 44px; font-size: 12px; }
#duck-panel .dk-heading { gap: 10px; flex-wrap: wrap; }
#duck-panel .dk-heading h3 { color: #ece8d7; }
#duck-panel .dk-heading span { color: #9ab9c7; }
#duck-panel .dk-contract-options > button > span { color: #9bd1d3; }
#duck-panel .dk-track-toggle { min-height: 44px; background: #1c3542; border-color: #60848f; color: #c2dce0; }
#duck-panel .dk-track-toggle[aria-pressed=true] { background: #355863; border-color: #9ad5d5; color: #edfcf6; }
#duck-panel .dk-tracking-card { background: #233943; border-color: #718d95; border-radius: 7px; }
#duck-panel .dk-tracking-card header small { color: #a8c3ce; }
#duck-panel .dk-tracking-card header strong { color: #f0ecd6; }
#duck-panel .dk-tracking-card header > button { min-height: 44px; padding: 8px 12px; background: #1e3540; color: #d9e8e4; border-color: #718e96; }
#duck-panel .dk-tracking-materials > span { height: 64px; min-height: 64px; align-items: center; background: #1a303b; border-color: #516f7c; border-radius: 5px; }
#duck-panel .dk-tracking-materials b { color: #c3d4d6; }
#duck-panel .dk-tracking-materials em { color: #e8d3a4; }
#duck-panel .dk-tracking-materials progress { accent-color: #99d4d1; }
#duck-panel .dk-tracking-card > p { color: #adc5ce; font-size: 12px; }
#duck-panel .dk-tracking-card footer button { min-height: 44px; background: #2d4a56; color: #e5eee5; border-color: #688994; font-size: 11px; }
#duck-panel .dk-tracking-card.is-compact { border-radius: 0; }
#duck-panel .dk-tracking-card.is-compact .dk-tracking-materials > span { height: 44px; min-height: 44px; }
#duck-panel .dk-target-detail { background: #2b4651; border-color: #9ad7d3; color: #e1e9dc; }
#duck-panel .dk-target-detail > small { color: #a8c6ce; }
#duck-panel .dk-target-dot { border-radius: 3px; background: #294650; border-color: #c3d2ad; color: #e9d5a3; }
#duck-panel .dk-region-target { color: #dcd2aa; }
#duck-panel .dk-grade-guide > div { background: #223641; border-radius: 5px; }
#duck-panel .dk-grade-guide :is(span,small) { color: #abc3cd; }
#duck-panel .dk-recipe-unlock { color: #ddcaa7 !important; }
#duck-panel .dk-recipe-source { color: #a4c2ce !important; }
#duck-panel .dk-item-meta { color: #a7bdc7; }
#duck-panel .dk-acquisition p { color: #afc4cd; }
#duck-panel .dk-acquisition h4 { color: #ece8d4; }
#duck-panel .dk-armory-note { color: #a7c0cc; }
#duck-panel .dk-armory-note b { color: #dce8e3; }
#duck-panel .dk-mount-heading span { color: #a9cad2; }
#duck-panel .dk-mount label { color: #b2c8d1; font-size: 11px; }
#duck-panel .dk-mount > small { color: #a9c2ce; }
#duck-panel .dk-part-blueprint { color: #c4e3df; border-color: #5c808a; }
#duck-panel .dk-weapon-options { background: #1b303c; color: #e2ede8; border-color: #5f7f8c66; }
#duck-panel .dk-weapon-options li span { color: #a6c0cb; }
#duck-panel .dk-weapon-options li b { color: #e5e6cd; }
#duck-panel .dk-weapon-special { background: #ffffff06; }
#duck-panel .dk-weapon-special > p { color: #bbd1d3; }
#duck-panel .dk-upgrade-heading > strong { background: #213c46; border-color: #69868e; color: #c3dadd; }
#duck-panel .dk-upgrade-instance, #duck-panel .dk-upgrade-description, #duck-panel .dk-upgrade-issue, #duck-panel .dk-upgrade-requirement { color: #b1cad2; }
#duck-panel .dk-enhancement-compare > div { min-height: 48px; background: #1a313d; }
#duck-panel .dk-enhancement-compare small, #duck-panel .dk-enhancement-compare span { color: #a8c2ce; }
#duck-panel .dk-upgrade-requirement button { min-height: 44px; color: #c6e3df; }
#duck-panel .dk-facility-pips i, #duck-panel .dk-upgrade-pips i { background: #1e3541; border-color: #5b7781; color: #92b0bc; }
#duck-panel .dk-facility-pips .is-complete, #duck-panel .dk-upgrade-pips .is-complete { background: #78acae; border-color: #aad4d1; color: #172d38; }
#duck-panel .dk-upgrade-pips .is-next { border-color: #dbca9e; color: #ead3a4; }
#duck-panel .dk-upgrade-complete { background: #2d4d55; border-color: #8abeb9; }
#duck-panel .dk-upgrade-complete b { color: #e5efdc; }
#duck-panel .dk-upgrade-complete span { color: #bdd7d4; }
#duck-panel .dk-facility-current { background: #193440; border-color: #9dcac5; }
#duck-panel .dk-facility-current small, #duck-panel .dk-facility-next > small, #duck-panel .dk-facility-next p { color: #adc6cf; }
#duck-panel .dk-facility-stage { color: #d0dbd6; }
#duck-panel .dk-facility-actions button { background: #31525b; border-color: #71939a; color: #e5eee4; }
#duck-panel .dk-hideout-collection p > b { background: #2a424f; color: #dce8e2; }
#duck-panel .dk-hideout-collection small { color: #c3d6d5; }
#duck-panel .dk-hideout-trophies span { background: #1d3441; border-color: #556f7b; color: #8faeb9; }
#duck-panel .dk-hideout-trophies .is-earned { background: #3b4a49; border-color: #ad9c75; color: #e6d4a7; }
#duck-panel .dk-ux-quote { background: #203943; border-color: #64848f; }
#duck-panel .dk-ux-chip { background: #27434f; border-color: #7699a066; color: #c9e0df; }
#duck-panel .dk-ux-chip.is-warning, #duck-panel .dk-ux-chip[data-tone=warning] { background: #514831; border-color: #c6a765; color: #f2d9a5; }
#duck-panel .dk-ux-chip.is-danger, #duck-panel .dk-ux-chip[data-tone=danger] { background: #553c3a; border-color: #c89486; color: #ffd4c1; }
#duck-panel .dk-ux-chip.is-ready, #duck-panel .dk-ux-chip[data-tone=ready] { background: #2e4e50; border-color: #8fc4b9; color: #c2e9d6; }
#duck-panel .dk-ux-flags [aria-pressed=true] { background: #3d5e67 !important; border-color: #add7d2 !important; color: #eff8e5 !important; }
#duck-panel .dk-drop-guide { background: #182e3a; border-color: #5e7e8b; }
#duck-panel .dk-drop-rows > div { background: #243d48; border-color: #526f7a; }
#duck-panel .dk-relic-recipes > button { height: 72px; min-height: 72px; overflow: hidden; }
#duck-panel .dk-shell-dialog .dk-objectives { display: block; }
.dk-weapon-tooltip { background: #152b37f8; border-color: #7a9da7; color: #e4eee4; }
.dk-weapon-tooltip .dk-weapon-options { background: transparent; border-color: #5b7d8766; }
.dk-weapon-tooltip .dk-weapon-options li span { color: #abc6ce; }
.dk-weapon-tooltip .dk-weapon-options li b { color: #e5e6ce; }
.dk-weapon-tooltip :is(.dk-weapon-build,.dk-item-tooltip-description) { color: #b5ccd0; }
.dk-weapon-tooltip .dk-tooltip-ammo { background: #28434e; border-color: #63818a66; }
@media (max-width: 600px) {
  #duck-panel .dk-item-grid > .dk-item { height: 420px; min-height: 420px; max-height: 420px; }
  #duck-panel .dk-item-grid > .dk-item > .dk-item-buttons > button { font-size: 10px !important; }
  #duck-panel .dk-tracking-materials { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #duck-panel .dk-tracking-materials > span { height: 64px; min-height: 64px; }
  #duck-panel .dk-tracking-card footer { align-items: stretch; }
  #duck-panel .dk-tracking-card footer button { min-height: 44px; font-size: 10px; }
}

/* Keep field tools clear of the zone title and touch movement controls. */
#duck-panel .dk-shell-field-tools { top: 84px; }
@media (max-width: 700px) {
  #duck-panel .dk-shell-field-tools { top: 72px; }
  #duck-panel .dk-bottom-state { bottom: 180px; }
  #duck-panel .dk-ammo { height: 46px; min-height: 46px; max-height: 46px; }
  #duck-panel .dk-survival { gap: 5px !important; }
  #duck-panel .dk-vital { min-width: 0; gap: 4px; }
  #duck-panel .dk-vital > span:not(.dk-vital-meter) { min-width: 0; font-size: 8px; gap: 2px 3px; }
  #duck-panel .dk-vital b { font-size: 10px; }
  #duck-panel .dk-armor-status { font-size: 8px !important; white-space: nowrap; }
}
/* Inventory windows form a stacking context at 26; keep field shortcuts below it. */
#duck-panel .dk-shell-field-tools { z-index: 25; }

/* Archives and direct key capture share stable card / row dimensions. */
#duck-panel .dk-armor-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;grid-auto-rows:420px}
#duck-panel .dk-armor-card{display:flex;flex-direction:column;gap:8px;min-width:0;box-sizing:border-box;padding:14px;overflow:hidden;border:1px solid color-mix(in srgb,var(--grade),transparent 55%);border-top:3px solid var(--grade);border-radius:8px;background:#172d32}
#duck-panel .dk-armor-card>.dk-weapon-inspect{width:64px;height:64px;min-height:64px;flex-shrink:0;margin:0;padding:0;border-radius:7px}
#duck-panel .dk-armor-card>.dk-weapon-inspect .dk-icon{width:100%;height:100%}
#duck-panel .dk-armor-card h3{font-size:15px;line-height:1.5;height:38px;min-height:38px;margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#duck-panel .dk-armor-card .dk-item-badges{flex-shrink:0;min-height:24px;margin:0}
#duck-panel .dk-armor-card .dk-catalogue-spec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;height:80px;min-height:80px;flex-shrink:0;margin:0}
#duck-panel .dk-armor-card .dk-catalogue-spec>span{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;min-width:0;padding:5px;font-size:10px;line-height:1.3}
#duck-panel .dk-armor-card .dk-catalogue-spec b{display:inline-block;flex-shrink:0;margin:0;font-size:14px;line-height:1.3}
#duck-panel .dk-armor-card .dk-armor-source{margin:0;color:#b8c9c6;font-size:11px;line-height:1.6;min-height:54px;height:54px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#duck-panel .dk-armor-card .dk-armor-description{display:none}
#duck-panel .dk-armor-card>button:not(.dk-weapon-inspect),#duck-panel .dk-armor-card>span:last-child{margin-top:auto;height:40px;min-height:40px;flex-shrink:0;box-sizing:border-box}
#duck-panel .dk-armor-card>span:last-child{display:flex;align-items:center}
#duck-panel .dk-goal-material{position:absolute;top:2px;left:2px;right:2px;z-index:2;padding:2px 1px;background:#c5a35eea;color:#12272c;font-size:9px;font-weight:800;line-height:1.2;border-radius:2px;text-align:center;pointer-events:none;white-space:nowrap}
#duck-panel .dk-key-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;min-width:0;padding:8px;border:1px solid #63807c55;border-radius:5px;box-sizing:border-box;background:#112b30}
#duck-panel .dk-key-row>span{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#duck-panel .dk-key-row>button{min-width:90px;max-width:130px;min-height:40px;padding:8px;flex-shrink:0;font-size:12px}
#duck-panel .dk-key-row>button[data-listening]{color:#fff0c5;border-color:#e3c376;background:#675735;box-shadow:0 0 0 2px #c7a35044}
#duck-panel .dk-pref-feedback{position:sticky;bottom:0;padding:10px;background:#193b40;color:#f1d99e;min-height:38px;box-sizing:border-box;z-index:2}
#duck-panel .dk-world-label.is-container{color:#fff4d1;font-size:11px;background:#16313bcc;border:1px solid #d6e2df80;border-radius:4px;padding:4px 7px}
#duck-panel .dk-world-label.is-container.is-locked{color:#f4d18b;border-color:#dfb76c}
@media(max-width:600px){#duck-panel .dk-armor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#duck-panel .dk-armor-card{padding:10px}#duck-panel .dk-armor-card>.dk-weapon-inspect{width:52px;height:52px;min-height:52px}#duck-panel .dk-armor-card h3{font-size:12px}#duck-panel .dk-armor-card .dk-catalogue-spec{grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(0,1fr));height:104px;min-height:104px}#duck-panel .dk-armor-card .dk-catalogue-spec b{font-size:12px}#duck-panel .dk-key-row{padding:7px;gap:5px;flex-direction:column;align-items:stretch;min-height:88px}#duck-panel .dk-key-row>button{max-width:none;min-width:0;width:100%}#duck-panel .dk-goal-material{font-size:8px}}
