:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#0b1020;color:#e7ebf8;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 65% 40% at 55% -12%,#223768 0,transparent 100%),#0b1020}a{color:inherit;text-decoration:none}.topbar{height:70px;border-bottom:1px solid #27304a;display:flex;align-items:center;gap:24px;padding:0 max(32px,calc((100vw - 1280px)/2));}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:750;letter-spacing:-.6px}.logo{display:inline-flex;align-items:center;justify-content:center;height:35px;width:35px;border-radius:10px;background:#7d6eff;color:#fff;font-weight:850}.brand-muted{color:#8e9bb7}.tag{font-size:12px;color:#98a6c8;border-left:1px solid #2c3754;padding-left:23px}.version{color:#596785}.github{margin-left:auto;color:#bbc6dd;font-size:13px}.github:hover{color:#fff}main{max-width:1280px;margin:auto;padding:54px 32px}.intro{max-width:760px;margin-bottom:35px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#99a8f9;display:flex;align-items:center;gap:8px}.pulse,.bullet{width:7px;height:7px;display:inline-block;border-radius:50%;background:#50eab4;box-shadow:0 0 13px #50eab4}h1{font-size:clamp(34px,5vw,56px);line-height:1.08;letter-spacing:-2.4px;margin:20px 0 16px;font-weight:830}h1 em{font-style:normal;color:#a59aff}.intro p{font-size:16px;line-height:1.7;color:#aeb9d3;max-width:670px;margin:0}.workbench{display:grid;grid-template-columns:minmax(0,var(--editor-pane-width,53%)) 10px minmax(0,1fr);gap:10px}.pane{background:#101729;border:1px solid #2b3653;border-radius:15px;min-width:0;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 14px 45px #0206143b}.pane-header{display:flex;min-height:61px;align-items:center;justify-content:space-between;gap:10px;padding:0 20px;border-bottom:1px solid #25314b}.filename{font-size:13px;font-weight:700;letter-spacing:.1px;color:#dce4fa;display:flex;align-items:center;gap:9px}.file-dot{width:8px;height:8px;background:#9a90ff;border-radius:2px}.sample-label{font-size:12px;color:#8696b8;display:flex;align-items:center;gap:8px}select{font:inherit;border:1px solid #39435c;background:#171f34;color:#dae2f5;border-radius:8px;padding:8px 10px;max-width:165px}textarea{background:#101729;color:#d8dcf4;padding:27px 24px;border:0;resize:vertical;font:15px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace;min-height:375px;outline:none;tab-size:2}textarea:focus{background:#131c31}.pane-footer{margin-top:auto;border-top:1px solid #25314b;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 20px;color:#7483a6;font-size:11px}.console{padding:25px 24px;min-height:339px;flex:1;overflow:auto}.console-label{font-size:10px;letter-spacing:1.8px;color:#7385aa;font-weight:800}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;color:#67e3ba;margin:28px 0}#diagnostics{white-space:pre-wrap;color:#ff9197;font:12px/1.6 ui-monospace,monospace}#summary{font-size:11px;background:#25314a;padding:6px 11px;border-radius:20px;color:#acb8d3}#summary[data-kind=success]{color:#66e4b5;background:#153d39}#summary[data-kind=error]{color:#ff9797;background:#442b3b}.info{border-top:1px solid #25314b;display:flex;justify-content:space-between;gap:10px;padding:13px 20px;font-size:11px;color:#7483a6}.info strong{color:#d5dcf1;font-weight:650}.controls{border-top:1px solid #25314b;padding:15px 18px;display:flex;flex-wrap:wrap;gap:8px}button{border:1px solid #354462;border-radius:9px;background:#1b2641;color:#dce5f8;cursor:pointer;padding:11px 14px;font:600 12px ui-sans-serif,system-ui;transition:background .18s}button:hover:not(:disabled){background:#2f3e65}button:disabled{opacity:.4;cursor:not-allowed}button.primary{background:#7769f8;border-color:#7769f8;color:#fff;flex:1;min-width:120px}button.primary:hover:not(:disabled){background:#8d82ff}.bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:15px 1px;color:#7d8caf;font-size:11px}.bottom>div{display:flex;align-items:center;gap:9px}.bottom a{color:#a6a0ff;text-decoration:underline;text-underline-offset:3px}.footnote{margin-top:66px;max-width:850px;border-top:1px solid #27314d;padding-top:20px}.footnote h2{font-size:16px;letter-spacing:-.2px}.footnote p{font-size:13px;line-height:1.8;color:#9faccc}.footnote code{color:#b1aaff}.sr-only{position:absolute;left:-9999px}@media(max-width:850px){.workbench{grid-template-columns:1fr}.topbar{padding:0 18px}.desktop-only{display:none}main{padding:35px 16px}h1{letter-spacing:-1px}.console{min-height:190px}textarea{min-height:310px}}

