:root {
  --studio-bg: #071018;
  --studio-panel: #0b1821;
  --studio-panel-2: #10232f;
  --studio-panel-3: #16303f;
  --studio-line: rgba(154, 190, 210, .18);
  --studio-line-strong: rgba(154, 190, 210, .34);
  --steel: #4682a9;
  --steel-bright: #73a8c7;
  --steel-pale: #b9d4e3;
  --steel-deep: #244f68;
  --studio-text: #edf5f8;
  --studio-muted: #8da5b2;
  --studio-green: #54c98c;
  --studio-red: #ef6b6b;
  --studio-yellow: #e4bd5b;
  --studio-black: #03080c;
  --studio-topbar: 64px;
  --studio-left-rail: 66px;
  --studio-right-rail: 88px;
  --studio-drawer: 318px;
  --mobile-action-h: 62px;
}

.studio-page {
  min-width: 320px;
  background: var(--studio-bg);
  color: var(--studio-text);
  overflow: hidden;
}

.studio-page :focus-visible { outline-color: var(--steel-bright); }
.studio-page button, .studio-page a, .studio-page textarea, .studio-page input { font-family: inherit; }

.studio-topbar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(240px, auto) minmax(210px, 1fr);
  align-items: center;
  height: var(--studio-topbar);
  padding: 0 18px;
  background: #0b1821;
  border-bottom: 1px solid var(--studio-line-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--studio-text);
  text-decoration: none;
}

.studio-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--steel-bright);
  border-radius: 10px 4px 10px 4px;
  background: var(--steel-deep);
  color: white;
  box-shadow: 5px 5px 0 rgba(70, 130, 169, .18);
  font: 800 13px/1 ui-monospace, Consolas, monospace;
}

.studio-brand > span:last-child, .document-title > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.studio-brand strong { font-size: 15px; letter-spacing: -.01em; }
.studio-brand small {
  margin-top: 2px;
  color: var(--studio-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.document-title {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 16px;
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  background: #0e1e29;
}

.document-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--studio-yellow);
  box-shadow: 0 0 0 4px rgba(228, 189, 91, .12);
}

