/* Videos to record: phone-first, big type, one accent color. */
:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --line: #d9d9d4;
  --accent: #1d5fd1;
  --accent-text: #ffffff;
  --accent-soft: #e6eefc;
  --warn: #8a5a00;
  --warn-bg: #fff3d6;
  --error: #b3261e;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --card: #1e1e1e;
    --text: #f2f2f2;
    --muted: #b5b5b5;
    --line: #3a3a3a;
    --accent: #6ea0ff;
    --accent-text: #0b1a33;
    --accent-soft: #1d2a42;
    --warn: #ffc857;
    --warn-bg: #3a2c0c;
    --error: #ff8a80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
@media (min-width: 700px) { body { font-size: 19px; } }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0; }

/* ---------------- header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 760px; margin: 0 auto; padding: 14px 16px 12px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top h1 { font-size: 1.5rem; }
.sync-status { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
.sync-status.stale {
  color: var(--warn); background: var(--warn-bg);
  padding: 6px 10px; border-radius: 8px; font-weight: 600;
}

/* ---------------- buttons */
.button {
  font: inherit; font-weight: 600;
  min-height: 48px; padding: 10px 18px;
  border-radius: 10px; border: 2px solid var(--accent);
  background: transparent; color: var(--accent);
  cursor: pointer;
}
.button.small { min-height: 44px; padding: 6px 14px; font-size: 1rem; }
.button.primary { background: var(--accent); color: var(--accent-text); }
.button:disabled { opacity: 0.6; cursor: default; }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------------- sheets */
.sheets { max-width: 760px; margin: 0 auto; padding: 16px 16px 80px; }
.empty { font-size: 1.1rem; color: var(--muted); padding: 24px 0; }
.review-note { color: var(--muted); margin: 0 0 16px; }

.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin: 0 0 24px;
  scroll-margin-top: 16px;
}
.sheet-title { font-size: 1.4rem; overflow-wrap: anywhere; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; }
.sheet-head .sheet-title { flex: 1 1 auto; }
.format-line { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }
.format-line .interviewer { color: var(--accent); font-weight: 700; }
.summary { margin: 12px 0 0; font-size: 1.1rem; }
.self-note {
  margin: 14px 0 0; padding: 12px 14px;
  background: var(--accent-soft); border-radius: 10px; font-weight: 600;
}
.links { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 6px 14px; border: 2px solid var(--accent); border-radius: 10px;
  text-decoration: none; font-weight: 600;
}

.block { margin-top: 24px; }
.block h3 {
  font-size: 1.15rem; padding-bottom: 6px; margin-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.camera-text { margin: 0; }

.pill {
  display: inline-block; flex: 0 0 auto;
  background: var(--accent); color: var(--accent-text);
  border-radius: 999px; padding: 2px 12px; font-size: 0.95rem; font-weight: 700;
  margin-top: 4px;
}
.sheet.done .sheet-summary-row { margin-top: 12px; }

/* ---------------- checkbox rows (label wraps a hidden input and a 44px box) */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.check {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; cursor: pointer; min-height: 60px;
}
.check input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.box {
  flex: 0 0 44px; width: 44px; height: 44px;
  border: 3px solid var(--muted); border-radius: 10px;
  background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
}
.box svg { width: 28px; height: 28px; visibility: hidden; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { visibility: visible; }
.check input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 3px; }
.check .body { flex: 1 1 auto; min-width: 0; padding-top: 7px; overflow-wrap: anywhere; }
.check input:checked ~ .body .item-main { text-decoration: line-through; color: var(--muted); }
.num { font-weight: 700; margin-right: 4px; }
.item-name { font-weight: 700; }
.item-extra { color: var(--text); }
.item-notes { display: block; font-size: 0.95rem; color: var(--muted); margin-top: 2px; }
.save-error { display: block; color: var(--error); font-size: 0.95rem; font-weight: 600; margin-top: 4px; }

/* ---------------- shots */
.shot .body { display: grid; gap: 8px; }
.shot-num { font-weight: 800; font-size: 1.1rem; }
.label { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted); }
.says { font-size: 1.1rem; }
.interviewer-box {
  background: var(--accent-soft); border-left: 5px solid var(--accent);
  border-radius: 8px; padding: 10px 12px;
}
.you { font-weight: 800; }
.you .label { color: var(--accent); }

/* ---------------- login */
.login { max-width: 420px; margin: 0 auto; padding: 48px 16px; }
.login h1 { font-size: 1.6rem; margin-bottom: 8px; }
.login form { display: grid; gap: 12px; margin-top: 16px; }
.login label { font-weight: 700; }
.login input {
  font: inherit; min-height: 52px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text);
}
.login input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.login-error { color: var(--error); font-weight: 700; }
