:root {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #15151a;
  background: #f7f7f8;
  --ink: #15151a;
  --muted: #72727c;
  --border: #e1e1e6;
  --annotation-color: #ffcc66;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, textarea, select, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .35; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #5877e8; outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; padding: 0 18px; background: white; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 720; letter-spacing: -.4px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; background: var(--ink); color: white; border-radius: 7px; width: 29px; height: 29px; }
.brand-mark svg { width: 18px; height: 18px; }
.collection-name { display: none; color: #666670; font-size: 12px; }
.collection-name span { padding: 0 10px; color: #bababf; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.reviewer-avatar, .composer-avatar { display: grid; place-items: center; border: 1px solid #dcdce5; background: #ededf2; color: #50505d; font-weight: 650; border-radius: 50%; flex-shrink: 0; }
.reviewer-avatar { width: 32px; height: 32px; font-size: 12px; }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #6b6b75; }
.icon-button:hover { background: #eeeef0; color: #15151a; }
.keyboard-button { display: none; }
.review-page { width: min(1512px, 100%); margin: 0 auto; padding: 16px 12px 0; }
.clip-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.clip-heading-copy { min-width: 0; }
.back-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; min-height: 44px; background: transparent; border: none; font-size: 12px; color: var(--muted); }
.back-button svg { width: 15px; height: 15px; }
.back-button:hover { color: var(--ink); }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h1 { margin: 0; font-size: clamp(21px, 2.3vw, 29px); font-weight: 650; line-height: 1.2; letter-spacing: -.85px; }
.version-label { display: inline-block; padding: 4px 7px; border: 1px solid #dcdce2; border-radius: 5px; color: #6b6b75; background: white; font-size: 10px; font-weight: 550; white-space: nowrap; }
.clip-heading-copy > p { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.meta-divider { color: #c3c3ca; padding: 0 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 1px solid transparent; border-radius: 6px; padding: 0 14px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.button svg { width: 15px; height: 15px; }
.secondary { background: white; color: #3d3d44; border-color: #dadade; }
.secondary:hover { background: #eeeef0; }
.primary { color: white; background: #15151a; border-color: #15151a; }
.primary:hover { background: #36363d; }
.export-button { margin-left: auto; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.workspace > * { min-width: 0; }
.player-panel { background: #fff; border: 1px solid #dcdce2; border-radius: 10px; overflow: hidden; }
.player-topbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #15151a; color: #bababf; min-height: 44px; padding: 0 14px; }
.player-label { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #bebec8; }
.subtle-button { display: flex; align-items: center; gap: 6px; background: transparent; color: #ceced6; min-height: 44px; border: none; font-size: 10px; padding: 0 3px; }
.subtle-button svg { width: 15px; height: 15px; }
.subtle-button[aria-pressed="false"] { opacity: .45; }
.stage { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; background: #15151a; padding: 6px 12px 12px 8px; min-height: 408px; }
.tool-rail { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1px; align-self: center; padding: 5px 0; background: #212127; border: 1px solid #36363d; border-radius: 8px; }
.tool-button { width: 42px; min-height: 38px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #a5a5af; background: transparent; border: none; border-radius: 5px; font-size: 8px; }
.tool-button svg { width: 16px; height: 16px; }
.tool-button:hover { color: white; background: #34343b; }
.tool-button.active, .tool-button[aria-pressed="true"] { background: #ffcc66; color: #342a1a; }
.tool-divider { display: block; width: 22px; height: 1px; background: #3b3b43; margin: 4px 0; }
.video-positioner { min-width: 0; display: flex; align-items: center; justify-content: center; }
.video-frame { position: relative; width: auto; height: 350px; aspect-ratio: 9/16; background: #050505; box-shadow: 0 8px 32px #0005; overflow: hidden; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; }
#drawing { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: default; }
#drawing[data-tool="freehand"], #drawing[data-tool="rectangle"], #drawing[data-tool="ellipse"], #drawing[data-tool="line"], #drawing[data-tool="arrow"] { cursor: crosshair; }
.stage-hint { grid-column: 1 / -1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 12px; color: #95959f; font-size: 9px; text-align: center; }
.stage-hint > #toolHint { min-width: 0; overflow-wrap: anywhere; }
.hint-dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: #ffcc66; }
.transport { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px; padding: 5px 8px; border-bottom: 1px solid #eeeef0; }
.transport-main, .transport-options { display: flex; align-items: center; gap: 0; }
.play-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; }
.play-button:hover { background: #eeeef0; }
#playIcon { display: grid; place-items: center; }
#playIcon svg { width: 18px; height: 18px; fill: currentColor; }
.time-display { display: flex; align-items: center; gap: 7px; padding-left: 6px; font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 550; }
.time-slash, #durationLabel { color: #9898a3; font-weight: 450; }
.transport-options { margin-left: auto; }
.transport-options select { height: 44px; min-width: 48px; border: 0; color: #62626d; background: white; padding: 0 4px; font-size: 11px; cursor: pointer; }
.transport .icon-button { width: 36px; }
.transport .icon-button svg { width: 16px; height: 16px; }
.timeline-wrap { padding: 15px 14px 0; }
.scrub-area { position: relative; height: 66px; }
.filmstrip { height: 40px; border-radius: 4px; background-image: linear-gradient(#15151a28,#15151a28), url('strip.jpg'); background-size: 100% 100%; border: 1px solid #dcdce2; }
#seek { appearance: none; -webkit-appearance: none; position: absolute; left: 0; top: 0; height: 40px; width: 100%; margin: 0; cursor: pointer; background: transparent; z-index: 2; }
#seek::-webkit-slider-runnable-track { height: 40px; background: transparent; }
#seek::-moz-range-track { height: 40px; background: transparent; }
#seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 3px; height: 46px; background: white; border: 1px solid #15151a; border-radius: 0; box-shadow: 0 0 0 1px #fff8; margin-top: -3px; }
#seek::-moz-range-thumb { width: 3px; height: 46px; background: white; border: 1px solid #15151a; border-radius: 0; }
.marker-track { position: absolute; top: 42px; left: 0; right: 0; height: 24px; }
#markerTrack button { position: absolute; top: -8px; min-width: 28px; min-height: 32px; transform: translateX(-50%); padding: 0; border: 0; color: #8b6527; background: transparent; font-size: 9px; font-weight: 650; z-index: 3; }
#markerTrack button::before { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #ffcc66; border: 2px solid white; top: 10px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 0 1px #deb15b; z-index: -1; }
#markerTrack button.active::before { background: #15151a; box-shadow: 0 0 0 1px #15151a; }
.timeline-labels { display: flex; justify-content: space-between; margin-top: 1px; font-size: 8px; color: #9696a0; font-variant-numeric: tabular-nums; }
.timeline-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px; padding: 5px 0; font-size: 9px; color: #888893; }
.timeline-footer > span { display: flex; align-items: center; gap: 6px; }
.feedback-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #dfad50; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 0 3px; border: 0; background: transparent; color: #595965; font-size: 10px; font-weight: 550; }
.text-button svg { width: 13px; height: 13px; }
.text-button:hover { color: var(--ink); }
.feedback-panel { background: white; border: 1px solid #dcdce2; border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.feedback-heading { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 18px 17px 8px; flex-wrap: wrap; }
.feedback-heading h2 { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; margin: 0; letter-spacing: -.3px; }
.count-badge { display: inline-grid; place-items: center; min-width: 21px; height: 20px; background: #eeeef0; color: #7a7a82; border-radius: 5px; font-size: 10px; font-weight: 550; }
.save-state { display: inline-flex; align-items: center; gap: 4px; color: #85858e; font-size: 8px; }
.save-state::before { content: ''; width: 4px; height: 4px; background: #79a187; border-radius: 50%; }
.save-state.error { color: #ae3e31; }
.save-state.error::before { background: #ae3e31; }
.feedback-tabs { display: flex; gap: 18px; padding: 0 17px; border-bottom: 1px solid #e8e8ed; }
.feedback-tabs button { min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: none; color: #8b8b95; font-size: 11px; padding: 0 0 2px; }
.feedback-tabs button span { margin-left: 3px; font-size: 9px; }
.feedback-tabs button.active { color: #15151a; border-bottom-color: #15151a; font-weight: 650; }
.feedback-scroll { flex: 1; min-height: 240px; overflow-y: auto; }
.feedback-guide { margin: 15px 17px 12px; color: #92929d; font-size: 10px; }
.comment-list { padding: 0 10px 16px; }
.feedback-card { position: relative; padding: 14px 12px; border-radius: 7px; border: 1px solid transparent; margin-bottom: 7px; cursor: pointer; }
.feedback-card:hover { background: #f7f7f8; }
.feedback-card.selected { background: #f7f7f8; border-color: #dcdce2; }
.feedback-card.selected::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; background: #15151a; border-radius: 0 2px 2px 0; }
.note-top { display: flex; align-items: center; gap: 7px; }
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #e5e9ed; color: #566271; font-size: 9px; font-weight: 650; }
.note-author { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; font-size: 11px; font-weight: 600; }
.note-meta { display: flex; flex-direction: column; gap: 3px; font-size: 9px; color: #9a9aa3; font-weight: 400; }
.note-meta strong { font-size: 11px; font-weight: 600; color: #3d3d44; }
.avatar-sam { background: #eee8e4; color: #897466; }
.avatar-you { background: #ededf2; color: #626278; }
.note-time { display: inline-flex; align-items: center; min-height: 30px; padding: 0 6px; border: 1px solid #e1d4bb; border-radius: 4px; background: #fff8e9; color: #9e6c1b; font-size: 9px; font-variant-numeric: tabular-nums; font-weight: 600; }
.note-body { margin: 10px 0 10px; color: #4d4d58; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.note-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; }
.note-shape-label { display: flex; align-items: center; gap: 5px; min-height: 32px; padding: 0; border: 0; background: none; color: #8c8c98; font-size: 9px; }
.delete-note { padding: 0 4px; min-height: 32px; border: 0; background: none; color: #a15b53; font-size: 9px; }
.note-shape-label svg { width: 12px; height: 12px; }
.resolve-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 0 4px; font-size: 9px; color: #777782; border: 0; background: transparent; }
.resolve-button:hover { color: #15151a; }
.resolve-button svg { width: 12px; height: 12px; }
.feedback-card.resolved { opacity: .7; }
.empty-feedback { padding: 45px 20px; text-align: center; color: #85858e; }
.empty-feedback > svg { width: 28px; height: 28px; color: #7a9883; }
.empty-feedback h3 { margin: 10px 0 6px; font-size: 14px; font-weight: 550; color: #3d3d44; }
.empty-feedback p { font-size: 11px; }
.composer { border-top: 1px solid #e8e8ed; padding: 15px 16px 12px; margin-top: auto; background: #fff; }
.composer-heading { display: flex; align-items: center; gap: 6px; margin-bottom: 11px; }
.composer-avatar { width: 22px; height: 22px; font-size: 8px; }
.composer-heading h3 { margin: 0; font-size: 11px; font-weight: 600; }
.composer-time { margin-left: auto; padding: 3px 5px; background: #f2f2f5; border-radius: 3px; font-size: 9px; color: #777782; font-variant-numeric: tabular-nums; }
.composer textarea { display: block; width: 100%; min-height: 84px; padding: 10px; border: 1px solid #dadade; border-radius: 6px; background: white; color: #3d3d44; font-size: 12px; line-height: 1.7; resize: vertical; }
.composer textarea::placeholder { color: #a0a0aa; }
.composer textarea:focus { border-color: #6e6e7c; }
.composer-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 7px; }
.composer-tip { margin-right: auto; max-width: 115px; font-size: 9px; line-height: 1.5; color: #9a9aa4; }
.composer-bottom .button { min-height: 36px; font-size: 10px; padding: 0 10px; }
.preview-footer { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 18px 0; font-size: 9px; color: #9a9aa3; line-height: 1.7; }
.preview-label { color: #71717c; font-weight: 600; }
.preview-footer a { color: #595965; text-underline-offset: 3px; }
.frame-note { display: none; }
.gallery-overlay { position: fixed; inset: 0; background: #f7f7f8; z-index: 15; overflow-y: auto; padding: 36px 20px; }
.gallery-inner { width: min(980px,100%); margin: 0 auto; }
.gallery-top { display: flex; justify-content: space-between; align-items: center; }
.gallery-top p { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.gallery-top h2 { margin: 0; font-size: 28px; letter-spacing: -.8px; font-weight: 650; }
.gallery-description { font-size: 13px; color: var(--muted); margin: 18px 0 28px; }
.gallery-cards { display: grid; grid-template-columns: minmax(0,310px); }
.gallery-card { display: flex; flex-direction: column; gap: 16px; padding: 12px; background: white; border: 1px solid #dadade; border-radius: 10px; text-align: left; }
.gallery-card img { width: 100%; height: 280px; object-fit: contain; background: #15151a; border-radius: 6px; }
.gallery-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.5px; margin: 10px 0; }
.gallery-card p { color: var(--muted); font-size: 11px; }
.gallery-card p span { padding: 0 5px; color: #bababf; }
.gallery-demo-note { font-size: 11px; color: #93939d; margin-top: 24px; }
dialog { width: min(390px, calc(100% - 32px)); margin: auto; padding: 18px 22px; border: 1px solid #dadade; border-radius: 10px; color: var(--ink); box-shadow: 0 20px 90px #15151a25; }
dialog::backdrop { background: #15151a80; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.4px; }
.shortcut-list { margin: 10px 0; }
.shortcut-list > div { display: flex; justify-content: space-between; align-items: center; min-height: 43px; font-size: 12px; color: #676772; border-bottom: 1px solid #eeeef0; }
.shortcut-list dd { display: flex; align-items: center; gap: 5px; }
kbd { min-width: 24px; padding: 3px 5px; text-align: center; border: 1px solid #dadade; border-bottom-width: 2px; border-radius: 4px; font-size: 11px; font-family: inherit; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 18px; border-radius: 7px; color: white; background: #25252d; box-shadow: 0 5px 25px #0002; font-size: 12px; z-index: 25; max-width: calc(100% - 32px); }
.video-frame:fullscreen { height: 100dvh; width: 100vw; display: flex; justify-content: center; align-items: center; background: black; }
.video-frame:fullscreen video { width: auto; max-width: 100%; height: 100%; }
.video-frame:fullscreen #drawing { left: 50%; transform: translateX(-50%); width: min(100vw, 56.25dvh); height: min(100dvh, 177.7778vw); top: 50%; translate: 0 -50%; }
#markerTrack button.selected::before { background: #15151a; box-shadow: 0 0 0 1px #15151a; }
#markerTrack button.resolved::before { background: #bababf; box-shadow: 0 0 0 1px #bababf; }
.save-state[data-state="error"] { color: #ae3e31; }
.save-state[data-state="error"]::before { background: #ae3e31; }
@media (max-width: 599px) {
  .tool-button { min-height: 44px; }
  .tool-button span { display: none; }
  .tool-divider { margin: 2px 0; }
  .stage { min-height: 400px; }
  .tool-rail { padding: 2px 0; }
  .transport-main { flex: 1; }
  .transport .icon-button { width: 44px; }
  .transport-options { width: 100%; justify-content: flex-end; margin-top: -4px; }
  .transport-options select { margin-left: auto; }
  .time-display { margin-left: auto; font-size: 9px; }
  .transport { padding: 2px 8px; }
  .timeline-footer { font-size: 8px; }
  #markerTrack button { min-width: 44px; min-height: 44px; top: -14px; }
  #markerTrack button::before { top: 16px; }
  .feedback-panel { min-height: 540px; }
  .feedback-heading { padding-top: 20px; }
  .note-body { font-size: 14px; }
  .note-time, .resolve-button, .note-shape-label, .delete-note { min-height: 44px; }
  .composer textarea, .transport-options select { font-size: 16px; }
  .composer-bottom .button { min-height: 44px; font-size: 12px; }
  .save-state { font-size: 9px; }
  .preview-footer { text-align: center; }
}
@media (min-width: 600px) {
  .app-header { padding: 0 28px; }
  .collection-name, .keyboard-button { display: flex; }
  .review-page { padding: 20px 24px 0; }
  .stage { grid-template-columns: 56px minmax(0,1fr) 44px; padding: 0 18px 12px 16px; min-height: 493px; }
  .tool-rail { width: 48px; }
  .video-frame { height: 440px; }
  .transport { padding: 5px 14px; }
  .time-display { font-size: 11px; padding-left: 10px; }
  .timeline-wrap { padding: 18px 20px 0; }
  .feedback-panel { min-height: 500px; }
}
@media (min-width: 820px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 326px; gap: 20px; align-items: stretch; }
  .clip-heading { margin-bottom: 22px; }
  .feedback-panel { height: 100%; }
  .feedback-scroll { min-height: 0; }
  .app-header { padding: 0 32px; }
  .review-page { padding: 17px 32px 0; }
  .video-frame { height: clamp(400px, 53vh, 530px); }
  .stage { min-height: 455px; }
  .frame-note { display: inline; margin-left: 10px; }
}
@media (min-width: 1250px) {
  .workspace { grid-template-columns: minmax(0,1fr) 360px; }
  .review-page { padding-left: 44px; padding-right: 44px; }
  .feedback-heading { padding: 21px 20px 10px; }
  .feedback-tabs { padding: 0 20px; }
  .composer { padding: 18px 20px 15px; }
  .composer-tip { max-width: none; }
  .stage { padding-left: 24px; padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Production workspace, login and gallery retain the approved preview palette. */
html, body { min-width: 320px; }
body { overflow-x: clip; }
button, a, input, textarea { touch-action: manipulation; }
button { overflow-wrap: anywhere; }
.reviewer-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: #72727c; }
.header-actions { gap: 10px; min-width: 0; }
.header-actions #signOutButton { white-space: nowrap; }
.brand { color: var(--ink); text-decoration: none; }
.review-page { padding-bottom: 26px; }
.clip-heading-copy, .clip-heading-copy h1 { overflow-wrap: anywhere; }
.collection-name { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-actions { display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid #eeeef0; }
.feedback-actions .text-button { min-height: 36px; }
.save-error { color: #a54031; background: #fff5f1; padding: 10px 14px; margin: 0; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.save-state { font-size: 9px; }
.save-state[data-state="error"]::before { background: #a54031; }
.save-state:not([data-state="error"])::before { flex: 0 0 auto; }
.feedback-scroll { max-height: 510px; }
.frame-help { color: #93939d; font-size: 10px; line-height: 1.7; margin: 14px 0 0; text-align: center; }
.video-frame { max-width: 100%; flex: 0 0 auto; }
.video-frame:fullscreen { width: 100vw !important; height: 100dvh !important; max-width: 100%; }
.video-frame:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.video-frame:fullscreen #drawing { width: min(100vw, calc(100dvh * var(--video-aspect, .5625))); height: min(100dvh, calc(100vw / var(--video-aspect, .5625))); }
.filmstrip { background-image: linear-gradient(90deg,#35353e,#55555f); }
.timeline-labels { font-size: 8px; gap: 2px; }
.timeline-labels span { white-space: nowrap; }
#markerTrack { left: 12px; right: 12px; }
.gallery-page { width: min(1320px,100%); margin: auto; padding: 46px 32px 48px; }
.gallery-top { align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.gallery-top h1 { font-size: clamp(25px,3vw,34px); }
.gallery-actions { display: flex; gap: 9px; }
.gallery-description { line-height: 1.7; }
.gallery-cards { grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr)); gap: 22px; }
.gallery-card { padding: 0; gap: 0; overflow: hidden; box-shadow: 0 2px 4px #15151a03; transition: border-color .15s; }
.gallery-card:hover { border-color: #a5a5b2; }
.gallery-open { display: flex; flex-direction: column; min-width: 0; width: 100%; background: transparent; border: 0; padding: 12px; text-align: left; flex: 1; }
.gallery-image { position: relative; width: 100%; height: 246px; background: #15151a; border-radius: 6px; overflow: hidden; }
.gallery-card img { width: 100%; height: 100%; border-radius: 0; display: block; }
.gallery-card img:not([src]) { visibility: hidden; }
.clip-duration { position: absolute; bottom: 9px; right: 9px; color: #f7f7f8; background: #15151acb; border: 1px solid #ffffff26; padding: 4px 6px; font-size: 10px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.gallery-card-copy { padding: 17px 2px 12px; flex: 1; width: 100%; }
.gallery-card h2 { margin: 11px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.4px; line-height: 1.4; overflow-wrap: anywhere; }
.gallery-card p { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.gallery-card-footer { width: 100%; padding: 12px 2px 0; border-top: 1px solid #eeeef0; font-size: 10px; color: #85858e; display: flex; justify-content: space-between; }
.open-count { background: #f2f2f5; color: #61616e; padding: 2px 5px; border-radius: 4px; }
.unshare-button { border: 0; border-top: 1px solid #eeeef0; background: transparent; color: #888893; min-height: 44px; font-size: 10px; }
.unshare-button:hover { color: #a54031; background: #fff9f7; }
.gallery-empty { min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px dashed #d4d4dc; border-radius: 10px; padding: 32px; }
.gallery-empty svg { color: #a2a2ad; width: 32px; height: 32px; }
.gallery-empty h2 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; margin: 16px 0 6px; }
.gallery-empty p { color: #85858e; font-size: 12px; line-height: 1.7; }
.login-page { display: flex; justify-content: center; padding: min(9vh,70px) 20px 36px; }
.login-card { width: min(430px,100%); border: 1px solid #dddde4; border-radius: 12px; background: white; padding: 32px; box-shadow: 0 8px 30px #15151a03; }
.login-card .brand-mark { width: 38px; height: 38px; border-radius: 9px; }
.eyebrow { font-size: 10px; color: #85858e; margin: 24px 0 10px; }
.login-card h1 { font-size: 25px; line-height: 1.3; letter-spacing: -.8px; }
.login-copy { color: #85858e; font-size: 12px; line-height: 1.9; margin: 13px 0 24px; }
.login-card > label { font-size: 11px; display: block; margin: 22px 0 8px; font-weight: 550; }
.login-card > input { display: block; width: 100%; border: 1px solid #d6d6df; border-radius: 6px; height: 46px; padding: 0 12px; font-size: 14px; }
.login-card > .button { margin-top: 16px; width: 100%; }
.login-note { color: #9999a3; font-size: 10px; line-height: 1.8; text-align: center; margin: 18px 0 0; }
.login-choices { display: flex; flex-direction: column; gap: 8px; }
.login-choice { border: 1px solid #e1e1e6; border-radius: 6px; display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 8px 12px; background: #fafafb; text-align: left; font-size: 12px; }
.login-choice:hover { border-color: #a5a5b2; background: #f2f2f5; }
.login-choice .avatar { width: 28px; height: 28px; }
.form-error { color: #a54031; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.loading-page { display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 60px 24px; min-height: 50vh; text-align: center; color: #85858e; font-size: 13px; line-height: 1.8; }
.loading-dot { width: 9px; height: 9px; background: #ffcc66; border-radius: 50%; margin-bottom: 8px; }
.manage-dialog { width: min(720px,calc(100% - 32px)); max-height: min(800px,85dvh); }
.dialog-description { color: #85858e; font-size: 12px; line-height: 1.8; margin: 10px 0 20px; }
.available-clips { max-height: 52dvh; overflow-y: auto; border-top: 1px solid #eeeef0; }
.available-clip { display: flex; align-items: center; gap: 12px; padding: 15px 2px; border-bottom: 1px solid #eeeef0; cursor: pointer; }
.available-clip input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #15151a; }
.available-copy { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.available-copy strong { color: #3d3d44; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.available-copy > span { color: #85858e; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.already-shared { opacity: .6; cursor: default; }
.dialog-footer { border-top: 1px solid #eeeef0; padding: 14px 0 0; display: flex; justify-content: flex-end; }
.publish-status { color: #72727c; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.muted { font-size: 12px; color: #85858e; line-height: 1.8; }
.conflict-label { color: #85858e; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; margin: 18px 0 8px; }
.conflict-copy { color: #4d4d58; padding: 12px; background: #f7f7f8; border-radius: 6px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; max-height: 150px; overflow-y: auto; }
.conflict-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 20px 0 3px; }
@media (min-width: 820px) {
  .workspace { align-items: start; }
  .feedback-panel { max-height: 835px; height: 100%; min-height: 690px; }
  .feedback-scroll { min-height: 100px; }
  .stage { grid-template-columns: 56px minmax(0,1fr) 44px; }
}
@media (max-width: 599px) {
  .app-header { padding: 0 12px; }
  .header-actions { gap: 4px; }
  .reviewer-name { display: none; }
  .header-actions .text-button { padding: 0 6px; }
  .gallery-page { padding: 28px 16px; }
  .gallery-top { gap: 18px; }
  .gallery-top > div:first-child { width: 100%; }
  .gallery-actions { width: 100%; justify-content: flex-end; }
  .gallery-description { font-size: 12px; margin: 19px 0 23px; }
  .gallery-cards { gap: 16px; }
  .gallery-image { height: 280px; }
  .login-card { padding: 26px 22px; }
  .login-card > input { font-size: 16px; }
  .login-page { padding: 28px 14px; }
  .feedback-actions .text-button { min-height: 44px; }
  .feedback-panel { min-height: 570px; }
  .feedback-scroll { max-height: 430px; }
  .composer-tip { max-width: 96px; }
  .frame-help { text-align: left; font-size: 9px; }
  .note-shape-label, .resolve-button, .delete-note { padding-left: 5px; padding-right: 5px; }
  .tool-rail { align-self: center; }
  .timeline-labels span:nth-child(2), .timeline-labels span:nth-child(4) { display: none; }
  .video-positioner { padding: 0 0 0 8px; }
  .available-clip { gap: 9px; }
  .available-clip .version-label { font-size: 8px; }
}
