:root {
  --ink: #17201d;
  --ink-soft: #65706b;
  --paper: #f4f5f1;
  --surface: #ffffff;
  --surface-muted: #eceee8;
  --line: #d9ddd6;
  --line-strong: #bdc3ba;
  --accent: #e4a51a;
  --accent-strong: #bd7c00;
  --accent-pale: #fff2cc;
  --green: #2f7754;
  --green-pale: #e4f1e9;
  --red: #a64438;
  --red-pale: #f7e6e2;
  --blue: #3c6574;
  --blue-pale: #e5eef1;
  --shadow: 0 18px 50px rgba(24, 34, 29, 0.09);
  --radius: 8px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(228, 165, 26, 0.36); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.is-hidden { display: none !important; }
.overline { display: block; color: var(--accent-strong); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(400px, .55fr); background: var(--surface); }
.login-context { position: relative; overflow: hidden; min-height: 100vh; color: #f6f5ed; background: #1d2925; }
.login-context::before { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, rgba(12, 18, 16, .22), rgba(12, 18, 16, .92)), radial-gradient(circle at 20% 20%, rgba(228, 165, 26, .24), transparent 28%); }
.login-context::after { content: ""; position: absolute; width: 60vw; height: 60vw; right: -30vw; bottom: -38vw; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; box-shadow: 0 0 0 7vw rgba(255,255,255,.025), 0 0 0 14vw rgba(255,255,255,.02); }
.context-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 72px 72px; transform: perspective(800px) rotateX(55deg) scale(1.6) translateY(25%); transform-origin: bottom; }
.context-copy { position: relative; z-index: 1; max-width: 780px; padding: 11vh 8vw; animation: rise-in .7s ease both; }
.context-copy .overline { color: #f2bd45; }
.context-copy h1 { max-width: 720px; margin-top: clamp(70px, 14vh, 150px); font-size: clamp(50px, 5vw, 82px); line-height: 1.12; letter-spacing: -.055em; }
.context-copy > p { max-width: 500px; margin-top: 28px; color: rgba(246,245,237,.68); font-size: 17px; line-height: 1.8; }
.context-flow { display: flex; align-items: center; gap: 18px; margin-top: clamp(70px, 13vh, 130px); color: rgba(246,245,237,.72); font-size: 12px; }
.context-flow span { display: grid; gap: 5px; }
.context-flow b { color: #f2bd45; font: 600 10px var(--mono); }
.context-flow i { width: 42px; height: 1px; background: rgba(255,255,255,.2); }
.login-form { width: min(420px, calc(100% - 64px)); align-self: center; justify-self: center; display: grid; gap: 19px; padding: 40px 10px; animation: rise-in .65s .08s ease both; }
.login-brand, .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.login-brand > div, .brand > span:last-child { display: grid; gap: 2px; }
.login-brand strong, .brand strong { font-size: 15px; letter-spacing: -.02em; }
.login-brand small, .brand small { color: var(--ink-soft); font-size: 10px; }
.brand-symbol { width: 38px; height: 38px; display: flex; align-items: flex-end; gap: 3px; padding: 9px; background: var(--accent); border-radius: 4px; transform: skew(-5deg); }
.brand-symbol i { flex: 1; background: #1a211f; }
.brand-symbol i:nth-child(1) { height: 45%; }.brand-symbol i:nth-child(2) { height: 90%; }.brand-symbol i:nth-child(3) { height: 65%; }
.login-heading { margin: 48px 0 6px; }
.login-heading h2 { margin-top: 9px; font-size: 32px; letter-spacing: -.045em; }
.login-heading p { margin-top: 8px; color: var(--ink-soft); }
label { display: grid; gap: 8px; color: #3b4541; font-size: 12px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 11px 12px; transition: border-color .16s ease, box-shadow .16s ease; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,165,26,.12); outline: none; }
textarea { resize: vertical; }
.form-error { min-height: 20px; color: var(--red); font-size: 12px; }
.security-note { padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); text-align: center; }

.button { min-height: 38px; border: 1px solid transparent; border-radius: 4px; padding: 0 17px; font-weight: 700; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); }
.button.primary { background: var(--accent); color: #1c211f; }
.button.primary:hover { background: #efb62f; }
.button.secondary { border-color: var(--line-strong); background: var(--surface); }
.button.secondary:hover { border-color: #8f9992; }
.button.ghost { background: transparent; color: var(--ink-soft); }
.button.wide { width: 100%; min-height: 46px; }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: transparent; }
.icon-button:hover { background: var(--surface-muted); }.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.text-button { border: 0; padding: 4px 0; color: var(--accent-strong); background: transparent; font-weight: 700; }

.portal-app { min-height: 100vh; display: grid; grid-template: 70px minmax(0, 1fr) / 246px minmax(0, 1fr); transition: grid-template-columns .24s ease; }
.topbar { position: sticky; top: 0; z-index: 30; grid-column: 1 / -1; display: grid; grid-template-columns: 246px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); transition: grid-template-columns .24s ease; }
.topbar .brand { height: 100%; padding-left: 25px; border-right: 1px solid var(--line); }
.topbar .brand-symbol { width: 31px; height: 31px; padding: 7px; }
.main-nav { justify-self: center; height: 100%; display: flex; gap: 6px; }
.nav-item { position: relative; min-width: 100px; height: 100%; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.nav-item::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .18s ease; }
.nav-item.is-active { color: var(--ink); }.nav-item.is-active::after { transform: scaleX(1); }
.nav-item span { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 5px; border-radius: 10px; background: var(--red-pale); color: var(--red); font: 600 10px var(--mono); }
.account-menu { display: flex; align-items: center; gap: 10px; padding-right: 22px; }
.account-copy { display: grid; text-align: right; }.account-copy strong { font-size: 12px; }.account-copy small { color: var(--ink-soft); font-size: 10px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #28342f; color: white; font-weight: 700; }
.account-menu .icon-button { border: 0; color: var(--ink-soft); }
.notification-center { position: relative; }.notification-button { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); }.notification-button:hover, .notification-button[aria-expanded="true"] { background: var(--surface-muted); color: var(--ink); }.notification-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.notification-badge { position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid white; border-radius: 10px; background: var(--red); color: white; font: 600 8px var(--mono); }
.notification-panel { position: absolute; z-index: 70; top: 45px; right: -128px; width: min(390px, calc(100vw - 24px)); overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px; background: rgba(250,251,248,.98); box-shadow: 0 22px 65px rgba(22,31,27,.2); backdrop-filter: blur(18px); }.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px 12px; border-bottom: 1px solid var(--line); }.notification-heading > span { display: grid; gap: 2px; }.notification-heading b { font-size: 13px; }.notification-heading small { color: var(--ink-soft); font-size: 9px; }.notification-heading button { border: 0; background: transparent; color: var(--accent-strong); font-size: 9px; font-weight: 700; }.notification-list { max-height: 430px; overflow: auto; }.notification-item { width: 100%; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; border: 0; border-bottom: 1px solid var(--line); padding: 13px 15px; background: transparent; text-align: left; }.notification-item:hover { background: var(--surface-muted); }.notification-item.is-unread { background: #fff9e9; }.notification-kind { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-muted); color: var(--ink-soft); }.notification-kind svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }.notification-item.is-unread .notification-kind { background: var(--accent); color: var(--ink); }.notification-copy { min-width: 0; display: grid; gap: 4px; }.notification-copy strong { font-size: 10px; }.notification-copy small { overflow: hidden; color: var(--ink-soft); font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }.notification-item time { color: #929a96; font: 500 8px var(--mono); white-space: nowrap; }

.project-rail { position: sticky; top: 70px; height: calc(100vh - 70px); display: flex; flex-direction: column; padding: 28px 17px 20px; border-right: 1px solid var(--line); background: #e9ebe5; transition: padding .24s ease; }
.rail-heading { min-height: 53px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 8px 18px; }.rail-heading h2 { margin-top: 5px; font-size: 19px; }.rail-heading-copy { min-width: 0; }
.rail-toggle { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(255,255,255,.62); color: var(--ink-soft); transition: color .16s ease, background .16s ease, transform .24s ease; }.rail-toggle:hover { background: var(--surface); color: var(--ink); }.rail-toggle svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-list { display: grid; gap: 5px; overflow: auto; }
.project-button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid transparent; border-radius: 5px; padding: 10px; background: transparent; text-align: left; }
.project-button:hover { background: rgba(255,255,255,.56); }.project-button.is-active { border-color: var(--line); background: var(--surface); box-shadow: 0 5px 15px rgba(23,32,29,.06); }
.project-scenario-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 5px; background: rgba(255,255,255,.64); color: #52605a; transition: color .16s ease, background .16s ease; }.project-scenario-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }.project-button.is-active .project-scenario-icon { background: var(--accent); color: var(--ink); }.project-button-copy { min-width: 0; display: grid; gap: 7px; }
.project-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.project-button small { color: var(--ink-soft); font-size: 10px; }
.project-mini-progress { height: 3px; overflow: hidden; background: var(--surface-muted); }.project-mini-progress i { display: block; height: 100%; background: var(--accent); }
.rail-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 15px 9px 0; border-top: 1px solid var(--line); }
.rail-foot p { display: grid; }.rail-foot strong { font-size: 11px; }.rail-foot small { color: var(--ink-soft); font-size: 9px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,119,84,.13); }
.portal-app.rail-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.portal-app.rail-collapsed .topbar { grid-template-columns: 72px 1fr auto; }
.portal-app.rail-collapsed .topbar .brand { justify-content: center; padding-left: 0; }
.portal-app.rail-collapsed .topbar .brand > span:last-child, .portal-app.rail-collapsed .rail-heading-copy, .portal-app.rail-collapsed .project-button-copy, .portal-app.rail-collapsed .rail-foot p { display: none; }
.portal-app.rail-collapsed .project-rail { padding-inline: 10px; }
.portal-app.rail-collapsed .rail-heading { min-height: 14px; justify-content: center; padding: 0; }
.portal-app.rail-collapsed .rail-toggle { position: absolute; z-index: 2; top: 13px; right: -10px; width: 20px; height: 30px; border-radius: 0 4px 4px 0; background: var(--surface); transform: rotate(180deg); }
.portal-app.rail-collapsed .project-button { grid-template-columns: 1fr; justify-items: center; padding: 8px; }
.portal-app.rail-collapsed .project-scenario-icon { width: 38px; height: 38px; }
.portal-app.rail-collapsed .rail-foot { justify-content: center; padding-inline: 0; }

.content { min-width: 0; padding: clamp(28px, 4vw, 54px); overflow: hidden; }
.app-view { max-width: 1440px; margin: 0 auto; animation: view-in .28s ease both; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.page-heading h1 { margin-top: 7px; font-size: clamp(30px, 3vw, 43px); letter-spacing: -.05em; }
.page-heading p { max-width: 680px; margin-top: 10px; color: var(--ink-soft); line-height: 1.7; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.metric-strip article { min-height: 128px; display: grid; align-content: center; gap: 4px; padding: 20px 25px; border-right: 1px solid var(--line); }
.metric-strip article:last-child { border-right: 0; }
.metric-strip span { color: var(--ink-soft); font-size: 11px; font-weight: 700; }.metric-strip strong { font: 600 clamp(30px, 4vw, 48px) var(--mono); letter-spacing: -.05em; }.metric-strip small { color: #919a95; font-size: 10px; }
.progress-section, .recent-section, .results-section, .publish-section { margin-top: 48px; }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }.section-title.compact { align-items: center; margin-bottom: 14px; }.section-title h2 { margin-top: 5px; font-size: 21px; letter-spacing: -.03em; }.section-title > small { color: var(--ink-soft); }
.big-percent { font: 600 31px var(--mono); }
.progress-line { height: 7px; overflow: hidden; background: #dde0d9; }.progress-line span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .6s cubic-bezier(.22,.8,.3,1); }
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 22px 0 0; list-style: none; }
.workflow-steps li { display: flex; align-items: center; gap: 13px; opacity: .72; }
.workflow-steps li.is-complete, .workflow-steps li.has-progress { opacity: 1; }
.workflow-steps b { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font: 600 10px var(--mono); }
.workflow-steps .is-complete b { border-color: var(--green); background: var(--green); color: white; }
.workflow-steps .has-progress b { border-color: var(--accent); background: var(--accent-pale); color: var(--accent-strong); }
.workflow-steps span { display: grid; gap: 3px; }.workflow-steps strong { font-size: 12px; }.workflow-steps em { color: var(--accent-strong); font: 600 11px var(--mono); font-style: normal; }.workflow-steps small { color: var(--ink-soft); font-size: 9px; }
.task-table { border-top: 1px solid var(--line-strong); }
.task-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) 1fr 110px 110px 36px; align-items: center; gap: 15px; min-height: 68px; border-bottom: 1px solid var(--line); transition: background .15s ease; }.task-row:hover { background: rgba(255,255,255,.55); }.task-row > * { padding: 14px 0; }
.task-name { display: grid; gap: 4px; min-width: 0; }.task-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.task-name small, .task-meta { color: var(--ink-soft); font-size: 10px; }
.source-chip { display: inline-flex; min-height: 20px; align-items: center; padding: 0 6px; border-radius: 3px; background: var(--green-pale); color: var(--green); font-size: 9px; }.source-chip.reference_mobile { background: var(--blue-pale); color: var(--blue); }
.status-chip, .review-state { width: fit-content; display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 3px; background: var(--surface-muted); color: #59635e; font-size: 10px; font-weight: 700; }
.status-chip.submitted, .status-chip.annotation_submitted { background: var(--accent-pale); color: #865a00; }.status-chip.approved, .status-chip.training_ready { background: var(--green-pale); color: var(--green); }.status-chip.rejected, .status-chip.revision_required { background: var(--red-pale); color: var(--red); }
.row-action { border: 0; background: transparent; color: var(--accent-strong); font-size: 18px; }
.empty-state { min-height: 140px; display: grid; place-items: center; color: var(--ink-soft); text-align: center; }.empty-state.compact { min-height: 90px; }

.workspace-layout { min-height: calc(100vh - 180px); display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 34px; }
.video-library { min-width: 0; padding-right: 24px; border-right: 1px solid var(--line); }
.video-library .icon-button { font-size: 20px; }
.search-box { position: relative; margin-bottom: 18px; }.search-box svg { position: absolute; left: 10px; top: 10px; width: 17px; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; }.search-box input { padding-left: 34px; background: transparent; }
.source-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: -8px 0 16px; }.source-filter button { min-height: 34px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink-soft); font-size: 9px; font-weight: 700; }.source-filter button:last-child { grid-column: 1 / -1; min-height: 28px; }.source-filter button.is-active { border-color: var(--ink); background: var(--ink); color: white; }.source-filter span { margin-left: 3px; font-family: var(--mono); }
.workspace-video-list { display: grid; gap: 5px; max-height: calc(100vh - 260px); overflow: auto; }
.workspace-video { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; border: 1px solid transparent; padding: 10px 8px; background: transparent; text-align: left; }.workspace-video:hover { background: rgba(255,255,255,.55); }.workspace-video.is-active { border-color: var(--line); background: white; }
.video-index { width: 30px; height: 30px; display: grid; place-items: center; background: #dfe2dc; color: #66716b; font: 600 9px var(--mono); }.workspace-video.is-active .video-index { background: var(--accent); color: var(--ink); }
.workspace-video span:last-child { min-width: 0; display: grid; gap: 3px; }.workspace-video strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.workspace-video small { color: var(--ink-soft); font-size: 9px; }
.annotation-workspace { min-width: 0; container-type: inline-size; }
.workspace-empty { min-height: 540px; display: grid; place-content: center; justify-items: center; text-align: center; }.empty-play { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-strong); }.workspace-empty h2 { font-size: 24px; }.workspace-empty p { max-width: 500px; margin-top: 10px; color: var(--ink-soft); line-height: 1.7; }
.video-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }.video-heading h1 { margin-top: 7px; font-size: 25px; letter-spacing: -.04em; }.video-heading p { margin-top: 5px; color: var(--ink-soft); font-size: 11px; }.review-state { background: var(--blue-pale); color: var(--blue); }
.reference-only { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 14px; padding: 13px 15px; border-left: 3px solid var(--blue); background: var(--blue-pale); color: #284d5b; }.reference-only strong { white-space: nowrap; font-size: 12px; }.reference-only p { color: #4f6d77; font-size: 10px; line-height: 1.6; }
.video-submission-bar { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 13px; margin-bottom: 15px; padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: rgba(255,255,255,.68); }.submission-glyph { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-pale); color: var(--accent-strong); }.submission-glyph svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }.submission-copy { min-width: 0; display: grid; gap: 3px; }.submission-copy strong { font-size: 12px; }.submission-copy small { color: var(--ink-soft); font-size: 9px; line-height: 1.45; }.submission-copy em { margin-top: 3px; color: var(--red); font-size: 9px; font-style: normal; font-weight: 700; }.submission-action { display: grid; justify-items: end; gap: 6px; }.submission-action small { color: var(--ink-soft); font: 500 8px var(--mono); }.video-submission-bar.is-submitted { border-left-color: var(--accent); background: var(--accent-pale); }.video-submission-bar.is-approved { border-left-color: var(--green); background: var(--green-pale); }.video-submission-bar.is-rejected { border-left-color: var(--red); background: var(--red-pale); }
.video-annotation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 370px); gap: 24px; align-items: start; }.video-stage { min-width: 0; }
.video-shell { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #121816; box-shadow: var(--shadow); }
.video-shell video { width: 100%; height: 100%; display: block; object-fit: contain; }
#roiOverlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#roiOverlay.is-drawing, #roiOverlay.is-editing, #roiOverlay.is-drawing-helmet { pointer-events: auto; cursor: crosshair; touch-action: none; }
#roiOverlay polygon { fill: rgba(228,165,26,.15); stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
#roiOverlay polygon.approved { fill: rgba(47,119,84,.15); stroke: #59b27f; }
#roiOverlay polygon.is-selected { fill: rgba(228,165,26,.28); stroke-width: 5; }
#roiDraftLine { fill: rgba(228,165,26,.11); stroke: #ffd05f; stroke-width: 3; vector-effect: non-scaling-stroke; }
#roiDraftPoints circle { fill: #ffd05f; stroke: #242d29; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: grab; }
#roiDraftPoints circle:active { cursor: grabbing; }
.helmet-event-box rect, .helmet-box-draft { fill: rgba(231,71,60,.12); stroke: #e7473c; stroke-width: 4; vector-effect: non-scaling-stroke; }
.helmet-event-box.is-selected rect, .helmet-box-draft { fill: rgba(231,71,60,.2); stroke-width: 5; }
.helmet-event-box text, .helmet-box-draft-label { paint-order: stroke; fill: #fff; stroke: #9f2922; stroke-width: 7; stroke-linejoin: round; font: 700 25px var(--sans); letter-spacing: .02em; pointer-events: none; }
.draw-hint { position: absolute; z-index: 7; top: 12px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 8px; padding: 8px 13px; border-radius: 5px; background: rgba(18,24,22,.86); color: white; backdrop-filter: blur(8px); }.draw-hint > span { grid-row: 1 / 3; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }.draw-hint strong { font-size: 10px; }.draw-hint small { color: #c9d1cd; font-size: 8px; }
.roi-context-menu { position: absolute; z-index: 12; width: 195px; overflow: hidden; padding: 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(34,42,39,.96); box-shadow: 0 18px 50px rgba(0,0,0,.34); backdrop-filter: blur(18px); }.roi-context-menu button { width: 100%; min-height: 34px; border: 0; border-radius: 4px; padding: 0 10px; background: transparent; color: white; text-align: left; font-size: 10px; }.roi-context-menu button:hover:not(:disabled) { background: rgba(255,255,255,.11); }.roi-context-menu button:disabled { opacity: .34; }.roi-context-menu i { display: block; height: 1px; margin: 5px; background: rgba(255,255,255,.13); }
.video-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 66px; border-bottom: 1px solid var(--line); }.tool-group, .playback-tools { display: flex; align-items: center; gap: 7px; }.playback-tools button, .playback-tools select { min-height: 34px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }.icon-control { width: 38px; font-size: 13px; }.text-control { padding: 0 10px; font: 600 9px var(--mono); }.playback-tools label { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 9px; }.playback-tools select { width: 67px; padding: 0 8px; }.time-readout { color: var(--ink-soft); font: 500 10px var(--mono); white-space: nowrap; }.time-readout b { color: var(--ink); }

.evidence-timeline { margin-top: 23px; padding: 17px 18px 15px; border: 1px solid var(--line); background: rgba(255,255,255,.52); }.timeline-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.timeline-heading > span { display: grid; gap: 3px; }.timeline-heading b { font-size: 13px; }.timeline-heading small { color: var(--ink-soft); font-size: 9px; }.timeline-heading > div { display: flex; gap: 6px; flex-wrap: wrap; }.timeline-heading .button { min-height: 31px; padding-inline: 10px; font-size: 9px; }
.event-timeline { position: relative; min-height: 91px; margin-top: 16px; padding: 32px 12px 15px 66px; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(38,49,44,.035) 1px, transparent 1px); background-size: calc((100% - 78px) / 6) 100%; touch-action: none; user-select: none; }.timeline-ticks { position: absolute; top: 7px; left: 66px; right: 12px; height: 16px; }.timeline-ticks span { position: absolute; transform: translateX(-50%); color: #8b948f; font: 500 8px var(--mono); }.timeline-ticks span:first-child { transform: none; }.timeline-ticks span:last-child { transform: translateX(-100%); }.timeline-lane-label { position: absolute; left: 13px; top: 43px; color: var(--ink-soft); font-size: 9px; font-weight: 700; }.event-lane { position: relative; height: 31px; border-radius: 3px; background: #dfe3dc; }.event-block { position: absolute; z-index: 4; top: 5px; min-width: 3px; height: 21px; display: flex; align-items: center; overflow: hidden; border: 0; border-radius: 2px; padding: 0 7px; background: var(--accent); color: #292716; box-shadow: inset 0 0 0 1px rgba(112,73,0,.2); font: 700 8px var(--mono); text-align: left; white-space: nowrap; }.event-block.normal { background: var(--green); }.event-block.uncertain { background: var(--blue); }.event-block.excluded { background: #939c97; }.event-block:hover, .event-block.is-selected { filter: brightness(.92); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--ink); }.timeline-selection { position: absolute; z-index: 2; top: 30px; height: 35px; border: 1px solid rgba(228,165,26,.95); background: rgba(228,165,26,.18); pointer-events: none; }.timeline-playhead { position: absolute; z-index: 5; top: 23px; bottom: 8px; width: 1px; background: #ec5e4b; pointer-events: none; }.timeline-playhead i { position: absolute; top: -2px; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: #ec5e4b; }.timeline-footer { display: grid; grid-template-columns: minmax(160px,1fr) auto; align-items: center; gap: 15px; margin-top: 12px; }.timeline-footer input { width: 100%; accent-color: var(--accent); }.timeline-footer span { color: var(--ink-soft); font: 500 9px var(--mono); }

.event-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.annotation-panel { min-width: 0; border-top: 2px solid var(--ink); padding-top: 13px; }
.event-editor-stack { position: sticky; top: 88px; display: grid; gap: 10px; max-height: calc(100vh - 104px); overflow: auto; padding: 0 3px 18px 0; scrollbar-width: thin; scrollbar-color: #c6cbc5 transparent; }
.event-accordion { border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 12px 13px 13px; background: rgba(242,244,239,.92); box-shadow: 0 8px 22px rgba(24,34,29,.05); backdrop-filter: blur(10px); }.event-accordion-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.event-accordion-heading > span:first-child { display: grid; gap: 2px; }.event-accordion-heading b { font-size: 12px; }.event-accordion-heading small, .event-accordion-heading > span:last-child { color: var(--ink-soft); font-size: 8px; }.event-accordion-heading > span:last-child { padding-top: 2px; font-family: var(--mono); white-space: nowrap; }
.event-accordion-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }.event-accordion-index { position: relative; min-width: 38px; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 3px; padding: 0 10px; background: rgba(255,255,255,.72); color: #68726d; font: 600 10px var(--mono); transition: border-color .16s ease, background .16s ease, color .16s ease; }.event-accordion-index:hover { border-color: var(--ink); color: var(--ink); }.event-accordion-index.is-active { border-color: var(--ink); background: var(--ink); color: white; box-shadow: inset 0 -2px 0 var(--accent); }.event-accordion-index i { position: absolute; right: 4px; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: #a8b0ac; }.event-accordion-index i.submitted { background: var(--accent); }.event-accordion-index i.approved { background: #54aa78; }.event-accordion-index i.rejected { background: #d3685a; }.event-accordion-index.is-new { min-width: 88px; justify-content: flex-start; }.event-accordion-index.is-new small { font: 700 8px var(--sans); letter-spacing: .04em; }.event-accordion-index.is-new.is-active { background: var(--accent); color: var(--ink); box-shadow: none; }
.event-accordion-index:disabled { cursor: not-allowed; opacity: .45; }.event-accordion-index:disabled:hover { border-color: var(--line); color: #68726d; }
.event-editor-panel { padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--ink); background: rgba(255,255,255,.82); box-shadow: 0 12px 36px rgba(24,34,29,.07); backdrop-filter: blur(10px); }.event-editor-panel .panel-title { margin-bottom: 20px; }.event-editor-panel .event-form { gap: 15px; }.event-editor-panel textarea { min-height: 96px; }.event-editor-panel input:disabled, .event-editor-panel select:disabled, .event-editor-panel textarea:disabled, .event-editor-panel button:disabled { cursor: not-allowed; opacity: .64; }
.roi-record-panel { padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.66); }.roi-record-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }.roi-record-heading b { font-size: 10px; }.roi-record-heading span { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-muted); color: var(--ink-soft); font: 600 8px var(--mono); }.roi-record-panel .annotation-list { max-height: 170px; }.roi-record-item { padding: 9px; }
.panel-title { display: flex; justify-content: space-between; margin-bottom: 17px; }.panel-title > span:first-child { display: grid; gap: 3px; }.panel-title b { font-size: 15px; }.panel-title small { color: var(--ink-soft); font-size: 9px; }.step-index { color: #a5aca7; font: 500 12px var(--mono); }
.event-form { display: grid; gap: 13px; }.form-grid, .time-capture { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.time-capture label > div { display: grid; grid-template-columns: 1fr auto; }.time-capture input { border-radius: 5px 0 0 5px; }.time-capture button { border: 1px solid var(--line); border-left: 0; border-radius: 0 5px 5px 0; background: var(--surface-muted); color: var(--accent-strong); font-size: 10px; font-weight: 700; }
.helmet-box-controls { display: grid; gap: 10px; border: 1px solid rgba(231,71,60,.24); border-left: 3px solid var(--red); padding: 11px 12px; background: var(--red-pale); }.helmet-box-controls > span { display: grid; gap: 3px; }.helmet-box-controls b { font-size: 10px; }.helmet-box-controls small { color: #8a4b45; font-size: 8px; line-height: 1.45; }.helmet-box-controls > div { display: flex; gap: 7px; }.helmet-box-controls .button { min-height: 32px; padding-inline: 10px; font-size: 9px; }
.annotation-list { display: grid; gap: 8px; max-height: 430px; overflow: auto; }
.annotation-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.6); }.annotation-icon { width: 28px; height: 28px; display: grid; place-items: center; background: #e3e6df; font: 600 9px var(--mono); }.annotation-copy { min-width: 0; display: grid; gap: 4px; }.annotation-copy strong { font-size: 11px; }.annotation-copy small { color: var(--ink-soft); font-size: 9px; line-height: 1.5; }.annotation-actions { display: grid; justify-items: end; gap: 7px; }.annotation-actions button { border: 0; padding: 0; background: transparent; color: var(--accent-strong); font-size: 10px; font-weight: 700; }
.publish-section { padding-top: 28px; border-top: 1px solid var(--line); }
.publish-section { background: #eaede7; margin-inline: -20px; padding: 28px 20px 20px; }.publish-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.span-all { grid-column: 1 / -1; }

.feedback-heading { align-items: flex-start; }
.feedback-metrics { grid-template-columns: repeat(3, 1fr); }
.feedback-results-section { margin-top: 48px; }
.feedback-evidence-controls { position: sticky; z-index: 18; top: 70px; display: grid; grid-template-columns: minmax(220px,1.35fr) minmax(180px,.72fr) minmax(175px,.8fr) minmax(280px,1.45fr); gap: 16px; align-items: end; padding: 15px 17px; border-block: 2px solid var(--ink); background: rgba(244,245,241,.96); box-shadow: 0 10px 28px rgba(23,32,29,.08); backdrop-filter: blur(14px); }
.feedback-evidence-controls label, .feedback-evidence-controls legend { color: var(--ink-soft); font-size: 9px; font-weight: 700; letter-spacing: .03em; }
.feedback-evidence-controls select { min-height: 38px; padding-block: 7px; background: var(--surface); }
.feedback-evidence-controls fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.feedback-evidence-controls legend { margin-bottom: 8px; padding: 0; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; }
.segmented-control button { min-height: 38px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.segmented-control button + button { border-left: 0; }
.segmented-control button.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.lane-selector > div { display: flex; min-height: 38px; align-items: stretch; gap: 5px; }
.lane-selector label { min-width: 0; flex: 1; cursor: pointer; }
.lane-selector input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lane-selector span { height: 100%; min-height: 38px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); padding: 5px 8px; background: var(--surface); color: var(--ink-soft); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.lane-selector input:checked + span { border-color: var(--accent-strong); background: var(--accent-pale); color: #765000; box-shadow: inset 0 -3px 0 var(--accent); }
.lane-selector input:focus-visible + span { outline: 3px solid rgba(228,165,26,.36); outline-offset: 2px; }
.feedback-evidence-status { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 2px 14px; border-bottom: 1px solid var(--line-strong); }
.feedback-evidence-status > span { min-width: 0; display: grid; gap: 5px; }
.feedback-evidence-status strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.feedback-evidence-status small { color: var(--ink-soft); font-size: 10px; }
.feedback-evidence-status b { flex: 0 0 auto; color: var(--accent-strong); font: 600 10px var(--mono); }
.feedback-evidence-workbench { display: grid; gap: 25px; }
.evidence-case { min-width: 0; border-top: 3px solid var(--ink); padding-top: 13px; animation: evidence-in .25s ease both; }
.evidence-case > header { display: flex; align-items: center; gap: 12px; min-height: 38px; margin-bottom: 12px; }
.evidence-case > header > span:first-child { display: grid; gap: 1px; margin-right: 2px; }
.evidence-case > header > span:first-child small { color: var(--accent-strong); font: 600 8px var(--mono); letter-spacing: .11em; }
.evidence-case > header > span:first-child strong { font: 650 12px var(--mono); }
.evidence-case > header .result-time { margin-right: auto; }
.evidence-case > header .text-button { flex: 0 0 auto; }
.case-flag { min-height: 22px; display: inline-flex; align-items: center; border-radius: 3px; padding: 0 7px; background: var(--surface-muted); color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.case-flag.disagreement { background: var(--red-pale); color: var(--red); }
.case-flag.human { background: var(--green-pale); color: var(--green); }
.evidence-lane-grid { display: grid; gap: 12px; }
.evidence-case.is-compare .evidence-lane-grid.lanes-1 { grid-template-columns: minmax(0,1fr); }
.evidence-case.is-compare .evidence-lane-grid.lanes-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.evidence-case.is-compare .evidence-lane-grid.lanes-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.evidence-lane { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--accent); background: rgba(255,255,255,.76); box-shadow: 0 9px 24px rgba(23,32,29,.055); transition: border-color .16s ease, transform .16s ease; }
.evidence-lane:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.evidence-lane.human-lane { border-top-color: var(--green); }
.evidence-lane.is-empty { border-top-color: var(--line-strong); }
.evidence-lane-heading { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f8f9f6; }
.evidence-lane-heading > span:first-child { min-width: 0; display: grid; gap: 3px; }
.evidence-lane-heading small { color: var(--ink-soft); font: 600 8px var(--mono); letter-spacing: .08em; }
.evidence-lane-heading strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.item-feedback-state { flex: 0 0 auto; min-height: 22px; display: inline-flex; align-items: center; border-radius: 11px; padding: 0 8px; background: var(--surface-muted); color: var(--ink-soft); font-size: 8px; font-weight: 700; }
.item-feedback-state.correct { background: var(--green-pale); color: var(--green); }
.item-feedback-state.false_alarm { background: var(--red-pale); color: var(--red); }
.item-feedback-state.needs_discussion { background: var(--accent-pale); color: #845900; }
.evidence-image { width: 100%; display: block; aspect-ratio: 2.13 / 1; object-fit: contain; background: #17201d; }
.evidence-judgement { display: grid; gap: 10px; min-height: 180px; align-content: start; padding: 13px; }
.evidence-verdict-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.evidence-verdict-line > span:last-child { color: var(--ink-soft); font: 600 9px var(--mono); }
.evidence-status { min-height: 23px; display: inline-flex; align-items: center; border-radius: 3px; padding: 0 8px; background: var(--surface-muted); color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.evidence-status.no_helmet { background: var(--red-pale); color: var(--red); }
.evidence-status.helmet_worn { background: var(--green-pale); color: var(--green); }
.evidence-status.uncertain { background: var(--accent-pale); color: #7c5500; }
.evidence-status.not_a_head { background: var(--blue-pale); color: var(--blue); }
.evidence-judgement > p { color: #39443f; font-size: 11px; line-height: 1.68; }
.evidence-judgement ul { display: grid; gap: 4px; margin: 0; padding-left: 16px; color: var(--ink-soft); font-size: 9px; line-height: 1.5; }
.evidence-judgement > small { color: #89928d; font-size: 8px; }
.item-feedback-editor { display: grid; gap: 9px; padding: 12px 13px 13px; border-top: 1px solid var(--line); background: #f7f8f5; }
.item-feedback-editor textarea { min-height: 58px; padding: 9px 10px; font-size: 10px; line-height: 1.5; }
.item-feedback-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.item-feedback-actions button { min-height: 32px; border: 1px solid var(--line-strong); border-radius: 3px; padding: 3px 5px; background: var(--surface); color: var(--ink-soft); font-size: 8px; font-weight: 700; }
.item-feedback-actions button:hover { border-color: var(--ink); color: var(--ink); }
.item-feedback-actions button.is-active { border-color: var(--green); background: var(--green-pale); color: var(--green); }
.item-feedback-actions button[data-item-feedback="false_alarm"].is-active { border-color: var(--red); background: var(--red-pale); color: var(--red); }
.item-feedback-actions button[data-item-feedback="needs_discussion"].is-active { border-color: var(--accent-strong); background: var(--accent-pale); color: #7b5400; }
.human-event-list { min-height: 180px; display: grid; align-content: start; gap: 8px; padding: 13px; }
.human-event-list article { display: grid; gap: 7px; border-left: 2px solid var(--green); padding: 9px 10px; background: var(--green-pale); }
.human-event-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.human-event-list article > div > span:last-child { color: var(--ink-soft); font: 600 8px var(--mono); }
.human-event-list strong { font-size: 10px; line-height: 1.5; }
.human-event-list small { color: var(--ink-soft); font-size: 8px; }
.human-match-note { margin: 0 13px 13px; border-top: 1px solid var(--line); padding-top: 10px; color: #7d8782; font-size: 8px; line-height: 1.55; }
.evidence-case.is-list .evidence-lane-grid { grid-template-columns: 1fr; }
.evidence-case.is-list .evidence-lane { display: grid; grid-template-columns: minmax(270px,.62fr) minmax(300px,1fr); grid-template-rows: auto 1fr auto; }
.evidence-case.is-list .evidence-lane-heading { grid-column: 1 / -1; }
.evidence-case.is-list .evidence-image { grid-column: 1; grid-row: 2 / 4; height: 100%; min-height: 270px; aspect-ratio: auto; }
.evidence-case.is-list .evidence-judgement, .evidence-case.is-list .human-event-list { grid-column: 2; grid-row: 2; min-height: 170px; }
.evidence-case.is-list .item-feedback-editor, .evidence-case.is-list .human-match-note { grid-column: 2; grid-row: 3; }
.frame-review-shell { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 16px; align-items: start; }
.feedback-frame-rail { position: sticky; top: 164px; max-height: calc(100vh - 190px); display: grid; gap: 7px; overflow: auto; padding-right: 5px; scrollbar-width: thin; }
.feedback-frame-rail button { min-width: 0; display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 9px; align-items: center; border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 3px; padding: 7px; background: rgba(255,255,255,.46); text-align: left; }
.feedback-frame-rail button:hover { border-color: var(--line-strong); }
.feedback-frame-rail button.is-active { border-color: var(--accent); border-left-color: var(--accent-strong); background: var(--surface); box-shadow: 0 7px 18px rgba(23,32,29,.08); }
.feedback-frame-rail img { width: 66px; aspect-ratio: 16 / 9; object-fit: cover; background: #17201d; }
.feedback-frame-rail span { min-width: 0; display: grid; gap: 4px; }
.feedback-frame-rail strong { font: 650 9px var(--mono); }
.feedback-frame-rail small { overflow: hidden; color: var(--ink-soft); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.frame-review-stage { min-width: 0; }
.frame-canvas { position: relative; width: 100%; aspect-ratio: 960 / 544; overflow: hidden; background: #17201d; }
.frame-canvas img, .frame-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.frame-canvas svg { pointer-events: none; }
.frame-canvas[data-frame-magnifier] { cursor: zoom-in; }
.frame-canvas[data-frame-magnifier].is-zoom-locked { cursor: zoom-out; }
.frame-magnifier { position: absolute; z-index: 5; width: 156px; height: 156px; border: 3px solid white; border-radius: 50%; background-color: #17201d; background-repeat: no-repeat; box-shadow: 0 12px 34px rgba(0,0,0,.38), 0 0 0 2px var(--accent); opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.94); transition: opacity .12s ease, transform .12s ease; }
.frame-canvas.is-zooming .frame-magnifier, .frame-canvas.is-zoom-locked .frame-magnifier { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.frame-zoom-hint { position: absolute; z-index: 4; right: 8px; bottom: 8px; min-height: 25px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; padding: 0 8px; background: rgba(18,24,22,.74); color: white; font-size: 8px; font-weight: 700; backdrop-filter: blur(7px); pointer-events: none; transition: opacity .12s ease; }
.frame-canvas.is-zooming .frame-zoom-hint, .frame-canvas.is-zoom-locked .frame-zoom-hint { opacity: 0; }
.frame-track-list { max-height: 390px; display: grid; gap: 0; overflow: auto; }
.frame-track-result { display: grid; gap: 7px; border-top: 1px solid var(--line); padding: 11px 12px; background: rgba(255,255,255,.72); }
.frame-track-result > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.frame-track-result > header > span { display: flex; align-items: center; gap: 7px; }
.frame-track-result b { font: 650 9px var(--mono); }
.frame-track-result p { color: #39443f; font-size: 9px; line-height: 1.55; }
.frame-track-result > small { color: var(--ink-soft); font: 600 8px var(--mono); }
.frame-track-result .item-feedback-editor { margin: 2px -12px -11px; }
.evidence-case.is-list .evidence-lane { display: block; }
.evidence-case.is-list .frame-canvas { min-height: 0; }
.evidence-case.is-list .frame-track-list, .evidence-case.is-list .human-event-list { max-height: none; min-height: 0; }
.feedback-pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.feedback-pagination button { min-height: 34px; border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 13px; background: var(--surface); font-size: 9px; font-weight: 700; }
.feedback-pagination button:disabled { cursor: default; opacity: .38; }
.feedback-pagination span { color: var(--ink-soft); font: 600 9px var(--mono); }
.feedback-summary-details { margin-top: 38px; border-top: 1px solid var(--line-strong); }
.feedback-summary-details summary { width: fit-content; cursor: pointer; padding: 17px 0; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.feedback-summary-details[open] summary { color: var(--ink); }
.feedback-result-list { border-top: 1px solid var(--line-strong); }
.feedback-result-item { display: grid; grid-template-columns: minmax(210px,.72fr) minmax(280px,1fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feedback-result-context, .result-copy { min-width: 0; display: grid; align-content: start; gap: 7px; }
.feedback-result-context h3 { overflow: hidden; text-overflow: ellipsis; font-size: 14px; line-height: 1.45; }
.feedback-result-context p { color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.feedback-result-context .text-button { width: fit-content; margin-top: 6px; }
.result-time { color: var(--ink-soft); font: 600 11px var(--mono); }
.result-copy strong { font-size: 16px; }
.result-copy p { color: var(--ink-soft); line-height: 1.7; }
.result-copy small { color: #8a938e; }
.feedback-form { display: grid; grid-template-columns: 100px 1fr; gap: 9px; }
.feedback-form label:last-of-type { grid-column: 1 / -1; }
.feedback-form button { grid-column: 2; justify-self: end; }
.feedback-received { align-content: center; min-height: 90px; padding-left: 18px; border-left: 2px solid var(--green); }

.review-queue { display: grid; gap: 16px; }.review-card { display: grid; grid-template-columns: 190px minmax(0,1fr) minmax(290px,.72fr); gap: 26px; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: rgba(255,255,255,.58); }.review-context { display: grid; align-content: start; gap: 6px; }.review-context strong { margin-top: 2px; font-size: 13px; }.review-context small { color: var(--ink-soft); line-height: 1.45; }.review-context .text-button { width: fit-content; margin-top: 8px; }.review-detail { min-width: 0; display: grid; align-content: start; gap: 10px; }.review-detail h3 { overflow: hidden; text-overflow: ellipsis; font-size: 16px; white-space: nowrap; }.review-detail > p { color: var(--ink-soft); line-height: 1.7; }.review-annotation-summary { display: grid; gap: 6px; padding-top: 9px; border-top: 1px solid var(--line); }.review-annotation-summary li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 8px; align-items: baseline; list-style: none; }.review-annotation-summary b { color: var(--accent-strong); font: 600 8px var(--mono); }.review-annotation-summary span { color: var(--ink-soft); font-size: 9px; line-height: 1.5; }.review-actions { display: grid; align-content: start; gap: 9px; }.review-actions > small { color: var(--ink-soft); font-size: 9px; line-height: 1.5; }.review-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.review-action-row .approve { background: var(--green); color: white; }.review-action-row .reject { border-color: #d6a097; color: var(--red); background: var(--red-pale); }

.bug-report-fab { position: fixed; z-index: 88; right: 24px; bottom: 24px; min-height: 46px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid #c78a0b; border-radius: 24px; padding: 0 17px 0 14px; background: var(--accent); color: var(--ink); box-shadow: 0 12px 34px rgba(67,46,3,.24); font-size: 11px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }.bug-report-fab:hover { transform: translateY(-3px); box-shadow: 0 17px 42px rgba(67,46,3,.28); }.bug-report-fab svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bug-report-dialog { width: min(680px, calc(100% - 28px)); border: 0; border-radius: var(--radius); padding: 0; background: var(--surface); box-shadow: 0 30px 100px rgba(14,20,18,.3); }.bug-report-dialog::backdrop { background: rgba(22,30,27,.6); backdrop-filter: blur(3px); }.bug-report-dialog form { display: grid; gap: 17px; padding: 27px; }.bug-report-context { width: fit-content; max-width: 100%; overflow: hidden; border-left: 3px solid var(--accent); padding: 8px 11px; background: var(--surface-muted); color: var(--ink-soft); font: 600 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }.bug-screenshot-drop { min-height: 132px; display: grid; place-content: center; justify-items: center; gap: 5px; border: 1px dashed var(--line-strong); border-radius: 4px; background: #f3f4f0; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease; }.bug-screenshot-drop:hover, .bug-screenshot-drop.is-dragging { border-color: var(--accent-strong); background: var(--accent-pale); }.bug-screenshot-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }.bug-screenshot-icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 50%; background: white; color: var(--accent-strong); box-shadow: 0 4px 13px rgba(29,38,34,.08); }.bug-screenshot-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }.bug-screenshot-drop strong { font-size: 12px; }.bug-screenshot-drop small { color: var(--ink-soft); font-size: 9px; }.bug-screenshot-preview { position: relative; max-height: 260px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #1f2623; }.bug-screenshot-preview img { width: 100%; max-height: 260px; display: block; object-fit: contain; }.bug-screenshot-preview button { position: absolute; top: 9px; right: 9px; min-height: 29px; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; padding: 0 9px; background: rgba(20,27,24,.8); color: white; font-size: 9px; font-weight: 700; backdrop-filter: blur(6px); }.bug-description-label { position: relative; }.bug-description-label textarea { min-height: 118px; resize: vertical; }.bug-description-label > small { position: absolute; right: 10px; bottom: 8px; color: #909995; font: 500 8px var(--mono); }
.bug-toolbar { display: flex; gap: 5px; margin: 28px 0 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }.bug-toolbar button { min-height: 32px; border: 1px solid transparent; border-radius: 3px; padding: 0 11px; background: transparent; color: var(--ink-soft); font-size: 9px; font-weight: 700; }.bug-toolbar button:hover { border-color: var(--line-strong); color: var(--ink); }.bug-toolbar button.is-active { border-color: var(--ink); background: var(--ink); color: white; }.bug-report-list { display: grid; gap: 12px; }.bug-card { display: grid; grid-template-columns: 185px minmax(0,1fr) 260px; gap: 20px; align-items: start; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: rgba(255,255,255,.68); }.bug-card.is-resolved { border-left-color: var(--green); opacity: .82; }.bug-evidence { min-width: 0; }.bug-evidence a { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-muted); }.bug-evidence img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .18s ease; }.bug-evidence a:hover img { transform: scale(1.035); }.bug-no-image { aspect-ratio: 16 / 10; display: grid; place-items: center; border: 1px dashed var(--line-strong); color: var(--ink-soft); font-size: 9px; }.bug-copy { min-width: 0; display: grid; gap: 9px; }.bug-copy header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }.bug-index { color: var(--accent-strong); font: 700 9px var(--mono); }.bug-status { width: fit-content; min-height: 23px; display: inline-flex; align-items: center; border-radius: 3px; padding: 0 8px; background: var(--red-pale); color: var(--red); font-size: 9px; font-weight: 700; }.bug-status.in_progress { background: var(--accent-pale); color: #825900; }.bug-status.resolved { background: var(--green-pale); color: var(--green); }.bug-copy p { color: var(--ink); font-size: 12px; line-height: 1.75; white-space: pre-wrap; }.bug-meta { display: grid; gap: 4px; color: var(--ink-soft); font-size: 9px; }.bug-meta code { overflow-wrap: anywhere; font: 500 8px var(--mono); }.bug-admin-form { display: grid; gap: 8px; }.bug-admin-form select, .bug-admin-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 3px; background: white; }.bug-admin-form select { min-height: 35px; padding: 0 9px; }.bug-admin-form textarea { min-height: 72px; padding: 9px; resize: vertical; }.bug-admin-form .button { justify-self: end; min-height: 34px; padding-inline: 12px; }.bug-metrics { grid-template-columns: repeat(3,1fr); }

.upload-dialog { width: min(620px, calc(100% - 30px)); border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 30px 100px rgba(14,20,18,.27); }.upload-dialog::backdrop { background: rgba(22,30,27,.55); backdrop-filter: blur(3px); }.upload-dialog form { padding: 28px; }.dialog-heading { display: flex; justify-content: space-between; gap: 20px; }.dialog-heading h2 { margin-top: 7px; font-size: 25px; }.dialog-heading p { margin-top: 7px; color: var(--ink-soft); }.file-drop { min-height: 190px; display: grid; place-content: center; justify-items: center; margin: 25px 0 18px; border: 1px dashed var(--line-strong); background: #f3f4f0; text-align: center; cursor: pointer; }.file-drop:hover { border-color: var(--accent-strong); background: var(--accent-pale); }.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }.upload-glyph { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-strong); font-size: 21px; }.file-drop strong { font-size: 14px; }.file-drop small { max-width: 390px; margin-top: 6px; color: var(--ink-soft); font-weight: 400; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }.upload-progress { display: grid; gap: 7px; margin-top: 18px; }.upload-progress > div { display: flex; justify-content: space-between; font-size: 10px; }.upload-progress b { font-family: var(--mono); }.upload-progress i { height: 6px; overflow: hidden; background: var(--surface-muted); }.upload-progress span span, #uploadProgressBar { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s ease; }

.toast-stack { position: fixed; z-index: 100; right: 22px; bottom: 82px; display: grid; gap: 8px; pointer-events: none; }.toast { min-width: 260px; max-width: 420px; padding: 13px 16px; border-left: 3px solid var(--accent); background: #1f2a26; color: white; box-shadow: var(--shadow); animation: toast-in .24s ease both; }.toast.error { border-color: #de6e5e; }.toast.success { border-color: #61bd88; }
.page-watermark { position: fixed; z-index: 80; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); grid-auto-rows: minmax(130px, 1fr); gap: 25px 35px; overflow: hidden; padding: 20px; pointer-events: none; user-select: none; }.page-watermark span { display: grid; place-items: center; color: rgba(34,49,43,.062); font: 600 10px var(--mono); letter-spacing: .08em; white-space: nowrap; transform: rotate(-24deg); }

@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes evidence-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes pulse { 50% { transform: scale(1.4); box-shadow: 0 0 0 5px rgba(228,165,26,.13); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 1100px) {
  .login-screen { grid-template-columns: 1fr 440px; }.context-copy { padding-inline: 6vw; }.context-copy h1 { font-size: 53px; }
  .portal-app { grid-template-columns: 210px minmax(0, 1fr); }.topbar { grid-template-columns: 210px 1fr auto; }.topbar .brand { padding-left: 16px; }.content { padding-inline: 28px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }.metric-strip article:nth-child(2) { border-right: 0; }.metric-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workspace-layout { grid-template-columns: 190px minmax(0,1fr); gap: 22px; }.video-tools { flex-wrap: wrap; padding-block: 10px; }.time-readout { margin-left: auto; }.feedback-result-item, .review-card { grid-template-columns: 150px 1fr; }.feedback-form, .feedback-received, .review-actions { grid-column: 2; }.publish-form { grid-template-columns: 1fr 1fr; }.bug-card { grid-template-columns: 150px minmax(0,1fr); }.bug-admin-form { grid-column: 2; }
  .feedback-evidence-controls { grid-template-columns: 1fr 1fr; }.lane-selector { grid-column: 1 / -1; }.evidence-case.is-compare .evidence-lane-grid { overflow-x: auto; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(330px,1fr); padding-bottom: 5px; }.evidence-case.is-list .evidence-lane-grid { overflow: visible; }
}
@container (max-width: 900px) { .video-annotation-grid { grid-template-columns: 1fr; }.event-editor-stack { position: static; max-height: none; overflow: visible; padding-right: 0; }.event-editor-panel .time-capture, .event-editor-panel .form-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .login-screen { grid-template-columns: 1fr; }.login-context { display: none; }.login-form { min-height: 100vh; align-content: center; }
  .portal-app { display: block; padding-top: 64px; }.topbar, .portal-app.rail-collapsed .topbar { position: fixed; height: 64px; grid-template-columns: 1fr auto; }.topbar .brand { border-right: 0; }.topbar .brand small, .account-copy, .main-nav { display: none; }.account-menu { padding-right: 12px; }.project-rail, .portal-app.rail-collapsed .project-rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }.rail-heading, .rail-foot { display: none; }.project-list { display: flex; overflow-x: auto; }.project-button, .portal-app.rail-collapsed .project-button { min-width: 190px; grid-template-columns: 34px minmax(0,1fr); justify-items: stretch; padding: 10px; }.portal-app.rail-collapsed .project-button-copy { display: grid; }
  .content { padding: 25px 17px 80px; }.page-heading { align-items: flex-start; margin-bottom: 26px; }.page-heading h1 { font-size: 31px; }.metric-strip { grid-template-columns: 1fr 1fr; }.metric-strip article { min-height: 105px; padding: 15px; }.workflow-steps { grid-template-columns: 1fr 1fr; gap: 18px; }.task-row { grid-template-columns: 1fr 90px 30px; }.task-row .task-meta:nth-of-type(2) { display: none; }
  .workspace-layout { display: block; }.video-library { border-right: 0; padding-right: 0; margin-bottom: 22px; }.workspace-video-list { display: flex; max-height: none; overflow-x: auto; }.workspace-video { min-width: 190px; }.video-tools { align-items: flex-start; padding-block: 10px; }.tool-group, .playback-tools { flex-wrap: wrap; }.timeline-heading { align-items: flex-start; flex-direction: column; }.timeline-footer { grid-template-columns: 1fr; }.form-grid, .time-capture, .publish-form, .event-editor-panel .time-capture, .event-editor-panel .form-grid { grid-template-columns: 1fr; }.span-all { grid-column: auto; }.feedback-metrics { grid-template-columns: 1fr 1fr; }.feedback-metrics article:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }.feedback-result-item, .review-card { grid-template-columns: 1fr; }.feedback-form, .feedback-received, .review-actions { grid-column: auto; }.feedback-form { grid-template-columns: 1fr; }.feedback-form button { grid-column: auto; }.upload-dialog form { padding: 20px; }
  .notification-panel { position: fixed; top: 58px; left: 12px; right: 12px; width: auto; }.video-submission-bar { grid-template-columns: 34px 1fr; }.submission-action { grid-column: 1 / -1; width: 100%; grid-template-columns: 1fr auto; align-items: center; }.submission-action .button { width: auto; }
  .toast-stack { left: 12px; right: 12px; bottom: 72px; }.toast { min-width: 0; max-width: none; }
  .page-watermark { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 10px; }.page-watermark span { font-size: 7px; }
  .feedback-evidence-controls { position: static; grid-template-columns: 1fr; }.lane-selector { grid-column: auto; }.feedback-evidence-status { align-items: flex-start; flex-direction: column; }.frame-review-shell { grid-template-columns: 1fr; }.feedback-frame-rail { position: static; max-height: none; grid-auto-flow: column; grid-auto-columns: 160px; overflow-x: auto; }.evidence-case > header { align-items: flex-start; flex-wrap: wrap; }.evidence-case > header .result-time { width: 100%; order: 5; }.evidence-case > header .text-button { margin-left: auto; }.evidence-case.is-compare .evidence-lane-grid { grid-auto-columns: minmax(300px,85vw); }.evidence-case.is-list .evidence-lane { display: block; }.evidence-case.is-list .evidence-image { height: auto; min-height: 0; aspect-ratio: 2.13 / 1; }.evidence-case.is-list .evidence-judgement, .evidence-case.is-list .human-event-list { min-height: 0; }.item-feedback-actions { grid-template-columns: 1fr; }.feedback-result-item { grid-template-columns: 1fr; }.bug-card { grid-template-columns: 1fr; }.bug-admin-form { grid-column: auto; }.bug-metrics { grid-template-columns: 1fr 1fr; }.bug-metrics article:last-child { grid-column: 1 / -1; }.bug-report-fab { right: 14px; bottom: 14px; min-width: 46px; justify-content: center; padding: 0 13px; }.bug-report-fab span { display: none; }.bug-report-dialog form { padding: 20px; }
}
