/* The loader is visible before the large inline compiler package is parsed. */
.boot-screen{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:var(--window,#101113);color:var(--fg,#e2e4e8);font:13px var(--ui,system-ui)}
.boot-screen[hidden],.boot-screen [hidden],.app[hidden]{display:none!important}
.boot-card{width:min(300px,80vw);text-align:center}
.boot-mark{display:flex;align-items:center;flex-direction:column;gap:4px;margin-bottom:34px}
.boot-mark svg{display:block;width:88px;height:88px}
.boot-mark span{font:500 8px var(--ui,system-ui);letter-spacing:.22em;text-transform:uppercase;color:var(--muted,#a0a4ac)}
.boot-screen progress{display:block;width:100%;height:3px;border:0;border-radius:2px;accent-color:var(--accent,#0a84ff);margin:0 0 16px}
.boot-screen progress::-webkit-progress-bar{background:var(--raised,#2a2c31);border-radius:2px}
.boot-screen progress::-webkit-progress-value{background:var(--accent,#0a84ff);border-radius:2px}
.boot-screen p{color:var(--muted,#a0a4ac);min-height:2.6em;line-height:1.6;overflow-wrap:anywhere}
.boot-screen button{margin-top:10px}
.activity[disabled]{opacity:.7;cursor:default}
.activity[data-reference]{color:var(--muted)}
.app-view-window{position:fixed;inset:auto;margin:0;padding:0;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);color:var(--fg);background:var(--surface);border:1px solid var(--border-strong);border-radius:14px;outline:0;overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.04)}
.app-view-window[open]{display:flex;flex-direction:column}
.app-view-window::backdrop{background:rgba(8,11,17,.55);backdrop-filter:blur(7px) saturate(.7);-webkit-backdrop-filter:blur(7px) saturate(.7)}
:root[data-mode="light"] .app-view-window::backdrop{background:rgba(35,42,55,.25)}
.app-view-heading{height:36px;flex:none;padding:0 6px 0 13px;display:flex;align-items:center;gap:12px;font:500 12px var(--ui);background:var(--panel);border-bottom:1px solid var(--border);cursor:grab;touch-action:none;user-select:none}
.app-view-heading.dragging{cursor:grabbing}
.app-view-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-view-mark{display:flex;align-items:center;color:var(--muted);flex:none;margin-right:-5px}
.app-view-mark svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.app-view-actions{display:flex;align-items:center;gap:5px}
.app-view-close,.app-view-kill{display:inline-flex;align-items:center;justify-content:center;font:12px var(--ui);cursor:pointer;border:1px solid transparent;color:var(--muted);background:transparent;transition:background .12s,color .12s,border-color .12s}
.app-view-close{width:28px;height:28px;border-radius:7px}
.app-view-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.app-view-close:hover{background:var(--hover);color:var(--fg);border-color:var(--border)}
.app-view-kill{width:28px;height:28px;padding:4px;border-radius:7px;color:var(--error)}
.app-view-kill svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.app-view-kill:hover{color:var(--error);background:color-mix(in srgb,var(--error) 12%,transparent);border-color:color-mix(in srgb,var(--error) 35%,transparent)}
.app-view-close:active,.app-view-kill:active{transform:translateY(1px)}
.app-view-close:focus-visible,.app-view-kill:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.app-view-content{min-width:0;min-height:0;overflow:auto}
.app-view-activity{display:grid;place-items:center;width:28px;height:28px;padding:4px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}
.app-view-activity svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.app-view-activity:hover{background:var(--hover);color:var(--fg)}
.app-view-activity:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.runtime-activity{position:fixed;inset:12px 12px auto auto;box-sizing:border-box;margin:0;width:280px;padding:0 8px 8px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface);color:var(--fg);box-shadow:var(--shadow-small);font:11px var(--ui);z-index:10002}
.runtime-activity[hidden]{display:none!important}
.runtime-activity{max-height:calc(100dvh - 16px);overflow:auto}
.runtime-activity .app-view-heading{margin:0 -8px 8px}
.runtime-activity output{color:var(--muted);font:inherit;font-variant-numeric:tabular-nums}
.runtime-activity canvas{display:block;width:100%;height:76px}
.runtime-activity p{margin:7px 3px 0;color:var(--muted);font-size:10px}
@media(max-width:999px){.runtime-activity{inset:8px 8px auto auto;width:min(280px,calc(100vw - 16px))}}
.code-completion{position:absolute;z-index:30;width:250px;max-height:220px;overflow:auto;background:var(--raised);border:1px solid var(--border-strong);border-radius:6px;box-shadow:var(--shadow-small);padding:4px;font:12px var(--mono)}
.code-completion [role="option"]{padding:4px 8px;border-radius:3px;cursor:pointer}
.code-completion [aria-selected="true"]{background:var(--accent);color:var(--on-accent)}
.symbol-occurrence{position:absolute;height:var(--code-line);background:var(--accent-faint);border:1px solid var(--accent-soft);border-radius:2px}
.loader-preview-controls{position:fixed;z-index:10001;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;white-space:nowrap;color:var(--faint);font:11px var(--ui);padding:8px 12px;background:var(--surface);border:1px solid var(--border);border-radius:8px}
.loader-preview-controls button,.loader-preview-controls a{color:var(--muted);font:inherit;background:transparent;border:0;padding:4px;cursor:pointer;text-decoration:none}
.loader-preview-controls button:hover,.loader-preview-controls a:hover{color:var(--fg)}
@media(max-width:600px){.loader-preview-controls{width:calc(100% - 32px);flex-wrap:wrap;justify-content:center;white-space:normal}}
