/* Gear Check — photo, checklist, builds, score out of 100 */
.gc-screen { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
.gc-loadbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gc-loadlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ui-sub); }
.gc-select { flex: 1 1 100px; min-width: 0; min-height: 36px; border-radius: 10px; border: 1px solid var(--ui-hairline-strong); background: var(--ui-surface); color: var(--ui-title); padding: 0 10px; font: inherit; font-size: 15px; }
.gc-mini { min-height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ui-hairline-strong); background: var(--ui-surface); color: var(--ui-title); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gc-mini.is-danger { color: var(--bob-accent); }
.gc-mini:active, .gc-btn:active { transform: scale(.97); }
.gc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--ui-hairline-strong); background: var(--ui-surface); color: var(--ui-title); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gc-btn.is-primary { background: var(--bob-accent); border-color: var(--bob-accent); color: #fff; }
.gc-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.gc-media { display: flex; flex-direction: column; gap: 10px; }
.gc-photo { margin: 0; border-radius: 14px; overflow: hidden; background: var(--ui-tile-neutral); border: 1px dashed var(--ui-hairline-strong); min-height: 120px; display: flex; align-items: center; justify-content: center; }
.gc-photo-img { display: block; width: 100%; max-height: 200px; object-fit: cover; }
.gc-photo-img[hidden], .gc-photo-empty[hidden] { display: none; }
.gc-photo-empty { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--ui-sub); font-size: 14px; line-height: 1.35; }
.gc-photo-empty p { margin: 0; }
.gc-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.gc-photo-actions .gc-btn, .gc-photo-actions .gc-mini { min-height: 36px; }
.gc-photo-status { flex-basis: 100%; font-size: 12px; color: var(--ui-sub); }
.gc-photo-status:empty { display: none; }

.gc-sprite { display: inline-flex; width: 28px; height: 28px; flex: 0 0 auto; }
.gc-sprite svg { width: 100%; height: 100%; }
.gc-sprite-sm { width: 22px; height: 22px; }
.gc-sprite-lg { width: 48px; height: 48px; }

.gc-scorebox { border-radius: 14px; padding: 12px 14px; background: var(--ui-surface); border: 1px solid var(--ui-hairline); box-shadow: var(--ui-elev); }
.gc-score-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--ui-title); }
.gc-score-num { font-size: 40px; font-weight: 800; line-height: 1; }
.gc-score-of { font-size: 18px; font-weight: 700; color: var(--ui-sub); }
.gc-score-dash { font-size: 22px; color: var(--ui-sub); }
.gc-score-letter { font-size: 36px; font-weight: 900; line-height: 1; }
.gc-meter { height: 8px; border-radius: 99px; background: var(--ui-tile-neutral); margin: 8px 0 6px; overflow: hidden; }
.gc-meter span, .gc-row-bar span { display: block; height: 100%; border-radius: inherit; background: var(--gc-c, #5a7247); }
.gc-score-sub { margin: 0; font-size: 13px; color: var(--ui-sub); }
.grade-a { --gc-c: #2f8a3a; } .grade-b { --gc-c: #5a9a2f; } .grade-c { --gc-c: #c8941c; } .grade-d { --gc-c: #e0702a; } .grade-f { --gc-c: #c9352a; }
.gc-scorebox .gc-score-letter { color: var(--gc-c); }
.gc-cap-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(201, 53, 42, .1); border-left: 3px solid #c9352a; font-size: 13px; line-height: 1.35; color: var(--ui-title); }

.gc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--bob-page) 88%, transparent); border: 1px solid var(--ui-hairline); position: sticky; top: var(--gc-sticky, 60px); z-index: 5; backdrop-filter: blur(8px); }
.gc-tab { min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--ui-sub); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gc-tab.is-on { background: var(--ui-surface); color: var(--ui-title); box-shadow: var(--ui-elev); }

.gc-hint { margin: 0 0 8px; font-size: 13px; line-height: 1.4; color: var(--ui-sub); }
.gc-gear-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.gc-cat { margin-bottom: 10px; border-radius: 14px; background: var(--ui-surface); border: 1px solid var(--ui-hairline); }
.gc-cat-sum { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.gc-cat-sum::-webkit-details-marker { display: none; }
.gc-cat-title { flex: 1; font-weight: 800; color: var(--ui-title); }
.gc-cat-count { font-size: 12px; font-weight: 700; color: var(--ui-sub); }
.gc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 10px 10px; }
.gc-item { display: flex; flex-direction: column; border-radius: 10px; border: 1px solid var(--ui-hairline-strong); background: var(--bob-page); overflow: hidden; }
.gc-item.is-on { border-color: var(--bob-accent); background: rgba(255, 107, 43, .08); }
.gc-item-btn { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px; border: 0; background: transparent; color: var(--ui-title); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.gc-item-name { flex: 1; line-height: 1.2; }
.gc-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ui-hairline-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; flex: 0 0 auto; }
.gc-item.is-on .gc-check { background: var(--bob-accent); border-color: var(--bob-accent); color: #fff; }
.gc-qty { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--ui-hairline); }
.gc-qbtn { width: 40px; height: 32px; border: 0; background: transparent; color: var(--ui-title); font-size: 18px; font-weight: 800; cursor: pointer; }
.gc-qn { font-size: 13px; font-weight: 700; white-space: nowrap; }

