:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;background:#0b1018;color:#ecf0f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit}.shell{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}.sidebar{background:#0d141e;border-right:1px solid #27303b;padding:27px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;margin:3px 8px 69px}.brand-symbol{font-size:32px;color:#e2b96f;width:36px}.brand strong{font-size:17px;letter-spacing:2px;font-weight:800}.brand small{display:block;color:#7e8a9b;font-size:9px;letter-spacing:2px;margin-top:4px}.navlabel,.eyebrow{font-size:10px;font-weight:800;color:#a1adb9;letter-spacing:2px}.navlabel{padding-left:13px;margin-bottom:14px;color:#6e7b8c}.nav{width:100%;background:none;border:0;color:#a1aebd;text-align:left;padding:13px 12px;border-radius:7px;font-size:14px;margin-bottom:4px;display:flex;align-items:center;gap:11px}.nav span{flex:1}.nav em{font-size:11px;font-style:normal;color:#aab8c6}.nav:hover,.nav.active{background:#253143;color:#f9d294}.nav.active{box-shadow:inset 2px 0 #dfb86f}.side-footer{display:flex;gap:11px;align-items:center;background:#141e2a;padding:13px;border-radius:8px;margin-top:auto;border:1px solid #293442}.side-footer strong{font-size:12px}.side-footer small{display:block;font-size:10px;color:#8190a1;margin-top:4px;line-height:1.4}.source-dot,.pip{width:7px;height:7px;background:#d9b16e;border-radius:100%;flex-shrink:0}.side-footer .source-dot{box-shadow:0 0 0 4px #d9b16e18}main{min-width:0;padding:0 43px;max-width:1600px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;padding:26px 0;border-bottom:1px solid #202c37}.crumb{font-weight:800;color:#8c9aab;letter-spacing:1.3px;font-size:10px}.crumb span{margin:0 10px;color:#405268}.toolbar{display:flex;align-items:center;gap:12px}.toolbar a{text-decoration:none}.connect,.subtle,.reset{border:1px solid #384657;background:#1a2635;color:#dbe4ed;border-radius:6px;font-size:12px;padding:10px 14px}.connect{background:#e2bd7a;color:#161b25;font-weight:800;border-color:#e2bd7a}.subtle:hover,.reset:hover{border-color:#cda761}.hero{padding:45px 0 36px}.hero .eyebrow{display:flex;align-items:center;gap:10px;color:#e0b674}.hero h1{font-size:clamp(34px,4vw,58px);letter-spacing:-2px;margin:11px 0 12px;line-height:1.1}.hero h1 span{color:#e2bd7a}.hero p{color:#9aa9b9;font-size:15px;max-width:650px;line-height:1.7;margin:0}.hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:23px}.hero-tags span{border:1px solid #334050;color:#aebac6;border-radius:4px;font-size:10px;font-weight:800;letter-spacing:1px;padding:8px 11px}.notice{border:1px solid #665135;background:#352b1d;color:#f2d3a1;padding:14px;border-radius:7px;margin-bottom:16px;font-size:13px;line-height:1.5}.notice.error{background:#3d2025;border-color:#713840;color:#ffb8bf}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 29px}.stat{border:1px solid #2d3846;background:linear-gradient(150deg,#182431,#111a25);border-radius:8px;padding:18px 20px}.stat>span{color:#9aa8b7;font-size:10px;font-weight:800;letter-spacing:1.2px}.stat strong{display:block;font-size:33px;line-height:1.5;font-weight:750;letter-spacing:-1px}.stat small{color:#718394;font-size:11px}.panel{background:#101925;border:1px solid #2b3644;border-radius:10px;overflow:hidden}.panel-heading{padding:26px 25px 18px;display:flex;justify-content:space-between;align-items:center}.panel-heading .eyebrow{color:#d8b474;font-size:9px}.panel h2{margin:7px 0 0;font-size:23px;letter-spacing:-.6px}.result-count{font-size:12px;color:#94a2b1}.searchbar{display:flex;gap:15px;padding:0 25px 18px;align-items:center}.search{display:flex;align-items:center;gap:8px;flex:1;background:#0c131e;border:1px solid #394658;border-radius:6px;padding:0 15px;color:#94a6ba}.search span{font-size:25px}.search input{background:transparent;border:0;outline:0;padding:14px 0;color:#f0f4f7;width:100%;font-size:13px}.search input::placeholder,input::placeholder{color:#64768b}.reset{background:transparent;border-color:#344152;color:#aebbc8}.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 25px 25px}.filters label{display:flex;flex-direction:column;gap:9px;min-width:0}.filters label>span{font-size:10px;color:#8fa0b1;font-weight:800;letter-spacing:1px}.filters input,.filters select,.table-meta select{background:#172332;color:#dce5ee;border:1px solid #354354;border-radius:5px;width:100%;padding:11px 12px;outline:0;font-size:12px}.filters input:focus,.filters select:focus,.search:focus-within{border-color:#d9b572}.table-meta{display:flex;justify-content:space-between;align-items:center;background:#0b131e;border-top:1px solid #2d3949;border-bottom:1px solid #2d3949;padding:13px 25px;color:#91a1b2;font-size:10px;font-weight:800;letter-spacing:1.2px}.table-meta select{width:auto;margin-left:10px;padding:7px;font-weight:500;letter-spacing:normal}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:18px}.weapon{border:1px solid #344151;border-radius:8px;background:#172331;color:inherit;text-align:left;padding:17px;width:100%;transition:border-color .15s,transform .15s}.weapon:hover{border-color:#dbb878;transform:translateY(-1px)}.weapon-head{display:flex;align-items:center;gap:12px;min-width:0}.weapon-icon,.weapon-placeholder{height:44px;width:44px;border-radius:5px;object-fit:cover;background:#2d3643;flex-shrink:0}.weapon-placeholder{display:grid;place-items:center;color:#d9b976;font-size:23px}.weapon-title{min-width:0;flex:1}.weapon-title strong{display:block;font-size:15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.weapon-title small{display:block;margin-top:5px;color:#91a1b2;font-size:11px}.rating{border:1px solid #475163;color:#a9b3bf;font-size:9px;font-weight:800;letter-spacing:.4px;border-radius:4px;padding:6px 8px;white-space:nowrap}.rating.positive{color:#92e1be;border-color:#366957;background:#1e4036}.rating.medium{color:#f2d295;border-color:#75603c;background:#433721}.rating.muted{color:#a8b5c3;background:#233142}.perk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}.perk{background:#101a26;border:1px solid #283648;border-radius:5px;padding:11px;min-width:0}.perk small{font-size:9px;color:#8092a5;font-weight:750;letter-spacing:1px;display:block;margin-bottom:7px}.perk span{font-size:12px;color:#e4e9ee;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.perk span.hit{color:#9fe6c1;font-weight:700}.weapon-foot{border-top:1px solid #2c3949;margin-top:15px;padding-top:13px;display:flex;justify-content:space-between;color:#8c9bac;font-size:10px;letter-spacing:.7px}.weapon-foot span:last-child{color:#e1b874}.empty{text-align:center;padding:40px;color:#d7e1ea}.empty p{color:#8c9bad;font-size:13px}footer{padding:25px 0 35px;color:#6c7c8c;font-size:11px;line-height:1.7}footer a{color:#aa9066}dialog{background:#111b28;color:#e7edf4;border:1px solid #445368;border-radius:12px;width:min(660px,calc(100% - 30px));max-height:85vh;padding:30px;box-shadow:0 30px 80px #000b}dialog::backdrop{background:#040911c9}dialog h2{font-size:30px;margin:10px 0}dialog h3{font-size:16px;margin:28px 0 12px}dialog p{color:#9daebf;line-height:1.6;font-size:13px}.detail-sub{margin:0 0 20px}.detail-grid{margin-top:8px}.close{position:absolute;right:18px;top:15px;background:none;color:#aab8c8;border:0;font-size:27px}.recrow{display:grid;grid-template-columns:90px 1fr;border-bottom:1px solid #2c3949;padding:11px 0;gap:14px;line-height:1.5;font-size:12px}.recrow strong{color:#dbba7b;font-size:10px;letter-spacing:1px}.recrow span{color:#d0dbe5}.tier{font-size:11px;color:#e6c37d}.footnote{font-size:11px!important;color:#788a9b!important}.hidden{display:none!important}@media(max-width:1150px){.cards{grid-template-columns:1fr}.weapon-title strong{font-size:14px}}@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:12px 20px}.brand{margin:0 0 12px}.sidebar .navlabel,.side-footer{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px}.nav{width:auto;flex-shrink:0;margin:0;padding:10px}.nav em{display:none}main{padding:0 18px}.stats{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.topbar{align-items:flex-start;gap:15px}.crumb{line-height:1.7}.toolbar{flex-direction:column;align-items:flex-end}.hero{padding:30px 0}.hero-tags span{font-size:9px}.stat{padding:13px}.stat strong{font-size:28px}.searchbar{flex-direction:column;align-items:stretch}.filters{grid-template-columns:1fr}.weapon-head{flex-wrap:wrap}.rating{margin-left:56px}.weapon{padding:12px}.cards{padding:10px}.panel-heading{padding:20px 15px}.searchbar,.filters{padding-left:15px;padding-right:15px}.perk span{font-size:11px}}
/* Vaultsmith 2: duplicate-first layout */
.duplicate-group{border:1px solid #3b4757;border-radius:9px;background:#111d2a;padding:17px;grid-column:1/-1}.group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px}.group-head h3{font-size:19px;margin:0 0 5px}.group-head p{color:#91a1b2;font-size:12px;margin:0}.group-rolls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px}.group-rolls .weapon{height:100%}.option-line{font-weight:400!important;color:#6d8b9c!important;margin-top:6px;letter-spacing:0!important}.slot-row{display:grid;grid-template-columns:140px 1fr;gap:15px;align-items:start;border-bottom:1px solid #2e3d4d;padding:14px 0}.slot-row>strong{font-size:12px;color:#c8d7e5}.option-tags{display:flex;gap:7px;flex-wrap:wrap}.option{display:inline-flex;background:#202f40;border:1px solid #45576b;padding:7px 9px;border-radius:5px;font-size:12px;color:#d9e3ee}.option.selected{border-color:#e2bb70;color:#ffdda0}.option.matched{border-color:#3c826f;background:#1c4339;color:#a7f0d2}.muted-text{font-size:11px;color:#8599a9;line-height:1.8}.insight{background:#192d39;border:1px solid #436577;padding:13px;border-radius:7px;color:#c7e5f3;font-size:13px}.compare-table{display:grid;grid-template-columns:105px minmax(0,1fr) 52px;gap:1px;background:#304052;border:1px solid #304052;font-size:11px}.compare-table>div{background:#152231;padding:10px;line-height:1.5;overflow-wrap:anywhere}.compare-table>div.current{background:#283a44}.compare-table>div.compare-header{color:#d8ba81;font-weight:800;font-size:10px;letter-spacing:.4px}.compare-table small{display:block;color:#8297a7;margin-top:5px}.aegis-disclosure{margin-top:28px;border:1px solid #3e4d60;border-radius:8px;padding:15px}.aegis-disclosure summary{cursor:pointer;font-weight:750;color:#e3c48b}.aegis-inspect{margin-top:15px}dialog{width:min(800px,calc(100% - 25px))}@media(max-width:550px){.slot-row{grid-template-columns:1fr;gap:9px}.group-rolls{grid-template-columns:1fr}.compare-table{grid-template-columns:85px minmax(0,1fr) 42px}}

/* Vaultsmith v3: in-game perk icon display and single-keeper comparisons */
.perk-row{display:flex;gap:9px;align-items:center;min-width:0}.perk-row>span:last-child{flex:1;min-width:0}.perk-icon{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border-radius:4px;background:#0c151f;border:1px solid #4a5c6f;overflow:hidden}.perk-icon img{width:100%;height:100%;object-fit:contain}.perk-icon .small-icon{width:100%;height:100%}.icon-fallback{color:#bca273;font-size:13px}.alternative-icons{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.alternative-icons .perk-icon{width:25px;height:25px}.option{align-items:center;gap:8px;min-height:40px}.option.selected .perk-icon{border-color:#f1cb7d}.compare-pair{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.compare-pair .perk-icon{width:24px;height:24px}.leading-copy{border-color:#44816a;box-shadow:inset 0 0 0 1px #44816a}.weapon-foot{gap:8px;line-height:1.6}.weapon-foot span:first-child{letter-spacing:0}.perk-row .perk-icon{display:inline-flex}.option .perk-icon{display:inline-flex}

/* Vaultsmith v4: visibility toggles, four perk slots and separate PvE/PvP grades */
.visibility-filters{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:0 25px 22px;color:#d7e1ec}.toggle-filter{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:650}.toggle-filter input{width:17px;height:17px;accent-color:#d9b572;cursor:pointer}.visibility-filters small{color:#889caf;font-size:11px}.perk-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.perk{padding:9px}.perk-row{gap:6px}.perk-row .perk-icon{width:28px;height:28px}.perk-row>span:last-child{font-size:11px}.grade-tags{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:12px}.grade-pill{font-weight:750;font-size:11px;padding:5px 9px;border-radius:5px;border:1px solid #516277;background:#142435;color:#aabed1}.grade-pill b{color:#edc982;font-size:15px;margin-left:5px}.grade-pill:nth-child(2) b{color:#9fcbeb}dialog .grade-tags{margin-bottom:15px}@media(max-width:1350px){.perk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.visibility-filters{padding:0 15px 18px}.perk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Vaultsmith v5 · compact four-column weapon cards. Text remains accessible via native tooltips. */
.group-rolls{grid-template-columns:repeat(auto-fit,minmax(min(100%,370px),1fr))}
.weapon{padding:14px;overflow:hidden}
.weapon-head{gap:10px}
.weapon-icon,.weapon-placeholder{width:40px;height:40px}
.weapon-title strong{font-size:14px}
.weapon-title small{font-size:10px}
.weapon-head .rating{font-size:8px;letter-spacing:0;padding:5px 6px}
.weapon .grade-tags{margin-top:10px}
.weapon .grade-pill{padding:4px 7px}
.weapon .perk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px}
.weapon .perk.compact-slot{padding:8px 5px;min-width:0;border-radius:6px;background:#101c29}
.weapon .compact-slot small{font-size:9px;letter-spacing:.25px;white-space:nowrap;text-align:center;margin:0 0 9px;color:#9fb2c6}
.weapon .slot-icons{display:flex;justify-content:center;align-content:start;align-items:center;gap:4px;flex-wrap:wrap;min-height:31px}
.weapon .slot-icons .perk-icon{width:27px;height:27px;box-sizing:border-box}
.weapon .slot-icons .slot-selected .perk-icon{border:2px solid #e1bd78;box-shadow:0 0 0 1px #403920}
.weapon .slot-icons .slot-alternative .perk-icon{width:24px;height:24px;border-color:#3b4e61;opacity:.83}
.weapon .slot-icons .perk-icon:hover{opacity:1;border-color:#d6be8e;transform:translateY(-1px)}
.weapon .slot-empty{color:#65778b;font-size:14px}
.weapon .weapon-foot{margin-top:12px;padding-top:10px;font-size:9px}
@media(max-width:1350px){.weapon .perk-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:550px){.weapon{padding:11px}.weapon .perk-grid{gap:4px}.weapon .perk.compact-slot{padding:7px 3px}.weapon .slot-icons .perk-icon{width:25px;height:25px}.weapon .slot-icons .slot-alternative .perk-icon{width:22px;height:22px}.weapon .compact-slot small{font-size:8px}}
/* Aegis comparison: separate source evidence from our inferred ranking. */
.aegis-pair-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.aegis-pair-panel{min-width:0;border:1px solid #354259;background:#141f2e;border-radius:12px;padding:14px}
.aegis-pair-label{font-size:11px;letter-spacing:.09em;color:#9fb8d6;font-weight:700;margin-bottom:10px}
.aegis-pair-perks,.confirmed-pair{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.aegis-pair-part{display:inline-flex;gap:6px;align-items:center;min-width:0}
.aegis-pair-part b{font-size:13px;overflow-wrap:anywhere}
.aegis-pair-plus{color:#d7b66e}
.aegis-status{display:inline-block;border:1px solid #566a74;color:#e1dbbc;padding:5px 10px;border-radius:20px;font-size:12px;font-weight:700}
.aegis-explicit{border-top:1px solid #354259;padding-top:10px;margin-top:10px}
.aegis-ranked{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;margin:8px 0}
.aegis-ranked>div{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:650px){.aegis-pair-grid{grid-template-columns:1fr}}

/* v7 dashboard comparison: four slots, best-available emphasis, Aegis at a glance */
.weapon .weapon-overview{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}
.weapon .weapon-overview .grade-tags{margin:0}
.weapon .pair-value{font-size:10px;color:#c3d1de;white-space:nowrap;background:#1b2b39;padding:5px 7px;border-radius:5px}
.weapon .slot-choice{position:relative;display:inline-flex;flex:none;padding:2px;border-radius:6px}
.weapon .slot-choice.best-choice{background:#3c3221;outline:2px solid #f0c571;outline-offset:-1px;box-shadow:0 0 10px #dfb56526}
.weapon .slot-choice.other-choice{opacity:.72}
.weapon .slot-choice.other-choice:hover{opacity:1}
.weapon .slot-choice .perk-icon{width:28px;height:28px}
.weapon .slot-choice.other-choice .perk-icon{width:24px;height:24px}
.weapon .aegis-rank{position:absolute;right:-4px;bottom:-5px;font-size:9px;line-height:14px;min-width:14px;height:14px;text-align:center;border-radius:4px;background:#253c54;border:1px solid #7bafda;color:#d3ebff;font-weight:800;font-style:normal;padding:0 2px}
.weapon .best-key{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:9px;letter-spacing:.1px;color:#92a5b6;margin-top:9px}
.weapon .key-dot{width:10px;height:10px;border-radius:3px;border:2px solid #f0c571;background:#3c3221}
.weapon .key-rank{margin-left:6px;font-weight:850;border:1px solid #7bafda;background:#253c54;color:#d3ebff;padding:0px 4px;border-radius:3px}
.weapon .dashboard-aegis{background:#101d2a;border:1px solid #31475c;border-radius:7px;padding:10px;margin-top:12px;text-align:left}
.weapon .dashboard-aegis-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.weapon .dashboard-aegis-head strong{font-size:9px;letter-spacing:.7px;color:#c8d7e8}
.weapon .dashboard-aegis-head>span{font-size:10px;color:#a6d9c2;overflow-wrap:anywhere;text-align:right}
.weapon .dashboard-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.weapon .dashboard-pair{padding:7px;border:1px solid #26394b;border-radius:6px;background:#152536;min-width:0}
.weapon .dashboard-pair small{font-size:9px;color:#a1b5c9;letter-spacing:.25px;display:block;margin-bottom:7px;white-space:nowrap}
.weapon .dashboard-pair>div{display:flex;gap:9px;align-items:center;min-height:34px}
.weapon .dashboard-pair-icon{position:relative;display:inline-flex;padding:2px;flex:none}
.weapon .dashboard-pair-icon .perk-icon{width:28px;height:28px}
.weapon .dashboard-pair em,.weapon .no-aegis em{font-style:normal;font-size:10px;color:#8397a9}
.weapon .no-aegis{display:flex;justify-content:space-between;gap:10px;color:#a0b4c4;font-size:10px}
.weapon .no-aegis>span{font-weight:800;letter-spacing:.7px}
.weapon .perk.compact-slot{padding:7px 3px}
.weapon .slot-icons{align-items:flex-start;gap:5px;min-height:37px}
.weapon .compact-slot small{margin-bottom:8px}
.weapon .weapon-foot{margin-top:11px;padding-top:9px}
@media(max-width:550px){.weapon .dashboard-pairs{gap:5px}.weapon .dashboard-pair{padding:5px}.weapon .dashboard-pair small{font-size:8px}.weapon .slot-icons{gap:3px}}

/* v8: recommendations live on each slot icon. No duplicate Aegis comparison panel. */
.weapon .aegis-star{position:absolute;right:-5px;top:-7px;z-index:1;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;font-size:12px;line-height:1;background:#254666;color:#ffda72;border:1px solid #c4a254;box-shadow:0 1px 4px #0009;pointer-events:none}
.weapon .key-star{font-size:13px;color:#ffda72;text-shadow:0 0 3px #bc8f2f;margin-left:8px}
.weapon .slot-choice{margin:3px 1px}
.weapon .best-key{margin-top:8px}

/* v9 badges and unclipped Aegis stars */
.weapon .slot-choice{margin:7px 5px 5px 3px;overflow:visible}
.weapon .slot-choice .aegis-star{top:-7px;right:-8px;z-index:4;overflow:visible}
.weapon .slot-icons,.weapon .perk-grid,.weapon .perk.compact-slot{overflow:visible}
.rarity-tags{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0 0}
.rarity-pill{display:inline-flex;align-items:center;border-radius:5px;padding:3px 7px;font-size:10px;font-weight:800;letter-spacing:.25px;margin-right:5px}
.holofoil-pill{border:1px solid #b49bf7;background:linear-gradient(100deg,#4a326d,#254a6b);color:#f0e3ff}
.assault-pill{border:1px solid #91d3bf;background:#19443d;color:#bbf7df}

.weapon .perk .slot-choice,.weapon .perk .slot-choice .aegis-star{overflow:visible;text-overflow:clip}
.weapon .perk .slot-choice{white-space:normal}

/* v10: evidence-backed pair indicators, with no outline around perk icons */
.weapon .slot-choice.best-choice,.weapon .slot-choice.verified-choice{outline:none!important;box-shadow:none!important;background:transparent!important}
.weapon .slot-choice{padding:2px 2px 9px;opacity:1!important}
.weapon .slot-choice.other-choice{opacity:.8!important}
.weapon .recommendation-underlines{position:absolute;bottom:1px;left:1px;right:1px;height:5px;display:flex;gap:2px;overflow:visible;justify-content:stretch}
.weapon .recommendation-underlines i{display:block;flex:1;height:4px;border-radius:3px}
.weapon .underline-damage{background:#e8ad61}.weapon .underline-pve{background:#65cbb0}.weapon .underline-pvp{background:#91aaff}
.weapon .line-key{width:13px;height:4px;border-radius:3px;display:inline-block;flex:none}
.weapon .line-key.damage{background:#e8ad61}.weapon .line-key.pve{background:#65cbb0}.weapon .line-key.pvp{background:#91aaff}
.weapon .unverified-note{color:#97a7b9;font-size:10px;margin-top:9px;font-style:italic}
.weapon .slot-choice .aegis-star{right:-7px;top:-9px}

/* v15: collector preferences and intrinsic frame picker */
.visibility-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px}
.visibility-filters .filter-divider{width:100%;height:1px;background:#26394b;margin:2px 0}
.visibility-filters .preference-heading{width:100%;font-size:10px;letter-spacing:.85px;color:#a1bacd}
.visibility-filters small{width:100%;line-height:1.5;color:#8198aa}
.filters label:has(#frameType){min-width:200px}

/* v17: five vertically stacked socket columns including origin traits */
.weapon .perk-grid,.detail-perk-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.weapon .slot-icons,.detail-perk-grid .slot-icons{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:8px;overflow:visible;min-height:30px;padding:7px 4px}
.weapon .perk.compact-slot,.detail-perk-grid .perk.compact-slot{min-width:0;overflow:visible;text-align:center}
.weapon .slot-choice,.detail-perk-grid .slot-choice{display:inline-flex;position:relative;flex:none;white-space:normal;overflow:visible}
.weapon .perk.compact-slot small,.detail-perk-grid .perk.compact-slot small{font-size:8px;letter-spacing:.35px;white-space:nowrap}
.godroll-pill{background:#473a1f;border:1px solid #e3bb66;color:#ffe0a3;display:inline-flex;align-items:center}
.detail-perk-grid{margin-top:15px;margin-bottom:20px}
.detail-perk-grid .slot-choice .perk-icon{height:31px;width:31px}
.detail-perk-grid .slot-choice .aegis-star{position:absolute;top:-9px;right:-8px;z-index:3;font-size:12px;color:#ffd876;background:#284259;border:1px solid #b99755;border-radius:50%;width:17px;height:17px;line-height:16px}
.detail-perk-grid .recommendation-underlines{display:flex;position:absolute;bottom:0;left:0;right:0;height:4px}
.detail-perk-grid .recommendation-underlines i{height:4px;flex:1}
.detail-perk-grid .underline-damage{background:#e8ad61}.detail-perk-grid .underline-pve{background:#65cbb0}.detail-perk-grid .underline-pvp{background:#91aaff}
@media(max-width:550px){.weapon .perk-grid,.detail-perk-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.weapon .perk.compact-slot,.detail-perk-grid .perk.compact-slot{padding:6px 1px}}

/* v18: compact masterwork type on weapon cards and inspection */
.masterwork-tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#c9d6e2;background:rgba(109,140,170,.13);border:1px solid rgba(157,183,211,.23);border-radius:6px;padding:3px 7px;white-space:nowrap;max-width:100%}
.masterwork-tag b{color:#e8f1fa;font-weight:600}
.masterwork-icon{width:16px;height:16px;object-fit:contain;flex:none}
.masterwork-complete{color:#d9ba67;font-weight:bold}
.weapon-overview{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.detail-masterwork{margin:8px 0 10px;display:flex}

/* v19: visual-forward five column icons + overall roll grade */
.weapon .slot-choice .perk-icon{width:39px!important;height:39px!important}
.detail-perk-grid .slot-choice .perk-icon{width:47px;height:47px}
.weapon .slot-icons,.detail-perk-grid .slot-icons{gap:12px;padding:11px 3px}
.weapon .perk-grid,.detail-perk-grid{gap:6px}
.weapon .slot-choice,.detail-perk-grid .slot-choice{padding:3px 3px 10px;overflow:visible}
.weapon .aegis-star,.detail-perk-grid .aegis-star{z-index:5}
.weapon .overall-pill,dialog .overall-pill{background:#2d342e;border-color:#ac975c;color:#f5e5bf}
.weapon .overall-pill b,dialog .overall-pill b{color:#ffe19d}
@media(max-width:550px){.weapon .slot-choice .perk-icon{width:34px!important;height:34px!important}.detail-perk-grid .slot-choice .perk-icon{width:39px;height:39px}}

/* Gear tier is an optional collector preference, not a weapon perk grade. */
.tier-pill{background:#2b3846;border-color:#7fadc5;color:#c5e9f7}

/* v22.0.4: readable fallback when a Bungie perk definition has no icon. */
.perk-icon .named-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:1px;font-size:10px;line-height:1;font-weight:800;letter-spacing:-.3px;color:#e6d4a1;text-shadow:none;background:#263746;border-radius:3px}
.detail-perk-grid .perk-icon .named-fallback{font-size:12px}

/* v22.0.5 keeper category selector */
.ranking-category{display:flex;flex-direction:column;gap:6px;min-width:180px;max-width:290px;padding:6px 0}
.ranking-category>span{font-size:10px;font-weight:800;letter-spacing:.7px;color:#a6b6c8}
.ranking-category select{min-height:36px;width:100%;background:#172432;color:#e6eff9;border:1px solid #405166;border-radius:7px;padding:7px 10px}

/* v25: masterwork shares the grade row without verbose labeling. */
.weapon .weapon-overview{display:flex;align-items:center;flex-wrap:nowrap;justify-content:flex-start;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:thin}
.weapon .weapon-overview .grade-tags{display:flex;flex-wrap:nowrap;gap:4px;flex:none;margin:0}
.weapon .weapon-overview .grade-pill{font-size:10px;padding:4px 5px;white-space:nowrap}
.weapon .weapon-overview .grade-pill b{font-size:13px;margin-left:2px}
.weapon .weapon-overview .masterwork-tag{flex:none;white-space:nowrap;font-size:11px;padding:3px 5px;gap:4px}
.masterwork-tag.is-complete{border-color:rgba(232,197,126,.48)}
.masterwork-symbol{color:#d9ba67;font-size:13px}

/* v26: the Masterwork is equipment metadata, not a performance grade. */
.weapon .weapon-overview{overflow-x:visible;scrollbar-width:auto}
.weapon-metadata,.detail-sub{line-height:1.65}
.meta-separator{padding:0 3px;color:#63758a}
.masterwork-meta{display:inline-flex;vertical-align:middle;align-items:center;gap:4px;white-space:nowrap;color:#a8bacb;font-size:inherit;font-weight:500;border:0;background:none;padding:0;margin:0;max-width:100%}
.masterwork-meta .masterwork-icon{width:14px;height:14px;object-fit:contain}
.masterwork-meta .masterwork-complete{color:#e0ba66;font-size:11px}
.masterwork-meta.is-complete{color:#d7c38f}
.weapon-title small.weapon-metadata{white-space:normal;overflow:visible;text-overflow:clip}

/* v29: place the informational page above the account tile, without losing the workspace nav. */
.weighting-nav{margin-top:auto;margin-bottom:12px}
.sidebar .side-footer{margin-top:0}
.weighting-view{padding:40px 0 36px}
.weighting-view h1{font-size:clamp(30px,4vw,48px);letter-spacing:-1.5px;margin:12px 0}
.weighting-lead{color:#aabaca;font-size:15px;line-height:1.65;max-width:850px;margin:0 0 25px}
.weighting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.weighting-card{border:1px solid #304155;background:linear-gradient(145deg,#162435,#101925);border-radius:12px;padding:24px;min-width:0}
.weighting-card>small{font-size:10px;letter-spacing:1.4px;color:#dbb979;font-weight:800}
.weighting-card h2{font-size:20px;margin:10px 0 13px}
.weighting-card p{font-size:13px;line-height:1.7;color:#b2c1d0}
.weighting-card strong{color:#e5ebf3}
.weighting-card table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.4;margin:14px 0;color:#c2d0de}
.weighting-card th{text-align:left;color:#ecce91;background:#24354a;font-weight:700}
.weighting-card td,.weighting-card th{padding:9px 7px;border-bottom:1px solid #304054}
.weighting-card td:last-child{white-space:nowrap}
.weighting-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}
.weighting-numbers div{padding:12px;text-align:center;background:#223448;border-radius:8px}
.weighting-numbers b{font-size:22px;color:#edc882;display:block}
.weighting-numbers span{font-size:11px;color:#b5c6d6}
.formula-highlight{padding:13px;background:#1d3041;border-left:3px solid #e2bd7a;font-size:14px;line-height:1.6}
.weighting-code{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.6;font-size:12px;padding:12px;border:1px solid #3b4e61;background:#0c1825;color:#d5e7f2;border-radius:7px}
.source-bar{display:grid;grid-template-columns:5fr 3fr 2fr;overflow:hidden;border-radius:6px;font-size:10px;font-weight:750;text-align:center;margin:14px 0}
.source-bar span{padding:10px 3px;background:#7c653e}.source-bar span:nth-child(2){background:#355b78}.source-bar span:nth-child(3){background:#27685e}
@media(max-width:1050px){.weighting-grid{grid-template-columns:1fr}}
@media(max-width:850px){.weighting-nav{margin-top:12px}.sidebar .side-footer{display:flex;margin-top:0}.weighting-view{padding-top:25px}}

/* Expert Priority context in Weighting System */
.weighting-mode-summary{border:1px solid rgba(120,171,215,.35);background:rgba(50,84,120,.12);padding:16px 20px;border-radius:12px;margin:16px 0 20px}
.weighting-mode-summary strong{font-size:1rem}.weighting-mode-summary p{color:var(--muted,#a8b3c3);margin:6px 0 0}
.weighting-card.weighting-inactive{opacity:.52}

/* v30.0.2: Unified Grade Awards in Inspection */
.inspection-awards{margin:18px 0 22px;padding:18px;border:1px solid #344b62;border-radius:14px;background:linear-gradient(145deg,#172738,#101a28)}
.inspection-awards h3{margin:0 0 15px;color:#e9d3ab;font-size:16px;letter-spacing:.2px}
.award-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.award-tile{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:2px;border:1px solid #526072;border-radius:12px;padding:12px 7px 10px;min-width:0;background:linear-gradient(160deg,#233347,#111d2b);color:#94a8ba;box-shadow:inset 0 1px rgba(255,255,255,.04)}
.award-tile .award-art{height:67px;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 3px 5px #0005)}
.award-emblem{width:64px;height:64px}
.award-label{font-size:11px;color:#becfe0;font-weight:700;letter-spacing:.5px}
.award-grade{font-size:27px;line-height:1.2;color:currentColor}
.award-caption{font-size:9px;letter-spacing:.6px;text-transform:uppercase;color:#dec995;margin-top:2px}
.award-primary{border-width:2px;box-shadow:inset 0 1px rgba(255,255,255,.15),0 4px 18px #0003}
.award-s{color:#f2d18b;border-color:#dfbd70;background:radial-gradient(circle at 50% 15%,#65532e,#27364b 58%,#132132)}
.award-aplus{color:#e8c6a0;border-color:#bd916e;background:radial-gradient(circle at 50% 15%,#534333,#253548 60%,#132132)}
.award-a{color:#aecbea;border-color:#6799c4;background:linear-gradient(160deg,#2a435b,#15263a)}
.award-b{color:#8ac6b5;border-color:#517d75;background:linear-gradient(160deg,#253f40,#13252b)}
.award-c{color:#adadba;border-color:#586a79}
.award-d,.award-na{color:#7f8999;border-color:#3b4c5e;background:linear-gradient(160deg,#1c2937,#101a26)}
.inspection-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.inspection-status>span{font-size:12px;color:#aebed0}
@media(max-width:600px){.award-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inspection-awards{padding:12px}}

/* Issue #3: D2 Vaultsmith identity. Original science-fiction artwork, not Bungie branding. */
.brand{display:block;margin:0 0 46px;padding:0 7px;text-decoration:none;line-height:0}
.brand-logo{display:block;width:100%;max-width:210px;height:auto;filter:drop-shadow(0 3px 12px rgba(219,177,96,.12))}
.hero-logo-title{margin:0 0 9px!important;font-size:inherit!important;line-height:1!important;letter-spacing:normal!important}
.page-logo{display:block;width:min(100%,520px);height:auto;filter:drop-shadow(0 5px 20px rgba(211,172,96,.12))}
.hero .hero-tagline{font-size:clamp(20px,2.6vw,29px);font-weight:750;letter-spacing:-.7px;color:#f0f3f5;margin:8px 0 12px;line-height:1.3}
.hero-tagline span{color:#e2bd7a}
.weighting-page-logo{display:block;width:min(100%,340px);height:auto;margin:12px 0 6px;filter:drop-shadow(0 3px 16px rgba(211,172,96,.1))}
@media(max-width:850px){.brand{width:210px;margin:0 0 12px;padding:0}.brand-logo{max-width:210px}.hero-logo-title{margin-bottom:8px!important}}

/* Issue #23: Best in Class is an independent owned-weapon comparison view. */
.best-in-class-view{padding:24px 28px 44px;max-width:1500px;margin:0 auto}
.best-in-class-view h1{font-size:clamp(1.7rem,3vw,2.5rem);margin:8px 0 12px}
.best-intro,.best-method{max-width:900px;color:var(--muted,#99a8bb);line-height:1.6}
.best-method{font-size:.85rem;margin-top:25px}
.best-toolbar{display:flex;gap:20px;align-items:end;justify-content:space-between;flex-wrap:wrap;padding:16px 0 22px}
.best-toolbar label{font-size:.78rem;font-weight:700;letter-spacing:.08em;display:flex;gap:9px;flex-direction:column}
.best-toolbar select{min-width:min(340px,80vw);max-width:100%;padding:12px;border-radius:8px}
.best-class-groups{display:grid;gap:26px}
.best-class-section{border:1px solid rgba(180,198,225,.18);border-radius:14px;padding:16px;min-width:0}
.best-class-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:9px 18px;margin-bottom:15px}
.best-class-heading h2{margin:0;font-size:1.35rem}
.best-class-heading span,.best-source-tier{font-size:.8rem;color:var(--muted,#a8b4c8)}
.best-class-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.best-model{min-width:0}
.best-model-heading{display:flex;flex-wrap:wrap;gap:5px 12px;align-items:baseline;margin-bottom:8px}
.best-model-heading strong{font-size:.85rem}
.best-model .weapon{width:100%;height:100%;min-width:0}
.best-model:first-child{border-left:3px solid #85d8c5;padding-left:10px}
.best-empty{padding:28px;text-align:center}
@media(max-width:640px){.best-in-class-view{padding:18px 12px 35px}.best-class-section{padding:12px}}

/* Best in Class: Aegis-only perk evidence, independent of keeper cards. */
.best-aegis-weapon{display:block;text-align:left;width:100%}
.best-aegis-weapon .best-class-score{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:12px 0}
.best-aegis-traits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.best-aegis-trait{display:flex;flex-direction:column;gap:4px;min-width:0}
.best-aegis-trait>span,.best-aegis-trait small{color:var(--muted,#a8b4c8);font-size:.75rem}
.best-aegis-trait strong{display:flex;gap:6px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere;font-size:.9rem}
@media(max-width:430px){.best-aegis-traits{grid-template-columns:1fr}}

/* Exactly four cards across at desktop widths; keep cards usable on narrow displays. */
@media(max-width:1150px){.best-class-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.best-class-cards{grid-template-columns:minmax(0,1fr)}}

/* Best in Class uses intrinsic content heights. The old min-height:0 and
   flex-shrink:1 allowed a card's multi-row perk grid to outgrow its wrapper,
   so a section border could cut across the card footer. */
.best-class-groups{display:block}
.best-class-groups>.best-class-section{display:flow-root;height:auto;margin-bottom:26px}
.best-class-cards{align-items:stretch;grid-auto-rows:max-content}
.best-class-cards>.best-model{
 display:grid;grid-template-rows:42px minmax(max-content,1fr);
 align-self:stretch;min-width:0;min-height:max-content
}
.best-class-cards .best-model-heading{
 display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
 flex-wrap:nowrap;gap:4px;min-height:0;margin:0;padding-bottom:9px
}
.best-class-cards .best-model-heading strong,
.best-class-cards .best-model-heading .best-source-tier{
 display:block;width:100%;min-width:0;white-space:nowrap;
 overflow:hidden;text-overflow:ellipsis;line-height:1.35
}
.best-class-cards .best-model .weapon{
 display:block;height:auto;min-height:max-content;
 width:100%;align-self:stretch;flex:none
}
.best-class-groups>.best-class-section:last-child{margin-bottom:0}

/* Issue #43: keep every standard weapon card top-aligned, regardless of badges
   or the number of selectable perks in any of its five columns.
   The reserved distinctions row prevents badge-less cards from shifting their
   grade row and perks upward relative to their neighbors. */
.weapon{
 display:grid;
 grid-template-rows:minmax(58px,auto) minmax(27px,auto) minmax(36px,auto) auto auto auto;
 align-content:start;
 align-items:start;
}
.weapon>.weapon-head{grid-row:1;align-self:start}
.weapon>.rarity-tags{
 grid-row:2;
 display:flex;align-items:flex-start;align-content:flex-start;
 min-height:27px;margin:0;padding-top:7px;
 gap:5px;flex-wrap:wrap;
}
.weapon>.rarity-tags-empty{visibility:hidden}
.weapon>.weapon-overview{grid-row:3;align-self:start;min-width:0}
.weapon>.perk-grid{
 grid-row:4;
 align-self:start;align-items:stretch;
 grid-auto-rows:minmax(0,auto);
 min-width:0;
}
.weapon>.perk-grid>.perk.compact-slot{
 align-self:stretch;
 display:flex;flex-direction:column;
 justify-content:flex-start;align-items:stretch;
 min-height:0;
}
.weapon>.perk-grid>.perk.compact-slot>.slot-icons{
 display:flex;flex-direction:column;flex-wrap:nowrap;
 align-items:center;justify-content:flex-start;
 align-content:flex-start;
 flex:0 0 auto;
}
.weapon>.best-key{grid-row:5;align-self:start}
.weapon>.weapon-foot{grid-row:6;align-self:start}

/* Best in Class previously forced display:block with a more specific selector. */
.best-class-cards .best-model .weapon{display:grid;align-content:start;align-items:start}

/* Issue #36: three deliberate filter rows instead of the older auto-flow grid.
   Weapon/Frame, Slot/Energy, then Perk A/Perk B/Logic. */
.filters{display:flex;flex-direction:column;gap:14px}
.filters .filter-row{display:grid;gap:14px;min-width:0}
.filters .filter-row-weapon,
.filters .filter-row-element{grid-template-columns:repeat(2,minmax(0,1fr))}
.filters .filter-row-perks{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:850px){
 .filters .filter-row-perks{grid-template-columns:repeat(2,minmax(0,1fr))}
 .filters .filter-row-perks label:last-child{grid-column:1/-1}
}
@media(max-width:550px){
 .filters .filter-row-weapon,
 .filters .filter-row-element,
 .filters .filter-row-perks{grid-template-columns:minmax(0,1fr)}
 .filters .filter-row-perks label:last-child{grid-column:auto}
}

/* Issue #46: the card's metadata follows the same intrinsic frame naming as the
   Frame Type dropdown, with Bungie's elemental damage icon at the front. */
.weapon-title small.weapon-metadata{
 display:flex;flex-wrap:wrap;align-items:center;
 justify-content:flex-start;column-gap:3px;row-gap:2px;
 white-space:normal;overflow:visible;text-overflow:clip;
}
.weapon-metadata .weapon-energy{
 display:inline-flex;align-items:center;justify-content:center;
 flex:none;vertical-align:middle;border-radius:50%;
 width:15px;height:15px;background:#26374a;color:#d6e6f5;
}
.weapon-metadata .energy-type-icon{display:block;width:15px;height:15px;object-fit:contain}
.weapon-metadata .energy-icon-fallback{font-size:10px;font-weight:900;line-height:15px;text-align:center}
.weapon-metadata .energy-arc{background:#214974;color:#8fcaff}
.weapon-metadata .energy-solar{background:#6b391d;color:#ffc081}
.weapon-metadata .energy-void{background:#513777;color:#d3b9ff}
.weapon-metadata .energy-stasis{background:#244977;color:#a6d8ff}
.weapon-metadata .energy-strand{background:#255642;color:#91edbd}
.weapon-metadata .energy-kinetic{background:#4c5560;color:#eff2f4}
.weapon-metadata .meta-separator{padding:0 2px;color:#63758a}

/* Masterwork stat identity remains visible in compact card metadata, without
   the former masterworked-completion checkmark. */
.weapon-metadata .card-masterwork{display:inline-flex;align-items:center;gap:4px;min-width:0}
.weapon-metadata .card-masterwork-icon{display:inline-block;width:14px;height:14px;object-fit:contain;flex:none}
.weapon-metadata .card-masterwork-fallback{font-size:13px;line-height:14px;color:#d9ba67;text-align:center}

/* Inspection has its own metadata container; card-only icon rules do not apply
   here. Keep the original weapon artwork visible beside the inspection heading
   and constrain Bungie's energy/masterwork art to the same compact size. */
#detailBody .inspection-identity{
 display:flex;align-items:flex-start;gap:16px;min-width:0;margin:8px 0 20px;
}
#detailBody .inspection-weapon-icon{
 display:block;flex:0 0 76px;width:76px;height:76px;max-width:76px;
 object-fit:cover;border-radius:8px;background:#2d3643;
}
#detailBody .inspection-weapon-placeholder{
 display:grid;place-items:center;color:#d9b976;font-size:32px;
}
#detailBody .inspection-identity-text{flex:1;min-width:0}
#detailBody .inspection-identity-text h2{margin:0 0 6px;overflow-wrap:anywhere}
#detailBody .inspection-identity-text .detail-sub{
 display:flex;align-items:center;justify-content:flex-start;
 flex-wrap:wrap;gap:3px;margin:0;min-width:0;
}
#detailBody .detail-sub .weapon-energy{
 display:inline-flex;align-items:center;justify-content:center;
 width:16px;height:16px;max-width:16px;max-height:16px;
 flex:0 0 16px;border-radius:50%;
 background:#26374a;color:#d6e6f5;
}
#detailBody .detail-sub .energy-type-icon{
 display:block;width:16px;height:16px;max-width:16px;max-height:16px;
 object-fit:contain;flex:none;
}
#detailBody .detail-sub .energy-icon-fallback{
 font-size:10px;line-height:16px;font-weight:900;text-align:center;
}
#detailBody .detail-sub .card-masterwork{
 display:inline-flex;align-items:center;gap:4px;min-width:0;
}
#detailBody .detail-sub .card-masterwork-icon{
 display:inline-block;width:15px;height:15px;max-width:15px;max-height:15px;
 object-fit:contain;flex:none;
}
#detailBody .detail-sub .card-masterwork-fallback{
 color:#d9ba67;font-size:13px;line-height:15px;text-align:center;
}
@media(max-width:450px){
 #detailBody .inspection-identity{gap:10px}
 #detailBody .inspection-weapon-icon{
  width:56px;height:56px;max-width:56px;flex-basis:56px
 }
 #detailBody .inspection-identity-text h2{font-size:22px}
}

/* Issue #50: DIM Sync is an opt-in annotation service, not a Bungie item action. */
.dim-connection{margin:8px 12px 10px;display:flex;flex-direction:column;gap:5px}
.dim-connection button{padding:9px 10px;width:100%;background:#23384b;color:#e3edf6;border:1px solid #506c83;border-radius:7px;font-size:12px;font-weight:700;cursor:pointer}
.dim-connection button:hover:not(:disabled){background:#31516b;border-color:#d3b77d}
.dim-connection button:disabled{cursor:not-allowed;opacity:.5}
.dim-connection small{display:block;color:#a9bccd;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.dim-inspection-tag{margin:17px 0;padding:13px 16px;border:1px solid #344d63;border-radius:9px;background:#162737}
.dim-inspection-tag h3{margin:0 0 11px;font-size:14px}
.dim-inspection-tag button{background:#59452d;border:1px solid #c39b63;color:#fff2da;border-radius:6px;padding:9px 13px;cursor:pointer}
.dim-inspection-tag button:hover:not(:disabled){background:#765735}
.dim-inspection-tag button:disabled{opacity:.5;cursor:not-allowed}
.dim-inspection-tag .dim-tag-note{display:block;font-size:11px;color:#bacbdd;margin:9px 0 0;line-height:1.5}

.rarity-pill.dim-junk-pill{background:#553624;border:1px solid #c48d61;color:#ffe2bc}

/* Issue #65: source-listed perks keep gold borders independently of role winner underlines and Aegis #1 stars. */
.weapon .slot-choice.evidence-recommended .perk-icon,
.detail-perk-grid .slot-choice.evidence-recommended .perk-icon,
.weapon .slot-choice.other-choice.evidence-recommended .perk-icon{
 border:2px solid #edc36e;
 box-shadow:0 0 0 1px #66502b,0 0 8px rgba(237,195,110,.22);
 opacity:1;
}

/* Issue #68: two deliberate legend rows, with each symbol attached to its label. */
.weapon .best-key{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.weapon .best-key-row{display:flex;align-items:center;flex-wrap:wrap;column-gap:12px;row-gap:5px;width:100%}
.weapon .best-key-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.weapon .best-key-item .key-dot,.weapon .best-key-item .line-key{flex:none}

/* Issue #71: consistent gameplay role chip on cards and in both inspection views. */
.gameplay-role-tag{display:inline-flex;align-items:center;padding:3px 8px;border-radius:6px;border:1px solid #496782;background:#1c3145;color:#d9e9f5;font-size:10px;font-weight:700;letter-spacing:.15px}
.weapon-foot .gameplay-role-tag{font-size:10px}
.detail-gameplay-role{margin-top:7px;display:flex;flex-wrap:wrap}
