.home-hero {
  display: flex;
  min-height: 0;
  padding: 14px 0 10px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero img {
  position: static;
  width: 265px;
  height: 220px;
  border-radius: 14px;
  object-fit: cover;
}

.home-hero h1 { margin: 14px 0 5px; font-size: 31px; }
.home-hero em { color: var(--orange); }
.home-wave { margin-top: 12px; color: #2a8b69; font-size: 23px; }
.home-hero p { margin: 5px 0; color: var(--muted); }
.home-quick { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-quick button { min-height: 64px; padding: 7px; border: 0; text-align: center; align-items: center; }
.home-quick b { font-size: 21px; }
.theme-chip img { height: 170px; }

.auth-preview {
  position: relative;
  padding-top: 36px;
  text-align: center;
}

.auth-preview-brand {
  color: var(--green);
  font: italic 700 25px Georgia;
}

.auth-preview > img {
  width: 280px;
  height: 225px;
  margin: 28px auto 0;
  border-radius: 14px;
  object-fit: cover;
}

.auth-preview h1 { margin: 25px 0 8px; color: var(--green); font: 700 32px Georgia; }
.auth-preview > p { max-width: 340px; margin: auto; color: var(--muted); line-height: 1.65; }
.auth-preview-points { display: grid; margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
.auth-preview-points span { display: flex; color: var(--muted); font-size: 12px; flex-direction: column; gap: 5px; }
.auth-preview-points b { color: var(--green); font-size: 17px; }
.preview-agreement { display: flex; margin-top: 16px; color: var(--muted); font-size: 13px; align-items: center; justify-content: center; gap: 8px; }
.preview-agreement input { width: 16px; height: 16px; accent-color: var(--green); }
.preview-agreement label { margin: 0; font-weight: 400; }
.preview-agreement button { padding: 0; background: transparent; color: #925d35; font-size: inherit; }
.login-error { min-height: 20px; margin: 9px 0 0; color: #a53f3f; font-size: 12px; }
.profile-avatar { display: grid; width: 84px; height: 84px; margin: 70px auto 24px; border-radius: 50%; background: var(--green); color: #fff; font: 700 25px Georgia; place-items: center; }
.logout { margin-top: 50px; color: #9a3f3f; }
.audio button { display: grid; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; place-items: center; }
.tabs button { background: transparent; color: var(--muted); }
.tabs button.active { border-bottom: 3px solid var(--green); color: var(--ink); font-weight: 700; }
.record { width: 100%; background: transparent; text-align: left; }
.record > div { min-width: 0; }
.empty-records { padding: 55px 0; color: var(--muted); text-align: center; }
.action-status { min-height: 20px; margin: 10px 0 0; color: #9a3f3f; font-size: 13px; text-align: center; }
#player-audio { width: 100%; margin-top: 25px; }
.download-link { display: grid; text-decoration: none; place-items: center; }
.warm-note { margin-top: 28px; color: var(--muted); font-size: 13px; }
.primary,.secondary,.quick button,.theme-chip,.theme-option,.phone,textarea,.notice,.message,.phone-card,.receive-img { border-radius: 12px; }
.privacy-modal { position: fixed; z-index: 1000; inset: 0; display: none; padding: 18px; background: rgba(10, 35, 27, .62); align-items: center; justify-content: center; }
.privacy-modal.open { display: flex; }
.privacy-modal-panel { display: grid; overflow: hidden; width: min(100%, 620px); max-height: calc(100dvh - 36px); border-radius: 16px; background: #fffdf9; box-shadow: 0 24px 80px rgba(5, 32, 23, .28); grid-template-rows:auto minmax(0,1fr) auto; }
.privacy-modal-header { display: flex; min-height: 78px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: #fffdf9; align-items: flex-start; justify-content: space-between; }
.privacy-modal-header h1 { margin: 3px 0 0; color: #104533; font-size: 23px; }
.privacy-modal-header small { color: var(--muted); }
.privacy-modal-header button { display: grid; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #eef3f0; color: #617069; font-size: 26px; line-height: 1; place-items: center; }
.privacy-modal-body { overflow-y: auto; padding: 18px 20px 24px; overscroll-behavior: contain; }
.privacy-modal-body section { padding: 3px 0; }
.privacy-modal-body section h2 { margin: 18px 0 7px; font-size: 16px; }
.privacy-modal-body section p,.privacy-lead { margin: 7px 0; color: #52635c; font-size: 14px; line-height: 1.75; }
.privacy-modal-footer { padding: 10px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffdf9; }
.privacy-modal-footer .primary { margin-top: 0; }
.modal-open { overflow: hidden; }
@media (max-width: 520px) { .privacy-modal { padding: 10px; align-items: flex-end; } .privacy-modal-panel { width: 100%; max-height: calc(100dvh - 20px); border-radius: 18px 18px 14px 14px; } }
.screen { transform-origin: 50% 20%; will-change: opacity, transform; }
.primary,.secondary,.theme-chip,.theme-option,.quick button,.record,.download-link { transition: transform 180ms cubic-bezier(.22,1,.36,1), box-shadow 180ms ease, border-color 180ms ease; }
.primary.pressed,.secondary.pressed,.theme-chip.pressed,.theme-option.pressed,.quick button.pressed,.record.pressed,.download-link.pressed { scale: .965; }
.sticky.pressed { scale: .975; }
.theme-chip:hover,.theme-option:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18,59,45,.12); }
.home-hero img { animation: hero-float 5.5s ease-in-out infinite; }
.home-wave { animation: wave-pulse 2.4s ease-in-out infinite; transform-origin: center; }
.auth-preview-brand,.brand { animation: brand-reveal 650ms cubic-bezier(.22,1,.36,1) both; }
.privacy-modal-panel { will-change: opacity, transform; }
.field-focus { border-color: var(--green) !important; box-shadow: 0 0 0 3px rgba(7,90,64,.1); transform: translateY(-1px); }
.phone,textarea { transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms cubic-bezier(.22,1,.36,1); }
.success { animation: success-halo 2.4s ease-in-out infinite; }
.profile-avatar { animation: avatar-breathe 3.8s ease-in-out infinite; }
.receive-img { transition: transform 320ms cubic-bezier(.22,1,.36,1), box-shadow 320ms ease; }
.receive-img:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 14px 34px rgba(18,59,45,.14); }
.timer { transition: transform 260ms cubic-bezier(.16,1.2,.3,1), box-shadow 260ms ease; }
.timer.recording { animation: recording-ring 1.8s ease-in-out infinite; will-change: transform, box-shadow; }
#wave.recording { animation: recording-wave 1.2s ease-in-out infinite; }
#wave.recording i { animation: recording-bar 720ms ease-in-out infinite alternate; transform-origin: center; }
#wave.recording i:nth-child(3n) { animation-delay: 130ms; }
#wave.recording i:nth-child(4n) { animation-delay: 240ms; }
#record-button.recording { animation: recording-button 1.4s ease-in-out infinite; }
.record .status,.tabs button,.summary button,.section-title button { transition: color 180ms ease, border-color 180ms ease, transform 180ms cubic-bezier(.22,1,.36,1); }
@keyframes hero-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes wave-pulse { 0%,100% { opacity: .65; transform: scaleX(.97); } 50% { opacity: 1; transform: scaleX(1.025); } }
@keyframes brand-reveal { from { opacity: .25; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes success-halo { 0%,100% { box-shadow: 0 0 0 12px #edf5f1; } 50% { box-shadow: 0 0 0 18px rgba(237,245,241,.45); } }
@keyframes avatar-breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(7,90,64,0); } 50% { box-shadow: 0 0 0 8px rgba(7,90,64,.08); } }
@keyframes recording-ring { 0%,100% { transform: scale(1); box-shadow: inset 0 0 0 8px white,0 0 0 1px var(--line),0 0 0 0 rgba(7,90,64,0); } 50% { transform: scale(1.025); box-shadow: inset 0 0 0 8px white,0 0 0 1px var(--line),0 0 0 12px rgba(7,90,64,.08); } }
@keyframes recording-wave { 0%,100% { opacity: .68; } 50% { opacity: 1; } }
@keyframes recording-bar { from { transform: scaleY(.72); } to { transform: scaleY(1.12); } }
@keyframes recording-button { 0%,100% { box-shadow: 0 0 0 0 rgba(7,90,64,0); } 50% { box-shadow: 0 0 0 7px rgba(7,90,64,.08); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
