/* ==========================================================================
   FinalFinal · 2027 Flat Lightweight Review & Studio Design System
   Apple HIG Dark Mode + Google Material 3 Neutral Dark
   Pure Achromatic Darkroom · Native Tabular Sans · Light 400/500 Weights
   Strict CSP: Zero Inline Style · Zero Green Accent
   ========================================================================== */

:root {
  /* Apple HIG / Material 3 纯中性无偏色暗房色阶（彻底去除廉价蓝紫底色） */
  --bg-canvas: #0b0b0c;
  --bg-workspace: #101012;
  --bg-chrome: #141416;
  --bg-surface: #1b1b1e;
  --bg-elevated: #222226;
  --bg-hover: rgba(255, 255, 255, 0.055);
  --bg-active: rgba(255, 255, 255, 0.085);

  /* 2027 极细微光分割线（无厚重描边） */
  --border-hairline: rgba(255, 255, 255, 0.058);
  --border-subtle: rgba(255, 255, 255, 0.038);
  --border-focus: rgba(10, 132, 255, 0.55);

  /* Apple HIG 深色模式光学文本对比度（避免纯白眩光） */
  --text-primary: rgba(255, 255, 255, 0.90);
  --text-secondary: rgba(255, 255, 255, 0.56);
  --text-muted: rgba(255, 255, 255, 0.34);

  /* Apple System Blue 深色规范色（严禁任何绿色色值） */
  --accent: #0a84ff;
  --accent-hover: #2997ff;
  --accent-soft: rgba(10, 132, 255, 0.13);
  --accent-text: #64b5f6;

  /* 柔和琥珀与警示红 */
  --amber: #ff9f0a;
  --amber-soft: rgba(255, 159, 10, 0.12);
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.13);
  --danger-text: #ff6961;

  /* 低饱和高级莫兰迪头像色板（去刺眼荧光色，严格非绿） */
  --av-0: #3a6ea5;
  --av-1: #7a5ea7;
  --av-2: #a8664a;
  --av-3: #4a788e;
  --av-4: #8e5670;
  --av-5: #58668a;

  /* 字体排印栈：原生 Apple SF Pro / Google Inter + 思源黑体（禁用 Menlo 终端体） */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Source Han Sans SC", "思源黑体", "PingFang SC", "Hiragino Sans GB", sans-serif;

  /* 尺寸与轻量圆角令牌 */
  --topbar-h: 44px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-popover: 0 14px 36px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  color: inherit;
}

code {
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

/* 原生等宽数字特性：保持播放时间码零抖动，同时告别丑陋终端字体 */
.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 极简隐形滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sr-only,
.sr-only-copy {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 图标尺寸 */
.icon-11 { width: 11px; height: 11px; flex-shrink: 0; }
.icon-13 { width: 13px; height: 13px; flex-shrink: 0; }
.icon-14 { width: 14px; height: 14px; flex-shrink: 0; }
.icon-15 { width: 15px; height: 15px; flex-shrink: 0; }
.icon-16 { width: 16px; height: 16px; flex-shrink: 0; }

/* ==================== 2027 扁平无框按钮与表单基元 ==================== */
.flat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.flat-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.flat-btn-icon {
  width: 28px;
  padding: 0;
}

.flat-btn-full {
  width: 100%;
  height: 34px;
}

.flat-btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
}

.flat-btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.flat-btn-tonal {
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-primary);
}

.flat-btn-tonal:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
}

.flat-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.flat-btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.flat-btn-danger {
  background: transparent;
  color: var(--danger-text);
}

.flat-btn-danger:hover:not(:disabled) {
  background: var(--danger-soft);
}

.flat-input,
.flat-select {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.flat-input::placeholder {
  color: var(--text-muted);
}

.flat-input:focus,
.flat-select:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.06);
}

.flat-select {
  cursor: pointer;
  padding-right: 22px;
}

.flat-select-full {
  width: 100%;
}

/* 极细进度条 */
.flat-progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.flat-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.flat-progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.flat-progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}

/* ==================== 扁平悬浮下拉菜单 ==================== */
.dropdown-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.flat-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 90;
  min-width: 176px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: rgba(30, 30, 34, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-popover);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.flat-dropdown-right {
  left: auto;
  right: 0;
}

.flat-dropdown-up {
  top: auto;
  bottom: calc(100% + 8px);
}

.speed-menu {
  min-width: 86px;
}

.version-menu {
  min-width: 184px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 29px;
  padding: 4px 9px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.dropdown-item.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 500;
}