/* Accessible, responsive workbench affordances. The textarea remains the canonical editor. */
.editor-surface{display:flex;min-width:0;flex:1;overflow:hidden}
#line-gutter{flex:0 0 53px;margin:0;min-height:375px;padding:27px 11px 27px 4px;background:#0d1526;border-right:1px solid #25314b;color:#667a9d;text-align:right;white-space:pre;overflow:hidden;user-select:none;font:15px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace}
.editor-surface textarea{width:100%;min-width:0;flex:1;padding-left:18px;white-space:pre;overflow:auto}
#cursor{font-variant-numeric:tabular-nums;color:#b2bfde}
.output-tabs{display:flex;gap:4px;padding:9px 17px 0;border-bottom:1px solid #25314b}
.output-tabs button{background:transparent;border:0;border-radius:7px 7px 0 0;color:#91a1c1;padding:10px 13px}
.output-tabs button[aria-selected=true]{color:#e4e7ff;background:#202a47;box-shadow:inset 0 -2px #978cff}
.output-tabs button:focus-visible,.diagnostic-link:focus-visible,.controls button:focus-visible{outline:2px solid #b1aaff;outline-offset:2px}
.tab-panel[hidden]{display:none!important}
.tab-panel{min-height:301px}
#diagnostics{margin:18px 0;color:#ffc0c4}
.diagnostic-link{display:block;max-width:100%;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:#2b1a2b;color:#ffb4bd;border:1px solid #7c4654;padding:12px 15px;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}
.diagnostic-link:hover{background:#432536}
#wasm-preview{font-size:12px;line-height:2;color:#b0d5ff}
@media(max-width:850px){#line-gutter{min-height:310px;flex-basis:44px;padding-right:6px}.output-tabs{overflow-x:auto}.tab-panel{min-height:190px}}


/* Native, accessible textarea over a noninteractive, text-only syntax mirror. */
.program-controls{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:0}
.program-controls .sample-label{min-width:0}
.program-controls select{max-width:175px}
.program-controls input{font:12px ui-sans-serif,system-ui;max-width:144px;min-width:100px;padding:9px 10px;background:#171f34;color:#e4e9ff;border:1px solid #39435c;border-radius:8px}
.program-controls button{padding:9px 10px}
.program-controls [hidden]{display:none!important}
.editor-input-wrap{position:relative;flex:1;min-width:0;min-height:375px;display:flex;overflow:hidden}
.editor-input-wrap .syntax-layer{position:absolute;inset:0;margin:0;padding:27px 24px 27px 18px;overflow:hidden;white-space:pre;overflow-wrap:normal;tab-size:2;color:#d8dcf4;font:15px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace;pointer-events:none;user-select:none;z-index:0}
.editor-surface .editor-input-wrap textarea{position:relative;z-index:1;flex:1;width:100%;height:100%;min-height:375px;padding:27px 24px 27px 18px;background:transparent}
.editor-surface .editor-input-wrap.highlight-ready textarea{color:transparent;-webkit-text-fill-color:transparent;caret-color:#e7ebff}
.editor-surface .editor-input-wrap textarea:focus{background:transparent}
.syntax-layer .tok-keyword{color:#b9a2ff;font-weight:inherit}
.syntax-layer .tok-type{color:#72d8df}
.syntax-layer .tok-literal,.syntax-layer .tok-number{color:#f6c378}
.syntax-layer .tok-string{color:#9be59b}
.syntax-layer .tok-comment{color:#8695b0;font-style:normal}
.syntax-layer .tok-function{color:#8bbbff}
.syntax-layer .tok-operator{color:#f7a2cb}
/* Distinct accessible source colors; no typography/layout changes to the caret mirror. */
.syntax-layer .tok-operator-accent{color:#ff788a}
.syntax-layer .tok-ownership-bang{color:#ff788a}
.syntax-layer .tok-concurrency{color:#65deb9}
.syntax-layer .tok-user-type{color:#e9b9ff}
@media(max-width:850px){.editor-input-wrap{min-height:310px}.editor-surface .editor-input-wrap textarea{min-height:310px}.program-controls{justify-content:flex-start}}

/* The source textarea is transparent above the token mirror. Typography must
 * have identical glyph advances in both layers, including long Rx comments,
 * nested generic types and lambda arrows, or the caret drifts from the color. */
.editor-input-wrap .syntax-layer,
.editor-surface .editor-input-wrap textarea{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0;letter-spacing:normal}

/* Local-only portable program backups */
#export-custom,#import-custom{white-space:nowrap}
#export-custom:focus-visible,#import-custom:focus-visible{outline:2px solid #b1aaff;outline-offset:2px}

/* Drag/keyboard accessible splitter. No localStorage or third-party dependencies. */
.splitter{position:relative;align-self:stretch;border:0;border-radius:8px;background:transparent;cursor:col-resize;touch-action:none;outline-offset:2px}
.splitter::before{content:"";position:absolute;top:18px;bottom:18px;left:calc(50% - 2px);width:4px;border-radius:3px;background:#354462}
.splitter:hover::before,.splitter:focus-visible::before{background:#a59aff}
.splitter:focus-visible{outline:2px solid #b1aaff}
@media(max-width:850px){.splitter{display:none}}

/* Shared square llama mark in the playground navigation. */
img.logo{display:block;width:36px;height:36px;object-fit:contain;background:#fff;border-radius:8px;flex-shrink:0}

/* Shared Atto mark in the playground site footer (outside the workbench). */
.play-footer{max-width:1280px;margin:34px auto 0;padding:24px 32px 38px;border-top:1px solid #27304a;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:14px 22px;color:#9faccc;font-size:12px;line-height:1.6}
.play-footer-brand{display:inline-flex;align-items:center;gap:10px;color:#e7ebf8;font-size:14px;font-weight:750}
.play-footer-brand img{display:block;width:36px;height:36px;border-radius:8px;background:#fff}
.play-footer a:focus-visible{outline:2px solid #b1aaff;outline-offset:3px}
@media(max-width:850px){.play-footer{padding:22px 18px 36px}}

/* Leave room for the complete site brand and source link at narrow viewport widths. */
@media(max-width:520px){.topbar{gap:10px;padding:0 12px}.topbar .brand{font-size:16px;gap:7px}.topbar .github{font-size:11px;white-space:nowrap}}

/* Discoverable route to the compiler-verified language showcase. */
.showcase-link{margin:-16px 0 26px;font-size:14px;font-weight:700}
.showcase-link a{color:#c3bbff;text-decoration:underline;text-underline-offset:4px}
.showcase-link a:hover,.showcase-link a:focus-visible{color:#fff}
