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

:root {
  --color-bg: #FAF7F2;
  --color-surface: #F5F0E8;
  --color-surface-raised: #EDE7D9;
  --color-border: #DDD4C0;
  --color-border-soft: #EBE4D4;
  --color-text-primary: #2C2416;
  --color-text-secondary: #6B5D47;
  --color-text-muted: #9C8B72;
  --color-accent: #C4783A;
  --color-accent-light: #E8C09A;
  --color-accent-hover: #A85F25;
  --color-amber: #D4A55A;
  --color-sand: #C9B896;
  --color-cream: #FAF7F2;
  --color-white: #FFFFFF;
  --color-error: #8B3A3A;
  --color-success: #4A7A5A;

  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-4xl: 3.5rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-soft: 0 2px 16px rgba(44, 36, 22, 0.06);
  --shadow-md: 0 4px 24px rgba(44, 36, 22, 0.10);
  --shadow-lg: 0 8px 40px rgba(44, 36, 22, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }
ul, ol { list-style: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-cream);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-cream);
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-cream);
}
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--color-accent);
}
.btn-ghost:hover {
  background: var(--color-surface);
}
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
}
.section {
  padding: var(--space-24) 0;
}
.section-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.form-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-cream);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 120, 58, 0.15);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
}
.form-checkbox-label input[type="checkbox"] {
  accent-color: var(--color-accent);
}

.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-6);
}
.alert-error {
  background: #F5E6E6;
  color: var(--color-error);
  border: 1px solid #D4A0A0;
}
.alert-success {
  background: #E6F0E9;
  color: var(--color-success);
  border: 1px solid #A0C4A8;
}

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
}
.badge-voice {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
}
.badge-full {
  background: var(--color-accent);
  color: var(--color-cream);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border-soft);
  margin: var(--space-12) 0;
}

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  padding: var(--space-6);
  text-align: center;
}
.upload-zone:hover {
  border-color: var(--color-accent);
  background: rgba(196, 120, 58, 0.03);
}

.grain {
  position: relative;
  overflow: hidden;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: inherit;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-accent-light);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pulse {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border-soft);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
}
.nav-logo:hover { color: var(--color-text-primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--color-text-primary); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.nav-hamburger svg { display: block; }
.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border-soft);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.nav-mobile.active { display: block; }
.nav-mobile a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}
.nav-mobile .btn { margin-top: var(--space-4); width: 100%; justify-content: center; }

/* Footer */
.footer {
  background: var(--color-cream);
  border-top: 1px solid var(--color-border-soft);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-12);
  gap: var(--space-8);
}
.footer-logo {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}
.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.footer-link:hover { color: var(--color-text-primary); }
.footer-trust {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  max-width: 480px;
  margin-bottom: var(--space-6);
}
.footer-copyright {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Homepage specific */
.hero {
  padding: var(--space-24) 0;
  background: var(--color-cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}
.hero-sub {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}
.hero-body {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}
.hero-note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}
.hero-image {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img,
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.section h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
}
.section p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}
.section p:last-child { margin-bottom: 0; }

.what-it-is-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.what-it-is-content { order: 1; }
.what-it-is-image { order: 2; }
.section-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.step-with-photo {
  text-align: center;
}
.step-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
}
.step-with-photo .step-number {
  margin-left: auto;
  margin-right: auto;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.step h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}
.step p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.modes-section {
  background: var(--color-surface);
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.mode-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mode-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
}
.mode-card-photo {
  padding: 0;
  overflow: hidden;
}
.mode-photo-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.mode-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.mode-card-photo:hover .mode-photo {
  transform: scale(1.03);
}
.mode-card-content {
  padding: var(--space-6);
}
.mode-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}
.mode-card h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}
.mode-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.trust-point {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.trust-point h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}
.trust-point p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.pricing-card {
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--color-accent);
  border-width: 2px;
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-cream);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}
.pricing-card h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}
.pricing-price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.pricing-detail {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.pricing-features {
  margin-bottom: var(--space-8);
  flex-grow: 1;
}
.pricing-features li {
  padding: var(--space-2) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.pricing-check {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.trust-section-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.trust-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 247, 242, 0.88);
}
.trust-content-over {
  position: relative;
  z-index: 1;
}

.pricing-header-photo {
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 260px;
}
.pricing-bg-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.closing-section {
  text-align: center;
}
.closing-section-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.closing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 247, 242, 0.82);
}
.closing-content-over {
  position: relative;
  z-index: 1;
}
.closing-section h2 {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.closing-section p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
}

/* How It Works page */
.hiw-section {
  margin-bottom: var(--space-4);
}
.hiw-section-photo {
  margin-bottom: var(--space-8);
}
.hiw-photo-wrapper {
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hiw-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.hiw-section h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}
.hiw-section p {
  margin-bottom: var(--space-4);
}

/* Auth pages */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) 0;
}
.auth-page.auth-page-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  min-height: calc(100vh - 80px);
  align-items: stretch;
  justify-content: stretch;
}
.auth-photo-side {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.auth-side-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.auth-page-photo .auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12);
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.auth-card h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}
.auth-card .auth-sub {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
}
.auth-below {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-6);
}

