.rf-editor-shell {
  --ink: #0b1220;
  --muted: #69788d;
  --line: #dfe6ef;
  --line-strong: #c8d3e0;
  --paper: #ffffff;
  --panel: #f7f9fc;
  --stage: #e9edf3;
  --blue: #0a84ff;
  --blue-soft: #e8f2ff;
  --danger: #d5484f;
  --editor-bg: #ffffff;
  --editor-radius: 0%;
  --logo-x: 0%;
  --logo-y: 0%;
  --logo-scale: .72;
  --logo-rotate: 0deg;
  --logo-opacity: 1;
  --logo-filter: none;
  --logo-blend: normal;
  --warp-skew: 0deg;
  --warp-wide: 1;
  --warp-tall: 1;
  --stage-zoom: 1;
  position: relative;
  width: 100%;
  height: 100svh;
  min-width: 980px;
  min-height: 650px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rf-editor-shell *,
.rf-editor-shell *::before,
.rf-editor-shell *::after {
  box-sizing: border-box;
}

.rf-editor-shell button,
.rf-editor-shell input,
.rf-editor-shell select,
.rf-editor-shell textarea {
  font: inherit;
}

.rf-editor-shell button {
  color: inherit;
}

.rf-editor-shell [hidden] {
  display: none !important;
}

.rf-editor-shell [data-role="topbar"] {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.rf-editor-shell [data-role="brand"] {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
}

.rf-editor-shell [data-role="brand-word"] {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .13em;
}

.rf-editor-shell [data-role="brand-product"],
.rf-editor-shell [data-role="kicker"] {
  margin: 0;
  color: var(--blue);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
}

.rf-editor-shell [data-role="top-divider"] {
  width: 1px;
  height: 23px;
  margin: 0 2px;
  background: var(--line);
}

.rf-editor-shell [data-role="project-title"] {
  width: 176px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.rf-editor-shell [data-role="project-title"]:hover,
.rf-editor-shell [data-role="project-title"]:focus {
  border-color: var(--line-strong);
  background: var(--paper);
}

.rf-editor-shell [data-role="project-title"]:focus {
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .12);
}

.rf-editor-shell [data-role="save-state"] {
  min-width: 54px;
  color: #8a98aa;
  font-size: 10px;
}

.rf-editor-shell [data-role="save-state"][data-state="saved"] {
  color: #238461;
}

.rf-editor-shell [data-role="save-state"][data-state="saving"] {
  color: var(--blue);
}

.rf-editor-shell [data-role="top-spacer"] {
  flex: 1 1 auto;
}

.rf-editor-shell [data-role="toolbar-group"] {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rf-editor-shell button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.rf-editor-shell button:hover {
  border-color: #b7c3d2;
  background: #f8fafc;
}

.rf-editor-shell button:active {
  transform: translateY(1px);
}

.rf-editor-shell button:focus-visible,
.rf-editor-shell input:focus-visible,
.rf-editor-shell select:focus-visible,
.rf-editor-shell textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.rf-editor-shell button[data-variant="primary"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.rf-editor-shell button[data-variant="primary"]:hover {
  border-color: #0076e8;
  background: #0076e8;
}

.rf-editor-shell button[data-variant="dark"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.rf-editor-shell [data-role="file-input"] {
  display: none;
}

.rf-editor-shell [data-role="app-body"] {
  display: grid;
  grid-template-columns: 212px minmax(520px, 1fr) 340px;
  height: calc(100svh - 58px);
  min-height: 0;
}

.rf-editor-shell [data-role="projects-panel"],
.rf-editor-shell [data-role="inspector"] {
  position: relative;
  z-index: 12;
  min-height: 0;
  background: var(--paper);
}

.rf-editor-shell [data-role="projects-panel"] {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.rf-editor-shell [data-role="panel-heading"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 14px 12px;
}

.rf-editor-shell h2,
.rf-editor-shell h3,
.rf-editor-shell p {
  margin-top: 0;
}

.rf-editor-shell [data-role="panel-heading"] h2,
.rf-editor-shell [data-role="panel-copy"] h2,
.rf-editor-shell [data-role="luna-head"] h2 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.rf-editor-shell [data-action="new-project"] {
  width: 31px;
  padding: 0;
  border-style: dashed;
  border-color: #9bc7ff;
  background: #f5f9ff;
  color: var(--blue);
  font-size: 18px;
}

.rf-editor-shell [data-role="project-list"] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  padding: 0 9px 12px;
  scrollbar-gutter: stable;
}

.rf-editor-shell [data-role="empty-projects"] {
  margin: 24px 10px;
  color: #97a3b3;
  font-size: 11px;
  line-height: 1.5;
}

.rf-editor-shell [data-project] {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin: 0 0 4px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}

.rf-editor-shell [data-project]:hover {
  background: #f6f8fb;
}

.rf-editor-shell [data-project][aria-current="true"] {
  border-color: #c9e1ff;
  background: var(--blue-soft);
}

.rf-editor-shell [data-project-thumb] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.rf-editor-shell [data-project-thumb] svg {
  width: 76%;
  height: 76%;
}

.rf-editor-shell [data-project-copy] {
  min-width: 0;
  padding-left: 8px;
}

.rf-editor-shell [data-project-copy] strong,
.rf-editor-shell [data-project-copy] small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rf-editor-shell [data-project-copy] strong {
  font-size: 11px;
}

.rf-editor-shell [data-project-copy] small {
  margin-top: 3px;
  color: #8190a4;
  font-size: 9px;
}

.rf-editor-shell [data-project-delete] {
  width: 22px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aa6b5;
  opacity: 0;
}

.rf-editor-shell [data-project]:hover [data-project-delete] {
  opacity: 1;
}

.rf-editor-shell [data-project-delete]:hover {
  background: #feecee;
  color: var(--danger);
}

.rf-editor-shell [data-role="projects-foot"] {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  color: #8492a5;
  font-size: 9px;
}

.rf-editor-shell [data-role="sync-dot"] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #29a473;
  box-shadow: 0 0 0 3px rgba(41, 164, 115, .12);
}

.rf-editor-shell [data-role="workspace"] {
  position: relative;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--stage);
}

.rf-editor-shell [data-role="canvas-toolbar"] {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid #d7dee8;
  background: rgba(247, 249, 252, .93);
  backdrop-filter: blur(12px);
}

.rf-editor-shell [data-role="canvas-toolbar"] button {
  min-height: 27px;
  padding: 0 8px;
  background: rgba(255, 255, 255, .9);
  font-size: 10px;
}

.rf-editor-shell [data-role="canvas-toolbar"] button[aria-pressed="true"] {
  border-color: #9cc9ff;
  background: var(--blue-soft);
  color: var(--blue);
}

.rf-editor-shell [data-role="zoom-label"] {
  min-width: 48px;
}

.rf-editor-shell [data-role="canvas-hint"] {
  margin-left: auto;
  color: #7c899a;
  font-size: 9px;
}

.rf-editor-shell [data-role="stage"] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: scroll;
  scrollbar-gutter: stable both-edges;
  outline: none;
  background-color: var(--stage);
  background-image:
    linear-gradient(rgba(113, 129, 150, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 129, 150, .10) 1px, transparent 1px);
  background-position: center;
  background-size: 24px 24px;
}

.rf-editor-shell[data-grid="off"] [data-role="stage"] {
  background-image: none;
}

.rf-editor-shell [data-role="artboard"] {
  position: relative;
  width: min(62vh, calc(100vw - 740px));
  min-width: 390px;
  max-width: 650px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(67, 82, 103, .20);
  border-radius: var(--editor-radius);
  background: var(--editor-bg);
  box-shadow: 0 18px 55px rgba(28, 40, 58, .16), 0 2px 8px rgba(28, 40, 58, .08);
  transform: scale(var(--stage-zoom));
  transform-origin: center;
  transition: border-radius .2s ease, background .2s ease, transform .16s ease;
}

.rf-editor-shell [data-role="checker"] {
  position: absolute;
  inset: 0;
  display: none;
  background:
    linear-gradient(45deg, #eef1f5 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f5 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f5 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.rf-editor-shell [data-role="artboard"][data-transparent="true"] [data-role="checker"] {
  display: block;
}

.rf-editor-shell [data-role="selection"] {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74%;
  height: 74%;
  border: 1px solid transparent;
  transform:
    translate(-50%, -50%)
    translate(var(--logo-x), var(--logo-y))
    rotate(var(--logo-rotate))
    skewX(var(--warp-skew))
    scaleX(var(--warp-wide))
    scaleY(var(--warp-tall))
    scale(var(--logo-scale));
  transform-origin: center;
  opacity: var(--logo-opacity);
  mix-blend-mode: var(--logo-blend);
  filter: var(--logo-filter);
  cursor: grab;
  touch-action: none;
  will-change: transform, filter;
}

.rf-editor-shell [data-role="selection"]:active {
  cursor: grabbing;
}

.rf-editor-shell [data-role="stage"]:focus [data-role="selection"],
.rf-editor-shell [data-role="selection"]:hover {
  border-color: rgba(10, 132, 255, .72);
}

.rf-editor-shell [data-role="svg-host"],
.rf-editor-shell [data-role="svg-host"] svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rf-editor-shell [data-role="svg-host"] svg {
  pointer-events: none;
}

.rf-editor-shell [data-handle] {
  position: absolute;
  width: 10px;
  min-height: 10px;
  padding: 0;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: #fff;
  opacity: 0;
}

.rf-editor-shell [data-role="stage"]:focus [data-handle],
.rf-editor-shell [data-role="selection"]:hover [data-handle] {
  opacity: 1;
}

.rf-editor-shell [data-handle="nw"] { top: -5px; left: -5px; cursor: nwse-resize; }
.rf-editor-shell [data-handle="ne"] { top: -5px; right: -5px; cursor: nesw-resize; }
.rf-editor-shell [data-handle="sw"] { bottom: -5px; left: -5px; cursor: nesw-resize; }
.rf-editor-shell [data-handle="se"] { right: -5px; bottom: -5px; cursor: nwse-resize; }

.rf-editor-shell [data-role="guide-x"],
.rf-editor-shell [data-role="guide-y"] {
  position: absolute;
  z-index: 8;
  display: none;
  pointer-events: none;
  background: #ff2f92;
}

.rf-editor-shell [data-role="guide-x"] {
  top: 50%;
  left: 12%;
  width: 76%;
  height: 1px;
}

.rf-editor-shell [data-role="guide-y"] {
  top: 12%;
  left: 50%;
  width: 1px;
  height: 76%;
}

.rf-editor-shell[data-guide-x="true"] [data-role="guide-x"],
.rf-editor-shell[data-guide-y="true"] [data-role="guide-y"] {
  display: block;
}

.rf-editor-shell [data-role="artboard-meta"] {
  position: absolute;
  left: 50%;
  bottom: max(15px, 3vh);
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
  color: #748397;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 8px;
  letter-spacing: .08em;
}

.rf-editor-shell [data-role="inspector"] {
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.rf-editor-shell [data-role="tabs"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 44px;
  border-bottom: 1px solid var(--line);
}

.rf-editor-shell [data-role="tabs"] button {
  position: relative;
  min-width: 0;
  min-height: 43px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7c899a;
  font-size: 10px;
}

.rf-editor-shell [data-role="tabs"] button::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
}

.rf-editor-shell [data-role="tabs"] button[aria-selected="true"] {
  color: var(--ink);
}

.rf-editor-shell [data-role="tabs"] button[aria-selected="true"]::after {
  background: var(--blue);
}

.rf-editor-shell [data-panel] {
  height: calc(100% - 44px);
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
}

.rf-editor-shell [data-role="control-section"] {
  padding: 15px 16px 17px;
  border-bottom: 1px solid var(--line);
}

.rf-editor-shell [data-role="control-section"] h3 {
  margin-bottom: 13px;
  font-size: 11px;
  letter-spacing: .01em;
}

.rf-editor-shell [data-role="segmented"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 12px;
  padding: 3px;
  border-radius: 8px;
  background: #edf1f6;
}

.rf-editor-shell [data-role="segmented"] button {
  min-height: 29px;
  border: 0;
  background: transparent;
  color: #64748b;
}

.rf-editor-shell [data-role="segmented"] button[aria-pressed="true"] {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(25, 39, 58, .13);
}

.rf-editor-shell [data-role="field-row"],
.rf-editor-shell [data-role="check-row"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  color: #5d6c80;
  font-size: 10px;
}

.rf-editor-shell [data-role="field-row"] select,
.rf-editor-shell [data-role="field-row"] input[type="number"],
.rf-editor-shell [data-role="two-up"] input {
  height: 29px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}

.rf-editor-shell [data-role="field-row"] select {
  width: 154px;
  padding: 0 7px;
}

.rf-editor-shell input[type="color"] {
  width: 36px;
  height: 26px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.rf-editor-shell [data-role="check-row"] {
  justify-content: flex-start;
  gap: 8px;
}

.rf-editor-shell [data-role="check-row"] input {
  accent-color: var(--blue);
}

.rf-editor-shell [data-role="range-row"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  min-height: 50px;
  color: #5d6c80;
  font-size: 10px;
}

.rf-editor-shell [data-role="range-row"] output {
  color: #7f8da0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
}

.rf-editor-shell [data-role="range-row"] input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 3px;
  accent-color: var(--blue);
}

.rf-editor-shell [data-role="two-up"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 5px;
}

.rf-editor-shell [data-role="two-up"] label {
  color: #5d6c80;
  font-size: 10px;
}

.rf-editor-shell [data-role="two-up"] label span {
  display: block;
  margin-bottom: 5px;
}

.rf-editor-shell [data-role="two-up"] input {
  width: 100%;
  padding: 0 8px;
}

.rf-editor-shell [data-role="panel-copy"] {
  padding: 19px 17px 11px;
}

.rf-editor-shell [data-role="panel-copy"] > p:last-child,
.rf-editor-shell [data-role="luna-copy"] {
  margin: 8px 0 0;
  color: #718096;
  font-size: 10px;
  line-height: 1.55;
}

.rf-editor-shell [data-role="preset-grid"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 9px 16px 22px;
}

.rf-editor-shell [data-preset] {
  min-height: 128px;
  padding: 7px;
  border-radius: 10px;
  text-align: left;
}

.rf-editor-shell [data-preset-preview] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--preset-bg, #fff);
}

.rf-editor-shell [data-preset-preview][data-circle="true"] {
  border-radius: 50%;
}

.rf-editor-shell [data-preset-preview] svg {
  width: 66%;
  height: 66%;
  color: var(--preset-fill, #0b1220);
}

.rf-editor-shell [data-preset-preview] path {
  fill: currentColor !important;
}

.rf-editor-shell [data-preset-name] {
  display: block;
  margin-top: 7px;
  font-size: 10px;
}

.rf-editor-shell [data-role="luna-head"] {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 19px 17px 0;
}

.rf-editor-shell [data-role="luna-status"] {
  padding: 5px 7px;
  border-radius: 999px;
  background: #eef8f4;
  color: #278160;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 8px;
  font-weight: 700;
}

.rf-editor-shell [data-role="luna-status"][data-state="working"] {
  background: var(--blue-soft);
  color: var(--blue);
  animation: rf-editor-pulse 1.1s ease-in-out infinite;
}

.rf-editor-shell [data-role="luna-status"][data-state="error"] {
  background: #fff0f1;
  color: var(--danger);
}

@keyframes rf-editor-pulse {
  50% { opacity: .45; }
}

.rf-editor-shell [data-role="luna-copy"] {
  padding: 0 17px;
}

.rf-editor-shell [data-role="suggestions"] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 13px 17px 4px;
}

.rf-editor-shell [data-role="suggestions"] button {
  min-height: 27px;
  padding: 0 8px;
  border-color: #cce2ff;
  background: #f7fbff;
  color: #256ead;
  font-size: 9px;
  font-weight: 650;
}

.rf-editor-shell [data-role="luna-transcript"] {
  max-height: 200px;
  overflow-y: scroll;
  padding: 9px 17px 0;
  scrollbar-gutter: stable;
}

.rf-editor-shell [data-panel]::-webkit-scrollbar,
.rf-editor-shell [data-role="project-list"]::-webkit-scrollbar,
.rf-editor-shell [data-role="stage"]::-webkit-scrollbar,
.rf-editor-shell [data-role="luna-transcript"]::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.rf-editor-shell [data-panel]::-webkit-scrollbar-track,
.rf-editor-shell [data-role="project-list"]::-webkit-scrollbar-track,
.rf-editor-shell [data-role="stage"]::-webkit-scrollbar-track,
.rf-editor-shell [data-role="luna-transcript"]::-webkit-scrollbar-track {
  background: #edf1f6;
  border-left: 1px solid #d5dde8;
}

.rf-editor-shell [data-panel]::-webkit-scrollbar-thumb,
.rf-editor-shell [data-role="project-list"]::-webkit-scrollbar-thumb,
.rf-editor-shell [data-role="stage"]::-webkit-scrollbar-thumb,
.rf-editor-shell [data-role="luna-transcript"]::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 3px solid #edf1f6;
  border-radius: 999px;
  background: #8a9aae;
}

.rf-editor-shell [data-panel]::-webkit-scrollbar-thumb:hover,
.rf-editor-shell [data-role="project-list"]::-webkit-scrollbar-thumb:hover,
.rf-editor-shell [data-role="stage"]::-webkit-scrollbar-thumb:hover,
.rf-editor-shell [data-role="luna-transcript"]::-webkit-scrollbar-thumb:hover {
  background: #5e7189;
}

.rf-editor-shell [data-message] {
  margin: 0 0 7px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.45;
}

.rf-editor-shell [data-message="user"] {
  margin-left: 24px;
  background: var(--blue-soft);
  color: #235a91;
}

.rf-editor-shell [data-message="luna"] {
  margin-right: 24px;
  border: 1px solid var(--line);
  background: #fff;
  color: #59697e;
}

.rf-editor-shell [data-role="prompt-box"] {
  margin: 14px 17px 20px;
  overflow: hidden;
  border: 1px solid #b9c6d5;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(30, 48, 71, .08);
}

.rf-editor-shell [data-role="luna-prompt"] {
  display: block;
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 11px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
}

.rf-editor-shell [data-role="prompt-foot"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.rf-editor-shell [data-role="prompt-foot"] span {
  padding-left: 4px;
  color: #93a0b1;
  font-size: 8px;
}

.rf-editor-shell [data-role="code-editor"] {
  display: block;
  width: calc(100% - 34px);
  height: calc(100% - 175px);
  min-height: 360px;
  margin: 4px 17px 10px;
  resize: none;
  padding: 12px;
  border: 1px solid #26364a;
  border-radius: 9px;
  outline: 0;
  background: #0c1624;
  color: #dce7f5;
  font: 9.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  tab-size: 2;
}

.rf-editor-shell [data-role="code-editor"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .12);
}

.rf-editor-shell [data-role="code-foot"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px 20px;
}

.rf-editor-shell [data-role="code-status"] {
  color: #278160;
  font-size: 9px;
}

.rf-editor-shell [data-role="code-status"][data-state="error"] {
  color: var(--danger);
}

.rf-editor-shell [data-role="toast"] {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #0b1220;
  color: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .28);
  transform: translateX(-50%);
  font-size: 11px;
  animation: rf-editor-toast .22s ease;
}

.rf-editor-shell [data-role="toast"][data-state="error"] {
  background: #c83f47;
}

@keyframes rf-editor-toast {
  from { opacity: 0; transform: translate(-50%, 7px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 1180px) {
  .rf-editor-shell [data-role="app-body"] {
    grid-template-columns: 184px minmax(480px, 1fr) 310px;
  }
  .rf-editor-shell [data-role="canvas-hint"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-editor-shell *,
  .rf-editor-shell *::before,
  .rf-editor-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
