*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bob-page);
  color: var(--bob-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: calc(16px * var(--bob-text-scale));
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bob-accent); }

#app {
  min-height: 100%;
  max-width: var(--bob-max);
  margin: 0 auto;
  position: relative;
  background: var(--bob-page);
}

/* ----- Firelight North intro ----- */
html.fn-intro-seen #fn-intro { display: none !important; }
.fn-intro {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #0c1018;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.fn-intro.is-leaving {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.fn-intro-glow {
  position: absolute;
  width: min(70vw, 320px); height: min(70vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,120,40,0.28) 0%, rgba(255,80,20,0.08) 42%, transparent 70%);
  animation: fn-ember 1.6s ease-in-out infinite alternate;
  pointer-events: none;
}
.fn-intro-mark {
  position: relative; z-index: 1;
  width: min(52vw, 200px); height: auto;
  opacity: 0;
  transform: scale(0.88);
  filter: drop-shadow(0 0 18px rgba(255,140,50,0.35));
  animation: fn-mark-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}
@keyframes fn-mark-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes fn-ember {
  from { opacity: 0.65; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .fn-intro-glow { animation: none; opacity: 0.75; }
  .fn-intro-mark {
    animation: none; opacity: 1; transform: none;
    transition: none;
  }
}

/* ----- Chrome ----- */
.app-shell {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding-bottom: calc(var(--bob-nav-h) + var(--bob-safe-bottom));
}
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  min-height: var(--bob-top-h);
  padding: calc(8px + var(--bob-safe-top)) 12px 8px;
  background: var(--bob-top-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bob-line);
}
.topbar.is-home { display: none; }
.topbar-back, .topbar-home, .topbar-theme {
  border: 1px solid var(--bob-line);
  background: var(--bob-card);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700; font-size: 13px;
  cursor: pointer; white-space: nowrap;
}
.topbar-back:active, .topbar-home:active, .topbar-theme:active { transform: scale(0.97); }
.topbar-title {
  flex: 1; min-width: 0;
  font-weight: 900; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: center;
}
.topbar-theme { min-width: 44px; text-align: center; }

.brand-bar {
  display: none;
  align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 14px 0;
}
.app-shell.is-home .brand-bar { display: flex; }
.brand-byline {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--bob-muted); text-transform: uppercase;
}
.brand-byline strong { color: var(--bob-ink); }

.main {
  flex: 1;
  padding: 12px 14px 24px;
  width: 100%;
}

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 0 8px var(--bob-safe-bottom);
  background: var(--bob-nav-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.bottom-nav-inner {
  width: 100%; max-width: var(--bob-max);
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 6px; padding: 8px 6px;
  min-height: var(--bob-nav-h);
}
.nav-btn {
  border: none; background: transparent;
  color: var(--bob-nav-fg);
  border-radius: 12px; padding: 8px 6px;
  font-weight: 800; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.nav-btn.active { color: #ff6b2b; background: rgba(255,107,43,0.12); }
.nav-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 0 10px; gap: 6px;
}
.nav-search input {
  flex: 1; min-width: 0; border: none; outline: none;
  background: transparent; color: #f5f1e8;
  font-size: 14px; padding: 10px 0;
}
.nav-search input::placeholder { color: rgba(245,241,232,0.45); }
.nav-search-ico { color: rgba(245,241,232,0.55); font-size: 14px; }

/* ----- Search results ----- */
.search-panel {
  display: none; position: fixed; left: 0; right: 0; bottom: calc(var(--bob-nav-h) + var(--bob-safe-bottom));
  z-index: 55; justify-content: center; padding: 0 8px;
  pointer-events: none;
}
.search-panel.open { display: flex; pointer-events: auto; }
.search-list {
  width: 100%; max-width: var(--bob-max);
  max-height: 50vh; overflow: auto;
  background: var(--bob-card);
  border: 1px solid var(--bob-line);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 28px var(--bob-shadow);
}
.search-hit {
  width: 100%; text-align: left; border: none;
  background: transparent; border-bottom: 1px solid var(--bob-line);
  padding: 12px 14px; cursor: pointer;
}
.search-hit:last-child { border-bottom: none; }
.search-hit:active { background: rgba(255,107,43,0.1); }
.search-hit .t { font-weight: 800; font-size: 14px; }
.search-hit .b { font-size: 12px; color: var(--bob-muted); margin-top: 2px; }
.search-empty { padding: 16px; text-align: center; color: var(--bob-muted); font-size: 13px; }

/* ----- Menu sheet ----- */
.menu-sheet {
  display: none; position: fixed; inset: 0; z-index: 70;
  background: rgba(0,0,0,0.72);
  align-items: flex-end; justify-content: center;
}
.menu-sheet.open { display: flex; }
.menu-panel {
  width: 100%; max-width: var(--bob-max); max-height: 82vh; overflow: auto;
  background: var(--bob-paper); color: var(--bob-ink);
  border-radius: 20px 20px 0 0;
  padding: 8px 12px calc(16px + var(--bob-safe-bottom));
}
.menu-handle {
  width: 40px; height: 4px; border-radius: 999px;
  background: var(--bob-line); margin: 4px auto 10px;
}
.menu-panel > h2 {
  font-size: 14px; font-weight: 900; letter-spacing: 0.1em;
  text-transform: uppercase; margin: 4px 8px 10px;
}
.menu-group {
  font-size: 11px; font-weight: 900; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bob-muted);
  margin: 14px 8px 8px;
}
.menu-group:first-of-type { margin-top: 4px; }
.menu-item {
  width: 100%; text-align: left;
  border: 1px solid var(--bob-line);
  background: var(--bob-card); border-radius: 14px;
  padding: 12px; margin-bottom: 8px;
  cursor: pointer; display: flex; gap: 12px; align-items: center;
}
.menu-item.active { border-color: var(--bob-accent); box-shadow: inset 0 0 0 1px var(--bob-accent); }
.menu-item.stub .t::after {
  content: " · soon"; font-weight: 700; font-size: 11px;
  color: var(--bob-muted); letter-spacing: 0;
  text-transform: none;
}
.menu-item .ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bob-chip-bg); color: var(--bob-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.menu-item .t { font-weight: 800; font-size: 15px; }
.menu-item .s { font-size: 11px; opacity: 0.75; margin-top: 2px; }
.menu-close {
  width: 100%; margin-top: 8px; padding: 14px;
  border: 1px solid var(--bob-line); border-radius: 14px;
  background: var(--bob-card); font-weight: 800; cursor: pointer;
}

/* ----- Home hub ----- */
.home-hub { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.home-bot {
  display: flex; gap: 12px; align-items: center;
  background: var(--bob-card); border: 1px solid var(--bob-line);
  border-radius: 16px; padding: 14px;
}
.home-bot img {
  width: 88px; height: 88px; border-radius: 16px;
  object-fit: cover; flex-shrink: 0;
  background: var(--bob-line);
}
.home-bot-hi { margin: 0 0 4px; font-weight: 900; font-size: 16px; }
.home-bot p { margin: 0; font-size: 14px; color: var(--bob-muted); }
.home-needs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.home-disclaimer {
  font-size: 11px; color: var(--bob-muted); text-align: center;
  margin: 8px 4px 0; line-height: 1.35;
}

/* ----- Guide panels ----- */
.panel { display: flex; flex-direction: column; gap: 12px; }
.section {
  background: var(--bob-card); border: 1px solid var(--bob-line);
  border-radius: 16px; padding: 14px 14px 12px;
}
.section-title {
  margin: 0 0 4px; font-size: 18px; font-weight: 900;
}
.section-tip {
  display: inline-block; margin: 0 0 8px;
  font-size: 12px; font-weight: 700; color: var(--bob-accent);
}

/* ----- BugOutBot tip card ----- */
.screen-with-tip {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bot-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  background: var(--bob-card);
  border: 1px solid var(--bob-line);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--bob-shadow);
}
.bot-tip-img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 107, 43, 0.35);
}
.bot-tip-bubble {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 8px 12px 10px;
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid rgba(255, 107, 43, 0.28);
  border-radius: 14px;
}
.bot-tip-bubble::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: rgba(255, 107, 43, 0.1);
  border-left: 1px solid rgba(255, 107, 43, 0.28);
  border-bottom: 1px solid rgba(255, 107, 43, 0.28);
  transform: rotate(45deg);
}
.bot-tip-label {
  display: block;
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bob-accent);
}
.bot-tip-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--bob-ink);
  font-weight: 600;
}
.section .bot-tip {
  margin: 0 0 10px;
  width: 100%;
  box-sizing: border-box;
}

