/* ============================================================================
   studio.syllovo.com (v2) — Desktop & Shared Minimalist Shell Styles
   Layered cleanly over immutable css/syllovo-brand-theme.css
   ============================================================================ */

:root,
[data-theme="light"] {
  --v2-bg-app: #ffffff;
  --v2-bg-canvas: #fafafa;
  --v2-bg-sidebar: #fafafa;
  --v2-bg-card: #ffffff;
  --v2-bg-subtle: #f4f4f5;
  --v2-ink: #09090b;
  --v2-ink-2: #27272a;
  --v2-muted: #52525b; /* >= 7.0:1 AAA on #fff, >= 6.3:1 AA on #f4f4f5 */
  --v2-border: #e4e4e7;
  --v2-border-strong: #d4d4d8;
  --v2-ok-fg: #047857;
  --v2-ok-bg: #ecfdf5;
  --v2-ok-bd: #6ee7b7;
  --v2-warn-fg: #b45309;
  --v2-warn-bg: #fffbeb;
  --v2-warn-bd: #fcd34d;
  --v2-danger-fg: #be123c;
  --v2-danger-bg: #fff1f2;
  --v2-danger-bd: #fda4af;
  --v2-info-fg: #1d4ed8;
  --v2-info-bg: #eff6ff;
  --v2-info-bd: #93c5fd;
  color-scheme: light;
}

[data-theme="warm"] {
  --bg-app: #fffefa;
  --bg-sidebar: #faf8f3;
  --bg-surface: #fffefa;
  --bg-subtle: #efece4;
  --text-main: #1c1917;
  --text-secondary: #44403c;
  --border: #e5e0d5;
  --v2-bg-app: #fffefa;
  --v2-bg-canvas: #f7f4ec;
  --v2-bg-sidebar: #faf8f3;
  --v2-bg-card: #fffefa;
  --v2-bg-subtle: #efece4;
  --v2-ink: #1c1917;
  --v2-ink-2: #292524;
  --v2-muted: #57534e;
  --v2-border: #e5e0d5;
  --v2-border-strong: #d6d0c4;
  --v2-ok-fg: #047857;
  --v2-ok-bg: #ecfdf5;
  --v2-ok-bd: #6ee7b7;
  --v2-warn-fg: #b45309;
  --v2-warn-bg: #fffbeb;
  --v2-warn-bd: #fcd34d;
  --v2-danger-fg: #be123c;
  --v2-danger-bg: #fff1f2;
  --v2-danger-bd: #fda4af;
  --v2-info-fg: #1d4ed8;
  --v2-info-bg: #eff6ff;
  --v2-info-bd: #93c5fd;
  color-scheme: light;
}

[data-theme="dark"] {
  --v2-bg-app: #09090b;
  --v2-bg-canvas: #0f0f12;
  --v2-bg-sidebar: #121215;
  --v2-bg-card: #18181b;
  --v2-bg-subtle: #27272a;
  --v2-ink: #fafafa;
  --v2-ink-2: #e4e4e7;
  --v2-muted: #d4d4d8; /* >= 8.1:1 AA on #27272a */
  --v2-border: #27272a;
  --v2-border-strong: #3f3f46;
  --v2-ok-fg: #34d399;
  --v2-ok-bg: rgba(16, 185, 129, 0.14);
  --v2-ok-bd: rgba(52, 211, 153, 0.4);
  --v2-warn-fg: #fbbf24;
  --v2-warn-bg: rgba(245, 158, 11, 0.14);
  --v2-warn-bd: rgba(251, 191, 36, 0.4);
  --v2-danger-fg: #fda4af;
  --v2-danger-bg: rgba(244, 63, 94, 0.16);
  --v2-danger-bd: rgba(253, 164, 175, 0.4);
  --v2-info-fg: #93c5fd;
  --v2-info-bg: rgba(59, 130, 246, 0.16);
  --v2-info-bd: rgba(147, 197, 253, 0.4);
  color-scheme: dark;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--v2-bg-app);
  color: var(--v2-ink);
  font-size: 13px;
}

button,
input,
textarea {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: inherit;
}

