/* ─── Ma · Family App ────────────────────────────────────────────────────────
   Mobile-first, warm, adult styling.
   Designed for comfortable use on iPhone by a 91-year-old family member.
   ─────────────────────────────────────────────────────────────────────────── */

/* ─── Custom Properties ─────────────────────────────────────────────────── */
:root {
  /* Colour palette — warm cream and terracotta */
  --bg:              #FAF7F4;
  --surface:         #FFFFFF;
  --surface-alt:     #F5F0EB;
  --border:          #E6DDD5;
  --border-light:    #EDE6DF;

  --text:            #1C1917;
  --text-secondary:  #6B5E52;
  --text-muted:      #9C8B82;

  --accent:          #7C5247;
  --accent-hover:    #6A443B;
  --accent-light:    #F3EBE8;
  --accent-text:     #FFFFFF;

  --danger:          #B94040;
  --danger-light:    #FBEEEE;
  --success:         #3A7A57;

  /* Navigation */
  --nav-bg:          #FFFFFF;
  --nav-border:      #EDE6DF;
  --nav-active:      #7C5247;
  --nav-inactive:    #A8998E;
  --nav-height:      60px;

  /* Topbar */
  --topbar-bg:       #FFFFFF;
  --topbar-border:   #EDE6DF;
  --topbar-height:   52px;

  /* Typography */
  --font-serif:      Georgia, 'Times New Roman', serif;
  --font-sans:       -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --text-xs:         13px;
  --text-sm:         15px;
  --text-base:       17px;
  --text-lg:         20px;
  --text-xl:         24px;
  --text-2xl:        28px;
  --text-3xl:        34px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.07);

  /* Safe area insets for iPhone */
  --safe-top:    env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--text-base); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100dvh;
  height: 100vh; /* fallback */
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  line-height: 1;
}

input, textarea {
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text);
}

h1, h2, h3 { line-height: 1.25; }

/* ─── App Shell ─────────────────────────────────────────────────────────── */
#app {
  height: 100dvh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--bg);
}

.app-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
  flex: 0 0 auto;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  position: relative;
  z-index: 50;
  padding-top: var(--safe-top);
}

.topbar-inner {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-4);
}

.topbar-brand {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.topbar-menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: background .15s;
}

.topbar-menu-btn:active { background: var(--surface-alt); }

.topbar-menu {
  position: absolute;
  top: calc(var(--topbar-height) + var(--safe-top) + 4px);
  right: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 100;
  min-width: 160px;
}

.topbar-menu-item {
  display: block;
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-size: var(--text-base);
  color: var(--text);
  transition: background .12s;
}

.topbar-menu-item:active { background: var(--surface-alt); }

/* ─── View Container ────────────────────────────────────────────────────── */
.view-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

/* ─── Bottom Navigation ─────────────────────────────────────────────────── */
.bottom-nav {
  flex: 0 0 auto;
  background: var(--nav-bg);
  border-top: 1px solid var(--nav-border);
  padding-bottom: var(--safe-bottom);
  z-index: 50;
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: stretch;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  color: var(--nav-inactive);
  transition: color .15s;
  padding: var(--sp-2) var(--sp-1);
  min-width: 0;
}

.nav-tab:active { opacity: .7; }

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

.nav-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2px;
  white-space: nowrap;
}

/* ─── Auth Screen ───────────────────────────────────────────────────────── */
.auth-screen {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: var(--sp-6) var(--sp-5);
}

.auth-content {
  width: 100%;
  max-width: 360px;
}

.auth-logo {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--sp-2);
  letter-spacing: -1px;
}

.auth-tagline {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-10);
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.field input {
  height: 52px;
  padding: 0 var(--sp-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}

.field input:focus { border-color: var(--accent); }

.auth-error {
  background: var(--danger-light);
  color: var(--danger);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.auth-note {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-top: var(--sp-6);
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0 var(--sp-5);
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, opacity .15s;
  -webkit-appearance: none;
  cursor: pointer;
}

.btn-primary:active { background: var(--accent-hover); }

.btn-primary:disabled {
  opacity: .45;
  cursor: default;
}

.btn-primary.btn-large {
  width: 100%;
  height: 56px;
  font-size: var(--text-lg);
  margin-top: var(--sp-2);
}

.btn-ghost {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: background .12s;
}

.btn-ghost:active { background: var(--surface-alt); }

/* ─── No family message ─────────────────────────────────────────────────── */
.no-family-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  gap: var(--sp-4);
  min-height: 200px;
}

.no-family-screen h2 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--text);
}

.no-family-screen p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  max-width: 300px;
  line-height: 1.6;
}

/* ─── Common View Styles ────────────────────────────────────────────────── */
.view-header {
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  background: var(--bg);
}

.view-header h1 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
}

.section-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
}

