/* BugOutBot v2 — Trail Packs (hub, Iron Ore Heritage Trail pack, map-screen bar).
   Reuses waypoint pieces (wp-*, wt-*). Theme tokens only; red mode stays red-on-black. */

.tp-view { gap: 12px; }
[data-theme="red"] :is(.tp-view, .tp-mapbar) { --ui-title: #ff9a6a; --bob-ink: #ff9a6a; --ui-sub: #d0683e; color: var(--bob-ink); }
[data-theme="red"] .tp-view .wp-sprite { filter: grayscale(1) sepia(1) hue-rotate(-30deg) saturate(4) brightness(.85); }

/* hub card — chunky 8-bit button */
.tp-pack-card { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px; text-align: left; cursor: pointer;
  border-radius: var(--ui-r); background: var(--ui-surface); color: var(--ui-title);
  border: 2px solid var(--ui-hairline-strong); box-shadow: 4px 4px 0 0 var(--bob-accent); }
.tp-pack-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--bob-accent); }
.tp-pack-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tp-pack-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--ui-sub); }
.tp-pack-title { font-size: 19px; font-weight: 900; line-height: 1.15; }
.tp-pack-sub { font-size: 13px; color: var(--ui-sub); line-height: 1.35; }
.tp-pack-chip { align-self: flex-start; margin-top: 4px; padding: 3px 9px; border-radius: 4px; font: 800 12px ui-monospace, monospace;
  background: var(--ui-tile-neutral); border: 1px solid var(--ui-hairline-strong); color: var(--ui-title); }