.document-title strong {
  overflow: hidden;
  max-width: 230px;
  color: var(--studio-text);
  font: 650 12px/1.2 ui-monospace, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-title small { margin-top: 3px; color: var(--studio-muted); font-size: 10px; }
.studio-nav { display: flex; justify-content: flex-end; gap: 4px; }
.realtime-clock {
  align-self: center;
  margin-right: 5px;
  padding: 7px 9px;
  border: 1px solid var(--studio-line);
  border-radius: 7px;
  color: var(--steel-pale);
  font: 700 11px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .04em;
}
.studio-nav a {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--studio-muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.studio-nav a:hover { background: var(--studio-panel-3); color: white; }

.studio-workspace {
  position: relative;
  display: grid;
  grid-template-columns: var(--studio-left-rail) 0 minmax(0, 1fr) var(--studio-right-rail);
  height: calc(100dvh - var(--studio-topbar));
  background: var(--studio-black);
  transition: grid-template-columns .24s cubic-bezier(.2, .8, .2, 1);
}
.studio-workspace.drawer-open {
  grid-template-columns: var(--studio-left-rail) var(--studio-drawer) minmax(0, 1fr) var(--studio-right-rail);
}

.tool-rail {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #0a151d;
}
.left-tool-rail {
  grid-column: 1;
  gap: 5px;
  padding: 12px 8px;
  border-right: 1px solid var(--studio-line-strong);
}

.rail-tool, .action-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--studio-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.rail-tool {
  position: relative;
  flex-direction: column;
  gap: 6px;
  min-height: 58px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
}
.rail-tool svg, .action-tool svg, .drawer-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.rail-tool:hover, .rail-tool[aria-expanded="true"] {
  border-color: var(--studio-line-strong);
  background: var(--studio-panel-3);
  color: white;
}
.rail-tool[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  right: -9px;
  width: 3px;
  height: 28px;
  background: var(--steel-bright);
}
.rail-link { margin-top: auto; }

.left-drawer {
  position: relative;
  z-index: 15;
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  background: var(--studio-panel);
  border-right: 1px solid transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-22px);
  visibility: hidden;
  transition: opacity .18s ease, transform .24s cubic-bezier(.2, .8, .2, 1), border-color .18s ease, box-shadow .18s ease;
}
.drawer-open .left-drawer {
  border-right-color: var(--studio-line-strong);
  box-shadow: 18px 0 38px rgba(0, 0, 0, .3);
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}
.drawer-inner { width: var(--studio-drawer); height: 100%; padding: 18px; overflow-y: auto; }
.drawer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--studio-line);
}
.drawer-kicker, .deck-kicker {
  color: var(--steel-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.drawer-heading h2, .drawer-panel h3, .deck-header h1, .stage-head h2, .console-deck h2 { margin: 0; }
.drawer-heading h2 { margin-top: 4px; font-size: 20px; letter-spacing: -.03em; }
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: var(--studio-panel-2);
  color: var(--studio-muted);
  cursor: pointer;
  font-size: 23px;
}
.icon-button:hover { border-color: var(--steel); color: white; }

.drawer-panel { padding: 19px 0; }
.drawer-panel h3 { font-size: 14px; }
.drawer-panel > p { margin: 8px 0 18px; color: var(--studio-muted); font-size: 12px; line-height: 1.55; }
.drawer-action {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 45px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: var(--studio-panel-2);
  color: var(--studio-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}
.drawer-action:hover { border-color: var(--steel); background: var(--studio-panel-3); }
.drawer-action.danger-action { color: #f3a5a5; }
.drawer-action.danger-action:hover { border-color: rgba(239, 107, 107, .6); }

.sample-list { display: grid; gap: 8px; }
.sample-list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #0d1d27;
  color: var(--studio-text);
  cursor: pointer;
  text-align: left;
}
.sample-list button:hover { border-color: var(--steel); background: var(--studio-panel-3); }
.sample-list b { font-size: 12px; }
.sample-list small { color: var(--studio-muted); font-size: 10px; }

.reference-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 9px;
  padding: 12px;
  border-left: 3px solid var(--steel);
  background: #0e202b;
}
.reference-card code { color: var(--steel-pale); font-size: 11px; }
.reference-card span { color: var(--studio-muted); font-size: 10px; line-height: 1.45; }
.drawer-primary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--steel);
  border-radius: 8px;
  background: var(--steel-deep);
  color: white;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.drawer-primary-link:hover { background: var(--steel); }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--studio-line);
  cursor: pointer;
}
.setting-row span { display: flex; flex-direction: column; gap: 4px; }
.setting-row b { font-size: 12px; }
.setting-row small { color: var(--studio-muted); font-size: 10px; line-height: 1.35; }
.setting-row input { width: 18px; height: 18px; accent-color: var(--steel-bright); }

.limits-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(228, 189, 91, .26);
  border-radius: 8px;
  background: rgba(228, 189, 91, .06);
}
.limits-card > span { grid-column: 1 / -1; margin-bottom: 5px; color: var(--studio-yellow); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.limits-card b { font: 700 12px/1 ui-monospace, Consolas, monospace; }
.limits-card small { color: var(--studio-muted); font-size: 10px; text-align: right; }

.studio-center {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 3;
  grid-template-columns: minmax(360px, 46%) minmax(420px, 54%);
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  background: var(--studio-black);
}
.code-deck, .stage-deck {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--studio-panel);
}
.code-deck {
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto minmax(128px, 28%);
  border-right: 1px solid var(--studio-line-strong);
}
.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 61px;
  padding: 11px 17px;
  border-bottom: 1px solid var(--studio-line);
  background: #0e1d27;
}
.deck-header h1 { margin-top: 3px; font-size: 16px; letter-spacing: -.025em; }
.code-metrics { color: var(--studio-muted); font: 10px/1.3 ui-monospace, Consolas, monospace; white-space: nowrap; }

