:root {
  --surface: #FBF5F1;
  --surface-low: #F6F0EB;
  --surface-high: #EDE7E2;
  --surface-card: rgba(255, 255, 255, 0.72);
  --surface-solid: #FFFFFF;
  --ink: #302E2C;
  --ink-soft: #6B6560;
  --ink-faint: #918984;
  --primary: #AA2C32;
  --primary-2: #FF7574;
  --primary-soft: rgba(170, 44, 50, 0.1);
  --green: #006948;
  --blue: #2C5FAA;
  --warning: #A35A00;
  --danger: #B42318;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --tap: 48px;
  --app-width: 960px;
  --nav-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow-bloom: 0 8px 24px -8px rgba(170, 44, 50, 0.24);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-2));
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(135deg, #FFDDD6 0%, #FFD0C7 48%, #FFE2DC 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(192, 122, 116, 0.16) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.58) 0 1.5px, transparent 2px),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.42) 0 1.5px, transparent 2px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 44%, rgba(192, 122, 116, 0.08));
  background-size: 28px 28px, 28px 28px, 120px 120px, 150px 150px, auto;
}

html,
body,
body *,
.modal-backdrop,
.modal-backdrop * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
body *::-webkit-scrollbar,
.modal-backdrop::-webkit-scrollbar,
.modal-backdrop *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--app-width));
  min-height: 100dvh;
  margin: 0 auto;
}

.boot-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  color: var(--ink-soft);
}

.boot-screen > div {
  display: grid;
  gap: 4px;
}

.boot-screen strong {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 24px;
  color: var(--primary);
}

.boot-screen span {
  font-size: 14px;
}

.boot-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.webapp {
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(20px, calc(var(--safe-bottom) + 20px));
}

.webapp.app-fullscreen {
  padding-bottom: max(20px, calc(var(--safe-bottom) + 20px));
}

