/* shared look for the live-demo workspaces (panel + host app view) */
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#0d0e11;color:#e7e8ea;font:13px/1.45 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit}
.ws{display:flex;gap:14px;height:100%;padding:14px}
.win{display:flex;flex-direction:column;min-width:0;border-radius:12px;overflow:hidden;border:1px solid #2b2d33;background:#16171b;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.wbar{flex:none;height:32px;display:flex;align-items:center;gap:8px;padding:0 12px;background:#1f2025;border-bottom:1px solid #0c0d10;font-size:12px;color:#9a9da6;white-space:nowrap;overflow:hidden}
.wbar i{width:9px;height:9px;border-radius:50%;background:#3a3c43;flex:none}
.wbar b{color:#e7e8ea;font-weight:600}
.wbar .sp{flex:1}
.wbar .app{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:4px;font-size:9px;font-weight:800;border:1px solid currentColor;flex:none}
.app.ae{background:#00005b;color:#9999ff}.app.ai{background:#330000;color:#ff9a00}.app.ps{background:#001e36;color:#31a8ff}.app.pr{background:#00005b;color:#c792ff}
.panel{flex:none;width:380px}
.panel iframe{flex:1;width:100%;border:0;display:block;background:#1d1d1f}
.host{flex:1}
.hostbody{flex:1;min-height:0;display:flex;flex-direction:column;background:#141518}
.seg{display:inline-flex;gap:2px;padding:2px;border-radius:7px;background:#121317;border:1px solid #2b2d33}
.seg button{border:0;background:none;padding:3px 9px;border-radius:5px;font-size:11.5px;color:#9a9da6;cursor:pointer}
.seg button.on{background:#2c2e35;color:#fff}
.tip{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12px;color:#9a9da6;border-top:1px solid #23252b;background:#18191d;flex:none}
.tip .dot{width:7px;height:7px;border-radius:50%;background:#5bd68a;box-shadow:0 0 0 3px rgba(91,214,138,.18);flex:none}
.tip b{color:#e7e8ea;font-weight:600}
.btn{border:1px solid #33363d;background:#24262c;border-radius:6px;padding:4px 10px;font-size:12px;cursor:pointer;color:#e7e8ea}
.btn:hover{background:#2d3037}
.btn.pri{background:#6e5cf6;border-color:#6e5cf6;color:#fff}
.muted{color:#8b8e97}
@media (max-width:760px){
  .ws{flex-direction:column;padding:8px;gap:8px}
  .panel{width:auto;flex:1 1 auto;min-height:0}
  .host{flex:none;height:44%}
  .tip{display:none}
}
.mtabs{display:none}
@media (max-width:760px){
  .mtabs{display:flex;flex:none;gap:4px;padding:4px;border-radius:10px;background:#16171b;border:1px solid #2b2d33}
  .mtabs button{flex:1;border:0;background:none;padding:9px 6px;border-radius:7px;font-size:13px;font-weight:600;color:#9a9da6;cursor:pointer}
  .mtabs button.on{background:#2c2e35;color:#fff}
  .panel,.host{flex:1 1 auto !important;height:auto !important;min-height:0}
  body:not(.show-host) .host{display:none}
  body.show-host .panel{display:none}
}
