:root {
  --bg: #0b0f14;
  --card: #151b22;
  --text: #f4f1ea;
  --muted: #9aa7b4;
  --accent: #7dffb3;
  --danger: #ff7b7b;
  --line: #2a3440;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  padding: env(safe-area-inset-top) 16px calc(24px + env(safe-area-inset-bottom));
}

.shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding-top: 28px;
}

.kicker {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 12px;
}

h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.lead,
label,
.status,
#filename {
  color: var(--muted);
}

.lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.45;
}

.card,
.player,
.status {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0f141a;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  padding: 14px;
}

textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

button,
.save {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

#submit,
.save {
  background: var(--accent);
  color: #062214;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status {
  margin-top: 14px;
  font-size: 15px;
}

.status.error {
  color: var(--danger);
}

.player {
  margin-top: 14px;
}

#filename {
  margin: 0 0 12px;
  word-break: break-word;
}

audio {
  width: 100%;
  margin-bottom: 12px;
}

.save {
  width: 100%;
}

@media (min-width: 720px) {
  .shell {
    padding-top: 64px;
  }
}