.webapp.ios-create-mode {
  --app-width: 430px;
  display: grid;
  align-items: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 24px max(18px, env(safe-area-inset-bottom, 0px));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
  align-items: center;
  gap: 12px;
  margin: -16px -16px 14px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: rgba(251, 245, 241, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.app-header-title {
  justify-self: center;
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: center;
}

.app-header-title strong {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.05;
  color: var(--primary);
}

.app-header-title span {
  max-width: 180px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-back {
  justify-self: start;
}

.app-header-spacer {
  justify-self: end;
  width: 76px;
  height: 1px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.screen-stack {
  display: grid;
  gap: 16px;
}

.screen.is-active.screen-stack {
  display: grid;
}

.page-title {
  margin: 2px 0 4px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.screen.is-active.ios-home {
  width: 100%;
  min-height: calc(100dvh - 36px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: grid;
  align-content: center;
  gap: 16px;
}

.home-brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.home-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-brand-link {
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.16s ease;
}

.home-brand-link:active {
  transform: scale(0.98);
}

.home-brand-link:focus-visible {
  outline: 2px solid rgba(170, 44, 50, 0.42);
  outline-offset: 5px;
}

.home-brand-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.home-brand-lockup h1 {
  margin: 0;
  color: var(--primary);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.home-tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.home-mode-picker {
  padding: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mode-picker.home-mode-picker button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.mode-picker.home-mode-picker .pill {
  min-height: 18px;
  padding: 0 5px;
  font-size: 9px;
}

.panel.composer-card {
  display: grid;
  gap: 11px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 12px 24px -18px rgba(170, 44, 50, 0.42);
}

.composer-card .field-label {
  height: 24px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.composer-card .segmented {
  align-items: center;
  flex: 0 0 auto;
  width: max-content;
  min-width: 0;
  height: 24px;
  gap: 0;
  padding: 0;
  background: rgba(229, 223, 218, 0.72);
  border-radius: var(--radius-full);
}

.composer-card .segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 24px;
  min-height: 24px;
  padding: 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.composer-card .segmented button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.gender-icon,
.gender-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.gender-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gender-text {
  height: 12px;
}

.composer-card .textarea {
  min-height: clamp(210px, calc(100dvh - 580px), 270px);
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1.45;
  resize: none;
}

.scene-select-btn {
  width: auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(48, 46, 44, 0.72);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.generate-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 15px;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 24px -16px rgba(170, 44, 50, 0.55);
}

.generate-btn:disabled {
  background: rgba(255, 255, 255, 0.5);
  color: rgba(122, 117, 114, 0.5);
}

.menu-pill {
  justify-self: center;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(200, 194, 189, 0.3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.voice-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.voice-chip,
.credit-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(170, 44, 50, 0.08);
  color: var(--primary);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.voice-chip {
  cursor: pointer;
}

.voice-chip.is-ready {
  background: rgba(0, 105, 72, 0.08);
  color: var(--green);
}

.credit-chip {
  background: rgba(122, 117, 114, 0.08);
  color: var(--ink-soft);
}

.auth-layout {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: max(20px, env(safe-area-inset-top, 0px)) 20px max(20px, env(safe-area-inset-bottom, 0px));
}

.auth-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(14px, calc((100vw - var(--app-width)) / 2 + 14px));
  z-index: 30;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 12px -10px rgba(48, 46, 44, 0.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.auth-close span {
  display: block;
  margin-top: -2px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.auth-close:hover {
  background: var(--surface-solid);
  color: var(--primary);
  transform: translateY(-1px);
}

.auth-close:active {
  transform: translateY(0);
}

.auth-close:focus-visible {
  outline: 2px solid rgba(170, 44, 50, 0.5);
  outline-offset: 3px;
}

.auth-hero {
  display: grid;
  gap: 10px;
  text-align: center;
}

.auth-hero img {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 18px;
}

.auth-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 30px;
  color: var(--primary);
}

.auth-card,
.panel,
.result-player,
.sheet-panel {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-bloom);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-card,
.panel {
  padding: 18px;
}

.auth-tabs,
.segmented,
.mode-picker,
.candidate-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.42);
}

.auth-tabs button,
.segmented button,
.mode-picker button,
.candidate-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.auth-tabs button,
.segmented button {
  flex: 1;
}

.auth-tabs button[aria-selected="true"],
.segmented button[aria-selected="true"],
.mode-picker button[aria-selected="true"],
.candidate-tabs button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary);
  box-shadow: 0 4px 10px -8px rgba(48, 46, 44, 0.35);
}

.mode-picker button {
  flex: 1;
  padding: 0 12px;
}

.candidate-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.candidate-tabs button {
  padding: 0 18px;
}

.form {
  display: grid;
  gap: 14px;
}

.auth-inline-link {
  min-height: 24px;
  justify-self: end;
  margin-top: -4px;
  padding: 0;
  font-size: 13px;
}

.auth-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(0, 105, 72, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  animation: authNoticeIn 220ms ease-out both;
}

.auth-notice-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  transform-origin: center;
  animation: authCheckPop 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-notice-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-notice-icon path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: authCheckDraw 360ms 120ms ease-out forwards;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field-label,
.section-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: var(--tap);
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(237, 231, 226, 0.76);
  color: var(--ink);
  outline: 2px solid transparent;
  padding: 13px 14px;
  font-size: 16px;
}

.textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline-color: rgba(170, 44, 50, 0.34);
  background: rgba(255, 255, 255, 0.84);
}

.input::placeholder,
.textarea::placeholder {
  color: #7E746E;
}

.otp-input {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.char-count,
.muted,
.meta-text {
  color: var(--ink-soft);
  font-size: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.link-btn,
.danger-btn {
  min-height: var(--tap);
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 800;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.primary-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-bloom);
  padding: 0 20px;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.68);
  color: var(--primary);
  padding: 0 18px;
}

.ghost-btn,
.link-btn {
  background: transparent;
  color: var(--primary);
  padding: 0 12px;
}

.danger-btn {
  width: 100%;
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.primary-btn.generate-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
}

.primary-btn.generate-btn:disabled {
  background: rgba(255, 255, 255, 0.5);
  color: rgba(122, 117, 114, 0.5);
}

.secondary-btn.scene-select-btn {
  width: auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(48, 46, 44, 0.72);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.ios-home .menu-pill {
  width: max-content;
  justify-self: center;
  min-height: 30px;
  font-size: 11.5px;
}

.icon-btn {
  width: var(--tap);
  min-width: var(--tap);
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary);
  font-size: 18px;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.ghost-btn:focus-visible,
.icon-btn:focus-visible,
.danger-btn:focus-visible,
.scene-card:focus-visible,
.song-row:focus-visible,
.menu-pill:focus-visible,
.back-pill:focus-visible,
.voice-chip:focus-visible,
.menu-song-row:focus-visible,
.settings-row:focus-visible,
.settings-primary-action:focus-visible,
.settings-soft-action:focus-visible,
.menu-sheet-picker button:focus-visible {
  outline: 3px solid rgba(170, 44, 50, 0.34);
  outline-offset: 3px;
}

.subtle-grid {
  display: grid;
  gap: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.status-strip strong {
  color: var(--ink);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex: 0 0 auto;
}

.status-dot.good {
  background: var(--green);
}

.status-dot.warn {
  background: var(--warning);
}

.mode-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.scene-picker {
  display: grid;
  gap: 18px;
}

.scene-section {
  display: grid;
  gap: 10px;
}

.scene-section-title {
  padding-left: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scene-card {
  min-height: 95px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 10px 6px;
  text-align: center;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.scene-card:hover {
  transform: translateY(-1px);
}

.scene-card[aria-pressed="true"] {
  border-color: var(--primary-2);
  border-width: 2px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  box-shadow: 0 8px 18px -14px rgba(170, 44, 50, 0.34);
}

.scene-emoji {
  font-size: 32px;
  line-height: 1;
}

.scene-name {
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.18;
}

.song-list {
  display: grid;
  gap: 10px;
}

.song-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.song-art {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--scene-soft, rgba(170, 44, 50, 0.1));
  font-size: 24px;
}

.song-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.song-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  border-radius: var(--radius-full);
  background: rgba(170, 44, 50, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
}

.pill.good {
  background: rgba(0, 105, 72, 0.1);
  color: var(--green);
}

.pill.blue {
  background: rgba(44, 95, 170, 0.1);
  color: var(--blue);
}

.empty-state {
  min-height: 44dvh;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-state-inner {
  max-width: 320px;
  display: grid;
  gap: 10px;
}

.empty-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  font-size: 32px;
}

.result-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  padding-bottom: 28px;
  text-align: center;
}

.result-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 4px 2px 0;
}

.result-hero .page-copy {
  margin: 0;
  max-width: 30ch;
}

.result-badge {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-full);
  background: var(--scene-color, var(--primary));
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
}

.result-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.16;
  text-wrap: balance;
}

.result-player {
  display: grid;
  gap: 22px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.56);
  padding: 18px 16px 20px;
}

.lyrics-window {
  min-height: 240px;
  max-height: 310px;
  overflow: auto;
  display: grid;
  align-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--scene-color, var(--primary)) 65%, white), var(--scene-color, var(--primary)));
  color: rgba(255, 255, 255, 0.86);
  padding: 20px;
  white-space: pre-wrap;
  line-height: 1.55;
}

.lyrics-window .active-line {
  color: white;
  font-weight: 800;
}

.player-controls {
  display: grid;
  gap: 18px;
  padding: 0 4px 2px;
}

.range-row {
  display: grid;
  gap: 6px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
}

.audio-range {
  width: 100%;
  accent-color: var(--scene-color, var(--primary));
}

.play-row {
  display: flex;
  justify-content: center;
}

.play-btn {
  width: 62px;
  min-height: 62px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--scene-color, var(--primary));
  color: white;
  cursor: pointer;
  font-size: 20px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.plans {
  display: grid;
  gap: 10px;
}

.purchase-screen {
  width: min(100%, 430px);
  margin: 0 auto;
  display: grid;
  gap: 20px;
  padding-bottom: 24px;
}

.purchase-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding-top: 4px;
}

