/* ============================================================
 * MangoFM Web · Shared Design System
 * ============================================================
 * Aesthetic: Refined minimalism · cream background · mango-red accents
 * Typography: Fraunces (display · variable serif) + Geist (sans body)
 * Loaded via Google Fonts in each page <head>
 * ============================================================ */

:root {
  /* palette */
  --cream:        #FDF7EC;  /* page background */
  --cream-soft:   #F8EFDE;  /* hover states */
  --paper:        #FFFFFF;  /* card */
  --ink:          #2B1810;  /* primary text */
  --ink-soft:     #5C4638;  /* body text */
  --ink-muted:    #8A7461;  /* hints, meta */
  --line:         #E8DCC8;  /* borders */
  --line-soft:    #F2E9D6;  /* subtle dividers */
  --mango:        #E54B1C;  /* primary action, brand */
  --mango-dark:   #B83811;  /* hover states */
  --mango-glow:   #FFE5D0;  /* soft highlight */
  --leaf:         #5E8855;  /* success / coming-soon tag */
  --warn:         #B8730F;  /* warnings */
  --error:        #C1281F;  /* errors */

  /* radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* shadows */
  --shadow-card: 0 2px 0 var(--ink), 0 1px 24px -8px rgba(43, 24, 16, 0.1);
  --shadow-btn:  0 2px 0 var(--mango-dark);
  --shadow-btn-ghost: 0 2px 0 var(--ink);

  /* type */
  --font-display: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --font-ui:      'Geist', -apple-system, 'PingFang SC', 'Noto Sans SC', sans-serif;
  --font-mono:    'Geist Mono', 'SF Mono', Menlo, monospace;
}

/* ============================================================
 * Reset + base
 * ============================================================ */

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

html, body {
  min-height: 100vh;
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11"; /* geist stylistic sets */
}

/* Subtle background texture — dots on cream */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, rgba(43, 24, 16, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
}

/* Two mango decorations in corners — just for vibe */
body::after {
  content: '🥭';
  position: fixed;
  font-size: 120px;
  opacity: 0.06;
  right: -30px;
  bottom: -30px;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--mango); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font-family: inherit; cursor: pointer; }

input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ============================================================
 * Page layout — centered card
 * ============================================================ */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 60px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 40px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.brand .logo-mark {
  font-size: 26px;
  line-height: 1;
}
.brand .brand-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--mango);
  display: inline-block;
  margin: 0 4px;
  transform: translateY(-4px);
}
.brand .brand-sub {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Card */
.card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
}

.card-wide { max-width: 560px; }

/* Corner stamp — small decorative element top-right of card */
.card::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 36px;
  width: 54px;
  height: 14px;
  background: var(--mango);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 0 var(--mango-dark);
}

h1.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
  font-variation-settings: "SOFT" 30;
}
h1.title em {
  font-style: italic;
  color: var(--mango);
  font-weight: 400;
}

.subtitle {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ============================================================
 * Form elements
 * ============================================================ */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 120ms, background 120ms;
}
.input::placeholder { color: var(--ink-muted); opacity: 0.7; }
.input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}
.input.has-error { border-color: var(--error); background: #FFF5F3; }

.input-row {
  display: flex;
  gap: 10px;
}
.input-row .input { flex: 1; }

.help-text {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.error-text {
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
  line-height: 1.4;
}
.success-text {
  font-size: 13px;
  color: var(--leaf);
  margin-top: 6px;
  line-height: 1.4;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border: 1.5px solid var(--mango-dark);
  border-radius: var(--r-md);
  background: var(--mango);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-btn);
  transition: transform 80ms, box-shadow 80ms;
  user-select: none;
}
.btn:hover { background: var(--mango-dark); }
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--mango-dark);
}
.btn:disabled {
  background: var(--ink-muted);
  border-color: var(--ink-muted);
  box-shadow: 0 2px 0 var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-btn-ghost);
}
.btn-ghost:hover { background: var(--cream-soft); }
.btn-ghost:active { box-shadow: 0 0 0 var(--ink); }

.btn-link {
  display: inline;
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--mango);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-link:hover { color: var(--mango-dark); background: transparent; }
.btn-link:active { transform: none; box-shadow: none; }

/* Divider "or" */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Meta row below card */

.card-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}

.below-card {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============================================================
 * Language selection cards (register page)
 * ============================================================ */

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  cursor: pointer;
  transition: all 120ms;
  user-select: none;
  position: relative;
}
.lang-card:hover:not(.disabled) {
  border-color: var(--ink);
  background: var(--paper);
}
.lang-card.selected {
  border-color: var(--mango);
  background: var(--mango-glow);
  box-shadow: 0 2px 0 var(--mango);
}
.lang-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--cream);
}
.lang-card .flag {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}
.lang-card .lang-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.lang-card .lang-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--leaf);
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
 * Code input (verify page) · 6 big cells
 * ============================================================ */

.code-input {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 12px;
}
.code-cell {
  width: 48px;
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  transition: all 120ms;
}
.code-cell:focus {
  outline: none;
  border-color: var(--mango);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--mango-glow);
}
.code-cell.filled {
  background: var(--paper);
  border-color: var(--ink);
}

