:root {
  color-scheme:light;
  --page:#f7f5f2; --surface:#fff; --line:#ded8d9; --ink:#28202a; --muted:#655d66;
  --accent:#a32b52; --accent-hi:#852142; --soft:#92234a; --chrome:#251c26;
  --blush:#f9e8e9; --cream:#fffbf5; --small:.875rem;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body[data-design="botstudio"] {background:var(--page);color:var(--ink);font-size:1rem}
.studio-width {width:min(calc(100% - clamp(2.5rem,9vw,10rem)),78rem);margin-inline:auto}
.studio-top {background:var(--chrome);color:white}
.studio-top>div {display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:4.7rem}
.studio-brand {display:inline-flex;align-items:center;gap:.72rem;text-decoration:none}
.studio-brand img {width:2.55rem;height:2.55rem;display:block;border-radius:12px}
.studio-brand>span {display:grid;font-size:.81rem;font-weight:600;letter-spacing:.025em;line-height:1.16;color:#e3c9d5}
.studio-brand>span>span {font-size:1.27rem;font-weight:730;letter-spacing:-.032em;color:#fff}
.studio-login,.studio-account-link,.studio-account button {border:1px solid #6b5264;border-radius:.52rem;color:#fff;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:transparent;min-height:2.7rem;font-size:.94rem;font-weight:600;padding:.45rem 1rem}
.studio-login:hover,.studio-account-link:hover,.studio-account button:hover,.studio-account-link[aria-current] {background:#443441}
.studio-skip {position:absolute;left:.75rem;top:.75rem;padding:.65rem 1rem;border-radius:.5rem;background:white;color:var(--ink);z-index:5;transform:translateY(-200%)}
.studio-skip:focus {transform:none}
.studio-landing {padding-block:clamp(2rem,4.2vw,4.3rem) 2.7rem}
.studio-hero {display:grid;grid-template-columns:1.13fr 1fr;align-items:center;gap:clamp(2rem,6.6vw,7.5rem)}
.studio-hero h1 {font-size:clamp(3.2rem,6.65vw,6.35rem);font-weight:770;letter-spacing:-.08em;line-height:.96;max-width:9ch}
.studio-hero h1 em {color:var(--accent);font-style:normal}
.studio-hero-copy>p {font-size:clamp(1.05rem,1.45vw,1.29rem);color:var(--muted);max-width:40ch;line-height:1.54;margin-top:1.6rem}
.studio-hero-actions {display:flex;gap:.5rem 1.15rem;align-items:center;flex-wrap:wrap;margin-top:1.75rem}
.studio-hero-actions .primary {min-height:3.1rem;padding-inline:1.3rem}
.studio-hero-actions .text-button {font-weight:600;text-decoration:underline;text-underline-offset:.2em}
.studio-robot {margin:0;position:relative;overflow:hidden;isolation:isolate;border-radius:1.35rem 3.8rem 1.35rem 1.35rem;background:#3c0e1a}
.studio-robot>img {display:block;width:100%;height:auto;aspect-ratio:1.14;object-fit:cover;object-position:50% 27%}
.studio-count {position:absolute;bottom:1.15rem;left:1.15rem;display:flex;align-items:center;gap:.58rem;border-radius:.65rem;border:1px solid #ffffff62;background:#fffcf8;color:#2d222b;padding:.55rem .85rem;line-height:1.15;box-shadow:0 2px 12px #280c1b33}
.studio-count>span:last-child {display:flex;align-items:center;gap:.38rem;font-size:.87rem;font-weight:600}
.studio-count strong {font-variant-numeric:tabular-nums;font-size:1.13rem}.studio-stat-icon {color:var(--accent)}
.studio-features {border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:clamp(2.4rem,5vw,4.5rem);padding-top:2rem;gap:1.75rem}
.studio-features article {display:flex;gap:.85rem;align-items:flex-start}
.studio-features article>span,.studio-password-note>svg {flex:none}
.studio-features article>span {background:var(--blush);border-radius:.7rem;display:grid;place-items:center;width:2.55rem;height:2.55rem;color:var(--accent)}
.studio-features h2 {font-size:1.12rem;letter-spacing:-.026em}
.studio-features p {margin-top:.3rem;color:var(--muted);font-size:.98rem;line-height:1.5}
.studio-auth-layout {width:min(65rem,calc(100% - 2.5rem));margin:clamp(1.5rem,5vw,4.7rem) auto;display:grid;grid-template-columns:minmax(15rem,.84fr) minmax(0,1.25fr);align-items:start;gap:clamp(2rem,5.5vw,5.6rem)}
.studio-auth-steps {margin:0;background:var(--chrome);color:#fff;border-radius:1.15rem;overflow:hidden}
.studio-auth-steps>img {display:block;object-fit:cover;object-position:50% 27%;width:100%;height:auto;aspect-ratio:1.75}
.studio-auth-steps>div {padding:1.45rem 1.65rem 1.65rem}
.studio-auth-steps h2 {font-size:1.24rem;letter-spacing:-.025em}
.studio-auth-steps ol {list-style:none;padding:0;margin:.95rem 0 0;counter-reset:steps}
.studio-auth-steps li {counter-increment:steps;display:grid;grid-template-columns:1.65rem 1fr;gap:0 .6rem;line-height:1.35;align-items:center;padding:.45rem 0}
.studio-auth-steps li:before {content:counter(steps);width:1.55rem;height:1.55rem;grid-row:span 2;display:grid;place-items:center;border:1px solid #9c798d;border-radius:50%;font-weight:650;font-size:.82rem;color:#f2c5d5}
.studio-auth-steps li>strong {font-size:.94rem;font-weight:650}
.studio-auth-steps li>span {font-size:.88rem;color:#d9c8d1}
.studio-auth-card {width:100%;max-width:32rem}
.studio-auth-card h1,.section-intro h1 {font-size:clamp(2rem,3.8vw,3.1rem);line-height:1.05;font-weight:730;letter-spacing:-.06em}
.studio-auth-intro {margin:.75rem 0 1.4rem;color:var(--muted)}
.studio-password-note {display:flex;gap:.7rem;align-items:flex-start;border-radius:.7rem;background:var(--blush);border:1px solid #ebcdd5;margin:1.15rem 0 1.4rem;padding:.85rem .95rem}
.studio-password-note>svg {color:var(--accent);margin-top:.15rem}
.studio-password-note p {color:#644654;font-size:.93rem;margin:.13rem 0 0;line-height:1.4}
.studio-password-note strong {font-size:.97rem}
.studio-twitch-option {margin:1rem 0 1.15rem}
.studio-twitch-option h2 {font-size:1rem}
.studio-twitch-option .wide {margin-top:.6rem}
.studio-twitch-option .secondary {color:#55348a;border-color:#cfc1e5;background:#f5f0ff}
.studio-twitch-option a svg:last-child {width:.95rem;height:.95rem}
.studio-auth-card .auth-switch {margin-top:1.1rem}
.studio-dashboard-bar>div {padding:0 clamp(1.2rem,3vw,2.9rem);max-width:105rem;margin:auto}
.studio-account {display:flex;align-items:center;gap:.5rem}
.studio-account #account-name {color:#decdd8;font-size:.88rem;margin-right:.45rem}
.studio-account-link {gap:.46rem}
.studio-account button {width:2.7rem;padding:0}
.studio-account svg {width:1.04rem;height:1.04rem}
.studio-frame {max-width:105rem;margin:auto;display:grid;min-height:calc(100svh - 4.7rem);grid-template-columns:15.5rem minmax(0,1fr)}
.studio-rail {border-right:1px solid var(--line);background:#f0ecea;padding:1.65rem .83rem;display:flex;flex-direction:column;align-self:stretch}
.studio-menu {display:none}
.studio-rail-nav {display:grid;gap:1.45rem}
.studio-nav-group h2 {margin:0 0 .4rem;padding-inline:.79rem;font-size:.82rem;letter-spacing:.025em;color:#6b5b66;font-weight:700}
.studio-nav-group a {display:flex;gap:.7rem;align-items:center;min-height:2.7rem;border-radius:.55rem;padding:.45rem .8rem;font-weight:550;font-size:.95rem;line-height:1.3;text-decoration:none}
.studio-nav-group a svg {height:1.07rem;width:1.07rem;color:#785f70}
.studio-nav-group a:hover,.studio-secondary-nav:hover {background:#e8e0de}
.studio-nav-group a[aria-current],.studio-secondary-nav[aria-current] {background:#402334;color:white}
.studio-nav-group a[aria-current] svg {color:#ffb5ce}
.studio-secondary-nav {color:var(--muted);font-size:.88rem;font-weight:550;line-height:1.3;padding:.45rem .8rem;border-radius:.5rem;text-decoration:none}
.studio-bot {margin:1.6rem .5rem 0;border-top:1px solid var(--line);padding:.95rem .25rem .25rem;display:flex;gap:.6rem;align-items:center;font-size:.88rem}
.studio-bot img {width:2.2rem;height:2.2rem;border-radius:.6rem}
.studio-bot a {display:block}
.studio-bot small {color:var(--muted)}
.studio-content {min-width:0;width:100%;max-width:76rem;padding:clamp(1.6rem,3.6vw,3.4rem) clamp(1.15rem,4vw,4.8rem) 5rem}
.studio-content .section-intro {margin-bottom:1.3rem}
.studio-content .section-intro p {line-height:1.48}
.studio-content .panel {box-shadow:0 2px 6px #30202a08;border-radius:.85rem}
.studio-content .connection-panel {border-top:4px solid var(--accent)}
.studio-content .connection-panel #connect-twitch {min-height:2.95rem}
.studio-next {display:flex;margin:-.15rem 0 1.1rem;gap:.55rem;flex-wrap:wrap}
.studio-next a {display:flex;align-items:center;gap:.55rem;border:1px solid var(--line);border-radius:.6rem;padding:.63rem .9rem;background:white;text-decoration:none;font-size:.92rem;font-weight:600}
.studio-next a:hover {border-color:var(--accent);color:var(--accent)}
.studio-next svg {width:1.04rem;height:1.04rem;color:var(--accent)}
.studio-lead {border-top:1px solid var(--line);margin-top:.9rem;padding-top:.7rem}
.studio-lead summary,.studio-source-details summary,.studio-settings-fold summary {font-weight:650}
.studio-lead p,.studio-source-details details p {color:var(--muted);margin-top:.4rem}
.studio-source-details,.studio-settings-fold {background:#fff;border:1px solid var(--line);border-radius:.8rem;margin:0 0 .85rem;overflow:clip}
.studio-source-details>summary,.studio-settings-fold>summary {padding:.78rem 1.15rem}
.studio-source-details>.panel,.studio-settings-fold>.panel {border:0;box-shadow:none;margin:0;border-top:1px solid var(--line);border-radius:0}
.studio-source-details[open]>summary,.studio-settings-fold[open]>summary {background:#fcf9f8}
.primary {background:var(--accent);color:#fff}.primary:hover {background:var(--accent-hi);color:white}
.primary[aria-disabled=true],.primary[aria-disabled=true]:hover {background:#dfd7db;color:#61565b}
.secondary {background:#fff;border-color:#c8bcc1;color:var(--ink)}
.secondary:hover {background:#f4eff0}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {outline-color:#ab2351}
.field input,.password-control,.field textarea,.field select,.recovery-receipt code,.bot-command,.overlay-colors input[type=color] {background-color:#fff;border-color:#b9adb4;color:var(--ink)}
.field input:hover,.password-control:hover,.field textarea:hover,.field select:hover {border-color:#8b7281}
.field select {background-image:linear-gradient(45deg,transparent 50%,#63545e 50%),linear-gradient(135deg,#63545e 50%,transparent 50%)}
.password-control:focus-within {outline-color:var(--accent)}
.icon-button:hover {background:#eee5e8;color:var(--ink)}
.panel-icon,.channel-avatar {background:var(--blush);border-color:#e7cbd4;color:var(--accent)}
.panel-copy strong,.identity strong {color:var(--ink)}.status-list dd {color:#564852}
.callout,.confirm-box {background:#f7edf0;border-color:#dfc4ce}.callout code {color:var(--soft)}
.feedback {background:#e9f2ec;color:#22583b;border-color:#358351}
.feedback.error {background:#fbeceb;color:#8e2c29;border-color:#b8403b}
.switch {background:#d9d3d5;border-color:#aba1a7}.switch::before {background:#fff}.switch:checked::before {background:#fff}
.role-granted {color:#237444!important}
.section-links {gap:.45rem .6rem}
.section-links a {background:white;border:1px solid var(--line);border-radius:.45rem;padding:.28rem .65rem;text-decoration:none}
.section-links a:hover {border-color:var(--accent);text-decoration:underline}
@media(min-width:76rem){.studio-rail {padding-inline:1.1rem}}
@media(max-width:55rem){
  .studio-hero {gap:2rem}.studio-hero h1 {font-size:clamp(3rem,7.5vw,4.3rem)}
  .studio-frame {grid-template-columns:13.6rem minmax(0,1fr)}.studio-features {gap:1rem}.studio-features article {display:block}.studio-features article>span {margin-bottom:.55rem}
}
@media(max-width:43rem){
  .studio-width {width:calc(100% - 2.1rem)}.studio-top>div {min-height:4.12rem}
  .studio-landing {padding-top:1.65rem}.studio-hero {grid-template-columns:1fr;gap:1.25rem}
  .studio-hero h1 {font-size:clamp(2.9rem,11.8vw,4.15rem);max-width:14ch;line-height:1}
  .studio-hero-copy>p {margin-top:.85rem;font-size:1rem;max-width:46ch}
  .studio-hero-actions {margin-top:1rem;gap:.35rem .7rem}.studio-hero-actions .primary {min-height:2.8rem;padding:.55rem .9rem}
  .studio-robot {border-radius:.9rem 2.4rem .9rem .9rem}.studio-robot>img {aspect-ratio:1.85;object-position:50% 30%}
  .studio-count {bottom:.6rem;left:.65rem;padding:.4rem .62rem}
  .studio-features {grid-template-columns:1fr;margin-top:1.45rem;padding-top:1.1rem;gap:1rem}
  .studio-features article {display:flex}.studio-features article>span {margin:0}
  .studio-auth-layout {display:block;width:min(32rem,calc(100% - 2.1rem));margin:1.5rem auto 3rem}
  .studio-auth-steps {display:none}.studio-password-note {margin:1rem 0}
  .studio-frame {display:block}.studio-dashboard-bar>div {padding:0 .9rem}
  .studio-account {gap:.35rem}.studio-account-link {padding:.45rem .59rem}.studio-account #account-name {display:none}
  .studio-rail {padding:.45rem .75rem;border-width:0 0 1px;border-style:solid;border-color:var(--line)}
  .studio-menu {display:flex;align-items:center;gap:.55rem;color:var(--ink);background:transparent;border:0;border-radius:.4rem;text-align:left;width:100%;min-height:2.7rem}
  .studio-menu>strong {color:var(--muted);font-size:.9rem;font-weight:550;margin-left:auto}
  .studio-rail-nav {gap:.8rem;padding:.6rem 0}.studio-menu[aria-expanded=false]+nav {display:none}
  .studio-nav-group {display:grid;grid-template-columns:1fr 1fr;gap:.15rem}.studio-nav-group h2 {grid-column:1/-1}
  .studio-bot {display:none}.studio-content {padding:1.55rem 1.05rem 3.5rem}
  .studio-next {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.studio-next a {padding:.55rem .6rem;font-size:.9rem}
}
@media(max-width:22rem){.studio-next {grid-template-columns:1fr}.studio-account-link span {display:none}.studio-account-link {width:2.7rem}}

.studio-local-login {border:1px solid var(--line);border-radius:.7rem;background:white;padding:.1rem 1rem .1rem}.studio-local-login summary {padding:.78rem 0;font-weight:650}.studio-local-login[open] {padding-bottom:1.1rem}.studio-local-login .studio-password-note {margin-top:.1rem}.studio-loading {color:var(--muted);padding:1rem 0}