.purchase-icon-cloud {
  width: 150px;
  height: 96px;
  display: grid;
  place-items: center;
  position: relative;
}

.purchase-icon-cloud::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  filter: blur(42px);
}

.purchase-hero-icon {
  position: relative;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.purchase-hero-icon svg {
  width: 64px;
  height: 64px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.purchase-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
}

.purchase-hero p {
  max-width: 320px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
}

.purchase-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.purchase-benefit {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.purchase-benefit span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.purchase-benefit svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.purchase-benefit strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.purchase-review {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 18px 20px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  text-align: center;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #F9C74F;
}

.review-stars svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}

.purchase-review p {
  margin: 0;
  color: rgba(48, 46, 44, 0.82);
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
}

.purchase-review strong {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.review-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(107, 101, 96, 0.24);
}

.review-dots span.is-active {
  width: 6px;
  height: 6px;
  background: var(--primary);
}

.purchase-options {
  display: grid;
  gap: 20px;
  padding-top: 10px;
}

.purchase-actions {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: calc(var(--safe-bottom) + 2px);
}

.purchase-actions .primary-btn {
  min-height: 56px;
  font-size: 18px;
  font-weight: 900;
}

.purchase-actions p,
.purchase-fineprint {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.purchase-fineprint button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.purchase-balance {
  margin: 8px 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.plan-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.plan-card[aria-pressed="true"] {
  background: rgba(170, 44, 50, 0.06);
  box-shadow: inset 0 0 0 2px rgba(170, 44, 50, 0.42);
}

.plan-card:hover {
  transform: translateY(-1px);
}

.plan-card:focus-visible {
  outline: 3px solid rgba(170, 44, 50, 0.26);
  outline-offset: 3px;
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  color: white;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
}

.plan-badge.is-dark {
  background: var(--ink);
}

.plan-badge.is-primary {
  background: var(--primary);
}

.plan-copy,
.plan-price-stack {
  display: grid;
  min-width: 0;
}

.plan-copy {
  gap: 5px;
}

.plan-price-stack {
  justify-items: end;
  gap: 2px;
}

.plan-name {
  display: block;
  font-weight: 900;
  line-height: 1.15;
}

.plan-label {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1.5px;
}

.plan-card[aria-pressed="true"] .plan-label,
.plan-card[aria-pressed="true"] .plan-name {
  color: var(--primary);
}

.plan-sub {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.plan-type {
  display: block;
  color: rgba(104, 97, 94, 0.78);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.plan-price {
  display: block;
  color: var(--primary);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.plan-card[aria-pressed="true"] .plan-price {
  font-size: 22px;
}

.plan-original {
  color: rgba(104, 97, 94, 0.62);
  font-size: 13px;
  line-height: 1;
  text-decoration: line-through;
  white-space: nowrap;
}

.plan-save {
  color: #006948;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.account-list {
  display: grid;
  gap: 10px;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
}

.account-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}

.account-row-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-row-copy strong {
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 18px);
  z-index: 80;
  width: min(calc(100% - 32px), 440px);
  transform: translateX(-50%);
  display: none;
  border-radius: var(--radius-lg);
  background: rgba(48, 46, 44, 0.94);
  color: white;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.55);
}

.toast.is-visible {
  display: block;
}

.ios-create-mode .toast {
  bottom: calc(var(--safe-bottom) + 18px);
}

.app-fullscreen .toast {
  bottom: calc(var(--safe-bottom) + 18px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: end;
  justify-content: center;
  background: rgba(48, 46, 44, 0.28);
  padding: 18px 12px calc(18px + var(--safe-bottom));
}

.modal-backdrop.is-open {
  display: flex;
}

@keyframes authNoticeIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authCheckPop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  68% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes authCheckDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.modal-backdrop.is-scene-sheet {
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #FFDDD6 0%, #FFD0C7 48%, #FFE2DC 100%);
}

.modal-backdrop.is-menu-sheet {
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #FFDDD6 0%, #FFD0C7 48%, #FFE2DC 100%);
}

.modal-backdrop.is-scene-sheet::before,
.modal-backdrop.is-menu-sheet::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(192, 122, 116, 0.16) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.58) 0 1.5px, transparent 2px),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.42) 0 1.5px, transparent 2px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 44%, rgba(192, 122, 116, 0.08));
  background-size: 28px 28px, 28px 28px, 120px 120px, 150px 150px, auto;
}

