.airframe-viewer{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;color:#e8f2ff;background:#101724;overflow:auto;box-sizing:border-box;z-index:100}.airframe-viewer::backdrop{background:#101724}.airframe-viewer *{box-sizing:border-box}.airframe-shell{min-height:100%;display:flex;flex-direction:column}.airframe-shell header{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid #39516b}.airframe-shell h2{margin:0;font-size:clamp(18px,2.4vw,28px)}.airframe-shell p{line-height:1.55}.airframe-shell header p{margin:4px 0;color:#adc1d4;font-size:12px}.airframe-header-actions{display:flex;gap:8px;flex-wrap:wrap}.airframe-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;flex:1;min-height:0}.airframe-stage{position:relative;min-width:0;min-height:60vh}.airframe-stage canvas{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:none}.airframe-stage #airframe-status{position:absolute;bottom:16px;left:20px;right:20px;pointer-events:none}.airframe-panel{padding:20px;background:#152031;overflow:auto}.airframe-panel label{display:block;margin:0 0 16px}.airframe-panel label>span{display:block;margin-bottom:7px}.airframe-viewer select,.airframe-viewer button{min-height:44px;border:1px solid #526981;border-radius:8px;background:#203146;color:#e8f2ff;font:inherit;padding:9px 12px;cursor:pointer}.airframe-viewer select{width:100%}.airframe-viewer input{width:100%;min-height:36px;accent-color:#8edcff}.airframe-viewer button:disabled{opacity:.45;cursor:default}.airframe-viewer button:focus-visible,.airframe-viewer select:focus-visible,.airframe-viewer input:focus-visible{outline:3px solid #8edcff;outline-offset:2px}.airframe-playback{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.airframe-views{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.airframe-panel p,.airframe-action-catalog{font-size:13px;color:#bacbdc}.airframe-panel #airframe-applicability{color:#ffd98e;min-height:20px}.airframe-action-catalog{padding-top:12px;border-top:1px solid #39516b;line-height:1.7}.airframe-header-actions button{white-space:normal}body.airframe-viewer-open{overflow:hidden}@media(max-width:760px){.airframe-shell header{padding:12px;align-items:flex-start;gap:8px}.airframe-header-actions{max-width:48%;justify-content:flex-end}.airframe-layout{grid-template-columns:1fr}.airframe-stage{height:48dvh;min-height:300px}.airframe-panel{padding:16px}.airframe-action-catalog{font-size:12px}.airframe-shell h2{font-size:18px}}@media(prefers-reduced-motion:reduce){.airframe-viewer *{scroll-behavior:auto}}

.airframe-form-controls{display:flex;flex-wrap:wrap;gap:.4rem;margin:.65rem 0}.airframe-form-controls button{flex:1;min-width:5rem}

.airframe-shell header{flex-wrap:wrap}.airframe-shell header>div:first-child{flex:1 1 22rem;min-width:0}.airframe-shell h2{word-break:keep-all;overflow-wrap:normal}@media(max-width:760px){.airframe-shell header>div:first-child{flex-basis:100%}.airframe-shell h2{white-space:nowrap}.airframe-header-actions{max-width:none;width:100%;justify-content:flex-end}}

/* Desktop stage follows the visible dialog height; the controls scroll independently. */
@media(min-width:761px){.airframe-shell{height:100%;min-height:0}.airframe-stage,.airframe-panel{min-height:0}}

/* Keep each control label intact; wrap whole controls when space is limited. */
.airframe-viewer button{white-space:nowrap;word-break:keep-all}.airframe-form-controls button{flex:1 0 auto}