.section-loading {
  padding: var(--sp-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.empty-state {
  padding: var(--sp-8) var(--sp-5);
  color: var(--text-muted);
  font-size: var(--text-base);
  text-align: center;
  line-height: 1.6;
}

.view-error {
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
}

.view-error p {
  color: var(--danger);
  font-size: var(--text-base);
}

/* ─── Today View ────────────────────────────────────────────────────────── */
.view-today {
  padding-bottom: var(--sp-8);
}

.today-header {
  background: var(--surface);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-light);
}

.today-greeting {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: var(--sp-1);
}

.today-date {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.today-section {
  padding-bottom: var(--sp-2);
}

/* ─── Post Card ─────────────────────────────────────────────────────────── */
.post-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin: 0 var(--sp-4) var(--sp-3);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.post-author {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text);
}

.post-relationship {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.post-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.post-photo {
  width: 100%;
  background: var(--surface-alt);
  min-height: 200px;
  position: relative;
}

.post-photo--loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.post-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

.post-content {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.post-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.post-body {
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

/* ─── Comments ──────────────────────────────────────────────────────────── */
.post-comments {
  border-top: 1px solid var(--border-light);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.comment {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-2);
  align-items: baseline;
  font-size: var(--text-sm);
}

.comment--new { animation: fade-in .2s ease; }

@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

.comment-author {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.comment-body {
  color: var(--text-secondary);
  word-break: break-word;
}

.comment-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.comment-form {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  margin-top: var(--sp-2);
}

.comment-input {
  flex: 1;
  height: 40px;
  padding: 0 var(--sp-3);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  outline: none;
  -webkit-appearance: none;
}

.comment-input:focus { border-color: var(--accent); }

.comment-submit {
  height: 40px;
  padding: 0 var(--sp-4);
  background: var(--accent);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background .12s;
}

.comment-submit:active { background: var(--accent-hover); }

.comment-submit:disabled { opacity: .5; }

/* ─── Family Feed ───────────────────────────────────────────────────────── */
.view-family { padding-bottom: 80px; }

.feed-list { padding-top: var(--sp-3); }

/* FAB — floating action button */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--sp-4));
  right: var(--sp-5);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 40;
  transition: transform .15s, background .15s;
}

.fab:active { transform: scale(.94); background: var(--accent-hover); }

/* ─── Photo Grid ────────────────────────────────────────────────────────── */
.view-photos { padding-bottom: var(--sp-8); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}

.photo-grid-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-alt);
  cursor: pointer;
  position: relative;
}

.photo-grid-item--loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-grid-placeholder {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}

.photo-grid-item:active img { opacity: .8; }

/* ─── Photo Modal ───────────────────────────────────────────────────────── */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
}

.photo-modal-content {
  position: relative;
  z-index: 1;
  max-width: min(100vw, 600px);
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-modal-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.photo-modal-img {
  max-width: 100%;
  max-height: calc(100dvh - 100px);
  object-fit: contain;
  border-radius: var(--radius-md);
}

.photo-modal-caption {
  color: rgba(255,255,255,.85);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  line-height: 1.5;
}

/* ─── Event Card ────────────────────────────────────────────────────────── */
.event-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin: 0 var(--sp-4) var(--sp-3);
  padding: var(--sp-4);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.event-date-badge {
  flex-shrink: 0;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-1);
}

.event-date-day {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.event-date-month {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
}

.event-details {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-1);
}

.event-time {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-1);
}

.event-location {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.event-notes {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-2);
  line-height: 1.5;
}

.event-link {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

/* ─── Calendar View ─────────────────────────────────────────────────────── */
.view-calendar { padding-bottom: var(--sp-8); }

.event-group { padding-bottom: var(--sp-4); }

/* ─── People View ───────────────────────────────────────────────────────── */
.view-people { padding-bottom: var(--sp-8); }

.people-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.person-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.person-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.person-avatar--initial {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-info { flex: 1; }

.person-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-1);
}

.person-relationship {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ─── Compose View ──────────────────────────────────────────────────────── */
.view-compose {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-4);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}

.compose-header h2 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
}

.compose-cancel {
  font-size: var(--text-base);
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.compose-post-btn {
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
  background: var(--accent);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-5);
  height: 40px;
  display: flex;
  align-items: center;
}

.compose-post-btn:disabled {
  opacity: .4;
  cursor: default;
}

.compose-body {
  flex: 1;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.compose-photo-area {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compose-photo-btn {
  width: 100%;
  background: var(--surface-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--text-base);
  font-weight: 500;
  transition: background .12s, border-color .12s;
}

.compose-photo-btn:active {
  background: var(--accent-light);
  border-color: var(--accent);
}

.compose-photo-preview {
  position: relative;
}

.compose-photo-preview img {
  width: 100%;
  border-radius: var(--radius-lg);
  max-height: 360px;
  object-fit: cover;
}

.compose-photo-remove {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,.5);
  color: white;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compose-caption {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.6;
  resize: none;
  outline: none;
  min-height: 100px;
  -webkit-appearance: none;
}

.compose-caption:focus { border-color: var(--accent); }

.compose-error {
  margin: 0 var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--danger-light);
  color: var(--danger);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.compose-progress {
  margin: 0 var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-alt);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
}

/* ─── Utilities ─────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

/* Smooth scroll for iOS */
.view-container {
  scroll-behavior: smooth;
}