.v2-hidden {
  display: none !important;
}

.v2-mono {
  font-family: var(--font-mono);
}

.v2-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sign-In Gate (#auth-gate-root) */
.v2-auth-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--v2-bg-canvas);
}

.v2-auth-card {
  width: 100%;
  max-width: 860px;
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 7fr 5fr;
  box-shadow: var(--shadow-sm);
}

.v2-auth-main {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.v2-auth-aside {
  padding: 24px 26px;
  background: var(--v2-bg-sidebar);
  border-left: 1px solid var(--v2-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.v2-team-list {
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  overflow: hidden;
}

.v2-team-row {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--v2-border);
  background: var(--v2-bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.v2-team-row:last-child {
  border-bottom: none;
}

.v2-team-row:hover {
  background: var(--v2-bg-subtle);
}

.v2-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--v2-ink);
  color: var(--v2-bg-card);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v2-avatar-soft {
  background: var(--v2-bg-subtle);
  color: var(--v2-ink);
  border: 1px solid var(--v2-border);
}

/* Desktop Shell (#desktop-stage-wrap) */
.v2-desk-shell {
  display: flex;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--v2-bg-app);
}

.v2-desk-sidebar {
  width: 216px;
  flex-shrink: 0;
  background: var(--v2-bg-sidebar);
  border-right: 1px solid var(--v2-border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow-y: auto;
}

.v2-desk-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Single 48px Top Header Row (INV-UX-09: <= 56px, <= 5 primary groups, 0 <select>) */
.v2-top-header {
  height: 48px;
  max-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--v2-border);
  background: var(--v2-bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.v2-hdr-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Segmented Controls & Pills */
.v2-seg {
  display: inline-flex;
  align-items: center;
  background: var(--v2-bg-subtle);
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.v2-seg-btn {
  border: none;
  background: transparent;
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.v2-seg-btn.active {
  background: var(--v2-bg-card);
  color: var(--v2-ink);
  box-shadow: var(--shadow-xs);
}

.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--v2-border);
  background: var(--v2-bg-card);
  color: var(--v2-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.v2-btn:hover:not(:disabled) {
  background: var(--v2-bg-subtle);
}

.v2-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--v2-bg-subtle);
  color: var(--v2-muted);
}

.v2-btn-primary,
.v2-btn.v2-btn-primary:hover:not(:disabled) {
  background: var(--v2-ink);
  color: var(--v2-bg-card);
  border-color: var(--v2-ink);
}

.v2-btn-primary:hover:not(:disabled) {
  opacity: 0.92;
}

.v2-btn-danger,
.v2-btn.v2-btn-danger:hover:not(:disabled) {
  background: #be123c;
  color: #ffffff;
  border-color: #be123c;
}

.v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--v2-bg-subtle);
  color: var(--v2-ink-2);
  border: 1px solid var(--v2-border);
  white-space: nowrap;
}

.v2-badge-ok {
  background: var(--v2-ok-bg);
  color: var(--v2-ok-fg);
  border-color: var(--v2-ok-bd);
}

.v2-badge-warn {
  background: var(--v2-warn-bg);
  color: var(--v2-warn-fg);
  border-color: var(--v2-warn-bd);
}

.v2-badge-danger {
  background: var(--v2-danger-bg);
  color: var(--v2-danger-fg);
  border-color: var(--v2-danger-bd);
}

.v2-badge-info {
  background: var(--v2-info-bg);
  color: var(--v2-info-fg);
  border-color: var(--v2-info-bd);
}

.v2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v2-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--v2-border-strong);
  background: var(--v2-bg-card);
  color: var(--v2-ink);
  font-size: 12.5px;
}

/* Sidebar Navigation */
.v2-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v2-nav-btn {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--v2-muted);
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.v2-nav-btn:hover {
  background: var(--v2-bg-subtle);
  color: var(--v2-ink);
}

.v2-nav-btn.active {
  background: var(--v2-ink);
  color: var(--v2-bg-card);
  font-weight: 600;
}

.v2-mod-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  background: var(--v2-bg-subtle);
  border: 1px solid var(--v2-border);
  border-radius: 8px;
}

