@charset "UTF-8";

.frame-note-trigger {
  appearance: none;
  min-height: 29px;
  justify-self: start;
  padding: 0 9px;
  border: 1px solid var(--cobalt);
  background: var(--cobalt);
  color: var(--ivory);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.frame-note-trigger span { margin-left: 5px; color: var(--sulfur); }
.frame-note-trigger:hover, .frame-note-trigger:focus-visible { border-color: var(--sulfur); box-shadow: inset 3px 0 0 var(--sulfur); }
.media-review-controls:has(.frame-note-trigger) { grid-template-columns: auto auto auto auto 1fr; }

.frame-review-dialog {
  position: fixed;
  z-index: 72;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--carbon);
  color: var(--ivory);
  overflow: hidden;
}
.frame-review-dialog::backdrop { background: rgba(5, 6, 5, .96); }
.frame-review-window { display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100%; background: radial-gradient(circle at 74% 0, rgba(52,96,222,.14), transparent 36rem), repeating-linear-gradient(-45deg, rgba(241,234,219,.018) 0 1px, transparent 1px 11px), var(--carbon); }
.frame-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; min-height: 74px; padding: 16px 22px 13px; border-bottom: 1px solid var(--line); }
.frame-review-head h2 { margin: 3px 0 0; font-family: var(--serif); font-size: 38px; font-weight: 400; letter-spacing: -.055em; line-height: .9; }
.frame-review-head > div:first-child > span:last-child { display: block; margin-top: 6px; color: var(--ivory-dim); font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.frame-review-head__actions { display: flex; align-items: center; gap: 14px; }
.review-mode-tabs { display: inline-flex; align-items: center; border: 1px solid var(--line); background: rgba(16,17,16,.72); }
.review-mode-tabs button { appearance: none; min-height: 31px; padding: 0 11px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ivory-dim); cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.review-mode-tabs button:last-child { border-right: 0; }
.review-mode-tabs button:hover, .review-mode-tabs button:focus-visible { color: var(--sulfur); }
.review-mode-tabs button.is-active { background: var(--sulfur); color: var(--carbon); }
.review-mode-tabs--comments { margin-top: 9px; }
.review-mode-tabs--comments button { min-height: 26px; font-size: 7px; }

.frame-review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); min-height: 0; }
.frame-review-media-column { display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto auto; min-width: 0; min-height: 0; padding: 10px 12px 9px; border-right: 1px solid var(--line); }
.frame-review-stage { display: grid; min-height: 0; place-items: center; overflow: hidden; border: 1px solid rgba(241,234,219,.16); background: #090b0a; }
.frame-review-media-box { position: relative; max-width: 100%; max-height: 100%; overflow: hidden; background: #050605; box-shadow: 0 18px 64px rgba(0,0,0,.35); }
.frame-review-media-box video, .frame-review-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-review-media-box video { display: block; object-fit: contain; background: #050605; }
.frame-review-overlay { z-index: 2; overflow: visible; touch-action: none; cursor: crosshair; }
.frame-review-dialog.is-playing .frame-review-overlay { opacity: 0; pointer-events: none; }
.frame-review-overlay:not(.is-active) { pointer-events: none; cursor: default; }
.frame-mark { vector-effect: non-scaling-stroke; }
.frame-mark.is-fix { stroke: var(--sulfur); }
.frame-mark.is-keep { stroke: #53d6c3; }
.frame-mark--pin circle { fill: rgba(16,17,16,.88); stroke-width: 3px; vector-effect: non-scaling-stroke; }
.frame-mark--pin text { fill: var(--ivory); stroke: none; font-family: var(--mono); font-size: 22px; font-weight: 900; text-anchor: middle; }
.frame-mark--region { fill: rgba(234,212,79,.08); stroke-width: 3px; stroke-dasharray: 10 6; vector-effect: non-scaling-stroke; }
.frame-mark--region.is-keep { fill: rgba(83,214,195,.08); }
.frame-mark--drawing { fill: none; stroke-linecap: round; stroke-linejoin: round; }

.frame-review-nav { display: grid; grid-template-columns: auto auto minmax(120px, auto) auto auto auto; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 6px 0 4px; }
.frame-review-nav button, .frame-review-tools button, .frame-review-note-head button, .frame-review-form-foot button, .frame-review-login button { appearance: none; min-height: 29px; padding: 0 9px; border: 1px solid var(--line); background: rgba(241,234,219,.035); color: var(--ivory); cursor: pointer; font: inherit; font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.frame-review-nav button:hover, .frame-review-nav button:focus-visible, .frame-review-tools button:hover, .frame-review-tools button:focus-visible, .frame-review-note-head button:hover, .frame-review-note-head button:focus-visible { border-color: var(--sulfur); color: var(--sulfur); }
.frame-review-nav output { min-width: 122px; color: var(--sulfur); font-family: var(--mono); font-size: 16px; font-weight: 900; letter-spacing: .09em; text-align: center; }
.frame-review-nav > span { color: var(--ivory-dim); font-size: 7px; font-weight: 700; letter-spacing: .07em; white-space: nowrap; }

.frame-review-timeline { min-height: 27px; padding: 5px 0 7px; cursor: pointer; }
.frame-review-timeline__rail { position: relative; height: 11px; border: 1px solid var(--line); background: repeating-linear-gradient(90deg, rgba(241,234,219,.08) 0 1px, transparent 1px 4%); }
.frame-timeline-marker { position: absolute; z-index: 2; top: -4px; width: 9px; height: 17px; margin-left: -4px; padding: 0; border: 1px solid var(--sulfur); background: var(--carbon); cursor: pointer; transform: rotate(45deg); }
.frame-timeline-marker.is-active { background: var(--sulfur); box-shadow: 0 0 0 3px rgba(234,212,79,.18); }
.frame-timeline-playhead { position: absolute; z-index: 1; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--coral); pointer-events: none; }

.frame-review-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; min-height: 39px; padding: 4px 0; border-top: 1px solid var(--line); }
.frame-review-tools button { min-height: 28px; }
.frame-review-tools button > span { color: var(--sulfur); }
.frame-review-tools button.is-active { border-color: var(--sulfur); background: var(--sulfur); color: var(--carbon); box-shadow: inset 3px 0 0 var(--cobalt); }
.frame-review-tools button.is-active > span { color: var(--cobalt); }
.frame-review-tools__rule { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.frame-review-color i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--sulfur); }
.frame-review-color[data-frame-color="keep"] i { background: #53d6c3; }
.frame-review-shortcuts { margin: 3px 0 0; color: rgba(241,234,219,.45); font-size: 6px; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }

.frame-review-notes { display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); min-width: 0; min-height: 0; padding: 17px 17px 13px; background: rgba(16,17,16,.78); }
.frame-review-note-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.frame-review-note-head strong { display: block; margin-top: 5px; color: var(--sulfur); font-size: 15px; letter-spacing: .08em; }
.frame-review-notes form { margin-top: 13px; }
.frame-review-notes label { display: block; color: var(--ivory-dim); font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.frame-review-notes textarea { width: 100%; min-height: 92px; margin-top: 7px; resize: vertical; padding: 10px; border: 1px solid var(--line); outline: 0; background: rgba(5,6,5,.52); color: var(--ivory); font: inherit; font-family: var(--serif); font-size: 14px; line-height: 1.35; }
.frame-review-notes textarea:focus { border-color: var(--sulfur); box-shadow: 0 0 0 2px rgba(234,212,79,.14); }
.frame-review-notes textarea[readonly] { opacity: .72; }
.frame-review-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 7px; color: var(--ivory-dim); font-size: 7px; }
.frame-review-form-foot > span { margin-right: auto; }
.frame-review-form-foot button[type="submit"] { border-color: var(--sulfur); background: var(--sulfur); color: var(--carbon); }
.frame-review-form-foot .frame-note-delete { border-color: var(--coral); color: var(--coral); }
.frame-review-status { min-height: 18px; margin: 10px 0 8px; color: var(--ivory-dim); font-family: var(--serif); font-size: 12px; line-height: 1.25; }
.frame-review-login { padding: 11px; border: 1px solid var(--cobalt); background: rgba(52,96,222,.1); }
.frame-review-login p { margin: 0 0 8px; color: var(--ivory); font-size: 10px; line-height: 1.4; }
.frame-review-login button { border-color: var(--sulfur); color: var(--sulfur); }
.frame-review-list-section { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.frame-review-list-head { display: flex; justify-content: space-between; color: var(--ivory-dim); font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.frame-review-list-head strong { color: var(--sulfur); }
.frame-review-list { min-height: 0; margin: 7px 0 0; padding: 0; overflow: auto; list-style: none; }
.frame-review-list li { border-top: 1px solid rgba(241,234,219,.11); }
.frame-review-list-item { appearance: none; display: grid; width: 100%; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 8px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--ivory); cursor: pointer; text-align: left; }
.frame-review-list-item:hover, .frame-review-list-item:focus-visible { background: rgba(241,234,219,.04); }
.frame-review-list-item.is-active { border-left-color: var(--sulfur); background: rgba(234,212,79,.07); }
.frame-review-list-item > span b, .frame-review-list-item > span small { display: block; }
.frame-review-list-item > span b { color: var(--sulfur); font-size: 9px; letter-spacing: .08em; }
.frame-review-list-item > span small { margin-top: 3px; color: var(--ivory-dim); font-size: 6px; letter-spacing: .07em; }
.frame-review-list-item > strong { grid-column: 1 / -1; overflow: hidden; font-family: var(--serif); font-size: 12px; font-weight: 400; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.frame-review-list-item > em { grid-column: 2; grid-row: 1; color: var(--cobalt); font-size: 6px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.frame-review-list-empty { display: grid; min-height: 120px; place-content: center; text-align: center; }
.frame-review-list-empty strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.frame-review-list-empty p { margin: 6px 0 0; color: var(--ivory-dim); font-size: 8px; }

@media (max-width: 900px) {
  .media-review-controls:has(.frame-note-trigger) { grid-template-columns: 1fr auto auto auto; }
  .frame-review-head { min-height: 64px; padding: 11px 10px 9px; }
  .frame-review-head h2 { font-size: 28px; }
  .frame-review-head > div:first-child > span:last-child { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .frame-review-head__actions { gap: 5px; }
  .review-mode-tabs button { min-height: 27px; padding: 0 7px; font-size: 6px; }
  .frame-review-layout { display: block; min-height: 0; overflow: auto; }
  .frame-review-media-column { display: grid; min-height: 0; padding: 5px 6px 7px; border-right: 0; border-bottom: 1px solid var(--line); }
  .frame-review-stage { height: min(53vh, 390px); }
  .frame-review-nav { grid-template-columns: auto auto minmax(84px, auto) auto auto; gap: 3px; min-height: 36px; }
  .frame-review-nav button { min-height: 25px; padding: 0 5px; font-size: 5px; }
  .frame-review-nav button span { display: none; }
  .frame-review-nav button[data-frame-action="fullscreen"] { display: none; }
  .frame-review-nav output { min-width: 88px; font-size: 11px; }
  .frame-review-nav > span { font-size: 5px; }
  .frame-review-tools { justify-content: flex-start; gap: 3px; }
  .frame-review-tools button { min-height: 25px; padding: 0 6px; font-size: 5px; }
  .frame-review-tools__rule { margin: 0 1px; }
  .frame-review-shortcuts { display: none; }
  .frame-review-notes { min-height: 430px; padding: 13px 11px 10px; }
  .frame-review-list { max-height: 250px; }
}

@media (max-width: 520px) {
  .frame-note-trigger { min-height: 24px; padding: 0 6px; font-size: 6px; }
  .frame-review-head .slide-kicker, .frame-review-head > div:first-child > span:last-child { display: none; }
  .frame-review-head { align-items: center; }
  .frame-review-head h2 { margin: 5px 0 0; font-size: 24px; }
  .frame-review-stage { height: 44vh; min-height: 250px; }
  .frame-review-nav { grid-template-columns: auto auto 82px auto auto; }
  .frame-review-nav > span { display: none; }
  .frame-review-tools { max-height: 66px; overflow: auto; }
  .frame-review-notes textarea { min-height: 78px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .frame-review-dialog *, .frame-review-dialog *::before, .frame-review-dialog *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
