/* TapeNotes. Neutral grays that follow the device's light/dark setting, one signal color
   (the red "recording" light) for Mark now and the play that's on screen, and as few
   boxes as possible so the video carries the page. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f5f5f3;
  --raised: #ffffff;
  --sunk: #ebebe8;
  --line: #dcdcd7;
  --text: #17181a;
  --muted: #5c6066;
  --signal: #d7261b;
  --signal-ink: #ffffff;
  --signal-soft: rgba(215, 38, 27, .1);
  --stage: #0d0d0e;
  --radius: 8px;
  --tap: 44px;
  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121314;
    --raised: #1c1d1f;
    --sunk: #0b0b0c;
    --line: #2e3033;
    --text: #ededeb;
    --muted: #9b9fa5;
    --signal: #ff4a3d;
    --signal-ink: #160302;
    --signal-soft: rgba(255, 74, 61, .14);
  }
}

* { box-sizing: border-box; }
/* Class rules like .hint { display: block } would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
kbd {
  font: 700 .72em var(--font);
  padding: .05em .4em;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: .75;
}
/* Only show keyboard hints on devices that likely have a keyboard. */
@media (hover: none), (pointer: coarse) { .key-hint { display: none; } }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.video-page .wrap { max-width: 1600px; }
main { flex: 1; padding-top: 36px; padding-bottom: 64px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: .9rem; font-weight: 400; margin-top: 4px; }
.empty { color: var(--muted); padding: 24px 0; }
.tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--sunk);
  border-radius: 4px;
  padding: .05em .45em;
  vertical-align: .1em;
}
.js .js-hide { display: none; }
html:not(.js) .js-only { display: none; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; --mark: var(--signal); }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav-short { display: none; }
.site-footer { color: var(--muted); font-size: .9rem; padding: 20px 0 28px; }
.footer-row { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer-row a { color: var(--text); font-weight: 700; }
.feedback { max-width: 560px; }

/* ---- Flash ---- */
#flash:empty { display: none; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; background: var(--raised); border-left: 4px solid var(--muted); }
.flash-error { border-left-color: var(--signal); }
.flash-success { border-left-color: var(--text); }

/* ---- Forms and buttons ---- */
label { display: block; font-weight: 700; }
input[type=text], input[type=email], input[type=password], select, textarea {
  display: block;
  width: 100%;
  min-height: var(--tap);
  margin-top: 6px;
  padding: 9px 12px;
  font: 400 1rem/1.4 var(--font); /* 16px+ keeps iPad Safari from zooming in on focus */
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
label > .sr-only + input, label > .sr-only + select, label > .sr-only + textarea { margin-top: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; min-height: var(--tap); cursor: pointer; white-space: nowrap; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--text); }
.stack { display: grid; gap: 16px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.grow { flex: 1 1 220px; min-width: 0; }
form.inline { display: inline; }
.code-input { text-transform: uppercase; letter-spacing: .12em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  font: 700 1rem/1 var(--font);
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { border-color: var(--text); opacity: .88; }
.btn-quiet { background: transparent; border-color: transparent; }
.btn-quiet:hover { background: var(--sunk); border-color: transparent; }
.btn-danger { color: var(--signal); border-color: currentColor; background: transparent; }
.btn-block { width: 100%; }
.link-button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.link-button:hover { color: var(--text); }
.danger { color: var(--signal); }
.danger:hover { color: var(--signal); }
summary { cursor: pointer; }
summary.link-button, summary.btn { list-style: none; }
summary::-webkit-details-marker { display: none; }

.menu { position: relative; display: inline-block; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  width: min(340px, 86vw);
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

/* ---- Home (landing page) and sign-in ---- */
.hero { max-width: 820px; padding: 40px 0 36px; }
.eyebrow { color: var(--signal); font-weight: 800; letter-spacing: .02em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.06; margin-bottom: 18px; text-wrap: balance; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 48px rgba(0, 0, 0, .12);
}
.shot-hero { margin-bottom: 72px; }
.shot-note { color: var(--muted); font-size: .9rem; margin: -24px 0 56px; }

.how { padding: 8px 0 64px; }
.how h2, .faq h2 { font-size: 1.6rem; margin-bottom: 24px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 1.5rem; color: var(--signal); margin-bottom: 4px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-flip .feature-text { order: 2; }
.feature h2 { font-size: 1.7rem; }
.feature p { font-size: 1.1rem; }
.feature ul { margin: 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 8px; }
.feature li::marker { color: var(--signal); }

.faq { padding: 48px 0 24px; border-top: 1px solid var(--line); }
.faq dl { margin: 0; display: grid; gap: 28px 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.faq dt { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.faq dd { margin: 0; color: var(--muted); }
.closing { padding: 56px 0 24px; text-align: center; }
.closing h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.closing .hero-actions { justify-content: center; }

@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); padding: 36px 0; }
  .feature-flip { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-text { order: 0; }
  .shot-hero { margin-bottom: 48px; }
}

.auth-card { max-width: 420px; margin: 32px auto; }
.auth-card .eyebrow { color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.auth-links { margin-top: 20px; color: var(--muted); }

/* ---- Teams list ---- */
.team-list { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--line); }
.team-list li { border-bottom: 1px solid var(--line); }
.team-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 4px; text-decoration: none; }
.team-row strong { font-size: 1.2rem; }
.team-row .muted { grid-column: 1; }
.team-row .chevron { grid-column: 2; grid-row: 1 / span 2; font-size: 1.8rem; color: var(--muted); }
.team-row:hover strong { text-decoration: underline; }

.team-sections { display: grid; gap: 40px 56px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.team-sections section { display: grid; gap: 14px; align-content: start; }
.team-sections h2 { margin: 0; }
.team-sections p { margin: 0; }

/* ---- Team page ---- */
.team-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.team-head h1 { margin: 0; }
.team-links { display: flex; gap: 20px; color: var(--muted); }

.add-video { display: grid; gap: 8px; margin-bottom: 28px; }
.add-video-row { display: flex; gap: 10px; flex-wrap: wrap; }
.add-video-row .grow { flex: 1 1 320px; }
.folder-pick { flex: 0 1 200px; }
.add-video-title input { margin-top: 0; }

.folder-tabs { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.folder-tabs > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 12px;
  margin-bottom: -1px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.folder-tabs > a:hover { color: var(--text); }
.folder-tabs > a.is-active { color: var(--text); font-weight: 700; border-bottom-color: var(--text); }
.count { color: var(--muted); font-weight: 400; font-size: .9em; }
.new-folder { margin-left: auto; }
.new-folder > summary { min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 8px; }
.library-head { margin: -12px 0 20px; }
.library-head .menu-panel { left: 0; right: auto; }

.video-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.video-card { display: grid; gap: 4px; text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--sunk); margin-bottom: 6px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.video-card:hover .thumb img { transform: scale(1.03); }
.thumb-placeholder { display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 1.2rem; color: var(--muted); }
.thumb-count {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  border-radius: 4px;
  padding: 2px 7px;
}
.video-card-title { font-size: 1.08rem; line-height: 1.3; }
.video-card:hover .video-card-title { text-decoration: underline; }
.video-card-meta { color: var(--muted); font-size: .92rem; }

.member-list { list-style: none; padding: 0; margin: 0; }
.member-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member { display: grid; }
.join-code { font-size: 2.2rem; font-weight: 800; letter-spacing: .12em; }
.copy-row { display: flex; gap: 10px; }
.copy-row input { margin: 0; }
.danger-zone > summary { min-height: var(--tap); display: inline-flex; align-items: center; }
.danger-zone[open] > summary { margin-bottom: 10px; }

/* ---- Video page ---- */
.video-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.video-title { min-width: 0; flex: 1 1 360px; }
.video-title h1 { margin: 0; font-size: 1.7rem; }
.crumbs { color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.move-folder { display: flex; gap: 8px; }
.move-folder select { margin: 0; width: auto; max-width: 200px; }

.review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 24rem);
  grid-template-areas:
    "stage list"
    "form  list"
    "notes notes";
  column-gap: 28px;
}
.review-panels { display: contents; }
.stage { grid-area: stage; min-width: 0; }
.mark-form { grid-area: form; }
.mark-list { grid-area: list; position: relative; min-height: 320px; }
.notes-area { grid-area: notes; }

.player-frame { position: relative; aspect-ratio: 16 / 9; background: var(--stage); border-radius: var(--radius); overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-frame.shape-auto { aspect-ratio: auto; min-height: 240px; display: grid; place-items: center; }
.player-frame.shape-auto iframe { position: static; }
.player-frame.shape-tall { aspect-ratio: auto; height: min(760px, 80vh); max-width: 460px; margin: 0 auto; background: #fff; }
.player-note { margin: 8px 0 0; }

/* Transport: play/pause, skip, time, and speed right under the video. */
.transport { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-top: 10px; }
.transport[hidden] { display: none; }
.transport-main { display: flex; align-items: center; gap: 6px; }
.btn-play { min-width: 112px; }
.btn-play .icon { width: 14px; height: 14px; background: currentColor; }
.btn-play[data-state=paused] .icon { clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.btn-play[data-state=playing] .icon { clip-path: polygon(0 0, 38% 0, 38% 100%, 0 100%, 0 0, 62% 0, 100% 0, 100% 100%, 62% 100%, 62% 0); }
.transport-time { margin-left: 8px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.transport-time [data-now] { color: var(--text); }
.speed { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.speed-label { color: var(--muted); font-weight: 700; margin-right: 6px; }
.speed [data-rate] {
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 8px;
  font: 700 1rem/1 var(--font);
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.speed [data-rate]:hover { color: var(--text); background: var(--sunk); }
.speed [data-rate].is-on { color: var(--bg); background: var(--text); }
.speed-note { width: 100%; margin: 0; }
.key-help { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.key-help kbd { font-size: .8em; }

/* Mark bar: one row under the video. */
.mark-form { display: grid; gap: 8px; padding: 14px 0 0; }
.mark-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.mark-row label { margin: 0; }
.mark-row input { margin: 0; height: 100%; }
.time-field { flex: 0 0 92px; }
.time-field input { text-align: center; font-weight: 700; }
.btn-mark { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn-mark:hover { border-color: var(--signal); opacity: .9; }
.btn-mark .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.mark-extra { display: flex; gap: 8px 16px; align-items: flex-start; flex-wrap: wrap; }
.mark-extra textarea { margin: 0; min-height: var(--tap); }

/* Bookmark list: fills the column next to the video and scrolls on its own. */
.mark-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.list-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 2px 0 8px; position: sticky; top: 0; background: var(--bg); padding: 4px 0 6px; z-index: 1; }
.mark-list ol { list-style: none; margin: 0; padding: 0; }
.mark { position: relative; }
.mark-link {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  min-height: var(--tap);
  padding: 10px 12px 10px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mark-link:hover { background: var(--sunk); }
.mark-link:focus-visible { outline-offset: -3px; }
.mark-time { font-weight: 800; }
.mark-label { overflow-wrap: anywhere; }
.mark-count { color: var(--muted); font-size: .88rem; }
.mark.is-selected .mark-link { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.mark.is-selected .mark-label { font-weight: 700; }
/* The play that's on screen right now gets the signal color. */
.mark.is-active .mark-time { color: var(--signal); }
.mark.is-active::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 2px;
  background: var(--signal);
}
.mark.is-new .mark-link { animation: flash-in 1.2s ease-out; }
@keyframes flash-in { from { background: var(--signal-soft); } }

/* Notes for the selected bookmark, full width under the video. */
.notes-area { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.notes[hidden] { display: none; }
.notes { max-width: 1000px; }
.notes-head { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 4px; }
.notes-head h2 { margin: 0; font-size: 1.6rem; flex: 1 1 280px; overflow-wrap: anywhere; }
.notes-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 14px;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: var(--radius);
  background: var(--raised);
  border: 1px solid var(--line);
  text-decoration: none;
}
a.notes-time:hover { border-color: var(--muted); }
.notes-time .play { font-size: .7em; color: var(--signal); }
.notes-time.is-static { background: transparent; }
.step-nav { display: flex; gap: 4px; margin-left: auto; }
.notes .meta { color: var(--muted); margin: 4px 0 18px; }
.comments { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 18px; }
.comment-meta { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 2px; }
.comment-meta .link-button { padding: 0; font-size: .9rem; }
.comment-body { margin: 0; font-size: 1.1rem; max-width: 68ch; overflow-wrap: anywhere; }
.comment.is-private { padding-left: 14px; border-left: 3px solid var(--line); }
.comment-form { display: flex; gap: 8px 12px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.comment-form textarea { margin: 0; min-height: var(--tap); }

/* ---- Present mode: what players see on the TV ---- */
.present .site-header, .present .site-footer { display: none; }
.present main { padding-top: 20px; }
.present .wrap { max-width: none; }
.present .review {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 28vw);
  grid-template-areas:
    "stage list"
    "notes notes";
}
.present .video-title h1 { font-size: 1.5rem; }
.present .mark-link { font-size: 1.3rem; padding-top: 14px; padding-bottom: 14px; }
.present .list-title { font-size: 1.1rem; }
.present .notes { max-width: none; }
.present .notes-head h2 { font-size: 2.3rem; }
.present .notes-time { font-size: 1.5rem; }
.present .comment-meta { font-size: 1.15rem; }
.present .comment-body { font-size: 1.6rem; line-height: 1.4; }
.present .comments { gap: 24px; }
.present .transport .btn, .present .speed [data-rate] { font-size: 1.15rem; min-height: 52px; }
.present .transport-time { font-size: 1.2rem; }
:fullscreen .present main { padding-top: 12px; }

/* ---- Small screens and iPad portrait ---- */
@media (max-width: 960px) {
  .review, .present .review {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "form" "list" "notes";
  }
  .mark-list { min-height: 0; margin-top: 24px; }
  .mark-scroll { position: static; max-height: 46vh; }
  .notes-area { margin-top: 20px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  main { padding-top: 24px; }
  h1 { font-size: 1.6rem; }
  .video-title h1 { font-size: 1.4rem; }
  .header-row { min-height: 54px; }
  .nav { gap: 4px 14px; font-size: .95rem; }
  .nav-name { display: none; }
  .nav { flex-wrap: nowrap; }
  .nav .btn { min-height: 40px; padding: 0 12px; font-size: .95rem; }
  .nav-short { display: inline; }
  .team-links { gap: 14px; }
  .new-folder { margin-left: 0; }
  .folder-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .folder-tabs > a { white-space: nowrap; }
  .new-folder .menu-panel { position: fixed; left: 16px; right: 16px; top: auto; width: auto; }
  .mark-row .btn-mark { flex: 1 1 100%; }
  .transport-main { width: 100%; }
  .transport-main .btn-play { flex: 1; min-width: 0; }
  .transport-main .btn-quiet { padding: 0 10px; }
  .transport-time { margin-left: 4px; }
  .speed-label { display: none; }
  .mark-row .grow { flex-basis: 160px; }
  .mark-row .btn-primary { flex: 1 1 100%; }
  .step-nav { margin-left: 0; width: 100%; justify-content: space-between; }
  .notes-head h2 { font-size: 1.35rem; }
  .copy-row { flex-wrap: wrap; }
  .video-grid { grid-template-columns: 1fr; }
}