.section-lead {
  margin: 0 0 10px; font-size: 14px; color: var(--bob-muted);
}
.block { margin-top: 12px; }
.block:first-of-type { margin-top: 4px; }
.block h3 {
  margin: 0 0 6px; font-size: 14px; font-weight: 900;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.block ul {
  margin: 0; padding-left: 1.15em;
  font-size: 14px;
}
.block li { margin-bottom: 4px; }
.block-note {
  margin: 10px 0 0; padding: 10px 12px;
  border-radius: 10px; background: rgba(255,107,43,0.1);
  border-left: 3px solid var(--bob-accent);
  font-size: 13px;
}
.fig {
  margin: 8px 0 10px;
  background: var(--bob-fig-plate); color: var(--bob-fig-ink);
  border: 1px solid var(--bob-line); border-radius: 12px; overflow: hidden;
}
.fig img { width: 100%; }
.fig-cap {
  padding: 8px 10px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-top: 1px solid var(--bob-line);
}
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 10px; }
@media (max-width: 380px) { .fig-pair { grid-template-columns: 1fr; } }
.fig-pair .fig { margin: 0; }
.cards {
  display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px;
}
.card {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--bob-line); border-radius: 12px;
  padding: 10px; background: var(--bob-paper);
}
.card img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.card .ct { font-weight: 800; font-size: 14px; margin: 0 0 2px; }
.card .cb { font-size: 12px; color: var(--bob-muted); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.action-btn {
  border: 1px solid var(--bob-line); background: var(--bob-paper);
  border-radius: 999px; padding: 8px 12px;
  font-size: 12px; font-weight: 800; cursor: pointer;
}
.action-btn:active { border-color: var(--bob-accent); }

.stub-panel {
  text-align: center; padding: 32px 16px;
  background: var(--bob-card); border: 1px dashed var(--bob-line);
  border-radius: 16px;
}
.stub-panel h2 { margin: 0 0 8px; font-size: 20px; }
.stub-panel p { margin: 0; color: var(--bob-muted); font-size: 14px; }
.stub-badge {
  display: inline-block; margin-bottom: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,107,43,0.15); color: var(--bob-accent);
  font-size: 11px; font-weight: 900; letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.gallery-item {
  border: 1px solid var(--bob-line); border-radius: 12px;
  overflow: hidden; background: var(--bob-card); padding: 0;
  cursor: pointer; text-align: left; color: inherit;
}
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-item span {
  display: block; padding: 8px 10px; font-size: 12px; font-weight: 800;
}

/* ----- Tools ----- */

.tools-hub { display: flex; flex-direction: column; gap: 12px; }
.tools-list { display: flex; flex-direction: column; gap: 8px; }
.tools-item {
  width: 100%; text-align: left;
  border: 1px solid var(--bob-line);
  background: var(--bob-card); border-radius: 14px;
  padding: 12px; cursor: pointer;
  display: flex; gap: 12px; align-items: center;
}
.tools-item:active { border-color: var(--bob-accent); }
.tools-item .ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bob-chip-bg); color: var(--bob-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.tools-item .t { font-weight: 800; font-size: 15px; }
.tools-item .s { font-size: 11px; opacity: 0.75; margin-top: 2px; }

.tool-view { display: flex; flex-direction: column; gap: 12px; }
.tool-h { margin: 0; font-size: 20px; font-weight: 900; }
.tool-sub { margin: 0; font-size: 14px; color: var(--bob-muted); }
.tool-timer {
  font-variant-numeric: tabular-nums;
  font-size: 56px; font-weight: 900; text-align: center;
  letter-spacing: 0.04em; padding: 16px;
  background: var(--bob-card); border: 1px solid var(--bob-line);
  border-radius: 16px;
}
.tool-timer.tool-alert, .tool-bigcount.tool-alert {
  animation: toolPulse 0.6s ease 3;
  border-color: var(--bob-accent);
  box-shadow: 0 0 0 3px rgba(255,107,43,0.35);
}
@keyframes toolPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.tool-bigcount {
  font-variant-numeric: tabular-nums;
  font-size: 72px; font-weight: 900; text-align: center;
  padding: 20px; background: var(--bob-card);
  border: 2px solid var(--bob-line); border-radius: 16px;
}
.tool-status {
  text-align: center; font-size: 14px; font-weight: 700;
  color: var(--bob-muted); padding: 4px 8px;
}
.tool-status.is-good, .tool-result.is-good { color: var(--bob-shelter); }
.tool-result {
  padding: 12px 14px; border-radius: 12px;
  background: var(--bob-card); border: 1px solid var(--bob-line);
  font-size: 14px;
}
.tool-result.is-mid { border-color: var(--bob-fire); }
.tool-result.is-bad { border-color: var(--bob-accent); }
.tool-result.risk-low { border-color: var(--bob-shelter); }
.tool-result.risk-mod { border-color: var(--bob-fire); }
.tool-result.risk-high, .tool-result.risk-extreme { border-color: var(--bob-accent); }
.tool-status.risk-high, .tool-status.risk-extreme { color: var(--bob-accent); }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-row.is-hidden { display: none; }
.tool-btn {
  flex: 1; min-width: 64px;
  border: 1px solid var(--bob-line); background: var(--bob-card);
  border-radius: 12px; padding: 12px 10px;
  font-weight: 800; font-size: 13px; cursor: pointer;
}
.tool-btn.is-primary {
  background: var(--bob-accent); color: #1a1712; border-color: var(--bob-accent);
}
.tool-btn.is-xl { min-height: 72px; font-size: 22px; flex: 2; }
.tool-btn.is-on {
  border-color: var(--bob-accent);
  box-shadow: inset 0 0 0 1px var(--bob-accent);
}
.tool-btn:active { transform: scale(0.98); }
.tool-presets {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tool-presets .tool-btn { flex: 1 1 40%; }
.tool-input {
  width: 100%; max-width: 160px;
  padding: 12px; border-radius: 12px;
  border: 1px solid var(--bob-line); background: var(--bob-card);
  color: var(--bob-ink); font-size: 16px; font-weight: 700;
}
.tool-form { display: flex; flex-direction: column; gap: 8px; }
.tool-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bob-muted);
}
.tool-tip { margin: 0; font-size: 12px; color: var(--bob-muted); }
.tool-note {
  margin: 4px 0 0; padding: 10px 12px;
  border-radius: 10px; background: rgba(255,107,43,0.08);
  border-left: 3px solid var(--bob-accent);
  font-size: 12px; color: var(--bob-muted);
}
.tool-checklist { display: flex; flex-direction: column; gap: 10px; }
.tool-check-row {
  background: var(--bob-card); border: 1px solid var(--bob-line);
  border-radius: 12px; padding: 10px 12px;
}
.tool-check-q { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.tool-yn { display: flex; gap: 8px; }
.tool-check-toggle {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bob-card); border: 1px solid var(--bob-line);
  border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer;
}
.tool-check-toggle input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }

/* ----- Tools needed chip ----- */
.tools-needed {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
  margin: 0 0 8px; padding: 8px 10px;
  border-radius: 10px;
  background: rgba(90, 114, 71, 0.12);
  border: 1px solid rgba(90, 114, 71, 0.35);
  font-size: 13px; line-height: 1.35;
}
.tools-needed-label {
  font-size: 11px; font-weight: 900; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bob-shelter);
  flex-shrink: 0;
}
.tools-needed-label::after { content: ":"; }
.tools-needed-text { color: var(--bob-ink); font-weight: 600; }

/* ----- Zoomable figures + lightbox ----- */
.fig-zoomable {
  position: relative;
  cursor: zoom-in;
  -webkit-user-select: none; user-select: none;
}
.fig-zoomable:focus-visible {
  outline: 2px solid var(--bob-accent); outline-offset: 2px;
}
.fig-hint {
  position: absolute; right: 8px; bottom: 8px;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(26, 30, 24, 0.78); color: #f5f1e8;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.fig-pair .fig-hint { bottom: 36px; }
.fig .fig-cap + .fig-hint,
.fig-hint.gallery-hint {
  position: absolute; right: 6px; bottom: 6px;
}
.gallery-item { position: relative; }
.gallery-item .fig-hint {
  bottom: auto; top: 6px; right: 6px;
}

body.lightbox-open { overflow: hidden; }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: max(12px, var(--bob-safe-top)) 12px calc(12px + var(--bob-safe-bottom));
  background: rgba(0, 0, 0, 0.92);
  touch-action: none;
}
.lightbox-inner {
  width: 100%; max-width: min(960px, 100%);
  max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.lightbox-img {
  max-width: 100%;
  max-height: min(78dvh, 90vh);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fffdf8;
  touch-action: pinch-zoom;
  -webkit-user-select: none; user-select: none;
}
.lightbox-cap {
  margin: 0; max-width: 40ch; text-align: center;
  color: #f5f1e8; font-size: 13px; font-weight: 700;
  line-height: 1.35; padding: 0 8px;
}
.lightbox-close {
  align-self: flex-end;
  border: 1px solid rgba(245,241,232,0.35);
  background: rgba(255,255,255,0.08); color: #f5f1e8;
  border-radius: 999px; padding: 10px 16px;
  font-weight: 800; font-size: 13px; cursor: pointer;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.lightbox-close:active { transform: scale(0.97); }

/* ----- Hatchet Mode ----- */

.home-kit-projects-host { margin-top: 4px; }
.home-kit-projects {
  background: var(--bob-card); border: 1px solid var(--bob-line);
  border-radius: 16px; padding: 14px 14px 12px;
}
.home-kit-projects-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.home-kit-projects-title {
  margin: 0; font-size: 16px; font-weight: 900;
}
.home-kit-count {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--bob-muted); white-space: nowrap;
}
.home-kit-empty, .home-kit-hint {
  margin: 0; font-size: 13px; color: var(--bob-muted); line-height: 1.35;
}
.home-kit-hint { margin-top: 8px; }
.home-kit-group {
  margin: 10px 0 4px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--bob-accent);
}
.home-kit-list {
  margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.4;
}
.home-kit-list li { margin: 2px 0; }

.hatchet-bar {
  display: none;
  align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(139, 69, 19, 0.95), rgba(90, 50, 20, 0.95));
  color: #f5f1e8;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
body.hatchet-mode .hatchet-bar { display: flex; }
.hatchet-badge {
  font-size: 11px; font-weight: 900; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 107, 43, 0.35);
  border: 1px solid rgba(255, 200, 120, 0.45);
}
.hatchet-exit {
  border: 1px solid rgba(245,241,232,0.4);
  background: rgba(0,0,0,0.25); color: #f5f1e8;
  border-radius: 999px; padding: 8px 14px;
  font-size: 12px; font-weight: 800; cursor: pointer;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.hatchet-exit:active { transform: scale(0.97); }

body.hatchet-mode .topbar {
  border-bottom-color: rgba(139, 69, 19, 0.5);
}

/* ----- Kits: checklist + craft unlocks ----- */
.kit-view { display: flex; flex-direction: column; gap: 14px; }
.kit-panel {
  background: var(--bob-card);
  border: 1px solid var(--bob-line);
  border-radius: 16px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.kit-h { margin: 0; font-size: 18px; font-weight: 900; }
.kit-sub { margin: 0; font-size: 13px; color: var(--bob-muted); line-height: 1.4; }
.kit-tip {
  margin: 0; font-size: 12px; font-weight: 700;
  color: var(--bob-accent);
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255,107,43,0.1);
  border-left: 3px solid var(--bob-accent);
}
.kit-note {
  margin: 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(90, 114, 71, 0.1);
  border: 1px solid rgba(90, 114, 71, 0.3);
  font-size: 12px; color: var(--bob-muted); line-height: 1.4;
}
.kit-note strong { color: var(--bob-ink); }
.kit-check-list { display: flex; flex-direction: column; gap: 8px; }
.kit-check {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bob-bg, transparent);
  border: 1px solid var(--bob-line);
  border-radius: 12px; padding: 12px;
  cursor: pointer; font-size: 14px;
}
.kit-check:has(input:checked) {
  border-color: var(--bob-shelter);
  background: rgba(90, 114, 71, 0.1);
}
.kit-check input {
  margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--bob-shelter);
}
.kit-check-name { font-weight: 700; display: block; }
.kit-check-hint {
  display: block; margin-top: 2px;
  font-size: 11px; font-weight: 500; color: var(--bob-muted);
}
.kit-btn {
  width: 100%; margin-top: 4px;
  border: 1px solid var(--bob-line); background: var(--bob-card);
  border-radius: 12px; padding: 12px;
  font-weight: 800; font-size: 13px; cursor: pointer;
  color: var(--bob-ink);
}
.kit-btn:active { transform: scale(0.98); border-color: var(--bob-accent); }