.sheet-panel {
  width: min(100%, 640px);
  max-height: min(86dvh, 780px);
  overflow: auto;
  padding: 16px;
}

.scene-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-width: 430px;
  max-height: none;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scene-sheet-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 24px 12px;
  background: rgba(255, 221, 214, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.scene-sheet-head h2 {
  margin: 0;
  color: var(--primary);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.back-pill {
  justify-self: start;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.scene-sheet-panel .scene-picker {
  padding: 16px 24px 40px;
  gap: 28px;
}

.menu-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.menu-sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 24px 8px;
}

.menu-sheet-head h2 {
  margin: 0 auto 0 0;
  color: var(--primary);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.menu-sheet-head .icon-btn {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-size: 18px;
}

.menu-sheet-picker {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 12px 24px;
}

.menu-sheet-picker button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.menu-sheet-picker button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary);
  box-shadow: 0 8px 16px -14px rgba(170, 44, 50, 0.4);
}

.menu-sheet-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px calc(40px + env(safe-area-inset-bottom, 0px));
}

.menu-song-list,
.settings-stack {
  display: grid;
  gap: 12px;
}

.menu-empty {
  min-height: 56dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--ink-soft);
  text-align: center;
}

.menu-empty h3,
.menu-empty p {
  margin: 0;
}

