:root {
  --bg: #F4F5F2;
  --card: #FFFFFF;
  --ink: #1F2A2E;
  --ink-2: #3E474B;
  --muted: #5B6468;
  --accent: #1E6B73;
  --accent-soft: #DCEBEA;
  --accent-ink: #FFFFFF;
  --line: #C9CFCB;
  --task: #EAE4DA;
  --task-ink: #6A5A43;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 18px; line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
#app { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; }
h2 { margin: 8px 0 4px; font-size: 21px; font-weight: 800; }
p { margin: 0; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); font-size: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
button, a.btn, a.row { font: inherit; cursor: pointer; text-decoration: none; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 10px 18px; border-radius: 18px; border: none;
  font-size: 19px; font-weight: 800;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-outline { background: var(--card); color: var(--accent); border: 2px solid var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); min-height: 48px; font-size: 18px; font-weight: 700; }
.btn-done { background: var(--accent-soft); color: var(--accent); border: 2px solid var(--accent); }
.back { align-self: flex-start; padding: 0 12px 0 4px; }
.card { background: var(--card); border-radius: 20px; padding: 18px 20px; }
.bar { height: 12px; border-radius: 6px; background: #E3E6E2; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.cont { background: var(--accent); color: #fff; border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.cont .eyebrow { color: #CFE6E3; }
.cont .title { font-size: 23px; line-height: 1.25; font-weight: 800; }
.cont .btn { background: #fff; color: var(--accent); }
.row {
  width: 100%; min-height: 76px; border: none; border-radius: 18px; background: var(--card); color: var(--ink);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px; text-align: left;
}
.row .t { font-size: 18px; line-height: 1.3; font-weight: 700; }
.row .s { font-size: 15px; color: var(--muted); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.badge {
  flex: none; width: 44px; height: 44px; border-radius: 22px; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center;
}
.badge.done { background: var(--accent); }
.badge.ring { background: transparent; border: 2px solid #9AA5A2; color: var(--ink-2); font-size: 15px; }
/* Player box keeps the video's own 9:16 shape: it is as tall as the smallest screen height allows (svh: does not change when the browser bar hides, so the page does not jump) and the width follows, so VK draws no black side bars. */
.player { position: relative; width: min(100%, calc(84vh * 9 / 16)); width: min(100%, calc(84svh * 9 / 16)); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 20px; overflow: hidden; background: var(--ink); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #C9D2D0; padding: 24px; text-align: center; font-size: 16px; }
.task { background: var(--task); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.task .eyebrow { color: var(--task-ink); }
.ph { height: 190px; border-radius: 20px; background: #DCD5C9; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .badge { width: 36px; height: 36px; font-size: 16px; }
.review { background: #FFF6E0; border: 2px dashed #C99A2E; color: #6B4E0F; }
svg { flex: none; }
.audio-card audio { width: 100%; height: 54px; }
.remark-form { display: flex; flex-direction: column; gap: 10px; background: #FFF6E0; border: 2px dashed #C99A2E; border-radius: 18px; padding: 14px; }
.remark-form label { font-size: 15px; font-weight: 700; color: #6B4E0F; }
.remark-form input, .remark-form textarea { font: inherit; font-size: 17px; border: 1px solid #D9C48F; border-radius: 12px; padding: 10px 12px; background: #fff; color: var(--ink); width: 100%; }
.remark-form textarea { min-height: 110px; resize: vertical; }
.remark-form .btn { min-height: 52px; }
.note-saved { font-size: 15px; color: #6B4E0F; }
