:root {
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #0b0d12;
  color: #f7f8fb;
  --accent: #ff315f;
  --accent-2: #ff6b45;
  --card: rgba(24, 27, 36, 0.94);
  --line: rgba(255, 255, 255, 0.09);
  --muted: #9299a8;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -10%, rgba(255,49,95,.2), transparent 35%), #0b0d12; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(100%, 520px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
header { display: flex; align-items: center; gap: 12px; padding: 8px 4px 24px; }
.mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 900; box-shadow: 0 10px 30px rgba(255,49,95,.28); }
h1, h2, p { margin: 0; }
h1 { font-size: 22px; letter-spacing: -.02em; }
header p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-bottom: 14px; background: var(--card); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
label { display: block; font-weight: 700; margin-bottom: 12px; }
textarea, input { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #101219; color: #fff; outline: none; }
textarea { padding: 14px; resize: vertical; line-height: 1.65; }
input { padding: 13px 14px; margin: 16px 0 12px; }
textarea:focus, input:focus { border-color: rgba(255,49,95,.7); box-shadow: 0 0 0 3px rgba(255,49,95,.1); }
.inline-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 10px 0 14px; }
button, .action-link { border: 0; border-radius: 14px; min-height: 48px; padding: 0 18px; font-weight: 750; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .55; cursor: wait; }
.primary { width: 100%; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 9px 24px rgba(255,49,95,.22); }
.secondary { width: 100%; color: #fff; background: #252936; border: 1px solid var(--line); }
.ghost { min-height: 34px; padding: 0 12px; color: #c4c8d2; background: #222631; }
.status { margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: #20232d; color: #d8dbe2; font-size: 13px; line-height: 1.5; }
.status.error { color: #ff9aac; background: rgba(255,49,95,.11); }
.status.success { color: #7ae7c7; background: rgba(25,198,148,.1); }
.result-heading { display: flex; align-items: center; gap: 8px; color: #72e2c2; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.success-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d2a3; box-shadow: 0 0 14px #35d2a3; }
video { width: 100%; max-height: 54vh; border-radius: 14px; background: #050608; }
.result-card h2 { font-size: 15px; line-height: 1.55; margin: 14px 2px; }
.action-grid { display: grid; gap: 10px; }
.action-link { display: grid; place-items: center; }
.ios-tip { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 12px; }
.transcript-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.transcript-heading h2 { font-size: 16px; }
.text-button { min-height: 34px; padding: 0 10px; color: #ff7694; background: transparent; }
#transcriptText { min-height: 220px; }
footer { color: #646b7a; text-align: center; font-size: 11px; padding: 12px; }
dialog { width: calc(100% - 32px); max-width: 420px; border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: #181b24; color: #fff; }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
dialog h2 { font-size: 19px; }
dialog p { color: var(--muted); font-size: 13px; margin-top: 7px; }
@media (min-width: 520px) { .action-grid { grid-template-columns: 1fr 1fr; } }