/* FAQ */
.faq-list {
  margin-top: var(--space-10);
}
.faq-item {
  border-bottom: 1px solid var(--color-border-soft);
}
.faq-question {
  width: 100%;
  padding: var(--space-6) 0;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-question:hover { color: var(--color-accent); }
.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding-bottom: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Error pages */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.error-page h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}
.error-page p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Legal pages */
.legal-page {
  padding: var(--space-16) 0;
}
.legal-page h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
}
.legal-page h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.legal-page p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}
.legal-date {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

/* About page */
.about-page {
  padding: var(--space-16) 0;
}
.about-hero-photo {
  margin-bottom: var(--space-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg);
}
.about-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.about-page h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-10);
}
.about-page p {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}

/* Demo landing page */
.demo-landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
}
.demo-landing-inner {
  max-width: 520px;
  text-align: center;
}
.demo-portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-6);
  box-shadow: var(--shadow-lg);
}
.demo-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-subject {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}
.demo-headline {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
}
.demo-body {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-10);
}
.demo-landing .btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--font-size-md);
}
.demo-attribution {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-8);
  line-height: var(--line-height-relaxed);
}

/* Demo room */
.demo-framing {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-2) 0;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent-light);
  border-bottom: 1px solid var(--color-border-soft);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}
.demo-banner-text {
  flex: 1;
  min-width: 200px;
}
.demo-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  justify-content: center;
}
.demo-prompt-pill {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.demo-prompt-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}
.demo-nudge {
  text-align: center;
  padding: var(--space-6) var(--space-8);
  margin: var(--space-4) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}
.demo-nudge em {
  display: block;
  margin-bottom: var(--space-3);
}
.demo-nudge a {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .nav, .footer, .btn, .upload-zone { display: none; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: block; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero h1 { font-size: var(--font-size-2xl); }
  .hero-image { order: 2; }

  .what-it-is-grid {
    grid-template-columns: 1fr;
  }
  .what-it-is-image { order: -1; }

  .steps-grid,
  .modes-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .auth-page-photo {
    grid-template-columns: 1fr;
  }
  .auth-photo-side {
    min-height: 0;
    height: 240px;
    position: relative;
  }
  .auth-side-photo {
    position: absolute;
  }
  .auth-page-photo .auth-card {
    padding: var(--space-8) var(--space-6);
  }

  .demo-headline { font-size: var(--font-size-2xl); }
  .demo-portrait { width: 140px; height: 140px; }
  .demo-banner { flex-direction: column; text-align: center; }
  .demo-prompt-pill { font-size: var(--font-size-xs); }

  .footer-top {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: var(--space-3);
  }

  .section { padding: var(--space-16) 0; }
  .section h2 { font-size: var(--font-size-xl); }
}

@media (max-width: 480px) {
  .container, .container-narrow {
    padding: 0 var(--space-4);
  }
  .hero h1 { font-size: var(--font-size-xl); }
  .card { padding: var(--space-6); }
  .about-photo { height: 240px; }
  .hiw-photo { height: 200px; }
  .pricing-bg-photo,
  .pricing-header-photo { max-height: 180px; }
  .pricing-bg-photo { height: 180px; }
}

.audio-player {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
}

.audio-player-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.audio-player-btn:hover {
  background: var(--color-accent-hover);
}

.audio-player-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.audio-player-progress {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.audio-player-progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-player-time {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.audio-player-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.breadcrumb {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.breadcrumb a { color: var(--color-text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { margin: 0 var(--space-2); }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-10);
}
.dashboard-header h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

.empty-state {
  text-align: center;
  padding: var(--space-16) 0;
}
.empty-state h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}
.empty-state p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.presence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .presence-grid { grid-template-columns: 1fr; }
}

.presence-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow var(--transition-fast);
}
.presence-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.presence-card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.presence-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.presence-card-initials {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
}
.presence-card-info h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}
.presence-card-relationship {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.presence-card-visited {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-weight: var(--font-weight-medium);
}
.badge-default {
  background: var(--color-surface);
  color: var(--color-text-secondary);
}
.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}
.badge-green {
  background: #dcfce7;
  color: #166534;
}

.form-intro {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}
.form-help {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.presence-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  color: var(--color-text-muted);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--color-accent);
  background: rgba(196, 120, 58, 0.04);
}
.upload-zone.has-file {
  border-color: var(--color-accent);
  border-style: solid;
}
.upload-zone svg {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}
.upload-zone h3 {
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.upload-zone p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.upload-progress {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-accent);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  margin-top: var(--space-8);
}
@media (max-width: 768px) {
  .overview-grid { grid-template-columns: 1fr; }
}
.overview-left h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.overview-relationship {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
}
.overview-date {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.overview-photo {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.overview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overview-initials {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
}

.action-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.action-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-fast);
}
.action-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.action-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}
.action-card h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-1);
}
.action-card-status {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.status-ready { color: var(--color-success); }
.status-in-progress { color: var(--color-accent); }

.summary-card { margin-bottom: var(--space-4); }
.summary-card h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}
.summary-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.summary-count {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.summary-number {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}
.summary-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.voice-status-card { margin-bottom: var(--space-4); }
.voice-status-card h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}
.voice-status {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}
.voice-ready { color: var(--color-success); }
.voice-processing { color: var(--color-accent); }
.voice-empty { color: var(--color-text-muted); }