.code-surface {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 0;
  background: #061018;
}
.code-gutter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-top: 17px;
  border-right: 1px solid var(--studio-line);
  background: #09151d;
  color: var(--steel-bright);
  font: 800 10px/1 ui-monospace, Consolas, monospace;
}
.code-gutter i { width: 3px; height: 3px; border-radius: 50%; background: #2d5062; }
#code {
  width: 100%;
  height: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: 0;
  padding: 17px 18px 28px;
  background: #061018;
  color: #dceaf0;
  caret-color: var(--steel-bright);
  font: 13px/1.72 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  tab-size: 2;
}
#code::placeholder { color: #58707d; }
#code.no-wrap { white-space: pre; overflow-x: auto; }

.editor-help {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 33px;
  padding: 0 14px;
  border-top: 1px solid var(--studio-line);
  border-bottom: 1px solid var(--studio-line);
  background: #0a1720;
  color: var(--studio-muted);
  font-size: 9px;
}
.editor-help span:last-child { margin-left: auto; }
.editor-help kbd {
  min-width: 18px;
  margin-right: 3px;
  padding: 2px 4px;
  border: 1px solid var(--studio-line-strong);
  border-bottom-color: #071018;
  border-radius: 3px;
  background: var(--studio-panel-3);
  color: var(--steel-pale);
  font-size: 8px;
  text-align: center;
}

