:root {
  color-scheme: dark;
  font: 16px/1.45 system-ui, sans-serif;
  background: #111216;
  color: #f1eee8;
  --ink-muted: #b9b9c1;
  --line: #36353d;
  --surface: #191a20;
  --accent: #efbc79;
}
* { box-sizing: border-box; }
body { margin: 0; }
body[data-brand="vcg"] { --accent: #f2a7ce; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, input, select {
  min-height: 42px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); color: inherit; padding: 7px 12px;
}
button { cursor: pointer; }
button:hover:not(:disabled), button[aria-pressed="true"] { border-color: var(--accent); }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 500 2rem/1.1 'EB Garamond', Georgia, serif; }
.muted, .notice, .empty { color: var(--ink-muted); }
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px clamp(16px, 3vw, 48px); border-bottom: 1px solid var(--line);
}
.masthead > div:first-child, .session-controls, nav, .filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.brandmark {
  font: 700 1rem/1 'Rajdhani', sans-serif; letter-spacing: .13em; text-transform: uppercase;
  border-inline-end: 1px solid var(--line); padding-inline-end: 13px;
}
.session-controls nav button[aria-pressed="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #191a20); }
main { max-width: 1800px; margin: auto; padding: 14px clamp(16px, 3vw, 48px) 26px; }
.notice { margin-bottom: 12px; }
.sign-in { max-width: 400px; margin: 9vh auto; display: grid; gap: 16px; }
.sign-in label { display: grid; gap: 5px; }
.primary { color: #20190f; background: var(--accent); border-color: var(--accent); font-weight: 650; }
.quiet { background: transparent; }
.list-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
#lists { gap: 3px; }
#lists button { border-radius: 0; background: transparent; border: 0; border-bottom: 2px solid transparent; }
#lists button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.filters input { width: min(13rem, 100%); }
.table-scroll { overflow: auto; max-height: calc(100dvh - 155px); }
table { width: 100%; min-width: 650px; border-collapse: collapse; table-layout: fixed; text-align: left; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: .875rem; }
th { position: sticky; top: 0; z-index: 1; background: #18191d; color: var(--ink-muted); font-weight: 600; }
th:nth-child(1) { width: 29%; } th:nth-child(2) { width: 17%; }
th:nth-child(3) { width: 11%; } th:nth-child(4) { width: 29%; }
td { overflow-wrap: anywhere; }
td:last-child { color: var(--ink-muted); }
.clip-open { display: block; width: 100%; min-height: 30px; background: transparent; border: 0; padding: 2px 0; text-align: left; font-weight: 600; }
.queue-mobile-credit { display: none; }
tr:focus-within td, tbody tr:hover td { background: #1c1c22; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag {
  min-height: auto; border: 1px solid currentColor; border-radius: 5px;
  padding: 1px 6px; font-size: .81rem; white-space: nowrap;
  color: #b6d7ff; background: #1c2a40;
}
.tag[data-group="feel"] { color: #e2c3ff; background: #302340; }
.tag[data-group="quality"] { color: #ffda92; background: #3a2c1b; }
.tag[aria-pressed="true"] { outline: 1px solid currentColor; }
.empty { padding: 32px 10px; }
.back { margin-bottom: 12px; }
.screening { display: grid; grid-template-columns: minmax(0, 1fr) clamp(145px, 15vw, 225px); gap: 16px; }
.player {
  display: grid; place-items: center; aspect-ratio: 16 / 9; max-height: 68dvh;
  background: #090a0c; border: 1px solid var(--line); text-align: center; color: var(--ink-muted);
}
.player p { padding: 18px; }
.player iframe, .player video { display: block; height: 100%; width: 100%; border: 0; }
.player video { object-fit: contain; }
.clip-heading { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0 12px; }
.clip-heading h2 { overflow-wrap: anywhere; }
.clip-details { display: grid; grid-template-columns: 2fr 1.25fr 1.15fr 1fr; gap: 14px; margin: 0; padding: 12px 0; border-block: 1px solid var(--line); }
dt { font-size: .875rem; color: var(--ink-muted); }
dd { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.decisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.decisions button { font-weight: 700; color: var(--decision); border-color: var(--decision); }
.decisions button[aria-pressed="true"] { background: var(--decision); color: #131416; }
[data-decision="will_edit"] { --decision: #a6dbad; }
[data-decision="passed"] { --decision: #f6a5a4; }
[data-decision="kept"] { --decision: #f1c587; }
.review-context { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.review-context h3 { font-size: .95rem; color: var(--ink-muted); }
.review-context ul { margin: 8px 0 0; padding: 0; list-style: none; max-height: 65dvh; overflow: auto; }
.review-context li { padding: 7px 5px; font-size: .875rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.review-context li[aria-current="true"] { color: var(--accent); border-inline-start: 2px solid var(--accent); }
@media (max-width: 780px) {
  .player.player-drive {
    position: relative;
    overflow: hidden;
    aspect-ratio: auto;
    height: clamp(260px, 52svh, 28rem);
    max-height: none;
  }
  .player-drive iframe {
    position: absolute;
    inset: 0 auto auto 0;
    width: 150%;
    height: 150%;
    transform: scale(.666667);
    transform-origin: top left;
  }
  .player-drive iframe:fullscreen {
    width: 100%;
    height: 100%;
    transform: none;
  }
  .masthead { align-items: flex-start; flex-direction: column; }
  .table-scroll { max-height: 65dvh; }
  .screening { grid-template-columns: minmax(0, 1fr); }
  .review-context { display: none; }
  .clip-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  table { min-width: 0; }
  th:nth-child(1) { width: 63%; }
  th:nth-child(4) { width: 37%; }
  :is(th, td):is(:nth-child(2), :nth-child(3), :nth-child(5)) { display: none; }
  .queue-mobile-credit { display: block; color: var(--ink-muted); font-size: .8125rem; font-weight: 400; }
  .clip-open { min-height: 44px; }
  .tags { align-items: start; }
  .tag { white-space: normal; text-align: left; }
  .decisions button { min-height: 46px; }
}
@media (max-width: 420px) {
  main, .masthead { padding-inline: 12px; }
  .filters { gap: 6px; }
  .filters input { width: 9rem; }
}
