:root {
  --bg: #f1f2f4;
  --card: #ffffff;
  --ink: #000000;
  --muted: #454850;
  --line: #d9dbe0;
  --accent: #000000;
  --accent-ink: #ffffff;
  --tape: #ffe500;
  --ok: #12753b;
  --warn: #a35c00;
  --field: #ffffff;
  --radius: 8px;
  --display: 'DIN Condensed', Bahnschrift, 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 80px; }
header.top { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand { font-weight: 700; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 500; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 10px; }
h2 { font-size: 18px; margin: 0 0 4px; letter-spacing: -0.01em; }
p.lead { color: var(--muted); margin: 0 0 26px; font-size: 17px; max-width: 56ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label.field > span i { font-style: normal; font-weight: 400; color: var(--muted); }
input[type='text'], input[type='email'], input[type='password'], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--field); color: var(--ink); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, .drop:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.two { display: grid; grid-template-columns: 1fr 160px; gap: 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
button {
  font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); padding: 11px 18px; cursor: pointer;
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.small { padding: 4px 10px; font-size: 13px; font-weight: 500; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.error { color: var(--accent); font-size: 14px; min-height: 20px; margin: 8px 0 0; }
.drop {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px 16px; text-align: center;
  color: var(--muted); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--ink); }
.drop b { color: var(--ink); }
ul.files { list-style: none; margin: 12px 0 0; padding: 0; }
ul.files li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
ul.files .row { display: flex; gap: 10px; align-items: center; }
ul.files .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.files .size { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.files .state { font-size: 13px; white-space: nowrap; }
ul.files .state.done { color: var(--ok); }
ul.files .state.fail { color: var(--accent); }
.bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
ol.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
ol.steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
ol.steps li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
ol.steps li.done { color: var(--ink); }
ol.steps li.done::before { background: var(--ok); border-color: var(--ok); }
ol.steps li.now { color: var(--ink); font-weight: 600; }
ol.steps li.now::before { border-color: var(--accent); background: var(--accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { ol.steps li.now::before { animation: none; } .bar i { transition: none; } }
video { width: 100%; max-height: 72vh; border-radius: 10px; background: #000; display: block; }
.versions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.versions button.active { border-color: var(--accent); color: var(--accent); }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-size: 14px; }
.feedback { border-top: 1px solid var(--line); padding: 10px 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback small { display: block; color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
[hidden] { display: none !important; }

/* Review */
.reviewHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stage { position: relative; background: #000; border-radius: 10px; overflow: hidden; }
.stage video { border-radius: 0; }
#ink { position: absolute; pointer-events: none; touch-action: none; }
.stage.drawing #ink { pointer-events: auto; cursor: crosshair; outline: 2px solid var(--accent); outline-offset: -2px; }
.markers { position: relative; height: 18px; margin: 6px 0 2px; border-radius: 6px; background: color-mix(in srgb, var(--line) 60%, transparent); }
.markers button { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; padding: 0; border-radius: 50%; border: 2px solid var(--card); background: var(--accent); }
.markers button.resolved { background: var(--ok); }
.markers button.studio { background: var(--muted); }
.markers i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: 0.55; }
.composer { margin-top: 14px; }
.composerTop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.composerTop .at { display: flex; gap: 6px; align-items: center; font-size: 14px; margin-right: auto; }
.composerTop b { font-variant-numeric: tabular-nums; }
button[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); }
.composer textarea { min-height: 76px; }
.note { border-top: 1px solid var(--line); padding: 12px 0; }
.note.resolved > .noteBody { opacity: 0.6; }
.note.active { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.noteMeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.noteMeta .who { color: var(--ink); font-weight: 600; }
.tc { font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 2px 9px; border-radius: 99px; border-color: var(--accent); color: var(--accent); background: transparent; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); }
.tag.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.noteText { white-space: pre-wrap; overflow-wrap: anywhere; }
.noteTools { display: flex; gap: 8px; margin-top: 6px; }
.reply { margin: 10px 0 0 18px; padding-left: 12px; border-left: 2px solid var(--line); }
.replyBox { margin: 8px 0 0 18px; display: flex; gap: 8px; }
.replyBox input { flex: 1; }
.verdict { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }

/* Client page, guided brief, compare */
.back { margin: -14px 0 14px; font-size: 14px; }
a { color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
input[type='date'] { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); font: inherit; }
ul.jobs .name { font-weight: 600; text-decoration: none; }
ul.jobs li:first-child { border-top: 0; }
.briefList { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0 12px; font-size: 14px; }
.briefList dt { color: var(--muted); }
.briefList dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.compareBar { display: flex; justify-content: flex-end; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.compareBar select { width: auto; padding: 5px 10px; margin-left: 6px; }
.screens.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.stage.other video { width: 100%; }
.otherLabel { position: absolute; left: 8px; top: 8px; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #000a; color: #fff; }
@media (max-width: 620px) { .screens.two { grid-template-columns: 1fr; } }
.away { margin: -6px 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }
.plan { margin: -4px 0 16px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; font-size: 14px; }
.brand a { color: inherit; text-decoration: none; }
#codeRow { margin-top: 10px; }
#codeRow input { max-width: 240px; }
#packages { flex-wrap: wrap; margin-top: 12px; }
#packages:empty { display: none; }

/* ---- Hitmark's identity on the upload pages: the tape-mark logo, DIN headings, and one
   yellow button per screen for the thing to do next. */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 75%; font-size: 30px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; text-decoration: none; color: var(--ink); line-height: 1; padding-top: 2px; }
.tmark { position: relative; flex: none; width: 28px; height: 28px; margin-top: -2px; border-radius: 6px; background: #000; }
.tmark::before, .tmark::after { content: ''; position: absolute; background: var(--tape); border-radius: 1px; }
.tmark::before { left: 5px; right: 5px; top: 6px; height: 6px; transform: rotate(-3deg); }
.tmark::after { left: 11px; width: 6px; top: 7px; bottom: 5px; transform: rotate(2deg); }
h1 { font-family: var(--display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; font-size: clamp(38px, 7vw, 56px); line-height: 0.96; letter-spacing: 0; }
button.primary { background: var(--tape); border: 2px solid #000; color: #000; box-shadow: 3px 3px 0 #000; }
button.primary:hover:not(:disabled) { background: #f2d900; }
button.primary:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
button.primary:disabled { box-shadow: none; }
.plan { border-left: 6px solid var(--tape); background: #fff; border-radius: 0 8px 8px 0; }