.console-deck { display: flex; min-height: 0; flex-direction: column; background: #08131b; }
.console-deck > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--studio-line);
}
.console-deck h2 { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.studio-status, .point-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--studio-muted);
  font-size: 9px;
  font-weight: 700;
}
.studio-status i, .point-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--studio-green); }
.studio-status[data-state="busy"] i { background: var(--studio-yellow); }
.studio-status[data-state="error"] i { background: var(--studio-red); }
.studio-status[data-state="limit"] i { background: var(--studio-yellow); }
.console-deck .console {
  flex: 1;
  min-height: 0;
  margin: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  background: #050d12;
  color: #a8bdc7;
  font: 10.5px/1.55 "Cascadia Code", Consolas, monospace;
  white-space: pre-wrap;
}
.console-deck .console.err { color: #f5a2a2; }
.console-deck .console.limit { color: #efd58f; }
.console-deck .console.busy { color: #a8d7ec; }
.console-deck .console.ok { color: #92ddb7; }

.stage-deck { background: #050b10; }
#viewport { display: block; width: 100%; height: 100%; outline: none; }
.stage-head {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 17px;
  right: 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}
.stage-head h2 { margin-top: 4px; font-size: 17px; letter-spacing: -.03em; }
.stage-telemetry { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.point-status {
  padding: 7px 10px;
  border: 1px solid var(--studio-line-strong);
  border-radius: 7px;
  background: rgba(7, 16, 24, .86);
  color: var(--steel-pale);
}
.playback-bar {
  position: absolute;
  z-index: 5;
  right: 17px;
  bottom: 54px;
  left: 17px;
  display: grid;
  grid-template-columns: auto auto minmax(70px, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--studio-line-strong);
  border-radius: 9px;
  background: rgba(7, 16, 24, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}
.playback-bar button, .playback-bar select {
  min-height: 30px;
  border: 1px solid var(--studio-line-strong);
  border-radius: 6px;
  background: var(--studio-panel-2);
  color: var(--studio-text);
  cursor: pointer;
}
.playback-bar button { padding: 0 10px; font-size: 10px; font-weight: 700; }
.playback-bar button:first-child { width: 34px; padding: 0; color: var(--studio-green); }
.playback-bar button:disabled, .playback-bar select:disabled, .playback-bar input:disabled { cursor: default; opacity: .45; }
.playback-bar output { min-width: 92px; color: var(--steel-pale); font: 700 10px/1 ui-monospace, Consolas, monospace; }
.playback-bar label { color: var(--studio-muted); font-size: 9px; }
.playback-bar select { padding: 0 6px; font-size: 10px; }
.playback-bar input { width: 100%; accent-color: var(--studio-green); }
.axis-key, .view-help {
  position: absolute;
  z-index: 4;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--studio-muted);
  font-size: 9px;
  pointer-events: none;
}
.axis-key { left: 17px; }
.axis-key span { display: inline-flex; align-items: center; gap: 4px; }
.axis-key i { width: 12px; height: 2px; }
.axis-x { background: var(--studio-red); }
.axis-y { background: var(--studio-green); }
.axis-z { background: var(--steel-bright); }
.view-help { right: 17px; padding: 7px 9px; border: 1px solid var(--studio-line); background: rgba(7, 16, 24, .78); }

.right-action-rail {
  grid-column: 4;
  gap: 8px;
  padding: 12px 9px;
  border-left: 1px solid var(--studio-line-strong);
}
.action-tool {
  flex-direction: column;
  gap: 7px;
  min-height: 69px;
  padding: 7px 4px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 750;
}
.action-tool:hover:not(:disabled) { transform: translateY(-1px); }
.action-tool:disabled { cursor: wait; opacity: .48; }
.compile-tool { border-color: rgba(115, 168, 199, .36); background: var(--steel-deep); color: white; }
.compile-tool:hover:not(:disabled) { border-color: var(--steel-bright); background: var(--steel); }
.run-tool { border-color: rgba(84, 201, 140, .4); background: #174c36; color: #d9f8e8; }
.run-tool:hover:not(:disabled) { border-color: var(--studio-green); background: #24694c; }
.orbit-tool { border-color: rgba(228, 189, 91, .34); background: #3b321a; color: #f7dda0; }
.orbit-tool:hover:not(:disabled) { border-color: var(--studio-yellow); background: #554822; }
.quiet-tool { border-color: var(--studio-line); background: var(--studio-panel-2); }
.quiet-tool:hover { border-color: var(--studio-line-strong); background: var(--studio-panel-3); color: white; }
.rail-separator { height: 1px; margin: 4px 3px; background: var(--studio-line); }

@media (max-width: 1120px) {
  :root { --studio-drawer: 286px; }
  .studio-center { grid-template-columns: minmax(330px, 48%) minmax(360px, 52%); }
  .studio-nav a:nth-child(2) { display: none; }
  .view-help span:nth-child(2) { display: none; }
}

@media (max-width: 840px) {
  :root { --studio-right-rail: 72px; --studio-left-rail: 58px; }
  .studio-topbar { grid-template-columns: 1fr auto; }
  .document-title { display: none; }
  .studio-nav a { display: none; }
  .studio-nav a:last-child { display: block; }
  .studio-workspace, .studio-workspace.drawer-open { grid-template-columns: var(--studio-left-rail) 0 minmax(0, 1fr) var(--studio-right-rail); }
  .left-drawer {
    position: fixed;
    z-index: 35;
    grid-column: auto;
    top: var(--studio-topbar);
    bottom: 0;
    left: var(--studio-left-rail);
    width: min(var(--studio-drawer), calc(100vw - var(--studio-left-rail) - 20px));
    transform: translateX(calc(-100% - var(--studio-left-rail)));
  }
  .drawer-open .left-drawer { transform: translateX(0); }
  .studio-center { grid-template-columns: 1fr; grid-template-rows: minmax(0, 58fr) minmax(0, 42fr); }
  .code-deck {
    grid-template-rows: auto minmax(72px, 1fr) auto clamp(72px, 18dvh, 120px);
    border-right: 0;
    border-bottom: 1px solid var(--studio-line-strong);
  }
  .stage-deck { grid-row: 2; }
  .action-tool { min-height: 60px; }
  .action-tool span { font-size: 8px; }
  .view-help { display: none; }
  .playback-bar { bottom: 42px; grid-template-columns: auto auto minmax(60px, 1fr) auto; }
  .playback-bar label, #orbitObjectToggle { display: none; }
}

@media (max-width: 570px) {
  :root { --studio-topbar: 52px; --studio-left-rail: 49px; --mobile-action-h: 60px; }
  .studio-topbar { padding: 0 11px; }
  .studio-logo { width: 34px; height: 34px; }
  .studio-brand small { display: none; }
  .realtime-clock { margin-right: 0; }
  .studio-workspace, .studio-workspace.drawer-open {
    grid-template-columns: var(--studio-left-rail) minmax(0, 1fr);
    padding-bottom: var(--mobile-action-h);
  }
  .studio-center { grid-column: 2; grid-template-rows: minmax(0, 60fr) minmax(0, 40fr); }
  .right-action-rail {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: var(--studio-left-rail);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: var(--mobile-action-h);
    padding: 6px 8px;
    border-top: 1px solid var(--studio-line-strong);
    border-left: 0;
    box-shadow: 0 -12px 28px rgba(0, 0, 0, .32);
  }
  .action-tool { min-width: 0; min-height: 0; height: 48px; flex-direction: column; gap: 2px; padding: 3px 2px; }
  .action-tool svg { width: 18px; height: 18px; }
  .action-tool span { overflow: hidden; max-width: 100%; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
  .rail-separator { display: none; }
  .left-tool-rail { padding: 8px 5px; }
  .rail-tool { min-height: 52px; }
  .rail-tool span { display: none; }
  .left-drawer {
    bottom: var(--mobile-action-h);
    left: var(--studio-left-rail);
    width: min(var(--studio-drawer), calc(100vw - var(--studio-left-rail) - 8px));
  }
  .deck-header { min-height: 52px; padding: 8px 12px; }
  .deck-header h1 { font-size: 14px; }
  .code-metrics { display: none; }
  .code-surface { grid-template-columns: 31px minmax(0, 1fr); }
  #code { padding: 13px 11px 22px; font-size: 12px; }
  .editor-help { gap: 9px; padding: 0 8px; }
  .editor-help span:nth-child(2) { display: none; }
  .stage-head { top: 10px; left: 11px; right: 11px; }
  .axis-key { left: 11px; bottom: 10px; }
  .playback-bar { right: 11px; bottom: 37px; left: 11px; padding: 5px; gap: 5px; }
  .stage-telemetry .point-status:first-child { display: none; }
}

@media (max-width: 570px) and (max-height: 620px) {
  .code-deck { grid-template-rows: auto minmax(54px, 1fr) auto clamp(58px, 14dvh, 72px); }
  .deck-header { min-height: 44px; padding-block: 6px; }
  .editor-help { min-height: 27px; }
  .console-deck > header { min-height: 31px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root { --studio-topbar: 48px; }
  .studio-topbar { height: var(--studio-topbar); padding-block: 0; }
  .studio-center {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .code-deck {
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: auto minmax(60px, 1fr) auto clamp(58px, 20dvh, 78px);
    border-right: 1px solid var(--studio-line-strong);
    border-bottom: 0;
  }
  .stage-deck { grid-column: 2; grid-row: 1; }
  .deck-header { min-height: 44px; padding-block: 6px; }
  .editor-help { min-height: 27px; }
  .console-deck > header { min-height: 31px; }
  .right-action-rail { gap: 4px; padding-block: 7px; }
  .right-action-rail .action-tool { min-height: 46px; }
  .rail-separator { margin-block: 1px; }
  .left-tool-rail { gap: 2px; padding-block: 4px; overflow-y: auto; }
  .left-tool-rail .rail-tool { min-height: 36px; gap: 2px; }
  .left-tool-rail .rail-tool svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-workspace, .left-drawer, .rail-tool, .action-tool { transition: none !important; }
}
