@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url(fonts/barlow-condensed-700-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Source Sans 3"; font-weight: 200 900; src: url(fonts/source-sans-3-latin.woff2) format("woff2"); font-display: swap; }
:root { --ink:#16181d; --mute:#5b616e; --line:#d9dce3; --bg:#f6f7f9; --card:#fff; --red:#b3001b; --ok:#1f7a3a; --amber:#8a5c00;
        --warn:#fff4e0; --warnline:#ecd3a3; --late:#fde8ea; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { min-height: 100vh; }
main { max-width: 620px; margin: 0 auto; padding: 14px 14px 96px; }
h1, .when { font: 700 23px/1.15 "Barlow Condensed", -apple-system, sans-serif; margin: 0; }
h2 { font: 700 13px/1.2 -apple-system, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 18px 0 8px; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 0 12px; }
.top .who { color: var(--mute); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.lbl { font: 700 11px/1 -apple-system, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 0 0 7px; }
.sub, .muted { color: var(--mute); font-size: 15px; }
.goal { font-weight: 700; margin-top: 8px; }
.rx { white-space: pre-line; margin-top: 4px; }
.rx.old { color: var(--mute); font-size: 15px; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 0; font-size: 15px; }
dt { color: var(--mute); } dd { margin: 0; }
.changed { background: var(--warn); border: 1px solid var(--warnline); border-radius: 10px; padding: 9px 11px; margin-top: 10px; font-size: 15px; }
.cue { font-weight: 700; font-size: 18px; border-left: 4px solid var(--red); padding-left: 10px; margin: 4px 0; }
.sig { font-size: 13px; color: var(--mute); margin-top: 6px; }
button, .btn { min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: 16px; padding: 8px 14px; cursor: pointer; }
.primary { display: block; width: 100%; background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; font-size: 18px; min-height: 52px; margin: 6px 0; }
.primary[disabled] { opacity: .55; }
.row2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.hurt { font-weight: 700; margin: 8px 0; }
.seen { color: var(--ok); font-weight: 700; margin: 6px 0; }
.status { font-size: 15px; margin: 4px 0; }
.status.bad { color: var(--red); font-weight: 700; }
.status.ok { color: var(--ok); }
.item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; }
.clips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.clips video { width: 100%; border-radius: 8px; background: #20242c; aspect-ratio: 16/10; }
.q { font-weight: 700; margin: 14px 0 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border-radius: 999px; padding: 8px 13px; min-height: 44px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ends { display: flex; justify-content: space-between; color: var(--mute); font-size: 13px; }
textarea, input[type=email], input[type=password], input[type=text] { width: 100%; min-height: 46px; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }
textarea { min-height: 70px; }
label.check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
label.check input { width: 20px; height: 20px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 13px; }
.cal b { color: var(--mute); font-weight: 600; }
.cal button { min-height: 52px; padding: 3px 0; border-radius: 8px; font-size: 13px; }
.cal button i { display: block; font-style: normal; font-weight: 700; font-size: 16px; }
.cal .today { outline: 2px solid var(--red); }
.cal .blank { visibility: hidden; }
.mk-written { color: var(--ok); } .mk-changed { color: var(--amber); } .mk-missed { color: var(--red); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 60px; }
.bars i { flex: 1; background: #9aa6bd; border-radius: 2px 2px 0 0; min-width: 4px; }
.flag { border: 1px solid var(--warnline); background: var(--warn); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.flag.late { background: var(--late); border-color: #f0b7bf; }
.flag .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.reply { border-left: 3px solid var(--line); padding-left: 9px; margin-top: 8px; font-size: 15px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.tabs .brand { display: none; }
.tabs button { border: 0; border-radius: 0; background: none; color: var(--mute); font-size: 13px; min-height: 56px; }
.tabs button[aria-current="page"] { color: var(--red); font-weight: 700; }
.sheet { position: fixed; inset: 0; background: rgba(22,24,29,.45); z-index: 10; overflow: auto; }
.sheet .panel { background: var(--bg); max-width: 620px; margin: 30px auto 0; border-radius: 16px 16px 0 0; padding: 16px 14px 40px; min-height: 100%; }
.sheet .close { float: right; }
:focus-visible { outline: 3px solid #2f6fdd; outline-offset: 2px; }
@media (min-width: 900px) {
  .tabs { top: 0; right: auto; width: 210px; grid-auto-flow: row; grid-auto-rows: min-content; border-top: 0; border-right: 1px solid var(--line); padding: 18px 10px; }
  .tabs .brand { display: block; font: 700 14px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); padding: 4px 12px 14px; }
  .tabs button { text-align: left; font-size: 16px; padding: 10px 12px; border-radius: 8px; min-height: 44px; }
  .tabs button[aria-current="page"] { background: var(--bg); }
  main { margin-left: 210px; max-width: 980px; padding: 22px 28px 40px; }
  .wide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .sheet .panel { border-radius: 16px; margin: 40px auto; min-height: 0; }
}
