/* AceGPT v22 — isolated staff workspace: scrollable from header to last form. */
.studio-body.ace-staff-scroll,
#studio-body[data-ace-page="staff"] {
  flex:1 1 auto;
  min-height:0;
  height:100%;
  max-height:100%;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;
  scrollbar-color:#66543a #14120f;
  -webkit-overflow-scrolling:touch;
}
.studio-body.ace-staff-scroll>.ace-console,
#studio-body[data-ace-page="staff"]>.ace-console {
  flex:none;
  width:min(1170px,calc(100% - 48px));
  margin:28px auto 80px;
  padding-bottom:env(safe-area-inset-bottom,0px);
  min-height:max-content;
}
.ace-staff-scroll .ace-panel-grid{align-items:start;min-width:0}
.ace-staff-scroll .ace-panel{overflow-wrap:anywhere;min-width:0}
.ace-staff-scroll .ace-panel pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.ace-staff-quicknav{position:sticky;z-index:8;top:0;display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px;padding:10px 0;background:linear-gradient(180deg,#0b0a08 83%,#0b0a0800);backdrop-filter:blur(12px)}
.ace-staff-quicknav a{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:9px 14px;color:#ddd2be;background:#242018df;border:1px solid #51463687;border-radius:999px;text-decoration:none;font-size:12px;font-weight:650;transition:background .2s,border-color .2s}
.ace-staff-quicknav a:hover,.ace-staff-quicknav a:focus-visible{background:#33291b;border-color:#92744c;outline:none}
.ace-staff-scroll [id^="staff-"]{scroll-margin-top:75px}
.ace-staff-api-section{margin-bottom:24px!important;padding:clamp(18px,2.6vw,31px)!important;background:linear-gradient(145deg,#201b14,#11100f 60%)!important;box-shadow:0 20px 55px #0006,inset 0 1px #ffffff0d}
.ace-staff-api-head{display:flex;gap:14px;justify-content:space-between;align-items:flex-start}
.ace-staff-api-head h2{margin:4px 0 6px}
.ace-staff-api-head p{margin-bottom:12px;max-width:660px}
.ace-staff-eyebrow{font-size:11px;letter-spacing:.1em;font-weight:750;color:#eac58a}
.ace-staff-endpoint-chip{white-space:nowrap;border-radius:999px;border:1px solid #7f6442;background:#332a1c;color:#f0dcb3;font-size:11px;font-weight:700;padding:9px 14px}
.ace-staff-api-section .ace-universal-key-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 16px;align-items:end}
.ace-staff-api-section .ace-universal-key-form button[type=submit]{width:fit-content;min-width:180px;justify-self:start;margin:12px 0 4px}
.ace-staff-api-section .ace-universal-key-form label{margin:10px 0}
.ace-staff-api-section #staff-universal-output{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:13px;border:1px solid #59462b;background:#11100b;padding:14px;color:#e9dbba;font-size:12px;line-height:1.65;min-height:30px}
.ace-staff-api-section #staff-universal-list{margin:14px 0;max-height:320px;overflow-y:auto}
.ace-staff-api-section .ace-copy-secret{margin:4px 0 14px!important}
.ace-staff-api-section .ace-copy-secret[hidden]{display:none!important}
.ace-staff-docs{border-top:1px solid #57442e;margin-top:24px;padding-top:23px}
.ace-staff-doc-head{display:flex;align-items:start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.ace-staff-doc-head h3{font-size:20px!important;color:#fff1d7!important;margin:0 0 10px!important}
.ace-staff-doc-head p{margin:0 0 14px!important;font-size:13px!important}
.ace-staff-doc-head>a{flex-shrink:0}
.ace-endpoint-list{display:grid;gap:7px;margin:6px 0 24px}
.ace-endpoint-list>div{display:grid;grid-template-columns:175px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid #3f3529;border-radius:13px;background:#13120fc9}
.ace-endpoint-list span{color:#e4d4ba;font-size:12px;font-weight:650}
.ace-endpoint-list code{font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;color:#edd4a6;overflow-wrap:anywhere}
.ace-endpoint-list button,.ace-api-example-top button{background:#2b251c;border:1px solid #675239;border-radius:999px;padding:8px 12px;color:#f1e3ce;font-size:12px;cursor:pointer;transition:background .2s}
.ace-endpoint-list button:hover,.ace-api-example-top button:hover{background:#42311f}
.ace-api-examples{background:#0f0f0e;border:1px solid #4e4030;border-radius:17px;overflow:hidden}
.ace-api-example-tabs{display:flex;gap:5px;padding:8px;background:#1b1915;border-bottom:1px solid #443a30}
.ace-api-example-tabs button{padding:9px 15px;border:1px solid transparent;border-radius:10px;background:transparent;color:#b5aa9a;font-size:12px;cursor:pointer}
.ace-api-example-tabs button.active{background:#41331f;border-color:#846341;color:#f8e8c8}
.ace-api-example-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 15px 2px;color:#a9a39a;font-size:12px}
.ace-api-example-code{padding:14px 17px 20px!important;margin:0;max-height:370px;min-height:160px;overflow:auto!important;white-space:pre!important;tab-size:2;font:12px/1.68 ui-monospace,SFMono-Regular,Consolas,monospace;color:#ede3d4;background:#0f0f0e!important;scrollbar-width:thin}
.ace-api-help-text{font-size:12px;line-height:1.9;color:#afa69a;margin-top:15px;overflow-wrap:anywhere}
.ace-api-help-text strong{color:#e8d9be}
.ace-api-help-text code{font-size:11px;color:#f0c885}
@media(max-width:900px){.ace-staff-api-section .ace-universal-key-form{grid-template-columns:repeat(2,minmax(0,1fr))}.ace-staff-scroll .ace-panel-grid{grid-template-columns:1fr}}
@media(max-width:600px){.studio-body.ace-staff-scroll>.ace-console,#studio-body[data-ace-page="staff"]>.ace-console{width:calc(100% - 22px);margin:12px auto 65px}.ace-staff-api-section .ace-universal-key-form{grid-template-columns:1fr}.ace-staff-endpoint-chip{display:none}.ace-staff-quicknav{gap:7px}.ace-staff-quicknav a{font-size:11px;padding:8px 10px}.ace-endpoint-list>div{grid-template-columns:minmax(0,1fr) auto;gap:6px}.ace-endpoint-list span{grid-column:1/-1}.ace-endpoint-list code{min-width:0}.ace-staff-api-section #staff-universal-output{font-size:11px}.ace-staff-api-section .ace-universal-key-form button[type=submit]{width:100%}}
@media(prefers-reduced-motion:reduce){.ace-staff-scroll *{scroll-behavior:auto!important}}
