/* HyperFrames is an independent Studio surface; visual/canvas exporters are unchanged. */
#hyperframesStudioPanel[hidden],.hf [hidden]{display:none!important}.studio-mode-tabs{max-width:1000px}.hf{--vs-line:#2a3341;--vs-accent:#8cc4d4;min-width:0;color:#e9eef5}.hf-header{display:flex;justify-content:space-between;gap:20px;margin-bottom:17px;align-items:start}.hf-header h2{font-size:20px;letter-spacing:-.04em;margin:0 0 7px}.hf-header p{color:#8fa0b6;font-size:11px;line-height:1.7;margin:0;max-width:640px}.hf-tag{display:inline-flex;align-items:center;gap:7px;border:1px solid #385468;border-radius:20px;color:#a3c8d7;padding:7px 10px;white-space:nowrap;font-size:9px;background:#152530}.hf-layout{display:grid;grid-template-columns:minmax(280px,.92fr) minmax(300px,1.08fr);gap:15px;align-items:start}.hf-left,.hf-right{display:grid;gap:14px;min-width:0}.hf .vs-card{background:#111722}.hf .vs-section-head{margin-bottom:12px}.hf .vs-section-head h2{font-size:12px}.hf-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:11px}.hf-toolbar .btn{font-size:10px;padding:8px 10px}.hf-editor{width:100%;min-height:360px;resize:vertical;border:1px solid #344255;border-radius:9px;background:#090f19;color:#dce7f8;padding:13px;font:11px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;outline:none}.hf-editor:focus{border-color:#8cb6c9;box-shadow:0 0 0 2px #8cb6c91a}.hf-count{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#8294a9;font-size:9px;margin-top:8px}.hf-validation{margin:12px 0 0;border:1px solid #29443f;border-radius:8px;background:#11201f;color:#a6c9c1;padding:10px 11px;font-size:10px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}.hf-validation.error{border-color:#62404d;background:#291b22;color:#f5b2b5}.hf-prompt{margin-top:13px;border-top:1px solid #293544;padding-top:12px}.hf-prompt summary{cursor:pointer;font-size:10px;color:#a7c8da}.hf-prompt p{font-size:10px;line-height:1.7;color:#91a3b9}.hf-assets{list-style:none;display:grid;gap:7px;margin:11px 0 0;padding:0}.hf-assets li{display:flex;align-items:center;gap:9px;border:1px solid #2d3b4e;border-radius:8px;background:#0d1520;padding:9px 10px;font-size:9px;min-width:0}.hf-assets code{overflow-wrap:anywhere;color:#bdcee0;flex:1}.hf-assets small{color:#8294a9;white-space:nowrap}.hf-assets button{background:none;border:0;font-size:13px;color:#9bacbf}.hf-stage{height:360px;min-width:0;overflow:hidden;border:1px solid #344255;border-radius:10px;background:#080e18}.hf-stage iframe{display:block;border:0;width:100%;height:100%}.hf-stage.portrait{height:490px;max-width:310px;margin:0 auto}.hf-preview-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;color:#8294a9;font-size:9px}.hf-time{font-variant-numeric:tabular-nums;color:#b7c9dc}.hf-server-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.hf-server-head h3{font-size:13px;margin:0 0 6px;letter-spacing:-.02em}.hf-server-head p{font-size:10px;line-height:1.7;margin:0;color:#91a3b9}.hf-lock{font-size:8px;color:#d1b284;border:1px solid #584733;border-radius:6px;background:#281f18;padding:5px 7px;white-space:nowrap}.hf-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:14px 0}.hf-step{border:1px solid #2d3b4d;border-radius:8px;padding:10px 9px;background:#0e1621;font-size:9px;color:#8294a9;line-height:1.5}.hf-step strong{display:block;color:#b2c4d7;font-size:9px;font-weight:600}.hf-step.done{border-color:#3b6557}.hf-step.done strong{color:#a2d1b8}.hf-step.active{border-color:#779caf;background:#1d2d3b}.hf-step small{display:block;margin-top:4px;font-size:8px}.hf-server .vs-export-actions{align-items:stretch}.hf-server .btn{font-size:10px;padding:10px 12px}.hf-server .btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.hf-server progress{width:100%;accent-color:#8cc4d4;height:7px;margin:10px 0 0}.hf-server a{text-decoration:none}.hf-limit-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:13px}.hf-limit-row span{font-size:8px;border:1px solid #2a394b;border-radius:5px;color:#8fa6bf;padding:4px 6px}.hf-alert{border:1px solid #554635;background:#211d18;color:#c4af8d;font-size:9px;line-height:1.7;border-radius:8px;padding:11px;margin:12px 0 0}.hf .vs-file-pick{font-size:10px}.hf .vs-status{margin-top:12px}.hf-license{color:#6f839d;font-size:8px;line-height:1.7;margin:13px 2px 0}.hf-license a{color:#8eacc7}.hf button:focus-visible,.hf summary:focus-visible,.hf textarea:focus-visible{outline:2px solid #9ac6d7;outline-offset:2px}
@media(max-width:1100px){.hf-layout{grid-template-columns:1fr}.hf-right{grid-row:1}.hf-stage{height:410px}.hf-editor{min-height:300px}.hf-left .vs-card:first-child{order:0}}
@media(max-width:620px){.studio-mode-tabs{flex-wrap:wrap}.studio-mode-tabs button{min-width:calc(50% - 8px)}.studio-mode-tabs button:last-child{flex-basis:100%}.hf-header{display:block}.hf-header h2{font-size:18px}.hf-header p{font-size:10px}.hf-tag{margin-top:10px;font-size:8px}.hf-layout{gap:12px}.hf-left,.hf-right{gap:12px}.hf-stage{height:250px}.hf-stage.portrait{height:410px;max-width:260px}.hf-editor{font-size:10px;min-height:280px}.hf-toolbar .btn{font-size:9px;padding:8px}.hf-steps{gap:5px}.hf-step{padding:8px 6px;font-size:8px}.hf-step strong{font-size:8px}.hf-server .vs-export-actions .btn{width:100%}.hf-preview-foot{font-size:8px}.hf-count{font-size:8px}.hf-alert{font-size:8px}.hf-header .hf-tag{padding:5px 8px}}
/* HTML mode keeps controls and generated-project links reachable on phones. */
@media(max-width:620px){
  #hyperframesStudioPanel .btn:not(:disabled){min-height:44px}
  #hyperframesStudioPanel .vs-file-pick{min-height:48px}
  #hyperframesStudioPanel .hf-prompt summary{display:flex;align-items:center;min-height:44px}
  #hyperframesStudioPanel .hf-assets button{min-width:44px;min-height:44px}
  #hyperframesStudioPanel .hf-license a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
  #hyperframesStudioPanel .hf-editor{font-size:16px}
  #hyperframesStudioPanel .hf-count,#hyperframesStudioPanel .hf-preview-foot{font-size:10px}
  #hyperframesStudioPanel .hf-alert{font-size:11px}
  #hyperframesStudioPanel .hf-step,#hyperframesStudioPanel .hf-step strong,#hyperframesStudioPanel .hf-step small{font-size:10px}
  #hyperframesStudioPanel .hf-header p,#hyperframesStudioPanel .hf-prompt p,#hyperframesStudioPanel .hf-server-head p{font-size:12px}
}
@media(max-width:620px){#hyperframesStudioPanel .hf-toolbar{gap:8px}}
.hf-server .btn:disabled{opacity:.55}
