/* Film search v2, CFB Passport skin (reports/clip_search_site/21_passport_theme_2026-11-04.md).
   Layout, columns and keyboard model are the film-room ones (08_ui_research.md); colours, type, radius,
   header, buttons, links and focus come from CFB Passport (Tailwind v3 default palette: blue-900 nav,
   yellow-500 trim, gray-50 page, white cards, slate text). Passport is light only, so light is the
   default here too; dark is an opt-in film-room variant built from the same slate/blue scales
   (data-theme="dark", or "Match system" + prefers-color-scheme: dark). */

:root {
  /* surfaces */
  --chrome: #F9FAFB;      /* gray-50, Passport <body> */
  --panel: #FFFFFF;       /* white cards */
  --raise: #F8FAFC;       /* slate-50, Passport row hover */
  --rule: #E2E8F0;        /* slate-200, card border */
  --head-bg: #EFF6FF;     /* blue-50, Passport <thead> */
  --head-ink: #1E3A8A;    /* blue-900, Passport <thead> text */
  /* text */
  --ink: #111827;         /* gray-900, Passport body text */
  --ink-2: #64748B;       /* slate-500 */
  --ink-3: #94A3B8;       /* slate-400 */
  /* brand */
  --accent: #1E3A8A;      /* blue-900: primary button, selection, checked boxes */
  --accent-h: #1D4ED8;    /* blue-700: primary hover */
  --on-accent: #FFFFFF;
  --mark: #EAB308;        /* yellow-500: Passport trim (active tab, current row bar) */
  --link: #2563EB;        /* blue-600 */
  --link-h: #3B82F6;      /* blue-500 */
  --focus: #3B82F6;       /* blue-500, Passport focus:ring-blue-500 */
  --sel: rgba(30, 58, 138, .08);
  --heat: 37, 99, 235;
  --good: #16A34A; --bad: #DC2626; --warn: #A16207; --run: #475569; --pass: #2563EB;
  --ck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' stroke='white' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  /* Passport nav bar: identical in both themes */
  --nav: #1E3A8A; --nav-2: #1E40AF; --nav-3: #1D4ED8;  /* blue-900 / 800 / 700 */
  --nav-ink: #DBEAFE; --nav-ink-2: #93C5FD; --nav-gold: #FACC15;  /* blue-100 / blue-300 / yellow-400 */
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);  /* shadow-xl */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); /* shadow-md */
  --r: 4px; --r-lg: 8px; --r-xl: 12px;  /* rounded, rounded-lg, rounded-xl */
  /* Passport loads no web font: Tailwind's default sans stack (Segoe UI on Windows, SF on Apple) */
  --f: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --fc: var(--f);
  --fm: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --top-h: 48px;
  --row: 28px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --chrome: #020617; --panel: #0F172A; --raise: #1E293B; --rule: #253247; --head-bg: #172554; --head-ink: #BFDBFE;
    --ink: #F1F5F9; --ink-2: #94A3B8; --ink-3: #64748B;
    --accent: #EAB308; --accent-h: #FACC15; --on-accent: #1E3A8A; --mark: #FACC15;
    --link: #60A5FA; --link-h: #93C5FD; --focus: #60A5FA;
    --sel: rgba(250, 204, 21, .10); --heat: 59, 130, 246;
    --good: #4ADE80; --bad: #F87171; --warn: #FBBF24; --run: #94A3B8; --pass: #60A5FA;
    --ck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' stroke='%231E3A8A' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, .5), 0 8px 10px -6px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .4), 0 2px 4px -2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --chrome: #020617; --panel: #0F172A; --raise: #1E293B; --rule: #253247; --head-bg: #172554; --head-ink: #BFDBFE;
  --ink: #F1F5F9; --ink-2: #94A3B8; --ink-3: #64748B;
  --accent: #EAB308; --accent-h: #FACC15; --on-accent: #1E3A8A; --mark: #FACC15;
  --link: #60A5FA; --link-h: #93C5FD; --focus: #60A5FA;
  --sel: rgba(250, 204, 21, .10); --heat: 59, 130, 246;
  --good: #4ADE80; --bad: #F87171; --warn: #FBBF24; --run: #94A3B8; --pass: #60A5FA;
  --ck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' stroke='%231E3A8A' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, .5), 0 8px 10px -6px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .4), 0 2px 4px -2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden; background: var(--chrome); color: var(--ink);
  font: 400 13px/1.4 var(--f); -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grow { flex: 1 1 auto; }
.ic { width: 18px; height: 18px; flex: none; }
.ic12 { width: 12px; height: 12px; flex: none; }
.mob-only { display: none !important; }
.seg .short { display: none; }
[hidden] { display: none !important; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ shared controls */
.ibtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 28px; min-width: 28px; padding: 0 5px; border: 0; border-radius: var(--r);
  background: transparent; color: var(--ink-2);
}
.ibtn:hover { background: var(--raise); color: var(--ink); }
.link { border: 0; background: none; padding: 0; color: var(--accent); }
.link:hover { text-decoration: underline; }
.btn-primary {
  height: 26px; padding: 0 12px; border: 0; border-radius: var(--r);
  background: var(--accent); color: var(--on-accent); font-weight: 500; white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.08); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.seg button {
  height: 26px; padding: 0 10px; border: 0; border-left: 1px solid var(--rule);
  background: transparent; color: var(--ink-2); font-weight: 500;
}
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--ink); background: var(--raise); }
.seg button[aria-pressed="true"] { background: var(--raise); color: var(--ink); box-shadow: inset 0 -2px var(--accent); }
.seg-sm button { height: 24px; padding: 0 7px; font: 500 12px/1 var(--fc); font-variant-numeric: tabular-nums; }
select {
  height: 26px; padding: 0 22px 0 8px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%238C95A1' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 4px center / 14px;
  appearance: none; -webkit-appearance: none;
}
kbd {
  display: inline-block; min-width: 20px; padding: 1px 5px; border: 1px solid var(--rule);
  border-bottom-width: 2px; border-radius: var(--r-lg); background: var(--raise);
  font: 500 12px/16px var(--f); text-align: center;
}
.menu {
  position: absolute; z-index: 40; min-width: 180px; padding: 4px 0;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.menu button {
  display: block; width: 100%; padding: 5px 12px; border: 0; background: none; text-align: left;
}
.menu button:hover:not(:disabled) { background: var(--raise); }
.menu button:disabled { color: var(--ink-3); }
.menu button[aria-checked="true"]::after { content: ""; float: right; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.menu hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 0; }
.menu form { margin: 0; }
.menu-h { padding: 4px 12px 2px; font-size: 12px; color: var(--ink-2); }
.menu-note { margin: 4px 12px 6px; max-width: 220px; font-size: 12px; color: var(--ink-2); }

/* ------------------------------------------------------------------ top bar */
.top {
  position: relative; z-index: 30; display: flex; align-items: center; gap: 14px;
  height: var(--top-h); padding: 0 8px 0 12px; border-bottom: 1px solid var(--rule); background: var(--chrome);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand span { font-size: 13px; }
.scope { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--rule); height: 100%; }
.team-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; margin-left: -6px;
  border: 0; border-radius: var(--r); background: none; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.team-btn:hover, .team-btn[aria-expanded="true"] { background: var(--raise); }
.tabs { display: flex; align-self: stretch; margin-left: 8px; }
.tab {
  padding: 0 12px; border: 0; background: none; color: var(--ink-2); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab.soon { color: var(--ink-3); }
.user { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 0; border-radius: var(--r); background: none; color: var(--ink-2); }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--raise); color: var(--ink); }
.user .menu { right: 0; top: 32px; }
.badge {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r); background: var(--accent); color: var(--on-accent);
  font: 600 11px/16px var(--f); text-align: center;
}
.badge:empty { display: none; }