.kit-crafts { display: flex; flex-direction: column; gap: 10px; }
.kit-craft-summary {
  margin: 0; font-size: 13px; font-weight: 700;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,107,43,0.08);
  border: 1px solid rgba(255,107,43,0.25);
}
.kit-group-h {
  margin: 8px 0 0; font-size: 12px; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bob-muted);
}
.kit-craft {
  border: 1px solid var(--bob-line);
  border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bob-bg, transparent);
}
.kit-craft.is-unlocked {
  border-color: var(--bob-shelter);
  background: rgba(90, 114, 71, 0.12);
  box-shadow: inset 0 0 0 1px rgba(90, 114, 71, 0.25);
}
.kit-craft.is-locked { opacity: 0.92; }
.kit-craft-head {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.kit-chip {
  font-size: 10px; font-weight: 900; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: var(--bob-chip-bg); color: var(--bob-accent);
}
.kit-craft-status {
  font-size: 10px; font-weight: 900; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 999px;
}
.kit-craft-status.is-ok {
  background: rgba(90, 114, 71, 0.25); color: var(--bob-shelter);
}
.kit-craft-status.is-no {
  background: rgba(255,107,43,0.15); color: var(--bob-accent);
}
.kit-craft-count {
  margin-left: auto; font-size: 12px; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--bob-muted);
}
.kit-craft-title { font-size: 15px; }
.kit-craft-ready {
  margin: 0; font-size: 12px; font-weight: 800; color: var(--bob-shelter);
}
.kit-craft-missing {
  margin: 0; font-size: 12px; font-weight: 700; color: var(--bob-accent);
}
.kit-craft-how {
  margin: 0; font-size: 13px; line-height: 1.4; color: var(--bob-ink);
}
.kit-craft-how.is-muted { color: var(--bob-muted); font-size: 12px; }

.kit-found {
  border: 1px solid var(--bob-line);
  border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.kit-found-item { font-size: 14px; }
.kit-found-use { margin: 0; font-size: 12px; color: var(--bob-muted); line-height: 1.4; }

/* ----- Hatchet Mode challenges + homage eggs ----- */
.hatchet-screen { display: flex; flex-direction: column; gap: 14px; }

.hatchet-lore {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(139, 69, 19, 0.4);
  background: var(--bob-card);
}
.hatchet-lore-title {
  margin: 0; font-size: 18px; font-weight: 900;
}
.hatchet-lore-copy {
  margin: 0; font-size: 14px; line-height: 1.45; color: var(--bob-ink);
}
.hatchet-book-bar { margin: 0; }
.hatchet-book-list { display: flex; flex-direction: column; gap: 8px; }
.hatchet-book-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--bob-line);
  background: var(--bob-bg, transparent);
  cursor: pointer;
}
.hatchet-book-card input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; }
.hatchet-book-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hatchet-book-title { font-size: 15px; font-weight: 900; }
.hatchet-book-setup { font-size: 13px; font-weight: 700; color: var(--bob-muted); line-height: 1.35; }
.hatchet-book-task { font-size: 13px; line-height: 1.4; }
.hatchet-book-card.is-done {
  border-color: rgba(90, 114, 71, 0.55);
  background: rgba(90, 114, 71, 0.1);
}
.hatchet-book-reset { align-self: flex-start; }

.hatchet-progress-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(139, 69, 19, 0.12);
  border: 1px solid rgba(139, 69, 19, 0.35);
}
.hatchet-progress-label {
  font-size: 11px; font-weight: 900; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bob-muted);
}
.hatchet-challenge-progress {
  margin: 0; font-size: 15px; font-weight: 900;
  font-variant-numeric: tabular-nums; color: var(--bob-ink);
}
.hatchet-challenge-progress--top { color: #8b4513; }
[data-theme="night"] .hatchet-challenge-progress--top,
[data-theme="red"] .hatchet-challenge-progress--top { color: #e8a060; }

.hatchet-egg {
  display: flex; flex-direction: column; gap: 4px;
  margin: 8px 0 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(139, 69, 19, 0.08);
  border-left: 3px solid rgba(139, 69, 19, 0.55);
  font-size: 12px; line-height: 1.4; color: var(--bob-muted);
}
.hatchet-egg-label {
  font-size: 10px; font-weight: 900; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8b4513;
}
[data-theme="night"] .hatchet-egg-label,
[data-theme="red"] .hatchet-egg-label { color: #e8a060; }
.hatchet-egg-text { color: var(--bob-ink); font-size: 12px; }

.hatchet-challenges { display: flex; flex-direction: column; gap: 12px; }
.hatchet-challenge-head { gap: 8px; }
.hatchet-challenge-list { display: flex; flex-direction: column; gap: 10px; }
.hatchet-challenge {
  border: 1px solid var(--bob-line);
  border-radius: 14px;
  background: var(--bob-card);
  overflow: hidden;
}
.hatchet-challenge.is-complete {
  border-color: rgba(90, 114, 71, 0.55);
  box-shadow: inset 0 0 0 1px rgba(90, 114, 71, 0.2);
}
.hatchet-challenge-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer;
  list-style: none; font-weight: 800;
}
.hatchet-challenge-summary::-webkit-details-marker { display: none; }
.hatchet-challenge-title { flex: 1; font-size: 15px; }
.hatchet-challenge-count {
  font-size: 12px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 999px;
  background: var(--bob-chip-bg); color: var(--bob-muted);
}
.hatchet-challenge.is-complete .hatchet-challenge-count {
  background: rgba(90, 114, 71, 0.25); color: var(--bob-shelter);
}
.hatchet-challenge-body {
  padding: 0 14px 14px;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--bob-line);
  padding-top: 12px;
}
.hatchet-challenge-blurb {
  margin: 0; font-size: 13px; line-height: 1.4; color: var(--bob-muted);
}
.hatchet-challenge-checks { gap: 6px; }
.hatchet-egg-unlock {
  margin: 0; padding: 10px 12px; border-radius: 10px;
  font-size: 12px; line-height: 1.4; font-style: italic;
  background: rgba(90, 114, 71, 0.12);
  border: 1px solid rgba(90, 114, 71, 0.3);
  color: var(--bob-ink);
}
.hatchet-egg-unlock[hidden] { display: none !important; }

/* Pixel brand art */
.brand-byline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-chip {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,140,40,0.4);
}
.home-bot img,
.home-bot-img {
  width: 112px !important;
  height: 112px !important;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22), 0 0 0 2px rgba(255,140,40,0.3);
}

/* ----- Tonight Plan ----- */

.tonight-plan { display: flex; flex-direction: column; gap: 12px; }
.tonight-lead {
  margin: 0 2px;
  font-size: 14px; line-height: 1.45; color: var(--bob-muted);
}
.tonight-progress-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.tonight-progress {
  margin: 0;
  font-size: 14px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.tonight-reset {
  width: auto; margin-top: 0; padding: 10px 14px;
  flex-shrink: 0;
}
.tonight-progress-bar {
  height: 8px; border-radius: 999px;
  background: var(--bob-line);
  overflow: hidden;
}
.tonight-progress-fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a4570, #5a7247);
  transition: width 0.2s ease;
}
[data-theme="night"] .tonight-progress-fill,
[data-theme="red"] .tonight-progress-fill {
  background: linear-gradient(90deg, #5a7aad, #7a9a6a);
}
.tonight-done-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px; font-weight: 800; line-height: 1.35;
  background: rgba(90, 114, 71, 0.14);
  border: 1px solid rgba(90, 114, 71, 0.35);
  color: var(--bob-ink);
}
.tonight-done-note[hidden] { display: none !important; }
.tonight-phase-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.tonight-phase-head .section-title { margin: 0; }
.tonight-phase-count {
  font-size: 12px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 999px;
  background: var(--bob-chip-bg); color: var(--bob-chip-fg, var(--bob-muted));
}
.tonight-phase.is-phase-done {
  border-color: rgba(90, 114, 71, 0.55);
  box-shadow: inset 0 0 0 1px rgba(90, 114, 71, 0.18);
}
.tonight-phase.is-phase-done .tonight-phase-count {
  background: rgba(90, 114, 71, 0.25); color: var(--bob-shelter);
}
.tonight-check-list { gap: 8px; }
.tonight-check {
  min-height: 48px;
  align-items: center;
  padding: 14px 12px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tonight-check input {
  width: 22px; height: 22px; margin-top: 0;
  accent-color: #2a4570;
}
.tonight-check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tonight-actions { margin-top: 10px; }

/* ----- ICE / SOS + Check-in ----- */

.ice-sos-header {
  margin: 0 0 4px;
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(168, 40, 40, 0.22), rgba(168, 40, 40, 0.06));
  border: 1px solid rgba(168, 40, 40, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 80, 60, 0.12);
}
.ice-sos-kicker {
  margin: 0 0 4px;
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #a82828;
}
.ice-sos-title {
  margin: 0 0 6px;
  font-size: 22px; font-weight: 900;
  letter-spacing: 0.04em;
  color: #8e1e1e;
}
.ice-sos-sub {
  margin: 0;
  font-size: 13px; line-height: 1.4;
  color: var(--bob-muted);
}
[data-theme="night"] .ice-sos-kicker,
[data-theme="red"] .ice-sos-kicker { color: #f08080; }
[data-theme="night"] .ice-sos-title,
[data-theme="red"] .ice-sos-title { color: #ff9a8a; }

.ice-form, .ice-view, .ice-body { display: flex; flex-direction: column; gap: 12px; }
.ice-row { display: flex; flex-direction: column; gap: 6px; }
.ice-label { margin: 0; }
.ice-input, .ice-textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--bob-line); background: var(--bob-card);
  color: var(--bob-ink); font-size: 16px; font-weight: 600;
  font-family: inherit;
}
.ice-textarea { resize: vertical; min-height: 88px; line-height: 1.4; font-weight: 500; }
.ice-hint {
  margin: 0;
  font-size: 12px; line-height: 1.35;
  color: var(--bob-muted);
}
.ice-save {
  background: rgba(168, 40, 40, 0.12);
  border-color: rgba(168, 40, 40, 0.45);
  color: #8e1e1e;
}
[data-theme="night"] .ice-save,
[data-theme="red"] .ice-save { color: #ff9a8a; }

.ice-view-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--bob-card); border: 1px solid var(--bob-line);
}
.ice-view-label {
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bob-muted);
}
.ice-view-value {
  font-size: 15px; font-weight: 700; line-height: 1.35;
  white-space: pre-wrap; word-break: break-word;
}
.ice-view-value.is-big { font-size: 18px; }

