html, body { margin: 0; min-height: 100%; font-family: system-ui, sans-serif; background: #102018; color: #f7faf7; }
body { overflow: hidden; }
#app { width: 100vw; height: 100vh; }
.fieldlab-editor__frame { position: relative; width: 100vw; height: 100vh; border: 0; border-radius: 0; overflow: hidden; background: #173522; box-shadow: none; }
.fieldlab-editor__title { position: absolute; z-index: 2; top: 1rem; left: 1.25rem; margin: 0; font-size: 1.5rem; pointer-events: none; }
.fieldlab-editor__canvas { position: absolute; inset: 0; display: grid; place-items: center; padding: 3.5rem 11rem 2rem; }
.fieldlab-editor__canvas svg { width: 100%; height: 100%; max-height: 100%; }
.fieldlab-editor__tools, .fieldlab-editor__info { position: absolute; z-index: 3; top: 4rem; display: grid; gap: .5rem; pointer-events: none; }
.fieldlab-editor__tools { left: 1rem; }
.fieldlab-editor__tools button { padding: .55rem .75rem; border-radius: .65rem; border: 1px solid rgba(255,255,255,.3); background: rgba(15,28,20,.82); color: #fff; cursor: pointer; text-align: left; pointer-events: auto; }
.fieldlab-editor__tools button[aria-pressed="true"] { background: #facc15; color: #1b1b12; }
.fieldlab-editor__info { right: 1rem; width: 13rem; }
.fieldlab-editor__info section { padding: .75rem; border-radius: .75rem; background: rgba(15,28,20,.82); border: 1px solid rgba(255,255,255,.2); pointer-events: auto; }
.fieldlab-editor__info h2 { margin: 0 0 .5rem; font-size: 1rem; }
.fieldlab-editor__info p { margin: .25rem 0; font-size: .85rem; line-height: 1.35; }
.fieldlab-editor__field { display: grid; gap: .25rem; margin: 0 0 .5rem; font-size: .8rem; }
.fieldlab-editor__field input,
.fieldlab-editor__field textarea,
.fieldlab-editor__field select,
.fieldlab-editor__step-button,
.fieldlab-editor__step-controls button { width: 100%; box-sizing: border-box; padding: .45rem .55rem; border-radius: .5rem; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.fieldlab-editor__field textarea { min-height: 4.5rem; resize: vertical; }
.fieldlab-editor__step-list,
.fieldlab-editor__step-controls { display: grid; gap: .4rem; margin-bottom: .5rem; }
.fieldlab-editor__step-button[aria-pressed="true"] { background: #facc15; color: #1b1b12; }
.fieldlab-editor__version { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; padding: .35rem .55rem; border-radius: .6rem; background: rgba(15,28,20,.82); border: 1px solid rgba(255,255,255,.2); color: rgba(247,250,247,.82); font-size: .8rem; line-height: 1; pointer-events: none; }
.fieldlab-context-menu { position: fixed; z-index: 10; min-width: 12rem; padding: .35rem; border-radius: .75rem; background: rgba(12,22,16,.98); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 1rem 2rem rgba(0,0,0,.35); color: #fff; }
.fieldlab-context-menu__item { display: block; width: 100%; box-sizing: border-box; padding: .5rem .65rem; border: 0; border-radius: .45rem; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.fieldlab-context-menu__item:hover, .fieldlab-context-menu__submenu:hover > .fieldlab-context-menu__item { background: rgba(255,255,255,.1); }
.fieldlab-context-menu__item[disabled], .fieldlab-context-menu__item[aria-disabled="true"] { opacity: .45; cursor: default; }
.fieldlab-context-menu__separator { height: 1px; margin: .3rem 0; background: rgba(255,255,255,.12); }
.fieldlab-context-menu__label { padding: .3rem .65rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(247,250,247,.65); }
.fieldlab-context-menu__submenu { position: relative; }
.fieldlab-context-menu__panel { position: absolute; top: 0; left: calc(100% - .15rem); display: none; min-width: 11rem; padding: .35rem; border-radius: .75rem; background: rgba(12,22,16,.98); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 1rem 2rem rgba(0,0,0,.35); }
.fieldlab-context-menu__submenu:hover > .fieldlab-context-menu__panel { display: block; }
