@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary: #795548;
  --primary-light: #8D6E63;
  --primary-pale: #A1887F;
  --secondary: #BCAAA4;
  --accent: #EFEBE9;
  --accent-soft: #E8D5A0;
  --bg: #FAF7F0;
  --bg-card: #FFFFFF;
  --bg-input: #F5F2EA;
  --text: #2C2416;
  --text-secondary: #7A6E5A;
  --text-muted: #A89E8A;
  --border: #E8E2D4;
  --border-light: #F0EBE0;
  --success: #4A7C59;
  --success-bg: #E8F5EC;
  --warning: #B8860B;
  --warning-bg: #FFF8E1;
  --danger: #C0392B;
  --shadow-sm: 0 1px 3px rgba(44, 36, 22, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 36, 22, 0.08);
  --shadow-lg: 0 8px 24px rgba(44, 36, 22, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

::selection {
  background: var(--accent);
  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);
  line-height: 1.6;
  min-height: 100vh;
}

.app-shell {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Header */
.app-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 24px 20px 20px;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.header-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.header-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin-top: 1px;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

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

.tab-active::after {
  width: 60%;
}

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

.tab-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Main */
.app-main {
  padding: 16px;
}

/* Sections */
.section-header {
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Forms */
.feeding-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-row-thirds {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-input);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  min-height: 44px;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.1);
  background: var(--bg-card);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6E5A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Option Grid (observations) */
.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: var(--accent-soft);
  background: var(--primary-pale);
}

.option-active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.option-active:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* Ratio Badge */
.ratio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-pale);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  align-self: flex-start;
}

.ratio-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.ratio-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

/* Buttons */
.btn-primary {
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(139, 105, 20, 0.25);
  min-height: 48px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 105, 20, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success Toast */
.success-toast {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--success-bg);
  border: 1px solid rgba(74, 124, 89, 0.2);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filter Row */
.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--accent-soft);
}

.filter-active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text);
}

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

/* Timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-day {
  position: relative;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.day-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--primary-pale);
}

.day-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-left: 20px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
  animation: fadeInUp 0.4s ease both;
  animation-delay: var(--delay, 0s);
  transition: box-shadow 0.2s ease;
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 18px;
  width: 6px;
  height: 1px;
  background: var(--border);
}

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

.timeline-card-observation {
  border-left: 3px solid var(--success);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card-type-badge {
  font-size: 1.1rem;
}

.card-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: 1;
}

.card-delete {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
}

.timeline-card:hover .card-delete {
  opacity: 1;
}

.card-delete:hover {
  background: rgba(192, 57, 43, 0.1);
  color: var(--danger);
}

/* Card Body */
.card-flour {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: capitalize;
}

.card-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.amount-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  min-width: 56px;
}

.amount-pill-accent {
  background: var(--primary-pale);
}

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

.amount-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.card-temps {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.card-notes {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  margin-top: 6px;
  line-height: 1.5;
}

/* Observation metrics */
.obs-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.obs-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.obs-metric-icon {
  font-size: 0.9rem;
}

.obs-metric-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.obs-metric-value {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  margin-left: auto;
  text-align: right;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease both;
}

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

.stat-card-large {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--bg-card) 100%);
  border-color: var(--accent-soft);
}

.stat-warning {
  border-color: var(--warning);
  background: var(--warning-bg);
}

.stat-emoji {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat-card-large .stat-value {
  font-size: 2.4rem;
}

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

/* Stats Sections */
.stats-section {
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stats-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

/* Bar Chart */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  width: 100px;
  text-transform: capitalize;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--bar-width);
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.bar-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  width: 24px;
  text-align: right;
}

/* Week Chart */
.week-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-top: 20px;
}

.week-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.week-bar-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  height: 18px;
}