.tp-pack-chip.is-on { border-color: #3aaa3a; color: #2f7a3a; }
[data-theme="night"] .tp-pack-chip.is-on { color: #7fd08a; }
[data-theme="red"] .tp-pack-chip.is-on { border-color: #ff6b2b; color: #ff8a52; }

/* load card */
.tp-counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 10px; }
.tp-count { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: var(--ui-r-tile);
  background: var(--ui-tile-neutral); border: 1px solid var(--ui-hairline); font-size: 10px; font-weight: 700; color: var(--ui-sub); }
.tp-count b { font: 900 16px ui-monospace, monospace; color: var(--ui-title); }
.tp-load-btn { margin-top: 2px; }
.tp-loaded { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--ui-r-tile);
  background: var(--ui-surface); border: 1px solid var(--ui-hairline-strong); border-left: 4px solid #3aaa3a; color: var(--ui-title); font-size: 13px; line-height: 1.4; }
.tp-loaded strong { font-size: 16px; }
[data-theme="red"] .tp-loaded { border-left-color: #ff6b2b; }
.tp-status:empty { display: none; }

/* cards */
.tp-card-title { display: flex; align-items: center; gap: 8px; }
.tp-card-title .wp-sprite .need-svg { width: 22px; height: 22px; }
.tp-h3 { margin: 12px 0 4px; font-size: 14px; font-weight: 900; letter-spacing: .02em; color: var(--ui-title); }
.tp-ul { margin: 6px 0 0; padding-left: 1.15em; font-size: 14px; line-height: 1.45; color: var(--ui-title); }
.tp-ul li { margin-bottom: 5px; }
.tp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
.tp-dl dt { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ui-sub); padding-top: 2px; max-width: 92px; }
.tp-dl dd { margin: 0; color: var(--ui-title); }

/* segments — pixel mile tags */
.tp-seg-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tp-seg { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--ui-r-tile);
  background: var(--ui-tile-neutral); border: 1px solid var(--ui-hairline); }
.tp-seg.is-rough { border-left: 4px solid #f0a830; }
[data-theme="red"] .tp-seg.is-rough { border-left-color: #ff3b1a; }
.tp-seg-mi { flex: 0 0 56px; text-align: center; padding: 4px 0; border-radius: 4px; background: var(--bob-accent); color: #1a1712;
  font: 900 13px ui-monospace, monospace; box-shadow: 2px 2px 0 0 rgba(0, 0, 0, .35); }
[data-theme="red"] .tp-seg-mi { color: #160400; }
.tp-seg-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: var(--ui-title); line-height: 1.3; }
.tp-seg-note { font-size: 12px; color: var(--ui-sub); }

/* drawing */
.tp-chips { margin: 8px 0 0; }
.tp-draw { margin-top: 8px; }
.tp-line-casing { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.tp-line { fill: none; stroke: #8a5a2e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tp-end { font: 800 10px system-ui, sans-serif; fill: #1a1e18; paint-order: stroke; stroke: #eef0e6; stroke-width: 3px; }
.tp-end.is-r { text-anchor: end; }
.tp-pt { cursor: pointer; }
.tp-hit { fill: transparent; }
.tp-pt.is-on .wt-pin-dot { fill: #e0602a; }
[data-theme="night"] .tp-line-casing { stroke: rgba(0, 0, 0, .6); }
[data-theme="night"] .tp-line { stroke: #d4924a; }
[data-theme="night"] .tp-end { fill: #ece6d6; stroke: #121611; }
[data-theme="red"] .tp-line-casing { stroke: rgba(0, 0, 0, .8); }
[data-theme="red"] .tp-line { stroke: #ff6b2b; }
[data-theme="red"] .tp-end { fill: #ff8a52; stroke: #0d0200; }
[data-theme="red"] .tp-pt.is-on .wt-pin-dot { fill: #ffb08a; }
.tp-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.tp-cat { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 6px 2px; cursor: pointer;
  border-radius: var(--ui-r-tile); border: 1px solid var(--ui-hairline-strong); background: var(--ui-tile-neutral);
  color: var(--ui-sub); font: 700 10px/1.1 system-ui, sans-serif; opacity: .55; }
.tp-cat.is-on { opacity: 1; color: var(--ui-title); border-color: var(--bob-accent); box-shadow: inset 0 0 0 1px var(--bob-accent); background: var(--ui-surface); }
.tp-detail { margin-top: 10px; }
.tp-pt-card .wp-card-coords { word-break: break-word; }

/* map-screen bar */
.tp-mapbar { margin-top: 8px; }
.tp-mapbar-btn { background: var(--ui-tile-neutral); color: var(--ui-title); border: 1px solid var(--ui-hairline-strong); }
[data-theme="red"] .tp-mapbar-btn { color: var(--ui-title); }
[data-theme="red"] .tp-mapbar-btn .wp-sprite { filter: grayscale(1) sepia(1) hue-rotate(-30deg) saturate(4) brightness(.85); }

/* waypoints screen: pack group + entry */
.wp-pack-group { border-radius: var(--ui-r-tile); border: 1px solid var(--ui-hairline-strong); background: var(--ui-tile-neutral); }
.wp-pack-sum { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; color: var(--ui-title); }
.wp-pack-sum::-webkit-details-marker { display: none; }
.wp-pack-sum::after { content: '▸'; margin-left: auto; font-weight: 900; color: var(--ui-sub); }
.wp-pack-group[open] > .wp-pack-sum::after { content: '▾'; }
.wp-pack-sum-t { font-weight: 900; font-size: 15px; }
.wp-pack-sum-n { font: 800 12px ui-monospace, monospace; color: var(--ui-sub); }
.wp-pack-body { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 12px; }
.wp-packs-btn { width: 100%; justify-content: flex-start; margin-top: 8px; }
[data-theme="red"] .wp-pack-group { --ui-title: #ff9a6a; --ui-sub: #d0683e; }
.tp-draw .wt-svg { position: relative; display: block; }
.tp-draw .tp-nomap { right: 46px; font-size: 12px; }

/* Optional spur trail (e.g. Escarpment) */
.tp-line-spur { fill: none; stroke: var(--accent, #c45c26); stroke-width: 2.2; stroke-dasharray: 5 4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.tp-end.is-spur { fill: var(--accent, #c45c26); font-size: 9px; font-weight: 700; text-anchor: middle; }

/* Emergency cards / seasonal checklists / hunt calendar / kids */
.ec-ol, .scl-ul, .tp-ul { padding-left: 1.1rem; }
.ec-card, .scl-card { margin-bottom: 0.75rem; }
.scl-check { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: inherit; padding: 0.35rem 0; font: inherit; }
.scl-li.is-on .scl-check { opacity: 0.75; text-decoration: line-through; }
.hc-table { display: flex; flex-direction: column; gap: 0.65rem; }
.hc-row { border: 1px solid color-mix(in oklab, var(--text, #222) 18%, transparent); border-radius: 12px; padding: 0.65rem 0.75rem; }
.hc-when { font-weight: 700; margin-bottom: 0.35rem; }
.hc-cell { margin-top: 0.35rem; }
.hc-cell p { margin: 0.15rem 0 0; opacity: 0.9; font-size: 0.92em; }

/* Kids corner · scavenger hunt */
.kids-safe-note {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: color-mix(in oklab, #3aaa3a 14%, transparent);
  border: 1px solid color-mix(in oklab, #3aaa3a 35%, transparent);
  font-size: 0.95em;
  line-height: 1.35;
}
.kids-progress-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 0.35rem;
}
.kids-progress-label {
  margin: 0; font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}
.kids-progress-bar {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--ui-tile-neutral, #e8e4dc);
  box-shadow: inset 0 0 0 1px var(--ui-hairline, rgba(0,0,0,.12));
  margin-bottom: 0.85rem;
}
.kids-progress-fill {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: #3aaa3a; transition: width 0.25s ease;
}
.kids-badge-slot .kids-trail-scout { max-width: 88px; }
.kids-badge-slot .hb-medal { width: 56px; height: 56px; }
.kids-badge-slot .hb-medal svg { width: 44px; height: 44px; }
.kids-hunt-group { margin-bottom: 0.85rem; }
.kids-hunt-group-title {
  margin: 0 0 0.35rem;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ui-sub, #666);
}
.kids-hunt-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kids-check {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  min-height: 52px; padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--text, #222) 16%, transparent);
  background: var(--ui-tile-neutral, transparent);
  color: inherit; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kids-check-box {
  flex: 0 0 48px; width: 48px; height: 48px; min-width: 48px; min-height: 48px;
  border-radius: 12px;
  border: 2px solid color-mix(in oklab, #3aaa3a 55%, #888);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; line-height: 1; color: #1a5a28;
}
[data-theme="night"] .kids-check-box { background: #1a1f18; color: #7dce6a; }
.kids-hunt-li.is-on .kids-check-box {
  background: #3aaa3a; color: #fff; border-color: #2f8f3a;
}
.kids-check-label { flex: 1; font-size: 1rem; font-weight: 650; line-height: 1.25; }
.kids-hunt-li.is-on .kids-check-label { opacity: 0.78; }
.kids-hunt-actions { margin-top: 0.5rem; }
.kids-celebrate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 14, 10, 0.55); padding: 24px;
}
.kids-celebrate-card {
  background: var(--ui-panel, #fffaf0); color: var(--ui-title, #1a120c);
  border-radius: 18px; padding: 1.25rem 1.1rem 1rem;
  max-width: 320px; width: 100%; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.kids-celebrate-medal { --c: #3aaa3a; width: 72px; height: 72px; }
.kids-celebrate-medal svg { width: 56px; height: 56px; }
.kids-celebrate-title { margin: 0; font-size: 1.45rem; font-weight: 900; }
.kids-celebrate-sub { margin: 0; font-size: 0.95rem; line-height: 1.35; opacity: 0.9; }
.kids-confetti {
  position: absolute; top: -8px; left: var(--x, 50%);
  width: 8px; height: 8px; border-radius: 2px;
  background: hsl(calc(40 + var(--i) * 17), 80%, 55%);
  animation: kids-fall 1.1s ease-out var(--d, 0s) both;
  pointer-events: none;
}
@keyframes kids-fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(70vh) rotate(240deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kids-confetti { animation: none; opacity: 0; }
  .kids-progress-fill { transition: none; }
}
.hb-shelf-kids { grid-template-columns: repeat(2, 1fr); max-width: 180px; }

/* Trip plan / sky / fish spots */
.trip-plan-label { display: block; font-weight: 700; margin: 0.55rem 0 0.2rem; font-size: 0.85rem; }
.trip-plan-input, .trip-plan-form textarea {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px;
  border-radius: 10px; border: 1px solid color-mix(in oklab, var(--text,#222) 18%, transparent);
  background: var(--ui-surface, #fff); color: inherit; font: inherit;
}
.trip-plan-card {
  margin: 0.85rem 0; padding: 0.85rem 1rem; border-radius: 14px;
  background: #fffdf6; color: #1a1712; border: 1px solid #d9d3c3;
}
.trip-plan-card-title { font-weight: 900; letter-spacing: 0.08em; margin: 0 0 0.5rem; }
.sky-moon-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.sky-moon-cell { flex: 0 0 auto; width: 64px; text-align: center; font-size: 11px; }
.sky-moon-dot { display: block; font-size: 22px; line-height: 1.2; color: #e8c86e; }
.fish-spot-card { margin-bottom: 0.55rem; }
.tp-print-map { margin-top: 0.5rem; }

/* ---------- Follow route (turn-by-turn) ---------- */
.tp-follow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp-follow-btn { flex: 1 1 100%; justify-content: center; font-size: 1.1rem; }
.tp-follow-note { margin: 0; font-size: .85rem; color: var(--ui-sub); }
.tn-root, .tn-choose { padding: 12px 16px 96px; color: var(--bob-ink); }
.tn-kicker { margin: 0; font-size: .75rem; letter-spacing: .12em; font-weight: 700; color: var(--bob-muted); }
.tn-title { margin: 2px 0 10px; font-size: 1.4rem; }
.tn-card { background: var(--bob-card); border: 2px solid var(--ui-hairline-strong); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.tn-card.is-hazard { border-color: #d9a400; }
.tn-card.is-off { border-color: #d23a1e; background: color-mix(in srgb, #d23a1e 12%, var(--bob-card)); }
.tn-next { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.tn-next-sub { font-size: 1.25rem; margin-top: 4px; }
.tn-mid { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.tn-arrowbox { width: 120px; flex: 0 0 120px; text-align: center; color: var(--bob-accent); }
.tn-arrow { width: 110px; height: 110px; }
.tn-arrow.is-warn { color: #d23a1e; }
.tn-arrow-cap { font-size: .72rem; color: var(--ui-sub); }
.tn-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tn-stat { background: var(--bob-card); border: 1px solid var(--ui-hairline); border-radius: 10px; padding: 6px 8px; }
.tn-stat span { display: block; font-size: .72rem; color: var(--ui-sub); text-transform: uppercase; letter-spacing: .06em; }
.tn-stat b { font-size: 1.2rem; }
.tn-prog { height: 12px; border-radius: 6px; background: var(--ui-hairline-strong); overflow: hidden; margin-bottom: 10px; }
.tn-prog-bar { height: 100%; width: 0; background: var(--bob-accent); transition: width .4s; }
.tn-mapbox { background: var(--bob-card); border: 1px solid var(--ui-hairline); border-radius: 12px; }
.tn-map { width: 100%; height: auto; display: block; }
.tn-line { fill: none; stroke: var(--ui-sub); stroke-width: 3; opacity: .55; stroke-linejoin: round; }
.tn-done { fill: none; stroke: var(--bob-accent); stroke-width: 4; stroke-linejoin: round; }
.tn-back { stroke: #d23a1e; stroke-width: 3; stroke-dasharray: 6 5; }
.tn-me { fill: #2a7de1; stroke: #fff; stroke-width: 2.5; }
.tn-poi { fill: var(--bob-card); stroke: var(--bob-ink); stroke-width: 2; }
.tn-poi-hazard { fill: #d9a400; } .tn-poi-water { fill: #3d8ed1; } .tn-poi-camping { fill: #5a7247; } .tn-poi-resupply { fill: #b07a3a; }
.tn-n { font-size: 12px; fill: var(--ui-sub); text-anchor: end; font-weight: 700; }
.tn-ctrls, .tn-demo, .tn-start { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tn-btn { flex: 1 1 40%; font-size: 1.05rem; min-height: 48px; }
.tn-start .tn-go { flex: 1 1 100%; justify-content: center; font-size: 1.2rem; }
.tn-demo-tag { width: 100%; font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--bob-accent); }
.tn-status, .tn-note, .tn-safety, .tn-intro, .tn-empty { font-size: .9rem; color: var(--ui-sub); }
.tn-h3 { margin: 16px 0 6px; font-size: 1rem; }
.tn-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ui-hairline); }
.tn-row-txt { flex: 1; display: flex; flex-direction: column; }
.tn-row-txt span { font-size: .8rem; color: var(--ui-sub); }
[data-theme="red"] .tn-me { fill: #ff5a3a; stroke: #300; }
[data-theme="red"] .tn-poi-water, [data-theme="red"] .tn-poi-camping, [data-theme="red"] .tn-poi-resupply { fill: #a33; }
[data-theme="red"] .tn-card.is-off { background: #3a0800; }

/* ---------- Route confidence (route-status.js) ---------- */
.rs-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font: 800 .72rem/1.2 system-ui, sans-serif; letter-spacing: .02em; border: 2px solid currentColor; white-space: nowrap; }
.rs-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rs-badge.is-small { font-size: .65rem; padding: 2px 7px; }
.rs-reviewed { color: #1d7a3a; }
.rs-partial { color: #b26a00; }
.rs-sketch { color: #b3261e; }
.rs-unreviewed { color: #5b5f66; }
.rs-badge.rs-sketch::before { border-radius: 2px; }
.tp-follow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tp-follow-row > button { flex: 1 1 auto; }
.tp-follow.is-off .tp-follow-btn { opacity: .55; cursor: not-allowed; filter: grayscale(.6); }
.rs-why { font-weight: 700; }
.rs-sheet { border: 2px solid currentColor; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; background: color-mix(in srgb, currentColor 7%, var(--bob-card, #fff)); }
.rs-sheet > * { color: var(--ui-text, #1a1712); }
.rs-sheet-head { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.rs-sheet-head b { flex: 1 1 200px; font-size: .95rem; }
.rs-lim { margin: 8px 0 6px 18px; padding: 0; font-size: .9rem; }
.rs-lim li { margin: 3px 0; }
.rs-src, .rs-date, .rs-offline { font-size: .8rem; margin: 4px 0; opacity: .9; }
.rs-offline.is-missing { color: #b3261e; font-weight: 800; opacity: 1; }
.tn-titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tn-row .rs-badge { flex: 0 0 auto; }
.tn-row.is-sketch .tn-row-txt span { color: #b3261e; }
.tn-card.is-gap { border-color: #b26a00; background: color-mix(in srgb, #e39b1a 18%, var(--bob-card)); }
.tn-card.is-gapwarn { border-color: #e39b1a; }
.tn-card.is-weak, .tn-card.is-lost { border-color: #5b5f66; background: color-mix(in srgb, #5b5f66 14%, var(--bob-card)); }
.tn-stat.is-warn b { color: #b3261e; }
.tn-conn { fill: none; stroke: #b26a00; stroke-width: 2.5; stroke-dasharray: 5 5; }
.tn-track { fill: none; stroke: #2a6fdb; stroke-width: 1.5; opacity: .7; }
.tn-me.is-weak { opacity: .45; }
.tn-gapend circle, .tp-gapend circle { fill: #ffd23f; stroke: #8a4b00; stroke-width: 2; }
.tn-gapend text, .tp-gapend text { font: 900 9px system-ui, sans-serif; text-anchor: middle; fill: #4a2500; }
.tn-legend { font: 700 9px system-ui, sans-serif; fill: #8a4b00; }
.tn-gapwarn { display: block; margin: 8px 0; font-size: .85rem; }
.tp-line-conn { fill: none; stroke: #b26a00; stroke-width: 3; stroke-dasharray: 6 5; }
.tp-line-sketch { fill: none; stroke: #b3261e; stroke-width: 3; stroke-dasharray: 3 6; stroke-linecap: round; }
.tp-conn-label { font: 800 10px system-ui, sans-serif; fill: #8a4b00; text-anchor: middle; paint-order: stroke; stroke: #fff8e6; stroke-width: 3px; }

/* bugcheck 2026-11-03: phone-width Follow list — name on its own line, badge + buttons wrap below */
.tn-row { flex-wrap: wrap; }
.tn-row-txt { flex: 1 1 100%; min-width: 0; }
.tn-row .tool-btn { flex: 0 0 auto; }
.tn-row .rs-badge { margin-right: auto; }
/* bugcheck 2026-11-03: "View sketch & pins" now visibly highlights the sketch it jumps to */
.tp-draw.is-flash { animation: tpFlash 1.8s ease-out; border-radius: 12px; }
@keyframes tpFlash { 0%,40% { box-shadow: 0 0 0 4px var(--bob-accent, #ff6b2b); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Phone landscape: keep the kids celebration card inside the short viewport. */
@media (orientation: landscape) and (max-height: 500px) {
  .kids-celebrate { padding: 12px; }
  .kids-celebrate-card { max-height: 90dvh; overflow: auto; padding: 0.85rem 1rem 0.75rem; }
  .kids-celebrate-medal { width: 56px; height: 56px; }
  .kids-celebrate-medal svg { width: 44px; height: 44px; }
  .kids-celebrate-title { font-size: 1.2rem; }
}

/* Emergency Cards: one-tap quick jump + cold-hands high-contrast mode */
.ec-controls { margin-top: 10px; }
.ec-hc-toggle { min-height: 44px; font-weight: 700; width: 100%; }
.ec-hc-toggle.is-on { background: #ffd400; color: #000000; border-color: #ffd400; }

.ec-jump {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 14px;
}
.ec-jump-btn {
  flex: 1 1 auto; min-height: 44px; padding: 8px 12px;
  font-size: 14px; font-weight: 700; border-radius: 10px;
  border: 1.5px solid var(--ui-border, rgba(0,0,0,0.2));
  background: var(--ui-surface, rgba(0,0,0,0.04));
  color: inherit; cursor: pointer;
}
.ec-jump-btn.is-urgent { border-color: #c93b2b; }

.ec-view.is-hc {
  background: #000000; color: #ffffff;
  padding: 12px; border-radius: 12px;
}
.ec-view.is-hc .seasons-kicker,
.ec-view.is-hc .seasons-sub,
.ec-view.is-hc .maps-credit { color: #e6e6e6; }
.ec-view.is-hc .seasons-title { color: #ffd400; font-size: 24px; }
.ec-view.is-hc .ec-jump-btn {
  min-height: 52px; font-size: 16px;
  background: #141414; color: #ffffff; border: 2px solid #ffd400;
}
.ec-view.is-hc .ec-jump-btn.is-urgent {
  background: #ffd400; color: #000000; border-color: #ffd400;
}
.ec-view.is-hc .ec-card {
  background: #0b0b0b; color: #ffffff;
  border: 2px solid #ffffff; border-radius: 12px;
  padding: 16px; margin-bottom: 14px;
}
.ec-view.is-hc .ec-card.is-urgent { border-color: #ffd400; }
.ec-view.is-hc .ec-card .section-title {
  color: #ffd400; font-size: 22px; line-height: 1.25; margin-bottom: 10px;
}
.ec-view.is-hc .ec-ol {
  font-size: 19px; line-height: 1.5; font-weight: 600;
  padding-left: 24px; margin: 0 0 12px;
}
.ec-view.is-hc .ec-ol li { margin-bottom: 10px; }
.ec-view.is-hc .ec-open-btn {
  min-height: 50px; font-size: 16px; font-weight: 700;
  background: #ffffff; color: #000000; border: 2px solid #ffffff;
}