.vault-intro {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}
.vault-zones {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}
@media (max-width: 768px) {
  .vault-zones { grid-template-columns: 1fr; }
}
.text-zone {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--color-white);
}
.text-zone h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-2);
}
.text-zone p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.vault-textarea {
  min-height: 100px;
  margin-bottom: var(--space-4);
  resize: vertical;
}

.vault-shared {
  margin-top: var(--space-8);
}
.vault-shared h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-6);
}
.vault-empty {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: var(--space-8) 0;
  text-align: center;
}
.memory-group {
  margin-bottom: var(--space-8);
}
.memory-group h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}
.memory-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.memory-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
}
.memory-preview {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
}
.memory-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.memory-preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}
.memory-info {
  flex: 1;
  min-width: 0;
}
.memory-filename {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.memory-date {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.memory-delete-form { flex-shrink: 0; }
.memory-delete {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: var(--space-2);
  line-height: 1;
}
.memory-delete:hover { color: var(--color-error); }

.btn-ghost {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}
.btn-ghost:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.personality-progress {
  margin-bottom: var(--space-8);
}
.progress-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.progress-bar {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.personality-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.personality-section {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
}
.personality-section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-soft);
}
.question-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.pill-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pill {
  cursor: pointer;
  display: inline-flex;
}
.pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pill span {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  background: var(--color-white);
  transition: all var(--transition-fast);
  line-height: var(--line-height-normal);
}
.pill input:checked + span {
  border-color: var(--color-accent);
  background: rgba(196, 120, 58, 0.08);
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
}
.pill:hover span {
  border-color: var(--color-accent-light);
}
.checkbox-pill input:checked + span {
  border-color: var(--color-accent);
  background: rgba(196, 120, 58, 0.08);
  color: var(--color-accent);
}
.other-belief {
  width: 100%;
  margin-top: var(--space-2);
}

.voice-status-page {
  text-align: center;
  padding: var(--space-12) 0;
}
.voice-status-page h1 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.voice-status-text {
  color: var(--color-text-secondary);
  max-width: 420px;
  margin: 0 auto var(--space-6);
  line-height: var(--line-height-relaxed);
}
.voice-status-icon {
  display: flex;
  justify-content: center;
  color: var(--color-text-muted);
}
.voice-ready-icon {
  color: var(--color-success);
}
.voice-processing-icon {
  color: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}
.voice-status-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.layout-minimal {
  background: var(--color-bg);
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.room-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}
.room-header {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-surface);
  flex-shrink: 0;
}
.room-header-row {
  display: flex;
  align-items: center;
}
.room-intro-note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  padding-top: var(--space-1);
}
.room-back {
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-right: var(--space-3);
  display: flex;
  align-items: center;
}
.room-back:hover {
  color: var(--color-text-primary);
}
.room-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-md);
  flex: 1;
}
.room-voice-toggle {
  display: flex;
  align-items: center;
}
.room-call-panel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-cream);
  flex-shrink: 0;
}
.room-call-actions {
  display: flex;
  gap: var(--space-2);
}
.room-call-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text-secondary);
  cursor: pointer;
}
.room-call-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.room-call-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.room-call-end {
  color: var(--color-error);
}
.room-call-status {
  flex: 1;
  min-width: 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-call-video {
  display: none;
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--color-text-primary);
  object-fit: cover;
}
.room-call-video.active {
  display: block;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}
.room-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.room-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--color-text-muted);
  gap: var(--space-2);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
}
.room-message {
  max-width: 80%;
}
.room-message-user {
  align-self: flex-end;
}
.room-message-assistant {
  align-self: flex-start;
}
.room-message-system {
  align-self: center;
  max-width: 90%;
}
.room-message-content {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.room-message-user .room-message-content {
  background: var(--color-accent);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
}
.room-message-assistant .room-message-content {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-bottom-left-radius: 4px;
}
.room-message-system .room-message-content {
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  text-align: center;
}
.room-message-audio {
  margin-top: var(--space-2);
}
.room-message-audio audio {
  width: 100%;
  height: 36px;
}
.room-thinking .room-message-content {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-5);
}
.thinking-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: thinking-bounce 1.2s infinite;
}
.thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes thinking-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.room-input {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-surface);
  flex-shrink: 0;
}
.room-input input[type="text"] {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  outline: none;
}
.room-input input[type="text"]:focus {
  border-color: var(--color-accent);
}
.room-send {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.room-send:hover {
  background: var(--color-accent-hover);
}
.room-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.generate-form {
  padding: var(--space-6);
}
.generate-form .form-group {
  margin-bottom: var(--space-5);
}
.generate-form label {
  display: block;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}
.generate-form textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background: var(--color-white);
  resize: vertical;
  outline: none;
}
.generate-form textarea:focus {
  border-color: var(--color-accent);
}
.generate-form select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background: var(--color-white);
  outline: none;
}
.generate-loading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}
.generate-loading .spinner {
  width: 24px;
  height: 24px;
  border-width: 2px;
}
.generate-result {
  padding: var(--space-6);
  margin-top: var(--space-6);
}
.generate-script {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  font-style: italic;
  margin: var(--space-3) 0 var(--space-4);
  white-space: pre-wrap;
}
.generate-audio {
  margin-top: var(--space-3);
}
.generate-audio audio {
  width: 100%;
}
.generate-notice {
  padding: var(--space-6);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}