.v2-clip-row {
  width: 100%;
  padding: 5px 8px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--v2-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  text-align: left;
}

.v2-clip-row:hover {
  background: var(--v2-bg-subtle);
  color: var(--v2-ink);
}

.v2-clip-row.active {
  background: var(--v2-bg-subtle);
  color: var(--v2-ink);
  font-weight: 600;
}

.v2-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.v2-dot-ok { background: #10b981; }
.v2-dot-warn { background: #f59e0b; }
.v2-dot-frozen { background: #71717a; }
.v2-dot-rose { background: #e11d48; }

/* Studio Workbench Split: Center Stage/Timeline + Right AI Dock */
.v2-studio-split {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.v2-studio-center {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* INV-UX-04: guarantees 0px play-button vertical shift! */
  gap: 10px;
}

.v2-ai-dock {
  width: 296px;
  flex-shrink: 0;
  border-left: 1px solid var(--v2-border);
  background: var(--v2-bg-sidebar);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

/* 16:9 Stage Canvas (#studio-stage-canvas — INV-UX-03: Zero Buttons/Overlays Inside!) */
.v2-player-shell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.v2-stage-frame {
  width: 100%;
  max-width: 768px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid #d4d4d8;
  background: #ffffff;
  color: #09090b;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Proportional Stage Video Scrub Bar (#stage-video-scrub-wrap — outside #studio-stage-canvas) */
.v2-stage-scrub-wrap {
  width: 100%;
  max-width: 768px;
  height: 18px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.v2-stage-scrub-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--v2-bg-subtle);
  border: 1px solid var(--v2-border);
  position: relative;
  overflow: visible;
}

.v2-stage-scrub-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--v2-border-strong);
  pointer-events: none;
  z-index: 1;
}

.v2-stage-scrub-fill {
  height: 100%;
  border-radius: 999px;
  background: #059669;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.v2-stage-scrub-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 2.5px solid #059669;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}

.v2-stage-scrub-tooltip {
  position: absolute;
  bottom: 20px;
  left: 0;
  padding: 2px 7px;
  border-radius: 5px;
  background: #09090b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 12;
}

.v2-stage-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.v2-stage-pillar {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #09090b;
}

.v2-stage-pillar-callout {
  border: 2px solid #be123c;
  background: #fff1f2;
  border-radius: 0px; /* Sharp 90-degree Pluralsight callout corner law */
}

.v2-stage-pillar-fixed {
  border: 2px solid #047857;
  background: #ecfdf5;
  border-radius: 0px;
}

/* Transport Bar Immediately Below Stage (#camtasia-play-btn + VT#k / AT#k Badges) */
.v2-transport-bar {
  max-width: 768px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--v2-border);
  background: var(--v2-bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.v2-nudge-btn {
  padding: 4px 7px;
}

.v2-play-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--v2-ink);
  color: var(--v2-bg-card);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* 3-Track Pure-White Minimalist Video Editor (#studio-timeline-editor-wrapper — SYL-SPEC-012 / BUG-VE-007) */
.v2-timeline-card {
  max-width: 768px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--v2-border);
  background: var(--v2-bg-card);
  overflow: hidden;
  flex-shrink: 0;
}

.v2-tl-toolbar {
  padding: 6px 10px;
  border-bottom: 1px solid var(--v2-border);
  background: var(--v2-bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.v2-tl-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.v2-tl-toolbar-btn {
  padding: 5px 9px;
}

.v2-tl-toolbar-btn.is-sealed-pill {
  background: var(--v2-info-bg);
  border-color: var(--v2-info-bd);
  color: var(--v2-info-fg);
}

.v2-tl-readout-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--v2-border);
  background: var(--v2-bg-card);
  color: var(--v2-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.v2-tl-zoom-btn {
  padding: 4px 8px;
}

.v2-tl-zoom-val {
  font-size: 12px;
  color: var(--v2-ink-2);
  min-width: 34px;
  text-align: center;
}

.v2-tl-body {
  display: flex;
  align-items: stretch;
  position: relative;
  background: var(--v2-bg-card);
  min-width: 0;
}

.v2-tl-headers-col {
  width: 106px;
  flex-shrink: 0;
  background: var(--v2-bg-sidebar);
  border-right: 1px solid var(--v2-border);
  display: flex;
  flex-direction: column;
  z-index: 6;
  user-select: none;
}

.v2-tl-hdr-ruler {
  height: 24px;
  padding: 0 8px;
  border-bottom: 1px solid var(--v2-border);
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--v2-muted);
}

.v2-tl-hdr-cell {
  padding: 0 8px;
  border-bottom: 1px solid var(--v2-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.v2-tl-headers-col .v2-tl-hdr-cell:nth-child(2) {
  height: 36px;
}

.v2-tl-headers-col .v2-tl-hdr-cell:nth-child(3) {
  height: 46px;
}

.v2-tl-headers-col .v2-tl-hdr-cell:nth-child(4) {
  height: 52px;
  border-bottom: none;
}

.v2-tl-hdr-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--v2-ink);
  line-height: 1.15;
}

.v2-tl-hdr-sub {
  font-size: 12px;
  color: var(--v2-muted);
  line-height: 1.15;
}

.v2-tl-hdr-sub.is-locked-sub {
  color: var(--v2-ok-fg);
  font-weight: 600;
}

.v2-tl-scroll-area {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  background: var(--v2-bg-card);
  scrollbar-width: thin;
}

.v2-tl-canvas-inner {
  position: relative;
  min-width: 100%;
  user-select: none;
}

.v2-tl-ruler {
  height: 24px;
  position: relative;
  border-bottom: 1px solid var(--v2-border);
  background: var(--v2-bg-subtle);
  cursor: ew-resize;
}

.v2-tl-ruler-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  padding-left: 5px;
  border-left: 1px solid var(--v2-border-strong);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--v2-muted);
  white-space: nowrap;
  pointer-events: none;
}

.v2-tl-ruler-tick.is-zero-tick {
  border-left: none;
  padding-left: 6px;
}

.v2-tl-lane {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--v2-border);
  background: var(--v2-bg-card);
}

.v2-tl-lane-callouts {
  height: 36px;
}

.v2-tl-lane-audio {
  height: 46px;
}

.v2-tl-lane-video {
  height: 52px;
  border-bottom: none;
  display: block;
}

.v2-tl-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #be123c;
  z-index: 14;
  cursor: ew-resize;
  touch-action: none;
}

.v2-playhead-cap {
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 8px;
  border-radius: 2px 2px 5px 5px;
  background: #be123c;
}

.v2-playhead.is-near-start .v2-playhead-cap {
  left: 0;
}

.v2-playhead-tag {
  position: absolute;
  top: 2px;
  left: 6px;
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: #be123c;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.v2-playhead.is-near-end .v2-playhead-tag {
  left: auto;
  right: 6px;
}

.v2-tl-hover-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--v2-ink);
  opacity: 0.85;
  z-index: 18;
  pointer-events: none;
}

