body[data-atlas="army"] {--section-accent:#e8c88d}
body:is([data-hq-page="components"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) #app :is(.filters,.gear-filters) > label,
body:is([data-hq-page="components"],[data-hq-page="items"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) #app :is(#search-label,.results-meta #count,.gear-meta #count,.item-sort) {
  font-size:.8125rem; line-height:1.45;
}
@media(max-width:44em){body:is([data-hq-page="components"],[data-hq-page="items"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) > .game-heading .game-title#title {min-height:0!important; margin:0!important}}
@media(max-width:44em){body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) .gear-heading #intro {margin:.4rem 0 0}}
@media(max-width:44em){body.hero-library-page #library-controls,
  body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap:.75rem;
  }}
@media(max-width:44em){body.hero-library-page #library-controls > :is(label:first-child,.check,.clear),
  body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters > label:first-child {grid-column:1/-1}}
@media(max-width:44em){body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters :is(label,select) {min-width:0; max-width:100%}}
@media(max-width:44em){body:is([data-hq-page="items"],[data-hq-page="equipment"]) :is(#main-content,#hq-main-content) #app :is(#item-sections,#gear-sections) {
    flex-wrap:wrap; height:auto; max-height:none; overflow:visible; gap:.25rem; padding-block:.25rem;
  }}
@media(max-width:44em){body:is([data-hq-page="items"],[data-hq-page="equipment"]) :is(#main-content,#hq-main-content) #app :is(#item-sections,#gear-sections) > button {
    max-width:100%; min-width:0; height:auto; white-space:normal; overflow-wrap:anywhere; text-align:start;
  }}
@media(max-width:44em){body:is([data-hq-page="components"],[data-hq-page="items"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) #app :is(.results-meta button,.gear-armies button,.gear-meta button,.item-save,.item-details-link,.ds-add,.chest-card-action) {
    min-height:44px; height:auto;
  }}
@media (max-width: 44em){body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] {
    container: catalogue-detail / inline-size;
    --tw-language-control-height: 44px;
    box-sizing: border-box;
    inset: auto 0 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - .5rem);
    border-radius: 16px 16px 0 0;
    border-block-end: 0;
    overscroll-behavior: contain;
  }}
@media (max-width: 44em){body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail) #detail-art + div {
    min-width: 0;
    flex: 1 1 calc(100% - 66px);
  }}
@media (max-width: 44em){body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail) #detail-title {
    font-size: 1.0625rem !important;
    hyphens: auto;
    line-height: 1.24 !important;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }}
@media (max-width: 44em){body:is([data-hq-page="components"], [data-hq-page="equipment"]) dialog:is(#detail, #gear-detail)[open] .dialog-head > :is(.compact-detail-actions, .gear-dialog-actions) {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .25rem .45rem;
    min-width: 0;
    margin: 0;
  }}
@media (max-width: 44em){body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head :is(#close, .tw-lang-toggle, summary) {
    min-height: 44px !important;
    max-width: 100%;
    font-size: .8125rem !important;
    line-height: 1.3 !important;
  }}
@media (max-width: 44em){body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head #close {
    margin-inline-start: auto;
  }}
@media (max-width: 44em){body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] #detail-body {
    padding-block-end: max(1rem, env(safe-area-inset-bottom));
  }}
@media (max-height: 30em){body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head {position: static}}
@media (max-width: 44em){body:is([data-hq-page="components"], [data-hq-page="equipment"]) dialog:is(#detail, #gear-detail)[open] .dialog-head > :is(.compact-detail-actions, .gear-dialog-actions) {
    width: 100% !important;
    max-width: 100%;
    justify-self: stretch;
  }}
@media (max-width: 44em){body:is([data-hq-page="components"], [data-hq-page="equipment"]) dialog:is(#detail, #gear-detail)[open] .dialog-head #close {
    margin-inline-start: auto !important;
  }}
@container catalogue-detail (max-width: 19rem){body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head {
    position: static !important;
    padding-inline: 12px !important;
    column-gap: 8px !important;
  }}