.ice-plan-box {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(168, 40, 40, 0.08);
  border: 1px solid rgba(168, 40, 40, 0.3);
  display: flex; flex-direction: column; gap: 6px;
}
.ice-plan-text {
  margin: 0;
  font-size: 14px; line-height: 1.45; font-weight: 600;
  white-space: pre-wrap;
}

.ice-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.ice-actions .action-btn,
.ice-actions a.action-btn {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.ice-call, .ice-call-alt {
  border-color: rgba(168, 40, 40, 0.5) !important;
  color: #a82828 !important;
}
.ice-flash {
  margin: 0;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 800;
  background: rgba(90, 114, 71, 0.14);
  border: 1px solid rgba(90, 114, 71, 0.35);
}
.ice-flash[hidden] { display: none !important; }
.ice-disclaimer { margin-top: 4px; }

/* Check-in home banner */
.checkin-home-banner {
  margin: 4px 0 8px;
  border: 0;
  background: transparent;
  overflow: visible;
}
.checkin-home-banner.is-ok,
.checkin-home-banner.is-soon,
.checkin-home-banner.is-overdue {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.checkin-home-quiet,
.checkin-home-status {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.checkin-home-row {
  display: flex; flex-direction: column; gap: 0;
}
.checkin-home-row .checkin-im-back {
  width: auto; margin: 0 12px 12px;
  align-self: flex-start;
  border-color: rgba(168, 40, 40, 0.45);
}

.checkin-status {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--bob-line);
  background: var(--bob-card);
  display: flex; flex-direction: column; gap: 4px;
}
.checkin-status.is-ok {
  border-color: rgba(90, 114, 71, 0.55);
  background: rgba(90, 114, 71, 0.12);
}
.checkin-status.is-soon {
  border-color: rgba(224, 122, 58, 0.65);
  background: rgba(224, 122, 58, 0.14);
}
.checkin-status.is-overdue {
  border-color: rgba(168, 40, 40, 0.7);
  background: rgba(168, 40, 40, 0.16);
}
.checkin-status-badge {
  margin: 0;
  font-size: 12px; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.checkin-status.is-ok .checkin-status-badge { color: var(--bob-shelter); }
.checkin-status.is-soon .checkin-status-badge { color: var(--bob-fire); }
.checkin-status.is-overdue .checkin-status-badge { color: #a82828; }
.checkin-status-text, .checkin-status-note {
  margin: 0;
  font-size: 14px; font-weight: 700; line-height: 1.35;
}
.checkin-status-note { font-weight: 600; color: var(--bob-muted); }
.checkin-datetime { max-width: 100%; }
.checkin-alert-row {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px; border-radius: 12px;
  border: 1px dashed var(--bob-line);
}
.checkin-enable-alerts { width: auto; align-self: flex-start; margin-top: 0; }
.checkin-clear { margin-top: 0; }

/* ----- Practice drills ----- */
.drills-panel { display: flex; flex-direction: column; gap: 12px; }
.drills-head { display: flex; flex-direction: column; gap: 4px; }
.drills-kicker {
  margin: 0;
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bob-muted);
}
.drills-title { margin: 0; font-size: 22px; }
.drills-sub, .drills-stats {
  margin: 0; font-size: 14px; color: var(--bob-muted); line-height: 1.4;
}
.drills-care { margin: 8px 0; }
.drills-mode-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 480px) {
  .drills-mode-grid { grid-template-columns: repeat(3, 1fr); }
}
.drills-mode-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--bob-line);
  background: var(--bob-card); color: inherit;
  text-align: left; cursor: pointer; font: inherit;
}
.drills-mode-btn:hover, .drills-mode-btn:focus {
  outline: none; border-color: var(--bob-accent);
}
.drills-mode-label { font-size: 16px; font-weight: 800; }
.drills-mode-sub { font-size: 12px; color: var(--bob-muted); }
.drills-progress-row {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--bob-muted);
}
.drills-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--bob-line); background: var(--bob-card);
}
.drills-card.is-plant { border-color: rgba(90, 114, 71, 0.45); }
.drills-mode-tag {
  margin: 0; font-size: 11px; font-weight: 900;
  letter-spacing: 0.12em; color: var(--bob-accent);
}
.drills-fig {
  margin: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--bob-line);
}
.drills-fig img {
  display: block; width: 100%; max-height: 220px; object-fit: cover;
}
.drills-prompt {
  margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4;
  white-space: pre-wrap;
}
.drills-id-reminder {
  margin: 0; font-size: 12px; font-weight: 600;
  color: var(--bob-shelter); line-height: 1.35;
}
.drills-choices { display: flex; flex-direction: column; gap: 8px; }
.drills-choice {
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--bob-line);
  background: var(--bob-bg, transparent); color: inherit;
  text-align: left; cursor: pointer; font: inherit; font-weight: 600;
  line-height: 1.35;
}
.drills-choice:hover:not(:disabled),
.drills-choice:focus:not(:disabled) {
  outline: none; border-color: var(--bob-accent);
}
.drills-choice:disabled { cursor: default; opacity: 0.95; }
.drills-choice.is-correct {
  border-color: rgba(90, 114, 71, 0.7);
  background: rgba(90, 114, 71, 0.16);
}
.drills-choice.is-wrong {
  border-color: rgba(168, 40, 40, 0.65);
  background: rgba(168, 40, 40, 0.12);
}
.drills-feedback {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: 12px;
  border: 1px solid var(--bob-line);
}
.drills-feedback[hidden] { display: none !important; }
.drills-feedback.is-correct {
  border-color: rgba(90, 114, 71, 0.55);
  background: rgba(90, 114, 71, 0.12);
}
.drills-feedback.is-wrong {
  border-color: rgba(168, 40, 40, 0.55);
  background: rgba(168, 40, 40, 0.1);
}
.drills-feedback-title { margin: 0; font-size: 14px; font-weight: 900; }
.drills-feedback.is-correct .drills-feedback-title { color: var(--bob-shelter); }
.drills-feedback.is-wrong .drills-feedback-title { color: #a82828; }
.drills-feedback-explain { margin: 0; font-size: 13px; line-height: 1.4; }
.drills-actions, .seasons-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* Saved maps — Forests / Lakes tabs reuse the season chips */
.maps-panel, .maps-body { display: flex; flex-direction: column; gap: 12px; }
.maps-about { margin: 0; font-size: 14px; line-height: 1.45; }
.maps-credit { margin: 0; font-size: 12px; line-height: 1.45; color: var(--bob-muted); }
.drills-next, .drills-again { margin-top: 4px; }

/* Home shelves — drills, seasons, guides, builds are visible. No extra card. */
.home-shelf {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-shelf-title {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bob-muted);
}
.home-shelf-grid,
.home-shelf-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Home secondary — drills / seasons / guides / builds */
.home-secondary {
  display: flex; flex-direction: column; gap: 10px;
  margin: 2px 0 4px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--bob-line);
  background: var(--bob-card);
}
.home-secondary-title {
  margin: 0;
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bob-muted);
}
.home-secondary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* ----- Seasonal calendar ----- */
.seasons-panel { display: flex; flex-direction: column; gap: 12px; }
.seasons-kicker {
  margin: 0; font-size: 11px; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bob-muted);
}
.seasons-title { margin: 0; font-size: 22px; }
.seasons-sub { margin: 0; font-size: 14px; color: var(--bob-muted); line-height: 1.4; }
.seasons-disclaimer { margin: 0; }
.seasons-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.seasons-chip {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 0; min-width: 48px; padding: 8px 10px;
  border-radius: 999px; border: 1px solid var(--bob-line);
  background: var(--bob-chip-bg, var(--bob-card)); color: var(--bob-chip-fg);
  cursor: pointer; font: inherit; font-weight: 700; font-size: 12px;
}
.seasons-chip:hover, .seasons-chip:focus {
  outline: none; border-color: var(--bob-accent);
}
.seasons-chip.is-selected {
  border-color: var(--bob-accent);
  background: rgba(90, 114, 71, 0.18);
  color: var(--bob-accent);
}
.seasons-chip.is-this-month:not(.is-selected) {
  box-shadow: inset 0 0 0 1px rgba(61, 110, 140, 0.55);
}
.seasons-chip-now {
  font-size: 9px; font-weight: 900; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bob-food);
}
.seasons-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--bob-line); background: var(--bob-card);
}
.seasons-card-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
}
.seasons-card-kicker {
  margin: 0; width: 100%;
  font-size: 11px; font-weight: 900; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bob-muted);
}
.seasons-card-title { margin: 0; font-size: 20px; }
.seasons-badge {
  font-size: 11px; font-weight: 900; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px;
  background: rgba(61, 110, 140, 0.18); color: var(--bob-food);
}
.seasons-block-title {
  margin: 0 0 4px; font-size: 14px; font-weight: 800;
}
.seasons-ul {
  margin: 0; padding-left: 1.15em;
  font-size: 13px; line-height: 1.45;
}
.seasons-ul li { margin-bottom: 4px; }

