:root {
  --ink: #34322d;
  --muted: #858481;
  --green: #1a1a19;
  --line: rgba(0, 0, 0, 0.08);
  --bg: #ffffff;
  --paper: #ffffff;
  --surface: rgba(55, 53, 47, 0.04);
  --surface-strong: rgba(55, 53, 47, 0.06);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 590;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brandmark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-size: 30px;
  line-height: 1;
}
.studio-label {
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: 4px;
}
.top-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.local-badge {
  font-size: 12px;
}
.local-badge i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--muted);
  border-radius: 50%;
  margin-right: 7px;
}
.outline {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 42px 4vw 20px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 590;
  color: var(--muted);
  margin: 0 0 13px;
}
h1 {
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 590;
  color: #0d0d0d;
  margin: 0 0 15px;
}
h1 span {
  color: var(--muted);
}
.intro p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}
.steps {
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 6px;
}
.steps span {
  display: flex;
  gap: 8px;
}
.steps b {
  font-weight: 510;
}
.steps .active {
  color: var(--green);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(290px, 1.1fr) minmax(300px, 1fr) minmax(
      260px,
      0.85fr
    );
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  padding: 26px;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.small-icon {
  font-size: 22px;
  color: var(--green);
}
h2 {
  font-size: 17px;
  font-weight: 590;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 590;
  color: #0d0d0d;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.editor > .muted {
  margin: 12px 0 20px;
}
textarea {
  display: block;
  width: 100%;
  min-height: 146px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}
textarea:focus,
input:focus,
select:focus {
  outline: 3px solid var(--green);
  outline-offset: 1px;
}
textarea::placeholder {
  color: var(--muted);
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.suggestions button {
  border: 0;
  background: var(--surface-strong);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  color: var(--ink);
}
.target-field {
  margin: 26px 0 16px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 590;
  margin-bottom: 8px;
}
select,
input {
  width: 100%;
  padding: 11px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  min-width: 0;
  font-size: 12px;
}
.primary {
  width: 100%;
  border: 0;
  padding: 10px 16px;
  background: var(--green);
  color: white;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 510;
  gap: 8px;
}
.primary:hover:enabled {
  background: #3a3a37;
}
.editor-foot {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 20px;
}
.editor-foot p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.lock-icon {
  font-size: 25px;
  color: var(--muted);
}
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.history-head h3 {
  font-size: 12px;
  margin: 0;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  padding: 7px 0;
}
.history {
  margin-top: 12px;
  max-height: 178px;
  overflow: auto;
}
.history button {
  width: 100%;
  border: 0;
  background: var(--surface-strong);
  text-align: left;
  padding: 11px;
  border-radius: var(--radius);
  margin-bottom: 7px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.history button small {
  color: var(--muted);
}
.preview-area {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  min-width: 0;
}
.preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-bottom: 20px;
  gap: 5px;
}
.pill {
  letter-spacing: 0;
  font-size: 9px;
  padding: 3px 8px;
  background: var(--surface-strong);
  border: 0;
  border-radius: 999px;
}
.phone {
  width: 100%;
  max-width: 306px;
  height: 554px;
  margin: auto;
  border: 6px solid #1a1a19;
  border-radius: 40px;
  background: var(--paper);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-status {
  height: 43px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  font-size: 10px;
  position: relative;
}
.island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 23px;
  border-radius: 20px;
  background: #1a1a19;
}
.phone-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px 13px;
  border-bottom: 1px solid var(--line);
}
.phone-nav > span:first-child {
  font-size: 28px;
  line-height: 1;
}
.bot-avatar {
  background: var(--surface-strong);
  color: var(--ink);
  border: 0;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.phone-nav b {
  font-size: 11px;
  display: block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-nav small {
  font-size: 8px;
  color: var(--muted);
  display: block;
}
.dots {
  margin-left: auto;
  font-weight: bold;
}
.phone-body {
  padding: 15px 14px;
  overflow: auto;
  flex: 1;
}
.today {
  text-align: center;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 17px;
}
.welcome {
  background: var(--surface);
  border: 0;
  border-radius: 2px 12px 12px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.sample-placeholder {
  text-align: center;
  margin: 32px 7px;
  color: var(--muted);
}
.sparkle {
  font-size: 34px;
}
.sample-placeholder h3 {
  font-size: 11px;
  margin: 10px 0;
}
.sample-placeholder p {
  font-size: 10px;
}
.sample-card {
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  margin-top: 15px;
  overflow: hidden;
}
.sample-card > header {
  height: auto;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 7px 10px;
  background: var(--surface-strong);
}
.sample-card dl {
  margin: 0;
  padding: 10px;
}
.sample-card dt {
  font-size: 8px;
  color: var(--muted);
  margin-top: 6px;
}
.sample-card dd {
  font-size: 11px;
  margin: 0;
  overflow-wrap: anywhere;
}
.phone-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.phone-chips span {
  border: 0;
  background: var(--surface-strong);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 9px;
  color: var(--ink);
}
.phone-composer {
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 6px 14px;
  margin: 4px 12px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 25px;
  font-size: 11px;
  color: var(--muted);
}
.send-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.home-bar {
  width: 98px;
  height: 4px;
  background: #1a1a19;
  border-radius: 10px;
  margin: 0 auto 8px;
  flex-shrink: 0;
}
.preview-note {
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  margin: 15px 0 0;
}
.details hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 22px 0;
}
.details > .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.details .metric {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-top: 17px;
}
.metric b {
  font-weight: 510;
  color: var(--ink);
}
.footnote {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.checks {
  padding: 14px;
  background: var(--surface);
  border-radius: 12px;
  margin-top: 18px;
  font-size: 11px;
  line-height: 2.2;
  color: var(--muted);
}
.checks.ready {
  color: var(--green);
}
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tool-tags span {
  padding: 4px 8px;
  font-size: 10px;
  background: var(--surface-strong);
  border-radius: 999px;
  color: var(--ink);
}
#model-format {
  font-size: 10px;
  margin: 2px 0;
}
#bot-summary {
  margin-top: 14px;
}
#download {
  display: block;
  margin: 7px auto 0;
}
.details .primary {
  margin-top: 13px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 30px;
}
#notice {
  padding: 12px 16px;
  border: 0;
  background: var(--surface);
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 20px;
}
#notice.error {
  background: var(--surface-strong);
  color: var(--ink);
}
dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  width: calc(100% - 32px);
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 15px;
}
dialog > p {
  color: var(--muted);
  font-size: 13px;
}
dialog .primary {
  margin: 16px 0;
}
dialog textarea {
  font-size: 11px;
  min-height: 85px;
  margin: 15px 0;
}
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .workspace {
    gap: 34px;
  }
  .panel {
    padding: 30px;
  }
  .phone {
    height: 584px;
    max-width: 318px;
  }
  .preview-area {
    padding: 24px;
  }
}
@media (max-width: 1080px) {
  main {
    padding: 30px 24px;
  }
  .workspace {
    gap: 14px;
    grid-template-columns: minmax(255px, 1fr) minmax(290px, 1fr);
  }
  .details {
    grid-column: 1 / -1;
    display: block;
  }
  .steps {
    display: none;
  }
  .details hr {
    margin: 17px 0;
  }
  .details .primary {
    max-width: 350px;
  }
  .details #download {
    margin: 10px 0;
  }
}
@media (max-width: 650px) {
  header {
    height: 72px;
    padding: 0 20px;
  }
  .brand {
    font-size: 21px;
    gap: 7px;
  }
  .studio-label {
    font-size: 8px;
  }
  .local-badge {
    display: none;
  }
  .top-actions {
    gap: 0;
  }
  .top-actions button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .workspace > * {
    width: 100%;
  }
  .intro {
    margin-bottom: 24px;
  }
  main {
    padding: 28px 18px 10px;
  }
  .intro p:last-child {
    font-size: 12px;
  }
  .panel {
    padding: 22px;
  }
  .phone {
    max-width: 310px;
  }
  .preview-area {
    padding: 20px;
  }
  footer {
    gap: 20px;
    font-size: 9px;
  }
  .details .primary {
    max-width: none;
  }
  .preview-label {
    max-width: 310px;
    margin: 0 auto 18px;
  }
}
/* Shared platform navigation: retain both destinations on narrow screens. */
.top-actions > a { text-decoration: none; }
@media (max-width: 650px) {
  body > header { height: auto; min-height: 72px; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .top-actions { gap: 8px; }
  .top-actions > a { font-size: 10px; padding: 8px 10px; }
}

/* Same mark as the platform; the PNG contains its own rounded silhouette. */
img.brandmark {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

/* Six-language Studio presentation; generated content stays unchanged. */
.studio-language{display:flex;align-items:center;gap:8px;margin:0;font-size:12px}
.studio-language select{width:auto;min-height:44px;max-width:145px}
body>header{height:auto;min-height:88px;gap:16px;flex-wrap:wrap;padding-block:14px}
.top-actions{flex-wrap:wrap;gap:12px}
.panel,.intro>div,.phone-nav>div{min-width:0}
main,dialog{overflow-wrap:anywhere}
.history button{text-align:start}
.brand,.phone-status,#model-name,#pair-code,#pair-link,#public-url{direction:ltr;unicode-bidi:isolate}
#phone-name,#welcome,#notice,#pair-state,.phone-chips span,.sample-card dd{unicode-bidi:plaintext}
#pair-link{direction:ltr!important}
.dots{margin-left:0;margin-inline-start:auto}
.studio-label{margin-left:0;margin-inline-start:4px}
.local-badge i{margin-right:0;margin-inline-end:7px}
.close{right:auto;inset-inline-end:20px}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] .eyebrow,[dir="rtl"] .preview-label,[dir="rtl"] .today,[dir="rtl"] .sample-card>header{letter-spacing:normal}
[dir="rtl"] .welcome{border-radius:12px 2px 12px 12px}
@media(max-width:650px){.top-actions{width:100%;gap:8px}.studio-language{flex-wrap:wrap}.history-head{gap:8px}.phone-nav b{max-width:130px}footer{flex-wrap:wrap}.panel{min-width:0}}
h1 > span[data-i18n]{color:var(--ink)}

/* Conversational authoring, scoped to the new builder. */
#conversation-builder textarea { width:100%; box-sizing:border-box; min-height:100px; margin:10px 0; padding:12px; border:1px solid #d8d8e0; border-radius:12px; font:inherit; resize:vertical; }
#conversation-builder button { margin:6px 0; max-width:100%; white-space:normal; }
.conversation-log { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x proximity; padding:8px 0; }
.conversation-log article { flex:0 0 85%; min-width:0; scroll-snap-align:start; border:1px solid #ddd; border-radius:12px; padding:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.conversation-log article.user { background:#f3f2ff; }
.conversation-output { white-space:pre-wrap; overflow-wrap:anywhere; padding:12px; border-radius:12px; background:#f6f6fa; }
.conversation-actions { display:flex; flex-wrap:wrap; gap:8px; }
.advanced-builder { margin:18px 0; }
.advanced-builder summary { cursor:pointer; }
#conversation-builder [hidden] { display:none; }

/* Studio: shared blue/white visual language, existing authoring contracts. */
.studio-ux {
  --ink:#202737; --muted:#667085; --green:#2369ed; --line:#e5e9ef;
  --surface:#f7f9fc; --surface-strong:#edf3ff; --radius:16px;
  background:#fafbfe; color:var(--ink);
}
.studio-ux > header {height:80px;padding:0 max(28px,calc((100vw - 1320px)/2));background:#fff;gap:24px;}
.studio-ux .brand {font-size:23px;gap:10px;}
.studio-ux .studio-label {border-radius:6px;color:#667085;letter-spacing:1px;}
.studio-ux .top-actions {gap:12px;}
.studio-ux .local-badge {display:none;}
.studio-ux main {max-width:1376px;padding:40px 28px 24px;margin:auto;}
.studio-ux .intro {margin:0 0 26px;display:block;}
.studio-ux .intro h1 {font-size:clamp(30px,3.4vw,46px);line-height:1.18;letter-spacing:-1.5px;margin:8px 0 12px;}
.studio-ux .intro p {max-width:700px;margin:0;}
.studio-ux .eyebrow {color:#2369ed;font-size:11px;font-weight:700;letter-spacing:1.2px;}
.studio-ux .studio-progress {list-style:none;padding:16px 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;background:#fff;border:1px solid var(--line);border-radius:14px;margin:0 0 28px;}
.studio-ux .studio-progress li {display:flex;align-items:center;gap:10px;color:var(--muted);min-width:0;font-size:13px;}
.studio-ux .studio-progress li>span {flex:0 0 30px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:12px;}
.studio-ux .studio-progress [data-stage="current"] {color:#1753c2;}
.studio-ux .studio-progress [data-stage="current"]>span {background:#2369ed;color:#fff;border-color:#2369ed;box-shadow:0 0 0 4px #edf3ff;}
.studio-ux .studio-progress [data-stage="complete"]>span {background:#edf3ff;border-color:#c7dbff;color:#1753c2;}
.studio-ux .workspace {display:grid;grid-template-columns:minmax(0,1.23fr) minmax(0,1fr);gap:24px;align-items:start;}
.studio-ux .panel {padding:28px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 20px #20273703;min-width:0;}
.studio-ux .editor {grid-column:1;grid-row:1 / span 2;}
.studio-ux .preview-area {grid-column:2;grid-row:1;padding:0;min-width:0;}
.studio-ux .details {grid-column:2;grid-row:2;}
.studio-ux .panel-heading {gap:10px;margin-bottom:12px;}
.studio-ux .panel-heading h2 {font-size:19px;letter-spacing:-.4px;}
.studio-ux .studio-section-number {font-size:11px;font-weight:700;color:#2369ed;background:#edf3ff;border-radius:6px;padding:4px 7px;}
.studio-ux label {font-size:13px;font-weight:600;color:var(--ink);}
.studio-ux textarea,.studio-ux input,.studio-ux select {border:1px solid #d7dfe9;border-radius:10px;background:#fff;max-width:100%;color:var(--ink);}
.studio-ux textarea {padding:14px 16px;line-height:1.65;resize:vertical;}
.studio-ux #conversation-input {min-height:146px;margin-top:8px;}
.studio-ux textarea:focus,.studio-ux input:focus,.studio-ux select:focus {outline:3px solid #2369ed22;border-color:#2369ed;}
.studio-ux button:focus-visible,.studio-ux a:focus-visible,.studio-ux summary:focus-visible {outline:3px solid #2369ed;outline-offset:3px;}
.studio-ux .primary {background:#2369ed;color:#fff;border:1px solid #2369ed;border-radius:10px;min-height:46px;box-shadow:none;font-weight:600;}
.studio-ux .primary:hover:not(:disabled) {background:#1755ca;}
.studio-ux .outline {background:#fff;border:1px solid #d7dfe9;border-radius:9px;min-height:40px;}
.studio-ux button:disabled {opacity:.5;}
.studio-ux .studio-starters {display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.studio-ux .studio-starters button {padding:7px 11px;background:#f7f9fc;color:#344054;border:1px solid var(--line);border-radius:8px;font-size:12px;min-height:36px;}
.studio-ux .studio-starters button:hover:not(:disabled) {background:#edf3ff;border-color:#b8d1ff;color:#1753c2;}
.studio-ux .footnote {color:#667085;line-height:1.6;}
.studio-ux #conversation-form>.footnote {font-size:12px;margin:9px 0 16px;}
.studio-ux .studio-stage {padding-top:22px;margin-top:24px;border-top:1px solid var(--line);}
.studio-ux .studio-stage h3 {font-size:17px;margin:0 0 14px;}
.studio-ux .conversation-log:empty,.studio-ux .conversation-actions:has(>button:not([hidden])):empty {display:none;}
.studio-ux .conversation-log {max-height:260px;border:0;background:#f7f9fc;border-radius:10px;margin-bottom:18px;}
.studio-ux .conversation-log article {font-size:13px;border-radius:9px;overflow-wrap:anywhere;}
.studio-ux .conversation-log .user {background:#edf3ff;color:#204783;}
.studio-ux .conversation-log .assistant {background:#fff;}
.studio-ux #conversation-state {color:#475467;font-size:12px;margin:14px 0;}
.studio-ux .conversation-actions {gap:8px;flex-wrap:wrap;}
.studio-ux .conversation-actions button {font-size:12px;}
.studio-ux .conversation-output:not(:empty) {padding:16px;background:#edf3ff;border:1px solid #dce8ff;border-radius:10px;margin:16px 0;overflow-wrap:anywhere;}
.studio-ux .advanced-builder,.studio-ux .studio-settings {border-top:1px solid var(--line);padding-top:16px;margin-top:20px;}
.studio-ux summary {cursor:pointer;color:#475467;font-size:13px;min-height:30px;font-weight:600;}
.studio-ux .advanced-builder[open]>form {padding-top:14px;}
.studio-ux .studio-settings[open] {padding-bottom:16px;}
.studio-ux .studio-settings .target-field {margin-top:16px;}
.studio-ux .studio-settings h3 {font-size:16px;}
.studio-ux .studio-transfer {margin-top:18px;border-top:1px solid var(--line);padding-top:20px;}
.studio-ux .editor-foot {margin:22px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px;}
.studio-ux .history-head {margin-top:0;}
.studio-ux .history-head h3 {font-size:14px;}
.studio-ux .history-item {background:#f7f9fc;border-radius:10px;}
.studio-ux .preview-label {padding:16px 20px;margin:0;border:1px solid var(--line);border-bottom:0;background:#fff;border-radius:18px 18px 0 0;font-size:10px;}
.studio-ux .pill {background:#edf3ff;color:#1753c2;border:0;}
/* The sample is a readable card preview; decorative phone chrome is hidden. */
.studio-ux .phone {width:100%;max-width:none;border:1px solid var(--line);border-radius:0 0 18px 18px;box-shadow:none;min-height:0;background:#fff;}
.studio-ux .phone-status,.studio-ux .phone-composer,.studio-ux .home-bar,.studio-ux .today,.studio-ux .phone-nav>span,.studio-ux .dots {display:none;}
.studio-ux .phone-nav {padding:20px 24px;background:#fff;border-bottom:1px solid var(--line);}
.studio-ux .bot-avatar {background:#edf3ff;color:#2369ed;border-radius:12px;}
.studio-ux .phone-body {min-height:0;padding:24px;height:auto;max-height:560px;overflow:auto;}
.studio-ux .welcome {font-size:13px;padding:14px;background:#f7f9fc;border-radius:10px;}
.studio-ux .sample-placeholder {padding:28px 18px;min-height:170px;}
.studio-ux .sample-placeholder h3 {font-size:17px;line-height:1.4;}
.studio-ux .sample-placeholder p {max-width:320px;margin:8px auto;font-size:13px;}
.studio-ux .sparkle {color:#2369ed;font-size:24px;}
.studio-ux .preview-note {font-size:11px;margin:10px 12px 0;}
.studio-ux .phone-chips {display:flex;overflow-x:auto;flex-wrap:nowrap;gap:8px;max-width:100%;}
.studio-ux .phone-chips>* {flex:0 0 auto;max-width:100%;white-space:normal;}
.studio-ux #bot-summary {font-size:13px;}
.studio-ux dialog {border:1px solid var(--line);border-radius:18px;padding:30px;max-width:min(560px,calc(100vw - 32px));}
.studio-ux dialog h2 {font-size:26px;line-height:1.25;letter-spacing:-.7px;}
.studio-ux footer {margin-top:32px;color:#667085;font-size:11px;}
.studio-ux [hidden] {display:none!important;}
@media(max-width:1000px) {
 .studio-ux .top-actions {gap:8px;}
 .studio-ux > header {padding:16px 24px;height:auto;min-height:80px;flex-wrap:wrap;}
 .studio-ux .studio-progress {gap:12px;padding:16px;}
 .studio-ux .studio-progress li {font-size:12px;gap:8px;}
 .studio-ux .panel {padding:22px;}
}
@media(max-width:760px) {
 .studio-ux main {padding:28px 18px 20px;}
 .studio-ux .intro h1 {font-size:32px;letter-spacing:-1px;}
 .studio-ux .intro>div>p:not(.eyebrow) {font-size:14px;}
 .studio-ux .workspace {display:flex;flex-direction:column;gap:22px;}
 .studio-ux .workspace>* {width:100%;}
 .studio-ux .studio-progress {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px;margin-bottom:22px;}
 .studio-ux .studio-progress li {font-size:11px;}
 .studio-ux .studio-progress li>span {flex-basis:26px;height:26px;}
 .studio-ux > header {padding:16px 18px;gap:14px;}
 .studio-ux .top-actions {width:100%;justify-content:space-between;gap:8px;}
 .studio-ux .top-actions .outline {padding:8px 10px;font-size:11px;min-height:38px;}
 .studio-ux .studio-language {gap:5px;font-size:11px;}
 .studio-ux .studio-language select {width:86px;padding:7px 4px;}
 .studio-ux .panel {padding:20px;}
 .studio-ux .phone-nav {padding:18px 20px;}
 .studio-ux .phone-body {padding:20px;}
 .studio-ux .studio-starters {gap:6px;}
 .studio-ux .studio-starters button {font-size:11px;padding:7px 8px;}
 .studio-ux footer {gap:10px;flex-wrap:wrap;}
}
@media(prefers-reduced-motion:reduce) {.studio-ux * {scroll-behavior:auto;transition:none;}}
.studio-ux .phone {height:auto;}
.studio-ux .preview-area {background:transparent;}
.studio-ux .primary {justify-content:center;}
.studio-ux .phone-nav b {font-size:14px;max-width:100%;}
.studio-ux .phone-nav small {font-size:10px;}
.studio-ux .conversation-actions:has(>button:not([hidden])) {margin-top:12px;}
.studio-ux .studio-section-number {flex:0 0 auto;white-space:nowrap;}
@media(max-width:760px) {
 .studio-ux .top-actions {display:grid;grid-template-columns:minmax(0,1fr) auto;}
 .studio-ux .top-actions .studio-language {justify-self:start;}
 .studio-ux .top-actions #pair {grid-column:1 / -1;width:100%;}
}

/* Shared result-first visual language; real builder stages remain intact. */
body.studio-ux { --green:#465de4; --ink:#202737; --muted:#667085; --line:#e5e8f0; --surface:#f7f8fc; }
.studio-ux :is(button,.button,input,textarea,select) { border-radius:10px; }
.studio-ux :is(button,.button) { min-height:44px; }
.studio-ux :is(input,textarea,select) { font-size:16px; }
.studio-ux :is(button,a,input,textarea,select):focus-visible { outline:3px solid var(--green); outline-offset:3px; }
.studio-ux .response-card { border-radius:12px; box-shadow:none; }
@media(max-width:600px) { .studio-ux main { padding-inline:20px; } }
