@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Fredoka:wght@400;500;600;700&display=swap');

:root {
  --primary: #FF69B4;
  --primary-light: #FFB6C1;
  --primary-dark: #FFC0CB;
  --primary-bg: rgba(99, 102, 241, 0.08);
  --accent: #FF1493;
  --accent-light: #FFFAF0;
  --success: #22c55e;
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

::selection {
  background: var(--primary-light);
  color: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 72px;
}

/* Header */
.app-header {
  padding: 24px 20px 16px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.app-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.app-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 300;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

/* Main Content */
.app-content {
  flex: 1;
  padding: 20px;
}

/* Tab Bar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-active {
  color: var(--primary);
}

.tab-icon {
  font-size: 1.25rem;
}

.tab-label {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(99, 102, 241, 0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes skeleton {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fade-in {
  animation: fadeIn 0.4s ease both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  padding: 10px 20px;
  background: none;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

.btn-ghost-sm {
  padding: 6px 14px;
  background: none;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost-sm:hover {
  background: var(--surface-hover);
}

.btn-danger-sm {
  padding: 6px 14px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger-sm:hover {
  opacity: 0.9;
}

.btn-delete {
  color: var(--danger);
  border-color: var(--danger-light);
}

.btn-delete:hover {
  background: var(--danger-light);
}

/* Walk Idle */
.walk-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  text-align: center;
}

.idle-illustration {
  margin-bottom: 24px;
}

.idle-paw {
  font-size: 4rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.idle-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.idle-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.btn-start {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-start-icon {
  font-size: 1rem;
}

/* Active Walk */
.walk-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
}

.timer-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) var(--progress), var(--border-light) var(--progress));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 24px;
  transition: background 1s linear;
}

.timer-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.timer-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.timer-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.live-distance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 32px;
}

.live-distance-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
}

.live-distance-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.walk-controls {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-control {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pause {
  background: var(--primary-bg);
  color: var(--primary);
}

.btn-pause:hover {
  background: rgba(99, 102, 241, 0.15);
}

.btn-stop {
  background: var(--danger-light);
  color: var(--danger);
}

.btn-stop:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Walk Summary */
.walk-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  text-align: center;
}

.summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.summary-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-big {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Form */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.behavior-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.behavior-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.behavior-chip:hover {
  border-color: var(--primary-light);
}

.behavior-active {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.behavior-emoji {
  font-size: 1.4rem;
}

.behavior-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s ease;
  color: var(--text);
  background: var(--surface);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-textarea::placeholder {
  color: var(--text-muted);
}

.summary-actions {
  display: flex;
  gap: 12px;
}

.summary-actions .btn-primary {
  flex: 2;
}

.summary-actions .btn-ghost {
  flex: 1;
}

/* Walk Saved */
.walk-saved-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  gap: 16px;
}

.saved-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.4s ease both;
}

.saved-stats {
  display: flex;
  gap: 24px;
  margin: 12px 0 24px;
}

.saved-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.saved-stat-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.saved-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* History */
.history-loading,
.stats-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card {
  height: 72px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: skeleton 1.5s ease-in-out infinite;
}

.skeleton-tall {
  height: 200px;
}

.skeleton-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.history-empty,
.stats-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  text-align: center;
  gap: 8px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.history-empty h3,
.stats-empty h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--text);
}

.history-empty p,
.stats-empty p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.history-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.history-header h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.history-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.history-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 4px;
}

.group-walks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.walk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  animation: fadeIn 0.3s ease both;
}

.walk-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.walk-card-expanded {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.walk-card-main {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
}

.walk-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 50px;
}

.walk-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.walk-behavior-badge {
  font-size: 1.25rem;
}