.generate-notice a {
  color: var(--color-accent);
}
.section-heading {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}
.generations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.generation-item {
  padding: var(--space-5);
}
.generation-prompt {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.generation-script {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  white-space: pre-wrap;
  margin-bottom: var(--space-3);
}
.generation-audio {
  margin-bottom: var(--space-3);
}
.generation-audio audio {
  width: 100%;
  height: 36px;
}
.generation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.btn-text {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  cursor: pointer;
  padding: 0;
  color: var(--color-text-muted);
}
.btn-text:hover {
  text-decoration: underline;
}
.btn-text-danger {
  color: var(--color-error);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.plan-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}
.plan-price {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}
.plan-billing {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  flex: 1;
}
.plan-features li {
  padding: var(--space-2) 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  border-bottom: 1px solid var(--color-border-soft);
}
.plan-features li:last-child {
  border-bottom: none;
}
.plan-card-featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.plan-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface);
  border-radius: 999px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}
.plan-btn {
  width: 100%;
  justify-content: center;
}
.plan-current {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.container-narrow {
  max-width: 640px;
  margin: 0 auto;
}
.page-subtitle {
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

.audio-player {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
}
.audio-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-accent);
  padding: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background var(--transition-fast);
}
.audio-play-btn:hover {
  background: rgba(196, 120, 58, 0.1);
}
.audio-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.audio-progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.audio-time {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.plan-alt {
  margin-top: var(--space-2);
  text-align: center;
}
.plan-monthly-btn {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.breadcrumb-nav {
  margin-bottom: var(--space-6);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}
.breadcrumb-list li { display: flex; align-items: center; }
.breadcrumb-list li:not(:last-child)::after {
  content: '\203A';
  margin: 0 var(--space-2);
  color: var(--color-text-muted);
}
.breadcrumb-list a {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.breadcrumb-list a:hover { color: var(--color-accent); }
.breadcrumb-list span[aria-current] {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

.alert-info {
  background: #E8F0F8;
  color: #2A5A8A;
  border: 1px solid #B0C8E0;
}

.field-error {
  display: block;
  color: var(--color-error);
  font-size: var(--font-size-xs);
  margin-top: var(--space-1);
}
.input-error {
  border-color: var(--color-error);
}

.btn.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn.btn-loading .spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

@media (max-width: 768px) {
  .room-input input[type="text"] {
    padding: var(--space-4);
    font-size: var(--font-size-md);
  }
  .room-send {
    padding: var(--space-4);
    min-width: 48px;
    min-height: 48px;
  }
  .form-input,
  .form-select,
  .form-textarea {
    padding: var(--space-4);
  }
  .btn {
    padding: var(--space-4) var(--space-6);
    min-height: 44px;
  }
}

/* Account & danger styles */
.btn-danger {
  background: var(--color-error);
  color: var(--color-cream);
}
.btn-danger:hover {
  background: #6E2E2E;
  color: var(--color-cream);
}

.account-page {
  padding: var(--space-12) 0;
}
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}
.account-back {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.account-back:hover {
  color: var(--color-accent);
}
.account-card {
  margin-top: var(--space-6);
}
.account-card h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}
.account-info {
  display: grid;
  gap: var(--space-4);
}
.account-info > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-4);
  align-items: baseline;
}
.account-info dt {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}
.account-info dd {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}
.account-danger {
  border: 1px solid #E0C8C8;
  background: #FAF2F2;
}
.account-danger h2 {
  color: var(--color-error);
}
.danger-list {
  margin: var(--space-4) 0 0 var(--space-4);
  list-style: disc;
  color: var(--color-text-secondary);
}
.danger-list li {
  margin-bottom: var(--space-2);
  list-style: disc;
}

.danger-details {
  margin-top: var(--space-6);
  background: #FAF2F2;
  border: 1px solid #E0C8C8;
}
.danger-details summary {
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  color: var(--color-error);
  list-style: none;
}
.danger-details summary::-webkit-details-marker {
  display: none;
}
.danger-details summary::before {
  content: '▸';
  display: inline-block;
  margin-right: var(--space-2);
  transition: transform 0.2s ease;
}
.danger-details[open] summary::before {
  transform: rotate(90deg);
}
.danger-details p {
  margin-top: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}
.danger-details form {
  margin-top: var(--space-4);
}

@media (max-width: 600px) {
  .account-info > div {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

.dashboard-section-title {
  margin-top: var(--space-10);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}
.dashboard-section-title:first-of-type { margin-top: var(--space-6); }
.dashboard-section-sub {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
}

.overview-shared-meta {
  margin-top: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.family-access-card {
  margin-top: var(--space-4);
}
.family-access-card h3 {
  margin-bottom: var(--space-2);
}
.family-access-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-3);
}
.family-access-count {
  color: var(--color-text-primary) !important;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-4) !important;
}

.family-list {
  list-style: none;
  margin: var(--space-4) 0 0 0;
  padding: 0;
}
.family-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.family-row:last-child { border-bottom: none; }
.family-row-info { flex: 1 1 240px; min-width: 0; }
.family-row-email {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  word-break: break-word;
}
.family-row-meta {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-top: var(--space-1);
}
.family-row-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}
.family-inline-form { margin: 0; display: inline-block; }
.family-empty { padding: var(--space-4) 0; color: var(--color-text-secondary); }