/* ------------------------------------------------------------------ team picker */
.picker {
  display: flex; flex-direction: column; height: calc(100% - var(--top-h));
  background: var(--panel);
}
.picker.pop {
  position: absolute; z-index: 35; top: calc(var(--top-h) - 2px); left: 120px; width: 660px; height: min(70vh, 620px);
  border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.picker-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.picker-title { margin: 0; font-size: 13px; font-weight: 600; }
.pop .picker-title { display: none; }
.field-search {
  display: flex; align-items: center; gap: 6px; width: 300px; height: 28px; padding: 0 8px;
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--raise); color: var(--ink-2);
}
.field-search:focus-within { border-color: var(--accent); }
.field-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); }
.picker-n, .picker-recent { color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-recent a { color: var(--ink); margin-left: 8px; }
.picker-body { flex: 1; overflow: auto; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.pc-code { width: 64px; } .pc-conf { width: 160px; } .pc-n { width: 72px; } .pc-open { width: 150px; }
.ptable th {
  position: sticky; top: 0; z-index: 1; height: var(--row); padding: 0 10px; background: var(--raise);
  border-bottom: 1px solid var(--rule); text-align: left; font: 500 12px/var(--row) var(--f); color: var(--ink-2);
}
.ptable td {
  height: var(--row); padding: 0 10px; border-bottom: 1px solid var(--rule);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ptable tbody tr { cursor: pointer; }
.ptable tbody tr:hover td { background: var(--raise); }
.ptable tbody tr[aria-selected="true"] td { background: var(--sel); }
.ptable tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 var(--accent); }
.ptable .t-school { font-weight: 500; }
.ptable .t-code, .ptable .t-conf { color: var(--ink-2); }
.ptable .zero { color: var(--ink-3); }
.ptable .t-open a { margin-right: 14px; color: var(--accent); text-decoration: none; }
.ptable .t-open a:hover { text-decoration: underline; }
.picker-empty { padding: 12px; color: var(--ink-2); }
.picker-help { margin: 0; padding: 6px 12px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 12px; }

/* ------------------------------------------------------------------ workspace shell */
.shell {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px;
  height: calc(100% - var(--top-h));
}
.rail, .side { background: var(--panel); overflow-y: auto; overscroll-behavior: contain; }
.rail { border-right: 1px solid var(--rule); }
.side { border-left: 1px solid var(--rule); display: flex; flex-direction: column; overflow: hidden; }
.pane-play { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pane-tend { flex: none; max-height: 48%; overflow-y: auto; border-top: 1px solid var(--rule); border-bottom: 0; }
.pane-widen { flex: none; }
.centre { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); }

/* ------------------------------------------------------------------ filter rail */
.rail-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 12px; background: var(--panel); border-bottom: 1px solid var(--rule);
}
.rail-title { font-weight: 600; }
.rail-active { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rail-active::after { content: "·"; margin-left: 8px; color: var(--ink-3); }
.tokens { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 0; }
.tokens:empty { display: none; }
.tok {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; max-width: 100%; padding: 0 2px 0 7px;
  border-radius: var(--r); background: var(--raise); border: 1px solid var(--rule); font-size: 12px; white-space: nowrap;
}
.tok b { font-weight: 400; color: var(--ink-2); }
.tok span { overflow: hidden; text-overflow: ellipsis; }
.tok button { display: inline-flex; width: 18px; height: 18px; padding: 0; border: 0; background: none; color: var(--ink-2); align-items: center; justify-content: center; }
.tok button:hover { color: var(--ink); }
.tok button .ic { width: 14px; height: 14px; }
.rail-note { margin: 8px 12px 0; font-size: 12px; color: var(--ink-2); }
.rail-note:empty { display: none; }
.groups { padding-bottom: 24px; }
.grp { border-bottom: 1px solid var(--rule); }
.grp-h {
  display: flex; align-items: center; gap: 6px; width: 100%; height: 32px; padding: 0 12px;
  border: 0; background: none; font-size: 12px; font-weight: 600; text-align: left;
}
.grp-h .ic12 { color: var(--ink-2); transition: transform .12s; }
.grp-h[aria-expanded="false"] .ic12 { transform: rotate(-90deg); }
.grp-h .grp-n { margin-left: auto; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.grp-b { padding: 0 12px 8px; }
.fct { padding: 4px 0 6px; }
.fct-h { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; font-size: 12px; color: var(--ink-2); }
.fct-h .post { font-size: 11px; color: var(--ink-3); }
.fct-h .fct-clear { margin-left: auto; font-size: 12px; }
.sq { display: flex; flex-wrap: wrap; gap: 0; }
.sq button {
  min-width: 30px; height: 24px; padding: 0 6px; margin: 0 -1px -1px 0;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  font: 500 12px/1 var(--fc); font-variant-numeric: tabular-nums; position: relative;
}
.sq button small { margin-left: 4px; color: var(--ink-2); font-weight: 400; }
.sq button:hover { background: var(--raise); z-index: 1; }
.sq button[aria-pressed="true"] { background: var(--sel); border-color: var(--accent); z-index: 2; }
.sq button.zero { color: var(--ink-3); }
.cks { list-style: none; margin: 0; padding: 0; }
.ck {
  display: flex; align-items: center; gap: 7px; width: 100%; height: 22px; padding: 0 2px;
  border: 0; background: none; text-align: left; font-size: 12px;
}
.ck:hover { background: var(--raise); }
.ck .box {
  flex: none; width: 12px; height: 12px; border: 1px solid var(--ink-3); border-radius: var(--r); background: var(--panel);
}
.ck[aria-pressed="true"] .box { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' stroke='white' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ck .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck .cnt { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ck.zero .lbl, .ck.zero .cnt { color: var(--ink-3); }
.more { margin: 2px 0 0 21px; font-size: 12px; }
.rng { padding: 2px 0 0; }
.rng-v { font-size: 12px; font-variant-numeric: tabular-nums; }
.rng-track { position: relative; height: 20px; }
.rng-track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 9px; height: 2px; background: var(--rule); }
.rng-fill { position: absolute; top: 9px; height: 2px; background: var(--accent); }
.rng input[type=range] {
  position: absolute; left: 0; top: 0; width: 100%; height: 20px; margin: 0; background: none;
  pointer-events: none; -webkit-appearance: none; appearance: none;
}
.rng input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 12px; height: 12px; border-radius: var(--r);
  background: var(--ink); border: 0; cursor: pointer;
}
.rng input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: var(--r); background: var(--ink); border: 0; cursor: pointer; }
.rng input[type=range]::-webkit-slider-runnable-track { background: none; }
.rng input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); }
.rng-ticks { display: flex; justify-content: space-between; padding: 0 2px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ search bar */
.search {
  display: flex; align-items: center; gap: 8px; flex: none; height: 36px; padding: 0 12px;
  border-bottom: 1px solid var(--rule); background: var(--chrome); color: var(--ink-2);
}
.search:focus-within { box-shadow: inset 0 -1px var(--accent); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font-size: 13px; }
.search input::placeholder { color: var(--ink-3); }
.q-state { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.search.busy { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 30% 2px; background-repeat: no-repeat; background-position: 0 100%; animation: qbusy 1s linear infinite; }
@keyframes qbusy { from { background-position: -30% 100%; } to { background-position: 130% 100%; } }
.qline {
  display: flex; align-items: center; gap: 12px; flex: none; min-height: 30px; padding: 3px 12px;
  border-bottom: 1px solid var(--rule); background: var(--chrome); overflow: hidden;
}
.tokens-bar { flex: none; flex-wrap: nowrap; padding: 0; max-width: 60%; overflow-x: auto; scrollbar-width: none; }
.tokens-bar::-webkit-scrollbar { display: none; }
.interp, .unres { margin: 0; font-size: 12px; line-height: 1.35; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.interp b { font-weight: 500; color: var(--ink); }
.unres { color: var(--warn); }
.interp .conf { margin-left: 6px; color: var(--warn); }
.unres.err { color: var(--bad); }

/* ------------------------------------------------------------------ player */
.player { flex: none; background: #000; }
.well {
  position: relative; width: 100%; max-width: calc(50vh * 16 / 9); aspect-ratio: 16 / 9; max-height: 50vh;
  margin: 0 auto; background: #000; overflow: hidden;
}
.well video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.strip {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: stretch; gap: 0;
  min-height: 30px; padding: 0 8px; background: rgba(0, 0, 0, .62); color: #F1F5F9;
  font-family: var(--fc); font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap;
  pointer-events: none;
}
.strip:empty { display: none; }
.strip .ctr { display: flex; align-items: center; padding-right: 12px; margin-right: 4px; border-right: 1px solid rgba(255,255,255,.18); font: 600 13px/1 var(--f); font-variant-numeric: tabular-nums; }
.strip .kv { display: flex; flex-direction: column; justify-content: center; padding: 0 8px; }
.strip .kv i { font-style: normal; font-size: 10px; line-height: 12px; color: #94A3B8; text-transform: uppercase; letter-spacing: .02em; }
.strip .kv b { font-size: 12px; line-height: 15px; font-weight: 600; }
.well .nofilm {
  position: absolute; inset: 30px 0 0; display: flex; align-items: center; justify-content: center; padding: 16px;
  color: #94A3B8; font-size: 13px; text-align: center;
}
.busy { position: absolute; left: 0; right: 0; top: 30px; height: 2px; overflow: hidden; }
.busy::after { content: ""; position: absolute; top: 0; width: 30%; height: 2px; background: var(--accent); animation: qbusy2 1s linear infinite; }
@keyframes qbusy2 { from { left: -30%; } to { left: 100%; } }
.scrub { position: relative; height: 12px; margin-top: -4px; cursor: pointer; touch-action: none; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px; background: #1E293B; }
.scrub-fill { position: absolute; left: 0; top: 4px; height: 4px; width: 0; background: var(--accent); }
.scrub-fill::after { content: ""; position: absolute; right: -1px; top: -3px; width: 2px; height: 10px; background: #F1F5F9; }
.scrub:hover::before, .scrub:hover .scrub-fill { top: 3px; height: 6px; }
.transport {
  display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 8px;
  background: #0F172A; color: #CBD5E1; border-bottom: 1px solid var(--rule);
}
.transport .seg { border-color: #334155; }
.transport .seg button { color: #94A3B8; border-color: #334155; }
.transport .seg button:hover { background: #1E293B; color: #F1F5F9; }
.transport .seg button[aria-pressed="true"] { background: #1E293B; color: #fff; }
.transport .seg + .seg { margin-left: 6px; }
.tbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0;
  border: 0; border-radius: var(--r); background: none; color: #CBD5E1;
}
.tbtn:hover { background: #1E293B; color: #fff; }
.tbtn[aria-pressed="true"] { color: var(--accent); }
#b-play .ic { width: 20px; height: 20px; }
.timer { margin: 0 10px; font: 500 13px/1 var(--f); font-variant-numeric: tabular-nums; color: #F1F5F9; white-space: nowrap; }
.preroll { display: inline-flex; align-items: center; gap: 4px; margin: 0 4px 0 6px; font: 500 12px/1 var(--fc); color: #94A3B8; }
.preroll select { height: 24px; padding: 0 20px 0 6px; background-color: #0F172A; border-color: #334155; color: #F1F5F9; font: 500 12px/1 var(--fc); }
:fullscreen.player { display: flex; flex-direction: column; justify-content: center; }
:fullscreen .well { max-width: none; max-height: calc(100vh - 48px); width: 100%; }

/* player (player.js, 2026-10-28): side by side (3), trims on the scrubber, drawing + comment marks,
   the note / comment thread / drawing list in "This play", tablet sizes */
.well { touch-action: pan-y pinch-zoom; }          /* horizontal swipes reach the player (next / previous play) */
.well .v2 { display: none; }
.well.dual { max-width: calc(50vh * 32 / 9); aspect-ratio: 32 / 9; }
.well.dual #video { width: 50%; }
.well.dual .v2 { display: block; position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; height: 100%; object-fit: contain; background: #000; border-left: 2px solid #000; }
.well.dual::before, .well.dual::after {
  position: absolute; bottom: 6px; z-index: 1; padding: 1px 5px; border-radius: var(--r); background: rgba(0, 0, 0, .6);
  color: #CBD5E1; font: 600 11px/14px var(--fc); pointer-events: none;
}
.well.dual::before { content: "SL"; left: 6px; }
.well.dual::after { content: "EZ"; left: calc(50% + 8px); }
.scrub-trim {
  position: absolute; left: 0; right: 0; top: 4px; height: 4px; pointer-events: none;
  background: linear-gradient(90deg, rgba(234, 179, 8, .5) 0 var(--pre, 0%), transparent var(--pre, 0%) calc(100% - var(--end, 0%)), rgba(234, 179, 8, .5) calc(100% - var(--end, 0%)));
}
.scrub:hover .scrub-trim { top: 3px; height: 6px; }
.scrub-marks { position: absolute; inset: 0; pointer-events: none; }
.scrub-marks .mk { position: absolute; top: 0; width: 3px; height: 12px; margin-left: -1px; border-radius: 1px; background: #FACC15; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.scrub-marks .mk-c { top: 1px; height: 6px; background: #F1F5F9; }
.pnotes { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.pn-l { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 3px; font-size: 12px; font-weight: 600; }
.pn-l:first-child { margin-top: 0; }
.pn-s { margin-left: auto; color: var(--ink-2); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnotes textarea { display: block; width: 100%; min-height: 40px; resize: vertical; font-size: 12px; line-height: 1.4; }
.pnotes textarea[readonly] { background: transparent; border-style: dashed; color: var(--ink-2); }
.cmt-list { display: flex; flex-direction: column; }
.cmt { padding: 4px 0 5px; border-bottom: 1px solid var(--rule); font-size: 12px; }
.cmt-h { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.cmt-w { color: var(--ink-2); font-size: 11px; }
.cmt-del { margin-left: auto; font-size: 11px; }
.cmt-x { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-t {
  flex: none; height: 18px; padding: 0 4px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--raise);
  color: var(--ink); font: 500 11px/16px var(--f); font-variant-numeric: tabular-nums;
}
.cmt-t:hover { border-color: var(--accent); color: var(--accent); }
.cmt-form { margin-top: 6px; }
.cmt-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.cmt-at { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.draw-list { list-style: none; margin: 0; padding: 0; }
.draw-list li { display: flex; align-items: center; gap: 6px; min-height: 24px; border-bottom: 1px solid var(--rule); font-size: 12px; }
.draw-list li span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.draw-list li .link { flex: none; font-size: 11px; }
/* end player */

/* telestrate (telestrate.js): canvas over the frame, toolbar under the transport in draw mode */
.tele { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.well.drawing .tele { pointer-events: auto; touch-action: none; cursor: crosshair; box-shadow: inset 0 0 0 2px #FACC15; }
.well.drawing[data-tool="eraser"] .tele { cursor: cell; }
.well.drawing[data-tool="text"] .tele { cursor: text; }
.well.drawing .strip { opacity: .35; }
.tele-text {
  position: absolute; z-index: 5; width: 220px; max-width: 60%; height: 28px; padding: 0 6px; margin-top: -4px;
  border: 1px solid #FACC15; border-radius: var(--r); background: rgba(0, 0, 0, .78); font: 600 14px/1 var(--f); outline: none;
}
.tele-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 4px 8px;
  background: #0F172A; color: #CBD5E1; border-bottom: 1px solid var(--rule);
}
.tb-grp { display: inline-flex; border: 1px solid #334155; border-radius: var(--r); overflow: hidden; }
.tb-grp button {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0;
  border: 0; border-left: 1px solid #334155; background: none; color: #CBD5E1;
}
.tb-grp button:first-child { border-left: 0; }
.tb-grp button:hover:not(:disabled) { background: #1E293B; color: #fff; }
.tb-grp button[aria-pressed="true"] { background: #1E293B; color: #fff; box-shadow: inset 0 -2px #FACC15; }
.tb-grp button:disabled { color: #475569; }
.tb-col i { display: block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
.tb-w i { display: block; width: 16px; border-radius: var(--r); background: #CBD5E1; }
.tele-at { font: 500 12px/1 var(--f); color: #94A3B8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-txt {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid #334155;
  border-radius: var(--r); background: none; color: #F1F5F9; font-weight: 500; white-space: nowrap;
}
.tb-txt:hover { background: #1E293B; }
.tb-done { border-color: #FACC15; background: #FACC15; color: #111; }
.tb-done:hover { background: #FDE047; }
#b-draw[aria-pressed="true"] { color: #FACC15; }
#b-show[aria-pressed="false"] { color: #64748B; }
/* end telestrate */

/* player + telestrate: touch screens (tablets, phones). Every transport and toolbar target >= 40 px. */
@media (pointer: coarse) {
  .transport { height: auto; min-height: 48px; flex-wrap: wrap; row-gap: 2px; padding: 2px 4px; }
  .tbtn { width: 42px; height: 42px; }
  .transport .seg-sm button, .seg-sm button { height: 40px; min-width: 40px; padding: 0 9px; }
  .preroll select { height: 40px; }
  .scrub { height: 28px; margin-top: -12px; }
  .scrub::before, .scrub-fill, .scrub-trim { top: 12px; }
  .scrub:hover::before, .scrub:hover .scrub-fill, .scrub:hover .scrub-trim { top: 11px; }
  .scrub-marks .mk { top: 6px; height: 16px; }
  .scrub-marks .mk-c { top: 8px; height: 8px; }
  .tb-grp button { width: 42px; height: 42px; }
  .tb-txt { height: 42px; padding: 0 14px; }
  .tele-text { height: 40px; font-size: 16px; }
  .cmt-t { height: 32px; min-width: 60px; }
  .cmt-del, .draw-list li .link { min-height: 32px; padding: 0 6px; }
  .draw-list li { min-height: 40px; }
  .pnotes textarea { font-size: 16px; }             /* no iOS zoom on focus */
  #b-keys { display: none; }                        /* the shortcut sheet stays in the user menu */
  /* one scrolling row (the grid stays in view on a 768 px tall tablet); Done stays pinned at the right */
  .tele-bar { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; contain: paint; }
  .tele-bar .grow, .tele-at { display: none; }
  .tele-bar > * { flex: none; }
  .tb-done { position: sticky; right: 0; box-shadow: -10px 0 10px #0F172A; }
}

/* ------------------------------------------------------------------ grid bar + grid */
.gridbar {
  display: flex; align-items: center; gap: 12px; flex: none; height: 34px; padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--rule); background: var(--panel); white-space: nowrap;
}
.gb-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.gb-sum { color: var(--ink-2); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gb-sum b { font-weight: 500; color: var(--ink); }
.gb-sum > span + span, .gb-sum .x > span { margin-left: 10px; }
.gb-sum .r { color: var(--run); } .gb-sum .p { color: var(--pass); }
.gb-sel { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gb-sel button { margin-left: 6px; }
.side-toggle { display: none; }
.addto { position: relative; }
.menu-right { right: 0; top: 30px; }
.notice {
  flex: none; margin: 0; padding: 5px 12px; border-bottom: 1px solid var(--rule);
  background: var(--chrome); color: var(--warn); font-size: 12px;
}
.grid-wrap { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; background: var(--panel); }
.grid {
  border-collapse: separate; border-spacing: 0; table-layout: fixed; width: max-content; min-width: 100%;
  font-variant-numeric: tabular-nums;
}
.grid th, .grid td {
  height: var(--row); padding: 0 6px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left;
}
.grid th {
  position: sticky; top: 0; z-index: 3; background: var(--raise); color: var(--ink-2);
  font: 500 11px/1 var(--fc); letter-spacing: .02em; cursor: pointer; user-select: none;
}
.grid th:hover { color: var(--ink); }
.grid th .srt { margin-left: 3px; color: var(--accent); font-size: 9px; }
.grid th .srt sub { font-size: 9px; vertical-align: baseline; }
.grid th.c-sel { cursor: default; }
.grid tr.totals th {
  top: var(--row); z-index: 3; height: 24px; background: var(--chrome); color: var(--ink);
  font: 500 11px/1 var(--fc); cursor: default; border-bottom-color: var(--rule);
}
.grid tr.totals th.tl { color: var(--ink-2); }
.grid tr.totals th button {
  display: inline-flex; gap: 4px; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit;
  overflow: hidden; text-overflow: ellipsis;
}
.grid tr.totals th button:hover:not(:disabled) { color: var(--accent); }
.grid tr.totals th button:disabled { cursor: default; }
.grid tr.totals th em { font-style: normal; color: var(--ink-2); }
.grid td { font-size: 13px; background: var(--panel); }
.grid .c-sel, .grid .c-play { position: sticky; z-index: 1; }
.grid .c-sel { left: 0; width: 28px; padding: 0; text-align: center; }
.grid .c-play { left: 28px; }
.grid th.c-sel, .grid th.c-play { z-index: 4; }
.grid td.c-play { font-weight: 500; text-align: right; }
.grid .r { text-align: right; }
.grid tbody tr { cursor: pointer; }
.grid tbody tr:hover td { background: var(--raise); }
.grid tbody tr.cur td { background: linear-gradient(var(--sel), var(--sel)), var(--panel); box-shadow: inset 0 1px var(--accent), inset 0 -1px var(--accent); }
.grid tbody tr.cur td:first-child { box-shadow: inset 2px 0 var(--accent), inset 0 1px var(--accent), inset 0 -1px var(--accent); }
.grid tbody tr.cur td:last-child { box-shadow: inset -1px 0 var(--accent), inset 0 1px var(--accent), inset 0 -1px var(--accent); }
.grid tbody tr.nofilm td { color: var(--ink-3); }
.grid tbody tr.nofilm td.c-play::before { content: "no film "; font-weight: 400; font-size: 11px; }
.grid td.res { font-weight: 500; }
.grid .good { color: var(--good); } .grid .bad { color: var(--bad); } .grid .warn { color: var(--warn); }
.grid tr.nofilm .good, .grid tr.nofilm .bad, .grid tr.nofilm .warn { color: var(--ink-3); }
.grid .dim { color: var(--ink-3); }
.cbox {
  display: inline-block; width: 13px; height: 13px; margin-top: 2px; border: 1px solid var(--ink-3); border-radius: var(--r); vertical-align: middle;
}
tr.chk .cbox, .cbox.on { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' stroke='white' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cbox.part { border-color: var(--accent); background: linear-gradient(var(--accent), var(--accent)) center / 7px 2px no-repeat; }
.skel td { cursor: default; }
.skel td span { display: block; height: 8px; border-radius: 1px; background: var(--raise); }
.grid-empty { padding: 14px 12px; color: var(--ink); }
.grid-empty.thin { padding-top: 10px; }
.grid-empty p { margin: 0 0 6px; }
.widen-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.widen-links button { border: 0; background: none; padding: 0; color: var(--accent); font-size: 13px; }
.widen-links button:hover { text-decoration: underline; }
.widen-links button span { color: var(--ink-2); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ right panel */
.side-head { display: none; }
.pane { padding: 8px 12px 12px; border-bottom: 1px solid var(--rule); }
.pane-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 600; }
.pane-aux { margin-left: auto; color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kvg { margin: 6px 0 2px; font-size: 12px; font-weight: 600; color: var(--ink); }
.kvg:first-child { margin-top: 0; }
.kvs { display: grid; grid-template-columns: 84px minmax(0, 1fr); margin: 0; font-size: 12px; line-height: 20px; }
.kvs dt { color: var(--ink-2); border-bottom: 1px solid var(--rule); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kvs dd { margin: 0; font-weight: 500; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); font-size: 12px; margin: 0; }
.tt { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.tt th { height: 20px; padding: 0 3px; text-align: right; color: var(--ink-2); font: 500 11px/1 var(--fc); border-bottom: 1px solid var(--rule); }
.tt th:first-child { width: 70px; text-align: left; padding-left: 0; }
.tt td { height: 22px; padding: 0 3px; text-align: right; border-bottom: 1px solid var(--rule); }
.tt td:first-child { text-align: left; padding-left: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt td.h { background: rgba(var(--heat), var(--a, 0)); }
.tops { margin-top: 8px; }
.tops h3 { margin: 6px 0 2px; font-size: 12px; font-weight: 600; }
.tops ol { list-style: none; margin: 0; padding: 0; }
.tops li { display: flex; justify-content: space-between; gap: 8px; height: 20px; font-size: 12px; line-height: 20px; border-bottom: 1px solid var(--rule); }
.tops li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tops li span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tops li button { padding: 0; border: 0; background: none; color: var(--ink); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tops li button:hover { color: var(--accent); }
.widen-side { display: flex; flex-direction: column; gap: 3px; }
.widen-side button { justify-content: space-between; display: flex; width: 100%; border: 0; background: none; padding: 0; color: var(--accent); font-size: 12px; text-align: left; }
.widen-side button span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.widen-side button:hover b { text-decoration: underline; }
.widen-side b { font-weight: 400; }

/* ------------------------------------------------------------------ dialogs, scrim */
.scrim { position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, .45); }
.keys {
  width: min(760px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--panel); color: var(--ink); box-shadow: var(--shadow);
}
.keys::backdrop { background: rgba(0, 0, 0, .5); }
.keys-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--rule); }
.keys-head h2 { margin: 0; font-size: 13px; font-weight: 600; }
.keys-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding: 8px 16px; }
.keys table { width: 100%; border-collapse: collapse; font-size: 12px; }
.keys caption { padding: 6px 0 4px; text-align: left; font-weight: 600; }
.keys td { padding: 3px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.keys td:first-child { width: 112px; white-space: nowrap; color: var(--ink-2); }
.keys-foot { margin: 0; padding: 8px 16px 12px; color: var(--ink-2); font-size: 12px; }

/* ------------------------------------------------------------------ login */
.login-page { display: flex; align-items: center; justify-content: center; overflow: auto; }
.login { width: 300px; margin: 16px; }
.login-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; }
.login form { display: flex; flex-direction: column; padding: 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.login label { margin: 0 0 4px; font-size: 12px; color: var(--ink-2); }
.login input {
  height: 30px; margin-bottom: 12px; padding: 0 8px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--raise); color: var(--ink); outline: 0;
}
.login input:focus { border-color: var(--accent); }
.login .btn-primary { height: 30px; margin-top: 4px; }
.login-err { margin: 0 0 12px; color: var(--bad); font-size: 12px; }
.login-ok { margin: 0 0 12px; color: var(--good); font-size: 12px; }
.login-foot { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); }

/* playlists ------------------------------------------------------------------------------------------
   Playlists view, "+ Add to…" menu, saved searches, export, toast (11_playlists_2026-10-27.md).
   Same tokens and rules as the rest: 1 px rules, 2 px radius, no pills or cards. */
.link.danger { color: var(--bad); }
.pl-in {
  width: 100%; padding: 4px 7px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--raise); color: var(--ink); font: 400 12px/18px var(--f); outline: 0; resize: vertical;
}
.pl-in::placeholder { color: var(--ink-3); }
.pl-in:focus { border-color: var(--accent); }
input.pl-in { height: 26px; }
.pl-l { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 3px; font-size: 12px; color: var(--ink-2); }
/* menus: playlist rows and inline forms */
.add-list { max-height: 260px; overflow-y: auto; }
.menu .add-pl { display: flex; align-items: baseline; gap: 12px; max-width: 280px; }
.menu .add-pl span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .add-pl small { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.menu-form { display: flex; gap: 6px; padding: 4px 8px 6px 12px; }
.menu-form input {
  flex: 1; min-width: 0; height: 26px; padding: 0 7px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--raise); color: var(--ink); outline: 0;
}
.menu-form input:focus { border-color: var(--accent); }
.menu .menu-form .btn-primary { display: inline-block; width: auto; padding: 0 10px; height: 26px; text-align: center; }
.menu-note:empty { display: none; }
/* search bar: save search */
.qsave { position: relative; flex: none; }
.qbtn { height: 26px; padding: 0 8px; border: 1px solid var(--rule); border-radius: var(--r); background: none; color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.qbtn:hover, .qbtn[aria-expanded="true"] { background: var(--raise); color: var(--ink); }
.qbtn .short { display: none; }
.save-menu { width: 300px; top: 31px; }
/* rail: saved searches */
.saved .saved-n { margin-left: auto; color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.saved-list { list-style: none; margin: 0; padding: 0 6px 6px 12px; }
.saved-list li { display: flex; align-items: center; border-bottom: 1px solid var(--rule); }
.saved-list li:last-child { border-bottom: 0; }
.saved-row {
  display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; height: 24px; padding: 0 2px;
  border: 0; background: none; text-align: left; font-size: 12px;
}
.saved-row:hover { background: var(--raise); }
.saved-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-row small { color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.ss-del { height: 22px; min-width: 22px; padding: 0; color: var(--ink-3); }
.ss-del .ic { width: 14px; height: 14px; }
.pl-none { padding: 4px 0; font-size: 12px; color: var(--ink-2); list-style: none; }
/* grid bar: export */
.gb-act { color: var(--accent); font-size: 12px; text-decoration: none; }
.gb-act:hover { text-decoration: underline; }
.gb-pl { margin-right: 10px; }
.gb-n .gb-pl + * { font-weight: 400; }
/* Playlists view: list pane */
.pl-count { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pl-newrow { display: flex; gap: 6px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--rule); }
.pl-newrow .btn-primary { flex: none; }
.pl-hd, .pl-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px 58px; gap: 6px; align-items: center; }
.pl-hd {
  height: 24px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--rule); background: var(--raise);
  color: var(--ink-2); font: 500 11px/24px var(--fc); letter-spacing: .02em; text-transform: uppercase;
}
.pl-hd span:nth-child(n+2), .pl-row .pl-n, .pl-row .pl-up { text-align: right; }
.pl-list { list-style: none; margin: 0; padding: 0; }
.pl-list .pl-none { padding: 8px 12px; }
.pl-row {
  width: 100%; height: var(--row); padding: 0 10px 0 12px; border: 0; border-bottom: 1px solid var(--rule);
  background: none; color: var(--ink); text-align: left; text-decoration: none; font-size: 13px;
}
.pl-row:hover { background: var(--raise); }
.pl-row[aria-current="true"] { background: var(--sel); box-shadow: inset 2px 0 var(--accent); }
.pl-row .pl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row[aria-current="true"] .pl-name { font-weight: 500; }
.pl-row .pl-n, .pl-row .pl-up { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.pl-meta { padding: 4px 12px 12px; border-bottom: 1px solid var(--rule); }
.pl-by { margin: 6px 0 0; font-size: 11px; color: var(--ink-3); }
.pl-acts { display: flex; margin-top: 8px; font-size: 12px; }
.pl-confirm { margin: 6px 0 0; font-size: 12px; }
.pl-confirm .link { margin-left: 10px; }
.pl-oh { padding: 12px 12px 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pl-scope { padding: 0 12px 8px; }
.pl-scope select { width: 100%; }
#pl-other button.pl-row { width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.pl-other .pl-row { color: var(--ink-2); }
/* Playlists view: grid and right panel */
.mode-pl .grid th[data-sort] { cursor: default; }
.mode-pl .grid tbody tr { cursor: grab; }
.grid tbody tr.dragging td { opacity: .45; }
.grid tbody tr.drop-a td { box-shadow: inset 0 2px var(--accent); }
.grid tbody tr.drop-b td { box-shadow: inset 0 -2px var(--accent); }
.gb-sel .danger { margin-left: 10px; }
.pane-pl { flex: none; }
.pl-tools { display: flex; align-items: center; gap: 4px; }
.sbtn {
  height: 24px; padding: 0 8px; border: 1px solid var(--rule); border-radius: var(--r); background: none;
  color: var(--ink); font-size: 12px;
}
.sbtn:hover:not(:disabled) { background: var(--raise); }
.sbtn:disabled, .link:disabled { color: var(--ink-3); cursor: default; text-decoration: none; }
.pl-note-s { margin-left: auto; color: var(--good); font-size: 11px; }
/* toast */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 32px); padding: 8px 12px;
  background: var(--raise); color: var(--ink); border: 1px solid var(--rule); border-left: 2px solid var(--accent);
  border-radius: var(--r); box-shadow: var(--shadow); font-size: 13px;
}
.toast b { font-weight: 600; margin: 0 2px; }
.toast .link { margin-left: 12px; }
@media (max-width: 720px) {
  .qbtn .full { display: none; }
  .qbtn .short { display: inline; }
  .save-menu { width: calc(100vw - 24px); right: -4px; }
  .gb-pl { display: inline-block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; margin-right: 6px; }
  .toast { bottom: 12px; }
}
/* end playlists */

/* cutups -----------------------------------------------------------------------------------------------
   Folder tree, Export menu, move / copy menu, folder + sharing fields (16_cutups_exports_2026-10-28.md).
   Same rules: 1 px rules, 2 px radius, no pills or cards, tabular figures. */
/* grid bar: Export is a text button that opens a menu */
button.gb-act { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 2px; border: 0; background: none; }
button.gb-act .ic12 { width: 12px; height: 12px; }
button.gb-act[aria-expanded="true"] { text-decoration: underline; }
.exp-menu { width: 300px; }
.exp-menu, .mv-menu { white-space: normal; }             /* the grid bar is nowrap */
.exp-menu .add-pl small { font-family: var(--fc); }
.exp-zip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 2px; }
.exp-zip .seg button { padding: 0 9px; }
.exp-est { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.exp-est.bad { color: var(--warn); }
.menu .exp-go { padding-top: 6px; }
.menu .exp-go .btn-primary { display: inline-block; width: auto; height: 26px; padding: 0 12px; background: var(--accent); color: var(--on-accent); }
.menu .exp-go .btn-primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
.menu .exp-go .btn-primary:disabled { background: var(--raise); color: var(--ink-3); cursor: default; filter: none; }
.exp-help { max-width: 270px; color: var(--ink-3); }
/* "+ Add to…": Add entire search */
.menu .add-all span { font-weight: 500; }
.menu .add-all[aria-checked="true"] { box-shadow: inset 2px 0 var(--accent); }
.menu .add-all[aria-checked="true"]::after { display: none; }
/* checked-rows line: Move to / Copy to; the move menu */
.gb-sel .link + .link { margin-left: 10px; }
.mv { position: relative; width: 0; margin: 0 -6px; }
.mv-menu { top: 18px; width: 280px; }
/* list pane: folder tree */
.pl-list .fold { position: relative; }
.pl-fold { font-weight: 500; background: var(--chrome); }
.pl-fold .pl-name { display: flex; align-items: center; gap: 4px; }
.pl-fold .ic12 { flex: none; width: 12px; height: 12px; color: var(--ink-2); transition: transform .12s; }
.pl-fold[aria-expanded="false"] .ic12 { transform: rotate(-90deg); }
.pl-fedit {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); height: 22px; min-width: 0; padding: 0 6px;
  font-size: 11px; background: var(--raise); opacity: 0;
}
.fold:hover .pl-fedit, .pl-fedit:focus-visible { opacity: 1; }
.pl-list .in .pl-row { padding-left: 28px; }
.pl-list li.in.pl-none { padding: 6px 12px 6px 28px; color: var(--ink-3); }
.pl-sub { padding: 10px 12px 4px; border-bottom: 1px solid var(--rule); font-size: 12px; font-weight: 600; color: var(--ink-2); list-style: none; }
.pl-priv { margin-left: 6px; font-style: normal; font-size: 11px; color: var(--ink-3); }
.pl-foldform { padding: 4px 10px 10px 12px; border-bottom: 1px solid var(--rule); }
.pl-foldform .pl-acts { align-items: center; gap: 10px; }
/* meta pane: two fields per line, merge row */
.pl-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
select.pl-in { height: 26px; padding-right: 22px; }
.pl-acts .link + .link { margin-left: 12px; }
.pl-acts .grow { flex: 1; }
.pl-merge { margin-top: 4px; }
.pl-mrow { display: flex; gap: 6px; }
.pl-mrow .btn-primary { flex: none; }
.pl-chk { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
@media (max-width: 720px) {
  .gb-sum { display: none; }
  .gb-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .gridbar:has(#gb-sel:not(:empty)) .gb-n { display: none; }   /* "All 208" already says how many */
  .gb-sel .sel-w { display: none; }
  .exp-menu, .mv-menu {                                    /* phone: a bottom sheet, not anchored to the button */
    position: fixed; left: 12px !important; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 70vh; overflow-y: auto;
  }
  .exp-menu .add-pl, .mv-menu .add-pl { max-width: none; min-height: 40px; }
  .pl-fedit { opacity: 1; }
}
/* end cutups */

/* ------------------------------------------------------------------ medium: right panel becomes a drawer */
@media (max-width: 1199px) {
  .shell { grid-template-columns: 240px minmax(0, 1fr); }
  .side-toggle { display: inline-flex; }
  .side {
    position: fixed; z-index: 45; top: var(--top-h); right: 0; bottom: 0; width: 300px; box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform .16s ease-out; visibility: hidden;
  }
  .side.open { transform: none; visibility: visible; }
  .pane-play .ph-t { display: none; }
  .side-head { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--rule); font-weight: 600; }
  .picker.pop { left: 8px; width: calc(100vw - 16px); max-width: 660px; }
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 720px) {
  :root { --top-h: 44px; --row: 40px; }
  .mob-only { display: inline-flex !important; }
  .desk-only { display: none !important; }
  .top { gap: 6px; padding: 0 4px 0 8px; }
  .brand span { display: none; }
  .scope { gap: 6px; padding-left: 8px; min-width: 0; }
  .team-btn { font-size: 14px; max-width: 120px; }
  .team-btn span { overflow: hidden; text-overflow: ellipsis; }
  .seg button { padding: 0 7px; }
  .season-sel { width: 88px; padding-right: 18px; }
  .user-btn #me { display: none; }
  .ibtn { min-width: 36px; height: 36px; }
  .shell { display: flex; flex-direction: column; }
  .rail {
    position: fixed; z-index: 45; top: 0; bottom: 0; left: 0; width: min(320px, 88vw); box-shadow: var(--shadow);
    transform: translateX(-100%); transition: transform .16s ease-out; visibility: hidden;
  }
  .rail.open { transform: none; visibility: visible; }
  .rail-head { height: 44px; }
  .centre { flex: 1; }
  .search { height: 40px; }
  .qline { min-height: 32px; flex-wrap: nowrap; }
  .tokens-bar { max-width: none; flex: 1 1 auto; }
  .qline .interp { display: none; }
  .well { max-height: none; max-width: none; }
  .transport { height: 44px; gap: 0; padding: 0 2px; }
  .tbtn { width: 40px; height: 40px; }
  .timer { margin: 0 4px; font-size: 12px; }
  .seg-sm button { height: 32px; padding: 0 9px; }
  .gridbar { height: 38px; gap: 8px; }
  .gb-sum .x { display: none; }
  .grid .mh { display: none; }
  .grid { width: 100%; }
  .grid td { font-size: 13px; }
  .grid .c-sel, .grid .c-play { position: static; }
  .grid tbody tr.nofilm td.c-play::before { content: ""; }
  .side {
    top: auto; left: 0; right: 0; width: auto; height: 72vh; border-left: 0; border-top: 1px solid var(--rule);
    transform: translateY(100%);
  }
  .side.open { transform: none; }
  .picker-head { flex-wrap: wrap; gap: 6px 10px; }
  .field-search { width: 100%; order: 3; }
  .picker-recent { display: none; }
  .ptable .pc-code, .ptable .pc-conf { width: 0; }
  .ptable th:nth-child(2), .ptable td:nth-child(2), .ptable th:nth-child(3), .ptable td:nth-child(3) { padding: 0; border: 0; font-size: 0; }
  .pc-n { width: 44px; } .pc-open { width: 132px; }
  .ptable th, .ptable td { padding: 0 6px; }
  .ptable .t-open a { margin-right: 10px; }
  .keys-cols { grid-template-columns: 1fr; }
  .picker.pop { top: var(--top-h); left: 0; width: 100vw; height: calc(100% - var(--top-h)); border: 0; border-radius: 0; }
}

@media (max-width: 720px) {
  .mob-only[hidden] { display: none !important; }
  .seg .full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .seg .short { display: inline; }
  .grid th, .grid td { padding: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* coach ------------------------------------------------------------ coach lineage (staff.py) */
.coach-chip {
  display: inline-flex; align-items: center; max-width: 46vw; height: 22px; padding: 0 8px; border-radius: var(--r);
  background: var(--sel); color: var(--ink); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.coach-chip b { font-weight: 600; margin-right: 4px; }
.team-btn.coach-mode #team-name { font-size: 14px; }
.team-btn.coach-mode #team-name .cm-sep { color: var(--ink-3); font-weight: 400; margin: 0 5px; }
.team-btn.coach-mode #team-name .cm-scope { font-weight: 400; color: var(--ink-2); }
.psec-h {
  margin: 0; padding: 10px 10px 4px; font: 600 12px/16px var(--f); color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .04em;
}
.psec-n { margin-left: 6px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.ctable { margin-bottom: 6px; }
.ctable .cc-name { width: 220px; }
.ctable .c-name { font-weight: 500; }
.ctable .c-jobs { color: var(--ink-2); }
.ctable .c-jobs .c-role { color: var(--ink); font-family: var(--fc); font-weight: 600; margin-right: 3px; }
.ctable .c-open a { margin-right: 14px; color: var(--accent); text-decoration: none; }
.ctable .c-open a:hover { text-decoration: underline; }
.ctable .c-open .off { color: var(--ink-3); margin-right: 14px; }
.pane-coach { flex: none; max-height: 34%; overflow-y: auto; }
.cn-list { margin: 0; padding: 0; list-style: none; }
.cn-list li { padding: 3px 0 3px 10px; border-left: 2px solid var(--rule); margin-bottom: 4px; font-size: 12px; color: var(--ink-2); }
.cn-list li.unknown { border-left-color: var(--warn); color: var(--ink); }
.cn-ts { margin: 0 0 6px; font-size: 12px; }
.cn-ts span { display: inline-block; margin: 0 6px 3px 0; padding: 1px 6px; border-radius: var(--r); background: var(--raise); }
.cn-ts span.dim { color: var(--ink-3); text-decoration: line-through; }
#qform { position: relative; }
.qcoach { left: 32px; top: 34px; min-width: 340px; max-width: 520px; }
.qcoach button { display: flex; gap: 10px; width: 100%; padding: 5px 12px; border: 0; background: none; text-align: left; }
.qcoach button[aria-selected="true"] { background: var(--sel); }
.qcoach button b { font-weight: 500; white-space: nowrap; }
.qcoach button span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* /coach */

/* upload ------------------------------------------------------------ (upload-and-match agent; page styles in upload.css) */
.up-nav { padding: 0 8px; font-weight: 500; text-decoration: none; }
/* plays from an uploaded game: a small UP badge in the PLAY # cell (source = 'upload') */
td.src-up::before {
  content: "UP"; float: left; margin-top: 1px; padding: 0 3px; border-radius: var(--r);
  font: 600 9.5px/14px var(--fc); letter-spacing: .04em; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
/* end upload */

/* team logos (2026-10-27): fixed square boxes; the negative margins keep the line box, so the 28 px
   grid and picker rows do not grow */
img.lg { display: inline-block; flex: none; object-fit: contain; vertical-align: middle; margin: -4px 6px -3px 0; }
.grid td img.lg { margin: -3px 4px -2px 0; }
.ctable .c-jobs img.lg { margin: -3px 3px -2px 1px; }
.team-btn #team-name { display: inline-flex; align-items: center; min-width: 0; }
.team-btn #team-name img.lg { margin: 0 6px 0 0; }
.team-btn.coach-mode #team-name img.lg { margin: 0 3px 0 0; }
.kvs dd img.lg { margin: -3px 3px -2px 0; }
.interp .sw { color: var(--accent); font-weight: 600; margin-right: 2px; }

/* status ----------------------------------------------------------- data-freshness line + popover (status.py) */
:root { --st-h: 24px; }
body.has-status .shell { height: calc(100% - var(--top-h) - var(--st-h)); }
.statusline {
  position: relative; z-index: 29; display: flex; align-items: center; height: var(--st-h); padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--rule); background: var(--chrome);
}
.st-btn {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 20px; padding: 0 6px; margin-left: -6px;
  border: 0; border-radius: var(--r); background: none; color: var(--ink-2); font-size: 12px; white-space: nowrap;
}
.st-btn:hover, .st-btn[aria-expanded="true"] { background: var(--raise); color: var(--ink); }
.st-btn > span { overflow: hidden; text-overflow: ellipsis; }
.st-dot { margin: 0 6px; color: var(--ink-3); }
.st-warn { color: var(--warn); }
.st-pop {
  position: absolute; z-index: 36; top: calc(var(--st-h) - 1px); left: 8px; width: 560px; max-width: calc(100vw - 16px);
  max-height: min(72vh, 640px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.st-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 12px; border-bottom: 1px solid var(--rule); }
.st-h b { font-weight: 600; }
.st-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.st-t { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.st-t thead th {
  position: sticky; top: 0; z-index: 1; height: 24px; padding: 0 8px; background: var(--raise); border-bottom: 1px solid var(--rule);
  text-align: left; font: 600 11px/24px var(--fc); letter-spacing: .04em; color: var(--ink-2); white-space: nowrap;
}
.st-t td, .st-t tbody th { height: 26px; padding: 0 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.st-t tbody th { font-weight: 600; text-align: left; background: none; }
.st-seasons { border-bottom: 2px solid var(--rule); }
.st-games .st-d { color: var(--ink-2); }
.st-opp { overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.st-at { display: inline-block; width: 18px; color: var(--ink-3); }
.st-sl { color: var(--ink-3); }
.st-ok { color: var(--good); font-weight: 600; }
.st-part { color: var(--warn); }
.st-none { color: var(--ink-3); }
.st-up td:first-child { box-shadow: inset 2px 0 var(--accent); }
.st-note { margin: 0; padding: 8px 12px; color: var(--ink-2); font-size: 12px; }
.st-note + .st-note { padding-top: 0; }
.st-lib { width: min(760px, calc(100vw - 24px)); }
#st-lib-body { padding: 12px 16px 16px; }
.st-lib .st-scroll { max-height: 40vh; border: 1px solid var(--rule); border-radius: var(--r); }
.st-lib .st-note { padding: 0 0 10px; }
.st-h3 { margin: 14px 0 6px; font: 600 11px/1.2 var(--fc); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.st-list { margin: 0; padding-left: 18px; font-size: 12px; color: var(--ink); }
.st-list li { margin: 3px 0; }
.st-list ul { padding-left: 18px; }
.st-dim { color: var(--ink-3); }
.notice .link, .pane-play .link { font-size: 12px; margin-left: 4px; }
.menu .menu-a { display: block; padding: 5px 12px; text-decoration: none; }
.menu .menu-a:hover { background: var(--raise); }
@media (max-width: 1199px) {
  body.has-status .side { top: calc(var(--top-h) + var(--st-h)); }
}
@media (max-width: 720px) {
  .statusline { padding: 0 8px; }
  .st-pop { left: 0; top: var(--st-h); width: 100vw; max-width: 100vw; max-height: calc(100vh - var(--top-h) - var(--st-h)); max-height: calc(100dvh - var(--top-h) - var(--st-h)); border-left: 0; border-right: 0; border-radius: 0; }
  .st-dot { margin: 0 4px; }
  .st-btn { font-size: 11.5px; }
  .st-games .st-d { width: 76px; }
  .st-opp { max-width: 130px; }
  body.has-status .side { top: auto; }
}
/* end status */

/* passport ---------------------------------------------------------- CFB Passport skin (2026-11-04)
   Overrides that make the film room read as a section of CFB Passport. Source classes are the
   Passport base.html nav, auth/login.html, games/game_detail.html (cards, thead) and leaderboard.html.
   Density stays the film room's: 13 px body, 28 px rows, 1 px rules, square panes. */
body { font-family: var(--f); }
.link, .gb-act, .widen-links button, .widen-side button, .ptable .t-open a, .ctable .c-open a, .picker-recent a,
.login a { color: var(--link); }
.link:hover, .gb-act:hover, .widen-links button:hover, .ptable .t-open a:hover, .ctable .c-open a:hover,
.login a:hover { color: var(--link-h); }
.link.danger { color: var(--bad); }

/* header: Passport's blue-900 nav bar, film tabs as nav links */
.top {
  height: var(--top-h); gap: 16px; padding: 0 12px 0 16px; border-bottom: 0;
  background: var(--nav); color: #fff; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}
.brand { gap: 8px; color: #fff; }
.brand-mark { width: 28px; height: 28px; flex: none; transition: transform .2s; }
.brand:hover .brand-mark { transform: scale(1.05); }
.brand .brand-word { font-size: 18px; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: #fff; }
.brand .brand-word b { font-weight: 900; color: var(--nav-gold); }
.brand .brand-film {
  margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--nav-3); font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--nav-ink); line-height: 22px;
}
.top .scope { padding-left: 16px; border-left: 1px solid var(--nav-2); }
.top .team-btn { color: #fff; font-weight: 800; letter-spacing: -.01em; border-radius: var(--r); }
.top .team-btn:hover, .top .team-btn[aria-expanded="true"] { background: var(--nav-2); }
.top .team-btn .ic12 { color: var(--nav-ink-2); }
.top .coach-chip { background: var(--nav-2); color: #fff; }
.top .seg { border-color: var(--nav-3); border-radius: var(--r); }
.top .seg button { color: var(--nav-ink); border-left-color: var(--nav-3); font-weight: 700; }
.top .seg button:hover { background: var(--nav-2); color: #fff; }
.top .seg button[aria-pressed="true"] { background: var(--nav-2); color: #fff; box-shadow: inset 0 -2px var(--nav-gold); }
.top select {
  border-color: var(--nav-3); background-color: var(--nav-2); color: #fff; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%2393C5FD' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}
.top select option { background: #fff; color: #111827; }
.top .tabs { gap: 20px; margin-left: 12px; }
.top .tab {
  display: inline-flex; align-items: center; padding: 0 1px; margin-bottom: 0;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  color: var(--nav-ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; transition: color .15s, border-color .15s;
}
.top .tab:hover { color: #fff; border-bottom-color: var(--nav-gold); }
.top .tab[aria-current="page"] { color: #fff; border-bottom-color: var(--mark); }
.top .ibtn { color: var(--nav-ink-2); border-radius: var(--r); }
.top .ibtn:hover { background: var(--nav-2); color: #fff; }
.badge { background: var(--nav-gold); color: #1E3A8A; border-radius: 999px; font-weight: 800; }
/* "Upload" is the film room's Add Game: Passport's yellow pill CTA */
.top .up-nav {
  height: 30px; padding: 0 16px; border-radius: 999px; background: #EAB308; color: #1E3A8A;
  font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  box-shadow: var(--shadow-md); transition: transform .15s, background .15s;
}
.top .up-nav:hover { background: #FACC15; color: #1E3A8A; transform: translateY(-1px); }
.top-div { width: 1px; height: 28px; background: var(--nav-2); flex: none; }
/* user menu: "Signed in as / name", chevron, white dropdown, separate sign-out icon (Passport) */
.top .user-btn { height: 40px; gap: 8px; padding: 0 6px; color: var(--nav-ink-2); border-radius: var(--r); }
.top .user-btn:hover, .top .user-btn[aria-expanded="true"] { background: none; color: #fff; }
.me-wrap { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.me-l { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--nav-ink-2); }
.top #me { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; color: #fff; }
.me-ic { display: none; width: 26px; height: 26px; color: var(--nav-ink-2); }
.top .user-btn:hover .me-ic { color: #fff; }
.top-out { display: flex; margin: 0; }
.top-out .ibtn { width: 36px; height: 36px; border-radius: 999px; color: var(--nav-ink-2); }
.top-out .ibtn:hover { background: var(--nav-2); color: #F87171; }
.top .user .menu { top: 44px; }
@media (max-width: 1279px) {
  .me-wrap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .me-ic { display: block; }
}

/* menus: Passport dropdown (white, rounded-lg, shadow-xl, ring-black/5, bold slate-700 rows) */
.menu { padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .05); overflow: hidden; }
[data-theme="dark"] .menu { box-shadow: var(--shadow), 0 0 0 1px var(--rule); }
.menu button, .menu .menu-a { padding: 7px 14px; font-weight: 600; color: var(--ink); }
.menu button:hover:not(:disabled), .menu .menu-a:hover { background: var(--raise); color: var(--link); }
.menu button:disabled { color: var(--ink-3); }
.menu hr { margin: 0; border-top-color: var(--rule); }
.menu-h { padding: 8px 14px 2px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.menu button[aria-checked="true"]::after { background: var(--mark); }
#user-menu { min-width: 224px; }
#user-menu > button, #user-menu > .menu-a, #user-menu form button { padding: 10px 16px; font-size: 14px; font-weight: 700; }

/* buttons */
.btn-primary {
  height: 28px; padding: 0 14px; border-radius: var(--r); background: var(--accent); color: var(--on-accent);
  font-weight: 700; transition: background .15s;
}
.btn-primary:hover { filter: none; background: var(--accent-h); }
.btn-primary:disabled { background: var(--raise); color: var(--ink-3); }
.sbtn, .qbtn { border-radius: var(--r); font-weight: 600; background: var(--panel); }
.sbtn:hover:not(:disabled), .qbtn:hover { background: var(--raise); }
.seg button { font-weight: 600; }
.seg button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--mark); }

/* checkboxes: Passport's text-blue-900 checkbox (yellow on dark) */
.ck[aria-pressed="true"] .box, tr.chk .cbox, .cbox.on { background: var(--accent) var(--ck) center / 10px no-repeat; border-color: var(--accent); }

/* focus: ring-2 ring-blue-500 */
input:focus, select:focus, textarea:focus, .pl-in:focus, .menu-form input:focus {
  border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); outline: 0;
}
.field-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.field-search input:focus, .search input:focus { box-shadow: none; }
.search:focus-within { box-shadow: inset 0 -2px var(--focus); }

/* table heads: Passport <thead class="bg-blue-50 text-blue-900 text-xs uppercase font-bold"> */
.grid th, .ptable th, .st-t thead th, .pl-hd {
  background: var(--head-bg); color: var(--head-ink); font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
}
.tt th { color: var(--head-ink); font-weight: 700; font-size: 11px; }
.grid th:hover { color: var(--ink); }
.grid th .srt { color: var(--link); }
.grid tr.totals th { text-transform: none; letter-spacing: 0; font-weight: 600; }
.grid tbody tr.cur td:first-child { box-shadow: inset 3px 0 var(--mark), inset 0 1px var(--accent), inset 0 -1px var(--accent); }
.ptable tbody tr[aria-selected="true"] td:first-child, .pl-row[aria-current="true"] { box-shadow: inset 3px 0 var(--mark); }

/* section heads: Passport card headers (uppercase, black weight, wide tracking) */
.rail-head, .side-head { background: var(--head-bg); }
.rail-title, .side-head, .pane-h, .keys-head h2, .picker-title, .st-h b, .psec-h, .pl-oh, .pl-sub {
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--head-ink);
}
.rail-title, .side-head, .keys-head h2, .picker-title { font-size: 12px; }
.pane-h { font-size: 11px; }
.pane-aux, .psec-n { text-transform: none; letter-spacing: 0; font-weight: 400; }
.grp-h { font-weight: 700; }
.grp-h .grp-n { color: var(--link); font-weight: 700; }
.keys { border: 0; border-radius: var(--r-xl); overflow: hidden; }
.keys-head { background: var(--nav); border-bottom: 4px solid #EAB308; }
.keys-head h2 { color: var(--nav-gold); }
.keys-head .ibtn { color: var(--nav-ink); }
.keys-head .ibtn:hover { background: var(--nav-2); color: #fff; }
.toast { border-left: 4px solid var(--mark); border-radius: var(--r-lg); }
.tok, .coach-chip { border-radius: 999px; }
.picker-head { background: var(--panel); }
.picker.pop { border-radius: var(--r-lg); overflow: hidden; }

/* sign-in, forgot, reset, invite: Passport auth/login.html */
.login-page { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--chrome); }
.login-page .top { flex: none; height: 64px; padding: 0 max(16px, calc((100vw - 1280px) / 2 + 32px)); }
.login-page .brand-mark { width: 32px; height: 32px; }
.login-page .brand .brand-word { font-size: 20px; }
.login { flex: 1 0 auto; width: auto; margin: 0; padding: 64px 16px 48px; }
.login-card {
  width: 100%; max-width: 448px; margin: 0 auto; padding: 32px 24px; background: var(--panel);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.login-wide .login-card { max-width: 480px; }
.login-h { margin: 0 0 32px; text-align: center; font-size: 24px; font-weight: 700; color: #374151; }
.login form { display: flex; flex-direction: column; padding: 0; background: none; border: 0; border-radius: 0; }
.login label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #374151; }
.login input {
  height: 38px; margin-bottom: 16px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--panel); color: var(--ink); font-size: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}
.login input:focus { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.login .btn-primary { height: 40px; margin-top: 8px; font-size: 14px; }
.login-row { display: flex; justify-content: flex-end; margin: -4px 0 16px; font-size: 14px; font-weight: 500; }
.login-err, .login-ok { margin: 0 0 16px; padding: 8px 12px; border-radius: var(--r); font-size: 14px; }
.login-err { color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; }
.login-ok { color: #15803D; background: #F0FDF4; border: 1px solid #BBF7D0; }
.login-foot { margin: 24px 0 0; text-align: center; font-size: 14px; color: #6B7280; }
.login-foot + .login-foot { margin-top: 10px; }
.inv-lead { text-align: center; }
[data-theme="dark"] .login-h, [data-theme="dark"] .login label { color: var(--ink); }
[data-theme="dark"] .login-foot { color: var(--ink-2); }
[data-theme="dark"] .login-err { color: #FCA5A5; background: rgba(220, 38, 38, .12); border-color: rgba(248, 113, 113, .3); }
[data-theme="dark"] .login-ok { color: #86EFAC; background: rgba(22, 163, 74, .12); border-color: rgba(74, 222, 128, .3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .login-h, :root:not([data-theme]) .login label { color: var(--ink); }
  :root:not([data-theme]) .login-foot { color: var(--ink-2); }
}
.pp-foot { flex: none; padding: 32px 16px; background: var(--nav); color: #BFDBFE; font-size: 14px; text-align: center; border-top: 1px solid var(--nav-2); }
.pp-foot p { margin: 0; }

@media (max-width: 720px) {
  :root { --top-h: 48px; }
  .top { gap: 8px; padding: 0 6px 0 10px; }
  .brand .brand-word { display: none; }
  .brand .brand-film { display: inline; }
  .brand .brand-film { margin-left: 0; padding-left: 8px; font-size: 12px; }
  .ws .top .scope { padding-left: 8px; }
  .top .tabs { gap: 14px; margin-left: 4px; }
  .top-div, .top .up-nav { display: none !important; }
  .login-page .top { height: 64px; padding: 0 16px; }
}

/* passport fixes after the first screenshot pass */
.adm a, .login a, .picker-recent a, .pl-acts a { text-decoration: none; }
.top .team-btn.coach-mode #team-name .cm-sep, .top .team-btn.coach-mode #team-name .cm-scope { color: var(--nav-ink-2); }
.top .team-btn img.lg { padding: 2px; border-radius: 999px; background: #fff; }   /* Passport puts logos on white discs */
.brand .brand-film { border-left-color: rgba(147, 197, 253, .45); }
@media (max-width: 720px) {
  .top { gap: 6px; padding: 0 4px 0 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .ws .top:has(#scope:not([hidden])) .brand-film { display: none; }
  .ws .top .scope { gap: 5px; padding-left: 6px; }
  .top .user-btn { padding: 0 2px; gap: 0; }
  .top .user-btn > .ic12 { display: none; }
  .top .seg button { padding: 0 6px; }
  .login { padding-top: 40px; }
}
.top .up-tenant { color: var(--nav-ink-2); font-weight: 700; letter-spacing: .05em; }
/* end passport */