.menu-empty h3 {
  color: var(--ink);
  font-size: 22px;
}

.menu-song-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.menu-song-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.menu-song-side span:last-child {
  color: var(--primary);
  font-size: 22px;
}

.settings-section-title {
  padding: 12px 0 0 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.settings-card {
  overflow: hidden;
  display: grid;
  gap: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px -18px rgba(170, 44, 50, 0.36);
}

.settings-voice-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.settings-voice-head strong,
.settings-row strong,
.settings-static-row strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.settings-voice-head small,
.settings-row small,
.settings-static-row small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.settings-voice-head i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--warning);
}

.settings-voice-head i.is-good {
  background: var(--green);
}

.settings-primary-action,
.settings-soft-action {
  min-height: 44px;
  margin: 0 20px 16px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.settings-primary-action span,
.settings-soft-action span {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
}

.settings-primary-action svg,
.settings-soft-action svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.settings-primary-action {
  background: var(--gradient-primary);
  color: white;
}

.settings-soft-action {
  background: var(--primary-soft);
  color: var(--primary);
}

.settings-row,
.settings-static-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px 20px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.settings-static-row {
  cursor: default;
}

.settings-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-low);
  color: var(--primary);
  font-size: 20px;
  font-style: normal;
}

.settings-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.settings-icon.is-gradient {
  background: var(--gradient-primary);
  color: white;
}

.settings-row em,
.settings-static-row > small {
  color: var(--ink-faint);
  font-style: normal;
  font-weight: 800;
}

.settings-divider {
  height: 1px;
  background: var(--surface-low);
}

.settings-footer {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 20px 0 48px;
  color: var(--ink-soft);
  font-size: 12px;
}

.settings-footer strong {
  color: var(--primary);
  font-size: 16px;
}

.settings-footer a {
  text-decoration: none;
  font-weight: 700;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-head h2 {
  margin: 0 auto 0 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 20px;
}

.recording-meter {
  display: grid;
  gap: 12px;
  place-items: center;
  padding: 18px 0;
}

.record-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 10px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  cursor: pointer;
  font-size: 28px;
}

.wave-bars {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.wave-bars span {
  width: 5px;
  height: var(--h, 18px);
  border-radius: var(--radius-full);
  background: var(--primary);
  opacity: 0.72;
}

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  font-weight: 500;
}

.hidden,
[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .webapp {
    padding: max(20px, env(safe-area-inset-top, 0px)) 24px 34px;
  }

  .webapp.ios-create-mode {
    padding: max(18px, env(safe-area-inset-top, 0px)) 24px max(18px, env(safe-area-inset-bottom, 0px));
  }

  .app-header {
    margin: -20px -24px 18px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .desktop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
    gap: 16px;
  }

  .modal-backdrop {
    align-items: center;
  }
}

