.studio-tools{min-width:0;border:1px solid #30435f;border-radius:13px;background:#111a28;overflow:hidden}
.studio-tools-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:linear-gradient(105deg,#1a2a40,#111a28);border-bottom:1px solid #30435f}
.studio-tools-header h1{font-size:clamp(19px,3vw,25px);margin:0;color:#f0d397}
.studio-editor-nav{display:flex;flex-wrap:wrap;gap:5px}
.studio-editor-nav a{display:flex;align-items:center;justify-content:center;min-height:36px;border:1px solid #344968;border-radius:7px;padding:5px 9px;font-size:12px;color:#d4e1f3}
.studio-editor-nav a[aria-current="page"]{background:#203a5c;border-color:#6d9bd3;color:#fff}
#diamond-tools-frame{display:block;width:100%;height:calc(100svh - 162px);min-height:410px;border:0;background:#0a111b}
@media(max-width:680px){
  .studio-tools-header{padding:8px;display:grid;gap:6px}
  .studio-editor-nav{display:flex;flex-wrap:nowrap;overflow:auto;padding-bottom:2px;scrollbar-width:thin}
  .studio-editor-nav a{min-height:40px;flex:none;padding-inline:9px;white-space:nowrap}
  #diamond-tools-frame{height:calc(100svh - 235px - env(safe-area-inset-bottom));min-height:330px}
  body[data-area^="editor-"] .aria-launcher{right:8px;top:calc(7px + env(safe-area-inset-top));bottom:auto}
}
@media(max-width:680px){
 .studio-editor-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;overflow:visible;padding-bottom:0}
 .studio-editor-nav a{grid-column:span 2;min-height:40px;padding:4px;font-size:11px;white-space:normal;text-align:center;line-height:1.16}
 .studio-editor-nav a:nth-last-child(-n+2){grid-column:span 3}
 #diamond-tools-frame{height:calc(100dvh - 264px - env(safe-area-inset-bottom));min-height:330px}
}
