.gs-heading{height:auto;min-height:0;padding:0;background:transparent;border:0;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:10px}.gs-heading h1{font-size:36px;margin:8px 0}.gs-notice:empty{display:none}.gs-notice{padding:14px 18px;background:#243020;border:1px solid var(--border);border-radius:8px;font-size:13px}.gs-tabs{display:flex;gap:10px;margin:24px 0}.gs-tabs .active,.gs-quest-list .active{border-color:var(--accent);background:#2b3826;color:var(--accent)}.gs-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}.gs-controls{padding:22px;background:var(--panel);border:1px solid var(--border);border-radius:12px;display:grid;gap:17px;position:sticky;top:18px}.gs-controls label{display:grid;gap:8px;font-size:12px;color:var(--muted)}.gs-controls input,.gs-controls select{width:100%;min-width:0;max-width:100%;font-size:12px}.gs-controls .eyebrow{font-size:10px}.gs-optimizers,.gs-save{display:grid;gap:12px;border-top:1px solid var(--border);padding-top:20px}.gs-controls button{text-align:left;font-size:12px}.gs-controls small{line-height:1.7}.gs-hero{border:1px solid var(--border);border-radius:12px;padding:26px;background:radial-gradient(ellipse at 70% 15%,#33422c 0%,#1c251c 50%,#171d17 100%)}.gs-hero h2{font-size:24px;margin:10px 0}.gs-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:8px;overflow:hidden;margin:22px 0 16px}.gs-metrics>div{padding:16px;background:#1b241b}.gs-metrics span{display:block;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.gs-metrics strong{display:block;font-size:25px;margin-top:8px;color:var(--accent)}.gs-validity{padding:14px;background:#273820;border-radius:6px;font-size:12px}.gs-incomplete{background:#382d1b;color:#e8c382}.gs-validity li{margin:7px 0}.gs-quest-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px}.gs-quest-list{display:flex;flex-direction:column;gap:7px;max-height:80vh;overflow:auto;padding:15px;background:var(--panel);border:1px solid var(--border);border-radius:10px}.gs-quest-list h2{font-size:17px}.gs-quest-list button{text-align:left;font-size:12px}.gs-quest-list small{display:block;color:var(--muted);margin-top:6px;font-size:10px}.gs-quest-details{padding:25px;background:var(--panel);border:1px solid var(--border);border-radius:12px}.gs-quest-details h2{margin-top:0}.gs-quest-details>a{display:block;margin:18px 0;font-size:12px}.gs-quest-details li,.gs-wiki-notes p{font-size:13px;line-height:1.65;margin:9px 0}.gs-wiki-notes{background:#273020;padding:10px 18px;border-radius:8px}.gs-recipe{margin-top:20px;padding-top:10px;border-top:1px solid var(--border)}.gs-recipe-part{display:flex;gap:15px;align-items:center;margin:10px 0;padding:8px;background:#151d16;border-radius:6px;font-size:13px}.gs-recipe-part img{width:58px;height:48px;object-fit:contain}.gs-recipe-part select{max-width:calc(100% - 75px);font-size:12px}.gs-quest-check{margin-top:18px;padding:14px;border:1px solid var(--border);border-radius:8px}.gs-quest-check summary{cursor:pointer;font-size:13px}.gs-quest-check p{margin:8px 0}.gs-preset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:20px}.gs-preset{padding:22px;background:var(--panel);border:1px solid var(--border);border-radius:12px}.gs-preset>img{width:100%;height:140px;object-fit:contain}.gs-preset h2{font-size:20px}.gs-preset button{margin:8px 8px 0 0}.gs-empty{padding:30px;background:var(--panel);border:1px dashed var(--border);border-radius:10px;color:var(--muted)}.gs-source{margin-top:24px}.gs-hero>.hint{line-height:1.7;font-size:11px}#gunsmithPage button:disabled{opacity:.45;cursor:wait}@media(min-width:1500px){.gs-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1000px){.gs-layout{grid-template-columns:230px minmax(0,1fr)}.gs-quest-layout{grid-template-columns:210px minmax(0,1fr)}.gs-hero{padding:18px}.gs-controls{padding:15px}}@media(max-width:760px){.gs-layout,.gs-quest-layout{grid-template-columns:minmax(0,1fr)}.gs-controls{position:static}.gs-quest-list{max-height:240px}.gs-tabs{flex-wrap:wrap}.gs-heading{height:auto;min-height:0;padding:0;background:transparent;border:0;align-items:start}.gs-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.gs-heading h1{font-size:28px}}



@media(min-width:761px){.gs-controls{max-height:calc(100vh - 36px);overflow-y:auto;overscroll-behavior:contain}}



/* Hover card and part list share one floating layer. */
.gs-floating{position:absolute;z-index:60;overflow:auto;min-width:200px;max-width:300px;padding:10px 12px;
  border:1px solid var(--border);border-radius:7px;background:#0f140c;box-shadow:0 10px 26px #0009}
.gs-tip{position:absolute;pointer-events:none;z-index:860}
.gs-part-card-head{display:flex;align-items:center;gap:9px;margin-bottom:7px}
.gs-part-card-head img{width:42px;height:42px;object-fit:contain;flex:none}
.gs-part-card-head strong{font-size:12.5px;line-height:1.25}
.gs-part-facts{display:grid;grid-template-columns:auto auto;gap:2px 12px;margin:0;font-size:11.5px}
.gs-part-facts dt{color:var(--muted)}.gs-part-facts dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.gs-part-delta{margin:8px 0 0;font-size:11.5px;color:#cfe3b4}

/* The part strip under the preview jumps to the slot it belongs to. */



/* Live difference beside each figure while a replacement is being considered. */
.gs-delta{display:block;min-height:1em;font-size:11px;font-variant-numeric:tabular-nums;color:transparent}
.gs-delta.good{color:#9fd67a}
.gs-delta.bad{color:#e08b7a}

/* Where a part would be bought, shown on its hover card. */
.gs-part-price{margin:7px 0 0;font-size:11.5px;font-variant-numeric:tabular-nums;color:#e7d9a8}
.gs-part-price.hint{color:var(--muted)}



/* Gear and weapons: the two halves of a kit, each a tall column over its own picture. */
.gs-hub{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.gs-hub-card{position:relative;display:block;min-height:min(74vh,680px);padding:0;overflow:hidden;
  border:1px solid var(--border);border-radius:12px;background:#0f140c;color:var(--text);
  font:inherit;text-align:left;cursor:pointer}
.gs-hub-card.pending{cursor:default}
.gs-hub-art{position:absolute;inset:0;background-size:contain;background-repeat:no-repeat;background-position:center 34%;
  opacity:.5;filter:saturate(.75) contrast(1.05);transition:transform .35s ease,opacity .35s ease}
.gs-hub-card::after{content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,#0a0e0733 0%,#0a0e07cc 58%,#0a0e07f2 100%)}
.gs-hub-body{position:relative;z-index:1;display:flex;flex-direction:column;gap:9px;
  height:100%;box-sizing:border-box;padding:22px;justify-content:flex-end}
.gs-hub-body strong{font-size:34px;line-height:1.05;letter-spacing:.01em}
.gs-hub-blurb{max-width:46ch;font-size:13px;line-height:1.6;color:#cfd8c4}
.gs-hub-go{margin-top:4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.gs-hub-card.pending .gs-hub-go{color:var(--muted)}
button.gs-hub-card:hover .gs-hub-art,button.gs-hub-card:focus-visible .gs-hub-art{transform:scale(1.04);opacity:.62}
button.gs-hub-card:hover,button.gs-hub-card:focus-visible{border-color:#cfe3b4;outline:none}
.gs-back{margin:14px 0 0}
/* The gear column shows a vest and a helmet rather than one flat picture. */
.gs-hub-art-second{background-size:34%;background-position:78% 16%}
.gs-hub-card:has(.gs-hub-art-second) .gs-hub-art:first-of-type{background-size:60%;background-position:38% 38%}
@media(max-width:860px){.gs-hub{grid-template-columns:1fr}.gs-hub-card{min-height:360px}.gs-hub-body strong{font-size:26px}}

/* Gear page: pick a purpose, get a whole set with its numbers and its gaps. */
.gear-page{margin:18px 0}
.gear-page h2{margin:0 0 6px}
.gear-intro{max-width:74ch;margin:0 0 16px;color:var(--muted);line-height:1.6}
.gear-goals{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
.gear-goal{display:flex;flex-direction:column;gap:4px;padding:13px 14px;border:1px solid var(--border);
  border-radius:9px;background:#101710;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.gear-goal strong{font-size:14px}
.gear-goal small{color:var(--muted);line-height:1.4}
.gear-goal:hover,.gear-goal:focus-visible{border-color:#cfe3b4;outline:none}
.gear-goal.active{border-color:var(--accent);background:#1b2415}
.gear-goal.active strong{color:var(--accent)}
.gear-note{max-width:78ch;margin:0 0 12px;font-size:13px;line-height:1.65;color:#cfd8c4}
.gear-budget{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;font-size:12px}
.gear-budget input{width:130px}
.gear-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:14px}
.gear-totals div{padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#101710aa}
.gear-totals span{display:block;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.gear-totals strong{font-size:18px;font-variant-numeric:tabular-nums}
.gear-zones{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.gear-zone{display:flex;flex-direction:column;align-items:center;min-width:62px;padding:6px 8px;
  border:1px solid var(--border);border-radius:7px;background:#0f140c}
.gear-zone strong{font-size:14px;font-variant-numeric:tabular-nums}
.gear-zone small{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.gear-zone.cls1,.gear-zone.cls2{border-color:#6c7a5c}
.gear-zone.cls3,.gear-zone.cls4{border-color:#8fae63}
.gear-zone.cls5,.gear-zone.cls6{border-color:#cfe3b4;background:#1a2213}
.gear-pieces{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.gear-piece{display:flex;gap:12px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#101710aa}
.gear-piece-art{flex:none;width:104px;height:104px;display:grid;place-items:center;
  border-radius:8px;background:#0b0f08}
.gear-piece-art img{max-width:100%;max-height:100%;object-fit:contain}
.gear-piece-body{min-width:0;display:flex;flex-direction:column;gap:5px}
.gear-piece-body strong{font-size:13.5px;line-height:1.3}
.gear-facts{display:grid;grid-template-columns:auto auto;gap:1px 12px;margin:2px 0 0;font-size:11.5px}
.gear-facts dt{color:var(--muted)}
.gear-facts dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.gear-source{margin:4px 0 0;font-size:11px;color:#e7d9a8}
.gear-source.estimated{color:var(--muted)}
.gear-extras{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:3px}
.gear-extras li{display:flex;align-items:center;gap:6px;font-size:11px}
.gear-extras img{width:26px;height:20px;object-fit:contain;flex:none}
.gear-extras small{margin-left:auto;color:var(--muted)}
@media(max-width:860px){.gear-goals{grid-template-columns:1fr 1fr}}

/* The build, as a slot tree.
   Every gun builder worth using shows the same thing: the parts indented the way the
   weapon is assembled, each row carrying its icon, what it does to the numbers and what
   it costs. The nesting is real markup, so the guide lines are drawn off it rather than
   off a depth counter. */
.gs-build{margin:16px 0}
/* `height:auto` is not decoration: style.css pins every <header> to the 91px app bar,
   and this one is a <header>. Without it the box stayed 91px tall and a big weapon
   render hung out of the top of it and over the heading above. */
.gs-build-head{height:auto;min-height:0;display:flex;align-items:center;gap:24px;padding:18px 20px;
  border:1px solid #72846745;border-radius:10px;background:#101710;
  background-image:radial-gradient(ellipse at 22% 35%,#2b3625 0%,transparent 62%),
    linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);
  background-size:auto,30px 30px,30px 30px}
/* Explicit box, not an aspect-ratio guess: a wide weapon render given only a max-height
   was laying itself out taller than the header and printing over the heading above. */
.gs-build-art{flex:0 0 min(42%,380px);width:min(42%,380px);height:176px;min-height:0;min-width:0;
  object-fit:contain;align-self:center;filter:drop-shadow(0 12px 14px #0009)}
.gs-build-words{flex:1;min-width:0}
.gs-build-words h3{margin:0 0 13px;font-size:19px;line-height:1.25}
.gs-build-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:1px;
  background:var(--border);border:1px solid var(--border);border-radius:8px;overflow:hidden}
.gs-build-figure{padding:9px 12px;background:#161d15}
.gs-build-figure strong{display:block;font-size:16px;font-weight:500;color:var(--accent);font-variant-numeric:tabular-nums}
.gs-build-figure span{display:block;margin-top:4px;font-size:9.5px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted)}

.gs-slots{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.gs-slots-root{margin-top:14px}
.gs-slot{position:relative}
/* A slot inside a handguard inside a rail should read as exactly that. */
.gs-slot>.gs-slots{margin:5px 0 3px 22px;padding-left:16px;border-left:1px dashed #3b473a}
.gs-slot>.gs-slots>.gs-slot::before{content:'';position:absolute;left:-16px;top:31px;
  width:12px;border-top:1px dashed #3b473a}

.gs-slot-row{display:flex;width:100%;align-items:center;gap:11px;padding:9px 12px;
  border:1px solid var(--border);border-radius:9px;background:#141a14;color:inherit;
  font:inherit;text-align:left}
.gs-slot-row:hover{border-color:#cfe3b4;background:#1a2216}
.gs-slot.empty>.gs-slot-row{border-style:dashed;background:#11160f}
.gs-slot.open>.gs-slot-row{border-color:var(--accent);background:#1b2415}
/* The icon fills its box and is never cropped. A percentage max-height here resolved
   against the grid row rather than the box, so a square 64px icon rendered at 60px in a
   44px box and lost its bottom third. */
.gs-slot-icon{flex:none;display:flex;align-items:center;justify-content:center;
  width:66px;height:48px;padding:2px;overflow:hidden;
  border:1px solid #27301f;border-radius:6px;background:#0c110b}
.gs-slot-icon img{width:100%;height:100%;object-fit:contain}
.gs-slot-icon:empty::after{content:'+';color:#4f5c4b;font-size:20px;line-height:1}
/* One line where it fits: the slot's name, the part in it and what it does, reading
   left to right. Stacking those three cost thirty pixels a row and a rifle has
   eighteen rows. */
.gs-slot-words{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:2px 9px}
.gs-slot-name{flex:none;font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.gs-slot-words>strong{max-width:100%;font-size:13px;font-weight:500;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-slot.empty .gs-slot-words>strong{color:var(--muted);font-weight:400}
.gs-slot-price{flex:none;min-width:96px;display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
.gs-slot-price strong{font-size:12.5px;font-weight:500;color:#e7d9a8;font-variant-numeric:tabular-nums}
.gs-slot-price small{font-size:10px;color:var(--muted)}

/* What one part does to the numbers, without having to hover it. */
.gs-effects{display:flex;flex-wrap:wrap;gap:5px}
.gs-effects:empty{display:none}
.gs-effect{display:inline-flex;align-items:baseline;gap:4px;padding:2px 7px;
  border:1px solid #2f3a2b;border-radius:4px;background:#1d2419;font-variant-numeric:tabular-nums}
.gs-effect strong{font-size:11px;font-weight:600}
.gs-effect small{font-size:9.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.gs-effect.good strong{color:#9fd67a}
.gs-effect.bad strong{color:#e08b7a}

.gs-picker{margin:7px 0 9px 22px;padding:14px;border:1px solid var(--accent);border-radius:9px;background:#0f140c}
.gs-picker-head{margin:0 0 11px;font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--accent)}
.gs-picker>.hint{margin:0 0 8px}
.gs-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,232px),1fr));gap:8px;
  max-height:min(56vh,440px);overflow:auto;padding-right:4px;scrollbar-width:thin}
.gs-candidate{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--border);
  border-radius:8px;background:#141a14;color:inherit;font:inherit;text-align:left}
.gs-candidate:hover,.gs-candidate:focus-visible{border-color:#cfe3b4;background:#1c2415;outline:none}
.gs-candidate.current{border-color:#8fae63;background:#1a2213}
.gs-candidate .gs-slot-icon{width:58px;height:44px}
.gs-candidate-clear .gs-slot-icon{color:var(--muted);font-size:15px;border-style:dashed}
.gs-candidate-words{min-width:0;display:flex;flex-direction:column;gap:5px}
.gs-candidate-name{font-size:12px;line-height:1.3;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gs-candidate-price{font-size:10.5px;color:#e7d9a8;font-variant-numeric:tabular-nums}

/* Reference shots - a quest's wiki build pictures, for instance. */
.gs-build-pictures{display:flex;gap:12px;overflow-x:auto;padding:14px 0 4px;scrollbar-width:thin}
.gs-build-pictures figure{flex:0 0 260px;margin:0;overflow:hidden;
  border:1px solid var(--border);border-radius:8px;background:#0f140c}
.gs-build-pictures img{display:block;width:100%;height:168px;object-fit:contain;background:#0b0f08}
.gs-build-pictures figcaption{padding:8px 10px;font-size:10.5px;line-height:1.5;color:var(--muted)}

@media(max-width:860px){
  .gs-build-head{flex-direction:column;align-items:stretch;gap:14px;padding:14px}
  .gs-build-art{flex:none;max-height:130px}
  .gs-slot-row{gap:10px;padding:9px 10px;flex-wrap:wrap}
  .gs-slot-price{min-width:0;flex-direction:row;align-items:baseline;gap:7px;width:100%;justify-content:flex-end}
  .gs-slot>.gs-slots{margin-left:14px;padding-left:12px}
  .gs-slot>.gs-slots>.gs-slot::before{left:-12px;width:8px}
  .gs-picker{margin-left:14px;padding:10px}
  .gs-picker-grid{grid-template-columns:1fr}
}

/* The workbench keeps its own live figures, so they sit in the build header where the
   generic ones would have gone - tighter than the standalone block. */
.gs-build-words .gs-metrics{margin:0;grid-template-columns:repeat(auto-fit,minmax(106px,1fr))}
.gs-build-words .gs-metrics>div{padding:9px 12px}
.gs-build-words .gs-metrics strong{font-size:17px;margin-top:5px}
.gs-build-words .gs-metrics span{font-size:9.5px;letter-spacing:.05em}
.gs-build-words .gs-delta{font-size:10.5px}
@media(max-width:860px){.gs-build-words .gs-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Outlines rather than a backing colour, so a row that does not divide evenly leaves a
   flat gap instead of a half-drawn cell. */
.gs-build-words .gs-metrics{background:#161d15}
.gs-build-words .gs-metrics>div{outline:1px solid var(--border)}

/* What a piece costs you in senses, said on the piece itself. */
.gear-warn{margin:4px 0 0;font-size:11px;line-height:1.5;color:#e0c28e}
.gear-goals{grid-template-columns:repeat(auto-fit,minmax(168px,1fr))}

/* Two columns of slots once there is room for them. A rifle's tree ran a screen and a
   half on its own; side by side the whole weapon fits above the fold. The picker needs
   the full width, so whichever slot is open takes the row to itself. */
/* Columns rather than a grid: a receiver drags a whole chain of slots under it, and in a
   grid that leaves the cell beside it empty. Flowing the branches down one column and on
   into the next keeps both sides full and puts a whole rifle on one screen.
   The width that matters is the tree's own, not the window's - the builder gives up 280px
   to its sidebar - so this asks the container. */
.gs-build{container-type:inline-size}
.gs-slot-row,.gs-picker{break-inside:avoid}
/* A locked part's note goes with its row, whole: split, its words stayed at the foot of one
   column and its Find replacement button opened the next. */
.gs-slot-note{break-inside:avoid;break-before:avoid}
@container (min-width:760px){
  .gs-slots-root{display:block;column-count:2;column-gap:18px}
  /* A branch may run over into the next column - the receiver alone carries most of a
     rifle, and keeping it whole would set the column height to it - but a single row is
     never split in half. */
  .gs-slots-root>.gs-slot{margin-bottom:5px}
  /* The part picker floats over the tree (gunsmith-build-preview.mjs), so the columns stay as
     they are while you choose: opening a slot moves nothing. */
}
@container (min-width:1250px){
  .gs-slots-root{column-count:3}
}

/* A part no shop sells. It is the one thing on a build you cannot simply go and buy, so
   it is coloured like the warning it is and says what to do about it. */
.gs-fir{flex:none;display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:4px;
  border:1px solid #7a6535;background:#2a2312;color:#e7c778;font-size:9.5px;letter-spacing:.05em;
  text-transform:uppercase;white-space:nowrap}
.gs-slot.raid-only>.gs-slot-row,.gs-candidate.raid-only{border-color:#7a6535;background:#1d1a10}
.gs-slot.raid-only>.gs-slot-row:hover,.gs-candidate.raid-only:hover{border-color:#e7c778;background:#262111}
.gs-raid-list{margin:18px 0 0;padding:14px 16px;border:1px solid #7a6535;border-radius:9px;background:#1d1a10}
.gs-raid-list h4{margin:0 0 4px;font-size:13px;font-weight:600;color:#e7c778}
.gs-raid-list p{margin:0 0 10px;font-size:11.5px;line-height:1.6}
.gs-raid-list ul{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:8px}
.gs-raid-list li{display:flex;align-items:center;gap:9px;padding:7px 9px;border:1px solid var(--border);
  border-radius:7px;background:#141a14;font-size:12px;line-height:1.3}
.gs-raid-list img{flex:none;width:46px;height:34px;object-fit:contain}
.gs-raid-toggle{display:flex!important;align-items:center;gap:9px;margin:12px 0 0;
  font-size:11.5px;line-height:1.5;color:var(--muted)}
/* .companion-page label input stretches every input in a label to the full width. */
.gs-raid-toggle input,.companion-page label.gs-raid-toggle input{display:inline-block;flex:none;width:auto;margin:0;accent-color:var(--accent)}
/* The builder's own line, at the size of the page around it rather than the small print of
   the task list, and the plain warning that goes with it while it is on. */
.gs-build-view>.gs-any-buyer{margin:0 0 12px;font-size:14px;color:var(--text)}
.gs-any-buyer-note{margin:0 0 14px;padding:12px 16px;border:1px solid #7a6535;border-radius:8px;
  background:#1d1a10;color:#e7c778;font-size:13.5px;line-height:1.55}
.gs-quest-details>.gs-any-buyer-note{margin-top:0}
.gs-build-words>.gs-fir{margin:0 0 9px}

/* Three states a part can be in beyond its numbers, each its own colour: amber for one no
   shop sells, blue for one a task wants, red for one you cannot buy today. */
.gs-quest-need{flex:none;display:inline-flex;align-items:center;padding:2px 7px;border-radius:4px;
  border:1px solid #4a6b84;background:#132029;color:#9fcbe8;font-size:9.5px;letter-spacing:.05em;
  text-transform:uppercase;white-space:nowrap}
.gs-locked{flex:none;display:inline-flex;align-items:center;padding:2px 7px;border-radius:4px;
  border:1px solid #7d4740;background:#2a1714;color:#f0a49b;font-size:9.5px;letter-spacing:.05em;
  text-transform:uppercase;white-space:nowrap}
.gs-slot.quest-part>.gs-slot-row{border-color:#4a6b84}
.gs-slot.quest-part>.gs-slot-row:hover{border-color:#9fcbe8}
.gs-candidate.quest-part{border-color:#4a6b84}
.gs-slot.locked>.gs-slot-row{border-color:#7d4740;background:#1d1311}
.gs-slot.locked>.gs-slot-row:hover{border-color:#f0a49b;background:#261815}
.gs-slot-note{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:4px 0 0 22px;
  padding:7px 11px;border:1px dashed #7d4740;border-radius:7px;background:#1a1211;
  font-size:11px;line-height:1.5;color:#e8b3aa}
.gs-replace{padding:5px 10px;font-size:11px;border-color:#7d4740;background:#2a1714;color:#f4c8c1}
.gs-replace:hover{background:#3a201b}
.gs-raid-list li strong{display:block;font-size:12px;font-weight:500}
.gs-raid-list li small{display:block;margin-top:2px;font-size:10px;color:var(--muted)}

/* A wiki modding screen is meant to be read, so it opens at whatever size the window has. */
.gs-picture-open{display:block;width:100%;padding:0;border:0;border-radius:0;background:none;cursor:zoom-in}
.gs-picture-open img{display:block;width:100%;height:168px;object-fit:contain;background:#0b0f08}
.gs-picture-open:hover img,.gs-picture-open:focus-visible img{background:#161d15}

/* The hover card: the picture at a size worth looking at, then the numbers. */
.gs-floating{max-width:320px}
.gs-part-shot{display:block;width:100%;height:132px;object-fit:contain;margin-bottom:8px;
  border-radius:6px;background:#0b0f08}
.gs-part-card-head{flex-direction:column;align-items:flex-start;gap:3px}
.gs-part-card .gs-effects{margin:0 0 7px}

/* Arguing with a suggestion: the same ranking, one step further down, for this view only. */
.gear-swap{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:9px;padding-top:9px;
  border-top:1px solid var(--border)}
.gear-swap button{font-size:11px;padding:6px 10px}
.gear-swap-note{font-size:10.5px;color:var(--muted);letter-spacing:.04em}
/* TarkovBot's 3D builder (linked with its owner's permission): last in the tab row, and on each task's build. */
.gs-tabs .gs-tab-link{margin-left:auto;align-self:center;font-size:13px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.gs-tabs .gs-tab-link:hover{color:var(--accent)}
.gs-recipe-3d{display:inline-block;margin:0 0 10px;padding:7px 12px;border:1px solid var(--border-strong,#3a483b);border-radius:8px;background:#1d241d;color:var(--text);font-size:13px;text-decoration:none}
.gs-recipe-3d:hover{border-color:#526345;color:var(--accent)}
/* TarkovBot's page in a window over the app (tarkovBotWindow): marked as his, with his address and a way out to his site. */
.tb-window{position:fixed;inset:8px 8px 8px calc(var(--sidebar-width,172px) + 8px);z-index:900;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;box-shadow:0 24px 80px #000c;border:1px solid var(--border-strong,#3a483b);border-radius:12px;background:#0b0e0b;color:var(--text);overflow:hidden}
.tb-window[open]{display:flex;flex-direction:column}
.tb-window::backdrop{background:#000000b8}
.tb-window-head{display:flex;align-items:center;gap:12px;padding:7px 10px 7px 14px;background:#151b16;border-bottom:1px solid var(--border)}
.tb-window-who{display:grid;gap:1px;min-width:0;flex:1}
.tb-window-who strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-window-note{font-size:12px;color:var(--muted)}
.tb-window-open{flex:none;padding:8px 14px;border:1px solid var(--accent);border-radius:8px;background:#c2dc9114;color:var(--accent);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.tb-window-open:hover{background:#c2dc9126}
.tb-window-close{flex:none;width:36px;height:36px;padding:0;border:1px solid var(--border);border-radius:8px;background:none;color:var(--text);font-size:16px;cursor:pointer}
.tb-window-close:hover{border-color:#e07b67;color:#e07b67}
.tb-window-address{padding:5px 16px;background:#0f130f;border-bottom:1px solid var(--border);font-family:var(--mono,monospace);font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-window-address::before{content:'↗ ';color:var(--accent)}
.tb-window iframe{flex:1;width:100%;border:0;background:#000}
@media(max-width:700px){.tb-window{inset:0;border-radius:0}.tb-window-note{display:none}.tb-window-open{padding:7px 10px}}
.tb-window-steps{display:flex;align-items:center;gap:12px;padding:9px 14px;background:#243020;border-bottom:1px solid #526345;font-size:13px}
.tb-window-steps>div{display:grid;gap:1px;flex:1;min-width:0}.tb-window-steps strong{color:var(--accent)}
.tb-window-steps-icon{font-size:20px;color:var(--accent)}
.tb-window-again{flex:none;padding:6px 12px;border:1px solid var(--border-strong,#3a483b);border-radius:8px;background:none;color:var(--text);font:inherit;font-size:12.5px;cursor:pointer}
.gs-3d{display:grid;gap:8px;margin-top:18px}
/* The Weapon builder's gallery of guns and the choice of a gun's builds (gallery, chooser). */
.gs-gallery-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 12px}
.gs-gallery-head .eyebrow{flex-basis:100%}
.gs-gallery-head input[type=search]{flex:1;min-width:min(100%,260px);max-width:520px}
.gs-gallery-head h2{margin:2px 0 0}
.gs-gallery-classes{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.gs-class-chip{padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:var(--panel);color:var(--text);font:inherit;font-size:13px;cursor:pointer}
.gs-class-chip:hover{border-color:#526345}
.gs-class-chip[aria-pressed="true"]{border-color:var(--accent);background:#c2dc911a;color:var(--accent)}
.gs-gallery-count{margin:0 0 10px}
.gs-gun-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:14px}
.gs-gun-card{position:relative;display:flex;flex-direction:column;gap:0;padding:0;border:1px solid var(--border);border-radius:12px;background:linear-gradient(180deg,#1a221b,#131813);
  color:var(--text);font:inherit;text-align:left;cursor:pointer;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;z-index:0}
.gs-gun-card:hover,.gs-gun-card:focus-visible{transform:translateY(-4px) scale(1.04);border-color:var(--accent);box-shadow:0 18px 40px -14px #000,0 0 0 1px #c2dc9155;z-index:2;outline:none}
.gs-gun-art{display:flex;align-items:center;justify-content:center;height:130px;padding:12px;background:radial-gradient(ellipse at 50% 60%,#2b3826 0%,#141a14 70%)}
.gs-gun-art img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 8px 10px #0009);transition:transform .25s ease}
.gs-gun-card:hover .gs-gun-art img,.gs-gun-card:focus-visible .gs-gun-art img{transform:scale(1.14)}
.gs-gun-words{display:grid;gap:3px;padding:10px 12px 12px;border-top:1px solid var(--border)}
.gs-gun-words strong{font-size:14px;line-height:1.25}
.gs-gun-words small{font-size:12px;color:var(--muted)}
.gs-gun-price{font-size:13px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums}
.gs-gun-price.none{font-weight:500;color:var(--muted)}
.gs-gun-resume{border-color:#526345;background:linear-gradient(180deg,#243020,#151b16)}
.gs-gun-resume .gs-gun-words .eyebrow{color:var(--accent)}
.gs-build-standard{border-color:#526345}
.gs-build-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.gs-build-grid .gs-gun-art{height:150px}
/* Over the bench: back, another build, keep it, and 3D. */
.gs-build-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#151b16cc}
.gs-build-bar .gs-save{display:flex;align-items:center;gap:8px;margin:0 0 0 auto;padding:0;border:0;background:none}
.gs-build-bar .gs-save input{width:min(220px,40vw);margin:0}
.gs-3d-button{white-space:nowrap}
@media(max-width:760px){.gs-build-bar .gs-save{margin:0;flex:1 1 100%}.gs-build-bar .gs-save input{flex:1;width:auto}.gs-gun-art{height:110px}}
.gs-controls>.gs-optimizers:first-child{border-top:0;padding-top:0}
/* The part picker drops down over the page (gunsmith-build-preview.mjs picker): choosing a part moves nothing. */
.gs-slot.open{z-index:40}
.gs-picker{position:fixed;left:0;top:0;z-index:850;margin:0;max-height:min(440px,62vh);
  overflow-y:auto;overscroll-behavior:contain;padding:10px;background:#0f140c;box-shadow:0 22px 50px -12px #000,0 0 0 1px #c2dc9133}
.gs-picker.up{box-shadow:0 -22px 50px -12px #000,0 0 0 1px #c2dc9133}
.gs-picker .gs-picker-grid{grid-template-columns:1fr;gap:6px}
.gs-picker-search{width:100%;margin:0 0 8px}
.gs-picker-more:empty{display:none}
.gs-picker-more{margin:8px 0 0}
/* Find a build in the bar over the bench (no side panel); a build in progress as a line over the guns. */
.gs-build-bar .gs-find{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0 0 0 10px;border:0;border-left:1px solid var(--border)}
.gs-build-bar .gs-find .eyebrow{margin-right:4px}
.gs-build-bar .gs-find button{padding:7px 11px;font-size:13px}
.gs-bench{min-width:0}
.gs-resume{display:block;margin:0 0 12px;text-align:left;border-color:#526345;color:var(--accent)}
@media(max-width:760px){.gs-build-bar .gs-find{padding:0;border:0;flex-basis:100%}}
/* A preset's own picture (preset_pictures.py), in place of the catalog render. */
.gs-own-picture{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#0d110e}
/* Gear, 2026-10-16: the "Suggest me a kit" sliders, and its totals measured against the limits. */
.gear-goal.custom{border-style:dashed;border-color:#5d7046}
.gear-goal.custom.active{border-style:solid}
.gear-tuner{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 22px;margin:0 0 16px;padding:14px 18px;
  border:1px solid #3d4c33;border-radius:10px;background:linear-gradient(180deg,#18210f,#11170d)}
.gear-slider{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}
.gear-slider-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.gear-slider-head strong{color:var(--accent);font-size:15px;font-variant-numeric:tabular-nums}
.gear-slider-ends{display:flex;justify-content:space-between;font-size:10px;opacity:.75}
.gear-slider input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:6px;margin:4px 0;padding:0;border:0;
  border-radius:3px;background:linear-gradient(90deg,var(--accent) var(--fill,50%),#2c3727 var(--fill,50%));cursor:pointer}
.gear-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;
  background:#e8f3d2;border:3px solid var(--accent-ink);box-shadow:0 0 0 1px var(--accent)}
.gear-slider input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#e8f3d2;
  border:3px solid var(--accent-ink);box-shadow:0 0 0 1px var(--accent)}
.gear-totals div{position:relative;overflow:hidden}
.gear-meter{position:absolute;left:0;right:0;bottom:0;height:3px;background:#2c3727}
.gear-meter::after{content:'';position:absolute;inset:0 auto 0 0;width:var(--used);background:var(--accent)}
.gear-totals strong{white-space:nowrap}
.gear-limit{display:block;font-size:10.5px;color:var(--muted)}
@media(max-width:980px){.gear-tuner{grid-template-columns:1fr}}