/* ============================================================
 * Spinner
 * ============================================================ */

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
 * Toast (top banner for success / error)
 * ============================================================ */

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px -6px rgba(43, 24, 16, 0.25);
  z-index: 100;
  opacity: 0;
  transition: transform 300ms cubic-bezier(.2,.8,.3,1), opacity 300ms;
  pointer-events: none;
  max-width: calc(100% - 40px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error { background: var(--error); }
.toast.success { background: var(--leaf); }

/* ============================================================
 * Entry animation
 * ============================================================ */

.card, .brand {
  animation: rise 500ms cubic-bezier(.2,.7,.3,1) both;
}
.brand { animation-delay: 0ms; }
.card  { animation-delay: 100ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * Responsive
 * ============================================================ */

@media (max-width: 540px) {
  .page { padding: 24px 16px 40px; }
  .card { padding: 32px 24px 28px; border-radius: var(--r-lg); }
  .card::before { right: 24px; }
  h1.title { font-size: 28px; }
  .code-cell { width: 42px; height: 52px; font-size: 22px; }
  body::after { font-size: 90px; right: -20px; bottom: -20px; }
}

/* ============================================================
 * PWA · "Add to Home Screen" overlay
 * ============================================================ */
.a2h-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 24, 16, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  animation: a2h-fade 280ms ease-out;
}
@keyframes a2h-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.a2h-card {
  background: var(--paper, #FFF9EC);
  color: var(--ink, #2B1810);
  border: 1.5px solid var(--ink, #2B1810);
  border-radius: 20px;
  box-shadow: 0 12px 32px -8px rgba(43, 24, 16, 0.3);
  max-width: 400px;
  width: 100%;
  padding: 24px 22px 18px;
  animation: a2h-slide 360ms cubic-bezier(.25,.8,.3,1);
}
@keyframes a2h-slide {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.a2h-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.a2h-mango { font-size: 22px; }
.a2h-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.01em;
}
.a2h-desc {
  color: var(--ink-soft, #5a3f30);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.a2h-steps {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px;
}
.a2h-step {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink, #2B1810);
}
.a2h-step strong { font-weight: 600; color: var(--mango, #E35B1F); }
.a2h-step .a2h-n {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mango, #E35B1F);
  color: #fff;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono, 'Geist Mono', monospace);
  margin-top: 1px;
}
.a2h-step .a2h-glyph {
  display: inline-block;
  padding: 0 5px;
  background: var(--cream, #FDF7EC);
  border: 1px solid var(--line, #D4C8B8);
  border-radius: 4px;
  font-family: inherit;
  margin: 0 2px;
}
.a2h-card .btn {
  width: 100%;
  margin-bottom: 6px;
}
.a2h-dismiss {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--ink-muted, #8b6b55);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.a2h-dismiss:hover { color: var(--ink, #2B1810); }

/* ============================================================
 * Update banner · shown when a new SW version is live
 * ============================================================ */
.update-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0) + 12px);
  max-width: 440px;
  margin: 0 auto;
  background: var(--ink, #2B1810);
  color: var(--paper, #FFF9EC);
  border-radius: 14px;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 24px -8px rgba(43, 24, 16, 0.35);
  z-index: 150;
  font-size: 13.5px;
  animation: update-slide 380ms cubic-bezier(.25,.8,.3,1);
  transition: opacity 400ms, transform 400ms;
}
@keyframes update-slide {
  from { transform: translateY(32px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.update-banner.dismissed {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.update-text {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.update-btn {
  flex-shrink: 0;
  background: var(--mango, #E35B1F);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 120ms;
}
.update-btn:hover { background: var(--mango-dark, #C04B18); }
.update-btn:active { transform: scale(0.97); }

/* ============================================================
 * Listening Digest · the peak-end recap shown on close
 * ============================================================ */

.digest-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 24, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 250;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 360ms ease;
  padding: 32px 14px 32px;
}
.digest-overlay.open { opacity: 1; }
.digest-overlay.dismissing { opacity: 0; }

.digest-sheet {
  background: var(--paper, #FFF9EC);
  color: var(--ink, #2B1810);
  border: 1.5px solid var(--ink, #2B1810);
  border-radius: 22px;
  box-shadow: 0 24px 40px -16px rgba(43, 24, 16, 0.45);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  transform: translateY(32px);
  opacity: 0;
  transition: transform 400ms cubic-bezier(.25,.8,.3,1), opacity 300ms ease;
}
.digest-overlay.open .digest-sheet {
  transform: translateY(0);
  opacity: 1;
}

/* ------ HERO ------ */
.digest-hero {
  padding: 26px 24px 22px;
  background: linear-gradient(160deg, #E35B1F 0%, #C04B18 100%);
  color: #fff;
  position: relative;
}
.digest-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 14px;
  background:
    radial-gradient(circle at 8px 0, var(--paper, #FFF9EC) 7px, transparent 8px) 0 100% / 16px 14px;
}
.d-hero-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 14px;
}
.d-logo {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
}
.d-date {
  font-family: var(--font-mono, 'Geist Mono', monospace);
  font-size: 12px;
  opacity: 0.75;
}
.d-hero-count {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.d-hero-count strong {
  font-size: 34px;
  font-weight: 600;
  margin: 0 4px;
  display: inline-block;
}
.d-hero-theme {
  font-size: 14px;
  opacity: 0.92;
  margin-bottom: 2px;
}
.d-hero-dj {
  font-size: 11.5px;
  opacity: 0.72;
  letter-spacing: 0.04em;
}

/* ------ BODY ------ */
.digest-body {
  padding: 18px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.d-card {
  background: var(--cream, #FDF7EC);
  border: 1px solid var(--line-soft, #E9DDC9);
  border-radius: 14px;
  padding: 14px 16px 12px;
  position: relative;
}
.d-num {
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--font-mono, 'Geist Mono', monospace);
  font-size: 10px;
  color: var(--ink-muted, #8b6b55);
  letter-spacing: 0.1em;
}
.d-en {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink, #2B1810);
  letter-spacing: -0.01em;
  padding-right: 28px;
  margin-bottom: 2px;
}
.d-cn {
  color: var(--ink-soft, #5a3f30);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.d-mini-tag {
  display: inline-block;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 10px;
  color: var(--mango, #E35B1F);
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 2px;
}
.d-variant, .d-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft, #E9DDC9);
}
.d-v-en {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 16px;
  color: var(--ink, #2B1810);
}
.d-v-cn {
  color: var(--ink-soft, #5a3f30);
  font-size: 12.5px;
  line-height: 1.5;
}
.d-note-text {
  color: var(--ink-soft, #5a3f30);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ------ BRAND ------ */
.digest-brand {
  margin: 4px 18px 0;
  padding: 12px 4px 8px;
  border-top: 1px solid var(--line-soft, #E9DDC9);
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-muted, #8b6b55);
  letter-spacing: 0.05em;
}
.d-mango { font-size: 13px; }

/* ------ ACTIONS ------ */
.digest-actions {
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.d-share-hint {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted, #8b6b55);
  margin-bottom: 6px;
}
.digest-actions .btn,
.digest-actions .btn-ghost {
  width: 100%;
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line, #D4C8B8);
  color: var(--ink, #2B1810);
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.btn-ghost:hover {
  background: var(--cream, #FDF7EC);
  border-color: var(--ink, #2B1810);
}

/* ============================================================
 * Close-time self-report survey
 * ============================================================
 * One quiet question, two buttons. No animations that linger —
 * Gemini's note: "after click, instantly dismiss." */

.survey-overlay {
  position: fixed; inset: 0;
  background: rgba(43, 24, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 240;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 220ms ease;
}
.survey-overlay.open { opacity: 1; }
.survey-overlay.dismissing { opacity: 0; }

.survey-sheet {
  background: var(--paper, #FFF9EC);
  border: 1.5px solid var(--ink, #2B1810);
  border-radius: 22px;
  padding: 30px 28px 22px;
  max-width: 360px; width: 100%;
  box-shadow: 0 20px 40px -14px rgba(43, 24, 16, 0.4);
  transform: scale(0.96);
  transition: transform 260ms cubic-bezier(.25,.8,.3,1);
}
.survey-overlay.open .survey-sheet { transform: scale(1); }

.survey-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink, #2B1810);
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.35;
}
.survey-sub {
  color: var(--ink-muted, #8b6b55);
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 24px;
}
.survey-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.survey-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border: 1.5px solid var(--line, #D4C8B8);
  background: var(--cream, #FDF7EC);
  border-radius: 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink, #2B1810);
  cursor: pointer;
  transition: border-color 160ms, transform 140ms, background 160ms;
}
.survey-btn:hover {
  border-color: var(--ink, #2B1810);
  transform: translateY(-1px);
}
.survey-btn-yes .survey-ic {
  color: var(--mango, #E35B1F);
  font-weight: 700;
  font-size: 22px;
}
.survey-btn-no .survey-ic {
  color: var(--ink-muted, #8b6b55);
  font-size: 22px;
  font-weight: 700;
}
.survey-btn span:last-child {
  font-weight: 500;
  font-family: var(--font-display, 'Fraunces', serif);
}

.survey-skip {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted, #8b6b55);
  padding: 8px;
  cursor: pointer;
  user-select: none;
}
.survey-skip:hover { color: var(--ink, #2B1810); }

/* ============================================================
 * Resume card · "上次听到 …"
 * ============================================================ */

.resume-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 14px 0 0;
  background: var(--cream, #FDF7EC);
  border: 1px solid var(--line, #D4C8B8);
  border-radius: 14px;
  transition: border-color 150ms, transform 150ms;
}
.resume-card:hover { border-color: var(--ink, #2B1810); }

.resume-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.resume-label {
  font-size: 11px;
  color: var(--mango, #E35B1F);
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 2px;
  white-space: nowrap;
}
.resume-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink, #2B1810);
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resume-meta {
  font-size: 12px;
  color: var(--ink-muted, #8b6b55);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#resume-btn.btn-small,
.btn-small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
  min-width: auto;
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
