.studio {
  --studio-ink: #dce7ff;
  --studio-muted: #a6bad1;
  --studio-edge: #344664;
  margin-bottom: 22px;
  background: radial-gradient(ellipse at top right, #1f2b49, transparent 53%), #111b2b;
  color: var(--studio-ink);
}
.studio [hidden] { display: none !important; }
.studio h2, .studio h3 { margin: 0; }
.studio h2 { font-size: clamp(23px, 3vw, 31px); }
.studio h3 { font-size: 17px; }
.studio p { margin: 7px 0 0; color: var(--studio-muted); line-height: 1.55; }
.studio-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.studio-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.studio-preset {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  background: #182439;
  border: 1px solid var(--studio-edge);
  border-radius: 11px;
  padding: 15px;
}
.studio-preset p { font-size: 12px; margin: 0; }
.studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.studio-preset .studio-actions { margin-top: 4px; }
.studio-text { background: transparent; color: #abd5ff; border: 0; padding: 8px 4px; font-size: 12px; }
.studio-text:hover { text-decoration: underline; }
.studio-file { position: relative; cursor: pointer; }
.studio-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.studio-file:focus-within { outline: 2px solid #a3f273; outline-offset: 3px; }
.studio-identity, .studio-saved { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.studio-identity { justify-content: space-between; margin-bottom: 18px; }
.studio-identity label { display: grid; gap: 6px; flex: 1 1 155px; }
.studio-identity > label { flex: 0 1 265px; }
.studio-saved { flex: 0 1 370px; }
.studio-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.studio fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--studio-edge); border-radius: 11px; background: #141f33; }
.studio legend { color: #c1dbfc; font-weight: 750; padding: 0 7px; font-size: 14px; }
.studio-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.studio-fields label { min-width: 0; display: grid; align-content: start; gap: 6px; }
.studio-fields :is(input, select) { width: 100%; }
.studio label { color: #b0c1d8; }
.studio-checkout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #3c526e;
  background: #1a3046;
  margin-top: 16px;
  border-radius: 9px;
  padding: 12px;
}
.studio-checkout p { margin: 0; color: #edf5ff; font-weight: 650; }
.studio #builderStatus:not(:empty) { padding: 6px 0; }
.studio details { margin-top: 12px; border: 1px solid var(--studio-edge); border-radius: 8px; padding: 11px; }
.studio details a { display: inline-block; margin-top: 8px; }
.studio summary { cursor: pointer; font-weight: 650; }
.studio details label { display: block; margin: 10px 0 5px; }
.studio textarea { width: 100%; background: #0c1523; color: #d7e3f6; border: 1px solid var(--studio-edge); border-radius: 7px; padding: 10px; font: 12px ui-monospace, monospace; margin-bottom: 8px; }
.demo-manual-title p { margin: 6px 0 0; }
.bot-armed { padding: 10px; margin: 12px 0; border: 1px solid #486184; border-radius: 7px; background: #1a3046; }
.sidebar { overflow-y: auto; }
.desk-nav a, .desk-nav button { padding-block: 11px; }
.desk-nav a[href="#precision_tool"]:not([aria-current]) { background: none; color: #97a5bb; }
.desk-nav a[aria-current] { background: #1b303d; color: #a4f1e8; }
.desk-chart { scroll-margin-top: 12px; }
.desk-chart .chart-legend { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; justify-content: end; }
.desk-chart .chart-legend label { display: grid; gap: 4px; }
.desk-chart .chart-legend select { padding: 4px 5px; }
@media (max-width: 1180px) { .studio-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .studio-flow { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .desk-nav { flex-wrap: wrap; justify-content: start; }
  .desk-nav a:not([href="#precision"]):not([href="#bot"]):not([href="#journal"]) { display: flex; padding: 7px; }
  .desk-nav a[href="#bot"] { display: none; }
  .desk-nav span { display: none; }
  .studio-presets { grid-template-columns: 1fr 1fr; gap: 8px; }
  .studio-preset { padding: 10px; }
  .studio .secondary, .studio .primary { padding: 9px 10px; }
}