/* ----- Decision trees (stranded / vitals) ----- */
.tree-panel { display: flex; flex-direction: column; gap: 10px; }
.tree-kicker, .tracks-kicker, .vitals-kicker {
  margin: 0; font-size: 11px; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bob-muted);
}
.tree-title, .tracks-title, .vitals-title { margin: 0; font-size: 22px; }
.tree-lead, .tracks-sub, .vitals-sub {
  margin: 0; font-size: 14px; color: var(--bob-muted); line-height: 1.4;
}
.tree-disclaimer, .tracks-disclaimer, .vitals-disclaimer { margin: 0; }
.tree-step {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--bob-line); background: var(--bob-card);
}
.tree-step.is-warn {
  border-color: rgba(180, 120, 40, 0.55);
  background: linear-gradient(135deg, rgba(180,120,40,0.12), transparent 70%);
}
.tree-step.is-ok {
  border-color: rgba(90, 114, 71, 0.55);
  background: linear-gradient(135deg, rgba(90,114,71,0.12), transparent 70%);
}
.tree-step.is-emergency {
  border-color: rgba(168, 40, 40, 0.65);
  background: linear-gradient(135deg, rgba(168,40,40,0.14), transparent 70%);
}
.tree-step-head {
  display: flex; align-items: flex-start; gap: 10px;
}
.tree-step-num {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 16px;
  background: var(--bob-chip-bg, var(--bob-card));
  border: 2px solid var(--bob-accent); color: var(--bob-accent);
}
.tree-step.is-emergency .tree-step-num {
  border-color: #a82828; color: #a82828;
}
.tree-step-title { margin: 0; font-size: 18px; line-height: 1.25; }
.tree-step-body { margin: 0; font-size: 14px; line-height: 1.45; }
.tree-ul {
  margin: 0; padding-left: 1.15em;
  font-size: 13px; line-height: 1.45;
}
.tree-ul li { margin-bottom: 4px; }
.tree-step-note { margin: 0; font-size: 13px; }
.tree-yn {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 4px;
}
.tree-yn-btn {
  min-height: 56px; padding: 12px 14px;
  border-radius: 14px; border: 2px solid var(--bob-line);
  font: inherit; font-weight: 900; font-size: 16px;
  cursor: pointer; color: var(--bob-chip-fg);
  background: var(--bob-chip-bg, var(--bob-card));
}
.tree-yn-btn.is-yes {
  border-color: rgba(90, 114, 71, 0.7);
  background: linear-gradient(135deg, rgba(90,114,71,0.22), transparent 65%);
  color: var(--bob-shelter);
}
.tree-yn-btn.is-no {
  border-color: rgba(61, 110, 140, 0.7);
  background: linear-gradient(135deg, rgba(61,110,140,0.18), transparent 65%);
  color: var(--bob-food);
}
.tree-yn-btn:hover, .tree-yn-btn:focus {
  outline: none; filter: brightness(1.05);
  box-shadow: 0 0 0 2px var(--bob-accent);
}
.tree-actions, .tree-footer-actions, .tracks-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tree-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tree-nav-btn {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--bob-line);
  background: transparent; color: var(--bob-muted);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.tree-nav-btn:hover, .tree-nav-btn:focus {
  outline: none; border-color: var(--bob-accent); color: var(--bob-accent);
}

/* Nested tree under vitals — soften duplicate kickers */
.vitals-tree .tree-kicker { display: none; }
.vitals-tree .tree-title { font-size: 18px; }
.vitals-tree .tree-lead { font-size: 13px; }
.vitals-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.vitals-tab {
  min-height: 48px; padding: 10px;
  border-radius: 12px; border: 2px solid var(--bob-line);
  background: var(--bob-chip-bg, var(--bob-card)); color: var(--bob-chip-fg);
  font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
}
.vitals-tab.is-selected {
  border-color: var(--bob-accent);
  background: rgba(90, 114, 71, 0.18);
  color: var(--bob-accent);
}

/* Tracks */
.tracks-panel { display: flex; flex-direction: column; gap: 12px; }
.tracks-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  position: sticky; top: 0; z-index: 2;
  padding: 6px 0; background: var(--bob-bg, transparent);
}
.tracks-chip {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--bob-line);
  background: var(--bob-chip-bg, var(--bob-card)); color: var(--bob-chip-fg);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.tracks-chip:hover, .tracks-chip:focus {
  outline: none; border-color: var(--bob-accent);
}
.tracks-list { display: flex; flex-direction: column; gap: 12px; }
.track-card {
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--bob-line); background: var(--bob-card);
  display: flex; flex-direction: column; gap: 8px;
}
.track-card-head {
  display: flex; align-items: center; gap: 12px;
}
.track-svg {
  flex: 0 0 auto; width: 88px; height: 58px;
  color: var(--bob-accent);
  border-radius: 10px; border: 1px dashed var(--bob-line);
  display: grid; place-items: center;
  background: rgba(90, 114, 71, 0.06);
}
.track-svg svg { width: 100%; height: 100%; }
.track-name { margin: 0; font-size: 18px; }
.track-block-title {
  margin: 0 0 2px; font-size: 12px; font-weight: 900;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--bob-muted);
}
.track-block-text { margin: 0; font-size: 13px; line-height: 1.45; }

/* Home field guides / builds choosers (inside .home-secondary) */
.home-guides-chooser {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.home-guides-chooser[hidden] { display: none !important; }
.home-guides-link {
  flex: 1 1 140px; min-height: 44px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--bob-line);
  background: var(--bob-chip-bg); color: var(--bob-chip-fg);
  font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 8px;
}
.home-guides-ico { width: 32px; height: 32px; flex-shrink: 0; }
.home-guides-ico .need-svg { width: 32px; height: 32px; }
.home-guides-link:hover, .home-guides-link:focus {
  outline: none; border-color: var(--bob-accent);
}

