/* First shared-shell increment: Video. Existing model/queue controls unchanged. */
.tom2-editor {
  --editor-bg: #e9edf2; --editor-panel: #fff; --editor-alt: #f4f6f9;
  --editor-line: #cbd3dd; --editor-text: #172333; --editor-muted: #526174; --editor-accent: #175da8;
  --text: var(--editor-text); --muted: var(--editor-muted); --line: var(--editor-line); --ice: var(--editor-accent);
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; gap: 10px;
  align-items: start; padding: 10px; background: var(--editor-bg); color: var(--editor-text);
  font-family: system-ui, "Segoe UI", sans-serif; border-radius: 6px;
}
.tom2-editor[data-editor-theme="dark"] {
  --editor-bg: #151b23; --editor-panel: #202933; --editor-alt: #27323e;
  --editor-line: #4c5c6d; --editor-text: #ecf1f7; --editor-muted: #becbd8; --editor-accent: #8bc9ff;
}
.tom2-editor[hidden], .tom2-editor.hidden { display: none; }
.tom2-editor [hidden] { display: none !important; }
.tom2-editor h2 { font: 600 1rem/1.4 system-ui, sans-serif; letter-spacing: normal; }
.tom2-editor :is(.mode-card, .video-scene-review-header, .video-scene-review-summary, .video-scene-shot-card, .video-shot-card, details, .editor-navigation, .editor-inspector) {
  color: var(--editor-text); background: var(--editor-panel); border-color: var(--editor-line); border-radius: 5px; box-shadow: none;
}
.tom2-editor :is(input, select, textarea) { color: var(--editor-text); background: var(--editor-panel); border: 1px solid var(--editor-line); border-radius: 4px; max-width: 100%; }
.tom2-editor :is(button, summary, select) { min-height: 34px; }
.tom2-editor :is(button, summary, a, input, select, textarea):focus-visible { outline: 2px solid var(--editor-accent); outline-offset: 2px; }
.tom2-editor :is(.ghost-button, .video-section-tab, .editor-menu button) { color: var(--editor-text); background: var(--editor-panel); border: 1px solid var(--editor-line); border-radius: 4px; }
.tom2-editor button:disabled { opacity: .5; cursor: not-allowed; }
.tom2-editor .video-profile-button { background: var(--editor-panel); color: var(--editor-text); border-color: var(--editor-line); border-radius: 4px; }
.tom2-editor .video-profile-button.is-active { background: #175da8; color: #fff; border-color: #175da8; }
.tom2-editor .send-button { background: #175da8; color: #fff; border-radius: 4px; }
.editor-command-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 3px 6px; background: var(--editor-panel); border: 1px solid var(--editor-line); border-radius: 4px; position: relative; z-index: 15; }
.editor-menu { position: relative; }
.editor-menu > summary { list-style: none; cursor: pointer; padding: 7px 14px; font-size: .9rem; }
.editor-menu > summary::-webkit-details-marker { display: none; }
.editor-menu[open] > summary, .editor-menu > summary:hover { background: var(--editor-alt); }
.editor-menu-body { position: absolute; top: 100%; left: 0; width: 250px; max-width: calc(100vw - 40px); padding: 8px; display: grid; gap: 5px; background: var(--editor-panel); border: 1px solid var(--editor-line); box-shadow: 0 6px 18px #0003; border-radius: 4px; }
.editor-menu-body button { text-align: left; padding: 6px 10px; }
.editor-menu-body label { display: flex; align-items: center; gap: 8px; padding: 6px; color: var(--editor-text); font-size: .9rem; }
.editor-menu-body input[type="checkbox"] { width: 18px; height: 18px; }
.editor-menu-body small { color: var(--editor-muted); padding: 6px; }
.editor-current-tool { margin-left: auto; padding: 5px 10px; font-size: .85rem; color: var(--editor-muted); }
.tom2-editor .editor-return-row { grid-column: 1 / -1; margin: 0; }
.tom2-editor .editor-return-row > span { display: none; }
.editor-navigation { grid-column: 1; grid-row: 3 / span 10; padding: 12px; min-width: 0; border: 1px solid var(--editor-line); }
.editor-inspector { grid-column: 3; grid-row: 3 / span 10; padding: 12px; min-width: 0; border: 1px solid var(--editor-line); }
.tom2-editor .video-section-tabs { display: grid; gap: 4px; position: static; padding: 8px 0 0; overflow: visible; background: transparent; border: 0; border-radius: 0; backdrop-filter: none; }
.tom2-editor .video-section-tab { width: 100%; min-height: 36px; padding: 7px 9px; text-align: left; font-weight: 500; white-space: normal; border-radius: 4px; }
.tom2-editor .video-section-tab.is-active { background: #175da8; border-color: #175da8; color: #fff; }
.tom2-editor .video-scene-fields { grid-template-columns: minmax(0, 1fr); margin: 12px 0; }
.tom2-editor .video-scene-fields select { font-size: .85rem; }
.tom2-editor .video-section-guide { display: block; padding: 10px 0; border: 0; background: transparent; }
.tom2-editor .video-section-guide p, .tom2-editor .video-section-guide li { font-size: .86rem; line-height: 1.5; }
.tom2-editor .video-section-guide .eyebrow { display: none; }
.tom2-editor .video-section-start { margin: 15px 0; }
.tom2-editor .video-scene-authoring { padding-top: 12px; border-top: 1px solid var(--editor-line); }
.tom2-editor .video-scene-authoring .compact-grid { grid-template-columns: minmax(0, 1fr); }
.tom2-editor > :is(.video-scene-production, .video-lab-panel, .video-builder, .video-board) { grid-column: 2; padding: 16px; margin: 0; }
.tom2-editor .video-scene-review-header { padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--editor-line); }
.tom2-editor .video-scene-review-header h2 { font-size: 1.25rem; }
.tom2-editor .video-scene-review-kicker { display: none; }
.tom2-editor .video-scene-review-header p { font-size: .88rem; }
.tom2-editor .video-scene-primary-actions { justify-content: flex-start; }
.tom2-editor .video-scene-intro { font-size: .85rem; }
.tom2-editor[data-editor-theme="light"] :is(.video-scene-shot-badges, .video-scene-gates) :is(.is-blocked, .is-pending) { color: #805000; border-color: #c99a45; background: #fff8e8; }
.tom2-editor[data-editor-theme="light"] :is(.video-scene-shot-badges, .video-scene-gates) .is-complete { color: #196443; border-color: #43896a; background: #eef9f2; }
.tom2-editor[data-editor-theme="light"] .video-scene-shot-number { color: #175da8; }
.tom2-editor[data-editor-navigation="false"] { grid-template-columns: minmax(0, 1fr) 300px; }
.tom2-editor[data-editor-navigation="false"] > :is(.video-scene-production, .video-lab-panel, .video-builder, .video-board) { grid-column: 1; }
.tom2-editor[data-editor-navigation="false"] .editor-inspector { grid-column: 2; }
.tom2-editor[data-editor-inspector="false"] { grid-template-columns: 210px minmax(0, 1fr); }
.tom2-editor[data-editor-inspector="false"][data-editor-navigation="false"] { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1150px) {
  .tom2-editor { grid-template-columns: 180px minmax(0, 1fr); }
  .tom2-editor .editor-inspector { grid-column: 2; grid-row: auto; }
  .tom2-editor[data-editor-navigation="false"] { grid-template-columns: minmax(0, 1fr); }
  .tom2-editor[data-editor-navigation="false"] .editor-inspector { grid-column: 1; }
}
@media (max-width: 700px) {
  .tom2-editor, .tom2-editor[data-editor-inspector="false"] { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  .tom2-editor :is(.editor-navigation, .editor-inspector), .tom2-editor > :is(.video-scene-production, .video-lab-panel, .video-builder, .video-board) { grid-column: 1; grid-row: auto; }
  .tom2-editor .video-section-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-menu-body { position: fixed; top: auto; left: 16px; right: 16px; width: auto; max-height: 65vh; overflow: auto; }
  .editor-current-tool { width: 100%; margin-left: 0; }
}