.v2-tl-hover-pill {
  position: absolute;
  top: 2px;
  left: 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: #09090b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Content Pages (Clips, Quality, Bugs, Reviews, New Course, Workspace) */
.v2-page-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px;
}

.v2-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* INV-UX-12: Uncrowded 1-Column <= 760px Bugs Inbox */
.v2-inbox-narrow {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-card {
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  overflow: hidden;
}

.v2-card-pad {
  padding: 14px 16px;
}

.v2-hairline-row {
  padding: 11px 14px;
  border-bottom: 1px solid var(--v2-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v2-hairline-row:last-child {
  border-bottom: none;
}

.v2-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v2-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.v2-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }

/* Popovers & Modals (INV-UX-06: strictly bounded inside viewport!) */
.v2-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.48);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.v2-modal-panel {
  width: 100%;
  max-width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-toast {
  margin: 8px 14px 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--v2-border);
  background: var(--v2-bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  flex-shrink: 0;
}

/* Compact Landscape / Small Laptop Adaptation (769px..1023px e.g. 844x390) */
@media (max-width: 1023px) {
  .v2-desk-sidebar {
    width: 176px;
    padding: 8px;
  }
  .v2-ai-dock {
    width: 232px;
  }
  .v2-top-header .v2-seg-btn {
    padding: 4px 7px;
  }
  .v2-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v2-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.v2-stage-frame.v2-stage-has-media,
.v2-mob-stage.v2-stage-has-media {
  padding: 0;
  background: #ffffff;
  position: relative;
}

.v2-stage-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
  z-index: 1;
  pointer-events: none;
}

.v2-stage-real-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
  z-index: 2;
  pointer-events: none;
}

.v2-tl-scroll-wrap {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.v2-tl-chunks-row {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-width: 100%;
}

.v2-tl-chunk-pill {
  min-height: 28px;
  min-width: 96px;
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: var(--v2-ink);
  border: 1px solid var(--v2-border);
  background: var(--v2-bg-subtle);
  cursor: pointer;
  flex-shrink: 0;
}

.v2-tl-chunk-pill.active {
  border-color: var(--v2-ink);
  box-shadow: inset 0 0 0 1px var(--v2-ink);
  font-weight: 700;
}

.v2-tl-chunks-row.v2-tl-proportional-lane {
  position: relative;
  height: 100%;
  display: block;
  min-width: 100%;
}

.v2-tl-hold-chip {
  position: absolute;
  top: 7px;
  height: 22px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px dashed var(--v2-border-strong);
  background: var(--v2-bg-subtle);
  color: var(--v2-muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.v2-tl-callout-pill {
  position: absolute;
  top: 4px;
  height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--v2-border);
  background: var(--v2-bg-subtle);
  color: var(--v2-ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
}

.v2-tl-at-pill {
  position: absolute;
  top: 4px;
  height: 38px;
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid var(--v2-ok-bd);
  background: var(--v2-ok-bg);
  color: var(--v2-ok-fg);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  z-index: 2;
}

.v2-tl-at-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  line-height: 1.1;
}

.v2-tl-wave-svg {
  display: block;
  max-width: 100%;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.9;
}

.v2-tl-proportional-lane .v2-tl-chunk-pill {
  position: absolute;
  top: 4px;
  height: 44px;
  min-width: 46px;
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid var(--v2-border-strong);
  background: var(--v2-bg-card);
  color: var(--v2-ink);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  z-index: 2;
}

.v2-tl-callout-pill.active,
.v2-tl-at-pill.active,
.v2-tl-chunk-pill.active {
  border-color: var(--v2-ink);
  box-shadow: inset 0 0 0 1px var(--v2-ink);
  font-weight: 700;
}

.v2-tl-at-pill.is-multi-selected,
.v2-tl-chunk-pill.is-multi-selected {
  outline: 2px solid #1d4ed8;
  outline-offset: -1px;
}

.v2-tl-mini-thumb {
  width: 50px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--v2-border);
  background: #ffffff;
  flex-shrink: 0;
  pointer-events: none;
}

.v2-tl-vt-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.v2-tl-vt-top {
  font-size: 12px;
  font-weight: 700;
  color: var(--v2-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.v2-tl-vt-sub {
  font-size: 12px;
  color: var(--v2-muted);
  line-height: 1.15;
}

.v2-qa-img-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--v2-border);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-qa-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.v2-chip-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.v2-chip-strip > * {
  flex-shrink: 0;
}

.v2-official-outline-scroll,
#official-outline-doc-content {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
}

.v2-official-outline-scroll table,
#official-outline-doc-content table,
.outline-html-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--v2-ink-2);
}

.v2-official-outline-scroll th,
.v2-official-outline-scroll td,
#official-outline-doc-content th,
#official-outline-doc-content td,
.outline-html-table th,
.outline-html-table td {
  border: 1px solid var(--v2-border);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.v2-official-outline-scroll th,
#official-outline-doc-content th,
.outline-html-table th {
  background: var(--v2-bg-subtle);
  color: var(--v2-ink);
  font-weight: 700;
}

@media (max-width: 860px) {
  .v2-auth-card {
    grid-template-columns: 1fr;
  }
  .v2-auth-aside {
    border-left: none;
    border-top: 1px solid var(--v2-border);
  }
}