@media (max-width: 390px) {
  .webapp {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-header {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .webapp.ios-create-mode {
    padding-left: 20px;
    padding-right: 20px;
  }

  .composer-head {
    align-items: center;
    gap: 8px;
  }

  .page-title {
    font-size: 25px;
  }

  .purchase-screen {
    gap: 18px;
    padding-bottom: 26px;
  }

  .purchase-icon-cloud {
    height: 84px;
  }

  .purchase-hero-icon {
    width: 62px;
    height: 62px;
  }

  .purchase-hero-icon svg {
    width: 56px;
    height: 56px;
  }

  .purchase-hero h1 {
    font-size: 26px;
  }

  .purchase-hero p {
    font-size: 14px;
  }

  .purchase-benefits {
    gap: 8px;
    margin-bottom: 10px;
  }

  .purchase-review {
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 16px 16px 13px;
  }

  .purchase-options {
    padding-top: 12px;
  }

  .plan-card {
    gap: 10px;
    min-height: 78px;
    padding: 16px 14px;
  }

  .plan-badge {
    left: 14px;
  }

  .plan-price {
    font-size: 18px;
  }

  .plan-card[aria-pressed="true"] .plan-price {
    font-size: 20px;
  }

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

@media (max-width: 350px) {
  .webapp.ios-create-mode {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel.composer-card {
    padding: 18px;
  }

  .purchase-benefit strong {
    font-size: 11px;
  }

  .purchase-benefit span {
    width: 40px;
    height: 40px;
  }

  .purchase-review p {
    font-size: 13px;
  }

  .composer-card .field-label {
    font-size: 13.5px;
  }

  .composer-card .segmented button {
    padding: 0 7px;
    font-size: 10px;
  }

  .gender-icon {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }
}

.generating-screen {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  padding: max(8px, env(safe-area-inset-top, 0px)) 0 max(18px, env(safe-area-inset-bottom, 0px));
}

.generating-topbar,
.result-topbar {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.generating-topbar strong {
  color: var(--primary);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.generating-card {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 32px 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-bloom);
  text-align: center;
}

.generating-card .page-copy {
  max-width: 28ch;
  margin: 0;
}

.generating-card .range-row {
  width: 100%;
  max-width: 300px;
  margin: 4px 0 2px;
}

.result-shell {
  gap: 20px;
  min-height: 100dvh;
  padding-top: max(2px, env(safe-area-inset-top, 0px));
  padding-bottom: max(22px, calc(var(--safe-bottom) + 22px));
}

.result-topbar {
  margin-bottom: -2px;
}

.result-topbar .icon-btn,
.generating-topbar .icon-btn {
  justify-self: end;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-size: 28px;
  font-weight: 800;
}

.result-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  color: var(--primary);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.result-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.result-hero {
  gap: 12px;
}

.result-player {
  gap: 20px;
  padding: 20px 16px 22px;
}

.result-action-row {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.result-action-row .primary-btn {
  min-height: 56px;
  font-size: 17px;
}

.modal-backdrop.is-voice-sheet {
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #FFDDD6 0%, #FFD0C7 48%, #FFE2DC 100%);
}

.modal-backdrop.is-voice-sheet::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(192, 122, 116, 0.16) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.58) 0 1.5px, transparent 2px),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.42) 0 1.5px, transparent 2px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 44%, rgba(192, 122, 116, 0.08));
  background-size: 28px 28px, 28px 28px, 120px 120px, 150px 150px, auto;
}

.voice-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-width: 430px;
  max-height: none;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 20px max(24px, calc(var(--safe-bottom) + 24px));
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.voice-recording-layout {
  display: grid;
  gap: 18px;
  padding-top: 12px;
}

.voice-recording-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.voice-recording-hero .settings-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.voice-recording-hero .settings-icon svg {
  width: 30px;
  height: 30px;
}

.voice-recording-hero h1,
.voice-script-card h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  font-weight: 900;
}

.voice-recording-hero h1 {
  font-size: 28px;
}

.voice-recording-hero p,
.voice-script-card small {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.voice-script-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-bloom);
  text-align: center;
}

.voice-script-card h3 {
  color: var(--primary);
  font-size: 16px;
}

.voice-script-card p {
  margin: 0;
  color: rgba(48, 46, 44, 0.82);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

.voice-record-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.record-button span {
  display: block;
  line-height: 1;
}

.record-button.is-recording {
  cursor: default;
  animation: voicePulse 1.2s ease-in-out infinite;
}

.record-button:disabled {
  opacity: 1;
}

@keyframes voicePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(170, 44, 50, 0.26);
  }

  50% {
    box-shadow: 0 0 0 18px rgba(170, 44, 50, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .auth-notice-icon path {
    stroke-dashoffset: 0;
  }
}
