body.studio {
  --ink: #1c332c;
  --accent: #185c46;
  --line: #dce4df;
  --muted: #607069;
  --paper: #fff;
  background: #f3f6f3;
  color: var(--ink);
  font:
    14px/1.55 "Inter",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}
.studio main {
  width: 100%;
  padding: 0;
  margin: 0;
}
.studio header {
  height: 66px;
  padding: 0 28px;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 8;
  background: #fbfdfb;
  border-bottom: 1px solid var(--line);
}
.brand,
.session,
.action-row,
.row-actions,
.template-cell,
.pager,
.graph-tools,
.view-tools,
.graph-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.studio .brand {
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: #fff;
  background: #254e3d;
  font-weight: 800;
  font-size: 20px;
}
.studio h1 {
  font-size: 20px;
  letter-spacing: 1px;
}
.studio .subtitle {
  color: #65766b;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  letter-spacing: 1px;
}
.studio #main:not([hidden]) {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  min-height: calc(100vh - 66px);
}
.studio #main > aside {
  border-right: 1px solid var(--line);
  background: #eaf0eb;
}
.studio nav {
  display: flex;
  position: sticky;
  top: 78px;
  gap: 4px;
  margin: 16px 12px;
  flex-direction: column;
}
.studio nav a {
  font-weight: 550;
  text-decoration: none;
  color: #476052;
  padding: 10px 16px;
  border-radius: 7px;
  border-left: 3px solid transparent;
}
.studio nav a:hover {
  background: #dde9df;
}
.studio nav a[aria-current="true"] {
  color: #194e38;
  background: #d4e6d8;
  border-left-color: #30714d;
  font-weight: 700;
}
.studio section {
  min-width: 0;
  align-self: start;
  margin: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: auto;
}
.studio h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
.studio h3 {
  margin: 12px 0 2px;
}
.studio small,
.count,
.empty-list {
  color: var(--muted);
}
.studio button,
.studio select,
.studio input,
.studio textarea {
  border-radius: 6px;
  border-color: #c6d3cb;
  padding: 7px 10px;
}
.studio button {
  font-size: 13px;
}
.studio .primary {
  background: #21563f;
  color: white;
  border-color: #21563f;
}
.studio a,
.studio .link {
  color: #246248;
}
.studio button.link,
.studio .row-link {
  border: 0;
  background: transparent;
  padding: 3px 0;
  text-decoration: none;
  font-weight: 600;
}
.studio .link:hover,
.studio .row-link:hover {
  text-decoration: underline;
}
.studio .danger {
  color: #9a433f;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
}
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 17px;
}
.filters input {
  min-width: 185px;
}
.filters select {
  max-width: 185px;
}
.table-scroll {
  overflow-x: auto;
}
.records {
  width: 100%;
  border-collapse: collapse;
  white-space: normal;
}
.studio th {
  color: #52685b;
  background: #f1f5f1;
  text-align: left;
  font-size: 12px;
  padding: 9px 10px;
}
.studio td {
  padding: 9px 10px;
  border-bottom: 1px solid #e4eae5;
  vertical-align: middle;
}
.records tbody tr:hover {
  background: #f7faf7;
}
.row-actions {
  gap: 12px;
  white-space: nowrap;
}
.template-cell img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}
.badge {
  display: inline-block;
  background: #ecefeb;
  color: #627068;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge.on {
  color: #246242;
  background: #e1f1e4;
}
.pager {
  margin-top: 16px;
  justify-content: flex-end;
  font-size: 12px;
}
.pager .count {
  margin-right: auto;
}
.studio #login {
  display: grid;
  max-width: 390px;
  gap: 16px;
  margin: 12vh auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.studio #login[hidden] {
  display: none;
}
.studio #notice {
  position: fixed;
  z-index: 12;
  right: 24px;
  top: 65px;
  background: #e2f3e7;
  border: 1px solid #c1d7c6;
  box-shadow: 0 4px 12px #203d2515;
  max-width: min(480px, 90vw);
}
.studio #notice.err {
  background: #fff1eb;
  border-color: #e8c3b5;
}
.record-form,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 15px;
}
.wide {
  grid-column: 1/-1;
}
.studio .record-form input,
.studio .record-form select,
.studio .record-form textarea {
  width: 100%;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.studio label {
  color: #42564a;
  min-width: 0;
}
.asset-picker {
  display: grid;
  gap: 4px;
}
.asset-picker input[type="file"] {
  font-size: 12px;
}
.asset-picker small:empty,
.form-grid:empty {
  display: none;
}
.studio .blueprint-page {
  overflow: visible;
  min-width: 0;
}
.graph-name {
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.graph-name label {
  min-width: 240px;
}
.graph-tools {
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.graph-workspace {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 248px;
  border: 1px solid #cdd9cf;
  border-radius: 9px;
  overflow: hidden;
}
.canvas-area {
  position: relative;
  min-width: 0;
}
.canvas-view {
  height: clamp(450px, 67vh, 850px);
  width: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #f5f8f5;
  background-image: radial-gradient(circle, #cbd7cd 1px, transparent 1.4px);
  touch-action: none;
  cursor: grab;
}
.canvas-view:active {
  cursor: grabbing;
}
.canvas-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}
.wires {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
}
.wires path {
  fill: none;
  stroke: #83a08b;
  stroke-width: 2;
}
.wires path.active {
  stroke: #28734c;
  stroke-width: 2.5;
}
.graph-node {
  position: absolute;
  width: 186px;
  height: 84px;
  padding: 9px 13px;
  border: 1px solid #c3d1c8;
  border-left: 4px solid #548c75;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 5px #193d2512;
  touch-action: none;
  user-select: none;
  cursor: move;
}
.graph-node.input {
  border-left-color: #6272a1;
}
.graph-node.ref {
  border-left-color: #997d42;
}
.graph-node.result {
  border-left-color: #a07045;
}
.graph-node.selected,
.graph-node.armed {
  outline: 2px solid #41866b;
  outline-offset: 2px;
}
.graph-node small,
.graph-node strong,
.graph-node span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.graph-node small {
  font-size: 10px;
  letter-spacing: 1px;
}
.graph-node strong {
  font-size: 15px;
}
.graph-node span {
  font-size: 11px;
  color: #607166;
}
.studio .port {
  border: 2px solid #548c73;
  background: #fff;
  position: absolute;
  top: 35px;
  width: 13px;
  height: 13px;
  padding: 0;
  border-radius: 50%;
  touch-action: none;
  cursor: crosshair;
}
.port.in {
  left: -8px;
}
.port.out {
  right: -7px;
}
.studio .port:hover {
  background: #86b49a;
}
.canvas-status {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #5b4a2c;
  background: #fff6da;
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
}
.canvas-status:empty {
  display: none;
}
.view-tools {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 6px;
  box-shadow: 0 2px 5px #20302012;
}
.zoom-value {
  min-width: 36px;
  text-align: center;
  font-size: 12px;
}
.studio .tiny {
  padding: 3px 6px;
  font-size: 12px;
}
.inspector {
  padding: 13px;
  border-left: 1px solid var(--line);
  overflow: auto;
  max-height: clamp(450px, 67vh, 850px);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.inspector h3,
.inspector h4 {
  margin: 2px 0;
}
.inspector h4 {
  font-size: 12px;
  color: #64786a;
}
.inspector label {
  font-size: 12px;
}
.inspector input,
.inspector select,
.inspector textarea {
  width: 100%;
  min-width: 0;
}
.connection {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 4px;
}
.connection span {
  flex: 1;
}
.studio [hidden] {
  display: none !important;
}
@media (max-width: 980px) {
  .studio #main:not([hidden]) {
    grid-template-columns: 144px minmax(0, 1fr);
  }
  .studio section {
    padding: 16px;
    margin: 12px;
  }
  .graph-workspace {
    grid-template-columns: minmax(190px, 1fr) 205px;
  }
  .studio nav {
    margin: 12px 7px;
  }
}
@media (max-width: 700px) {
  .studio header {
    height: 52px;
    padding: 0 10px;
  }
  .studio #main:not([hidden]) {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .studio nav {
    top: 60px;
  }
  .studio nav a {
    padding: 9px 3px;
    font-size: 12px;
  }
  .studio section {
    padding: 9px;
    margin: 7px;
  }
  .studio h2 {
    font-size: 18px;
  }
  .filters select,
  .filters input {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .record-form,
  .form-grid,
  .graph-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 330px;
  }
  .canvas-view {
    height: 400px;
  }
  .studio .graph-name label {
    min-width: 0;
  }
  .studio .section-head,
  .pager {
    flex-wrap: wrap;
  }
  .studio .template-cell img {
    width: 30px;
    height: 30px;
  }
  .studio th,
  .studio td {
    padding: 6px;
  }
  .studio .subtitle {
    display: none;
  }
}

/* Editors use a single top-layer dialog. The underlying list keeps its context. */
body.has-dialog {
  overflow: hidden;
}
.studio-dialog {
  padding: 0;
  border: 1px solid #cddbd3;
  border-radius: 16px;
  color: var(--ink);
  background: white;
  width: min(760px, calc(100vw - 32px));
  max-width: calc(100vw - 20px);
  max-height: 90dvh;
  box-shadow: 0 24px 100px #102d2340;
  overflow: hidden;
}
.studio-dialog[open] {
  display: flex;
  flex-direction: column;
}
.studio-dialog::backdrop {
  background: #102a225c;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: none;
  padding: 18px 24px;
  border-bottom: 1px solid #dce5e0;
  background: #fafcfb;
}
.studio .dialog-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}
.dialog-close {
  font: 24px/1 system-ui !important;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  background: transparent;
  border: 1px solid #d4dfd8;
}
.dialog-body {
  padding: 22px 24px 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.dialog-body > .table-scroll:last-child,
.dialog-body > p:last-child,
.dialog-body > .pager:last-child {
  margin-bottom: 20px;
}
.studio-dialog .record-form {
  align-items: start;
  gap: 17px 20px;
}
.studio-dialog .record-form > label,
.studio-dialog .form-grid > label {
  font-weight: 600;
  color: #354d41;
}
.studio-dialog input:not([type="checkbox"]),
.studio-dialog textarea,
.studio-dialog select {
  font-weight: 400;
  color: #1c332c;
  background: #fff;
  border: 1px solid #c5d1c9;
}
.studio-dialog textarea {
  min-height: 62px;
  resize: vertical;
  font-family: inherit;
}
.studio-dialog :is(input, textarea, select, button):focus-visible,
.studio a:focus-visible {
  outline: 2px solid #377d63;
  outline-offset: 2px;
}
.studio-dialog .form-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: white;
  padding: 12px 0;
  min-height: 55px;
}
.dialog-message {
  flex: none;
  margin: 10px 24px 0;
  padding: 8px 12px;
  background: #e3f3e7;
  border-radius: 6px;
}
.dialog-message.err {
  background: #fff0ec;
  color: #853825;
}
.studio-dialog.decision {
  width: min(395px, 95vw);
  padding: 23px;
}
.studio .decision h2 {
  margin: 0;
  font-size: 19px;
}
.decision p {
  margin: 9px 0 22px;
}
.decision-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.studio-dialog.canvas-dialog {
  width: calc(100vw - 38px);
  max-width: 1800px;
  height: 94dvh;
  max-height: 95dvh;
}
.canvas-dialog .dialog-body {
  padding: 12px 18px 15px;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}
.canvas-dialog .graph-name {
  margin: 0 0 8px;
}
.canvas-dialog .graph-workspace {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 275px;
}
.canvas-dialog .canvas-area,
.canvas-dialog .canvas-view {
  height: 100%;
  min-height: 0;
}
.canvas-dialog .inspector {
  max-height: none;
  min-height: 0;
}
.capability-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(133px, 1fr));
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.studio .capability-options label {
  display: flex;
  align-items: center;
  flex-direction: row;
  font-size: 12px;
  padding: 4px;
  overflow-wrap: anywhere;
}
.studio .capability-options input {
  width: auto;
}
.material-preview {
  width: 100%;
  height: 112px;
  object-fit: contain;
  background: #eff3f0;
  border-radius: 6px;
}
.asset-picker {
  padding: 8px;
  border: 1px solid #dce5df;
  border-radius: 9px;
  background: #fafcfb;
  min-width: 0;
}
.asset-picker .link {
  justify-self: end;
}
.asset-picker small {
  margin: 0;
}
.storage-connect,
.user-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.storage-connect small {
  margin: 0;
}
.user-summary {
  padding: 13px 15px;
  background: #eff5f1;
  border-radius: 8px;
  justify-content: space-between;
}
.business-id {
  overflow-wrap: anywhere;
  max-width: 350px;
  font-size: 11px;
  margin: 2px 0;
}
.field-note {
  margin: 0;
  color: var(--muted);
}
.review-media {
  display: block;
  max-height: 55vh;
  max-width: 100%;
  margin: auto;
}
.records tbody tr:has(a.row-link) {
  cursor: pointer;
}
@media (max-width: 700px) {
  .studio-dialog {
    width: calc(100vw - 14px);
    max-width: calc(100vw - 12px);
    max-height: 93dvh;
  }
  .dialog-head {
    padding: 12px 14px;
  }
  .dialog-body {
    padding: 14px 13px 0;
  }
  .studio-dialog.canvas-dialog {
    width: calc(100vw - 10px);
    height: 96dvh;
    max-height: 97dvh;
  }
  .canvas-dialog .dialog-body {
    padding: 8px;
    overflow: auto;
  }
  .canvas-dialog .graph-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 340px auto;
    min-height: 500px;
    flex: none;
  }
  .canvas-dialog .inspector {
    max-height: 280px;
  }
  .canvas-dialog .graph-tools select {
    max-width: 150px;
  }
  .dialog-head .action-row {
    gap: 4px;
  }
}