.form-input-sm {
  padding: 6px 10px;
  font-size: var(--font-size-sm);
  width: auto;
  min-width: 120px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: var(--font-size-sm);
}

.family-invite-form .form-help {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.family-activity {
  list-style: none;
  margin: var(--space-4) 0 0 0;
  padding: 0;
}
.family-activity li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.family-activity li:last-child { border-bottom: none; }
.family-activity-time {
  color: var(--color-text-tertiary, var(--color-text-secondary));
  font-size: var(--font-size-sm);
  min-width: 160px;
}
.family-activity-text {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}
/* ---------------- Memorial page (public) ---------------- */
.memorial-body {
  background: #F7F3EC;
  color: #2C2416;
  font-family: var(--font-sans);
  line-height: var(--line-height-relaxed);
}
.memorial {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.memorial-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  max-height: 560px;
}
.memorial-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.memorial-header {
  text-align: center;
}
.memorial-name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}
.memorial-dates {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  font-style: italic;
  letter-spacing: 0.04em;
}
.memorial-section {
  border-top: 1px solid var(--color-border-soft);
  padding-top: var(--space-10);
}
.memorial-bio p {
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  line-height: 1.85;
  margin-bottom: var(--space-4);
  text-align: center;
}
.memorial-bio p:last-child { margin-bottom: 0; }
.memorial-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.memorial-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft);
}
.memorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 640px) {
  .memorial-photo-grid { grid-template-columns: repeat(3, 1fr); }
}
.memorial-exchange-label {
  text-align: center;
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.memorial-exchange-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.memorial-exchange-item {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  max-width: 88%;
}
.memorial-exchange-item p {
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  line-height: 1.7;
  white-space: pre-wrap;
}
.memorial-exchange-user {
  align-self: flex-end;
  background: var(--color-surface);
  border-color: var(--color-border);
}
.memorial-exchange-assistant {
  align-self: flex-start;
}
.memorial-owner-note {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-style: italic;
}
.memorial-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-soft);
  text-align: center;
}
.memorial-footer-line {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.memorial-footer-cta a {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.memorial-footer-cta a:hover { color: var(--color-accent); }
.memorial-disabled {
  min-height: 70vh;
  justify-content: center;
}
.memorial-disabled .memorial-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: var(--font-weight-medium);
}
.memorial-disabled-note {
  margin-top: var(--space-3);
  color: var(--color-text-secondary);
}

/* ---------------- Memorial guestbook (public) ---------------- */
.memorial-guestbook {
  border-top: 1px solid var(--color-border-soft);
  padding-top: var(--space-6);
}
.memorial-guestbook-title {
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-5);
  letter-spacing: 0.04em;
}
.memorial-guestbook-flash {
  margin: 0 auto var(--space-5);
  max-width: 520px;
  padding: var(--space-3) var(--space-4);
  border-radius: 6px;
  font-size: var(--font-size-sm);
  text-align: center;
  background: var(--color-surface-soft, rgba(127,127,127,0.08));
  border: 1px solid var(--color-border-soft);
}
.memorial-guestbook-flash-error {
  background: rgba(180, 60, 60, 0.08);
  border-color: rgba(180, 60, 60, 0.25);
}
.memorial-guestbook-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.memorial-guestbook-note {
  padding: var(--space-4);
  border-radius: 8px;
  background: var(--color-surface-soft, rgba(127,127,127,0.05));
  border: 1px solid var(--color-border-soft);
}
.memorial-guestbook-note p {
  margin: 0 0 var(--space-2);
  line-height: var(--line-height-relaxed);
}
.memorial-guestbook-attrib {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-style: italic;
}
.memorial-guestbook-date { color: var(--color-text-muted); }
.memorial-guestbook-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-6);
}
.memorial-guestbook-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.memorial-guestbook-help {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}
.memorial-guestbook-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.memorial-guestbook-field label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.memorial-guestbook-field input,
.memorial-guestbook-field textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  background: var(--color-surface, transparent);
  color: inherit;
  font: inherit;
}
.memorial-guestbook-field textarea { resize: vertical; min-height: 96px; }
.memorial-guestbook-counter {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.memorial-guestbook-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------- Owner guestbook moderation ---------------- */
.share-guestbook-settings { margin-bottom: var(--space-4); }
.share-guestbook-summary {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: var(--space-3) 0;
}
.share-guestbook-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.share-guestbook-item {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  background: var(--color-surface, transparent);
}
.share-guestbook-item-pending { border-left: 3px solid #c89a3a; }
.share-guestbook-item-hidden { opacity: 0.6; }
.share-guestbook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}
.share-guestbook-date { color: var(--color-text-muted); }
.share-guestbook-status {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-size-xs);
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(127,127,127,0.12);
}
.share-guestbook-status-pending { background: rgba(200, 154, 58, 0.18); color: #b27d1c; }
.share-guestbook-status-approved { background: rgba(80, 140, 80, 0.18); color: #3f7a3f; }
.share-guestbook-status-hidden { background: rgba(140, 80, 80, 0.18); color: #8a4a4a; }
.share-guestbook-flag {
  font-size: var(--font-size-xs);
  color: #b04646;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.share-guestbook-body p {
  margin: 0 0 var(--space-2);
  line-height: var(--line-height-relaxed);
}
.share-guestbook-body p:last-child { margin-bottom: 0; }
.share-guestbook-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}
.btn-sm { padding: 4px 10px; font-size: var(--font-size-xs); }

/* ---------------- Share settings (owner) ---------------- */
.share-intro {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 640px;
  line-height: var(--line-height-relaxed);
}
.share-card {
  margin-bottom: var(--space-6);
}
.share-card h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}
.share-help {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.share-empty p { margin-bottom: var(--space-4); color: var(--color-text-secondary); }
.share-link-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.share-link-input {
  flex: 1;
  min-width: 240px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--font-size-sm);
  background: var(--color-white);
}
.share-link-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.share-off-btn { color: var(--color-error); }
.share-off-btn:hover { background: rgba(139, 58, 58, 0.08); color: var(--color-error); }
.share-visits {
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.share-form {
  display: flex;
  flex-direction: column;
}
.share-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.share-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  cursor: pointer;
  padding: var(--space-2) 0;
}
.share-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-accent); }
.share-check small { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.share-check input[type="checkbox"]:disabled + span { color: var(--color-text-muted); }
.share-bio {
  width: 100%;
  min-height: 140px;
  font-family: var(--font-sans);
  background: var(--color-white);
  resize: vertical;
}
.share-empty-note {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-style: italic;
}
.share-photo-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-3);
}
.share-photo-pick {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.share-photo-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.share-photo-pick input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.share-photo-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid var(--color-border);
  transition: all 0.15s ease;
}
.share-photo-pick input:checked ~ .share-photo-check {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.share-photo-pick input:checked + img {
  filter: brightness(0.85);
}
.share-photo-pick:has(input:checked) {
  border-color: var(--color-accent);
}
.share-message-picker {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 480px;
  overflow-y: auto;
  padding-right: var(--space-2);
}
.share-message-pick {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-white);
  cursor: pointer;
  align-items: flex-start;
}
.share-message-pick input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}
.share-message-pick:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(196, 120, 58, 0.04);
}
.share-message-body { flex: 1; min-width: 0; }
.share-message-role {
  display: block;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.share-message-body p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  line-height: 1.6;
}
.share-form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.share-footnote {
  margin-top: var(--space-8);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
}

