/* V22 readable layout patch: tabs, action buttons, module labels, and mobile edge safety */
*{box-sizing:border-box}html,body,#root{width:100%;max-width:100%;overflow-x:hidden!important}body{min-width:0!important}.neon-statusbar,.project-origin-actions,.binding-summary-strip,#root,#root main{max-width:100vw!important;overflow-x:hidden!important}
#root main{width:min(1180px,calc(100vw - 28px))!important;margin-inline:auto!important;padding-inline:0!important}
#root [role="tablist"]{width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:58px!important;display:flex!important;grid-template-columns:none!important;align-items:stretch!important;justify-content:stretch!important;gap:8px!important;padding:6px!important;overflow:hidden!important;border:3px solid var(--neon-green,#39ff14)!important;box-shadow:6px 6px 0 var(--neon-pink,#ff007f)!important;background:#111113!important}
#root [role="tab"]{min-width:0!important;max-width:100%!important;flex:1 1 0!important;height:auto!important;min-height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:9px 10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:clamp(11px,1.55vw,14px)!important;line-height:1.05!important}
#root [role="tab"] svg{width:16px!important;height:16px!important;flex:0 0 auto!important}#root [role="tab"] [data-slot="badge"],#root [role="tab"] .ml-1{margin-left:3px!important;max-width:52px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;line-height:1!important;padding:2px 4px!important}
#root .rust-editor-toolbar-v22,#root .rust-results-toolbar-v22{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;max-width:100%!important;overflow:hidden!important;margin-bottom:8px!important}
#root .rust-editor-toolbar-v22 h2,#root .rust-results-toolbar-v22 h2{min-width:0!important;overflow-wrap:anywhere!important;line-height:.95!important;max-width:100%!important}
#root .rust-editor-toolbar-v22>div,#root .rust-results-toolbar-v22>div,#root .rust-editor-toolbar-v22 .rust-action-group-v22,#root .rust-results-toolbar-v22 .rust-action-group-v22{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
#root .rust-action-group-v22 button,#root .rust-editor-toolbar-v22 button,#root .rust-results-toolbar-v22 button{min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;padding:10px 14px!important;font-size:clamp(11px,1.4vw,13px)!important;line-height:1!important;border-width:2px!important;box-shadow:none!important;transform:none!important}
#root .rust-editor-toolbar-v22 button svg,#root .rust-results-toolbar-v22 button svg{width:15px!important;height:15px!important;flex:0 0 auto!important;margin-right:6px!important}
#root .neon-card:before{display:none!important;content:none!important}#root .neon-card{overflow:hidden!important;max-width:100%!important}#root .rust-editor-column-v20,#root .rust-results-column-v20{max-width:100%!important;min-width:0!important}#root .rust-editor-grid-v20{max-width:100%!important;overflow:hidden!important}.rust-editor-column-v20 textarea{max-width:100%!important;width:100%!important;min-width:0!important;overflow:auto!important;white-space:pre!important;overflow-wrap:normal!important;word-break:normal!important}.rust-results-card-v20 pre{max-width:100%!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important}
#root [data-slot="card"],#root .rounded-lg.border,#root .rounded-xl.border,#root .rounded-2xl.border{max-width:100%!important}.toast,[data-sonner-toast],.sonner-toast{max-width:calc(100vw - 24px)!important;box-sizing:border-box!important}
@media(max-width:780px){
  #root{padding-left:10px!important;padding-right:10px!important}#root main{width:100%!important;max-width:100%!important;padding-inline:0!important}
  #root [role="tablist"]{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;min-height:0!important;padding:7px!important;box-shadow:4px 4px 0 var(--neon-pink,#ff007f)!important;overflow:visible!important}
  #root [role="tab"]{width:100%!important;min-height:40px!important;font-size:12px!important;justify-content:flex-start!important;padding:10px 12px!important}
  #root .rust-editor-toolbar-v22,#root .rust-results-toolbar-v22{grid-template-columns:1fr!important;gap:10px!important}.rust-editor-toolbar-v22>div,.rust-results-toolbar-v22>div,.rust-action-group-v22{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.rust-results-toolbar-v22 .rust-action-group-v22{grid-template-columns:1fr!important}.rust-action-group-v22 button,.rust-editor-toolbar-v22 button,.rust-results-toolbar-v22 button{width:100%!important;min-height:44px!important;padding:12px 10px!important;justify-content:center!important}.rust-editor-column-v20 textarea{min-height:360px!important;font-size:13px!important;line-height:1.6!important}.rust-editor-grid-v20{gap:16px!important}
}
@media(max-width:380px){#root [role="tab"]{font-size:11px!important}#root [role="tab"] svg{width:14px!important;height:14px!important}.rust-action-group-v22{grid-template-columns:1fr!important}}