.studio-dialog:has(.template-editor) {
  width: min(1180px, calc(100vw - 28px));
}
.studio-dialog .template-editor {
  --template-help-width: clamp(240px, 27vw, 340px);
  grid-template-columns: minmax(0, 1fr);
}
.template-columns,
.template-param-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) var(--template-help-width);
  gap: 20px;
  align-items: start;
}
.template-columns {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: #354d41;
}
.template-columns > :last-child {
  padding-left: 13px;
}
.template-columns > .blueprint-tabs {
  padding: 0;
  gap: 6px;
  border: 0;
}
.template-editor-body,
.template-editor-fields {
  display: grid;
  min-width: 0;
  gap: 14px;
}
.with-adapter-preview .template-editor-body {
  grid-template-columns: minmax(0, 1fr) var(--template-help-width);
  gap: 20px;
  align-items: start;
}
.with-adapter-preview .template-adapter-pane {
  position: sticky;
  top: 0;
  min-width: 0;
}
.with-adapter-preview .template-param-row {
  grid-template-columns: minmax(0, 1fr);
}
.with-adapter-preview .template-param-help {
  display: none;
}
.template-param-row[hidden] {
  display: none;
}
.template-param-row > :first-child {
  min-width: 0;
}
.studio-dialog .template-param-row > label {
  font-weight: 600;
  color: #354d41;
}
.studio .template-param-help {
  align-self: start;
  margin: 0;
  padding: 8px 12px;
  border-left: 1px solid #d3e2d9;
  border-radius: 0 5px 5px 0;
  background: #f5f8f6;
  color: #496355;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.template-param-row:focus-within .template-param-help {
  border-left-color: #4c8266;
  background: #edf5f0;
}
.template-basics {
  display: grid;
  gap: 12px;
}
.template-param-row .asset-picker {
  max-width: 540px;
}
.template-adapter-add {
  display: flex;
  flex: 0 1 450px;
  align-items: end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.template-adapter-add > label {
  flex: 1;
}
.template-adapter-add > button {
  flex: none;
}
.template-user-field {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.studio .template-user-field .template-basic-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}
.studio .template-editor .template-basic-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #377d63;
}
.studio .template-user-field > label:not(.template-basic-toggle),
.studio .template-audio-input > label {
  margin: 0;
  font-weight: 600;
}
.template-audio-input {
  display: grid;
  gap: 5px;
}
.template-sample-video video {
  height: 148px;
}
.sample-review-assets {
  --sample-review-height: clamp(170px, 22vw, 246px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}
.sample-review-frame {
  box-sizing: content-box;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: var(--sample-review-height);
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0f4f1;
}
.sample-review-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sample-review-still {
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.sample-review-still > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--sample-review-height);
}
.sample-review-person {
  position: absolute;
  border: 2px solid #68e1a9;
  border-radius: 3px;
  pointer-events: none;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field-group > span {
  font-size: 13px;
  font-weight: 600;
  color: #354d41;
}
.template-fields {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.studio .template-fields h3 {
  margin: 0 0 12px;
  font-size: 14px;
}
.template-config-fold > summary {
  cursor: pointer;
  color: #354d41;
  font-size: 14px;
  font-weight: 600;
}
.template-config-fold[open] > summary {
  margin-bottom: 12px;
}
.template-analysis-prompts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  padding: 10px 12px;
  background: #f5f8f6;
  color: #42564a;
  font-size: 13px;
  border-radius: 5px;
}
.template-analysis-prompts dt {
  font-weight: 600;
}
.template-analysis-prompts dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.template-fields:has(> .form-grid:empty) {
  display: none;
}
.template-parameter-group {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px 12px;
}
.template-editor .template-parameter-group {
  padding: 5px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.template-editor .template-parameter-group legend {
  padding: 0 8px 0 0;
}
.template-parameter-group legend {
  padding: 0 5px;
  color: #354d41;
  font-weight: 600;
  font-size: 13px;
}
.material-frame {
  display: grid;
  place-items: center;
  min-height: 68px;
  background: #f0f4f1;
  border-radius: 6px;
}
.material-empty {
  font-size: 12px;
  color: var(--muted);
}
.material-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.studio .material-actions button {
  font-size: 12px;
}
.material-choice {
  font-size: 12px;
  color: #466354;
}
.material-choice summary {
  cursor: pointer;
}
.material-choice input {
  margin-top: 5px;
}
.analysis-scene {
  justify-self: start;
  max-width: 100%;
  max-height: 280px;
  border-radius: 6px;
}
.studio .asset-picker .file-native {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
}
.template-basics .material-preview {
  height: 145px;
}
.studio .dialog-body .field-note {
  margin: 0;
}
.studio #content .records {
  margin: 0;
}
@media (max-width: 760px) {
  .template-columns {
    display: none;
  }
  .template-param-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .with-adapter-preview .template-editor-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .with-adapter-preview .template-adapter-pane {
    position: static;
    grid-row: 1;
  }
  .studio .template-param-help {
    padding: 6px 9px;
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .studio-dialog:has(.template-editor) {
    width: calc(100vw - 14px);
  }
  .template-adapter-add {
    flex: none;
    width: 100%;
  }
}
