:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #fff;
  background: #000;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: #000; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #fdd700; outline-offset: 2px; }

.shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 clamp(22px, 4vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #252b36; background: #08090c; }
.brand { color: #fff; text-decoration: none; font-size: 25px; font-weight: 800; letter-spacing: -1.3px; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-right: 9px; border-radius: 9px; background: #fdd700; color: #000; font-size: 24px; vertical-align: 1px; }
.brand-dot { color: #fdd700; }
.top-right { display: flex; align-items: center; gap: 18px; }
.quiet, .hint { color: #94a0b3; font-size: 14px; }
.ghost, .tiny, .icon-btn, .text-btn, .settings-button { border: 1px solid #344158; border-radius: 10px; background: transparent; color: #fff; padding: 10px 14px; }
.ghost:hover, .tiny:hover, .icon-btn:hover, .settings-button:hover { border-color: #5572b7; background: #171e2d; }
.primary { border: 0; border-radius: 10px; background: #fdd700; color: #000; padding: 13px 18px; font-weight: 750; white-space: nowrap; }
.primary:hover, .tiny.accent:hover { background: #ffe754; }
.primary span { padding-left: 15px; }
.eyebrow { color: #879de0; font-size: 12px; font-weight: 750; letter-spacing: 1.7px; }

.settings-wrap { position: relative; }
.settings-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; font-size: 21px; line-height: 1; }
.settings-menu { position: absolute; top: 48px; right: 0; z-index: 20; width: 256px; padding: 12px; border: 1px solid #35425b; border-radius: 12px; background: #171d27; box-shadow: 0 18px 55px #000b; }
.settings-title { padding: 4px 7px 10px; color: #9ca9c0; font-size: 12px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; }
.settings-menu button { width: 100%; padding: 10px; border: 0; border-radius: 7px; background: #263756; color: #fff; text-align: left; }
.settings-menu button:hover { background: #344d7c; }
.settings-note { padding: 10px 7px 3px; color: #9da9ba; font-size: 12px; line-height: 1.4; }

.home { max-width: 1120px; margin: auto; padding: 105px 24px 90px; }
.home-heading h1 { margin: 24px 0; font-size: clamp(54px, 8vw, 100px); line-height: 1.02; letter-spacing: -5px; }
.home-heading h1 em { color: #fdd700; font-style: normal; }
.home-heading p { max-width: 540px; color: #aab5c7; font-size: 20px; line-height: 1.55; }
.start-card { max-width: 730px; margin-top: 74px; padding: 30px; border: 1px solid #303a4d; border-radius: 18px; background: #101318; }
.step { margin-bottom: 24px; color: #fdd700; font-size: 12px; font-weight: 750; letter-spacing: 1.7px; }
label { display: block; margin-bottom: 10px; color: #e0e5ed; font-size: 14px; font-weight: 650; }
.start-row { display: flex; gap: 10px; }
.start-row input { flex: 1; min-width: 0; }
.hint { margin-top: 15px; }
input, textarea, select { padding: 13px 14px; border: 1px solid #344158; border-radius: 10px; outline: none; background: #0a0d13; color: #fff; }
input::placeholder, textarea::placeholder { color: #7f8a9d; }
.recent { max-width: 730px; margin-top: 56px; }
.section-title { margin-bottom: 14px; color: #9da9ba; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.recent a { display: flex; justify-content: space-between; margin-bottom: 8px; padding: 18px 20px; border: 1px solid #303a4d; border-radius: 10px; background: #101318; color: #fff; text-decoration: none; }
.recent a:hover { border-color: #fdd700; }

.workspace { max-width: 1800px; margin: auto; padding: 44px clamp(22px, 4vw, 72px) 70px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.workspace-heading h1 { margin: 9px 0 0; font-size: clamp(30px, 4vw, 52px); letter-spacing: -2px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(350px, .75fr); gap: 24px; }
.stage, .sidebar { overflow: hidden; border: 1px solid #2d3748; border-radius: 17px; background: #101318; }
.stage-top { height: 58px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 650; }
.stage-top select, .sidebar-head select { max-width: 58%; padding: 8px 10px; background: #1c2432; font-size: 13px; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: #fdd700; }
.player-wrap { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-wrap canvas { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.draw-hint { padding: 12px 18px; background: #171d27; color: #a8b3c2; font-size: 13px; line-height: 1.6; border-bottom: 1px solid #2c3543; }
.draw-tools { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #2c3543; background: #10151e; }
.draw-tools button { padding: 7px 9px; border: 1px solid #4b596d; border-radius: 7px; background: #202939; color: #fff; font-size: 12px; }
.draw-tools button.active { border-color: #fdd700; background: #fdd700; color: #000; }
.draw-tools label { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 12px; }
.draw-tools input { width: 30px; height: 27px; padding: 0; border: 0; background: none; cursor: pointer; }
.draw-text-editor { position: absolute; z-index: 6; min-width: 100px; min-height: 44px; margin: 0; padding: 7px; border: 2px solid #fdd700; border-radius: 5px; outline: 0; background: #10151eea; color: #fdd700; font: 700 18px/1.25 Inter, "Segoe UI", Arial, sans-serif; resize: none; overflow: auto; }
.empty-player { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(circle at 50% 42%, #172033, #030406 72%); color: #a9b3c2; text-align: center; }
.empty-player strong { color: #fff; font-size: 23px; }
.empty-player .primary { margin-top: 10px; }
.empty-icon { display: grid; place-items: center; width: 65px; height: 65px; margin-bottom: 6px; border: 1px solid #67758c; border-radius: 18px; color: #fdd700; font-size: 24px; }
.upload-progress { padding: 14px 20px; border-top: 1px solid #303a4d; background: #1b2433; }
.upload-progress-copy { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; color: #fff; font-size: 13px; }
.upload-progress-copy span { color: #fdd700; font-variant-numeric: tabular-nums; }
.upload-progress progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 20px; overflow: hidden; background: #354158; }
.upload-progress progress::-webkit-progress-bar { background: #354158; }
.upload-progress progress::-webkit-progress-value { background: #fdd700; border-radius: 20px; }
.upload-progress progress::-moz-progress-bar { background: #fdd700; }
.upload-progress.error { background: #382427; }
.upload-progress.error .upload-progress-copy span { color: #e48a89; }
.playback { display: flex; align-items: center; gap: 13px; min-height: 59px; padding: 12px 18px; border-bottom: 1px solid #303a4d; background: #151a22; }
.playback-button { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid #344158; border-radius: 8px; background: #202939; color: #fff; font-size: 17px; }
.playback-button:hover:not(:disabled) { border-color: #fdd700; color: #fdd700; }
.seek-wrap { position: relative; flex: 1; height: 14px; }
.seek-bar { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(#414d63, #414d63) center / 100% 5px no-repeat; cursor: pointer; touch-action: none; }
.seek-bar[aria-disabled="true"] { cursor: not-allowed; opacity: .45; }
.seek-fill { position: absolute; top: 50%; left: 0; width: 0; height: 5px; transform: translateY(-50%); border-radius: 20px; background: #fdd700; pointer-events: none; }
.seek-fill::after { content: ""; position: absolute; right: -5px; top: -4px; width: 13px; height: 13px; border: 2px solid #151a22; border-radius: 50%; background: #fff; }
.seek-markers { position: absolute; inset: 0; pointer-events: none; }
.seek-marker { position: absolute; top: -4px; width: 9px; height: 22px; padding: 0; transform: translateX(-50%); border: 2px solid #151a22; border-radius: 5px; background: #fdd700; pointer-events: auto; }
.seek-marker.done { background: #50ce8c; }
.seek-marker:hover, .seek-marker:focus-visible { z-index: 3; width: 12px; }
.seek-marker::after { content: attr(data-tip); display: none; position: absolute; bottom: 27px; left: 50%; width: max-content; max-width: 250px; padding: 8px 10px; transform: translateX(-50%); border: 1px solid #445372; border-radius: 8px; background: #202939; color: #fff; font-size: 12px; line-height: 1.35; font-weight: 500; white-space: normal; text-align: left; box-shadow: 0 12px 30px #0009; }
.seek-marker:hover::after, .seek-marker:focus-visible::after { display: block; }
.playback-time { flex: none; min-width: 110px; color: #bcc7d7; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.volume-slider { flex: none; width: 66px; padding: 0; border: 0; background: transparent; accent-color: #fdd700; }
.stage-actions { min-height: 68px; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #303a4d; }
.stage-actions > div { display: flex; gap: 8px; }
.stage-actions span { color: #aeb9c9; font-size: 13px; font-variant-numeric: tabular-nums; }
.tiny { padding: 9px 12px; font-size: 13px; }
.tiny.accent { border-color: #fdd700; background: #fdd700; color: #000; font-weight: 750; }
.timeline-caption { padding: 18px 21px; color: #8795aa; font-size: 13px; }

.sidebar { min-height: 600px; }
.sidebar-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 24px; border-bottom: 1px solid #303a4d; }
.sidebar-head h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.8px; }
.sidebar-head h2 span { color: #8e9bad; font-size: 16px; }
.comments { max-height: 72vh; overflow-y: auto; padding: 14px; }
.comment-card { margin-bottom: 10px; padding: 17px; border: 1px solid #303a4d; border-radius: 12px; background: #171d27; }
.comment-card.done { background: #11251c; border-color: #328d61; }
.comment-card.done .time-link { background: #22583e; color: #c9f5da; }
.comment-card.done .status-btn { color: #78e9aa; }
.comment-top, .comment-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.comment-card p { margin: 15px 0; color: #f0f3f7; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.time-link { padding: 6px 9px; border: 0; border-radius: 7px; background: #263756; color: #fff; font-size: 13px; font-weight: 750; }
.time-link:hover { background: #344d7c; }
.meta { color: #9ca8bb; font-size: 13px; }
.comment-bottom { margin-top: 16px; }
.status-btn { border: 0; background: none; color: #fdd700; font-size: 13px; }
.comment-card img { display: block; max-width: 100%; max-height: 130px; margin-top: 12px; border-radius: 7px; background: #000; }
.comment-card img.comment-image { max-height: 220px; }
.comment-image-button { display: block; max-width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.comment-image-button:hover img, .comment-image-button:focus-visible img { outline: 2px solid #fdd700; }
.comment-card audio { width: 100%; margin-top: 12px; }
.empty-comments { padding: 80px 24px; color: #9ca8bb; line-height: 1.6; text-align: center; }

.toast { position: fixed; z-index: 10; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 10px; background: #fdd700; color: #000; box-shadow: 0 14px 40px #0007; }
dialog { width: min(540px, calc(100vw - 24px)); padding: 0; border: 1px solid #35425b; border-radius: 18px; background: #171d27; color: #fff; box-shadow: 0 35px 100px #000b; }
dialog::backdrop { background: #050608ba; }
.image-viewer { position: fixed; width: min(96vw, 1600px); max-width: none; max-height: 96vh; overflow: auto; padding: 16px; border-radius: 12px; background: #0b0d12; text-align: center; }
.image-viewer img { display: block; max-width: 100%; max-height: calc(96vh - 78px); margin: 0 auto; object-fit: contain; }
.image-viewer-close { position: sticky; top: 0; z-index: 1; display: block; margin-left: auto; padding: 2px 11px; border: 1px solid #647186; border-radius: 8px; background: #1b2433; color: #fff; font-size: 26px; }
.image-viewer-caption { padding: 8px 0 0; color: #b7c2d1; font-size: 13px; }
dialog form { padding: 28px; }
dialog input, dialog textarea { width: 100%; margin-bottom: 18px; }
dialog textarea { min-height: 108px; resize: vertical; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; }
.dialog-head h2 { margin: 8px 0 22px; font-size: 30px; letter-spacing: -1px; }
.icon-btn { padding: 2px 10px; font-size: 22px; }
.at-time { display: inline-block; margin-bottom: 22px; padding: 8px 12px; border-radius: 7px; background: #263756; color: #fdd700; font-size: 14px; font-weight: 750; }
.attachment-row, .annotation-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; color: #a8b3c2; font-size: 13px; }
.attachment-row { flex-wrap: wrap; }
.attachment-row #recordBtn { border-color: #c56364; }
.attachment-row #recordBtn:hover { background: #382427; }
.attachment-row #recordState { color: #c56364; }
.annotation-preview { justify-content: space-between; color: #fdd700; }
.text-btn { padding: 4px; border: 0; color: #fdd700; }
.dialog-actions { display: flex; justify-content: end; gap: 10px; margin-top: 22px; }
.stage:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.stage:fullscreen .player-wrap { flex: 1; min-height: 0; aspect-ratio: auto; }
.stage:fullscreen .timeline-caption { display: none; }

@media (max-width: 1000px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { min-height: 300px; }
  .comments { max-height: none; }
}
@media (max-width: 640px) {
  .topbar { height: 64px; }
  .top-right { gap: 9px; }
  .top-right .quiet { display: none; }
  .home { padding-top: 70px; }
  .home-heading h1 { letter-spacing: -3px; }
  .home-heading p { font-size: 17px; }
  .start-card { padding: 22px; }
  .start-row, .workspace-heading, .stage-actions { flex-direction: column; align-items: stretch; }
  .workspace { padding-top: 28px; }
  .stage-actions > div { justify-content: space-between; }
  .stage-actions .tiny { flex: 1; }
  .playback { gap: 7px; padding: 10px; }
  .playback-time { min-width: 87px; font-size: 11px; }
  .playback-button { width: 30px; height: 30px; }
  .volume-slider { display: none; }
  .player-wrap { aspect-ratio: 4 / 3; }
  .empty-player span { padding: 0 20px; font-size: 13px; }
  .draw-hint { font-size: 12px; }
}

.draw-tools #drawHelp { margin-left: auto; min-width: 32px; border-radius: 50%; }
.stage:fullscreen > :not(.player-wrap) { flex-shrink: 0; }

.access-notice { padding: 24px; background: #171d27; border: 1px solid #2c3543; border-radius: 16px; color: #b8c4d7; line-height: 1.6; }
.share-actions { display: grid; gap: 12px; margin-top: 24px; }
#revokeReviewLink { color: #df8e8e; }

#shareDialog{padding:28px;width:min(540px,calc(100vw - 32px));box-sizing:border-box}#shareDialog .dialog-head{gap:16px}#shareDialog .share-actions{margin-top:22px}