.week-bar-track {
  flex: 1;
  width: 100%;
  max-width: 32px;
  background: var(--bg-input);
  border-radius: 4px 4px 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.week-bar-fill {
  width: 100%;
  height: var(--bar-height);
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s ease;
  min-height: 2px;
}

.week-bar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  padding: 5px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.tag-count {
  font-weight: 600;
  color: var(--primary);
  margin-left: 2px;
}

/* Skeleton */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 100px;
  margin-bottom: 12px;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .form-row-thirds {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-thirds .form-group:last-child {
    grid-column: span 2;
  }

  .obs-metrics {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card-large {
    grid-column: span 2;
  }

  .bar-label {
    width: 70px;
    font-size: 0.75rem;
  }
}

/* Focus styles */
.form-input:focus-visible,
.btn-primary:focus-visible,
.option-btn:focus-visible,
.filter-btn:focus-visible,
.tab-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to your Sourdough Starter Journal! This app helps you track feedings and observations for your sourdough starter.", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "The Timeline tab shows all your feedings and observations in chronological order. You can filter to see only feedings or only observations.", "view": "user", "highlight_selector": ".filter-row", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "Tap the Feed tab to log a new feeding. Record the flour type, amounts, water ratio, and temperature.", "view": "user", "highlight_selector": ".tab-nav", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Fill in the feeding details — flour and water amounts are required. The hydration percentage calculates automatically.", "view": "user", "highlight_selector": ".feeding-form", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Switch to the Observe tab to log observations about your starter — rise height, bubble activity, smell, and texture.", "view": "user", "highlight_selector": ".tab-nav", "wait_for": "user_interaction"},
  {"step": 6, "narration": "Tap the option buttons to quickly record what you see. You can select one option per category.", "view": "user", "highlight_selector": ".option-grid", "wait_for": "tap_to_continue"},
  {"step": 7, "narration": "Check the Stats tab for insights — your feeding streak, average hydration, flour usage breakdown, and observation patterns.", "view": "user", "highlight_selector": ".stats-grid", "wait_for": "tap_to_continue"}
]
-->

/* Feeding photo capture */
.feeding-photo-preview,
.timeline-photo {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-input);
}

.feeding-photo-preview {
  max-height: 220px;
  margin-top: 10px;
}

.timeline-photo {
  max-height: 180px;
  margin-bottom: 10px;
}

.stats-chart-canvas {
  width: 100%;
  max-height: 260px;
}

.ai-insights-section {
  margin-bottom: 24px;
}

.ai-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.ai-summary-card {
  background: var(--primary-pale);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ai-summary-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ai-summary-text {
  font-size: 0.92rem;
  color: var(--text);
}

.ai-signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ai-signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.ai-signal-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ai-signal-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.ai-signal-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.ai-suggestions {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.ai-suggestions-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.ai-suggestions ul {
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.ai-suggestions li + li {
  margin-top: 6px;
}

@media (max-width: 480px) {
  .ai-signal-grid {
    grid-template-columns: 1fr;
  }
}

.share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.share-btn {
  flex: 1;
}

.share-link-btn {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.share-link-btn:hover {
  border-color: var(--accent-soft);
  color: var(--text);
  background: var(--primary-pale);
}

.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 22, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.share-modal-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}

.share-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.share-modal-title {
  flex: 1;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
}

.share-close {
  opacity: 1;
  flex-shrink: 0;
}

.share-modal-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.share-summary-box {
  background: var(--primary-pale);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.share-summary-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.share-summary-text {
  color: var(--text);
  font-size: 0.95rem;
}

.share-link-input {
  margin-bottom: 14px;
}

.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-actions > * {
  flex: 1;
}

.share-copied {
  margin-top: 10px;
  color: var(--success);
  font-size: 0.86rem;
  font-weight: 500;
}

.share-helper {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.share-preview-section {
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .share-row,
  .share-actions {
    flex-direction: column;
  }

  .share-btn,
  .share-link-btn {
    width: 100%;
  }
}

.export-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.export-btn {
  flex: 1;
}

@media (max-width: 480px) {
  .export-row {
    flex-direction: column;
  }

  .export-btn {
    width: 100%;
  }
}