/* Occasion suggestions */
.suggestions-list { display:flex; flex-direction:column; gap: var(--space-3); }
.occasion-suggestion {
  display:flex;
  flex-wrap:wrap;
  gap: var(--space-4);
  align-items:flex-start;
  justify-content:space-between;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-accent, #b08a5a);
  background: var(--color-surface, #faf8f3);
}
.occasion-suggestion-body { flex: 1 1 280px; }
.occasion-suggestion-eyebrow {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #8a7f6e);
  margin-bottom: var(--space-1);
}
.occasion-suggestion-message {
  margin: 0;
  font-size: 1.05em;
  line-height: var(--line-height-normal, 1.5);
  color: var(--color-text-primary);
}
.occasion-suggestion-actions {
  display:flex;
  align-items:center;
  gap: var(--space-3);
  flex-wrap:wrap;
}
.occasion-suggestion-dismiss { margin: 0; }
.btn-small { padding: 0.45rem 0.85rem; font-size: 0.9em; }
/* ==========================================================
   Onboarding Wizard
   ========================================================== */

body.layout-minimal { background: var(--color-bg); }

.welcome-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) 0;
}
.welcome-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.welcome-logo {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  font-size: var(--font-size-md);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.welcome-logo:hover { color: var(--color-accent); }
.welcome-dismiss-form { margin: 0; display: inline; }

.btn-text-soft {
  background: none;
  border: none;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: color 0.2s ease, background 0.2s ease;
}
.btn-text-soft:hover {
  color: var(--color-accent);
  background: rgba(196, 120, 58, 0.06);
}

.welcome-progress {
  margin-bottom: var(--space-8);
}
.welcome-progress-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
  text-transform: none;
}
.welcome-progress-bar {
  height: 3px;
  background: var(--color-border-soft);
  border-radius: 2px;
  overflow: hidden;
}
.welcome-progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-16);
  animation: welcomeFadeUp 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes welcomeFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.welcome-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-10);
  box-shadow: var(--shadow-soft);
}
.welcome-card-center { text-align: center; }
.welcome-eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-semibold);
}
.welcome-h1 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.welcome-sub {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}
.welcome-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.welcome-personality-form .form-group { margin-bottom: var(--space-5); }
.welcome-upload {
  min-height: 110px;
  background: var(--color-cream);
}
.welcome-upload span {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
}
.welcome-textarea, .welcome-mini-textarea {
  resize: vertical;
  min-height: 60px;
}
.welcome-textarea { min-height: 120px; }