/* ----- Kit inventory photos (local IndexedDB) ----- */
.kit-check-row {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--bob-line);
  border-radius: 12px; padding: 10px 12px;
  background: var(--bob-bg, transparent);
}
.kit-check-row .kit-check {
  border: none; padding: 0; background: transparent;
}
.kit-check-row:has(input:checked) {
  border-color: var(--bob-shelter);
  background: rgba(90, 114, 71, 0.1);
}
.kit-photo-slot {
  display: flex; gap: 10px; align-items: center;
  padding: 4px 0 0 30px;
}
.kit-photo-thumb {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--bob-line);
  flex-shrink: 0; background: var(--bob-card);
}
.kit-photo-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.kit-photo-status {
  font-size: 11px; font-weight: 700; color: var(--bob-muted);
}
.kit-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-photo-btn {
  border: 1px solid var(--bob-line); background: var(--bob-card);
  border-radius: 999px; padding: 6px 10px;
  font-size: 11px; font-weight: 800; cursor: pointer;
  color: var(--bob-ink);
}
.kit-photo-btn:active { transform: scale(0.97); border-color: var(--bob-accent); }
.kit-photo-btn.is-danger { color: var(--bob-accent); }
.kit-photo-input {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Structures gallery cards with guide btn */
.gallery-card { display: flex; flex-direction: column; gap: 6px; }
.gallery-guide-btn {
  border: 1px solid var(--bob-line); background: var(--bob-card);
  border-radius: 10px; padding: 8px 10px;
  font-size: 12px; font-weight: 800; cursor: pointer;
  color: var(--bob-accent);
}
.gallery-guide-btn:active { transform: scale(0.98); }

/* Home buttons — 8-bit press / keyboard glow (bevel inverts, face lights) */

/* =====================================================================
   SLEEK BUTTON SYSTEM (Home, Menu, shared buttons)
   Calm surfaces · one radius · hairline borders · soft shadow.
   Pixel sprites are the single 8-bit accent, shown at clean 3x / 2x
   inside a tinted icon tile.
   ===================================================================== */

/* ---- Category accents (kicker + icon tile tint) — cards are dark in day + night ---- */
.need-btn                 { --c: #b3c2a2; }
.need-btn.is-fire         { --c: #f2a274; }
.need-btn.is-shelter,
.need-btn.is-drills,
.need-btn.is-builds       { --c: #a9c48e; }
.need-btn.is-food         { --c: #8fbcd8; }
.need-btn.is-tools,
.need-btn.is-guides       { --c: #d8b882; }
.need-btn.is-tonight      { --c: #a2b8e0; }
.need-btn.is-kit          { --c: #88c6c4; }
.need-btn.is-hatchet      { --c: #e8a56c; }
.need-btn.is-seasons      { --c: #e8c86e; }
.need-btn.is-water        { --c: #8fc4e0; }
.need-btn.is-checkin      { --c: #b8c6a6; }
/* Red (night-vision) mode keeps every accent in the red band */
[data-theme="red"] .need-btn { --c: #ff7a45; }

/* ---- Base button: calm card ---- */
.need-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 14px;
  width: 100%; min-width: 44px; min-height: 136px;
  margin: 0; padding: 14px;
  border: 1px solid var(--ui-hairline);
  border-radius: var(--ui-r);
  background: var(--ui-surface);
  color: var(--ui-title);
  box-shadow: var(--ui-elev);
  text-align: left; font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
@media (hover: hover) {
  .need-btn:hover { border-color: var(--ui-hairline-strong); }
}
.need-btn:active {
  transform: scale(0.985);
  background: var(--ui-surface-press);
  box-shadow: none;
}
.need-btn:focus { outline: none; }
.need-btn:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}

/* ---- Icon tile: the one 8-bit accent ---- */
.need-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: var(--ui-r-tile);
  background: rgba(91, 107, 72, 0.12);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 16%, transparent);
}
.need-icon .need-svg {
  display: block;
  width: 48px; height: 48px;           /* 16px art at exactly 3x */
  shape-rendering: crispEdges;
  image-rendering: pixelated;
}
.need-icon {
  background: color-mix(in srgb, var(--c) 14%, #121512);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent);
}
[data-theme="red"] .need-icon { background: color-mix(in srgb, var(--c) 12%, #0d0200); }
/* Tonight sprite is a full night-sky square: let it own the tile */
.need-btn.is-tonight .need-icon { background: #1a3f86; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); overflow: hidden; }

/* ---- Type: kicker / title / subline ---- */
.need-text {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; min-width: 0;
}
.need-kicker,
.checkin-home-kicker {
  font-size: 11px; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c);
}
.need-title {
  font-size: 19px; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ui-title);
}
.need-sub,
.checkin-home-msg {
  display: block; margin-top: 3px;
  font-size: 13px; font-weight: 500; line-height: 1.35;
  letter-spacing: 0; text-transform: none;
  color: var(--ui-sub);
}

/* ---- Chevron (wide rows + 2x2 cards) ---- */
.need-btn::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-top: 2px solid var(--ui-chev);
  border-right: 2px solid var(--ui-chev);
  transform: rotate(45deg);
  pointer-events: none;
}
.home-needs .need-btn::after { top: 22px; right: 18px; }
.need-btn-compact::after { display: none; }

/* ---- Wide rows ---- */
.need-btn-wide {
  flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 14px;
  min-height: 84px; padding: 14px 40px 14px 14px;
}
.need-btn-wide .need-text { flex: 1; }
.need-btn-wide::after { top: 50%; right: 18px; margin-top: -4px; }

/* ---- 2x2 primary needs ---- */
.home-needs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-needs .need-title { font-size: 21px; }

/* ---- Compact shelf tiles ---- */
.need-btn-compact {
  flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 12px;
  min-height: 86px; padding: 12px;
}
.need-btn-compact .need-icon { width: 44px; height: 44px; border-radius: 11px; }
.need-btn-compact .need-icon .need-svg { width: 32px; height: 32px; }   /* exactly 2x */
.need-btn-compact .need-kicker { font-size: 10px; letter-spacing: 0.12em; }
.need-btn-compact .need-title { font-size: 15px; }
.need-btn-compact .need-sub { font-size: 12px; margin-top: 1px; line-height: 1.3; }

/* ---- SOS / ICE: urgent, refined ---- */
.need-btn.is-ice {
  --c: #ffffff;
  background: linear-gradient(180deg, #c8322a 0%, #a8231c 100%);
  border-color: #921d17;
  color: #fff;
  box-shadow: 0 1px 2px rgba(120, 20, 14, 0.25), 0 10px 22px -10px rgba(176, 34, 26, 0.65);
}
.need-btn.is-ice .need-kicker { color: rgba(255, 255, 255, 0.82); letter-spacing: 0.16em; }
.need-btn.is-ice .need-title { color: #fff; text-transform: uppercase; letter-spacing: 0.02em; }
.need-btn.is-ice .need-sub { color: rgba(255, 255, 255, 0.86); }
.need-btn.is-ice .need-icon {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px rgba(90, 10, 6, 0.3);
}
.need-btn.is-ice::after { border-color: rgba(255, 255, 255, 0.75); }
.need-btn.is-ice:active { background: linear-gradient(180deg, #b52c25 0%, #951e18 100%); }
.need-btn.is-ice:focus-visible { outline-color: #c8322a; }
[data-theme="night"] .need-btn.is-ice,
[data-theme="red"] .need-btn.is-ice {
  background: linear-gradient(180deg, #ad2a22 0%, #8c1c15 100%);
  border-color: #6e1510;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
[data-theme="night"] .need-btn.is-ice .need-icon,
[data-theme="red"] .need-btn.is-ice .need-icon { background: rgba(255, 240, 236, 0.92); }

/* ---- Check-in banner (status-aware) ---- */
.checkin-home-banner { margin: 0; border: 0; background: transparent; overflow: visible; }
.checkin-home-banner .need-btn.is-checkin { min-height: 76px; margin: 0; }
.checkin-home-msg { font-size: 15px; font-weight: 650; color: var(--ui-title); margin-top: 1px; }
.checkin-home-banner.is-ok .need-btn.is-checkin { --c: #a9c48e; }
.checkin-home-banner.is-soon .need-btn.is-checkin {
  --c: #f2a274;
  border-color: rgba(224, 122, 58, 0.55);
  background: linear-gradient(0deg, rgba(224, 122, 58, 0.07), rgba(224, 122, 58, 0.07)), var(--ui-surface);
}
.checkin-home-banner.is-overdue .need-btn.is-checkin {
  --c: #ff8a80;
  border-color: rgba(179, 38, 30, 0.6);
  background: linear-gradient(0deg, rgba(179, 38, 30, 0.08), rgba(179, 38, 30, 0.08)), var(--ui-surface);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}
[data-theme="red"] .checkin-home-banner.is-ok .need-btn.is-checkin { --c: #ff9a6a; }
[data-theme="red"] .checkin-home-banner.is-soon .need-btn.is-checkin { --c: #ffb07a; }
[data-theme="red"] .checkin-home-banner.is-overdue .need-btn.is-checkin { --c: #ff6b5a; }
.checkin-home-row { gap: 8px; }
.checkin-home-row .checkin-im-back { margin: 0; align-self: flex-start; }

/* ---- Home layout rhythm ---- */
.home-hub { gap: 10px; padding-top: 2px; }
.home-bot {
  gap: 14px; padding: 14px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-hairline);
  border-radius: var(--ui-r);
  box-shadow: var(--ui-elev);
}
.home-bot img,
.home-bot-img {
  width: 84px !important; height: 84px !important;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--ui-hairline-strong);
}
.home-bot .home-bot-hi { font-size: 17px; font-weight: 800; letter-spacing: -0.005em; color: var(--ui-title); }
.home-bot p { color: var(--ui-sub); }
.home-hub > .bot-tip { margin-bottom: 4px; }

.home-shelf { gap: 10px; }
.home-shelf-title,
.home-kit-projects-title {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 2px 0;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ui-sub);
}
.home-shelf-title::after {
  content: ''; flex: 1; height: 1px; background: var(--ui-hairline-strong);
}
.home-shelf-grid,
.home-shelf-pair { gap: 10px; }
.home-shelf-pair { margin-top: 4px; }

.home-kit-projects-host { margin: 0; }
.home-kit-projects {
  background: var(--ui-surface);
  border: 1px solid var(--ui-hairline);
  border-radius: var(--ui-r);
  box-shadow: var(--ui-elev);
  padding: 14px 16px;
}
.home-kit-projects-head { margin-bottom: 6px; align-items: center; }
.home-kit-projects-title { margin: 0; }
.home-kit-count {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--ui-tile-neutral); color: var(--ui-sub);
}
.home-kit-empty, .home-kit-hint { color: var(--ui-sub); }
.home-disclaimer { color: var(--ui-sub); margin-top: 14px; }

/* BugOutBot tip: quieter bubble */
.bot-tip {
  background: var(--ui-surface);
  border: 1px solid var(--ui-hairline);
  border-radius: var(--ui-r);
  box-shadow: var(--ui-elev);
  padding: 12px;
}
.bot-tip-img { box-shadow: 0 0 0 1px var(--ui-hairline-strong); }
.bot-tip-bubble {
  background: rgba(255, 107, 43, 0.07);
  border-color: rgba(255, 107, 43, 0.2);
  border-radius: var(--ui-r-tile);
}
.bot-tip-bubble::before {
  background: #fff4ec;
  border-color: rgba(255, 107, 43, 0.2);
}
[data-theme="night"] .bot-tip-bubble::before { background: #2a1e16; }
[data-theme="red"] .bot-tip-bubble::before { background: #2a0a00; }
.bot-tip-label { font-weight: 700; letter-spacing: 0.12em; }

/* =====================================================================
   MENU — grouped list (one card per group, hairline separators)
   ===================================================================== */
.menu-panel { padding: 8px 14px calc(18px + var(--bob-safe-bottom)); }
.menu-panel > h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
  text-transform: none; margin: 6px 4px 6px;
  color: var(--ui-title);
}
.menu-group {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--ui-sub);
  margin: 20px 6px 8px;
}
.menu-group:first-of-type { margin-top: 10px; }
.menu-item {
  position: relative;
  min-height: 60px;
  margin: 0; padding: 10px 40px 10px 12px;
  gap: 14px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-hairline);
  border-top-width: 0; border-bottom-width: 0;
  border-radius: 0;
  color: var(--ui-title);
  transition: background-color 0.12s ease;
}
.menu-group + .menu-item { border-top-width: 1px; border-radius: var(--ui-r) var(--ui-r) 0 0; }
.menu-item:last-child,
.menu-item:has(+ .menu-group) { border-bottom-width: 1px; border-radius: 0 0 var(--ui-r) var(--ui-r); }
.menu-group + .menu-item:last-child,
.menu-group + .menu-item:has(+ .menu-group) { border-radius: var(--ui-r); }
.menu-item + .menu-item { border-top-width: 0; }
.menu-item + .menu-item::before {
  content: '';
  position: absolute; top: 0; left: 64px; right: 0;
  height: 1px; background: var(--ui-hairline);
}
.menu-item > div:last-child { flex: 1; min-width: 0; }
.menu-item::after {
  content: '';
  position: absolute; right: 18px; top: 50%;
  width: 7px; height: 7px; margin-top: -4px;
  border-top: 2px solid var(--ui-chev);
  border-right: 2px solid var(--ui-chev);
  transform: rotate(45deg);
}
.menu-item:active { background: var(--ui-surface-press); }
.menu-item:focus { outline: none; }
.menu-item:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: -2px; z-index: 1; }
.menu-item.active { border-color: var(--ui-hairline); box-shadow: inset 3px 0 0 var(--bob-accent); }
.menu-item.active .t { color: var(--bob-accent); }
.menu-item .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ui-tile-neutral);
  box-shadow: inset 0 0 0 1px var(--ui-hairline);
  color: var(--bob-accent);
  font-size: 19px; line-height: 1;
}
.menu-item .t { font-size: 15px; font-weight: 700; letter-spacing: -0.005em; }
.menu-item .s { font-size: 12.5px; opacity: 1; color: var(--ui-sub); margin-top: 1px; line-height: 1.3; }
.menu-close {
  margin-top: 18px; min-height: 48px; padding: 12px;
  border: 1px solid var(--ui-hairline-strong);
  border-radius: var(--ui-r-tile);
  background: var(--ui-surface);
  color: var(--ui-title);
  font-weight: 700;
}
.menu-close:active { background: var(--ui-surface-press); }

/* =====================================================================
   SHARED BUTTONS on other screens — same surface, border, press, focus
   ===================================================================== */
.kit-btn, .tool-btn, .gallery-guide-btn, .tree-yn-btn, .vitals-tab,
.topbar-back, .topbar-home, .topbar-theme {
  min-height: 44px;
  border: 1px solid var(--ui-hairline-strong);
  border-radius: var(--ui-r-tile);
  background: var(--ui-surface);
  color: var(--ui-title);
  font-weight: 700;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.action-btn, .tree-nav-btn, .kit-photo-btn {
  min-height: 36px;
  border: 1px solid var(--ui-hairline-strong);
  border-radius: 999px;
  background: var(--ui-surface);
  color: var(--ui-title);
  font-weight: 700;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.action-btn { padding: 8px 14px; font-size: 13px; }
.tree-nav-btn { color: var(--ui-sub); }
.gallery-guide-btn { color: var(--bob-accent); }
.kit-photo-btn.is-danger { color: var(--bob-accent); }
.kit-btn:active, .tool-btn:active, .gallery-guide-btn:active, .tree-yn-btn:active, .vitals-tab:active,
.topbar-back:active, .topbar-home:active, .topbar-theme:active,
.action-btn:active, .tree-nav-btn:active, .kit-photo-btn:active {
  transform: scale(0.98);
  background: var(--ui-surface-press);
  border-color: var(--ui-hairline-strong);
}
.kit-btn:focus-visible, .tool-btn:focus-visible, .gallery-guide-btn:focus-visible, .tree-yn-btn:focus-visible,
.vitals-tab:focus-visible, .topbar-back:focus-visible, .topbar-home:focus-visible, .topbar-theme:focus-visible,
.action-btn:focus-visible, .tree-nav-btn:focus-visible, .kit-photo-btn:focus-visible,
.drills-mode-btn:focus-visible, .drills-choice:focus-visible, .tools-item:focus-visible,
.seasons-chip:focus-visible, .tracks-chip:focus-visible, .menu-close:focus-visible {
  outline: 2px solid var(--ui-focus); outline-offset: 2px;
}
.tree-yn-btn:hover, .tree-yn-btn:focus { filter: none; box-shadow: none; }
.tool-btn { font-size: 14px; padding: 10px 12px; }
.tool-btn.is-primary {
  background: var(--bob-accent); border-color: transparent; color: #1a1712;
  box-shadow: 0 6px 14px -8px rgba(224, 96, 42, 0.8);
}
.tool-btn.is-primary:active { background: #ea5f22; }
.tool-btn.is-on { border-color: var(--bob-accent); box-shadow: inset 0 0 0 1px var(--bob-accent); }
.tree-footer-actions .tool-btn { flex: 1 1 calc(33.333% - 8px); }

.tree-yn-btn { min-height: 56px; font-weight: 800; }
.tree-yn-btn.is-yes {
  border-color: rgba(76, 106, 58, 0.45);
  background: linear-gradient(0deg, rgba(76, 106, 58, 0.09), rgba(76, 106, 58, 0.09)), var(--ui-surface);
  color: var(--bob-shelter);
}
.tree-yn-btn.is-no {
  border-color: rgba(44, 99, 132, 0.45);
  background: linear-gradient(0deg, rgba(44, 99, 132, 0.08), rgba(44, 99, 132, 0.08)), var(--ui-surface);
  color: var(--bob-food);
}
[data-theme="night"] .tree-yn-btn.is-yes { color: #a9c48e; }
[data-theme="night"] .tree-yn-btn.is-no { color: #8fbcd8; }
.vitals-tab.is-selected {
  border-color: var(--bob-accent);
  background: linear-gradient(0deg, rgba(255, 107, 43, 0.08), rgba(255, 107, 43, 0.08)), var(--ui-surface);
  color: var(--bob-accent);
}

/* List rows (Field Tools) — same grouped look as the menu */
.tools-list {
  gap: 0;
  background: var(--ui-surface);
  border: 1px solid var(--ui-hairline);
  border-radius: var(--ui-r);
  box-shadow: var(--ui-elev);
  overflow: hidden;
}
.tools-item {
  position: relative;
  min-height: 62px;
  padding: 10px 40px 10px 12px;
  border: 0; border-radius: 0;
  background: transparent;
  color: var(--ui-title);
}
.tools-item + .tools-item::before {
  content: '';
  position: absolute; top: 0; left: 64px; right: 0;
  height: 1px; background: var(--ui-hairline);
}
.tools-item > div:last-child { flex: 1; min-width: 0; }
.tools-item::after {
  content: '';
  position: absolute; right: 18px; top: 50%;
  width: 7px; height: 7px; margin-top: -4px;
  border-top: 2px solid var(--ui-chev);
  border-right: 2px solid var(--ui-chev);
  transform: rotate(45deg);
}
.tools-item:active { background: var(--ui-surface-press); border-color: var(--ui-hairline); }
.tools-item .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ui-tile-neutral);
  box-shadow: inset 0 0 0 1px var(--ui-hairline);
}
.tools-item .t { font-weight: 700; }
.tools-item .s { opacity: 1; color: var(--ui-sub); font-size: 12.5px; }

/* Card-like choices */
.drills-mode-btn, .drills-choice {
  border-color: var(--ui-hairline-strong);
  background: var(--ui-surface);
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.drills-mode-btn { border-radius: var(--ui-r); box-shadow: var(--ui-elev); }
.drills-choice { border-radius: var(--ui-r-tile); min-height: 48px; }
.drills-mode-btn:active, .drills-choice:active:not(:disabled) { transform: scale(0.985); background: var(--ui-surface-press); }

@media (prefers-reduced-motion: reduce) {
  .need-btn, .menu-item, .kit-btn, .tool-btn, .action-btn, .tree-yn-btn { transition: none; }
  .need-btn:active, .kit-btn:active, .tool-btn:active, .action-btn:active { transform: none; }
}

/* Cards on inner screens share the same surface + hairline + radius */
.section, .tree-step, .kit-panel, .drills-card, .seasons-card, .track-card,
.checkin-status, .hatchet-lore, .hatchet-challenge, .stub-panel {
  background-color: var(--ui-surface);
  border-color: var(--ui-hairline-strong);
  border-radius: var(--ui-r);
}
/* Mouse/tap focus shouldn't look "selected"; keyboard focus still gets the ring */
.drills-mode-btn:focus:not(:focus-visible),
.drills-choice:focus:not(:focus-visible):not(.is-correct):not(.is-wrong),
.seasons-chip:focus:not(:focus-visible):not(.is-selected),
.tracks-chip:focus:not(:focus-visible) { border-color: var(--ui-hairline-strong); }
.drills-mode-btn:hover:not(:focus-visible),
.drills-choice:hover:not(:disabled):not(:focus-visible) { border-color: var(--ui-chev); }

/* =====================================================================
   PASS 2 — dark cards in day mode + compact, grouped Home & Menu
   ===================================================================== */

/* Dark navigation cards on the light paper page (day theme) */
[data-theme="day"] :is(.need-btn, .menu-item, .home-bot, .home-hub > .bot-tip, .home-kit-projects, .tools-list) {
  --ui-surface: #1e231d;
  --ui-surface-press: #283027;
  --ui-hairline: rgba(255, 255, 255, 0.07);
  --ui-hairline-strong: rgba(255, 255, 255, 0.14);
  --ui-elev: 0 1px 2px rgba(26, 30, 24, 0.18), 0 8px 18px -10px rgba(26, 30, 24, 0.45);
  --ui-title: #f1ece0;
  --ui-sub: #a9b0a1;
  --ui-chev: rgba(241, 236, 224, 0.35);
  --ui-tile-neutral: rgba(255, 255, 255, 0.07);
  color: var(--ui-title);
}
[data-theme="day"] .menu-item { border-color: #1e231d; }
[data-theme="day"] .home-hub > .bot-tip .bot-tip-text { color: var(--ui-title); }
[data-theme="day"] .home-hub > .bot-tip .bot-tip-bubble { background: rgba(255, 107, 43, 0.1); border-color: rgba(255, 107, 43, 0.22); }
[data-theme="day"] .home-hub > .bot-tip .bot-tip-bubble::before { background: #2f2a21; border-color: rgba(255, 107, 43, 0.22); }
[data-theme="day"] .home-kit-projects .home-kit-group { color: #ff8a52; }
[data-theme="day"] .need-btn.is-ice { border-color: #921d17; }

/* ---- Home rhythm: tight inside a group, clear gap between groups ---- */
.home-hub { gap: 14px; }
.home-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.home-group > .need-btn.is-ice,
.home-group > .home-kit-projects-host { grid-column: 1 / -1; }

/* Compact hero: mascot + greeting in one short row */
.home-bot { gap: 12px; padding: 8px 12px 8px 8px; }
.home-bot img,
.home-bot-img { width: 48px !important; height: 48px !important; border-radius: 10px; }
.home-bot .home-bot-hi { font-size: 15px; margin: 0 0 1px; }
.home-bot p { font-size: 13px; line-height: 1.3; }

/* Compact tip */
.home-hub > .bot-tip { padding: 8px; gap: 8px; margin: -6px 0 0; }
.home-hub > .bot-tip .bot-tip-img { width: 32px !important; height: 32px !important; border-radius: 8px; }
.home-hub > .bot-tip .bot-tip-bubble { padding: 6px 10px 7px; }
.home-hub > .bot-tip .bot-tip-bubble::before { top: 11px; }
.home-hub > .bot-tip .bot-tip-text { font-size: 12.5px; line-height: 1.35; }
.home-hub > .bot-tip .bot-tip-label { font-size: 9.5px; }

/* ---- All Home sprites at a clean 2x (32px) in a 40px tile ---- */
.home-hub .need-icon { width: 40px; height: 40px; border-radius: 10px; }
.home-hub .need-icon .need-svg { width: 32px; height: 32px; }
.home-hub .need-kicker { font-size: 10px; letter-spacing: 0.12em; }
.home-hub .need-sub { font-size: 12px; margin-top: 1px; line-height: 1.3; }

/* Wide rows become compact rows */
.home-hub .need-btn-wide {
  min-height: 56px; gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
}
.home-hub .need-btn-wide .need-title { font-size: 15px; }
.home-hub .need-btn-wide::after { display: none; }

/* SOS: full width, still the one filled red button */
.home-hub .need-btn.is-ice { min-height: 60px; padding-right: 34px; }
.home-hub .need-btn.is-ice .need-title { font-size: 17px; }
.home-hub .need-btn.is-ice::after { display: block; right: 16px; }

/* Check-in + Tonight side by side */
.home-group-urgent .checkin-home-banner { min-width: 0; }
.home-group-urgent .checkin-home-banner .need-btn.is-checkin { min-height: 64px; height: 100%; }
.home-group-urgent .checkin-home-row { height: 100%; gap: 6px; }
.home-group-urgent .checkin-home-row .checkin-im-back { min-height: 40px; padding: 8px 12px; width: 100%; }
.checkin-home-msg { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.home-group-urgent .need-btn.is-tonight { min-height: 64px; }

/* Clamp long sublines to two lines so cards stay small */
.home-group .need-sub {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}

/* I NEED: four across */
.home-needs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.home-needs .need-btn {
  min-height: 88px; padding: 10px 4px 9px;
  align-items: center; justify-content: center; gap: 6px;
  text-align: center; border-radius: 14px;
}
.home-needs .need-btn::after { display: none; }
.home-needs .need-text { align-items: center; }
.home-needs .need-kicker { font-size: 9px; letter-spacing: 0.1em; }
.home-needs .need-title { font-size: 14px; }

/* Kit group */
.home-kit-projects { padding: 10px 12px; border-radius: 14px; }
.home-kit-projects-head { margin-bottom: 2px; }
.home-kit-projects .home-kit-projects-title { font-size: 10px; }
.home-kit-empty, .home-kit-hint { font-size: 12.5px; }

/* Shelves: compact rows, sprite tile + title + one-line subline */
.home-shelf { gap: 8px; }
.home-shelf-title { margin: 2px 2px 0; font-size: 10px; }
.home-shelf-grid, .home-shelf-pair { gap: 8px; }
.home-shelf-pair { margin-top: 0; }
.home-hub .need-btn-compact {
  min-height: 52px; gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 14px;
}
.home-hub .need-btn-compact .need-kicker { display: none; } /* repeats the shelf heading */
.home-hub .need-btn-compact .need-title { font-size: 14px; }
.home-hub .need-btn-compact .need-sub {
  font-size: 11.5px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.home-hub .need-btn-compact .need-text { flex: 1; min-width: 0; }
.home-disclaimer { margin-top: 4px; }

/* ---- Menu: tighter rows ---- */
.menu-panel > h2 { font-size: 20px; margin: 4px 4px 2px; }
.menu-group { margin: 14px 6px 6px; font-size: 10px; }
.menu-group:first-of-type { margin-top: 6px; }
.menu-item { min-height: 48px; padding: 6px 34px 6px 8px; gap: 10px; }
.menu-item .ico { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
.menu-item .t { font-size: 14.5px; line-height: 1.25; }
.menu-item .s { font-size: 12px; margin-top: 0; line-height: 1.25; }
.menu-item::after { right: 15px; width: 6px; height: 6px; margin-top: -3px; }
.menu-item + .menu-item::before { left: 50px; }
.menu-group + .menu-item { border-radius: 14px 14px 0 0; }
.menu-item:last-child,
.menu-item:has(+ .menu-group) { border-radius: 0 0 14px 14px; }
.menu-group + .menu-item:last-child,
.menu-group + .menu-item:has(+ .menu-group) { border-radius: 14px; }
.menu-close { margin-top: 14px; min-height: 44px; padding: 10px; }

/* Check-in warning: give it the full width so it can't be missed */
.home-group-urgent .checkin-home-banner:is(.is-soon, .is-overdue),
.home-group-urgent .checkin-home-banner:is(.is-soon, .is-overdue) + .need-btn.is-tonight { grid-column: 1 / -1; }
.home-group-urgent .checkin-home-banner:is(.is-soon, .is-overdue) .checkin-home-row { flex-direction: row; align-items: stretch; }
.home-group-urgent .checkin-home-banner:is(.is-soon, .is-overdue) .need-btn.is-checkin { flex: 1; min-width: 0; height: auto; }
.home-group-urgent .checkin-home-banner:is(.is-soon, .is-overdue) .checkin-im-back { width: auto; min-height: 44px; align-self: stretch; padding: 8px 14px; }
.checkin-home-banner.is-overdue .need-btn.is-checkin {
  border-color: rgba(255, 110, 100, 0.75);
  background: linear-gradient(0deg, rgba(200, 50, 42, 0.2), rgba(200, 50, 42, 0.2)), var(--ui-surface);
  box-shadow: 0 0 0 3px rgba(200, 50, 42, 0.16);
}
.checkin-home-banner.is-soon .need-btn.is-checkin {
  border-color: rgba(242, 162, 116, 0.6);
  background: linear-gradient(0deg, rgba(224, 122, 58, 0.14), rgba(224, 122, 58, 0.14)), var(--ui-surface);
}

/* Menu icon tiles: room for 2x pixel sprites (Guides + Builds) */
.menu-item .ico { width: 36px; height: 36px; }
.menu-item + .menu-item::before { left: 54px; }
.menu-item .ico.is-sprite .need-svg {
  display: block; width: 32px; height: 32px;
  shape-rendering: crispEdges; image-rendering: pixelated;
}

/* =====================================================================
   Tracks — real track photos lead each card; sketch is secondary
   ===================================================================== */
.track-photo-wrap { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.track-photo {
  position: relative; overflow: hidden;
  border-radius: calc(var(--ui-r, 14px) - 4px);
  border: 1px solid var(--ui-hairline-strong, var(--bob-line));
  background: var(--ui-surface-press, rgba(0,0,0,0.2));
  aspect-ratio: 4 / 3;
}
.track-photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}
.track-photo .fig-hint { right: 8px; bottom: 8px; }
.track-photo-cap { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.track-photo-what { font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--ui-title, var(--bob-ink)); }
.track-credit { font-size: 10.5px; line-height: 1.35; color: var(--ui-sub, var(--bob-muted)); }
.track-card-head { justify-content: space-between; margin-top: 2px; }
.track-card-head .track-name { flex: 1 1 auto; }
.track-sketch {
  margin: 0; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.track-card.has-photo .track-svg {
  width: 66px; height: 44px;
  border-style: solid; border-color: var(--ui-hairline-strong, var(--bob-line));
  background: transparent; color: var(--ui-sub, var(--bob-muted));
}
.track-sketch-cap {
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ui-sub, var(--bob-muted));
}
[data-theme="night"] .track-photo img { filter: brightness(0.88) contrast(1.02); }
[data-theme="red"] .track-photo img { filter: grayscale(1) sepia(1) hue-rotate(-30deg) saturate(3) brightness(.7); }
/* Jump chips: stick just under the top bar on a solid page background, and
   leave room so a jumped-to card isn't hidden behind the bar + chips. */
.tracks-chips {
  top: calc(var(--bob-top-h, 52px) + var(--bob-safe-top, 0px) + 9px);
  background: var(--bob-page);
  margin: 0 -4px; padding: 6px 4px;
}
.track-card { scroll-margin-top: calc(var(--bob-top-h, 52px) + var(--bob-safe-top, 0px) + 108px); }

/* =====================================================================
   Home shelves: an odd last tile spans the full row (Water builds = 3)
   ===================================================================== */
.home-shelf-grid > .need-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* =====================================================================
   Tracks — cougar extras: tell-apart list, MI status, report, defend block
   ===================================================================== */
.track-tells-list {
  margin: 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; line-height: 1.45;
}
.track-mi, .track-report {
  padding: 10px 12px;
  border-radius: calc(var(--ui-r, 14px) - 4px);
  border: 1px solid var(--ui-hairline-strong, var(--bob-line));
  background: var(--ui-surface-press, rgba(0,0,0,0.04));
}
.track-defend-jump { align-self: flex-start; margin-top: 2px; }
.track-defend {
  padding: 14px; border-radius: var(--ui-r, 14px);
  border: 1px solid var(--ui-hairline-strong, var(--bob-line));
  border-left: 4px solid var(--bob-accent);
  background: var(--bob-card);
  box-shadow: var(--ui-elev, none);
  display: flex; flex-direction: column; gap: 10px;
  scroll-margin-top: calc(var(--bob-top-h, 52px) + var(--bob-safe-top, 0px) + 108px);
}
.track-defend-kicker {
  margin: 0; font-size: 10px; font-weight: 900; letter-spacing: 0.14em;
  color: var(--bob-accent);
}
.track-defend-title { margin: -6px 0 0; font-size: 18px; color: var(--ui-title, var(--bob-ink)); }
.track-defend-lead { margin: -4px 0 0; font-size: 13px; line-height: 1.45; color: var(--ui-sub, var(--bob-muted)); }
.track-defend-group { display: flex; flex-direction: column; gap: 4px; }
.track-defend-h {
  margin: 0; font-size: 12px; font-weight: 900;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--bob-muted);
}
.track-defend-group.is-attack .track-defend-h { color: var(--bob-accent); }
.track-defend-list {
  margin: 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 13px; line-height: 1.45; color: var(--ui-title, var(--bob-ink));
}
.track-defend-note { margin: 2px 0 0; }
.track-defend-src { margin: 0; font-size: 10.5px; line-height: 1.35; color: var(--ui-sub, var(--bob-muted)); }

/* Etched plates: always shown whole, full width, never cropped. Tap opens the full-screen lightbox. */
.fig img[src*="assets/etch/"] { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; background: #f4efe4; }
.fig-pair:has(img[src*="assets/etch/"]) { grid-template-columns: 1fr; }
.lightbox-overlay img[src*="assets/etch/"] { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; }

/* bugcheck 2026-11-03: no-photo slots must stay hidden (was showing a broken "Gear photo" image) */
.kit-photo-slot [hidden], .kit-photo-thumb[hidden] { display: none !important; }

/* Phone landscape: tighter chrome, compact tips, intro, lightbox, figures. */
@media (orientation: landscape) and (max-height: 500px) {
  .topbar { padding: calc(4px + var(--bob-safe-top)) 10px 4px; }
  .topbar-back, .topbar-home, .topbar-theme { padding: 6px 10px; }
  .brand-bar { padding: 4px 14px 0; }
  .main { padding: 6px 14px 12px; }
  .bottom-nav-inner { padding: 4px 6px; }
  .nav-btn { padding: 6px 6px; }
  .nav-search input { padding: 6px 0; }
  .hatchet-bar { padding: 4px 12px; }
  .fn-intro-glow {
    width: min(70vw, 56vh, 320px);
    height: min(70vw, 56vh, 320px);
  }
  .fn-intro-mark { width: min(52vw, 50vh, 200px); }
  .menu-panel { max-height: 92vh; }
  .lightbox-img { max-height: calc(100dvh - 88px); }
  .lightbox-overlay img[src*="assets/etch/"] { max-height: calc(100dvh - 88px); }
  .lightbox-overlay { padding: max(8px, var(--bob-safe-top)) 12px calc(8px + var(--bob-safe-bottom)); }
  .search-list { max-height: 58vh; }

  /* Tips: one compact row so the first screen of a guide isn't all chrome. */
  .screen-with-tip { gap: 6px; }
  .bot-tip { padding: 5px 8px; gap: 8px; border-radius: 12px; }
  .bot-tip-img { width: 32px !important; height: 32px !important; border-radius: 8px; }
  .bot-tip-bubble { padding: 4px 10px 5px; }
  .bot-tip-bubble::before { top: 10px; }
  .bot-tip-label { font-size: 9px; margin: 0; }
  .bot-tip-text { font-size: 12.5px; line-height: 1.3; }
  .section .bot-tip { margin: 0 0 6px; }

  /* Home: keep SOS + waypoints fully above the nav. */
  .home-hub.is-one-screen { gap: 6px; }
  .home-mini-bot { padding: 8px 10px; gap: 10px; }
  .home-mini-bot img, .home-mini-bot-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .home-mini-bot-tip { font-size: 13.5px !important; }
  .home-hub .home-sos-strip .need-btn-wide,
  .home-hub .home-sos-solo .need-btn.is-ice { min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
  .home-wp-hero { padding: 8px 10px; gap: 6px; }
  .home-hub .home-wp-hero .wp-hero-icon { width: 40px; height: 40px; }
  .home-hub .home-wp-hero .wp-hero-icon .need-svg { width: 32px; height: 32px; }
  .wp-hero-btn, .home-wp-hero.is-compact .wp-hero-btn { min-height: 40px; }

  /* Wide photos shouldn't swallow the short viewport; etch stays uncropped. */
  .fig img { max-height: 52vh; object-fit: contain; }
  .fig img[src*="assets/etch/"] { max-height: 52vh; }
}
