:root{--bg: #0d1117;--panel: #161b22;--text: #c9d1d9;--border: #30363d;--accent: #58a6ff;--console-bg: #1e1e1e;--console-text: #d4d4d4;--console-error: #f48771;--warning-bg: #333;--warning-text: #f48771;--button-bg: #0e639c;--button-text: #fff;--footer-text-align: right;font-family:system-ui,-apple-system}html,body{height:100%;margin:0;background:var(--bg);color:var(--text);overscroll-behavior:none;text-size-adjust:100%}body.light{--bg: #f3f1eb;--panel: #e6e2d9;--text: #2b2b2b;--border: #c8c2b8;--accent: #b58900;--console-bg: #ece8df;--console-text: #2a2a2a;--console-error: #a13d2d;--warning-bg: #e8e1d4;--warning-text: #8a5a00;--button-bg: #b58900;--button-text: #1e1e1e;--footer-text-align: left}button{background:var(--button-bg);border:none;padding:6px 12px;color:var(--button-text);cursor:pointer;border-radius:3px;min-height:40px}pre{background:var(--panel);padding:10px;border-radius:6px;overflow-x:auto}.sandbox-container{height:100vh}.sandbox-grid{display:grid;grid-template-columns:1fr 1fr;height:100%;gap:4px;min-height:0}.sandbox-readme{padding:16px;border-right:1px solid var(--border);overflow-y:auto;height:100%;box-sizing:border-box;min-height:0}.runner-container{display:grid;grid-template-rows:1fr 1fr;height:100%;font-family:monospace;padding:4px;box-sizing:border-box;position:relative;gap:4px;min-height:0}.runner-editor{height:100%;min-height:0}.runner-console{min-height:0;min-width:0;display:flex;flex-direction:column;background-color:var(--console-bg);color:var(--console-text);padding:4px;border-radius:4px}.runner-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;padding-bottom:6px}.runner-buttons button{min-width:120px}.runner-warnings{background-color:var(--warning-bg);color:var(--warning-text);padding:4px;border-radius:3px;margin-bottom:6px;font-size:12px}.runner-logs{flex:1;overflow:hidden auto;margin:0;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}.runner-log{color:var(--console-text);border-bottom:1px solid var(--border);padding-bottom:4px;margin-bottom:4px;white-space:pre-wrap}.runner-log-error{color:var(--console-error)}.runner-footer{font-size:12px;color:#888;font-style:italic;margin-top:6px;display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:var(--footer-text-align)}.runner-footer-left{display:flex;flex-direction:column;gap:2px;text-align:right}.runner-footer-center{text-align:right}.runner-footer-github{text-align:right;width:100%;margin-top:4px}.runner-footer-link{color:inherit;text-decoration:none;opacity:.75}.runner-footer-link:hover{opacity:1;text-decoration:underline}@media(max-width:768px){.sandbox-grid{grid-template-columns:1fr;grid-template-rows:auto 1fr}.sandbox-readme{max-height:40vh;border-right:none;border-bottom:1px solid var(--border)}.runner-buttons button{width:90%;max-width:220px;min-height:36px;font-size:14px}.runner-footer{align-items:center;text-align:center}.runner-footer-left,.runner-footer-center{text-align:center}.runner-footer-github{margin-top:2px}.runner-console{flex:1 1 auto;min-height:150px;max-height:70vh;overflow-y:auto;padding:8px;font-size:14px;border-radius:6px;background-color:#222}.runner-log,.runner-log-error{padding:6px 4px}.runner-logs{max-height:none;overflow:visible}}@supports (padding: env(safe-area-inset-bottom)){body{padding-bottom:env(safe-area-inset-bottom)}}.runner-notification{position:absolute;top:1rem;right:1rem;background-color:#ff4d4f;color:#fff;padding:.75rem 1rem;border-radius:6px;box-shadow:0 4px 12px #0003;font-weight:700;z-index:9999;animation:fadeIn .25s ease-out}@keyframes fade-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.runner-footer-link-commit{color:#58a6ff;text-decoration:none;opacity:1}.runner-footer-link-commit:hover,.runner-footer-link-commit:focus,.runner-footer-link-commit:active{color:#58a6ff;text-decoration:underline}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner{width:20px;height:20px;animation:spin 1s linear infinite}body{scrollbar-width:thin;scrollbar-color:var(--accent) var(--panel)}body::-webkit-scrollbar{width:10px;height:10px}body::-webkit-scrollbar-track{background:var(--panel);border-radius:6px}body::-webkit-scrollbar-thumb{background-color:var(--accent);border-radius:6px;border:2px solid var(--panel)}body::-webkit-scrollbar-thumb:hover{background-color:var(--button-bg)}.sandbox-readme,.runner-logs,.runner-console{scrollbar-width:thin;scrollbar-color:var(--accent) var(--panel)}.sandbox-readme::-webkit-scrollbar,.runner-logs::-webkit-scrollbar,.runner-console::-webkit-scrollbar{width:10px;height:10px}.sandbox-readme::-webkit-scrollbar-track,.runner-logs::-webkit-scrollbar-track,.runner-console::-webkit-scrollbar-track{background:var(--panel);border-radius:6px}.sandbox-readme::-webkit-scrollbar-thumb,.runner-logs::-webkit-scrollbar-thumb,.runner-console::-webkit-scrollbar-thumb{background-color:var(--accent);border-radius:6px;border:2px solid var(--panel)}.sandbox-readme::-webkit-scrollbar-thumb:hover,.runner-logs::-webkit-scrollbar-thumb:hover,.runner-console::-webkit-scrollbar-thumb:hover{background-color:var(--button-bg)}::selection{background:var(--accent);color:var(--bg)}body.light ::selection{background:var(--accent);color:var(--panel)}