.welcome-or {
  text-align: center;
  position: relative;
  margin: var(--space-4) 0 var(--space-4);
}
.welcome-or::before, .welcome-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 28px);
  height: 1px;
  background: var(--color-border-soft);
}
.welcome-or::before { left: 0; }
.welcome-or::after { right: 0; }
.welcome-or span {
  display: inline-block;
  padding: 0 var(--space-3);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.welcome-actions {
  display: flex;
  margin-top: var(--space-6);
}
.welcome-cta {
  width: 100%;
  justify-content: center;
}
.welcome-skip-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
  line-height: var(--line-height-relaxed);
}
.welcome-skip-row {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.welcome-skip-row .welcome-skip-note {
  margin-top: 0;
  max-width: 480px;
}
.welcome-skip-form { margin: 0; }
.welcome-skip-form-center { display: flex; justify-content: center; margin-top: var(--space-3); }

.welcome-page-final .welcome-h1 { margin-bottom: var(--space-4); }
.welcome-final-card {
  background: var(--color-cream);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-6) 0 var(--space-6);
  text-align: left;
}
.welcome-suggested-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-semibold);
}
.welcome-suggested-text {
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  font-style: italic;
}
.welcome-final-form { margin-top: var(--space-6); }

@media (max-width: 600px) {
  .welcome-shell { padding: var(--space-4) var(--space-4) 0; margin-bottom: var(--space-2); }
  .welcome-topbar { margin-bottom: var(--space-4); }
  .welcome-progress { margin-bottom: var(--space-5); }
  .welcome-page { padding: 0 var(--space-4) var(--space-10); }
  .welcome-card { padding: var(--space-6) var(--space-5); }
  .welcome-h1 { font-size: var(--font-size-xl); }
  .welcome-sub { margin-bottom: var(--space-6); font-size: var(--font-size-base); }
  .welcome-or::before, .welcome-or::after { width: calc(50% - 24px); }
  .welcome-cta { min-height: 48px; font-size: var(--font-size-base); }
  .welcome-personality-form .form-group { margin-bottom: var(--space-4); }
  .welcome-final-card { padding: var(--space-5); margin: var(--space-5) 0; }
  .welcome-skip-row { margin-top: var(--space-4); }
  .welcome-skip-row .btn-text-soft,
  .welcome-skip-form .btn-text-soft { padding: var(--space-3) var(--space-4); min-height: 44px; }
}
@media (max-width: 414px) {
  .welcome-card { padding: var(--space-5) var(--space-4); }
  .welcome-h1 { font-size: var(--font-size-lg); }
  .welcome-eyebrow { margin-bottom: var(--space-2); }
  .welcome-topbar .btn-text-soft { font-size: var(--font-size-xs); padding: var(--space-2); }
  .welcome-logo { font-size: var(--font-size-sm); }
}

/* Bigger tap targets for pill choices on small phones */
@media (max-width: 600px) {
  .pill-group, .checkbox-group { gap: var(--space-3); }
  .pill span {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ==========================================================
   Dashboard: Resume Onboarding Card + Post-wizard Nudges
   ========================================================== */

.resume-onboarding-card {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--space-8);
  border: 1px solid var(--color-accent-light);
  background: linear-gradient(180deg, rgba(196,120,58,0.04) 0%, var(--color-surface) 100%);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.resume-onboarding-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: inherit;
}
.resume-onboarding-photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resume-onboarding-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resume-onboarding-initials {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
}
.resume-onboarding-body { flex: 1; min-width: 0; }
.resume-onboarding-eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}
.resume-onboarding-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}
.resume-onboarding-sub {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}
.resume-onboarding-progress {
  height: 3px;
  background: rgba(196, 120, 58, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.resume-onboarding-progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.resume-onboarding-cta { flex-shrink: 0; }
@media (max-width: 600px) {
  .resume-onboarding-card {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-5);
    margin-bottom: var(--space-6);
  }
  .resume-onboarding-photo { width: 64px; height: 64px; }
  .resume-onboarding-title { font-size: var(--font-size-md); }
  .resume-onboarding-sub { font-size: var(--font-size-sm); }
  .resume-onboarding-cta { width: 100%; }
  .resume-onboarding-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: var(--font-size-base);
  }
}

