:root{color:#18201d;background:#e8ece4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button,select{cursor:pointer}a{color:inherit}.app-shell{background:linear-gradient(135deg,rgba(82,118,91,.14),transparent 34%),linear-gradient(225deg,rgba(196,76,54,.13),transparent 36%),#eef0ea;height:100vh;min-height:680px;overflow:hidden;padding:12px}.topbar{align-items:center;background:#fffffbe6;border:1px solid rgba(41,53,47,.12);border-radius:8px;box-shadow:0 18px 48px #27322d1f;display:flex;gap:14px;justify-content:space-between;margin-bottom:10px;min-height:54px;padding:8px 12px}.brand{align-items:center;display:flex;gap:10px;min-width:210px}.brand-mark{align-items:center;background:#1e7de8;border-radius:8px;color:#fff;display:flex;flex:0 0 34px;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:14px;font-weight:800;height:34px;justify-content:center;width:34px}.brand h1,.brand p,.panel-header h2,.editor-header h2,.runner-header p{margin:0}.brand h1{font-size:17px;letter-spacing:0}.brand p,.runner-header p{color:#657067;font-size:13px}.topbar-actions,.run-actions{align-items:center;display:flex;gap:10px}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.primary-button,.ghost-button,.run-button,.check-button,.donate-button,.solution-button,.icon-button{align-items:center;border:0;border-radius:7px;display:inline-flex;font-weight:750;gap:8px;justify-content:center;min-height:36px;padding:0 12px;white-space:nowrap}.nav-link{color:#24332d;text-decoration:none}.nav-link:hover{background:#1e7de81a;color:#155fae}.primary-button,.run-button{background:#c74432;color:#fffdf7}.check-button{background:#24332d;color:#fffdf7}.solution-button{background:#e7c85b;color:#2a2413}.donate-button{background:#1e7de8;color:#fff}.primary-button:hover,.run-button:hover{background:#a93627}.check-button:hover{background:#111b17}.solution-button:hover{background:#d7b13c}.donate-button:hover{background:#1668c5}.ghost-button,.icon-link{background:#f6f3e8;border:1px solid rgba(37,51,44,.14);color:#26332d}.ghost-button:hover,.icon-link:hover{background:#ebe6d8}.ghost-button:disabled,.run-button:disabled,.check-button:disabled,.solution-button:disabled{cursor:not-allowed;opacity:.54}.icon-button{background:#f6f3e8;border:1px solid rgba(37,51,44,.14);color:#26332d;height:34px;padding:0;width:34px}.icon-button:hover{background:#ebe6d8}.compact{min-height:34px;padding:0 11px}.donate-modal-backdrop{align-items:center;background:#161f1b94;display:flex;top:0;right:0;bottom:0;left:0;justify-content:center;padding:24px;position:fixed;z-index:100}.donate-modal{background:#fffdf7;border:1px solid rgba(41,53,47,.14);border-radius:8px;box-shadow:0 24px 80px #141b1757;max-height:calc(100vh - 48px);max-width:min(420px,100%);overflow:hidden;width:100%}.donate-modal-header{align-items:center;border-bottom:1px solid rgba(41,53,47,.1);display:flex;gap:12px;justify-content:space-between;padding:10px 12px}.donate-modal h2{color:#1f2e27;font-size:16px;letter-spacing:0;margin:0}.donate-modal img{display:block;height:auto;max-height:calc(100vh - 120px);object-fit:contain;width:100%}.workspace{display:grid;height:calc(100vh - 88px);min-height:594px;min-width:0}.statement-panel,.coding-panel,.runner-panel,.editor-section{min-height:0;min-width:0}.statement-panel,.runner-panel,.editor-section{background:#fffffbeb;border:1px solid rgba(41,53,47,.12);border-radius:8px;box-shadow:0 18px 48px #27322d1a;overflow:hidden}.statement-panel,.editor-section{display:flex;flex-direction:column}.panel-header,.editor-header,.runner-header{align-items:center;display:flex;gap:12px;justify-content:space-between;padding:10px 12px}.statement-title{align-items:center;display:flex;flex:1;gap:12px;min-width:0}.statement-title .eyebrow{margin-bottom:0;white-space:nowrap}.problem-combobox{flex:1;max-width:360px;min-width:180px;position:relative}.problem-combobox input{background:#f6f3e8;border:1px solid rgba(37,51,44,.14);border-radius:7px;color:#1f2e27;font-size:14px;font-weight:800;height:34px;outline:0;padding:0 56px 0 10px;width:100%}.combobox-toggle,.combobox-clear{align-items:center;background:transparent;border:0;border-radius:5px;color:#5b6862;cursor:pointer;display:inline-flex;height:26px;justify-content:center;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:background .12s ease,color .12s ease,transform .2s ease;width:26px}.combobox-toggle{right:6px}.combobox-clear{right:34px}.combobox-toggle:hover,.combobox-clear:hover{background:#25332c14;color:#24332d}.combobox-toggle:disabled,.combobox-clear:disabled{cursor:not-allowed;opacity:.4}.combobox-toggle.is-open{transform:translateY(-50%) rotate(180deg);color:#24332d}.problem-combobox input:focus{border-color:#c7443285;box-shadow:0 0 0 3px #c744321f}.problem-combobox input:disabled{cursor:not-allowed;opacity:.6}.problem-options{background:#fffdf7;border:1px solid rgba(37,51,44,.16);border-radius:7px;box-shadow:0 18px 42px #1f2e272e;left:0;margin-top:6px;max-height:280px;overflow:auto;padding:5px;position:absolute;right:0;top:100%;z-index:20}.problem-options button,.problem-empty{border-radius:5px;color:#24332d;font-size:13px;font-weight:750;min-height:32px;padding:7px 8px;text-align:left;width:100%}.problem-options button{align-items:center;background:transparent;border:0;display:flex}.problem-options button:hover,.problem-options button.is-active{background:#ebe6d8}.problem-options button.is-active{outline:2px solid rgba(199,68,50,.28);outline-offset:-2px}.problem-options button.is-selected{background:#c744321f;box-shadow:inset 3px 0 #c74432;color:#8a2918;font-weight:700}.problem-options button.is-selected:after{content:"✓";font-weight:700;margin-left:auto;padding-left:8px}.problem-empty{color:#657067}.problem-group+.problem-group{margin-top:6px;padding-top:6px;border-top:1px dashed rgba(37,51,44,.12)}.problem-group-label{color:#657067;font-size:11px;font-weight:700;letter-spacing:.08em;padding:4px 8px 2px;text-transform:uppercase}.runtime-hint{color:#657067;font-size:11px;margin-left:6px}.error-boundary{align-items:center;background:#c744320f;border:1px solid rgba(199,68,50,.24);border-radius:8px;color:#8a2918;display:flex;flex-direction:column;gap:12px;height:100%;justify-content:center;padding:24px;text-align:center}.error-boundary pre{background:#fffdf7;border:1px solid rgba(37,51,44,.14);border-radius:6px;font-size:12px;max-width:100%;overflow:auto;padding:10px;text-align:left;white-space:pre-wrap}.panel-header,.editor-header{border-bottom:1px solid rgba(41,53,47,.1)}.eyebrow{color:#8b5a37;display:block;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:11px;font-weight:800;margin-bottom:2px;text-transform:uppercase}.panel-header h2,.editor-header h2{color:#1f2e27;font-size:20px}.icon-link{align-items:center;border-radius:7px;display:inline-flex;font-size:13px;font-weight:800;gap:7px;min-height:34px;padding:0 10px;text-decoration:none;white-space:nowrap}.pdf-frame{background:#2a2d2a;flex:1;min-height:0}.pdf-frame object,.pdf-frame iframe{border:0;display:block;height:100%;width:100%}.empty-state{align-items:center;color:#f4f1df;display:flex;flex-direction:column;gap:8px;height:100%;justify-content:center;padding:24px;text-align:center}.empty-state p{margin:0}.empty-state a{color:#f4d07a;font-weight:800}.coding-panel{display:grid}.editor-section{box-shadow:0 18px 48px #27322d1a}.editor-box{flex:1;min-height:0;overflow:hidden}.editor-actions{align-items:center;display:flex;gap:10px}.font-controls{align-items:center;background:#f6f3e8;border:1px solid rgba(37,51,44,.14);border-radius:7px;color:#26332d;display:inline-flex;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:12px;font-weight:800;min-height:34px;overflow:hidden}.font-controls span{min-width:42px;text-align:center}.font-button{background:transparent;border:0;color:inherit;font-size:16px;font-weight:900;height:34px;padding:0 11px}.font-button:hover{background:#ebe6d8}.runner-panel{box-shadow:0 18px 48px #27322d1a;display:flex;flex-direction:column;gap:2px;padding:0 12px 12px}.runner-header{align-items:center;flex-direction:row;gap:12px;padding:6px 0 5px}.runner-title{align-items:center;display:flex;gap:9px;min-height:20px}.runner-title .eyebrow{margin-bottom:0}.runner-title .status-pill{flex:0 0 auto}.run-actions{align-self:flex-end;margin-left:auto}.resize-handle{align-items:center;background:transparent;border:0;color:#25332c80;display:flex;justify-content:center;padding:0}body.is-resizing,body.is-resizing *{cursor:inherit;-webkit-user-select:none;user-select:none}body.is-resizing .pdf-frame iframe,body.is-resizing .pdf-frame object{pointer-events:none}.resize-handle:hover,.resize-handle:focus-visible{color:#c74432;outline:0}.column-resizer{cursor:col-resize}.row-resizer{cursor:row-resize}.io-grid{display:grid;flex:1;gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0}.io-box{display:flex;flex-direction:column;gap:8px;min-height:0}.io-box span,.output-title span{color:#2d3b34;font-size:13px;font-weight:800}.io-box textarea,.output-box pre{background:#17211d;border:1px solid rgba(255,255,255,.08);border-radius:7px;color:#f4f1df;flex:1;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:13px;line-height:1.55;margin:0;min-height:0;outline:0;overflow:auto;padding:12px;resize:none;white-space:pre-wrap}.testcase-panel{background:#f6f3e8;border:1px solid rgba(37,51,44,.12);border-radius:7px;display:flex;flex-direction:column;max-height:94px;min-height:32px;overflow:hidden}.testcase-summary{color:#2d3b34;flex:0 0 auto;font-size:12px;font-weight:800;padding:6px 10px}.testcase-list{border-top:1px solid rgba(37,51,44,.1);overflow:auto;padding:4px}.testcase-list details{border-radius:5px;font-size:12px}.testcase-list details+details{margin-top:3px}.testcase-list summary{align-items:center;cursor:pointer;display:flex;font-weight:800;gap:8px;min-height:23px;padding:3px 6px}.testcase-list summary span{border-radius:999px;color:#fffdf7;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:10px;min-width:38px;padding:2px 5px;text-align:center}.testcase-list .passed summary span{background:#28643b}.testcase-list .failed summary span{background:#a93627}.testcase-detail{display:grid;gap:5px;padding:0 6px 8px}.testcase-detail strong{color:#526259;font-size:11px}.testcase-detail pre{background:#17211d;border-radius:5px;color:#f4f1df;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:11px;margin:0;max-height:86px;overflow:auto;padding:7px;white-space:pre-wrap}.output-title{align-items:center;display:flex;justify-content:space-between}.status-pill{background:#e6eadf;border-radius:999px;color:#526259;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:11px;font-weight:800;padding:3px 8px}.status-pill.done{background:#dbeada;color:#28643b}.status-pill.error,.status-pill.timeout{background:#f4ded8;color:#a93627}.status-pill.running,.status-pill.loading,.status-pill.checking{background:#f0e1c8;color:#8b5a37}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1040px){.app-shell{height:auto;min-height:100vh;overflow:auto;padding:12px}.topbar{align-items:flex-start;flex-direction:column;gap:14px}.brand{min-width:0}.topbar-actions{flex-wrap:wrap;width:100%}.problem-picker{flex:1 1 280px}.problem-picker select{max-width:none;width:100%}.workspace{display:flex;flex-direction:column;gap:12px;height:auto;min-height:0}.statement-panel{height:640px}.coding-panel{display:flex;flex-direction:column;gap:12px}.editor-section{height:500px}.runner-panel{min-height:330px}.resize-handle{display:none}}@media(max-width:720px){.brand{align-items:flex-start}.brand h1{font-size:18px}.primary-button,.ghost-button,.donate-button{flex:1}.statement-panel{height:560px}.editor-section{height:460px}.runner-header{align-items:flex-start;flex-direction:column}.run-actions{width:100%}.run-actions button{flex:1}.io-grid{grid-template-columns:1fr}}