.dropdown-item-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dropdown-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==================== 品牌图形标识 ==================== */
.brand-cluster,
.gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.brand-mark-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.brand-wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ==================== 门禁页与口令解锁页 ==================== */
.gate-view {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-canvas);
}

.gate-card {
  width: 100%;
  max-width: 356px;
  padding: 28px 24px 24px;
  border-radius: 12px;
  background: var(--bg-chrome);
  border: 1px solid var(--border-hairline);
}

.gate-title {
  margin: 18px 0 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.gate-desc {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate-error {
  margin: 0;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
}

.gate-actions {
  margin-top: 14px;
}

/* ==================== 全局应用外壳与 44px 轻量顶栏 ==================== */
.app-shell {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-workspace);
}

.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  padding: 0 14px;
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 40;
}

.topbar-left,
.topbar-right,
.topbar-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.topbar-center {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
}

.search-pill {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 9px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-pill-input {
  width: 100%;
  height: 28px;
  padding: 0 26px 0 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 12.5px;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.search-pill-input::placeholder {
  color: var(--text-muted);
}

.search-pill-input:focus {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--border-focus);
}

.search-clear-btn {
  position: absolute;
  right: 5px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

/* 上传进度胶囊 */
.upload-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  max-width: 300px;
}

.upload-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: softPulse 1.4s infinite ease-in-out;
}

@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.upload-text {
  font-size: 11.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.upload-pct {
  font-size: 11.5px;
  color: var(--accent-text);
}

.upload-bar {
  width: 48px;
}

/* ==================== 管理端项目库 (/) ==================== */
.console-body {
  flex: 1;
  height: calc(100vh - var(--topbar-h));
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.console-sidebar {
  width: 204px;
  min-width: 204px;
  background: var(--bg-chrome);
  border-right: 1px solid var(--border-hairline);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-item.is-active {
  background: var(--bg-active);
  color: var(--text-primary);
  font-weight: 500;
}

.sidebar-count {
  font-size: 11.5px;
  color: var(--text-muted);
}

.sidebar-item.is-active .sidebar-count {
  color: var(--text-secondary);
}

.storage-widget {
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.028);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.storage-widget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.storage-label {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.storage-state {
  font-size: 11px;
  color: var(--accent-text);
}

.storage-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.console-main {
  flex: 1;
  min-width: 0;
  background: var(--bg-workspace);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.console-subbar {
  height: 42px;
  min-height: 42px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subbar-left,
.subbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subbar-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
}

.subbar-count {
  font-size: 12px;
  color: var(--text-muted);
}

.view-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

.view-toggle-btn {
  width: 26px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
}

.console-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 28px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
}

.upload-drop-card {
  min-height: 210px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.018);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.upload-drop-card:hover {
  border-color: rgba(10, 132, 255, 0.5);
  background: rgba(10, 132, 255, 0.05);
}

.upload-drop-icon {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.upload-drop-card:hover .upload-drop-icon {
  color: var(--accent-text);
}

.upload-drop-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
}

.upload-drop-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 扁平轻量媒资卡片 */
.asset-card {
  border-radius: var(--radius-md);
  background: var(--bg-chrome);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.asset-card:hover {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.11);
}

.asset-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-canvas);
  overflow: hidden;
}

.asset-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asset-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #0d0d0f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11.5px;
}

.thumb-pill-tl,
.thumb-pill-tr,
.thumb-pill-bl,
.thumb-pill-br {
  position: absolute;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.86);
}

.thumb-pill-tl { top: 8px; left: 8px; }
.thumb-pill-tr { top: 8px; right: 8px; }
.thumb-pill-bl { bottom: 8px; left: 8px; }
.thumb-pill-br { bottom: 8px; right: 8px; color: var(--text-secondary); }

.asset-card-body {
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asset-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asset-title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.asset-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0.72;
  transition: opacity 0.14s ease;
}

.asset-card:hover .asset-quick-actions {
  opacity: 1;
}

.card-icon-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.asset-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.asset-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.asset-client-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 115px;
}

.asset-open-tag {
  color: var(--accent-text);
}

/* 列表模式 */
.asset-list-wrap {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-chrome);
  overflow-x: auto;
}

