@font-face {
  font-family: Soehne;
  src: url('/soehne-regular.otf') format('opentype');
  font-style: normal; font-weight: 100 499; font-display: swap;
}
@font-face {
  font-family: Soehne;
  src: url('/soehne-semibold.otf') format('opentype');
  font-style: normal; font-weight: 500 900; font-display: swap;
}
@font-face {
  font-family: 'Soehne Breit';
  src: url('/soehne-breit-bold.otf') format('opentype');
  font-style: normal; font-weight: 550 900; font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Soehne, Arial, sans-serif;
  font-size: 14px; line-height: 1.5; font-synthesis: none;
  color: #202020; background: #f3f3f3;
  --edge: #dedede; --muted: #686868; --dim: #787878;
  --red: #c1371c; --red-hover: #a82e17;
  --red-surface: color-mix(in srgb, var(--red) 7%, white);
  --mono: 'SFMono-Regular', Menlo, monospace;
  --heading: 'Soehne Breit', Soehne, Arial, sans-serif;
  --surface: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, select, input[type='checkbox'], input[type='range'], summary { cursor: pointer; }
button:disabled, input:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
code, .mono, .clock, .row-time { font-family: var(--mono); }
svg { width: 18px; height: 18px; flex: 0 0 auto; }
::selection { background: var(--red); color: #fff; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; transform: translateY(-200%); background: var(--red); color: #fff; padding: 10px 16px; }
.skip-link:focus { transform: none; }
.workspace-nav { position: fixed; inset: 0 auto 0 0; width: 210px; padding: 32px 14px 24px; background: #000; color: #b9b9b9; border-right: 1px solid #282828; display: flex; flex-direction: column; gap: 30px; overflow: auto; }
.brand { display: block; width: 148px; aspect-ratio: 4.55; position: relative; overflow: hidden; flex: 0 0 auto; margin: 0 10px; }
.brand img { position: absolute; width: 160%; height: auto; left: -30%; top: -141%; }
.workspace-title { font: 700 13px var(--heading); color: #fff; margin: 0 10px; display: flex; align-items: center; gap: 10px; letter-spacing: -.4px; }
.team-label { font: 9px Soehne, Arial, sans-serif; letter-spacing: .6px; color: #aaa; }
.team-label::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--red); margin: 0 5px 2px 0; }
.workspace-nav nav { display: flex; flex-direction: column; gap: 28px; }
.nav-group { display: flex; flex-direction: column; gap: 4px; }
.nav-group-label { font-size: 9px; letter-spacing: 1.5px; color: #919191; padding: 5px 12px 12px; }
.nav-group a, .nav-group button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 44px; border: 0; border-radius: 4px; background: none; color: #b9b9b9; text-align: left; font-size: 13px; }
.nav-group svg { color: #898989; }
.nav-group a:hover, .nav-group button:hover { background: #202020; color: #fff; }
.nav-group [aria-current='page'] { background: color-mix(in srgb, var(--red) 16%, #171717); box-shadow: inset 2px 0 var(--red); color: #fff; font-weight: 600; }
.nav-group [aria-current='page'] svg { color: var(--red); }
.external-mark { margin-left: auto; color: #767676; font-size: 12px; }
.workspace-footer { border-top: 1px solid #303030; margin-top: auto; padding: 24px 10px 0; font-size: 11px; }
.local { display: flex; align-items: center; gap: 8px; color: #ccc; }
.local i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.workspace-footer p { margin-top: 9px; color: #888; font-size: 10px; }
.workspace-main { margin-left: 210px; padding: 34px clamp(22px, 3vw, 58px) 0; }
.page-heading { padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--edge); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 9px; letter-spacing: 1.6px; font-weight: 600; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading .eyebrow::before { content: ''; width: 17px; height: 2px; background: var(--red); }
.page-heading h1 { font: 700 34px/1.18 var(--heading); letter-spacing: -1.3px; }
.page-description { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.layout { display: grid; grid-template-columns: 294px minmax(0, 1fr); gap: 22px; align-items: start; }
.catalog { background: #fff; border: 1px solid var(--edge); border-radius: 6px; overflow: hidden; position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; }
.catalog-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 19px 17px; list-style: none; }
.catalog-title::-webkit-details-marker { display: none; }
.catalog-title h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.count { color: #777; font-size: 10px; font-weight: 400; }
.catalog-toggle { color: var(--dim); font-size: 9px; }
#filters { border-block: 1px solid var(--edge); padding: 18px 16px; }
.filter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 10px; }
label { font-weight: 500; font-size: 11px; color: var(--muted); }
.wide { grid-column: 1 / -1; }
.subtle { color: var(--dim); font-weight: 400; }
select, input:not([type='checkbox'], [type='range']), textarea { border: 1px solid var(--edge); background: #fafafa; color: #202020; border-radius: 4px; padding: 8px 9px; width: 100%; min-width: 0; margin-top: 6px; line-height: 1.4; min-height: 37px; }
input::placeholder, textarea::placeholder { color: #858585; opacity: 1; }
input[type='date'] { font-size: 10px; padding-inline: 6px; }
.filter-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.kept-filter, .scene-tools label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
input[type='checkbox'] { margin: 0; accent-color: var(--red); }
.text-button { border: 0; color: var(--muted); background: none; padding: 3px 0; font-size: 10px; }
.text-button:hover { color: var(--red); }
.collection-label { display: flex; justify-content: space-between; padding: 13px 16px; background: #fafafa; color: #6b6b6b; border-bottom: 1px solid var(--edge); font-size: 10px; }
.collection-label span { font-size: 8px; letter-spacing: .4px; }
.record-list { display: grid; }
.record-row { position: relative; border-bottom: 1px solid #eaeaea; background: #fff; }
.record-row:hover { background: #fafafa; }
.record-row.selected { background: var(--red-surface); box-shadow: inset 3px 0 var(--red); }
.record-link { display: grid; position: relative; padding: 17px 16px; gap: 4px; }
.record-link:focus-visible { outline-offset: -4px; }
.row-heading { font-size: 13px; font-weight: 600; padding-right: 60px; }
.row-time { font-size: 10px; color: var(--muted); }
.row-mode { color: var(--muted); font-size: 11px; margin-top: 4px; }
.row-mode i { color: #888; margin: 0 1px; }
.row-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px; }
.row-upload { color: var(--dim); font-size: 10px; }
.row-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.row-tags span { border: 1px solid #ddd; color: #666; padding: 2px 5px; border-radius: 3px; font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; color: #555; border: 1px solid #ddd; padding: 4px 6px; border-radius: 3px; font-size: 10px; line-height: 1; font-weight: 500; white-space: nowrap; }
.badge i { display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.capture-partial { color: var(--red); background: var(--red-surface); border-color: color-mix(in srgb, var(--red) 40%, white); }
.catalog-note { font-size: 10px; line-height: 1.7; color: var(--dim); padding: 16px; background: #fafafa; }
main { min-width: 0; }
.detail { padding: 23px 20px 20px; border: 1px solid var(--edge); border-radius: 6px; background: #fff; }
.replay-eyebrow { font-size: 9px; color: var(--muted); margin-bottom: 15px; }
.breadcrumb { display: flex; gap: 8px; font-size: 11px; color: #888; align-items: center; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span:last-child { color: #555; }
.detail-heading { display: flex; justify-content: space-between; gap: 14px; margin: 11px 0 20px; align-items: center; }
.detail-heading h2 { font: 600 23px/1.3 Soehne, Arial, sans-serif; letter-spacing: -.5px; }
.detail-heading p { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; font-size: 11px; margin-top: 8px; color: var(--muted); }
.detail-heading code { font-size: 10px; color: #777; overflow-wrap: anywhere; }
.actions { display: flex; gap: 6px; flex: 0 0 auto; }
.button, .keep-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--edge); color: #333; padding: 9px 12px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.button:hover, .keep-button:hover, .icon-button:hover { background: #f3f3f3; border-color: #aaa; }
.keep-button.kept { color: var(--red); border-color: var(--red); background: var(--red-surface); }
.keep-button.kept svg { fill: currentColor; }
.keep-button.compact { position: absolute; right: 12px; top: 13px; padding: 5px 6px; font-size: 9px; gap: 4px; }
.keep-button.compact svg { width: 12px; height: 12px; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 23px; padding-block: 12px; border-block: 1px solid var(--edge); background: #fafafa; }
.summary-item { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 0 12px; min-width: 0; }
.summary-item + .summary-item { border-left: 1px solid var(--edge); }
.summary-item > span:first-child { color: var(--dim); font-size: 10px; }
.summary-item strong, .summary-item code { font-size: 11px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; }
.section-title h3 { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.slice-control { display: flex; align-items: center; gap: 10px; }
.slice-control .mono { font-size: 10px; color: var(--muted); white-space: nowrap; }
.slice-control select { width: auto; font-size: 11px; margin-top: 0; min-height: 33px; }
.excerpt-note { color: var(--muted); font-size: 11px; margin-bottom: 14px; line-height: 1.7; }
.media-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
.card { border: 1px solid var(--edge); background: var(--surface); border-radius: 4px; min-width: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 10px 12px; min-height: 41px; }
.card-head h3, .card-head h4 { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.card-head svg { color: #777; }
.stream-chip { color: #666; padding: 3px 6px; border-radius: 3px; font-size: 9px; background: #efefef; white-space: nowrap; }
.stream-chip.ok { color: #444; background: #eee; }
.stereo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; height: clamp(170px, 15vw, 290px); background: #333; }
.rgb-panel { position: relative; }
.stereo-source { position: absolute; left: 1px; top: 42px; width: 4px; height: 4px; opacity: .01; pointer-events: none; }
.eye, .scene, .depth-body { position: relative; overflow: hidden; background: #121212; }
.eye { display: grid; place-items: center; }
.eye canvas { width: 100%; max-height: 100%; object-fit: contain; display: block; }
.eye-label { position: absolute; top: 9px; left: 9px; padding: 4px 6px; border: 1px solid #555; color: #f3f3f3; background: #1b1b1bd9; border-radius: 3px; font: 9px var(--mono); letter-spacing: .08em; }
.media-message { position: absolute; left: 8px; right: 8px; top: 50%; translate: 0 -50%; text-align: center; color: #bbb; font-size: 12px; }
.scene { height: clamp(170px, 15vw, 290px); }
.scene > canvas { width: 100%; height: 100%; display: block; }
.scene-tools { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 5px; }
.scene-tools label, .scene-tools button { color: #ddd; font-size: 10px; background: #1b1b1be8; border: 1px solid #515151; border-radius: 4px; padding: 5px 6px; }
.scene-tools label:has(input:disabled) { opacity: .58; }
.scene-tools svg { width: 13px; height: 13px; }
.scene-status { position: absolute; pointer-events: none; inset: auto 8px 8px; color: #e1e1e1; width: fit-content; max-width: calc(100% - 16px); background: #181818e8; border: 1px solid #424242; border-radius: 3px; padding: 5px 6px; font: 10px/1.35 var(--mono); }
.card-caption { color: var(--muted); font-size: 10px; line-height: 1.6; padding: 9px 11px; min-height: 33px; }
.transport { margin-top: 12px; padding: 12px 13px; }
.transport-controls { display: flex; align-items: center; gap: 13px; }
.primary { min-width: 76px; color: #fff; background: var(--red); border-color: var(--red); }
.primary:hover { background: var(--red-hover); color: #fff; border-color: var(--red-hover); }
.clock { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.clock strong { font-weight: 600; color: #333; }
#wall-time { margin-left: auto; color: #777; font-size: 10px; }
#timeline { display: block; width: 100%; margin: 13px 0; accent-color: var(--red); }
.lanes-wrap { border-top: 1px solid var(--edge); padding-top: 7px; }
.track { display: grid; grid-template-columns: 82px minmax(0, 1fr) 72px; align-items: center; gap: 8px; min-height: 21px; font-size: 11px; color: #666; }
.track-state { text-align: right; font-size: 10px; color: var(--dim); }
.track-state.present { color: #444; }
.lane { height: 7px; border-radius: 2px; position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, #ddd, #ddd 2px, #eee 2px, #eee 6px); }
.lane::after { content: ''; width: 1px; position: absolute; left: var(--progress, 0%); top: 0; bottom: 0; background: #111; }
.lane i { position: absolute; height: 100%; background: var(--red); }
.depth-panel { margin-top: 12px; }
.depth-panel summary { list-style: none; }
.depth-panel summary::-webkit-details-marker { display: none; }
.depth-panel summary::after { content: '+'; color: var(--muted); margin-left: 3px; }
.depth-panel[open] summary::after { content: '−'; }
.depth-panel summary span { margin-left: auto; }
.depth-body { display: grid; place-items: center; min-height: 145px; }
.depth-body canvas { width: min(100%, 640px); }
.annotations { margin-top: 20px; }
.annotations .card-head { border-bottom: 1px solid var(--edge); }
#annotation-status { color: var(--dim); font-size: 10px; }
.annotations form { padding: 12px; }
.annotation-fields { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 12px; }
textarea { resize: vertical; }
.annotations button { margin-top: 10px; }
.empty { color: var(--muted); font-size: 13px; line-height: 1.7; padding: 18px 16px; }
.error-banner { margin: 10px 0; color: var(--red); font-size: 12px; }
.toast { position: fixed; z-index: 3; right: 20px; bottom: 20px; max-width: min(380px, calc(100vw - 40px)); border: 1px solid #555; background: #222; border-radius: 4px; padding: 12px 16px; color: #fff; box-shadow: 0 6px 24px #0003; }
.toast.error { border-color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #777; font-size: 9px; margin-top: 30px; padding: 20px 0; border-top: 1px solid var(--edge); }
.page-footer span:first-child { letter-spacing: 1.2px; }
@media (max-width: 1550px) {
  .layout { grid-template-columns: 270px minmax(0, 1fr); gap: 18px; }
  .media-grid { grid-template-columns: 1fr; }
  .stereo { height: auto; min-height: 115px; }
  .eye { aspect-ratio: 16 / 9; }
  .scene { height: 280px; }
  .detail-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1150px) {
  .workspace-nav { width: 190px; padding-inline: 10px; }
  .workspace-main { margin-left: 190px; }
  .workspace-title { flex-wrap: wrap; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .catalog { position: static; max-height: none; }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wide { grid-column: auto; }
  .record-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 250px; overflow: auto; }
  .record-row:nth-child(odd) { border-right: 1px solid var(--edge); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .summary-item:nth-child(odd) { border-left: 0; }
}
@media (max-width: 760px) {
  .workspace-nav { position: relative; width: 100%; padding: 18px 16px 10px; gap: 16px; overflow: visible; }
  .brand { width: 128px; margin-left: 0; }
  .workspace-title { position: absolute; right: 18px; top: 25px; margin: 0; }
  .team-label, .workspace-footer, .nav-group-label, .nav-group:nth-child(2) { display: none; }
  .workspace-nav nav, .nav-group { flex-direction: row; gap: 5px; }
  .nav-group button { width: auto; min-height: 38px; font-size: 12px; padding: 9px 12px; }
  .workspace-main { margin-left: 0; padding: 25px 17px 0; }
  .page-heading { padding-bottom: 20px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 28px; }
  .page-description { font-size: 12px; }
  .detail { padding: 20px 14px 14px; }
  .filter-grid, .annotation-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annotation-fields label:last-child { grid-column: 1 / -1; }
  .record-list { grid-template-columns: 1fr; max-height: 240px; }
  .record-row:nth-child(odd) { border-right: 0; }
  .slice-control .mono { display: none; }
  .clock { gap: 4px; font-size: 10px; }
  .transport-controls { gap: 6px; flex-wrap: wrap; }
  #wall-time { font-size: 9px; }
  .scene { height: 260px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-group a, .nav-group button, .button, .record-row { transition: background .15s, color .15s, border-color .15s; }
}
.auth-page { background: #000; color: #fff; min-height: 100dvh; }
.auth-page > header { margin: 36px 5vw 0; padding-bottom: 28px; border-bottom: 1px solid #333; }
.auth-page .brand { width: 166px; margin: 0; }
.auth-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 8vw, 130px); align-items: center; max-width: 1120px; width: 90vw; margin: 0 auto; min-height: calc(100dvh - 140px); padding-block: 45px; }
.auth-intro .eyebrow { color: var(--red); margin-bottom: 25px; }
.auth-intro h1 { font: 700 clamp(36px, 4vw, 60px)/1.08 var(--heading); letter-spacing: -2px; }
.auth-intro > p:last-child { color: #aaa; font-size: 16px; line-height: 1.8; max-width: 360px; margin-top: 28px; }
.sign-in-card { background: #fff; color: #202020; padding: 36px; border-top: 3px solid var(--red); width: 100%; max-width: 410px; justify-self: end; }
.sign-in-card h2 { font: 700 30px var(--heading); margin-top: 20px; letter-spacing: -1px; }
.sign-in-card > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 16px; }
.sign-in-card form { margin-top: 24px; }
.sign-in-card input { min-height: 44px; font-size: 13px; }
.sign-in-card form .button { width: 100%; margin-top: 16px; min-height: 44px; }
.google-login { width: 100%; margin-top: 24px; min-height: 44px; }
.sign-in-card .text-button { display: block; margin-top: 15px; }
.sign-in-card #login-status { color: var(--red); }
.sign-in-card .access-note { padding-top: 20px; border-top: 1px solid var(--edge); font-size: 10px !important; }
@media (max-width: 760px) {
  .auth-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 40px; }
  .auth-intro h1 { font-size: 38px; }
  .auth-intro > p:last-child { font-size: 13px; }
  .sign-in-card { justify-self: start; max-width: none; padding: 28px; }
}
