
:root{
  --orange:#ff6500;
  --orange-dark:#d94f00;
  --ink:#121a24;
  --muted:#697586;
  --line:#dfe4ea;
  --soft:#f4f6f8;
  --panel:#ffffff;
  --dark:#0d151f;
  --success:#07875c;
  --danger:#b42318;
  --shadow:0 18px 54px rgba(18,26,36,.10);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#edf1f4}
button,input,select{font:inherit}
button{cursor:pointer}
.topbar{
  height:76px;padding:0 22px;background:var(--dark);color:#fff;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  border-bottom:3px solid var(--orange);position:sticky;top:0;z-index:50
}
.brand-group{display:flex;align-items:center;gap:16px;min-width:0}
.brand-group img{height:46px;width:auto;background:#fff;border-radius:10px;padding:5px 8px}
.brand-group div{display:flex;flex-direction:column;line-height:1.15}
.brand-group strong{font-size:17px}
.brand-group span{font-size:12px;color:#aeb9c5;margin-top:5px}
.top-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.button{
  min-height:40px;border:1px solid transparent;border-radius:10px;padding:0 15px;
  font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px
}
.button.primary{background:var(--orange);color:#fff;box-shadow:0 8px 22px rgba(255,101,0,.22)}
.button.primary:hover{background:var(--orange-dark)}
.button.secondary{background:#fff;color:var(--ink);border-color:#dce2e8}
.button.danger{background:#fff;color:var(--danger);border-color:#f3b5b0}
.button.grow{flex:1}
.status-pill{
  display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.16);
  border-radius:999px;padding:7px 11px;font-size:12px;color:#d8e0e7
}
.status-pill i{width:8px;height:8px;border-radius:50%;background:#21c488;box-shadow:0 0 0 4px rgba(33,196,136,.13)}
.studio-shell{
  height:calc(100vh - 76px);display:grid;grid-template-columns:290px minmax(480px,1fr) 340px;
  gap:1px;background:#d8dee5;overflow:hidden
}
.edition-panel,.config-panel,.preview-panel{background:var(--panel);min-width:0}
.edition-panel,.config-panel{overflow:auto;padding:22px}
.preview-panel{display:flex;flex-direction:column;overflow:hidden;background:#eef2f5}
.panel-heading{margin-bottom:20px}
.panel-heading h1,.panel-heading h2{margin:4px 0 8px;font-size:23px;letter-spacing:-.025em}
.panel-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.kicker{text-transform:uppercase;letter-spacing:.11em;color:var(--orange);font-size:10px;font-weight:900}
.edition-list{display:grid;gap:11px}
.edition-card{
  width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:15px;
  padding:15px;transition:.18s ease;position:relative
}
.edition-card:hover{border-color:#ffb17e;transform:translateY(-1px)}
.edition-card.active{border:2px solid var(--orange);background:#fff9f5;padding:14px}
.edition-card h3{font-size:15px;margin:0 0 4px;padding-right:50px}
.edition-card p{font-size:12px;color:var(--muted);line-height:1.4;margin:8px 0 0}
.edition-card .version{position:absolute;right:12px;top:12px;background:#eef1f4;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:850}
.security-note{margin-top:20px;background:#111b27;color:#fff;border-radius:15px;padding:16px}
.security-note strong{font-size:13px}
.security-note p{font-size:11px;line-height:1.5;color:#bac5d0;margin:7px 0 0}
.preview-toolbar{
  min-height:76px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;
  gap:16px;background:#fff;border-bottom:1px solid var(--line)
}
.preview-toolbar h2{font-size:18px;margin:3px 0 0}
.preview-actions{display:flex;align-items:center;gap:8px}
.zoom-label{font-size:11px;color:var(--muted);font-weight:800}
.preview-actions select{height:36px;border:1px solid var(--line);border-radius:9px;padding:0 9px;background:#fff}
.icon-button{
  width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:9px;
  font-size:18px;display:grid;place-items:center;color:var(--ink)
}
.browser-frame{margin:18px;flex:1;min-height:0;background:#fff;border:1px solid #cfd6de;border-radius:17px;box-shadow:var(--shadow);overflow:hidden}
.browser-chrome{
  height:40px;background:#151f2a;display:flex;align-items:center;gap:7px;padding:0 13px;color:#c5ced8
}
.browser-chrome>span{width:9px;height:9px;border-radius:50%;background:#ff6d60}
.browser-chrome>span:nth-child(2){background:#ffca45}
.browser-chrome>span:nth-child(3){background:#43d27b}
.address{margin-left:10px;background:#25313e;border-radius:7px;padding:5px 10px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.iframe-stage{height:calc(100% - 40px);overflow:hidden;background:#eef1f5;position:relative}
.iframe-stage iframe{border:0;width:125%;height:125%;transform:scale(.8);transform-origin:top left;background:#fff}
.preview-message{height:30px;padding:0 20px 10px;color:var(--muted);font-size:11px}
.config-section{border-top:1px solid var(--line);padding:18px 0}
.config-section:first-of-type{border-top:0;padding-top:0}
.config-section h3{font-size:13px;margin:0 0 13px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.field>span{font-size:11px;font-weight:800;color:#475467}
.field input,.field select{
  width:100%;height:40px;border:1px solid #cfd6de;border-radius:10px;padding:0 11px;background:#fff;outline:none
}
.field input:focus,.field select:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,101,0,.10)}
.field input[type="color"]{padding:4px}
.two-fields{display:grid;grid-template-columns:.75fr 1.25fr;gap:10px}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.text-button{border:0;background:transparent;color:var(--orange);font-size:11px;font-weight:850;padding:0}
.module-toggles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.module-toggle,.switch-row{
  border:1px solid var(--line);border-radius:11px;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:8px
}
.module-toggle span{font-size:11px;font-weight:750}
.module-toggle input,.switch-row input{accent-color:var(--orange);width:17px;height:17px;flex:0 0 auto}
.module-toggle.locked{background:#f5f7f9;color:#7a8696}
.switch-row span{display:flex;flex-direction:column}
.switch-row b{font-size:12px}
.switch-row small{font-size:10px;color:var(--muted);margin-top:3px;line-height:1.3}
.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.summary-grid div{border:1px solid var(--line);border-radius:11px;padding:10px;min-width:0}
.summary-grid span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em}
.summary-grid b{display:block;font-size:12px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bottom-actions{display:flex;gap:9px;padding-top:6px}
dialog{border:0;border-radius:20px;padding:0;box-shadow:0 30px 90px rgba(15,23,42,.35);max-width:530px;width:calc(100% - 30px)}
dialog::backdrop{background:rgba(5,12,20,.62);backdrop-filter:blur(4px)}
.dialog-card{padding:24px}
.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.dialog-head h2{font-size:23px;margin:4px 0 0}
.dialog-card>p{font-size:13px;line-height:1.55;color:var(--muted)}
.build-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
.build-details div{background:var(--soft);border-radius:12px;padding:12px}
.build-details span{font-size:10px;color:var(--muted);display:block}
.build-details b{font-size:13px;display:block;margin-top:4px}
.dialog-actions{display:flex;justify-content:flex-end;gap:9px}
@media(max-width:1180px){
  .studio-shell{grid-template-columns:250px minmax(430px,1fr) 310px}
  .module-toggles{grid-template-columns:1fr}
}
@media(max-width:900px){
  body{overflow:auto}
  .topbar{height:auto;min-height:76px;padding:13px 16px;align-items:flex-start}
  .top-actions{justify-content:flex-end}
  .status-pill,.top-actions .secondary{display:none}
  .studio-shell{height:auto;display:block;overflow:visible}
  .edition-panel,.config-panel{padding:20px}
  .edition-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .preview-panel{min-height:650px}
  .config-panel{border-top:1px solid var(--line)}
  .module-toggles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .brand-group span{display:none}
  .brand-group img{height:38px}
  .button{padding:0 12px}
  .edition-list,.module-toggles,.two-fields{grid-template-columns:1fr}
  .preview-panel{min-height:540px}
  .browser-frame{margin:10px}
}