.asset-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.asset-table th {
  height: 34px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.asset-table td {
  height: 46px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
  vertical-align: middle;
  white-space: nowrap;
}

.asset-table tbody tr {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.asset-table tbody tr:hover {
  background: var(--bg-hover);
}

.asset-table tbody tr:last-child td {
  border-bottom: none;
}

.table-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-mini-thumb {
  width: 52px;
  height: 30px;
  border-radius: 4px;
  background: var(--bg-canvas);
  object-fit: cover;
  flex-shrink: 0;
}

.table-proj-name {
  font-weight: 500;
  color: var(--text-primary);
}

.table-proj-client {
  font-size: 11px;
  color: var(--text-muted);
}

.col-actions {
  text-align: right;
}

.empty-panel {
  margin-top: 24px;
  padding: 40px 20px;
  text-align: center;
}

.empty-panel-title {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.empty-panel-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 2027 扁平轻量审片室 (/r/<share_token>) ==================== */
.review-topbar-left {
  flex: 1;
  min-width: 0;
  gap: 8px;
}

.review-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

/* 无描边轻量版本胶囊 */
.version-pill {
  height: 24px;
  padding: 0 8px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.version-pill:hover {
  background: rgba(255, 255, 255, 0.11);
}

.compare-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* 管理员专属：客户端 / 管理端 轻量切换条 */
.role-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  margin-right: 4px;
}

.role-switch-btn {
  height: 22px;
  padding: 0 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.role-switch-btn:hover {
  color: var(--text-primary);
}

.role-switch-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.is-reviewing { background: var(--amber); }
.status-dot.is-approved { background: var(--accent); }
.status-dot.is-archived { background: var(--text-muted); }

.approve-btn.is-approved {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 400;
}

/* 审片室左右一体骨架 */
.review-workspace {
  flex: 1;
  height: calc(100vh - var(--topbar-h));
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.viewer-column {
  flex: 1;
  min-width: 0;
  background: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.viewer-stage-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
}

.viewer-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: var(--bg-canvas);
  overflow: hidden;
  user-select: none;
}

.stage-compare-grid {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.compare-pane {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-canvas);
}

.stage-compare-grid.is-compare .compare-pane-left {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stage-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg-canvas);
}

.compare-pane-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 25;
}

.compare-tag-btn,
.compare-current-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: none;
  border-radius: 6px;
  background: rgba(18, 18, 21, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 11.5px;
}

.compare-tag-btn {
  cursor: pointer;
}

.compare-current-tag {
  color: var(--accent-text);
}

/* SVG 画面标注与防泄密水印层 */
.overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.watermark-svg { z-index: 12; }

.drawing-svg {
  z-index: 18;
  pointer-events: auto;
  touch-action: none;
  cursor: default;
}

.drawing-svg.is-drawing-mode {
  cursor: crosshair;
}

/* 舞台状态提示与半透明轻浮签 */
.stage-state-overlay {
  position: absolute;
  inset: 0;
  z-index: 28;
  background: rgba(11, 11, 12, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.stage-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin360 0.8s linear infinite;
}

@keyframes spin360 {
  to { transform: rotate(360deg); }
}

.stage-state-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.stage-state-desc {
  margin: 0 0 6px;
  max-width: 360px;
  font-size: 12px;
  color: var(--text-secondary);
}

.stage-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 32;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(22, 22, 25, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 400;
  pointer-events: none;
}

/* ==================== 2027 极简扁平单线时间轴 (30px) ==================== */
.flat-timeline {
  height: 30px;
  min-height: 30px;
  background: var(--bg-canvas);
  user-select: none;
}

.timeline-svg {
  width: 100%;
  height: 30px;
  display: block;
  cursor: pointer;
  touch-action: none;
}

.tl-rail {
  fill: rgba(255, 255, 255, 0.13);
}

.tl-buffer {
  fill: rgba(255, 255, 255, 0.22);
}

.tl-played {
  fill: var(--accent);
}

.tl-playhead-line {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.5;
  pointer-events: none;
}

.tl-playhead-thumb {
  fill: #ffffff;
  pointer-events: none;
}

/* 时间轴轻量批注锚点（告别厚重双层大圆头像） */
.tl-marker-node {
  cursor: pointer;
}

.tl-marker-halo {
  fill: rgba(10, 132, 255, 0.28);
}

.tl-marker-dot {
  stroke: var(--bg-canvas);
  stroke-width: 1.4;
  transition: opacity 0.14s ease;
}

.tl-marker-node.is-resolved .tl-marker-dot {
  opacity: 0.42;
}

.tl-hover-bg {
  fill: rgba(28, 28, 32, 0.94);
  pointer-events: none;
}

.tl-hover-text {
  fill: var(--text-primary);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 400;
  pointer-events: none;
}

/* ==================== 38px 无边框一体传输控制栏 ==================== */
.transport-bar {
  height: 38px;
  min-height: 38px;
  padding: 0 12px 4px;
  background: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.transport-left,
.transport-right,
.frame-step-cluster,
.flat-draw-strip {
  display: flex;
  align-items: center;
  gap: 3px;
}

.transport-btn,
.transport-text-btn {
  height: 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.transport-btn {
  width: 28px;
  padding: 0;
}

.transport-text-btn {
  padding: 0 7px;
  font-size: 12px;
  font-weight: 400;
}

.transport-btn:hover,
.transport-text-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.transport-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.timecode-btn {
  height: 28px;
  padding: 0 6px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
}

.timecode-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tc-now {
  color: var(--text-primary);
}

.tc-slash,
.tc-dur {
  color: var(--text-muted);
}

.draw-colors {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 5px;
}

.color-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: pointer;
  opacity: 0.68;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.color-dot:hover {
  opacity: 1;
}

.color-dot.color-red { background: #ff453a; }
.color-dot.color-amber { background: #ffd60a; }
.color-dot.color-blue { background: #0a84ff; }
.color-dot.color-white { background: #ffffff; }

.color-dot.is-selected {
  opacity: 1;
  transform: scale(1.22);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.72);
}

.transport-sep {
  width: 1px;
  height: 12px;
  margin: 0 3px;
  background: var(--border-hairline);
}

/* ==================== 右侧 340px 扁平纯净审阅侧栏 ==================== */
.review-sidebar {
  width: 340px;
  min-width: 340px;
  background: var(--bg-chrome);
  border-left: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 单层 44px 轻量侧栏头（与顶栏同色同高对齐） */
.sidebar-header {
  height: 42px;
  min-height: 42px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-header-left,
.sidebar-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.sidebar-badge {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.flat-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.filter-tab {
  height: 24px;
  padding: 0 7px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.12s ease, background-color 0.12s ease;
}

.filter-tab:hover {
  color: var(--text-secondary);
}

.filter-tab.is-active {
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-primary);
  font-weight: 500;
}

.sidebar-search-row {
  padding: 6px 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-search-input {
  width: 100%;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
}

.sidebar-search-input:focus {
  border-color: var(--border-focus);
}

/* 批注列表：扁平无卡片框，轻盈呼吸间距 */
.comments-scroll-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-card {
  position: relative;
  padding: 13px 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.comment-card:hover {
  background: rgba(255, 255, 255, 0.024);
}

.comment-card.is-selected {
  background: rgba(10, 132, 255, 0.065);
}

.comment-card.is-selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.comment-card.is-resolved .comment-body-text {
  color: var(--text-muted);
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.comment-author-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.reviewer-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.av-color-0 { background: var(--av-0); }
.av-color-1 { background: var(--av-1); }
.av-color-2 { background: var(--av-2); }
.av-color-3 { background: var(--av-3); }
.av-color-4 { background: var(--av-4); }
.av-color-5 { background: var(--av-5); }

.comment-author-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 无描边轻量时间码标签 */
.tc-chip {
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(10, 132, 255, 0.11);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.draw-chip {
  font-size: 11px;
  color: var(--text-muted);
}

/* 极简勾选解决按钮 */
.resolve-toggle-btn {
  border: none;
  background: transparent;
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.resolve-circle-open {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.25px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.resolve-toggle-btn:hover .resolve-circle-open {
  border-color: var(--accent);
}

.resolve-text-done {
  font-size: 11px;
  color: var(--accent-text);
  font-weight: 400;
}

.comment-body-row {
  padding-left: 27px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.54;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-word;
}

/* 扁平缩进回复（无嵌套盒子底板） */
.reply-list {
  margin: 7px 0 0 27px;
  padding-left: 10px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reply-item {
  font-size: 12px;
  line-height: 1.48;
  color: var(--text-secondary);
}

.reply-author {
  font-weight: 500;
  color: var(--text-primary);
  margin-right: 5px;
}

.reply-form-inline {
  margin: 8px 0 2px 27px;
  display: flex;
  gap: 6px;
}

.reply-input-inline {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
}

.reply-input-inline:focus {
  border-color: var(--border-focus);
}

.comment-foot {
  margin-top: 6px;
  padding-left: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.comment-foot-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.comment-card:hover .comment-foot-actions,
.comment-card.is-selected .comment-foot-actions {
  opacity: 1;
}

.mini-link-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
}

.mini-link-btn:hover {
  color: var(--text-primary);
}

.mini-link-btn.is-danger:hover {
  color: var(--danger-text);
}

.comments-empty {
  padding: 56px 28px;
  text-align: center;
}

.comments-empty-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.comments-empty-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==================== 一体化极简批注输入卡片（告别三层套盒） ==================== */
.composer-wrap {
  padding: 10px 12px 12px;
  background: var(--bg-chrome);
}

.composer-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 9px 11px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.composer-card:focus-within {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1e1e22;
}

.composer-textarea {
  width: 100%;
  min-height: 44px;
  max-height: 104px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.48;
  resize: none;
  outline: none;
}

.composer-textarea::placeholder {
  color: var(--text-muted);
}

.author-inline-row {
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

.author-inline-input {
  width: 100%;
  height: 26px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
}

.author-inline-input::placeholder {
  color: var(--text-muted);
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.composer-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.composer-tc-btn,
.composer-author-btn {
  height: 22px;
  padding: 0 4px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.composer-tc-btn:hover,
.composer-author-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.composer-tc-btn.is-locked {
  color: var(--accent-text);
  background: rgba(10, 132, 255, 0.1);
  padding: 0 6px;
}

.composer-tc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.composer-tc-btn.is-locked .composer-tc-dot {
  background: var(--accent);
}

.composer-dot-sep {
  color: var(--text-muted);
  font-size: 11px;
}

.composer-draw-tag {
  height: 19px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}

.composer-submit-btn {
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* ==================== 扁平模态框与全局轻提示 ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.flat-modal {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  background: var(--bg-chrome);
  box-shadow: var(--shadow-modal);
  padding: 18px 20px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.flat-modal-sm {
  max-width: 376px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-desc {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.modal-file-banner {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flat-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.flat-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
}

.share-box {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.share-box-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.share-box-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-url {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--accent-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-foot {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.modal-foot-between {
  justify-content: space-between;
}

.modal-foot-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 全屏拖拽上传提示层 */
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 11, 12, 0.84);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.drop-overlay-box {
  width: 100%;
  max-width: 400px;
  padding: 34px 28px;
  border-radius: 14px;
  border: 1.5px dashed rgba(10, 132, 255, 0.65);
  background: var(--bg-chrome);
  text-align: center;
}

.drop-overlay-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  margin-bottom: 8px;
}

.drop-overlay-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.drop-overlay-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

/* 全局轻提示胶囊 */
.flat-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 220;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(34, 34, 38, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-popover);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 400;
  max-width: calc(100vw - 32px);
}

/* ==================== 响应式多端自适应（375px ~ 1440px 零横向溢出） ==================== */
@media (max-width: 1120px) {
  .hide-sm {
    display: none;
  }
  .review-sidebar {
    width: 310px;
    min-width: 310px;
  }
}

@media (max-width: 920px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    position: sticky;
    top: 0;
    padding: 0 10px;
    gap: 6px;
  }

  .hide-xs {
    display: none;
  }

  .topbar-center {
    max-width: none;
  }

  .console-body {
    height: auto;
    flex-direction: column;
    overflow: visible;
  }

  .console-sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    padding: 8px 10px;
    gap: 8px;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }

  .sidebar-item {
    width: auto;
    height: 28px;
    padding: 0 10px;
    gap: 6px;
    flex-shrink: 0;
  }

  .console-subbar {
    padding: 0 12px;
  }

  .console-scroll-area {
    padding: 12px;
    overflow: visible;
  }

  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
  }

  .review-title {
    max-width: 132px;
    font-size: 13px;
  }

  .review-workspace {
    height: auto;
    flex-direction: column;
    overflow: visible;
  }

  .viewer-column {
    position: sticky;
    top: var(--topbar-h);
    z-index: 30;
    flex: none;
    border-bottom: 1px solid var(--border-hairline);
  }

  .viewer-viewport {
    aspect-ratio: 16 / 9;
    flex: none;
  }

  .transport-bar {
    padding: 0 8px 4px;
    gap: 4px;
    overflow-x: auto;
  }

  .review-sidebar {
    width: 100%;
    min-width: 0;
    border-left: none;
    flex: 1;
    overflow: visible;
  }

  .comments-scroll-wrap {
    overflow: visible;
    padding-bottom: 8px;
  }

  .comment-foot-actions {
    opacity: 1;
  }

  .composer-wrap {
    position: sticky;
    bottom: 0;
    z-index: 35;
    border-top: 1px solid var(--border-subtle);
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