.walk-card-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.walk-duration {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.walk-distance {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.walk-card-right {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.walk-card-details {
  padding: 0 16px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}

.detail-row:first-child {
  padding-top: 14px;
}

.detail-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.detail-notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-notes-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.detail-actions {
  padding-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.confirm-delete {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Stats */
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stats-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.stats-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeIn 0.4s ease both;
}

.stat-hero-card:nth-child(1) { animation-delay: 0s; }
.stat-hero-card:nth-child(2) { animation-delay: 0.05s; }
.stat-hero-card:nth-child(3) { animation-delay: 0.1s; }
.stat-hero-card:nth-child(4) { animation-delay: 0.15s; }

.accent-card {
  border-left: 3px solid var(--accent);
}

.stat-hero-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.stat-hero-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.stats-averages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.avg-pill {
  flex: 1;
  min-width: 100px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avg-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.avg-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.trend-up {
  color: var(--success);
  font-size: 0.8rem;
}

.trend-down {
  color: var(--danger);
  font-size: 0.8rem;
}

.chart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.chart-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.chart-wrapper {
  height: 200px;
  position: relative;
}

.chart-wrapper-sm {
  height: 220px;
}

/* Responsive */
@media (max-width: 480px) {
  .app-content {
    padding: 16px;
  }

  .timer-ring {
    width: 190px;
    height: 190px;
  }

  .timer-value {
    font-size: 2rem;
  }

  .behavior-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-averages {
    flex-direction: column;
  }

  .avg-pill {
    min-width: unset;
  }
}

@media (min-width: 481px) {
  .behavior-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}


<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Pawtracker! This is your personal dog walking companion. You'll see the main walk screen with a friendly paw icon and a Start Walk button.", "view": "user", "highlight_selector": ".btn-start", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Tap 'Start Walk' to begin tracking. A beautiful circular timer shows elapsed time, and the estimated distance updates in real-time as you walk.", "view": "user", "highlight_selector": ".btn-start", "wait_for": "user_interaction"},
  {"step": 3, "narration": "During your walk, you can pause if you stop to chat with someone, or tap Finish when you're done.", "view": "user", "highlight_selector": ".walk-controls", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "After finishing, you'll see a summary. Rate your dog's behavior — was it Excellent, Good, Okay, Hyper, or Reactive? Add notes about your route and anything interesting.", "view": "user", "highlight_selector": ".behavior-grid", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Save the walk and it's logged forever. Tap the History tab to see all past walks grouped by date. Tap any walk to expand its details or delete it.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 6, "narration": "The Stats tab shows your overall stats — total walks, distance, time, your current day streak, weekly comparisons, and charts for activity and behavior patterns.", "view": "user", "highlight_selector": ".tab-btn:nth-child(3)", "wait_for": "user_interaction"}
]
-->

.walker-profile-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.walker-current {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.walker-current-label {
  margin: 0 0 4px;
  opacity: 0.75;
  font-size: 0.9rem;
}

.walker-current-name {
  margin: 0;
  font-weight: 700;
}

.walker-create-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.walker-create-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.walker-create-row .form-input {
  flex: 1;
}

.detail-coordinates-row {
  align-items: flex-start;
}

.mono-text {
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 0.82rem;
  text-align: right;
  word-break: break-word;
}

.walk-map-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.walk-map-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.map-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.walk-map {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-hover);
}

.photo-capture {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.photo-capture-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.photo-error {
  font-size: 0.76rem;
  color: var(--danger);
}

.walk-photos-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.walk-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.walk-photo-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-hover);
  aspect-ratio: 1 / 1;
}

.walk-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 480px) {
  .walk-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.share-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 2px;
  border-top: 1px solid var(--border-light);
}

.share-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.share-link-inline,
.public-share-link {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg);
}

.share-link-inline {
  flex: 1;
  min-width: 0;
}

.share-status {
  font-weight: 600;
}

.share-on {
  color: var(--success);
}

.share-off {
  color: var(--text-muted);
}

.share-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.public-walk-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.public-share-banner {
  background: linear-gradient(135deg, var(--primary-bg), rgba(245, 158, 11, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.public-share-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.public-share-banner h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
}

.public-share-banner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.public-share-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.public-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.public-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.public-summary-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.public-summary-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.route-suggestions-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 12px;
}

.route-suggestions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.route-suggestions-header h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  margin-top: 2px;
}

.route-suggestions-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 4px;
}

.route-suggestions-error {
  color: var(--danger);
  font-size: 0.84rem;
}

.route-suggestions-empty,
.route-suggestions-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.route-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.route-suggestion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-suggestion-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.route-suggestion-top h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.route-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.route-why {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.route-waypoints {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
}

.route-waypoints li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-light);
}

.route-waypoints strong {
  font-size: 0.84rem;
  color: var(--text);
}

.route-waypoints span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 480px) {
  .route-suggestions-header {
    flex-direction: column;
  }
}