.post-wizard-nudges { margin-bottom: var(--space-10); }
.post-wizard-nudges-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
}
.post-wizard-nudges-title {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-semibold);
}
.post-wizard-dismiss-form { margin: 0; }
.post-wizard-nudges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .post-wizard-nudges-grid { grid-template-columns: 1fr; }
}
.nudge-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: var(--space-6);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.nudge-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
  color: inherit;
}
.nudge-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.nudge-card h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-2);
}
.nudge-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ==========================================================
   Room: First Visit Tooltip
   ========================================================== */

.room-first-tooltip {
  position: relative;
  margin: var(--space-3) var(--space-4) var(--space-2);
  max-width: 640px;
  padding: var(--space-5) var(--space-6);
  background: var(--color-cream);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  animation: welcomeFadeUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}
@media (min-width: 720px) {
  .room-first-tooltip { margin-left: auto; margin-right: auto; }
}
.room-first-tooltip h3 {
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-semibold);
  padding-right: var(--space-8);
}
.room-first-tooltip p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}
.room-first-tooltip-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.room-first-tooltip-close:hover {
  color: var(--color-text-primary);
  background: rgba(0,0,0,0.04);
}
@media (max-width: 600px) {
  .room-first-tooltip {
    padding: var(--space-4) var(--space-5);
    margin: var(--space-2) var(--space-3) var(--space-2);
  }
  .room-first-tooltip h3 { font-size: var(--font-size-sm); margin-bottom: var(--space-1); }
  .room-first-tooltip p { font-size: var(--font-size-xs); }
}

/* ==========================================================
   Walkthrough preview (How It Works)
   ========================================================== */
.walkthrough-section { padding-top: var(--space-4); }
.walkthrough-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}
.walkthrough-intro {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-10);
}
.walkthrough-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  counter-reset: walkthrough;
}
.walkthrough-step {
  position: relative;
}
.walkthrough-mini {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-7);
  box-shadow: var(--shadow-soft);
  max-width: 560px;
  margin: 0 auto;
}
.walkthrough-mini-center { text-align: center; }
.walkthrough-mini-progress {
  margin-bottom: var(--space-6);
}
.walkthrough-mini-progress-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}
.walkthrough-mini-progress-bar {
  height: 3px;
  background: var(--color-border-soft);
  border-radius: 2px;
  overflow: hidden;
}
.walkthrough-mini-progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
}
.walkthrough-eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-semibold);
}
.walkthrough-h {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}
.walkthrough-sub {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
}
.walkthrough-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.walkthrough-field-block { display: block; }
.walkthrough-field-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
  display: block;
}
.walkthrough-field-input {
  display: block;
  background: var(--color-cream);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm, 6px);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}
.walkthrough-field-input-filled { color: var(--color-text-primary); }
.walkthrough-field-textarea {
  display: block;
  background: var(--color-cream);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm, 6px);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  font-style: italic;
}
.walkthrough-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-cream);
  border: 1px dashed var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  color: var(--color-text-muted);
}
.walkthrough-upload span {
  font-size: var(--font-size-sm);
}
.walkthrough-or {
  text-align: center;
  position: relative;
  margin: var(--space-4) 0;
}
.walkthrough-or::before, .walkthrough-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 28px);
  height: 1px;
  background: var(--color-border-soft);
}
.walkthrough-or::before { left: 0; }
.walkthrough-or::after { right: 0; }
.walkthrough-or span {
  display: inline-block;
  padding: 0 var(--space-3);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.walkthrough-question {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: var(--space-5) 0 var(--space-3);
}
.walkthrough-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.walkthrough-pill {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}
.walkthrough-pill-on {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-surface);
}
.walkthrough-handoff {
  background: var(--color-cream);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-5) 0 var(--space-6);
  text-align: left;
}
.walkthrough-handoff-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-semibold);
}
.walkthrough-handoff-text {
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  font-style: italic;
}
.walkthrough-button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-surface);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-2);
}
.walkthrough-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-8);
  line-height: var(--line-height-relaxed);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) {
  .walkthrough-mini { padding: var(--space-6) var(--space-5); }
  .walkthrough-pills { gap: var(--space-2); }
}

/* Choosing which voice in a recording is their person.
   Shown only when Paradise heard more than one speaker in the clip. */
.speaker-choice {
  margin: 1.5rem 0;
  text-align: left;
}
.speaker-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
.speaker-option {
  border: 1px solid var(--border, #e2ddd5);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  background: var(--surface, #fff);
}
.speaker-option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.speaker-meta,
.speaker-times {
  color: var(--muted, #6b6257);
  font-size: 0.85rem;
}
/* Their words, so a family can recognise who this is without playing it. */
.speaker-quote {
  font-style: italic;
  margin: 0 0 0.35rem;
}
.speaker-times {
  margin: 0 0 0.85rem;
}
.speaker-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.speaker-status:empty {
  display: none;
}
.speaker-status {
  margin-top: 0.75rem;
  color: var(--muted, #6b6257);
  font-size: 0.9rem;
}
@media (max-width: 480px) {
  .speaker-actions .btn { flex: 1 1 auto; }
}