.gc-other { padding: 12px; border-radius: 14px; background: var(--ui-surface); border: 1px solid var(--ui-hairline); }
.gc-other h3, .gc-unlock h3, .gc-tips h3 { margin: 0 0 6px; font-size: 16px; }
.gc-other-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.gc-other-list li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 99px; background: var(--ui-tile-neutral); font-size: 13px; }
.gc-x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--ui-sub); font-size: 16px; cursor: pointer; }
.gc-other-row { display: flex; gap: 8px; }
.gc-other-in { flex: 1; min-width: 0; min-height: 40px; border-radius: 10px; border: 1px solid var(--ui-hairline-strong); background: var(--bob-page); color: var(--ui-title); padding: 0 10px; font: inherit; font-size: 15px; }

.gc-unlock { padding: 12px; border-radius: 14px; background: rgba(255, 107, 43, .08); border: 1px solid rgba(255, 107, 43, .35); margin-bottom: 8px; }
.gc-best-name { margin: 0 0 4px; font-size: 15px; }
.gc-best-list { margin: 0 0 8px; font-size: 13px; color: var(--ui-sub); }
.gc-h { margin: 14px 0 6px; font-size: 17px; }
.gc-bgroup-title { display: flex; align-items: center; gap: 6px; margin: 10px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ui-sub); }
.gc-bgrid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.gc-build { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 28px 10px 12px; border-radius: 12px; border: 1px solid var(--ui-hairline); background: var(--ui-surface); box-shadow: var(--ui-elev); text-align: left; font: inherit; color: var(--ui-title); cursor: pointer; }
.gc-build-title { font-weight: 700; font-size: 14px; }
.gc-build-uses { font-size: 12px; color: var(--ui-sub); }
.gc-chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ui-chev); }
.gc-almost { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.gc-linkish { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ui-title); text-decoration: underline; text-decoration-color: var(--bob-accent); cursor: pointer; }
.gc-need { color: var(--ui-sub); }
.gc-foot { font-size: 12px; color: var(--ui-sub); margin: 12px 0 0; line-height: 1.4; }

.gc-rows { display: flex; flex-direction: column; gap: 6px; }
.gc-row { padding: 10px 12px; border-radius: 12px; background: var(--ui-surface); border: 1px solid var(--ui-hairline); }
.gc-row-head { display: flex; align-items: center; gap: 8px; }
.gc-row-n { width: 22px; height: 22px; border-radius: 50%; background: var(--ui-tile-neutral); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.gc-row-title { flex: 1; font-weight: 700; }
.gc-row-pts { font-weight: 800; font-variant-numeric: tabular-nums; }
.gc-row-bar { height: 6px; border-radius: 99px; background: var(--ui-tile-neutral); margin: 6px 0; overflow: hidden; }
.gc-row.is-hi { --gc-c: #2f8a3a; } .gc-row.is-mid { --gc-c: #c8941c; } .gc-row.is-lo { --gc-c: #e0702a; } .gc-row.is-zero { --gc-c: #c9352a; }
.gc-row.is-zero .gc-row-pts { color: #c9352a; }
.gc-row-why { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ui-sub); }
.gc-tips { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--ui-surface); border: 1px solid var(--ui-hairline); }
.gc-tip-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }

.gc-flash { animation: gcFlash 1.6s ease-out; border-radius: 6px; }
@keyframes gcFlash { 0%, 40% { background: rgba(255, 107, 43, .28); } 100% { background: transparent; } }

/* Wider screens (tablets, landscape phones) */
@media (min-width: 600px) {
  .gc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gc-bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-media { flex-direction: row; align-items: flex-start; }
  .gc-photo-col { flex: 1 1 55%; min-width: 0; }
  .gc-scorebox { flex: 1 1 45%; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .gc-photo-img { max-height: 170px; }
  .gc-photo { min-height: 90px; }
  .gc-score-num { font-size: 32px; }
  .gc-score-letter { font-size: 30px; }

}

/* Starter presets & gap list */
.gc-presets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0 0 12px; padding: 8px 10px;
  background: var(--ui-surface, rgba(0,0,0,0.03));
  border: 1px solid var(--ui-border, rgba(0,0,0,0.12));
  border-radius: 10px;
}
.gc-presets-label { font-size: 12px; font-weight: 700; color: var(--ui-sub); margin-right: 2px; }
.gc-preset-btn { font-weight: 600; }

.gc-gaps {
  margin: 14px 0; padding: 12px 14px;
  background: var(--ui-surface, rgba(0,0,0,0.03));
  border: 1px solid var(--ui-border, rgba(0,0,0,0.14));
  border-radius: 12px;
}
.gc-gaps-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.gc-gaps-head h3 { margin: 0; font-size: 16px; }
.gc-gap-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gc-gap-cat {
  padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--ui-border, rgba(0,0,0,0.12));
  background: var(--ui-bg, transparent);
}
.gc-gap-cat.is-cap { border-color: #c93b2b; border-width: 1.5px; }
.gc-gap-cat-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 6px; }
.gc-gap-cat.is-cap .gc-gap-cat-head strong { color: #c93b2b; }
[data-theme="night"] .gc-gap-cat.is-cap .gc-gap-cat-head strong { color: #ff7a6b; }
.gc-gap-score { font-size: 12px; font-weight: 700; color: var(--ui-sub); font-variant-numeric: tabular-nums; }
.gc-gap-picks { display: flex; flex-direction: column; gap: 6px; }
.gc-gap-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.gc-gap-name { flex: 1; min-width: 0; }
.gc-gap-add { flex-shrink: 0; }
