:root {
  --review-brand: #0a66cf;
  --review-brand-dark: #074c9d;
  --review-brand-soft: #eaf3ff;
  --review-teal: #078b80;
  --review-gold: #b8780b;
  --review-red: #b83a45;
  --review-red-soft: #fff0f1;
  --review-green: #18794e;
  --review-green-soft: #ebf8f1;
  --review-ink: #10263f;
  --review-ink-2: #334e68;
  --review-muted: #6b7f93;
  --review-line: #dce5ef;
  --review-bg: #f5f8fc;
  --review-surface: #fff;
  --review-shadow: 0 10px 28px rgba(32, 62, 96, .09);
  --review-radius: 14px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--review-ink);
  background: var(--review-bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--review-ink); background: var(--review-bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.review-skip-link {
  position: fixed;
  z-index: 200;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--review-brand-dark);
}
.review-skip-link:focus { top: 12px; }

.review-boundary-strip {
  min-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 5px 18px;
  color: #4a350f;
  background: #fff5d9;
  border-bottom: 1px solid #f1d896;
  font-size: 12px;
}
.review-boundary-strip strong { letter-spacing: .08em; }

.review-topbar,
.customer-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  border-bottom: 1px solid var(--review-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.review-employee-shell .review-topbar { top: 30px; }
.review-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.review-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--review-brand), var(--review-teal));
  box-shadow: 0 5px 14px rgba(10, 102, 207, .25);
  font-weight: 900;
}
.review-brand strong,
.review-brand small { display: block; }
.review-brand strong { font-size: 16px; }
.review-brand small { margin-top: 1px; color: var(--review-muted); font-size: 9px; letter-spacing: .15em; }
.review-product-nav { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.review-product-nav a { padding: 9px 13px; border-radius: 8px; color: var(--review-ink-2); font-size: 14px; }
.review-product-nav a:hover,
.review-product-nav a[aria-current="page"] { color: var(--review-brand); background: var(--review-brand-soft); font-weight: 750; }
.review-product-disabled { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border: 1px dashed #c7d5e4; border-radius: 8px; color: var(--review-muted); background: #f7f9fc; cursor: not-allowed; font-size: 13px; }
.review-product-disabled small { font-size: 9px; }
.review-account-shell { position: relative; flex: none; margin-left: auto; }
.review-account-button { min-height: 42px; max-width: 260px; display: inline-flex; align-items: center; gap: 9px; padding: 4px 9px 4px 5px; border: 1px solid var(--review-line); border-radius: 999px; color: var(--review-ink-2); background: #fff; cursor: pointer; }
.review-account-button:hover,
.review-account-button[aria-expanded="true"] { border-color: #abc8e6; background: #f7fbff; }
.review-account-button:focus-visible,
.review-account-menu-action:focus-visible { outline: 3px solid rgba(10, 102, 207, .22); outline-offset: 2px; }
.review-account-avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--review-brand), var(--review-teal)); font-size: 13px; font-weight: 850; }
.review-account-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.review-account-chevron { color: var(--review-muted); font-size: 12px; }
.review-account-menu { position: absolute; z-index: 90; top: calc(100% + 8px); right: 0; width: min(260px, calc(100vw - 24px)); padding: 7px; border: 1px solid var(--review-line); border-radius: 12px; background: #fff; box-shadow: 0 16px 38px rgba(20, 52, 86, .18); }
.review-account-summary { display: grid; gap: 3px; padding: 8px 9px 10px; border-bottom: 1px solid var(--review-line); }
.review-account-summary strong { overflow-wrap: anywhere; font-size: 13px; }
.review-account-summary span { color: var(--review-muted); font-size: 11px; }
.review-account-menu-action { width: 100%; min-height: 40px; margin-top: 6px; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--review-red); background: transparent; cursor: pointer; text-align: left; font-weight: 700; }
.review-account-menu-action:hover { background: var(--review-red-soft); }

.review-layout { min-height: calc(100vh - 98px); display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.review-sidebar {
  position: sticky;
  top: 98px;
  height: calc(100vh - 98px);
  overflow-y: auto;
  padding: 24px 16px;
  border-right: 1px solid var(--review-line);
  background: #fff;
}
.review-sidebar-heading { padding: 0 12px 18px; }
.review-sidebar-heading span,
.review-sidebar-heading strong { display: block; }
.review-sidebar-heading span { color: var(--review-muted); font-size: 11px; letter-spacing: .1em; }
.review-sidebar-heading strong { margin-top: 4px; font-size: 21px; }
.review-queue-nav { display: grid; gap: 5px; }
.review-queue-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--review-ink-2);
  font-size: 13.5px;
  font-weight: 650;
}
.review-queue-nav a span { width: 19px; color: var(--review-muted); text-align: center; font-size: 16px; }
.review-queue-nav a:hover,
.review-queue-nav a[aria-current="page"] { color: var(--review-brand); background: var(--review-brand-soft); }
.review-queue-nav a[aria-current="page"] span { color: var(--review-brand); }
.review-sidebar-boundary { margin: 22px 8px 0; padding: 13px; border: 1px solid #d9e5f3; border-radius: 10px; color: var(--review-muted); background: #f8fbff; font-size: 11.5px; line-height: 1.65; }
.review-receive-card { display: grid; gap: 7px; margin: 18px 8px 0; padding: 13px; border: 1px solid #b9d9d5; border-radius: 10px; background: #f1fbf9; }
.review-receive-card strong { font-size: 13px; }
.review-receive-card p { margin: 0; color: var(--review-muted); font-size: 11px; line-height: 1.55; }
.review-receive-state { color: var(--review-teal); font-size: 10px; font-weight: 800; }
.review-asset-placeholder { display: grid; gap: 7px; margin: 20px 8px 0; padding: 13px; border: 1px dashed #b9cce0; border-radius: 10px; background: #f8fbff; }
.review-asset-placeholder strong { font-size: 13px; }
.review-asset-placeholder p,
.review-asset-placeholder small { margin: 0; color: var(--review-muted); font-size: 10.5px; line-height: 1.55; }
.review-asset-placeholder .review-button { width: 100%; }

.review-main { min-width: 0; padding: 30px clamp(20px, 4vw, 54px) 60px; outline: 0; }
.review-gate,
.review-empty,
.review-error-state { max-width: 720px; margin: 10vh auto 0; padding: 42px; border: 1px solid var(--review-line); border-radius: var(--review-radius); background: #fff; box-shadow: var(--review-shadow); text-align: center; }
.review-gate h1,
.review-empty h2,
.review-error-state h1 { margin: 12px 0 8px; font-size: 23px; }
.review-gate p,
.review-empty p,
.review-error-state p { margin: 0; color: var(--review-muted); line-height: 1.7; }
.review-spinner { width: 32px; height: 32px; margin: 0 auto; border: 3px solid #dce9f8; border-top-color: var(--review-brand); border-radius: 50%; animation: review-spin .8s linear infinite; }
@keyframes review-spin { to { transform: rotate(360deg); } }

.review-login-card {
  max-width: 620px;
  margin: 5vh auto 0;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--review-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--review-shadow);
}
.review-login-card h1 { margin: 7px 0 9px; font-size: clamp(26px, 4vw, 34px); }
.review-login-card > p { margin: 0; color: var(--review-muted); line-height: 1.7; }
.review-login-form { display: grid; gap: 14px; margin-top: 22px; }
.review-login-form > .review-button { justify-self: start; margin-top: 2px; }
.review-local-demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #bfd8f2;
  border-radius: 10px;
  color: #244b70;
  background: #eef6ff;
  font-size: 12px;
  line-height: 1.6;
}
.review-local-demo-note strong { color: var(--review-brand-dark); }
.review-local-demo-note .review-button { min-height: 34px; margin-left: auto; padding: 6px 10px; font-size: 11.5px; }
.customer-session-card .review-local-demo-note { margin-top: 14px; }

.review-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.review-page-head h1 { margin: 4px 0 5px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; }
.review-page-head p { max-width: 760px; margin: 0; color: var(--review-muted); line-height: 1.65; }
.review-eyebrow { color: var(--review-brand); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.review-page-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.review-result-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 18px; padding: 5px; border: 1px solid var(--review-line); border-radius: 11px; background: #fff; }
.review-result-tab { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px; border-radius: 8px; color: var(--review-muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.review-result-tab:hover, .review-result-tab[aria-current="page"] { color: var(--review-brand); background: var(--review-brand-soft); }
.review-admission-state { margin: 10px 0 0; padding: 11px 12px; border: 1px solid #b9d9d5; border-radius: 9px; color: #176a62; background: #f1fbf9; font-size: 11.5px; line-height: 1.55; }

.review-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.review-metric { padding: 17px; border: 1px solid var(--review-line); border-radius: 12px; background: #fff; }
.review-metric span,
.review-metric strong { display: block; }
.review-metric span { color: var(--review-muted); font-size: 11.5px; }
.review-metric strong { margin-top: 6px; font-size: 24px; }

.review-list { display: grid; gap: 12px; }
.review-case-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.review-case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--review-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 62, 96, .045);
}
.review-case-card:hover { border-color: #b9d3ef; box-shadow: var(--review-shadow); }
.review-thumbnail-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.review-card-preview-link { display: block; min-width: 0; }
.review-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #dbe9f8;
  background: linear-gradient(135deg, #102d4b, #0a5b99);
}
.review-card-preview-link:focus-visible { outline: 0; }
.review-card-preview-link:focus-visible .review-card-media { box-shadow: inset 0 0 0 4px rgba(82, 170, 255, .75); }
.review-card-video { width: 100%; height: 100%; object-fit: cover; background: #071320; }
.review-card-play-hint {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 21, 38, .72);
  font-size: 10.5px;
  font-weight: 800;
  opacity: .84;
}
.review-card-preview-unavailable { display: grid; gap: 5px; padding: 18px; text-align: center; }
.review-card-preview-unavailable strong { font-size: 13px; }
.review-card-preview-unavailable small { color: #abc3dc; font-size: 10.5px; }
.review-card-watermark { z-index: 2; padding: 9px; align-items: start; font-size: 10px; }
.review-card-copy { padding: 16px 16px 8px; }
.review-thumbnail-card .review-case-title h2 { min-height: 48px; margin-top: 7px; font-size: 15.5px; line-height: 1.5; }
.review-thumbnail-card .review-case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; font-size: 11.5px; }
.review-thumbnail-card .review-case-side { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 16px; }
.review-case-title { min-width: 0; }
.review-case-title h2 { margin: 6px 0 7px; font-size: 17px; overflow-wrap: anywhere; }
.review-case-meta,
.review-id-grid { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--review-muted); font-size: 11.5px; }
.review-case-side { display: grid; justify-items: end; gap: 10px; }
.review-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--review-brand-dark);
  background: var(--review-brand-soft);
  font-size: 11px;
  font-weight: 800;
}
.review-status.returned { color: var(--review-red); background: var(--review-red-soft); }
.review-status.approved { color: var(--review-green); background: var(--review-green-soft); }
.review-status.archived { color: #536579; background: #edf1f5; }

.review-button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 750;
}
.review-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible { outline: 3px solid rgba(10, 102, 207, .23); outline-offset: 2px; }
.review-button:disabled { cursor: not-allowed; opacity: .55; }
.review-button-primary { color: #fff; background: var(--review-brand); }
.review-button-primary:hover:not(:disabled) { background: var(--review-brand-dark); }
.review-button-quiet { color: var(--review-ink-2); border-color: var(--review-line); background: #fff; }
.review-button-quiet:hover:not(:disabled) { border-color: #b8cbe0; background: #f8fbff; }
.review-button-danger { color: var(--review-red); border-color: #efc4c8; background: #fff; }
.review-button-success { color: var(--review-green); border-color: #b9dfcc; background: #fff; }

.review-detail-grid {
  width: min(100%, 1560px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas: none;
  gap: 24px;
  align-items: start;
}
.review-screening-primary { min-width: 0; grid-column: 1 / span 8; }
.review-screening-rail {
  min-width: 0;
  position: sticky;
  top: 118px;
  grid-column: 9 / span 4;
  overflow: visible;
}
.review-traceability-stack { min-width: 0; grid-column: 1 / span 8; }
.review-panel { min-width: 0; padding: 20px; border: 1px solid var(--review-line); border-radius: var(--review-radius); background: #fff; box-shadow: 0 5px 17px rgba(32, 62, 96, .045); }
.review-panel + .review-panel { margin-top: 16px; }
.review-panel h2 { margin: 0 0 15px; font-size: 17px; }
.review-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #dbe9f8;
  background: linear-gradient(135deg, #102d4b, #0a5b99);
}
.review-preview video { width: 100%; height: 100%; object-fit: contain; background: #071320; }
.review-screening-stage .review-preview { border-radius: 0; }
.review-screening-stage {
  overflow: hidden;
  padding: 0;
  border-color: #153652;
  border-radius: 16px;
  background: #071a2d;
  box-shadow: 0 18px 46px rgba(4, 20, 35, .2);
}
.review-screening-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; color: #fff; border-bottom: 1px solid #284964; }
.review-screening-heading > div { font-size: 16px; font-weight: 800; }
.review-screening-heading > span { color: #a9c1d8; font-size: 12px; }
.review-screening-stage .review-boundary-note { margin: 0; padding: 12px 18px 15px; color: #9db4ca; border-top: 1px solid #284964; }
.review-screening-stage[data-review-video-workspace="true"]:focus-visible,
.review-screening-stage[data-customer-video-workspace="true"]:focus-visible { outline: 3px solid #78baff; outline-offset: 3px; }
.review-video-transport { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 18px; border: 0; border-top: 1px solid #284964; border-radius: 0; color: #dcecff; background: transparent; }
.review-video-transport-button { min-height: 40px; padding: 8px 13px; border: 1px solid #3a5a76; border-radius: 7px; color: #e8f3fd; background: #102c44; cursor: pointer; font-size: 12px; font-weight: 800; }
.review-video-transport-button:hover,
.review-video-transport-button:focus-visible { color: #17293a; border-color: #ffcc55; background: #ffcc55; outline: 0; }
.review-video-play-toggle { min-width: 68px; }
.review-video-timecode { margin-left: auto; color: #f6dda6; font-variant-numeric: tabular-nums; font-weight: 850; }
.review-video-shortcuts { flex: 1 0 100%; color: #9db4ca; font-size: 12px; line-height: 1.55; }
.review-player-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 2px 2px; }
.review-player-tools .review-current-frame { margin-left: auto; color: #c5d9ec; font-size: 12px; font-variant-numeric: tabular-nums; }
.review-coordinate-contract { margin: 0; padding: 12px 18px; border: 0; border-top: 1px solid #284964; border-radius: 0; color: #f1d79e; background: rgba(255, 244, 215, .04); font-size: 12px; line-height: 1.55; }
.review-annotation-overlay { position: absolute; z-index: 4; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.review-annotation-overlay.is-annotating { pointer-events: auto; cursor: crosshair; touch-action: none; background: rgba(4, 16, 28, .08); outline: 2px dashed rgba(255, 210, 101, .9); outline-offset: -3px; }
.review-annotation-shape { fill: none; stroke: #ffcc55; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 3px rgba(0,0,0,.65)); pointer-events: none; }
.review-annotation-shape.tool-point circle { fill: #d94252; stroke: #fff; stroke-width: 3; }
.review-annotation-shape.tool-point text { fill: #fff; stroke: none; font-size: 14px; font-weight: 900; }
.review-annotation-shape.tool-text { fill: #fff4c4; stroke: #151b24; stroke-width: 1.2; paint-order: stroke; font-size: 28px; font-weight: 850; }
.review-annotation-arrow-head { fill: #ffcc55; stroke: none; }
.review-annotation-cancel { position: absolute; z-index: 7; top: 12px; right: 12px; min-height: 40px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; background: rgba(12, 24, 37, .88); cursor: pointer; font-size: 12px; font-weight: 800; }
.review-annotation-text-input { position: absolute; z-index: 8; width: min(230px, 55%); min-height: 38px; transform: translateY(-50%); padding: 7px 9px; border: 2px solid #ffcc55; border-radius: 7px; color: #142b43; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.review-annotation-timeline { margin: 0; padding: 15px 18px 14px; border: 0; border-top: 1px solid #284964; border-radius: 0; background: transparent; }
.review-timeline-heading { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; color: #e8f3fd; font-size: 12px; }
.review-timeline-heading > span { color: #93abc1; overflow-wrap: anywhere; }
.review-timeline-current { min-width: 112px; color: #f6dda6; text-align: right; font-variant-numeric: tabular-nums; font-weight: 850; }
.review-timeline-track { position: relative; height: 22px; margin: 42px 8px 0; overflow: visible; border-radius: 5px; background: linear-gradient(180deg,#3c5c76,#183147); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); cursor: ew-resize; touch-action: none; user-select: none; }
.review-timeline-track[role="slider"]:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.review-timeline-playhead { position: absolute; z-index: 5; top: -20px; bottom: -8px; width: 3px; transform: translateX(-50%); border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(5,20,33,.7),0 0 8px rgba(255,255,255,.55); pointer-events: none; }
.review-timeline-playhead::before { content: ""; position: absolute; top: -6px; left: 50%; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg); border-radius: 2px 2px 0; background: #fff; }
.review-timeline-marker { position: absolute; z-index: 4; top: -38px; width: 34px; height: 34px; min-height: 0; display: grid; place-items: center; padding: 0; transform: translateX(-50%); border: 2px solid #071a2d; border-radius: 999px; color: #071a2d; background: #78baff; cursor: pointer; font-size: 12px; font-weight: 900; }
.review-timeline-marker::after { content: ""; position: absolute; left: 50%; top: 32px; width: 2px; height: 30px; transform: translateX(-50%); background: currentColor; pointer-events: none; }
.review-timeline-marker-count { position: relative; z-index: 2; min-width: 16px; line-height: 16px; text-align: center; }
.review-timeline-marker.annotation { background: #ffcc55; }
.review-timeline-marker.draft { color: #fff; border-color: #fff; background: #e34e5b; }
.review-timeline-marker.is-active,
.review-timeline-marker.active { z-index: 7; color: #071a2d; border-color: #fff; background: #ffcc55; box-shadow: 0 0 0 4px rgba(255, 204, 85, .28); }
.review-timeline-marker.status-dirty { color: #fff; background: #e34e5b; }
.review-timeline-marker.status-saving { color: #071a2d; background: #78baff; }
.review-timeline-marker.status-error { color: #fff; background: #b83a45; box-shadow: 0 0 0 3px rgba(232, 88, 101, .28); }
.review-timeline-marker.status-saved { color: #071a2d; background: #75d5a8; }
.review-timeline-marker:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.review-timeline-scale { display: flex; justify-content: space-between; margin-top: 8px; color: #86a0b8; font-size: 12px; font-variant-numeric: tabular-nums; }
.review-inline-comment-editor { margin: 0; padding: 16px 18px 18px; border: 0; border-top: 1px solid #284964; border-radius: 0; background: transparent; }
.customer-video-annotation-dock { margin-top: 0; }
.customer-video-annotation-dock .review-player-tools { padding-top: 9px; }
.review-composer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.review-composer-label { display: block; color: #e8f3fd; font-size: 13px; font-weight: 850; }
.review-composer-hint { color: #8fa8bf; font-size: 12px; text-align: right; }
.review-inline-comment-editor textarea { width: 100%; min-height: 76px; resize: vertical; padding: 10px 11px; border: 1px solid #3a5a76; border-radius: 8px; color: #eff7ff; background: #081b2c; line-height: 1.55; }
.review-inline-comment-editor textarea::placeholder { color: #7892aa; }
.review-composer-meta { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.review-meta-field { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding-left: 9px; border: 1px solid #3a5a76; border-radius: 7px; background: #102c44; }
.review-meta-label { color: #88a3bc; font-size: 12px; white-space: nowrap; }
.review-composer-meta select { min-height: 36px; padding: 5px 28px 5px 3px; border: 0; color: #e3f0fc; background: transparent; font-size: 12px; }
.review-capture-time,
.review-composer-clear, .review-reset-time { min-height: 38px; padding: 7px 10px; border: 1px solid #3a5a76; border-radius: 7px; color: #dcecff; background: #102c44; cursor: pointer; font-size: 12px; }
.review-composer-clear { margin-left: auto; color: #f2c0c4; }
.review-composer-clear:disabled { opacity: .45; cursor: not-allowed; }
.review-captured-time { padding: 7px 10px; border-radius: 999px; color: #f6dda6; background: rgba(255, 204, 85, .1); font-size: 12px; font-variant-numeric: tabular-nums; }
.review-annotation-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #284964; }
.review-toolbar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.review-toolbar-collaboration { padding-left: 8px; border-left: 1px solid #31516d; }
.review-annotation-tool { width: auto; min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; padding: 7px 10px; border: 1px solid #3a5a76; border-radius: 7px; color: #dcecff; background: #102c44; cursor: pointer; font-size: 12px; font-weight: 850; white-space: nowrap; }
.review-annotation-tool:hover:not(:disabled),
.review-annotation-tool[aria-pressed="true"],
.review-collaboration-tool.is-active { color: #17293a; border-color: #ffcc55; background: #ffcc55; }
.review-annotation-tool:disabled { opacity: .35; cursor: not-allowed; }
.review-collaboration-tool { width: auto; display: inline-flex; grid-auto-flow: column; gap: 5px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.review-composer-send { min-width: 72px; min-height: 36px; margin-left: auto; padding: 7px 14px; border: 0; border-radius: 8px; color: #fff; background: var(--review-brand); cursor: pointer; font-weight: 800; }
.review-composer-send:disabled { opacity: .5; cursor: not-allowed; }
.review-mention-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 7px; margin-top: 9px; padding: 10px; border: 1px solid #345571; border-radius: 9px; background: #102b43; }
.review-mention-picker-title { grid-column: 1 / -1; color: #dfeefa; font-size: 12px; }
.review-mention-choice { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 9px; border-radius: 7px; color: #cde1f2; background: #0a2033; cursor: pointer; font-size: 12px; }
.review-mention-choice:hover { background: #153753; }
.review-mention-choice input { accent-color: var(--review-brand); }
.review-mention-chips,
.review-composer-attachments { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; color: #b9d3ea; font-size: 12px; overflow-wrap: anywhere; }
.review-mention-chip,
.review-attachment-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 5px 4px 9px; border: 1px solid #3c5f7b; border-radius: 999px; color: #d9ebf9; background: #102c44; }
.review-chip-remove { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; color: #b8cee0; background: transparent; cursor: pointer; line-height: 1; }
.review-chip-remove:hover { color: #fff; background: #3b5870; }
.review-mention-chips[hidden],
.review-composer-attachments[hidden],
.review-mention-picker[hidden] { display: none; }
.review-annotation-contract { margin: 8px 0 0; color: #9db4ca; font-size: 12px; line-height: 1.5; }

.review-issue-navigation {
  display: grid;
  gap: 12px;
  padding: 14px 18px 16px;
  border-top: 1px solid #284964;
  color: #dcecff;
}
.review-issue-nav-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.review-issue-nav-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #3a5a76;
  border-radius: 7px;
  color: #e8f3fd;
  background: #102c44;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.review-issue-nav-button:hover:not(:disabled) { border-color: #78baff; background: #153753; }
.review-issue-nav-button:disabled { cursor: not-allowed; opacity: .45; }
.review-issue-nav-button:focus-visible,
.review-issue-item:focus-visible { outline: 3px solid #78baff; outline-offset: 2px; }
.review-issue-summary {
  min-width: 0;
  margin-left: auto;
  color: #a9c1d8;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.review-issue-list {
  max-height: 232px;
  min-width: 0;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 2px 5px 2px 2px;
}
.review-issue-list:empty { display: none; }
.review-issue-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 12px 9px 14px;
  border: 1px solid #31516d;
  border-left: 4px solid #78baff;
  border-radius: 8px;
  color: #dcecff;
  background: #0b2236;
  cursor: pointer;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: left;
}
.review-issue-item:hover { border-color: #78baff; background: #102c44; }
.review-issue-item.status-dirty { border-left-color: #e34e5b; }
.review-issue-item.status-saving { border-left-color: #78baff; }
.review-issue-item.status-error { border-color: #e85865; border-left-color: #e85865; color: #ffdfe2; }
.review-issue-item.status-saved { border-left-color: #75d5a8; }
.review-issue-item.is-active {
  border-color: #ffcc55;
  border-left-color: #ffcc55;
  color: #fff5ce;
  background: #183147;
  box-shadow: 0 0 0 2px rgba(255, 204, 85, .18);
}
.review-point-layer { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; padding: 0; border: 2px dashed rgba(255, 202, 90, .85); border-radius: 11px; background: rgba(4, 18, 31, .08); cursor: crosshair; }
.review-point-layer:focus-visible { outline: 3px solid #ffd77e; outline-offset: -4px; }
.review-point-marker { position: absolute; width: 28px; height: 28px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--review-red); box-shadow: 0 4px 18px rgba(0,0,0,.45); font-size: 11px; font-weight: 900; pointer-events: none; }
.review-preview-watermark { position: absolute; z-index: 1; inset: 0; display: grid; align-items: end; justify-items: end; padding: 15px; color: rgba(255,255,255,.58); background: repeating-linear-gradient(-18deg, transparent 0 55px, rgba(255,255,255,.035) 55px 110px); pointer-events: none; font-size: clamp(10px, 1.4vw, 13px); font-weight: 900; letter-spacing: .12em; text-align: right; }
.review-preview-placeholder { position: relative; z-index: 2; max-width: 430px; padding: 24px 24px 58px; text-align: center; }
.review-preview-placeholder strong,
.review-preview-placeholder span { display: block; }
.review-preview-placeholder span { margin-top: 8px; color: #abc3dc; font-size: 12px; line-height: 1.6; }
.review-boundary-note { margin: 13px 0 0; color: var(--review-muted); font-size: 11.5px; line-height: 1.6; }

.review-action-bar { display: flex; flex-wrap: wrap; gap: 9px; }
.review-decision-panel .review-action-bar { margin-top: 13px; }
.review-decision-panel .review-button-success,
.review-decision-panel .review-button-danger { flex: 1 1 120px; }
.review-decision-reason textarea { min-height: 82px; }
.review-no-actions { padding: 13px; border-radius: 9px; color: var(--review-muted); background: var(--review-bg); font-size: 12px; line-height: 1.6; }
.review-definition-list { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 11px 14px; margin: 0; font-size: 12.5px; }
.review-definition-list dt { color: var(--review-muted); }
.review-definition-list dd { margin: 0; overflow-wrap: anywhere; }

.review-comment-list,
.review-history-list { display: grid; gap: 10px; }
.review-comment,
.review-history-item { padding: 13px 14px; border: 1px solid var(--review-line); border-radius: 9px; background: #fbfdff; }
.review-comment-head,
.review-history-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--review-muted); font-size: 11px; }
.review-comment p,
.review-history-item p { margin: 8px 0 0; color: var(--review-ink-2); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-comment:focus { outline: 0; }
.review-comment.is-focused { border-color: var(--review-brand); background: var(--review-brand-soft); box-shadow: 0 0 0 3px rgba(10, 102, 207, .12); }
.review-comment[data-customer-seek-ms] { cursor: pointer; }
.review-comment[data-customer-seek-ms]:hover { border-color: #78baff; }
.review-comment[data-customer-seek-ms]:focus-visible { outline: 3px solid #78baff; outline-offset: 2px; }
.customer-comment-sort { display: flex; grid-auto-flow: initial; align-items: center; gap: 8px; }
.customer-comment-sort > span { white-space: nowrap; }
.customer-comment-sort select { min-width: 158px; }
.review-saved-annotation { border-left: 3px solid #e0ad4f; }
.review-saved-attachment { border-left: 3px solid var(--review-teal); }
.review-comment-members { display: block; margin-top: 7px; color: var(--review-muted); font-size: 10.5px; }
.review-timecode { color: var(--review-brand); font-variant-numeric: tabular-nums; font-weight: 800; }
.review-comment-form { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 9px; align-items: end; margin-top: 15px; }
.review-node-comments .review-comment-form { grid-template-columns: 1fr; align-items: stretch; }
.review-node-comments .review-comment-list { max-height: 300px; overflow: auto; padding-right: 2px; }
.review-timecode-draft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #d5e2ef; border-radius: 8px; background: #f7faff; font-size: 11px; }
.review-timecode-draft span { color: var(--review-muted); font-weight: 700; }
.review-timecode-draft output { color: var(--review-brand-dark); text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.review-field { min-width: 0; display: grid; gap: 6px; }
label { color: var(--review-ink-2); font-size: 12px; font-weight: 700; }
input,
select,
textarea { width: 100%; padding: 10px 11px; border: 1px solid #cbd8e6; border-radius: 8px; color: var(--review-ink); background: #fff; }
textarea { resize: vertical; line-height: 1.55; }
.review-form-hint { margin: 7px 0 0; color: var(--review-muted); font-size: 11px; line-height: 1.55; }

.review-dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 16px; color: var(--review-ink); background: #fff; box-shadow: 0 28px 90px rgba(7, 26, 50, .3); }
.review-dialog::backdrop { background: rgba(6, 23, 42, .56); backdrop-filter: blur(3px); }
.review-dialog form { padding: 23px; }
.review-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.review-dialog-head h2 { margin: 4px 0 0; font-size: 21px; }
.review-icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: var(--review-muted); background: var(--review-bg); cursor: pointer; font-size: 22px; }
.review-dialog-copy { margin: 15px 0; color: var(--review-muted); font-size: 12.5px; line-height: 1.65; }
.review-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.review-inline-error { margin: 10px 0 0; color: var(--review-red); font-size: 12px; }
.review-toast { position: fixed; z-index: 180; left: 50%; bottom: 24px; max-width: min(520px, calc(100vw - 28px)); transform: translate(-50%, 30px); padding: 11px 16px; border-radius: 9px; color: #fff; background: #122b45; box-shadow: var(--review-shadow); opacity: 0; pointer-events: none; transition: .2s; font-size: 12.5px; }
.review-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* 客户门户刻意使用更简洁、隔离的页面壳，不复用员工队列导航。 */
.customer-review-shell { background: linear-gradient(180deg, #eef6ff 0, #f7f9fc 320px); }
.customer-topbar { position: relative; min-height: 76px; border-bottom-color: rgba(182, 204, 228, .8); }
.customer-portal-title { margin-left: 12px; padding-left: 28px; border-left: 1px solid var(--review-line); }
.customer-portal-title strong,
.customer-portal-title span { display: block; }
.customer-portal-title strong { font-size: 15px; }
.customer-portal-title span { margin-top: 3px; color: var(--review-muted); font-size: 10.5px; }
#customer-review-logout { margin-left: auto; }
.customer-review-main { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0 70px; outline: 0; }
.customer-session-card { max-width: 700px; margin: 7vh auto 0; padding: clamp(25px, 5vw, 48px); border: 1px solid #cfdfef; border-radius: 20px; background: rgba(255, 255, 255, .97); box-shadow: 0 20px 55px rgba(20, 67, 112, .12); }
.customer-session-card h1 { margin: 7px 0 10px; font-size: clamp(26px, 5vw, 36px); }
.customer-session-card > p { color: var(--review-muted); line-height: 1.75; }
.customer-session-card form { margin-top: 24px; }
.customer-invite-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 7px; }
.customer-project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.customer-project-card { padding: 20px; border: 1px solid var(--review-line); border-radius: 14px; background: #fff; box-shadow: var(--review-shadow); }
.customer-thumbnail-card { min-width: 0; padding: 0; overflow: hidden; }
.customer-project-copy { display: grid; justify-items: start; gap: 9px; padding: 18px; }
.customer-project-copy .review-status { margin-bottom: 1px; }
.customer-project-copy h2,
.customer-project-copy p { width: 100%; }
.customer-project-card h2 { margin: 8px 0; font-size: 18px; overflow-wrap: anywhere; }
.customer-project-card p { color: var(--review-muted); font-size: 12px; }
.customer-watermark-note { padding: 10px 12px; border-radius: 8px; color: #4d6580; background: #eef6ff; font-size: 11px; line-height: 1.55; }
.customer-node-comment-form { grid-template-columns: 1fr; align-items: stretch; }

@media (max-width: 1100px) {
  .review-detail-grid { gap: 18px; }
  .review-screening-primary,
  .review-traceability-stack { grid-column: 1 / span 8; }
  .review-screening-rail { grid-column: 9 / span 4; }
}

@media (max-width: 980px) {
  .review-product-nav { display: none; }
  .review-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .review-sidebar { padding-inline: 10px; }
  .review-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .review-detail-grid { display: flex; flex-direction: column; gap: 16px; }
  .review-screening-primary,
  .review-screening-rail,
  .review-traceability-stack { width: 100%; min-width: 0; }
  .review-screening-primary { order: 1; }
  .review-screening-rail { position: static; order: 2; overflow: visible; }
  .review-traceability-stack { order: 3; }
}

@media (max-width: 720px) {
  .review-boundary-strip { max-width: 100vw; justify-content: flex-start; overflow-x: auto; white-space: nowrap; contain: inline-size; overscroll-behavior-inline: contain; }
  .review-topbar,
  .customer-topbar { min-height: 62px; padding: 0 14px; gap: 12px; }
  .review-employee-shell .review-topbar { top: 30px; }
  .review-brand strong { font-size: 14px; }
  .review-brand small { font-size: 8px; }
  .review-layout { display: block; min-width: 0; max-width: 100vw; }
  .review-sidebar { position: sticky; z-index: 40; top: 92px; width: 100%; max-width: 100vw; height: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--review-line); overflow-x: auto; contain: inline-size; overscroll-behavior-inline: contain; }
  .review-sidebar-heading,
  .review-sidebar-boundary,
  .review-asset-placeholder { display: none; }
  .review-queue-nav { width: max-content; display: flex; gap: 4px; }
  .review-queue-nav a { min-height: 38px; padding: 7px 10px; white-space: nowrap; }
  .review-queue-nav a span { display: none; }
  .review-main { width: 100%; min-width: 0; padding: 23px 14px 52px; }
  .review-login-card { margin-top: 3vh; }
  .review-page-head { align-items: flex-start; flex-direction: column; }
  .review-case-card { grid-template-columns: 1fr; }
  .review-case-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .review-case-side { justify-items: start; }
  .review-comment-form { grid-template-columns: 1fr; }
  .customer-portal-title { margin-left: 0; padding-left: 12px; }
  .customer-portal-title span { display: none; }
  .customer-review-main { width: min(100% - 28px, 1120px); padding-top: 30px; }
  .customer-project-list { grid-template-columns: 1fr; }
  .customer-project-copy .review-button { width: 100%; }
  .review-video-timecode { width: 100%; margin-left: 0; padding-top: 2px; }
  .review-issue-summary { width: 100%; margin-left: 0; text-align: left; }
}

@media (max-width: 420px) {
  .review-boundary-strip { font-size: 10.5px; }
  .review-topbar { gap: 8px; }
  .review-marketplace-return { min-height: 38px; padding-inline: 7px; font-size: 11.5px; }
  .review-account-button { min-height: 38px; padding: 3px; }
  .review-account-label,
  .review-account-chevron { display: none; }
  .review-brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .review-main { padding-inline: 12px; }
  .review-gate,
  .review-empty,
  .review-error-state { margin-top: 5vh; padding: 27px 18px; }
  .review-login-card { padding: 25px 18px; }
  .review-local-demo-note .review-button { width: 100%; margin-left: 0; }
  .review-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .review-case-grid { grid-template-columns: 1fr; gap: 12px; }
  .review-thumbnail-card .review-case-title h2 { min-height: 0; }
  .review-thumbnail-card .review-case-meta { grid-template-columns: 1fr; }
  .review-thumbnail-card .review-case-side { align-items: stretch; flex-direction: column; }
  .review-thumbnail-card .review-case-side .review-button { width: 100%; }
  .review-screening-stage { border-radius: 12px; }
  .review-screening-heading { min-height: 48px; padding: 10px 12px; }
  .review-screening-heading > div { font-size: 14px; }
  .review-video-transport,
  .review-annotation-timeline,
  .review-issue-navigation,
  .review-inline-comment-editor,
  .review-coordinate-contract { padding-inline: 12px; }
  .review-video-transport-button { flex: 1 1 calc(33.333% - 6px); min-height: 44px; padding-inline: 7px; }
  .review-video-play-toggle { min-width: 0; }
  .review-video-shortcuts { line-height: 1.65; }
  .review-player-tools .review-button { width: 100%; min-height: 44px; }
  .review-player-tools .review-current-frame { width: 100%; margin-left: 0; text-align: center; }
  .review-inline-comment-editor { padding: 10px; }
  .review-composer-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .review-composer-hint { text-align: left; }
  .review-composer-meta select { max-width: 112px; }
  .review-annotation-toolbar { gap: 4px; }
  .review-toolbar-group { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .review-annotation-tool { width: 100%; min-width: 0; min-height: 44px; padding-inline: 6px; white-space: normal; }
  .review-collaboration-tool { width: 100%; padding-inline: 6px; }
  .review-toolbar-collaboration { width: 100%; padding: 7px 0 0; border-top: 1px solid #31516d; border-left: 0; }
  .review-composer-send { width: 100%; min-height: 44px; margin-left: 0; }
  .customer-video-annotation-dock button[type="submit"] { min-height: 44px; }
  .review-issue-nav-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-issue-nav-button { width: 100%; min-height: 44px; padding-inline: 7px; }
  .review-issue-nav-actions .review-issue-nav-button:nth-of-type(3) { grid-column: 1 / -1; }
  .review-issue-summary { grid-column: 1 / -1; }
  .review-issue-list { max-height: 264px; }
  .review-issue-item { min-height: 44px; }
  .review-annotation-cancel { top: 8px; right: 8px; }
  .review-timecode-draft { align-items: flex-start; flex-direction: column; }
  .review-timecode-draft output { text-align: left; }
  .review-metric { padding: 13px; }
  .review-panel { padding: 15px; }
  .review-definition-list { grid-template-columns: 1fr; gap: 4px; }
  .review-definition-list dd { margin-bottom: 8px; }
  .review-action-bar .review-button { flex: 1 1 calc(50% - 9px); }
  .review-dialog form { padding: 19px 16px; }
  .customer-topbar .review-brand small { display: none; }
  .customer-portal-title { border-left: 0; padding-left: 0; }
  .customer-portal-title strong { font-size: 12px; }
  .customer-invite-row { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .review-brand > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
