/* v2 theme sweep: generated by scripts/v2_theme_sweep.py; edit the map there, not this block. */
/* from index.html */
body[data-editor="v2"] header{border-bottom:1px solid #343943}
body[data-editor="v2"] small,body[data-editor="v2"] .muted{color:#9ca2af}
body[data-editor="v2"] aside{border-right:1px solid #343943}
body[data-editor="v2"] button,body[data-editor="v2"] input,body[data-editor="v2"] textarea,body[data-editor="v2"] select{border:1px solid #444853}
body[data-editor="v2"] input,body[data-editor="v2"] textarea,body[data-editor="v2"] select{background:#202228;color:#d7dae1}
body[data-editor="v2"] button{background:#7fc7ff;color:#0e1a26}
body[data-editor="v2"] button.secondary{color:#c9ceda}
body[data-editor="v2"] label{color:#a7adba}
body[data-editor="v2"] section{border:1px solid #343943;background:#1b1c20}
body[data-editor="v2"] .badge{border:1px solid #3d4653;color:#7fc7ff}
body[data-editor="v2"] .project{color:#c9ceda}
body[data-editor="v2"] .project.active{border-color:#7fc7ff}
body[data-editor="v2"] .scene{border-top:1px solid #343943}
body[data-editor="v2"] .take{background:#1f2025}
body[data-editor="v2"] #notice{background:#141518}
body[data-editor="v2"] .proposal{border:1px solid #3d4653}
body[data-editor="v2"] .proposal .shot-list{background:#141518}
body[data-editor="v2"] .proposal .notes{border-top:1px solid #343943}
body[data-editor="v2"] .script-section{border-top:1px solid #343943}
body[data-editor="v2"] .script-cue{color:#b8d7ec}
body[data-editor="v2"] a{color:#7fc7ff}
body[data-editor="v2"] aside{border-bottom:1px solid #343943}
body[data-editor="v2"] .scene-rail{scrollbar-color:#64748a #1b1c20}
body[data-editor="v2"] .scene-chip{background:#1f2025;color:#aeb8c6}
body[data-editor="v2"] .scene-chip.active{background:#7fc7ff;color:#0e1a26;border-color:#7fc7ff}
body[data-editor="v2"] .scene-chip.has-take{border-bottom:3px solid #7fc7ff}
body[data-editor="v2"] .selected-take{border:1px solid #7fc7ff}
body[data-editor="v2"] .cut-preview{background:#141518}
body[data-editor="v2"] .proposal .direction-panel{background:#141518}
body[data-editor="v2"] .editor-note{color:#a7adba}
/* from nle.css */
body[data-editor="v2"] #nle{background:#141518}
body[data-editor="v2"] #nle button[aria-pressed=true]{background:#7fc7ff;color:#0e1a26}
body[data-editor="v2"] #nle .nle-toolbar{border-bottom:1px solid #353b45}
body[data-editor="v2"] .nle-monitor{background:#0b0d10}
body[data-editor="v2"] .nle-canvas{background:#06080b}
body[data-editor="v2"] .nle-canvas>p{color:#80858f}
body[data-editor="v2"] .nle-inspector{border-left:1px solid #353b45}
body[data-editor="v2"] .nle-small{color:#9ca2af}
body[data-editor="v2"] .nle-clock{color:#e5edf6}
body[data-editor="v2"] .nle-transport{border-top:1px solid #353b45;border-bottom:1px solid #353b45}
body[data-editor="v2"] .nle-labels{background:#23252b;color:#9ea8b8}
body[data-editor="v2"] .nle-labels div{border-bottom:1px solid #353b45}
body[data-editor="v2"] .nle-scroll{scrollbar-color:#64748a #151b16}
body[data-editor="v2"] .nle-lane{border-bottom:1px solid #353b45}
body[data-editor="v2"] .nle-ruler span{color:#9ea8b8;border-left:1px solid #526074}
body[data-editor="v2"] .nle-section-lane{background:#1e2631}
body[data-editor="v2"] .nle-section-marker{border-left:2px solid #7fc7ff;color:#d0eaff}
body[data-editor="v2"] .nle-clip{border:1px solid #5c7893;background:#293747}
body[data-editor="v2"] .nle-clip.selected{border:2px solid #9ed6fa;background:#34536d}
body[data-editor="v2"] .nle-clip.pending{background:repeating-linear-gradient(120deg,#293747,#293747 10px,#2c3542 10px,#2c3542 20px)}
body[data-editor="v2"] .nle-clip.ready{background:#34536d}
body[data-editor="v2"] .nle-take-stack button{color:#a5b0be}
body[data-editor="v2"] .nle-take-stack button.in-cut{background:#3a5a78!important;color:#ecf8ff!important}
body[data-editor="v2"] .nle-overlay-lane{background:#252330}
body[data-editor="v2"] .nle-wave-lane{background:#1f2025}
body[data-editor="v2"] .nle-footer{color:#8e99a8}
body[data-editor="v2"] .nle-history{border-top:1px solid #353b45}
body[data-editor="v2"] .nle-board-card{border:1px solid #3d4653}
body[data-editor="v2"] .nle-dialog{color:#d7dae1;border:1px solid #536074}
body[data-editor="v2"] .nle-footer b{color:#b9d8ea}
/* from workspace.css */
body[data-editor="v2"] #appHeader{border-color:#343943;background:#23252b}
body[data-editor="v2"] .production-page-heading p{color:#9ca2af}
body[data-editor="v2"] .production-card{color:#d7dae1;border:1px solid #373a44}
body[data-editor="v2"] .production-card:hover{border-color:#7fc7ff;background:#252b35}
body[data-editor="v2"] .production-card span{color:#a7adba}
body[data-editor="v2"] .production-card small{color:#7fc7ff}
body[data-editor="v2"] #productionPage>details{color:#9ca2af}
body[data-editor="v2"] #notice{background:#253747}
body[data-editor="v2"] .workspace-mode-help{color:#aeb8c6;border-bottom:1px solid #353b45;background:#1f2025}
body[data-editor="v2"] .nle-history{background:#20242c}
body[data-editor="v2"] .workspace-dialog{color:#d7dae1;border:1px solid #536074}
body[data-editor="v2"] .workspace-dialog>details{border:1px solid #3a404a}
body[data-editor="v2"] .overlay-heading{border-bottom:1px solid #3a404a}
body[data-editor="v2"] .overlay-demo{background:#141518}
body[data-editor="v2"] .overlay-form details{border-top:1px solid #3a404a}
body[data-editor="v2"] .overlay-actions{border-top:1px solid #3a404a}
body[data-editor="v2"] .record-download{color:#7fc7ff}
body[data-editor="v2"] #nle .nle-inspector{border-top:1px solid #353b45}
body[data-editor="v2"] #nle .nle-take-stack:focus-visible{outline:1px solid #7fc7ff}
body[data-editor="v2"] .nle-resize:focus-visible,body[data-editor="v2"] .nle-resize:hover{background:#436887}
body[data-editor="v2"] .nle-time-label{background:#23252b}
body[data-editor="v2"] .nle-drawer-resize:hover,body[data-editor="v2"] .nle-drawer-resize:focus-visible{background:#436887;outline:1px solid #7fc7ff}
body[data-editor="v2"] .nle-time-label:hover,body[data-editor="v2"] .nle-time-label:focus-visible{background:#2d3642;color:#eaf1f9;outline:1px solid #7fc7ff}
body[data-editor="v2"] .nle-row-resize:hover:after,body[data-editor="v2"] .nle-row-resize:focus-visible:after{background:#7fc7ff}
body[data-editor="v2"] #nle #nleFollow{accent-color:#7fc7ff}
body[data-editor="v2"] .take-grid-heading>span{color:#98a4b4}
body[data-editor="v2"] .take-grid-heading small{color:#98a4b4}
body[data-editor="v2"] .take-grid-card{background:#06080b}
body[data-editor="v2"] #appHeader button[aria-pressed=true]{background:#7fc7ff;color:#0e1a26}
body[data-editor="v2"] #nle .nle-compare-controls input[type=checkbox]{accent-color:#7fc7ff}
body[data-editor="v2"] #nle .take-grid-card[data-media-state]:not([data-media-state=complete]) .take-grid-screen{background:var(--state-bg,#141518)}
/* from planning.css */
body[data-editor="v2"] .plan-heading small{color:#9ca2af}
body[data-editor="v2"] .plan-scope{border-bottom:1px solid #343943}
body[data-editor="v2"] .plan-collaboration{border-left:1px solid #343943}
body[data-editor="v2"] #planning .nle-small{color:#9ca2af}
body[data-editor="v2"] .plan-evidence-heading{border-top:1px solid #343943}
body[data-editor="v2"] .plan-cue{border-color:#343943}
body[data-editor="v2"] .plan-cue-detail{background:#1f2025}
body[data-editor="v2"] .plan-messages{scrollbar-color:#64748a #151b16}
body[data-editor="v2"] .plan-message{border-bottom:1px solid #343943}
body[data-editor="v2"] .plan-message strong{color:#c9d2df}
body[data-editor="v2"] .plan-message small{color:#9ca2af}
body[data-editor="v2"] .plan-review-heading{border-top:1px solid #343943}
body[data-editor="v2"] .plan-change{background:#1f2025;border:1px solid #3d4653}
body[data-editor="v2"] .plan-change>input{accent-color:#7fc7ff}
body[data-editor="v2"] .plan-preview details{border-top:1px solid #343943}
body[data-editor="v2"] .plan-library{border-top:1px solid #343943}
body[data-editor="v2"] .plan-image-card{border:1px solid #3d4653}
body[data-editor="v2"] .plan-image-card small{color:#9ca2af}
body[data-editor="v2"] .plan-beat{color:#c9d2df}
body[data-editor="v2"] .plan-beat.estimated{color:#8fa9c6}
body[data-editor="v2"] .nle-proposed-clip{border:1px dashed #8fa9c6}
body[data-editor="v2"] .plan-collaboration{border-top:1px solid #343943}
/* end v2 theme sweep */

/* First v2 shell. Values follow StudioKit's Pro dark theme (ui/src/themes.js).
   The current Slop Studio editor remains active underneath this optional skin. */
body[data-editor="v2"] {
  --sk-bg: #141518;
  --sk-body: #1b1c20;
  --sk-body-alt: #1f2025;
  --sk-header: #23252b;
  --sk-header-alt: #272930;
  --sk-text: #d7dae1;
  --sk-text-dim: #80858f;
  --sk-cue: #7fc7ff;
  --sk-ruler: #202227;
  --sk-lane-edge: #101114;
  --accent: #7fc7ff;
  background: var(--sk-bg);
  color: var(--sk-text);
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body[data-editor="v2"] [hidden] { display: none !important; }
body[data-editor="v2"] small,
body[data-editor="v2"] .muted,
body[data-editor="v2"] .nle-small { color: #9ca2af; }
body[data-editor="v2"] a { color: var(--sk-cue); }
body[data-editor="v2"] :focus-visible { outline: 2px solid var(--sk-cue); outline-offset: 2px; }

/* Productions remain a quiet entry point; the NLE is the primary destination. */
body[data-editor="v2"] #productionPage { background: var(--sk-bg); }
body[data-editor="v2"] .production-card {
  background: var(--sk-body);
  color: var(--sk-text);
  border-color: #373a44;
  border-radius: 6px;
}
body[data-editor="v2"] .production-card:hover { border-color: var(--sk-cue); background: #252b35; }
body[data-editor="v2"] .production-card span { color: #a7adba; }
body[data-editor="v2"] .production-card small { color: var(--sk-cue); }

body[data-editor="v2"] button,
body[data-editor="v2"] input,
body[data-editor="v2"] select,
body[data-editor="v2"] textarea {
  border-radius: 4px;
  border-color: #444853;
  color: var(--sk-text);
}
body[data-editor="v2"] input,
body[data-editor="v2"] select,
body[data-editor="v2"] textarea { background: #202228; }
body[data-editor="v2"] button {
  background: #30343d;
  color: #e2e6ef;
  border: 1px solid #454b58;
}
body[data-editor="v2"] button:hover:not(:disabled) { border-color: #78b9e9; background: #394453; }
body[data-editor="v2"] button.secondary { background: #262a32; color: #c9ceda; }
body[data-editor="v2"] button[aria-pressed="true"],
body[data-editor="v2"] #nle button[aria-pressed="true"] {
  color: #ecf8ff;
  background: #27526d;
  border-color: #7fc7ff;
}
body[data-editor="v2"] input[type="checkbox"],
body[data-editor="v2"] input[type="range"] { accent-color: var(--sk-cue); }

/* Header: views, wall toggle and one menu. */
body[data-editor="v2"][data-view="editor"] #appHeader {
  height: 50px;
  min-height: 50px;
  padding: 6px 14px;
  gap: 10px;
  background: var(--sk-header);
  border-bottom: 1px solid #343943;
  position: relative;
  z-index: 60;
  box-shadow: 0 2px 10px #080a0d55;
}
body[data-editor="v2"] #appHeader #productionHeading { flex: 0 1 230px; }
body[data-editor="v2"] #appHeader #productionHeading h2 {
  font-size: 14px;
  font-weight: 600;
  color: #eff2f8;
  text-overflow: ellipsis;
}
body[data-editor="v2"] #appHeader > .nle-toolbar { overflow: visible; gap: 10px; }
body[data-editor="v2"] #appHeader .plan-tabs { gap: 2px; padding: 3px; background: #191b20; border-radius: 5px; }
body[data-editor="v2"] #appHeader .plan-tabs button {
  border: 0;
  background: transparent;
  padding: 6px 13px !important;
  color: #aeb5c2;
  font-weight: 600;
}
body[data-editor="v2"] #appHeader .plan-tabs button:hover { color: #edf6ff; background: #303a47; }
body[data-editor="v2"] #appHeader .plan-tabs button[aria-pressed="true"] {
  background: #315a78;
  color: #f0f9ff;
  box-shadow: inset 0 -2px var(--sk-cue);
}
body[data-editor="v2"] #appHeader #mcGridToggle { border-color: #4b6678; }
body[data-editor="v2"] #appHeader #mcGridToggle[aria-pressed="true"] { background: #254862; border-color: var(--sk-cue); }
body[data-editor="v2"] #appHeader #workspaceActions { margin-left: auto; }
body[data-editor="v2"] #appHeader #exportOpen,
body[data-editor="v2"] #nlePlay { background: #357298; border-color: #69b9ea; color: #fff; font-weight: 700; }
body[data-editor="v2"] #appHeader #notice {
  background: #253747;
  color: #c6e7fa;
  border-color: #466780;
  max-width: 24vw;
}

/* The existing buttons keep their event handlers when moved into native menus. */
body[data-editor="v2"] .v2-menu { position: relative; flex: none; margin: 0; }
body[data-editor="v2"] .v2-menu > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #454b58;
  border-radius: 4px;
  background: #2b3038;
  color: #d4d9e4;
  font-size: 11px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
body[data-editor="v2"] .v2-menu > summary::-webkit-details-marker { display: none; }
body[data-editor="v2"] .v2-menu > summary::after { content: "⌄"; font-size: 13px; color: #aeb9c8; }
body[data-editor="v2"] .v2-menu[open] > summary { border-color: var(--sk-cue); background: #304455; }
body[data-editor="v2"] .v2-menu-content {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  min-width: 220px;
  max-width: min(90vw, 340px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px;
  border: 1px solid #495363;
  border-radius: 6px;
  background: #232831;
  box-shadow: 0 16px 40px #080a0de0;
  color: #dce3ed;
}
body[data-editor="v2"] .v2-menu:not([open]) .v2-menu-content { display: none; }
body[data-editor="v2"] .v2-menu-content button { text-align: left; width: 100%; }
body[data-editor="v2"] .v2-menu-content label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
body[data-editor="v2"] .v2-menu-content label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; }
body[data-editor="v2"] .v2-menu-content input[type="checkbox"] { width: 15px !important; height: 15px; margin: 0 !important; }
body[data-editor="v2"] .v2-menu-content a { padding: 6px 4px; font-size: 11px; }
body[data-editor="v2"] #appHeader .v2-menu #mcPlaybackMode { width: 100%; max-width: none; }
body[data-editor="v2"] #appHeader .v2-playback-order:has(select[hidden]) { display: none; }
body[data-editor="v2"] #appHeader .v2-menu #mcPassControls { display: flex; flex-direction: column; align-items: stretch; }
body[data-editor="v2"] #workspaceModeHelp { display: none; }
body[data-editor="v2"] .v2-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
body[data-editor="v2"] #backProductions,
body[data-editor="v2"] #mcGridToggle { display: inline-flex; align-items: center; gap: 5px; }
body[data-editor="v2"]:not([data-mode="preview"]) #mcGridToggle { display: none; }
body[data-editor="v2"] #appHeader .v2-header-menu > summary { gap: 6px; }
body[data-editor="v2"] #v2Preferences {
  width: min(450px, 92vw);
  max-height: 82vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid #526273;
  border-radius: 7px;
  background: #20242c;
  color: #e4eaf3;
  box-shadow: 0 24px 64px #050608c9;
}
body[data-editor="v2"] #v2Preferences::backdrop { background: #05080dbb; }
body[data-editor="v2"] #v2Preferences h2 { margin: 0 0 18px; font-size: 20px; }
body[data-editor="v2"] #v2Preferences section { border: 1px solid #3d4652; border-radius: 5px; padding: 13px; margin: 10px 0; display: grid; gap: 10px; background: #232831; }
body[data-editor="v2"] #v2Preferences h3 { margin: 0; font-size: 12px; color: #b8d7ec; }
body[data-editor="v2"] #v2Preferences .v2-account-credits { margin: 0; color: #c8dced; font-size: 12px; line-height: 1.5; }
body[data-editor="v2"] #v2Preferences label { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
body[data-editor="v2"] #v2Preferences label:has(input[type="checkbox"]) { flex-direction: row-reverse; }
body[data-editor="v2"] #v2Preferences label:has(select) { align-items: start; flex-direction: column; gap: 5px; }
body[data-editor="v2"] #v2Preferences input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }
body[data-editor="v2"] #v2Preferences input[type="range"] { width: 150px; margin: 0; }
body[data-editor="v2"] #v2Preferences select { width: 100%; margin: 0; }
body[data-editor="v2"] #v2Preferences > button:last-child { margin-top: 16px; background: #357298; border-color: #69b9ea; }

/* StudioKit's canvas owns the v2 timeline. The original DOM stays laid out so the
   existing monitor and take wall can share its playback clock during the adapter pass. */
body[data-editor="v2"] .studiokit-timeline { position: relative; overflow: hidden; }
body[data-editor="v2"] .studiokit-timeline > .nle-labels,
body[data-editor="v2"] .studiokit-timeline > .nle-scroll { visibility: hidden; pointer-events: none; }
body[data-editor="v2"] .studiokit-timeline > sk-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
body[data-editor="v2"] .sk-tools { display: flex; align-items: center; gap: 5px; padding: 5px 10px; background: #20252c; border-top: 1px solid #39414d; color: #b8d7ec; font-size: 11px; }
body[data-editor="v2"] .sk-tools span { margin-right: 8px; text-transform: uppercase; letter-spacing: .08em; }
body[data-editor="v2"] .sk-tools button { padding: 3px 9px; font-size: 11px; }
body[data-editor="v2"] .nle-transport label:has(#nleZoom) { display: none; }
body[data-editor="v2"] .sk-context { position: fixed; z-index: 120; display: grid; min-width: 170px; padding: 5px; background: #232831; border: 1px solid #5a6b7d; border-radius: 6px; box-shadow: 0 12px 32px #050608c9; }
body[data-editor="v2"] .sk-context button { text-align: left; border: 0; background: transparent; padding: 8px; }

/* Preview and take wall stay dominant. */
body[data-editor="v2"] #nle { background: var(--sk-body); }
body[data-editor="v2"] #nle .nle-stage { background: #111317; grid-template-columns: minmax(0,1fr) 10px var(--nle-drawer-width,360px); }
body[data-editor="v2"] #nle .nle-monitor { background: #0b0d10; border-color: #30343d; padding: 12px; }
body[data-editor="v2"] #nle .nle-canvas { background: #06080b; border: 1px solid #303944; }
body[data-editor="v2"] #nle .nle-inspector {
  background: var(--sk-body);
  border-left: 1px solid #3a404a;
  padding: 14px;
}
body[data-editor="v2"] #nle .nle-inspector:not(.take-grid-open),
body[data-editor="v2"] #nle .nle-stage:has(.nle-inspector:not(.take-grid-open)) .nle-drawer-resize { display: none; }
body[data-editor="v2"] #nle .nle-stage:has(.nle-inspector:not(.take-grid-open)) { grid-template-columns: minmax(0,1fr); }
body[data-editor="v2"] #nle .nle-drawer-resize { background: #313844; }

/* Scene preparation has its own page within the production workspace. */
body[data-editor="v2"][data-mode="direction"] #nle { display: none; }
body[data-editor="v2"] #v2SceneWorkspace { margin: 0; padding: 18px 22px; border: 0; border-radius: 0; background: var(--sk-bg); min-height: calc(100dvh - 50px); }
body[data-editor="v2"] #v2SceneWorkspace .v2-scenes-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; max-width: 1140px; margin: 0 auto 22px; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scenes-heading h2 { margin: 0 0 4px; font-size: 20px; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scenes-heading p { margin: 0; color: #aeb8c6; font-size: 13px; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scenes-content { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; max-width: 1240px; margin: auto; align-items: start; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 16px; min-width: 0; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-main > div { min-width: 0; padding: 18px; border: 1px solid #3c4856; border-radius: 7px; background: #20242b; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-rail { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100dvh - 140px); }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-rail-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-rail-head b { font-size: 13px; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-rail-head small { color: #8e99a8; font-variant-numeric: tabular-nums; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-cards { display: flex; flex-direction: column; gap: 6px; overflow: auto; scrollbar-width: thin; padding-right: 2px; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 0; padding: 6px; text-align: left; border: 1px solid #343a45; border-radius: 6px; background: #1d2026; color: #d7dae1; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-card:hover { border-color: #5a6b7d; background: #232830; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-card.is-current { border-color: var(--sk-cue); background: #223141; box-shadow: inset 2px 0 var(--sk-cue); }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-picture { position: relative; display: grid; place-items: center; width: 72px; align-self: start; aspect-ratio: 16 / 9; border-radius: 4px; background: #0e1014 var(--poster) center / cover no-repeat; color: #9ea8b8; font-size: 12px; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-picture.has-poster b { position: absolute; left: 4px; top: 3px; padding: 0 5px; border-radius: 3px; background: #0b0d10cc; color: #eaf1f9; font-size: 11px; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-time { font: 11px ui-monospace, Menlo, monospace; color: #9ea8b8; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-prompt { font-size: 12px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-state { font-size: 10.5px; color: #8e99a8; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-card.is-pending .v2-scene-state { color: #b8d7ec; }
body[data-editor="v2"] #v2SceneWorkspace .v2-scene-empty { margin: 0; padding: 12px; font-size: 12px; color: #9ca2af; }
body[data-editor="v2"] #v2SceneWorkspace h3 { margin: 0 0 10px; }
body[data-editor="v2"] #v2SceneWorkspace textarea { min-height: 170px; }
body[data-editor="v2"] #v2SceneWorkspace .nle-nav { margin-bottom: 8px; }
body[data-editor="v2"] #v2SceneWorkspace .nle-controls { gap: 6px; }
body[data-editor="v2"] #v2SceneWorkspace .nle-controls button { margin: 0; }
body[data-editor="v2"] #v2SceneWorkspace .nle-board-list { flex-wrap: wrap; }
body[data-editor="v2"] #v2SceneWorkspace .nle-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
body[data-editor="v2"] #nle .take-grid-heading { color: #e3e7ee; }
body[data-editor="v2"] #nle .take-grid-heading small { color: #98a4b4; }
body[data-editor="v2"] #nle .take-grid-cards { gap: 8px; }
body[data-editor="v2"] #nle .take-grid-card { background: #11151a; border-color: #3e4855; border-radius: 5px; }
body[data-editor="v2"] #nle .take-grid-card:hover { border-color: #87c9f3; }
body[data-editor="v2"] #nle .take-grid-card.selected { outline-color: #7fc7ff; }
body[data-editor="v2"] #nle .take-grid-card.is-default { border-color: #667d92; }
body[data-editor="v2"] #nle .take-grid-pick { background: transparent; color: #e8edf5; }
body[data-editor="v2"] #nle .take-grid-pick > small { color: #a5b0be; }
body[data-editor="v2"] #nle .take-grid-screen { background: #080a0e; }
body[data-editor="v2"] #nle .take-grid-status { background: #17202ac9; color: #d0e2ef; }
body[data-editor="v2"] #nle #takeGridArchived { background: #1d222a; border-color: #3d4855; }

/* A short transport. Editing tools and playback choices have named homes. */
body[data-editor="v2"] #nle .nle-transport {
  position: relative;
  z-index: 25;
  overflow: visible;
  min-height: 48px;
  padding: 7px 14px;
  gap: 8px;
  background: #202329;
  border-top-color: #363b45;
  border-bottom-color: #3b424d;
}
body[data-editor="v2"] #nle .nle-clock { color: #e5edf6; font-size: 15px; }
body[data-editor="v2"] #nle .nle-compare-controls { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
body[data-editor="v2"] #nle .nle-compare-controls { display: none; }
body[data-editor="v2"] #nle .nle-compare-controls button { padding: 5px 8px; }
body[data-editor="v2"] #nle .nle-transport > label:has(#nleZoom) { margin-left: auto; color: #aab4c1; }
body[data-editor="v2"] #nle #nleZoom { width: 135px !important; }
body[data-editor="v2"] #nle #nleTakesLabel,
body[data-editor="v2"] #nle #nleTakes { display: none !important; }

/* StudioKit Pro dark surfaces and blue time cues. */
body[data-editor="v2"] #nle .nle-timeline-wrap { height: clamp(160px, 23vh, 230px); grid-template-columns: 124px minmax(0,1fr); }
body[data-editor="v2"] #nle .nle-labels { background: var(--sk-header); color: #c4cbd6; border-right-color: #3c424c; }
body[data-editor="v2"] #nle .nle-labels div { border-bottom-color: #373d47; letter-spacing: .5px; }
body[data-editor="v2"] #nle .nle-scroll { background: var(--sk-body); scrollbar-color: #64748a #1b1c20; }
body[data-editor="v2"] #nle .nle-ruler { background: var(--sk-ruler); }
body[data-editor="v2"] #nle .nle-ruler span { color: #9ea8b8; border-left-color: #526074; }
body[data-editor="v2"] #nle .nle-lane { border-bottom-color: #353b45; }
body[data-editor="v2"] #nle .nle-section-lane { background: #1e2631; }
body[data-editor="v2"] #nle .nle-section-marker { border-left-color: #7fc7ff; color: #d0eaff; }
body[data-editor="v2"] #nle #nleOverlayTrack { background: #252330; }
body[data-editor="v2"] #nle .nle-wave-lane { background: transparent; }
body[data-editor="v2"] #nle .nle-playhead,
body[data-editor="v2"] #nle #nleCue { border-top-color: #f2f3f5; background: #f2f3f5; }
body[data-editor="v2"] #nle .nle-playhead::before { border-top-color: #f2f3f5; }
body[data-editor="v2"] #nle .nle-resize { background: #2d3642; border-top-color: #526174; }
body[data-editor="v2"] #nle .nle-resize:hover { background: #436887; }
body[data-editor="v2"] #nle .nle-footer { background: #1a1d22; color: #8e99a8; }
body[data-editor="v2"] #nle .nle-footer b { color: #b9d8ea; }
body[data-editor="v2"] #nle .nle-history { background: #242a33; border-color: #465261; }
body[data-editor="v2"] #nle .mc-placement { background: #2f4051; border-color: #6286a7; }
body[data-editor="v2"] #nle .mc-placement.selected { outline-color: #f2f3f5; }
body[data-editor="v2"] #nle .nle-clip { background: #293747; border-color: #5c7893; }
body[data-editor="v2"] #nle .nle-clip.selected { background: #34536d; border-color: #9ed6fa; }
body[data-editor="v2"] .nle-context-menu { background: #252b34; border-color: #57677a; box-shadow: 0 14px 32px #080a0de0; }
body[data-editor="v2"] .nle-context-menu button { background: transparent; color: #e1e8f1; }
body[data-editor="v2"] .nle-context-menu button:hover,
body[data-editor="v2"] .nle-context-menu button:focus-visible { background: #36516b; }
body[data-editor="v2"] #nle .nle-dialog,
body[data-editor="v2"] .workspace-dialog { background: #20242c; color: #e4e9f1; border-color: #536074; }

@media (max-width: 1150px) {
  body[data-editor="v2"] #appHeader #productionHeading { flex-basis: 160px; }
  body[data-editor="v2"] #nle .nle-timeline-wrap { grid-template-columns: 100px minmax(0,1fr); }
  body[data-editor="v2"] #nle .nle-compare-controls { max-width: 45vw; }
}
@media (max-width: 800px) {
  body[data-editor="v2"] #v2SceneWorkspace .v2-scenes-content { grid-template-columns: 1fr; }
  body[data-editor="v2"] #v2SceneWorkspace .v2-scene-main { grid-template-columns: 1fr; }
  body[data-editor="v2"] #v2SceneWorkspace .v2-scene-rail { position: static; max-height: none; }
  body[data-editor="v2"] #v2SceneWorkspace .v2-scene-cards { flex-direction: row; overflow-x: auto; }
  body[data-editor="v2"] #v2SceneWorkspace .v2-scene-card { flex: 0 0 240px; }
  body[data-editor="v2"] #appHeader #productionHeading { display: none; }
  body[data-editor="v2"] #appHeader .plan-tabs button { padding: 5px 8px !important; }
  /* The take wall stays beside the program monitor at every width (whiskey, 2026-09-29); it
     narrows to one column of tiles instead of dropping under the preview. */
  body[data-mode="preview"][data-editor="v2"] #nle .nle-stage { grid-template-columns: minmax(0,1fr) 10px var(--nle-drawer-width, 240px); grid-template-rows: none; }
  body[data-editor="v2"] #nle .nle-timeline-wrap { grid-template-columns: 76px minmax(0,1fr); }
  body[data-editor="v2"] #nle .nle-transport { flex-wrap: wrap; }
  body[data-editor="v2"][data-view="editor"] #appHeader #notice { max-width: 30vw; }
  body[data-editor="v2"][data-view="editor"] #appHeader .v2-planned { display: none; }
  body[data-editor="v2"] #appHeader #mcGridToggle { font-size: 0; gap: 0; padding: 4px 8px; }
  body[data-editor="v2"] #appHeader #mcGridToggle .v2-icon { width: 16px; height: 16px; }
}

/* Transport: play, time and zoom. Editing tools sit in the timeline strip; the cover in the header menu. */
body[data-editor="v2"] #nle .nle-transport { min-height: 46px; padding: 6px 12px; gap: 10px; }
body[data-editor="v2"] #nle #nlePlay { width: 38px; height: 30px; padding: 0; margin: 0; font-size: 0; display: inline-grid; place-items: center; border-radius: 4px; }
body[data-editor="v2"] #nle #nlePlay::before { content: ""; display: block; width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
body[data-editor="v2"] #nle #nlePlay[data-state="playing"]::before { width: 11px; height: 13px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; margin: 0; }
body[data-editor="v2"] #nle .nle-clock { font: 600 14px/1 ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; min-width: 84px; padding: 7px 10px; text-align: center; color: #eaf1f9; background: #15171b; border: 1px solid #30353e; border-radius: 4px; }
body[data-editor="v2"] #nle .sk-zoom { margin-left: auto; display: inline-flex; border: 1px solid #454b58; border-radius: 4px; overflow: hidden; }
body[data-editor="v2"] #nle .sk-zoom button { border: 0; border-radius: 0; padding: 5px 9px; font-size: 12px; min-width: 30px; background: #262a32; color: #c9ceda; }
body[data-editor="v2"] #nle .sk-zoom button + button { border-left: 1px solid #454b58; }
body[data-editor="v2"] #nle .sk-zoom button:hover { background: #394453; }
body[data-editor="v2"] .sk-tools .sk-tools-spacer { flex: 1; margin: 0; }
body[data-editor="v2"] .sk-tools .v2-menu > summary { min-height: 24px; padding: 3px 8px; }

/* Chrome pass: one control height, ghost secondary actions, inert planned controls. */
body[data-editor="v2"][data-view="editor"] #appHeader button,
body[data-editor="v2"][data-view="editor"] #appHeader .v2-menu > summary { min-height: 28px; padding: 4px 10px; font-size: 12px; }
body[data-editor="v2"][data-view="editor"] #appHeader #workspaceActions { gap: 6px; align-items: center; }
body[data-editor="v2"][data-view="editor"] #appHeader #workspaceActions button.secondary { background: transparent; border-color: transparent; color: #c3cad6; }
body[data-editor="v2"][data-view="editor"] #appHeader #workspaceActions button.secondary:hover { background: #303844; border-color: #303844; color: #eef4fb; }
body[data-editor="v2"][data-view="editor"] #appHeader #exportOpen { padding: 4px 14px; }
body[data-editor="v2"] .v2-planned,
body[data-editor="v2"] #nle .v2-planned { color: #7d8594; background: transparent; border: 1px dashed #414753; cursor: help; }
body[data-editor="v2"] .v2-planned:hover,
body[data-editor="v2"] #nle .v2-planned:hover { color: #a3acbb; background: transparent; border-color: #5a6272; }
body[data-editor="v2"] #nle .nle-transport .v2-planned { min-height: 28px; padding: 4px 10px; font-size: 12px; }
body[data-editor="v2"] .sk-tools .v2-planned { padding: 3px 9px; font-size: 11px; }
body[data-editor="v2"] #nle .sk-zoom [data-state="snap"][aria-pressed="true"] { color: #ecf8ff; background: #27526d; }
body[data-editor="v2"] #nle .sk-zoom [data-state="snap"] { min-width: 48px; }
body[data-editor="v2"] #nle .take-grid-heading { gap: 5px; }
body[data-editor="v2"] #nle .take-grid-heading > b { margin-right: auto; font-size: 12px; }
body[data-editor="v2"] #nle .take-grid-heading button { background: transparent; border-color: transparent; color: #aab4c3; padding: 3px 8px; font-size: 11px; }
body[data-editor="v2"] #nle .take-grid-heading button:hover { background: #2b323d; border-color: #2b323d; color: #eaf1fa; }
body[data-editor="v2"][data-mode="preview"] #nle .nle-footer { display: flex; justify-content: space-between; gap: 16px; min-height: 24px; padding: 4px 12px; font-size: 10.5px; color: #7f8896; background: #17191d; border-top: 1px solid #2b3038; }
body[data-editor="v2"][data-mode="preview"] #nle .nle-footer b { color: #a9c6da; font-weight: 500; }
body[data-editor="v2"][data-mode="preview"] #nle .nle-footer span { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
body[data-editor="v2"][data-mode="preview"] #nle .nle-footer .v2-commands { margin-left: auto; padding: 1px 8px; font-size: 10.5px; min-height: 0; background: transparent; border-color: #343a45; color: #a9b3c1; }
body[data-editor="v2"][data-mode="preview"] #nle .nle-footer .v2-commands:hover { color: #eef4fb; border-color: #5a6272; }
body[data-editor="v2"] sk-command-palette { font-family: ui-sans-serif, system-ui, sans-serif; }

/* Selection inspector: under the take wall in the right drawer (docs/v2/ux.md). */
body[data-editor="v2"][data-mode="preview"] #nle .nle-inspector { display: flex; flex-direction: column; overflow: hidden; padding: 12px; gap: 10px; }
body[data-editor="v2"][data-mode="preview"] #nle .nle-inspector > #takeGrid { flex: 1 1 96px; min-height: 96px; }
body[data-editor="v2"] #v2Inspector { flex: 0 0 auto; display: flex; flex-direction: column; gap: 7px; max-height: 66%; overflow: auto; padding: 9px 12px 11px; border: 1px solid #3a404a; border-radius: 5px; background: #1f2126; text-align: left; scrollbar-width: thin; }
body[data-editor="v2"] #v2Inspector .v2-inspector-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
body[data-editor="v2"] #v2Inspector .v2-inspector-head b { font-size: 13px; color: #eaf1f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-editor="v2"] #v2Inspector .v2-inspector-head small { font-size: 11px; color: #98a4b4; font-variant-numeric: tabular-nums; }
body[data-editor="v2"] #v2Inspector .v2-inspector-excerpt { margin: 0; font-size: 11.5px; line-height: 1.45; color: #b6bfcc; }
body[data-editor="v2"] #v2Inspector .v2-inspector-group { display: flex; flex-direction: column; gap: 5px; }
body[data-editor="v2"] #v2Inspector .v2-inspector-group > small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #7f8896; }
body[data-editor="v2"] #v2Inspector .v2-inspector-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
body[data-editor="v2"] #v2Inspector .v2-inspector-row > button { margin: 0; padding: 4px 9px; font-size: 11.5px; }
body[data-editor="v2"] #v2Inspector .v2-inspector-row > select { width: auto !important; margin: 0 !important; padding: 4px 6px; font-size: 11.5px; }
body[data-editor="v2"] #v2Inspector #mcPlacementControls { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; width: 100%; }
body[data-editor="v2"] #v2Inspector #mcPlacementControls label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; }
body[data-editor="v2"] #v2Inspector #mcPlacementControls input[type="text"], body[data-editor="v2"] #v2Inspector #mcName { width: 150px !important; margin: 0 !important; padding: 4px 6px; font-size: 11.5px; }
body[data-editor="v2"] #v2Inspector #mcPlacementControls input[type="checkbox"] { width: 14px !important; height: 14px; margin: 0 !important; }
body[data-editor="v2"] #v2Inspector #mcPlacementControls button { margin: 0; padding: 4px 9px; font-size: 11.5px; }
body[data-editor="v2"] #v2Inspector .nle-trim-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; width: 100%; }
body[data-editor="v2"] #v2Inspector .nle-trim-fields label { font-size: 10.5px; }
body[data-editor="v2"] #v2Inspector .nle-trim-fields input { width: 100%; margin: 3px 0 6px; padding: 4px 6px; font-size: 11.5px; }
body[data-editor="v2"] #v2Inspector .nle-trim-actions { display: flex; gap: 5px; }
body[data-editor="v2"] #v2Inspector .nle-trim-actions button { margin: 0; padding: 4px 9px; font-size: 11.5px; }
body[data-editor="v2"] #v2Inspector #nleFitWarning:empty { display: none; }
body[data-editor="v2"] #v2Inspector #mcCoverage { font-size: 11px; color: #98a4b4; }
body[data-editor="v2"] #v2Inspector #mcCoverage summary { cursor: pointer; }
body[data-editor="v2"] #v2Inspector #mcCoverage p { margin: 3px 0; }
body[data-editor="v2"] #nle #takeGridClose { display: none; }

/* Productions page: covers as posters, one control height, no hardware notes. */
body[data-editor="v2"] #studioBrand small, body[data-editor="v2"] .production-page-heading small { display: none; }
body[data-editor="v2"] #appHeader { background: var(--sk-header); border-bottom: 1px solid #343943; }
body[data-editor="v2"] #appHeader h1 { font-size: 18px; letter-spacing: -.3px; }
body[data-editor="v2"] #productionPage { padding: 36px max(24px, 6vw); }
body[data-editor="v2"] #productionPage > p, body[data-editor="v2"] #productionPage > details { display: none; }
body[data-editor="v2"] .production-page-heading { margin-bottom: 18px; align-items: end; }
body[data-editor="v2"] .production-page-heading h2 { font-size: 24px; font-weight: 600; margin: 0; }
body[data-editor="v2"] .production-page-heading p { margin: 4px 0 0; font-size: 13px; color: #8e99a8; }
body[data-editor="v2"] .production-page-heading #new { margin: 0; padding: 6px 14px; background: #357298; border-color: #69b9ea; color: #fff; font-weight: 600; }
body[data-editor="v2"] #libraryControls { margin: 0 0 16px; gap: 6px; }
body[data-editor="v2"] #libraryControls input, body[data-editor="v2"] #libraryControls select { min-height: 30px; padding: 4px 9px; font-size: 12px; border-radius: 4px; }
body[data-editor="v2"] #libraryControls .library-archive-filter { font-size: 12px; color: #aeb8c6; }
body[data-editor="v2"] #projects { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
body[data-editor="v2"] #projects .library-card { border-color: #343a45; border-radius: 6px; background: #1d2026; }
body[data-editor="v2"] #projects .library-card:hover { border-color: #5a6b7d; }
body[data-editor="v2"] #projects .library-open { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; min-height: 0; }
body[data-editor="v2"] #projects .library-open:hover { background: transparent; }
body[data-editor="v2"] #projects .library-poster { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #12151a var(--poster) center / cover no-repeat; border-bottom: 1px solid #2b3038; color: #3d4653; font-size: 34px; font-weight: 600; }
body[data-editor="v2"] #projects .library-poster.has-poster b { display: none; }
body[data-editor="v2"] #projects .library-text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 10px; min-width: 0; }
body[data-editor="v2"] #projects .library-open strong { font-size: 15px; font-weight: 600; color: #eaf1f9; }
body[data-editor="v2"] #projects .library-text > span { font-size: 12px; color: #a7adba; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body[data-editor="v2"] #projects .library-open small { font-size: 11px; color: #8e99a8; font-variant-numeric: tabular-nums; }
body[data-editor="v2"] #projects .library-open .library-shared, body[data-editor="v2"] #projects .library-open .library-origin { color: #8fb3de; }
body[data-editor="v2"] #projects .library-card-foot { padding: 0 8px 8px 14px; font-size: 11px; color: #8e99a8; }
body[data-editor="v2"] #projects .library-card-foot button { background: transparent; border-color: transparent; color: #aab4c3; padding: 4px 8px; font-size: 11px; }
body[data-editor="v2"] #projects .library-card-foot button:hover { background: #2b323d; border-color: #2b323d; color: #eaf1fa; }
body[data-editor="v2"] #projects .library-card-foot button:not(.secondary) { color: #b8d7ec; }
body[data-editor="v2"] #mode { border: 0; padding: 0; font-size: 11px; color: #8e99a8; }

/* Clock display toggle: bars.beats or timecode (docs/v2/audio.md, Bars and beats). */
body[data-editor="v2"] #nle .sk-time-display { min-height: 28px; padding: 4px 9px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #aab4c3; background: transparent; border-color: #454b58; }
body[data-editor="v2"] #nle .sk-time-display[aria-pressed="true"] { color: #ecf8ff; background: #27526d; border-color: #7fc7ff; }

/* Project settings dialog (v2-project.js). */
body[data-editor="v2"] #v2ProjectSettings { width: min(560px, 92vw); padding: 22px; border: 1px solid #526273; border-radius: 7px; background: #20242c; color: #e4eaf3; }
body[data-editor="v2"] #v2ProjectSettings h2 { margin: 0 0 14px; font-size: 20px; }
body[data-editor="v2"] #v2ProjectSettings section { border: 1px solid #3d4652; border-radius: 5px; padding: 12px 13px; margin: 10px 0; display: grid; gap: 8px; background: #232831; }
body[data-editor="v2"] #v2ProjectSettings h3 { margin: 0; font-size: 12px; color: #b8d7ec; }
body[data-editor="v2"] #v2ProjectSettings .v2-project-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); align-items: center; gap: 12px; margin: 0; font-size: 12px; color: #d7dae1; }
body[data-editor="v2"] #v2ProjectSettings .v2-project-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body[data-editor="v2"] #v2ProjectSettings .v2-project-label b { font-weight: 600; }
body[data-editor="v2"] #v2ProjectSettings .v2-project-label small { color: #8e99a8; font-size: 11px; }
body[data-editor="v2"] #v2ProjectSettings .v2-project-row > span:not(.v2-project-label) { color: #a7adba; }
body[data-editor="v2"] #v2ProjectSettings select, body[data-editor="v2"] #v2ProjectSettings input { width: 100% !important; margin: 0 !important; padding: 5px 8px; font-size: 12px; }
body[data-editor="v2"] #v2ProjectSettings .v2-project-note { margin: 0; font-size: 11.5px; color: #8e99a8; line-height: 1.5; }
body[data-editor="v2"] #v2ProjectSettings .v2-project-row button { margin: 0; justify-self: start; }
body[data-editor="v2"] #v2ProjectSettings .v2-project-actions { display: flex; gap: 8px; margin-top: 14px; }
body[data-editor="v2"] #v2ProjectSettings .v2-project-actions button[type="submit"] { background: #357298; border-color: #69b9ea; color: #fff; }
/* Preferences: two tabs; the Account tab (v2-account.js). */
body[data-editor="v2"] #v2Preferences .v2-pref-tabs { display: flex; gap: 2px; padding: 3px; margin: -6px 0 14px; background: #191b20; border-radius: 5px; }
body[data-editor="v2"] #v2Preferences .v2-pref-tabs button { flex: 1; margin: 0; border: 0; background: transparent; color: #aeb5c2; font-weight: 600; padding: 6px 10px; }
body[data-editor="v2"] #v2Preferences .v2-pref-tabs button[aria-selected="true"] { background: #315a78; color: #f0f9ff; box-shadow: inset 0 -2px var(--sk-cue); }
body[data-editor="v2"] #v2Preferences[data-tab="account"] { width: min(560px, 92vw); }
body[data-editor="v2"] #v2AccountPane section { border: 1px solid #3d4652; border-radius: 5px; padding: 13px; margin: 10px 0; display: grid; gap: 8px; background: #232831; }
body[data-editor="v2"] #v2AccountPane h3 { margin: 0; font-size: 12px; color: #b8d7ec; }
body[data-editor="v2"] #v2AccountPane .v2-account-note { margin: 0; font-size: 12px; line-height: 1.5; color: #a7adba; }
body[data-editor="v2"] #v2AccountPane .v2-account-identity { display: flex; align-items: center; gap: 10px; }
body[data-editor="v2"] #v2AccountPane .v2-account-identity img { border-radius: 50%; background: #12151a; }
body[data-editor="v2"] #v2AccountPane .v2-account-identity div { display: flex; flex-direction: column; gap: 2px; }
body[data-editor="v2"] #v2AccountPane .v2-account-identity small { color: #8e99a8; font-size: 11px; }
body[data-editor="v2"] #v2AccountPane .v2-account-figures { display: flex; gap: 18px; }
body[data-editor="v2"] #v2AccountPane .v2-account-figures div { display: flex; flex-direction: column; }
body[data-editor="v2"] #v2AccountPane .v2-account-figures b { font-size: 20px; font-variant-numeric: tabular-nums; color: #eaf1f9; }
body[data-editor="v2"] #v2AccountPane .v2-account-figures small { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #7f8896; }
body[data-editor="v2"] #v2AccountPane .v2-account-linked { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
body[data-editor="v2"] #v2AccountPane .v2-account-linked button { margin: 0; }
body[data-editor="v2"] #v2AccountPane .v2-account-linked + .v2-account-linked { margin-top: 6px; }
body[data-editor="v2"] #v2AccountPane .v2-account-linked div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body[data-editor="v2"] #v2AccountPane .v2-account-linked input { flex: 1; min-width: 0; height: 26px; margin: 0; padding: 3px 8px; font-size: 12px; }
body[data-editor="v2"] #v2AccountPane .v2-account-tokens { display: flex; flex-direction: column; gap: 6px; }
body[data-editor="v2"] #v2AccountPane .v2-account-token { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border: 1px solid #343a45; border-radius: 4px; background: #1d2026; }
body[data-editor="v2"] #v2AccountPane .v2-account-token[data-state="revoked"], body[data-editor="v2"] #v2AccountPane .v2-account-token[data-state="expired"] { opacity: .55; }
body[data-editor="v2"] #v2AccountPane .v2-account-token div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body[data-editor="v2"] #v2AccountPane .v2-account-token b { font-size: 12px; }
body[data-editor="v2"] #v2AccountPane .v2-account-token small { font-size: 11px; color: #8e99a8; }
body[data-editor="v2"] #v2AccountPane .v2-account-token button { margin: 0; padding: 3px 8px; font-size: 11px; }
body[data-editor="v2"] #v2AccountPane .v2-account-new-token { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; padding-top: 8px; border-top: 1px solid #343a45; }
body[data-editor="v2"] #v2AccountPane .v2-account-new-token > input:not([type="number"]) { grid-column: 1 / -1; }
body[data-editor="v2"] #v2AccountPane .v2-account-new-token input, body[data-editor="v2"] #v2AccountPane .v2-account-new-token select { margin: 0; padding: 5px 8px; font-size: 12px; width: 100%; }
body[data-editor="v2"] #v2AccountPane .v2-account-scopes { grid-column: 1 / -1; display: flex; gap: 14px; font-size: 12px; }
body[data-editor="v2"] #v2AccountPane .v2-account-scopes label { display: flex; align-items: center; gap: 5px; margin: 0; }
body[data-editor="v2"] #v2AccountPane .v2-account-scopes input { width: 14px !important; height: 14px; margin: 0; }
body[data-editor="v2"] #v2AccountPane .v2-account-new-token button[type="submit"] { grid-column: 1 / -1; justify-self: start; margin: 0; padding: 5px 12px; background: #357298; border-color: #69b9ea; color: #fff; }
body[data-editor="v2"] #v2AccountPane .v2-account-token-shown { grid-column: 1 / -1; display: grid; gap: 6px; }
body[data-editor="v2"] #v2AccountPane .v2-account-token-row { display: flex; gap: 6px; }
body[data-editor="v2"] #v2AccountPane .v2-account-token-row input { font: 12px ui-monospace, Menlo, monospace; }
body[data-editor="v2"] #v2AccountPane .v2-account-token-row button { margin: 0; }
body[data-editor="v2"] #v2AccountPane .v2-account-bar { height: 6px; border-radius: 3px; background: #12151a; overflow: hidden; }
body[data-editor="v2"] #v2AccountPane .v2-account-bar span { display: block; height: 100%; background: var(--sk-cue); }
body[data-editor="v2"] #v2AccountPane .v2-account-storage { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
body[data-editor="v2"] #v2AccountPane .v2-account-storage div { display: flex; justify-content: space-between; gap: 10px; }
body[data-editor="v2"] #v2AccountPane .v2-account-storage small { color: #8e99a8; font-variant-numeric: tabular-nums; }

/* Queue panel (v2-queue.js). */
body[data-editor="v2"][data-view="editor"] #appHeader #v2QueueOpen { position: relative; }
body[data-editor="v2"] .v2-queue-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #7fc7ff; color: #0e1a26; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
body[data-editor="v2"] #v2Queue { width: min(680px, 94vw); max-height: 84dvh; padding: 18px 20px; border: 1px solid #526273; border-radius: 7px; background: #20242c; color: #e4eaf3; }
body[data-editor="v2"] #v2Queue .v2-queue-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
body[data-editor="v2"] #v2Queue .v2-queue-head h2 { margin: 0; font-size: 18px; }
body[data-editor="v2"] #v2Queue .v2-queue-head small { flex: 1; color: #8e99a8; }
body[data-editor="v2"] #v2Queue .v2-queue-head button { margin: 0; }
body[data-editor="v2"] #v2Queue .v2-queue-list { display: flex; flex-direction: column; gap: 6px; }
body[data-editor="v2"] #v2Queue .v2-queue-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #343a45; border-radius: 5px; background: #1d2026; }
body[data-editor="v2"] #v2Queue .v2-queue-row[data-state="running"], body[data-editor="v2"] #v2Queue .v2-queue-row[data-state="submitting"] { border-color: #4b6678; }
body[data-editor="v2"] #v2Queue .v2-queue-row[data-state="failed"] { border-color: #6b3a3a; }
body[data-editor="v2"] #v2Queue .v2-queue-row[data-state="complete"], body[data-editor="v2"] #v2Queue .v2-queue-row[data-state="cancelled"] { opacity: .75; }
body[data-editor="v2"] #v2Queue .v2-queue-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body[data-editor="v2"] #v2Queue .v2-queue-what b { font-size: 12.5px; }
body[data-editor="v2"] #v2Queue .v2-queue-what small { font-size: 11px; color: #8e99a8; }
body[data-editor="v2"] #v2Queue .v2-queue-detail { color: #a7adba; }
body[data-editor="v2"] #v2Queue .v2-queue-error { color: #f0b38e; }
body[data-editor="v2"] #v2Queue .v2-queue-right { display: flex; align-items: center; gap: 8px; flex: none; }
body[data-editor="v2"] #v2Queue .v2-queue-elapsed { font: 11px ui-monospace, Menlo, monospace; color: #9ea8b8; }
body[data-editor="v2"] #v2Queue .v2-queue-right button { margin: 0; padding: 3px 9px; font-size: 11px; }
body[data-editor="v2"] #v2Queue .v2-queue-empty { margin: 0; font-size: 12px; color: #9ca2af; }
body[data-editor="v2"] #v2AccountPane .v2-account-lots { display: flex; flex-direction: column; gap: 5px; }
body[data-editor="v2"] #v2AccountPane .v2-account-lot { padding: 6px 8px; border: 1px solid #343a45; border-radius: 4px; background: #1d2026; }
body[data-editor="v2"] #v2AccountPane .v2-account-lot.is-expired { opacity: .5; }
body[data-editor="v2"] #v2AccountPane .v2-account-lot div { display: flex; flex-direction: column; gap: 2px; }
body[data-editor="v2"] #v2AccountPane .v2-account-lot b { font-size: 12px; font-variant-numeric: tabular-nums; }
body[data-editor="v2"] #v2AccountPane .v2-account-lot small { font-size: 11px; color: #8e99a8; }
body[data-editor="v2"] #v2AccountPane .v2-account-uses { color: #7f8896; font-variant-numeric: tabular-nums; }

/* Operate (v2-operator.js). */
body[data-editor="v2"] #appHeader #v2OperateOpen { margin-left: 8px; padding: 4px 10px; font-size: 12px; background: transparent; border-color: #454b58; color: #c3cad6; }
body[data-editor="v2"][data-view="editor"] #appHeader #v2OperateOpen { display: none; }
body[data-editor="v2"] #v2Operate { width: min(900px, 96vw); max-height: 88dvh; padding: 18px 20px; border: 1px solid #526273; border-radius: 7px; background: #20242c; color: #e4eaf3; }
body[data-editor="v2"] #v2Operate .v2-operate-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
body[data-editor="v2"] #v2Operate .v2-operate-head h2 { margin: 0; font-size: 18px; }
body[data-editor="v2"] #v2Operate .v2-operate-head small { flex: 1; color: #8e99a8; }
body[data-editor="v2"] #v2Operate .v2-operate-head button { margin: 0; }
body[data-editor="v2"] #v2Operate .v2-operate-tabs { display: flex; gap: 2px; padding: 3px; margin: 0 0 12px; background: #191b20; border-radius: 5px; }
body[data-editor="v2"] #v2Operate .v2-operate-tabs button { flex: 1; margin: 0; border: 0; background: transparent; color: #aeb5c2; font-weight: 600; padding: 6px 10px; }
body[data-editor="v2"] #v2Operate .v2-operate-tabs button[aria-selected="true"] { background: #315a78; color: #f0f9ff; box-shadow: inset 0 -2px var(--sk-cue); }
body[data-editor="v2"] #v2Operate .v2-operate-note { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: #a7adba; }
body[data-editor="v2"] #v2Operate .v2-operate-table { width: 100%; border-collapse: collapse; font-size: 12px; }
body[data-editor="v2"] #v2Operate .v2-operate-table th { text-align: left; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #7f8896; padding: 4px 8px; border-bottom: 1px solid #343a45; }
body[data-editor="v2"] #v2Operate .v2-operate-table td { padding: 7px 8px; border-bottom: 1px solid #2b3038; vertical-align: top; }
body[data-editor="v2"] #v2Operate .v2-operate-table tr.is-disabled td { opacity: .5; }
body[data-editor="v2"] #v2Operate .v2-operate-table td b { display: block; }
body[data-editor="v2"] #v2Operate .v2-operate-table td small { display: inline-block; margin-right: 6px; color: #8fb3de; font-size: 10.5px; }
body[data-editor="v2"] #v2Operate .v2-operate-num { font-variant-numeric: tabular-nums; color: #c9d2df; white-space: nowrap; }
body[data-editor="v2"] #v2Operate .v2-operate-grants { display: flex; flex-wrap: wrap; gap: 4px 10px; }
body[data-editor="v2"] #v2Operate .v2-operate-grants label { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 11px; white-space: nowrap; }
body[data-editor="v2"] #v2Operate .v2-operate-grants input { width: 13px !important; height: 13px; margin: 0; }
body[data-editor="v2"] #v2Operate .v2-operate-agents label { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 11px; white-space: nowrap; }
body[data-editor="v2"] #v2Operate .v2-operate-agents input { width: 13px !important; height: 13px; margin: 0; }
body[data-editor="v2"] #v2Operate .v2-operate-agents input:disabled { opacity: .55; }
body[data-editor="v2"] #v2Operate .v2-operate-give { display: grid; gap: 10px; max-width: 560px; }
body[data-editor="v2"] #v2Operate .v2-operate-field { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: 10px; margin: 0; font-size: 12px; }
body[data-editor="v2"] #v2Operate .v2-operate-field > span { display: flex; flex-direction: column; gap: 2px; }
body[data-editor="v2"] #v2Operate .v2-operate-field > span small { color: #8e99a8; font-size: 11px; }
body[data-editor="v2"] #v2Operate .v2-operate-field input, body[data-editor="v2"] #v2Operate .v2-operate-field select { width: 100% !important; margin: 0 !important; padding: 5px 8px; font-size: 12px; }
body[data-editor="v2"] #v2Operate .v2-operate-engines { display: flex; flex-wrap: wrap; gap: 6px 12px; }
body[data-editor="v2"] #v2Operate .v2-operate-engines label { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12px; }
body[data-editor="v2"] #v2Operate .v2-operate-engines input { width: 14px !important; height: 14px; margin: 0 !important; }
body[data-editor="v2"] #v2Operate .v2-operate-convert { margin: 4px 0 0; padding: 2px 8px; font-size: 11px; }
body[data-editor="v2"] #v2Operate .v2-operate-matrix { font-size: 11.5px; }
body[data-editor="v2"] #v2Operate .v2-operate-matrix th { white-space: nowrap; }
body[data-editor="v2"] #v2Operate .v2-operate-cell { white-space: nowrap; min-width: 92px; }
body[data-editor="v2"] #v2Operate .v2-operate-cell b { display: inline-block; min-width: 2.2em; font-size: 14px; }
body[data-editor="v2"] #v2Operate .v2-operate-cell small { display: block; color: #7f8896; }
body[data-editor="v2"] #v2Operate .v2-operate-cell.is-blocked b { color: #7f8896; }
body[data-editor="v2"] #v2Operate .v2-operate-issue { margin: 0 0 0 4px; padding: 0 6px; font-size: 12px; line-height: 16px; vertical-align: top; }
body[data-editor="v2"] #v2Operate .v2-operate-grant { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; font-size: 10.5px; color: #7f8896; }
body[data-editor="v2"] #v2Operate .v2-operate-grant input { width: 12px !important; height: 12px; margin: 0 !important; }
body[data-editor="v2"] #v2Operate .v2-operate-amount { display: flex; align-items: center; gap: 8px; }
body[data-editor="v2"] #v2Operate .v2-operate-expiry { display: flex; flex-wrap: wrap; gap: 6px; }
body[data-editor="v2"] #v2Operate .v2-operate-lot { display: block; color: #7f8896; white-space: nowrap; }
body[data-editor="v2"] #v2Operate .v2-operate-revoke { margin: 0 0 0 4px; padding: 0 5px; font-size: 10px; line-height: 14px; }
body[data-editor="v2"] #v2Operate .v2-operate-agents small { display: block; color: #7f8896; }
body[data-editor="v2"] #v2Operate .v2-operate-give button[type="submit"] { justify-self: start; margin: 0; padding: 5px 12px; background: #357298; border-color: #69b9ea; color: #fff; }
body[data-editor="v2"] #v2Operate .v2-operate-endpoints { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 12px; }
body[data-editor="v2"] #v2Operate .v2-operate-endpoint { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid #343a45; border-radius: 5px; background: #1d2026; font-size: 12px; }
body[data-editor="v2"] #v2Operate .v2-operate-endpoint b { font: 12px ui-monospace, Menlo, monospace; color: #eaf1f9; }
body[data-editor="v2"] #v2Operate .v2-operate-endpoint small { color: #8e99a8; font-size: 11px; }
body[data-editor="v2"] #v2Operate .v2-operate-link { font-size: 12px; }

/* Right drawer (v2-drawer.js): two tabbed panes on the editor's full right edge. The upper
   pane is the stage's drawer. Below it, a strip at the transport's height holds the lower
   pane's tabs and the collapse controls; the lower pane sits beside the timeline. */
body[data-editor="v2"] #nle .v2-lower { position: relative; display: grid; flex: none; min-height: 0;
  grid-template-columns: minmax(0,1fr) calc(var(--nle-drawer-width, 360px) + 10px);
  grid-template-areas: "transport strip" "timeline pane"; }
body[data-editor="v2"] #nle[data-drawer-lower="closed"] .v2-lower { grid-template-areas: "transport strip" "timeline timeline"; }
body[data-editor="v2"] #nle[data-drawer="closed"] .v2-lower,
body[data-editor="v2"]:not([data-mode="preview"]) #nle .v2-lower { grid-template-columns: minmax(0,1fr); grid-template-areas: "transport" "timeline"; }
body[data-editor="v2"] #nle .v2-lower > .nle-transport { grid-area: transport; min-width: 0; }
body[data-editor="v2"] #nle .v2-lower-main { grid-area: timeline; display: flex; flex-direction: column; min-width: 0; }
body[data-editor="v2"] #nle #v2DrawerStrip { grid-area: strip; align-items: stretch; gap: 2px; min-width: 0; margin: 0; padding: 0 8px 0 12px; border-left: 1px solid #3a404a; border-top: 1px solid #353b45; border-bottom: 1px solid #353b45; background: var(--sk-body); }
body[data-editor="v2"] #nle #v2DrawerStrip .v2-pane-tablist { align-items: stretch; }
body[data-editor="v2"] #nle #v2DrawerStrip .v2-pane-tablist button { margin: 0 0 -1px; }
body[data-editor="v2"] #nle #v2DrawerStrip .v2-tri { align-self: center; }
body[data-editor="v2"] #nle[data-drawer-lower="closed"] #v2DrawerStrip .v2-pane-tablist button[aria-selected="true"] { color: #98a4b4; border-bottom-color: transparent; }
body[data-editor="v2"] #nle #v2DrawerLower { grid-area: pane; position: relative; min-width: 0; border-left: 1px solid #3a404a; background: var(--sk-body); }
body[data-editor="v2"] #nle[data-drawer="closed"] #v2DrawerLower, body[data-editor="v2"] #nle[data-drawer="closed"] #v2DrawerStrip,
body[data-editor="v2"] #nle[data-drawer-lower="closed"] #v2DrawerLower,
body[data-editor="v2"]:not([data-mode="preview"]) #nle #v2DrawerLower, body[data-editor="v2"]:not([data-mode="preview"]) #nle #v2DrawerStrip { display: none; }
body[data-editor="v2"] #nle .v2-drawer-lower-inner { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; overflow: hidden; }
body[data-editor="v2"] #nle .v2-pane-tabs { display: flex; align-items: center; gap: 2px; flex: none; min-height: 26px; margin: -4px 0 0; border-bottom: 1px solid #2f353f; }
body[data-editor="v2"] #nle .v2-pane-tablist { display: flex; gap: 2px; margin-right: auto; min-width: 0; }
body[data-editor="v2"] #nle .v2-pane-tablist button { margin: 0 0 -1px; padding: 5px 9px; font-size: 12px; font-weight: 500; color: #98a4b4; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; white-space: nowrap; }
body[data-editor="v2"] #nle .v2-pane-tablist button:hover { color: #eaf1f9; }
body[data-editor="v2"] #nle .v2-pane-tablist button[aria-selected="true"] { color: #eaf1f9; border-bottom-color: #4d9fd6; }
body[data-editor="v2"] #nle .v2-pane-tablist button small { font-weight: 400; color: #98a4b4; }
body[data-editor="v2"] #nle .v2-tri { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 4px; color: #6f7a89; }
body[data-editor="v2"] #nle .v2-tri svg { width: 12px; height: 12px; fill: currentColor; }
body[data-editor="v2"] #nle .v2-tri:hover, body[data-editor="v2"] #nle .v2-tri:focus-visible { color: #eaf1f9; background: #2b323d; }
/* The lower pane's triangle points up while the pane is open (it goes up) and down while hidden. */
body[data-editor="v2"] #nle[data-drawer-lower="closed"] #v2DrawerLowerToggle svg { transform: rotate(180deg); }
/* The upper pane's tab names the wall, so the wall's own heading keeps only its actions. */
body[data-editor="v2"] #nle .take-grid-heading { justify-content: flex-end; }
body[data-editor="v2"] #nle .take-grid-heading > b { display: none; }
/* The inspector fills the lower pane instead of sitting as a card under the wall. */
body[data-editor="v2"] #nle #v2DrawerLower #v2Inspector { flex: 1 1 0; min-height: 0; max-height: none; padding: 2px 0 0; border: 0; border-radius: 0; background: transparent; }
body[data-editor="v2"] #nle .v2-notes { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
body[data-editor="v2"] #nle #v2NotesList { flex: 1 1 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
body[data-editor="v2"] #nle .v2-notes-empty { margin: 0; font-size: 11.5px; color: #8e99a8; }
body[data-editor="v2"] #nle .v2-note { padding: 6px 8px; border: 1px solid #2f353f; border-radius: 5px; background: #1f2126; }
body[data-editor="v2"] #nle .v2-note header { display: flex; align-items: baseline; gap: 8px; }
body[data-editor="v2"] #nle .v2-note header small { flex: 1; min-width: 0; font-size: 10.5px; color: #8e99a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-editor="v2"] #nle .v2-note p { margin: 3px 0 0; font-size: 12px; line-height: 1.4; color: #dfe5ee; white-space: pre-wrap; overflow-wrap: anywhere; }
body[data-editor="v2"] #nle .v2-note-time { margin: 0; padding: 0; background: transparent; border: 0; font-size: 11px; font-variant-numeric: tabular-nums; color: #8cc4ea; }
body[data-editor="v2"] #nle .v2-note-time:hover { text-decoration: underline; }
body[data-editor="v2"] #nle .v2-note-remove { margin: 0; padding: 0 4px; background: transparent; border: 0; font-size: 13px; line-height: 1; color: #6f7a89; }
body[data-editor="v2"] #nle .v2-note-remove:hover { color: #eaf1f9; }
body[data-editor="v2"] #nle .v2-notes-form { flex: none; display: flex; flex-direction: column; gap: 6px; }
body[data-editor="v2"] #nle #v2NotesInput { width: 100%; min-height: 44px; margin: 0; padding: 6px 8px; resize: none; font: inherit; font-size: 12px; color: #eaf1f9; background: #16181c; border: 1px solid #3a404a; border-radius: 5px; box-sizing: border-box; }
body[data-editor="v2"] #nle .v2-notes-actions { display: flex; gap: 6px; }
body[data-editor="v2"] #nle .v2-notes-actions button { margin: 0; padding: 4px 9px; font-size: 11.5px; }
/* workspace.css hides everything in an open drawer but the wall; the pane's tab bar stays. */
body[data-editor="v2"][data-mode="preview"] #nle .nle-inspector.take-grid-open > #v2DrawerUpperTabs { display: flex !important; }
body[data-editor="v2"] #nle #v2Inspector .v2-inspector-head small { letter-spacing: normal; text-transform: none; }
/* A hidden drawer hides its upper pane too; the monitor takes the stage. */
body[data-editor="v2"][data-mode="preview"] #nle[data-drawer="closed"] .nle-stage > .nle-inspector { display: none; }
body[data-editor="v2"] #nle .v2-note header small, body[data-editor="v2"] #nle .v2-note-time { letter-spacing: normal; text-transform: none; }
/* The drawer's edge (v2-drawer.js): one thin bar on the drawer's left edge, the full height of
   the upper pane, the strip and the lower pane. Drag to resize; the grip opens and closes. */
body[data-editor="v2"] #nle .v2-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; --v2-edge: 5px; }
body[data-editor="v2"][data-mode="preview"] #nle .v2-body > .nle-stage { grid-template-columns: minmax(0,1fr) calc(var(--nle-drawer-width, 360px) + var(--v2-edge)); grid-template-rows: none; }
body[data-editor="v2"][data-mode="preview"] #nle[data-drawer="closed"] .v2-body > .nle-stage { grid-template-columns: minmax(0,1fr); }
body[data-editor="v2"][data-mode="preview"] #nle .v2-body > .nle-stage > .nle-inspector { margin-left: var(--v2-edge); border-left: 0; }
body[data-editor="v2"] #nle .v2-body > .v2-lower { grid-template-columns: minmax(0,1fr) calc(var(--nle-drawer-width, 360px) + var(--v2-edge)); }
body[data-editor="v2"] #nle[data-drawer="closed"] .v2-body > .v2-lower,
body[data-editor="v2"]:not([data-mode="preview"]) #nle .v2-body > .v2-lower { grid-template-columns: minmax(0,1fr); }
body[data-editor="v2"] #nle #v2DrawerStrip, body[data-editor="v2"] #nle #v2DrawerLower { margin-left: var(--v2-edge); border-left: 0; }
body[data-editor="v2"][data-mode="preview"] #nle[data-drawer="closed"] .v2-body { padding-right: var(--v2-edge); }
body[data-editor="v2"] #nle #v2DrawerEdge { display: none; position: absolute; top: 0; bottom: 0; right: var(--nle-drawer-width, 360px); width: var(--v2-edge); z-index: 6; background: #2a303a; cursor: col-resize; touch-action: none; outline: 0; }
body[data-editor="v2"][data-mode="preview"] #nle #v2DrawerEdge { display: block; }
body[data-editor="v2"] #nle[data-drawer="closed"] #v2DrawerEdge { right: 0; cursor: pointer; }
body[data-editor="v2"] #nle #v2DrawerEdge::after { content: none; }
body[data-editor="v2"] #nle #v2DrawerEdge:hover, body[data-editor="v2"] #nle #v2DrawerEdge:focus-visible { background: #3d556b; }
/* The grip is wider than the bar so it is easy to hit; it reads as the bar's handle. */
body[data-editor="v2"] #nle .v2-edge-grip { position: absolute; top: calc(var(--v2-grip-middle, 50%) - 15px); left: calc(50% - 5px); width: 10px; height: 30px; margin: 0; padding: 0; border: 1px solid #1b1e23; border-radius: 5px; background: #56616f; cursor: pointer; }
body[data-editor="v2"] #nle .v2-edge-grip:hover, body[data-editor="v2"] #nle #v2DrawerEdge:focus-visible .v2-edge-grip { background: #8fb8d6; }
body[data-editor="v2"] #nle[data-drawer="closed"] .v2-edge-grip { left: auto; right: 0; border-radius: 5px 0 0 5px; }
/* The timeline's tool strip at narrow widths: the tools scroll sideways and the planned pair
   (Transition, Mixer) stays pinned at the right end, inside the timeline's width. */
body[data-editor="v2"] #nle .sk-tools { min-width: 0; overflow-x: auto; scrollbar-width: none; }
body[data-editor="v2"] #nle .sk-tools::-webkit-scrollbar { display: none; }
body[data-editor="v2"] #nle .sk-tools > * { flex: none; white-space: nowrap; }
body[data-editor="v2"] #nle .sk-tools > .sk-tools-spacer { flex: 1 0 8px; }
body[data-editor="v2"] #nle .sk-tools .sk-tools-end { position: sticky; right: 0; display: flex; gap: 5px; padding-left: 8px; background: #20252c; box-shadow: 10px 0 0 #20252c, -8px 0 8px -2px #20252c; }
