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: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;
  }}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content {
  --decor-line: #38515b;
  --decor-soft: #aac0c7;
  --decor-surface: #132731;
  --decor-ink: #ecf3f4;
  --decor-accent: #a7dfcf;
}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content .decor-library-fold > summary,
body[data-page="decorations"] #hq-main-content #app #decor-shortlist > summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .55rem; 
  padding: .65rem .85rem; min-height: 44px; line-height: 1.4; font-size: .9375rem;
  cursor: pointer; overflow-wrap: anywhere; list-style: none; font-weight: 650; color: var(--decor-ink);
}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content .decor-library-fold > summary::-webkit-details-marker { display:none }
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content .decor-library-fold > summary::after {
  content: ''; display: block; box-sizing: border-box; flex: 0 0 .48rem; width: .48rem; height: .48rem;
  margin-inline-start: auto; border: solid var(--decor-soft); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content .decor-library-fold[open] > summary::after {transform: rotate(225deg)}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content :is(summary,a,button,input):focus-visible {outline: 3px solid #c4e5f0; outline-offset: 2px}
body[data-page="decorations"] #hq-main-content #app > .filters {
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: end;
  gap: .75rem 1rem; padding: 1rem; margin: .85rem 0 .7rem;
  background: #112632; border: 1px solid var(--decor-line); border-radius: .8rem;
}
body[data-page="decorations"] #hq-main-content #app > .filters:has(#decor-library-filters[open]) {align-items:start}
body[data-page="decorations"] #hq-main-content #app .filters :is(label,#search-label) {
  min-width:0; max-width:100%; font-size:.9375rem; color:var(--decor-ink); line-height:1.45;
}
body[data-page="decorations"] #hq-main-content #app .filters label:not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr);gap:.35rem}
body[data-page="decorations"] #hq-main-content #app .filters input:not([type="checkbox"]),
body[data-page="decor"] #hq-main-content #detail .decor-list-controls input {
  min-width:0; width:100%; max-width:100%; min-height:44px; height:auto; font-size:1rem!important; line-height:1.45;
}
body[data-page="decorations"] #hq-main-content #app .decor-library-fields {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap:.75rem; padding:.15rem .85rem .85rem;
}
body[data-page="decorations"] #hq-main-content .decor-library-selection:empty {display:none}
body[data-page="decorations"] #hq-main-content .decor-library-panels:has(details[open]) {grid-template-columns:minmax(0,1fr)}
body[data-page="decorations"] #hq-main-content .decor-library-panels .decor-related-tools {margin:.25rem .85rem .75rem;display:flex;flex-wrap:wrap;gap:.35rem .85rem;align-items:center}
body[data-page="decorations"] #hq-main-content .decor-library-panels .decor-related-tools strong {display:none}
body[data-page="decorations"] #hq-main-content .decor-library-panels .decor-related-tools a {font-size:1rem;min-height:44px;display:inline-flex;align-items:center;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #decor-library-planning #decor-flow-guide {margin:.25rem .85rem .85rem}
body[data-page="decorations"] #hq-main-content :is(#decor-flow-guide,#decor-shortlist) :is(p,li,button,summary,.ds-help a) {font-size:.9375rem;line-height:1.5}
body[data-page="decorations"] #hq-main-content :is(#decor-flow-guide,#decor-shortlist) :is(label,.ds-card small) {font-size:.875rem;line-height:1.45}
body[data-page="decorations"] #hq-main-content #app .results-meta {display:flex;align-items:center;gap:.5rem 1rem;justify-content:space-between;flex-wrap:wrap;margin:.7rem 0}
body[data-page="decorations"] #hq-main-content #app .results-meta #count {font-size:.9375rem;color:var(--decor-soft)}
body[data-page="decorations"] #hq-main-content #app .decor-library-idle {display:none}
body[data-page="decorations"] #hq-main-content #app .results#results {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr));gap:.75rem;align-items:stretch}
body[data-page="decorations"] #hq-main-content #app #results .scan-decor {
  display:flex;flex-direction:column;gap:.4rem;align-items:stretch;min-width:0;padding:.85rem 1rem;margin:0;
  border:1px solid var(--decor-line);border-radius:.75rem;background:#142834;box-shadow:none;
}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-open {display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem;align-items:start;min-width:0;padding:0;text-decoration:none}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-open .item-main {align-items:center;display:flex;gap:.7rem;width:auto;min-width:0}
body[data-page="decorations"] #hq-main-content #app #results .item-main > :last-child {min-width:0}
body[data-page="decorations"] #hq-main-content #app #results .scan-name {font-size:1.125rem;line-height:1.27;overflow-wrap:anywhere;color:var(--decor-ink)}
body[data-page="decorations"] #hq-main-content #app #results :is(.decor-scan-meta,.scan-warning,.scan-more,.scan-label) {font-size:.875rem;line-height:1.4;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-buffs {
  min-width:0;display:grid;gap:.15rem;padding:.45rem .7rem;border:none;border-inline-start:2px solid #639d92;
  background:#0f232e;border-radius:0 .35rem .35rem 0;font-size:1rem;line-height:1.45;
}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-effect {display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;min-width:0;color:var(--decor-ink);font-size:1rem;line-height:1.4;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-effect strong {color:#c6f2df;white-space:normal}
body[data-page="decorations"] #hq-main-content #app #results .scan-action {
  justify-self:start;display:inline-flex;align-items:center;gap:.25rem;min-height:44px;
  padding:0;background:transparent;border:0;font-size:.9375rem;color:var(--decor-accent);
}
body[data-page="decorations"] #hq-main-content #app #results .ds-add {
  margin:.1rem 0 0;align-self:start;max-width:100%;font-size:.875rem;min-height:44px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;
}
body[data-page="decorations"] #hq-main-content #app #results .empty {grid-column:1/-1;font-size:1rem}
body[data-page="decorations"] #hq-main-content #app #more-row button {min-height:44px;font-size:1rem;white-space:normal}
@media (max-width:44em){body[data-page="decorations"] #hq-main-content #app > .filters {grid-template-columns:minmax(0,1fr);gap:.65rem;padding:.8rem}}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-open > :is(.item-main,.decor-scan-buffs,.scan-action) {grid-column:1 / -1!important;grid-row:auto!important}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-open > .item-main {width:100%}
body[data-page="decorations"] #hq-main-content #app #results .scan-action {max-width:100%;min-width:0;white-space:normal;flex-wrap:wrap;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-buffs {grid-template-columns:minmax(0,1fr)}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-effect {flex-wrap:wrap}
body[data-page="decorations"] #hq-main-content #app #more-row:not([hidden]) {display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}
body[data-page="decorations"] #hq-main-content #app #more-row button {max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #app #decor-shortlist :is(h2,h3,h4,p,summary,button,a,label) {
  min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
body[data-page="decorations"] #hq-main-content #app #decor-shortlist .ds-help {display:flex;flex-wrap:wrap}
body[data-page="decorations"] #hq-main-content #app #decor-shortlist :is(.ds-help a,.ds-card a) {display:inline-block;white-space:normal!important;max-width:100%;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #app #decor-shortlist h2 {font-size:1.15rem;line-height:1.35}
