/* Styles for the real-app screens (photos, maps, walks, forecast, friends, care). Tokens from app.css. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-xs { margin-top: 3px; }
.gap { gap: 12px; } .gap-s { gap: 8px; } .gap-xs { gap: 4px; }
.row.between, .spread { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.center, .center { justify-content: center; text-align: center; }
.row.wrap { flex-wrap: wrap; }
.row.gap-s + .row.gap-s:not(.list-row), .row.between + .row.between:not(.list-row) { border-top: none; }
.col { display: flex; flex-direction: column; }
.col.center { align-items: center; gap: 4px; }
.right { text-align: right; }
.up { text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }
.faint { color: var(--text-3); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.w40 { width: 40%; } .w60 { width: 60px; }
.danger-text { color: var(--danger) !important; }
.note.ok, .note .ok { color: var(--success); }
.note.warn { color: var(--warning); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; }
.btn.ghost { background: transparent; }
.btn.small { height: 32px; font-size: 13px; padding: 0 12px; gap: 4px; }
.btn.big { height: 50px; font-size: 16px; padding: 0 26px; }
.btn.grow { flex: 1; }
.btn.link { border: none; background: transparent; color: var(--accent); height: auto; padding: 6px 0; }
.btn.link.small { font-size: 12.5px; }
.btn.round-btn { padding: 0; width: 34px; height: 34px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.static.ok { color: var(--success); border-color: currentColor; display: inline-flex; gap: 4px; align-items: center; }
.chip.static.warn { color: var(--warning); border-color: currentColor; }

/* Cards and states */
.accent-card { border-color: var(--territory); background: linear-gradient(0deg, var(--accent-tint-soft), var(--accent-tint-soft)), var(--bg); }
.warn-card { border-color: var(--warning); }
.card.dim { opacity: 0.55; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 18px 4px; font-size: 13px; }
.spinner { width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 18px 8px; }
.empty-state .btn { margin-top: 10px; }
.list-row { padding: 9px 0; }
.list-row + .list-row { border-top: 1px solid var(--border-subtle); }
.list-row.col { display: flex; flex-direction: column; gap: 2px; }
.attr { font-size: 10.5px; color: var(--text-3); margin: 8px 2px 0; line-height: 15px; }
.field { margin-top: 10px; }
.field-label { font-size: 12px; color: var(--text-2); font-weight: 600; }
.field-hint { font-size: 11px; color: var(--text-3); }
textarea.input { height: auto; padding: 8px 12px; resize: vertical; line-height: 1.4; }
select.input { appearance: auto; }

/* Photos */
.pic { width: var(--sz); height: var(--sz); flex: 0 0 var(--sz); border-radius: 999px; overflow: hidden; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: calc(var(--sz) * 0.42); }
.pic.dog { border-radius: 30%; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-btn .pic { font-size: 12px; }
.pair { position: relative; flex: 0 0 auto; padding: 0 8px 6px 0; }
.pair-dog { position: absolute; right: 0; bottom: 0; border: 2px solid var(--bg); border-radius: 32%; display: flex; }

/* Onboarding */
.welcome .steps { display: flex; gap: 6px; justify-content: center; padding: 8px 0 4px; margin: 0; }
.welcome .steps .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border); }
.welcome .steps .dot.on { background: var(--accent); width: 22px; }
.welcome .steps .dot.done { background: var(--accent); opacity: 0.5; }
.welcome h1 { margin: 10px 0 4px; }
.perm-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.perm-row + .perm-row { border-top: 1px solid var(--border-subtle); }
.perm-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-tint-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }

/* Today */
.now { display: flex; align-items: center; gap: 14px; }
.now-ic { color: var(--orange); }
.now-temp { font-size: 34px; font-weight: 700; line-height: 38px; }
.sunbox { font-size: 12px; color: var(--text-2); text-align: right; line-height: 18px; }
.hour { position: relative; gap: 4px; align-items: center; }
.hour .q { display: block; width: 26px; height: 4px; border-radius: 999px; background: var(--q); }
.hour-detail { margin-top: 8px; font-size: 13px; }
.lg { display: inline-block; width: 10px; height: 4px; border-radius: 99px; }
.lg.good { background: var(--accent); } .lg.fair { background: var(--orange); } .lg.avoid { background: var(--other); }
.skip-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 13px; }
.skip-row .ic { color: var(--danger); flex: 0 0 auto; }

/* Map */
.map { position: relative; height: var(--map-h, 280px); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-subtle); margin: 8px 0; }
.map-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.map-canvas:active { cursor: grabbing; }
.map-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.map-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px #0000001f; }
.map-attr { position: absolute; right: 0; bottom: 0; font-size: 10px; padding: 2px 6px; background: #ffffffcc; color: #333; border-top-left-radius: 6px; pointer-events: none; }

/* Walking */
.walking-banner { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 999px; padding: 4px 10px; background: var(--danger); color: #fff; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.walking-banner .rec, .rec { width: 8px; height: 8px; border-radius: 999px; background: #fff; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; padding: 8px 0; }
.big { font-size: 26px; font-weight: 700; line-height: 30px; }
.num { font-variant-numeric: tabular-nums; }
.gps { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; padding: 4px; }
.gps.ok { color: var(--success); } .gps.warn { color: var(--warning); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.stat-grid .big { font-size: 18px; line-height: 24px; }

/* Walk history */
.week-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 110px; align-items: end; }
.wk-col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.wk-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wk-bar { display: block; width: 70%; height: var(--v); min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--rest); }
.wk-col.today .wk-bar { background: var(--territory); }
.wk-col.today .xs { color: var(--text); font-weight: 700; }
.walk-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; border: none; background: transparent; text-align: left; color: inherit; }
.walk-row + .walk-row { border-top: 1px solid var(--border-subtle); }
.thumb { flex: 0 0 auto; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.thumb.empty { width: 52px; height: 52px; }
.thumb-btn { border: none; background: transparent; padding: 4px 0 0; }

/* Friends */
.code-big { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.qr-wrap { display: flex; justify-content: center; padding: 10px 0; }
.qr-wrap svg { width: 200px; height: 200px; }
.lvl { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 999px; background: var(--territory); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.lvl b { font-size: 20px; }
.lvl .xs { font-size: 8.5px; font-weight: 700; letter-spacing: 0.5px; }
.lb-row + .lb-row { border-top: 1px solid var(--border-subtle); }
.lb-row.me { background: var(--accent-tint-soft); border-radius: 12px; }
.lb-main { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 4px; border: none; background: transparent; text-align: left; color: inherit; }
.lb-more { padding: 0 8px 10px 34px; }
.rank { width: 30px; color: var(--text-2); }
.feed-row { display: flex; gap: 10px; padding: 10px 0; align-items: flex-start; }
.feed-row + .feed-row { border-top: 1px solid var(--border-subtle); }
.cheer { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: 12px; }
.cheer.on, .cheer[aria-pressed="true"] { color: var(--danger); border-color: var(--danger); }
.pts { display: flex; flex-direction: column; align-items: flex-end; }
.pts b { font-size: 18px; }

/* Dog */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.skill { display: block; padding: 8px 0; }
.skill .xs { margin-top: 3px; }
.rec-row + .rec-row { border-top: 1px solid var(--border-subtle); }
.rec-more { padding: 0 0 10px 30px; }
.leader { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.statline { grid-template-columns: 60px 1fr auto; }
.vs-x { font-weight: 800; color: var(--text-3); font-size: 18px; }
.finder-photo { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 24px; margin: 4px auto 10px; }

@media print {
  .topbar, .tabbar, .header, .label, .card:not(:first-of-type), .btn, .toast { display: none !important; }
  .tag-qr-wrap svg { width: 6cm; height: 6cm; }
}
