/* Armory is a compact, screen-height workspace. Each location scrolls independently. */
body:has(#armory-root) .app-heading{min-height:64px;padding:12px 24px;background-position:70% 40%}
body:has(#armory-root) .tower-identity{gap:0}body:has(#armory-root) .tower-location,body:has(#armory-root) .app-caption{display:none}
body:has(#armory-root) .brand{font-size:22px;letter-spacing:2px}body:has(#armory-root) .brand img{width:26px;height:26px}
body:has(#armory-root) .app-header nav{max-width:none;padding:0 16px;gap:8px}body:has(#armory-root) .nav-item{min-height:41px;padding:9px 10px}
body:has(#armory-root) main{max-width:none;padding:10px 16px 12px;min-height:0}
body:has(#armory-root) .page-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:0;padding:0;border:0}
.inventory-tabs{margin:0 0 6px;display:flex;gap:4px;flex-wrap:wrap;min-height:32px}
.inventory-tabs button{border:1px solid #48545a;background:#192227;color:#cbd1d3;padding:5px 12px;font:inherit;font-size:14px;cursor:pointer;min-height:32px}
.inventory-tabs button.active{background:#d3c18c;border-color:#d3c18c;color:#172126}
.armory-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:-38px;margin-left:310px;min-height:32px;margin-bottom:6px}
.armory-toolbar .helper-text{margin:0;color:#adbac1;font-size:13px}.armory-toolbar .button{min-height:30px;padding:5px 12px}
.armory-notice:empty{display:none}.armory-notice{font-size:14px;padding:6px 10px;border-left:2px solid #c8b67b;background:#253139;margin:4px 0}
.armory-controls{padding:4px 0 9px;margin-bottom:8px;border-bottom:1px solid #3b4a52}
.armory-location-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.armory-locations{border:0;padding:0;margin:0;min-width:0}.armory-location-options{display:flex;gap:6px;flex-wrap:wrap}
.armory-location-options label{display:flex;align-items:center;gap:5px;border:1px solid #43525b;padding:4px 8px;cursor:pointer;font-size:14px;min-height:30px}
.armory-location-options label:has(:checked){background:#293840;border-color:#a99c74}.armory-location-options small{color:#cebd8b;margin-left:4px;font-size:12px}
.armory-controls input[type=checkbox]{accent-color:#d5c28c;width:14px;height:14px;min-height:0;padding:0;flex:none;border-radius:0}
.armory-shortcuts{gap:12px}.armory-shortcuts .text-button{font-size:14px;min-height:28px;padding:0}
.armory-filter-row{display:flex;gap:10px;align-items:center;margin-top:8px;flex-wrap:wrap}
.armory-filter-row>label{display:flex;align-items:center;gap:7px;font-size:14px;color:#acbdc6;flex:0 1 auto}
.armory-filter-row .armory-search{flex:1;min-width:230px}.armory-filter-row input[type=search],.armory-filter-row select,.armory-extra-filters select{background:#0f191f;color:#e4e9eb;border:1px solid #45565e;min-height:32px;height:32px;border-radius:0;padding:4px 10px;font-size:14px}
.armory-filter-row .armory-search input{width:100%}.armory-filter-row select{width:145px;padding-right:28px}.armory-filter-row [data-armory-filter=kind]{width:108px}
.armory-density{white-space:nowrap}.armory-density output{min-width:20px;color:#e5e9e9}.armory-density input[type=range]{width:88px;height:18px;min-height:0;padding:0;accent-color:#cbbb87;border:0;background:transparent}
.armory-filter-row .button{min-height:32px;height:32px;padding:4px 10px;font-size:14px}.armory-filter-row [data-armory-count]{font-size:13px;color:#aebdc4;min-width:58px;text-align:right}
.armory-extra-filters{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:9px;font-size:14px}.armory-extra-filters[hidden]{display:none}.armory-extra-filters>label{display:flex;align-items:center;gap:7px}.armory-extra-filters select{width:125px;padding-right:25px}
.armory-board{display:grid;grid-template-columns:var(--armory-tracks);gap:8px;height:var(--armory-board-height,65dvh);min-height:300px;overflow-x:auto;overflow-y:hidden;padding-bottom:2px}
.armory-column{min-width:0;display:flex;flex-direction:column;border:1px solid #3a4b54;background:#141f26;height:100%;overflow:hidden}
.armory-column-head{display:flex;gap:7px;align-items:center;padding:7px 8px;background:#25333b;border-bottom:1px solid #52606a;min-height:58px;flex:none;flex-wrap:wrap}
.armory-column-head h3{font-size:15px;margin:0;line-height:1.25}.armory-column-head small{color:#b8c5cb;font-size:12px}.armory-column-head img,.armory-location-mark{width:28px;height:28px;object-fit:cover;flex:none}.armory-location-mark{display:grid;place-items:center;font-size:22px;color:#ccbc8b}
.armory-jumps{display:flex;gap:7px;margin-left:auto;flex-wrap:wrap}.armory-jumps button{padding:0;min-height:22px;font-size:12px}
.armory-column-items{overflow:auto;overscroll-behavior-y:contain;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#697a85 #18252d;scroll-padding-top:26px}
.armory-column-items:focus-visible{outline:2px solid #8bb9d4;outline-offset:-2px}
.armory-slot{padding:0 6px 7px;border-bottom:1px solid #34424a;min-width:0}.armory-slot:last-child{border-bottom:0}
.armory-slot-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:5px 0 4px;margin-bottom:4px;color:#a8bbc6;background:#141f26}
.armory-slot-heading h4{font-size:12px;text-transform:uppercase;letter-spacing:.08em;margin:0;line-height:1.3}.armory-slot-heading>span{font-size:12px}
.armory-item-grid{display:grid;grid-template-columns:repeat(auto-fill,var(--armory-icon-size,44px));gap:4px;align-content:start;justify-content:start}
.armory-item{position:relative;width:var(--armory-icon-size,44px);height:var(--armory-icon-size,44px);min-width:0;padding:0;background:#2a233d;color:#fff;cursor:pointer;border:1px solid #616d76;text-align:left;overflow:hidden;font:inherit;border-radius:0}
.armory-item img{width:100%;height:100%;object-fit:cover;display:block}.armory-item.exotic{border-color:#d2b963;background:#6e5824}.armory-item.equipped{outline:1px solid #eef5f5;outline-offset:1px}
.armory-item:focus-visible{outline:3px solid #63c6fa;outline-offset:1px;z-index:1}.armory-item:hover{border-color:#fff;filter:brightness(1.18)}
.armory-item-fallback{display:grid;place-items:center;width:100%;height:100%;font-size:14px;color:#c5d2da;background:linear-gradient(135deg,#3b4c59,#1a252e)}
.armory-item-power{position:absolute;right:0;bottom:0;background:#10171bdf;padding:0 2px;font-size:11px;line-height:13px;text-shadow:0 1px 1px #000}
.armory-equipped-mark,.armory-lock-mark{position:absolute;left:0;top:0;background:#e7eeef;color:#10202b;font-size:9px;font-weight:700;padding:0 2px;line-height:12px}.armory-lock-mark{top:auto;bottom:0;background:#15222be0;color:#e2e7eb}
.armory-item-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.armory-drag-help{margin:0 0 3px;color:#a6b8c2;font-size:12px;line-height:1.4}.armory-item.drag-ready{cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.armory-item.drag-source{opacity:.35;cursor:grabbing}
.armory-dragging{user-select:none}.armory-dragging .drop-valid{outline:1px dashed #83b9b1;outline-offset:-2px}.armory-dragging .armory-equipped-slot.drop-valid,.armory-dragging .armory-equipped-empty.drop-valid{outline-color:#8fc9f5;outline-offset:2px}
.armory-dragging .drop-over{outline:3px solid #9cdec9!important;outline-offset:-3px;background-color:#28453f}.armory-dragging .drop-blocked{outline:2px solid #d58a81!important;outline-offset:-2px}
.armory-drag-ghost{position:fixed!important;z-index:2147483000!important;pointer-events:none!important;opacity:.9!important;box-shadow:0 5px 22px #000b;transform:rotate(-4deg);margin:0!important}.armory-drag-ghost img{pointer-events:none}
.armory-drag-readout{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:2147483001;max-width:min(650px,90vw);padding:10px 16px;background:#e0e9e5;color:#172a30;border:1px solid #91c4b8;font-size:14px;line-height:1.4;box-shadow:0 5px 25px #0007;pointer-events:none}
.armory-dragging .armory-notice{visibility:hidden}
[data-armory-drop]:focus-visible{outline:3px solid #98d6f1;outline-offset:-2px}
.armory-detail.is-weapon{width:min(920px,calc(100vw - 24px))}.armory-weapon-sheet{display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:24px;align-items:start}
.owned-roll-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.owned-roll-heading h3{margin:0}.owned-shader{display:inline-flex;width:24px;height:24px;border:1px solid #6c7a83}.owned-shader img{width:100%;height:100%;object-fit:cover}
.owned-roll-columns{display:grid;grid-template-columns:repeat(var(--owned-columns),minmax(0,1fr));gap:10px;margin-bottom:14px}.owned-roll-column{min-width:0}.owned-roll-column h4{margin:0 0 10px;text-align:center;font-size:12px;font-weight:400;color:#a2b7c4}.owned-roll-column>div{display:grid;gap:9px}
.owned-perk{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 3px;border:1px solid #45515a;background:#26313a;cursor:help;min-width:0}.owned-perk>img,.owned-perk-fallback{width:34px;height:34px;object-fit:contain;display:grid;place-items:center}.owned-perk-name{text-align:center;font-size:12px;line-height:1.25;overflow-wrap:anywhere}.owned-perk.selected{border-color:#8fc6ec;background:#274457;color:#edf6fc}.owned-perk.unselected{border-color:#40494e;background:#232b31;color:#82909a}.owned-perk.unselected>img{filter:grayscale(1);opacity:.4}.owned-perk:focus-visible{outline:2px solid #a1d0ed;outline-offset:2px}
.owned-perk-tip{display:none;position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);width:245px;max-width:75vw;padding:12px;text-align:left;background:#0b161e;border:1px solid #7a9caf;box-shadow:0 7px 25px #0009;z-index:10;color:#dbe7ef;font-size:14px;line-height:1.5}.owned-perk-tip strong,.owned-perk-tip small,.owned-perk-tip>span{display:block}.owned-perk-tip small{color:#a7bac7;margin:2px 0 7px;font-size:12px}.owned-perk-tip>span{white-space:pre-line}.owned-perk:hover .owned-perk-tip,.owned-perk:focus .owned-perk-tip{display:block}.owned-roll-column:first-child .owned-perk-tip{left:0;transform:none}.owned-roll-column:last-child .owned-perk-tip{left:auto;right:0;transform:none}
.owned-roll-extras{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #40515d;padding-top:10px}.owned-roll-extra{display:flex;align-items:center;gap:6px;font-size:13px;color:#c5d6df;padding:3px 5px}.owned-roll-extra img,.owned-roll-extra .owned-perk-fallback{width:22px;height:22px;object-fit:contain}.owned-roll-extra small{display:block;font-size:11px;color:#8da9bb}.owned-other-effects{margin-top:10px;font-size:13px}.owned-other-effects p{margin:5px 0;color:#b7c8d1}.armory-weapon-sheet .armory-stat-list{margin:0;padding-top:2px}.armory-weapon-sheet .armory-stat-list>div{grid-template-columns:78px 1fr 26px;gap:7px;font-size:12px}
.armory-detail .owned-roll-heading h3{margin:0}.owned-perk-tip{max-height:260px;overflow:auto}
@media(max-width:760px){.armory-detail.is-weapon{width:min(590px,calc(100vw - 16px))}.armory-weapon-sheet{grid-template-columns:1fr;gap:18px}.owned-roll-columns{gap:7px}.owned-perk>img,.owned-perk-fallback{width:30px;height:30px}.armory-weapon-sheet .armory-stat-list>div{grid-template-columns:100px 1fr 30px;font-size:13px}.owned-roll-column h4{font-size:12px}}
@media(max-width:430px){.owned-roll-columns{grid-template-columns:repeat(3,minmax(0,1fr))}.owned-perk-name{font-size:12px}.owned-perk-tip{width:220px;left:0;transform:none}}
@media(max-width:430px){.owned-roll-column:nth-child(3n) .owned-perk-tip{left:auto;right:0;transform:none}}
.armory-equipped-panel{padding:7px 8px 8px;border-bottom:1px solid #8b805e;background:#202d35;flex:none}
.armory-equipped-panel h4{margin:0 0 5px;font-size:13px;color:#dfce97;font-weight:500;letter-spacing:.04em}
.armory-equipped-row{display:flex;align-items:center;gap:8px;margin-top:5px;min-width:0}.armory-equipped-label{font-size:12px;color:#b0bec7;min-width:50px}
.armory-equipped-icons{display:flex;gap:4px;flex-wrap:wrap;min-width:0}.armory-equipped-slot{line-height:0}.armory-equipped-slot .armory-item{width:min(var(--armory-icon-size),40px);height:min(var(--armory-icon-size),40px)}
.armory-equipped-slot.outside-filter{opacity:.35}.armory-equipped-empty{display:grid;place-items:center;width:min(var(--armory-icon-size),40px);height:min(var(--armory-icon-size),40px);border:1px dashed #5b6a71;color:#83959e;font-size:14px}
.armory-equipped-panel .helper-text{margin:6px 0 0;font-size:12px}.armory-carried-heading{margin:0;padding:6px 6px 1px;font-size:12px;letter-spacing:.04em;color:#c1cbd0}
@media(max-width:1500px){.armory-equipped-row{display:block}.armory-equipped-label{display:block;margin-bottom:4px}}
.armory-slot-empty{margin:0;color:#718792;font-size:13px;line-height:16px}.armory-column.vault-column{border-color:#776f56}
.armory-detail{width:min(590px,calc(100vw - 24px));max-height:90dvh;padding:1.5rem;background:#19252d;color:#e0e9ec;border:1px solid #9a8d66;overflow:auto}.armory-detail-top{display:flex;justify-content:space-between;gap:1rem}.armory-detail-top h2{font-size:1.65rem;margin:.3rem 0}.armory-detail-top .eyebrow{font-size:.8rem;margin:0;color:#cdbb85}.armory-detail-top p{color:#b9c8d0}.armory-detail-icon{width:64px;height:64px;float:left;margin:0 1rem .6rem 0;border:1px solid #a4aaac}.armory-detail-location{border-bottom:1px solid #46535c;padding-bottom:1rem;color:#d6c48c}.armory-stat-list{display:grid;gap:.45rem;margin:1rem 0}.armory-stat-list>div{display:grid;grid-template-columns:105px 1fr 36px;gap:.75rem;align-items:center;font-size:.875rem}.armory-stat-list span{text-transform:capitalize;color:#c2ced4}.armory-stat-list meter{width:100%;height:8px;appearance:none;background:#3b4f5b}.armory-stat-list meter::-webkit-meter-bar{background:#3b4f5b;border:0;border-radius:0}.armory-stat-list meter::-webkit-meter-optimum-value{background:#b3c9d8}.armory-stat-list strong{text-align:right}.armory-perks{display:flex;flex-wrap:wrap;gap:.45rem}.armory-perks .tag{white-space:normal;color:#a2b6c2;border-color:#405462}.armory-perks .active-perk{border-color:#7a9cac;color:#e4eff2;background:#293d47}.armory-detail h3{font-size:1rem;margin:1.2rem 0 .8rem}.armory-detail-links{margin:1.3rem 0}.armory-actions{border-top:1px solid #45545d;margin-top:1rem;padding-top:.2rem}.armory-actions>label{display:grid;gap:.4rem;margin-bottom:.8rem;font-size:.875rem}.armory-detail [role=status]{font-size:.95rem;color:#e4d19b}.armory-detail [role=status]:empty{display:none}.armory-detail [data-armory-reconnect]{font-size:.875rem}
@media(max-width:1000px){.armory-toolbar{margin-left:280px}.armory-density input[type=range]{width:64px}.armory-filter-row .armory-sort{display:none}.armory-filter-row{gap:8px}.armory-column-head{padding:6px}.armory-jumps{margin-left:0}.armory-jumps button{font-size:12px}}
@media(max-width:650px){body:has(#armory-root) main{padding:8px}body:has(#armory-root) .app-heading{min-height:56px;padding:10px 12px}body:has(#armory-root) .brand{font-size:18px}.armory-toolbar{margin:0 0 4px;min-height:28px}.armory-toolbar .helper-text{font-size:12px}.armory-location-row{gap:6px}.armory-location-options{gap:4px}.armory-location-options label{font-size:13px;padding:3px 6px;min-height:28px}.armory-shortcuts{gap:14px}.armory-filter-row .armory-search{min-width:100%;flex-basis:100%}.armory-density{margin-left:auto}.armory-filter-row label{font-size:13px}.armory-filter-row [data-armory-filter=kind]{width:95px}.armory-filter-row [data-armory-count]{display:none}.armory-extra-filters{gap:9px;font-size:13px}.armory-extra-filters select{width:105px}.armory-detail{padding:1rem}.armory-detail-top h2{font-size:1.3rem}.armory-detail-icon{width:52px;height:52px}}

/* Owned gear previews never write socket changes to Bungie. */
.owned-perk{font:inherit;cursor:pointer;width:100%;border-radius:0;letter-spacing:normal;text-transform:none}.owned-perk[aria-disabled=true]{cursor:help}.owned-perk .owned-perk-name{font-size:12px}.owned-preview-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #40515d;padding-top:14px;margin-top:16px}.owned-preview-controls strong{font-size:14px;color:#b9d9ec}.owned-preview-controls p{font-size:13px;color:#a7bac6;margin:4px 0}.owned-preview-controls button{font-size:13px}.owned-mod-preview{display:grid;gap:7px;margin-top:14px;font-size:14px;max-width:340px}.owned-mod-preview select{width:100%}.owned-mod-description{white-space:pre-line;font-size:13px;color:#b6c9d4;line-height:1.6;margin:8px 0}.owned-preview-note{font-size:12px;line-height:1.5}.armory-weapon-sheet .armory-stat-list>div{grid-template-columns:78px 1fr 52px}.armory-stat-list strong small{display:block;font-size:11px;line-height:1.2}.armory-stat-list .positive{color:#93dbb5}.armory-stat-list .negative{color:#edb09c}.armory-stat-list [data-owned-stat=mag] meter{opacity:.6}
@media(max-width:760px){.armory-weapon-sheet .armory-stat-list>div{grid-template-columns:100px 1fr 52px}}

/* Match the god-roll inspector: compact circular choices with hover details. */
.owned-roll-columns{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;margin:0 0 18px}
.owned-roll-column{flex:0 0 58px;width:58px}.owned-roll-column h4{min-height:32px;margin-bottom:8px;line-height:1.35}
.owned-roll-column>div{display:flex;flex-direction:column;align-items:center;gap:10px}
.owned-roll-columns .owned-perk{display:grid;place-items:center;position:relative;width:44px;height:44px;min-height:44px;padding:6px;border-radius:50%;border:1px solid #53606d;background:#17232b;overflow:visible;line-height:1}
.owned-roll-columns .owned-perk>img,.owned-roll-columns .owned-perk-fallback{width:30px;height:30px}
.owned-roll-columns .owned-perk.selected{background:#265679;border-color:#9bceef;box-shadow:0 0 0 1px #365f79;color:#edf6fc}
.owned-roll-columns .owned-perk.selected::after{content:"";position:absolute;right:-2px;bottom:0;width:7px;height:7px;border-radius:50%;background:#e9f3ff;border:2px solid #244257}
.owned-roll-columns .owned-perk.unselected{background:#1e282f;border-color:#46515a;color:#89969f}.owned-roll-columns .owned-perk.unselected>img{filter:grayscale(1);opacity:.45}
.owned-roll-columns .owned-perk:hover,.owned-roll-columns .owned-perk:focus-visible{border-color:#d5eafa;background:#324957}
.owned-roll .owned-roll-column .owned-perk-tip{position:fixed;top:var(--owned-tip-y,12px);left:var(--owned-tip-x,12px);right:auto;bottom:auto;transform:none;line-height:1.5;cursor:default;z-index:20}
@media(max-width:430px){.owned-roll-columns{gap:10px}.owned-roll-column{flex-basis:48px;width:48px}.owned-roll-columns .owned-perk{width:40px;height:40px;min-height:40px;padding:5px}.owned-roll-columns .owned-perk>img,.owned-roll-columns .owned-perk-fallback{width:28px;height:28px}}

.armory-item.pending{opacity:.65;outline:1px dashed #d2c18b;outline-offset:2px;cursor:progress}.armory-pending-mark{position:absolute;inset:0;display:grid;place-items:center;background:#111a2180;pointer-events:none}.armory-pending-mark::after{content:"";width:15px;height:15px;border:2px solid #dfd4ad;border-right-color:transparent;border-radius:50%;animation:armory-confirming .8s linear infinite}@keyframes armory-confirming{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.armory-pending-mark::after{animation:none;border-style:dashed}}

.armory-item-selection{display:flex;align-items:center;gap:18px;padding:8px 12px;margin:6px 0;background:#263d4b;border:1px solid #5c8195;font-size:14px}.armory-item-selection[hidden]{display:none}.armory-set-info{font-size:14px;color:#bed0da;border-bottom:1px solid #465762;padding-bottom:12px}.armory-set-info p{font-size:13px;line-height:1.6}

/* Item moves preserve each column’s independent position. */
.armory-column-items{overflow-anchor:none}
