:root {
  --bg: #0b0d12;
  --card: #151922;
  --line: #2a3447;
  --text: #e8eef8;
  --muted: #8b97ad;
  --accent: #3d8bfd;
  --ok: #3dcc8a;
  --tap: 48px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100%;
}
body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 96px;
}
header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.mark {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto; margin-top: 3px;
  background: linear-gradient(135deg, #3d8bfd, #3dcc8a);
}
h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.4px; line-height: 1.2; }
h2 { margin: 0 0 12px; font-size: 17px; }
header p, .status { color: var(--muted); font-size: 15px; line-height: 1.45; }
form, .status, #plan, #done {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
input, textarea {
  display: block; width: 100%; margin-top: 7px;
  padding: 14px 14px;
  min-height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1c2433;
  color: var(--text);
  font-size: 16px; /* iOS won't zoom */
  line-height: 1.35;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr; gap: 0; }
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 4px;
  min-height: var(--tap);
  padding: 14px 16px;
  border: 0; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 650;
  cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--ok); border: 1px solid var(--line); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: wait; }
ol { padding-left: 22px; margin: 0 0 12px; }
li { margin: 10px 0; font-size: 15px; line-height: 1.4; }
li small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.hidden { display: none; }
video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; }
@media (min-width: 640px) {
  .wrap { padding: 32px 20px 80px; }
  .row { grid-template-columns: 1fr 1fr; gap: 12px; }
}
