:root{color:#e8edf0;background:#101212;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#212522e6,#101212fa 42%),#101212}button,select,textarea{font:inherit}button{border:0}.app-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:100vh;padding:18px;gap:14px}.topbar,.statusbar,.editor-panel,.console-panel{border:1px solid rgba(223,230,224,.12);background:#151717db;box-shadow:0 18px 50px #00000047}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:74px;padding:13px 14px;border-radius:8px}.brand{display:flex;align-items:center;min-width:260px;gap:12px}.brand-mark{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:8px;color:#1c211f;background:#e0a84b;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:25px;font-weight:800}h1{margin:0;color:#f4f7f5;font-size:18px;font-weight:700;letter-spacing:0}p{margin:3px 0 0;color:#8f9a95;font-size:13px;line-height:1.35}.toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.button,.icon-button,.select-wrap{height:36px;border-radius:8px;color:#dce4e0;background:#ffffff0e;border:1px solid rgba(255,255,255,.1)}.button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:background .14s ease,border-color .14s ease,transform .14s ease}.button{padding:0 13px;font-size:13px;font-weight:650}.button.primary{color:#17201c;background:#73d1b1;border-color:#83e2c1}.icon-button{width:36px;padding:0}.button:hover:not(:disabled),.icon-button:hover:not(:disabled),.select-wrap:hover{background:#ffffff16;border-color:#ffffff2e;transform:translateY(-1px)}.button.primary:hover:not(:disabled){background:#87e0c3}.button:disabled,.icon-button:disabled{cursor:not-allowed;opacity:.42}.select-wrap{position:relative;display:inline-flex;align-items:center;min-width:214px}.select-wrap select{width:100%;height:100%;appearance:none;border:0;outline:0;color:#dce4e0;background:transparent;padding:0 34px 0 12px;font-size:13px;font-weight:620}.select-wrap svg{position:absolute;right:10px;pointer-events:none;color:#98a49f}.workspace{display:grid;min-height:0;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:14px}.side-stack{display:grid;min-height:0;grid-template-rows:minmax(190px,.44fr) minmax(320px,.56fr);gap:14px}.editor-panel,.console-panel,.guide-panel{display:grid;min-height:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border-radius:8px}.panel-header{display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:14px;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.08)}.panel-header>div{display:flex;align-items:baseline;gap:10px;min-width:0}.panel-header strong{color:#f1f5f2;font-size:13px;font-weight:720}.panel-header span{overflow:hidden;color:#89948e;font-size:12px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.editor-frame{display:grid;min-height:0;grid-template-columns:52px minmax(0,1fr);background:#121514}.line-numbers{display:flex;flex-direction:column;align-items:flex-end;min-height:100%;padding:17px 13px 17px 0;color:#55615c;background:#171a19;border-right:1px solid rgba(255,255,255,.07);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.65;-webkit-user-select:none;user-select:none}.editor-frame textarea{width:100%;min-height:100%;padding:16px 18px;resize:none;border:0;outline:0;color:#e9efe9;background:transparent;caret-color:#e0a84b;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.65;tab-size:2}.editor-frame textarea::selection{background:#73d1b140}.console{margin:0;min-height:0;overflow:auto;padding:16px 18px;color:#d7e1dc;background:#0f1111;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.62;white-space:pre-wrap}.console.error{color:#ffd7c2}.guide-panel{border:1px solid rgba(223,230,224,.12);background:#151717db;box-shadow:0 18px 50px #00000047}.guide-panel .panel-header>svg{flex:0 0 auto;color:#e0a84b}.guide-content{min-height:0;overflow:auto;padding:12px;background:#111414}.guide-callout{display:flex;gap:10px;padding:11px;border:1px solid rgba(115,209,177,.22);border-radius:8px;background:#73d1b112}.guide-callout svg{flex:0 0 auto;margin-top:1px;color:#73d1b1}.guide-callout strong,.guide-section-heading strong,.snippet-card strong{display:block;color:#f1f5f2;font-size:13px;font-weight:720;line-height:1.25}.guide-callout span,.guide-section-heading span,.snippet-card span{display:block;margin-top:3px;color:#9ca7a2;font-size:12px;line-height:1.38}.guide-section{margin-top:16px}.guide-section-heading{margin-bottom:8px}.snippet-list{display:grid;gap:8px}.snippet-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:#ffffff0a}.mini-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 10px;border-radius:8px;color:#17201c;background:#e0a84b;border:1px solid #ebb85f;cursor:pointer;font-size:12px;font-weight:720;transition:background .14s ease,transform .14s ease}.mini-button:hover{background:#efbd64;transform:translateY(-1px)}.grammar-list{display:grid;gap:6px}.grammar-list code{display:block;overflow-x:auto;padding:8px 9px;border:1px solid rgba(255,255,255,.07);border-radius:8px;color:#dbe5df;background:#0e1110;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.35}.rules-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}.rules-list li{position:relative;padding-left:16px;color:#c1cac5;font-size:12px;line-height:1.42}.rules-list li:before{position:absolute;top:0;left:0;color:#73d1b1;content:">"}.statusbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:0 12px;border-radius:8px;color:#8f9a95;font-size:12px}.statusbar div{display:inline-flex;align-items:center;gap:7px;color:#cdd7d2;font-weight:650}.spin{animation:spin .9s linear infinite}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:880px){.app-shell{padding:10px}.topbar{align-items:flex-start;flex-direction:column}.toolbar,.select-wrap{width:100%}.workspace{grid-template-columns:1fr;grid-template-rows:minmax(420px,58vh) minmax(620px,auto)}.side-stack{grid-template-rows:minmax(230px,34vh) minmax(380px,auto)}.panel-header>div{align-items:flex-start;flex-direction:column;gap:2px}.statusbar{align-items:flex-start;flex-wrap:wrap;height:auto;padding:9px 12px}}