@container catalogue-detail (max-width: 19rem){body:is([data-hq-page="components"], [data-hq-page="equipment"]) dialog:is(#detail, #gear-detail)[open] .dialog-head > :is(.compact-detail-actions, .gear-dialog-actions) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }}
@container catalogue-detail (max-width: 19rem){body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head #close {
    padding-inline: 8px;
    font-size: .75rem !important;
  }}
body:is([data-hq-page="equipment"],[data-hq-page="components"]) main > .decision-entry {
  margin-block:1.5rem; max-width:100%;
}
body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));
  align-items:start; gap:.65rem 1rem; padding:.85rem;
}
body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters > label:first-child {grid-column:auto}
body[data-hq-page="equipment"] #army-library-filters:has(#slot-field[hidden]) {display:none}
body[data-hq-page="equipment"] #app #army-library-filters > summary {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:center;
  min-height:44px; padding:.5rem .75rem; color:#e7f0ef; cursor:pointer;
}
body[data-hq-page="equipment"] #army-library-filters > summary::-webkit-details-marker {display:none}
body[data-hq-page="equipment"] #army-library-filters > summary::after {
  content:""; width:.55rem; height:.55rem; border-inline-end:2px solid #b3d4cd; border-block-end:2px solid #b3d4cd;
  transform:rotate(45deg); grid-column:2; grid-row:1/3; align-self:center; margin:.2rem;
}
body[data-hq-page="equipment"] #army-library-filters[open] > summary::after {transform:rotate(225deg)}
body[data-hq-page="equipment"] #army-library-filters summary strong {font-size:.9375rem; line-height:1.35}
body[data-hq-page="equipment"] #army-library-filters summary span {grid-column:1; font-size:.8125rem; line-height:1.45; color:#bfd0cb; overflow-wrap:anywhere}
body[data-hq-page="equipment"] #app .army-library-fields > #army-filters {grid-column:1/-1; margin:0}
body[data-hq-page="equipment"] #app .army-library-fields > label {display:grid; gap:.25rem; font-size:.875rem; min-width:0}
body[data-hq-page="equipment"] #app .army-library-fields select {box-sizing:border-box; width:100%; max-width:100%; min-width:0; min-height:44px; font-size:1rem}
body[data-hq-page="equipment"] #app .gear-meta[hidden] {display:none}
body[data-hq-page="equipment"] #app .gear-meta #gear-set {
  min-width:0; max-width:100%; margin:0 0 0 auto; padding:0; background:transparent; border:0;
}
body[data-hq-page="equipment"] #app .gear-meta #gear-set[open] {width:100%; padding:.7rem; border:1px solid #466267; border-radius:.5rem; background:#10242c}
body[data-hq-page="equipment"] #app .gear-meta #gear-set > summary {
  display:list-item; list-style-position:inside; min-height:44px; padding:.65rem .25rem; color:#b9e5d7; font-size:.875rem; line-height:1.45;
}
body[data-hq-page="equipment"] #app #gear-set[hidden] {display:none}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .scan-name {font-size:1rem; line-height:1.4; overflow-wrap:anywhere}
body[data-hq-page="equipment"] #app #gear-grid .gear-card :is(.gear-labels,.gear-stat,.scan-label) {font-size:.875rem; line-height:1.4}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-stat strong {font-size:.9375rem; font-variant-numeric:tabular-nums}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .scan-action {font-size:.8125rem}
body[data-hq-page="equipment"] #gear-detail #gear-detail-body :is(.gear-detail-section > h3,#upgrade-pane h3) {font-size:1.125rem; line-height:1.35}
body[data-hq-page="equipment"] #gear-detail-body .gear-detail-section .gear-stat strong {font-size:1rem; font-variant-numeric:tabular-nums}
body[data-hq-page="equipment"] #gear-detail-body :is(.gear-quality-table,#compare-panel table) :is(td,th) {font-size:.875rem; line-height:1.45}
body[data-hq-page="equipment"] #gear-detail-body .gear-detail-section > #compare-panel {padding:0; margin:.65rem 0 0; border:0; border-block-start:1px solid #39535b; border-radius:0; background:transparent}
body[data-hq-page="equipment"] #gear-detail-body #compare-panel > summary {
  color:#b9e5d7; font-size:.9375rem; line-height:1.4; min-height:44px; padding:.6rem .15rem;
}
body[data-hq-page="equipment"] #gear-detail-body #compare-panel :is(select,label) {min-width:0; max-width:100%; overflow-wrap:anywhere}
@media(max-width:44em){body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters {margin:.6rem 0; padding:.65rem}}
@media(max-width:44em){body[data-hq-page="equipment"] #app #gear-sections button {white-space:normal; overflow-wrap:anywhere}}
@media(max-width:44em){body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-stat {gap:.5rem}}
body[data-hq-page="equipment"] #app #gear-grid .gear-card {container:armypiece / inline-size}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-card-head {min-width:0; max-width:100%}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-card-head > :last-child {min-width:0}
@container armypiece (max-width:19rem){body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-scan-open {grid-template-columns:minmax(0,1fr); gap:.5rem}}
@container armypiece (max-width:19rem){body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-scan-open > :is(.gear-card-head,.gear-scan-bonuses,.scan-action) {grid-area:auto; min-width:0; max-width:100%}}
@container armypiece (max-width:19rem){body[data-hq-page="equipment"] #app #gear-grid .gear-card .scan-action {justify-self:start; white-space:normal; overflow-wrap:anywhere}}
@container armypiece (max-width:19rem){body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-card-head {align-items:flex-start; padding:0}}
@container armypiece (max-width:19rem){body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-stat {display:flex; flex-wrap:wrap; justify-content:space-between; gap:.1rem .5rem}}
@container catalogue-detail (max-width:19rem){body[data-hq-page="equipment"] dialog#gear-detail[open] #gear-detail-body .detail-tabs {position:static!important}}
@media (max-height:30em){body[data-hq-page="equipment"] dialog#gear-detail[open] #gear-detail-body .detail-tabs {position:static!important}}
