:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17241d;background:#eef2ed}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:320px;min-height:100vh;background:#eef2ed}body.overlay-open{overflow:hidden}button,a{font:inherit}button{cursor:pointer}.problem-app{min-height:100vh}.topbar{display:grid;grid-template-columns:44px auto 44px minmax(0,1fr);align-items:center;gap:14px;min-height:78px;padding:12px clamp(16px,4vw,48px);border-bottom:1px solid #cbd3cc;background:#fff}.back-link{display:grid;width:42px;height:42px;place-items:center;border:2px solid #263b30;border-radius:8px;color:#263b30;font-size:1.25rem;font-weight:900;text-decoration:none}.forward-link{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border:2px solid #263b30;border-radius:8px;color:#263b30;font-size:1.25rem;font-weight:900;text-decoration:none}.back-link:hover,.back-link:focus-visible,.forward-link:hover,.forward-link:focus-visible{background:#eaf2e9;outline:0}.product-lockup{display:flex;align-items:center;gap:12px;min-width:0}.product-mark{flex:0 0 auto;width:38px;height:38px;border:3px solid #20372b;border-radius:7px;background:linear-gradient(90deg,transparent 35%,#20372b 35% 43%,transparent 43% 57%,#20372b 57% 65%,transparent 65%),linear-gradient(#f6c75c 0 38%,#70ad69 38% 100%)}.product-lockup p,.product-lockup h1,.workspace-head p,.workspace-head h2,.list-heading h3,.problem-row h3,.problem-row p,.error-state p{margin:0}.product-lockup p,.eyebrow,.summary-strip dt,.problem-meta dt,.player-resource span{color:#617068;font-size:.72rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.product-lockup h1{overflow:hidden;font-size:1.08rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.player-resource{text-align:right}.problem-topbar-actions{justify-self:end}.player-resource strong{display:block;margin-top:3px;color:#204b31;font-size:.96rem}.problem-workspace{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:42px 0 72px}.workspace-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:32px;padding-bottom:28px}.workspace-head h2{margin-top:6px;font-size:1.8rem;line-height:1.2}.workspace-copy{max-width:620px;margin-top:10px!important;color:#526158;line-height:1.55}.summary-strip{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));margin:0;border:1px solid #cbd3cc;border-radius:8px;background:#fff}.summary-strip div{min-width:100px;padding:14px 16px;border-left:1px solid #d8ded9}.summary-strip div:first-child{border-left:0}.summary-strip dd{margin:5px 0 0;font-size:1.25rem;font-weight:900}.view-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c8d0ca}.view-tabs{display:flex;gap:4px}.view-tab{min-height:44px;padding:0 18px;border:0;border-bottom:3px solid transparent;background:transparent;color:#657169;font-weight:800;text-decoration:none}.view-tab.active{border-bottom-color:#d88b45;color:#17241d}.data-view{padding-top:22px}.problem-data-view{padding-top:12px}.list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:0 4px 12px}.list-heading h3{font-size:1rem}.list-heading span{color:#6c766f;font-size:.78rem;font-weight:700}.problem-filter{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 10px;border:1px solid #bfc9c1;border-radius:6px;background:#fff;color:#31443a;cursor:pointer}.problem-filter[hidden]{display:none}.problem-filter input{width:17px;height:17px;margin:0;accent-color:#397b4e}.problem-filter span{color:inherit;font-size:.78rem}.problem-filter:has(input:focus-visible){outline:3px solid #d88b45;outline-offset:2px}.problem-list{border-top:1px solid #cbd3cc}.problem-row{display:grid;grid-template-columns:54px minmax(0,1fr) minmax(330px,auto) auto;gap:18px;align-items:center;min-height:132px;padding:20px 16px;border-bottom:1px solid #cbd3cc;background:#fff;cursor:pointer}.problem-row:hover{background:#f8faf7}.problem-row.locked{color:#7b837e;background:#f1f3f1;cursor:not-allowed}.problem-row.locked:hover{background:#f1f3f1}.problem-row.locked .problem-index,.problem-row.locked .problem-main p,.problem-row.locked .problem-main code,.problem-row.locked .problem-meta dt,.problem-row.locked .problem-meta dd,.problem-row.locked .problem-title-line h3{color:#8b928d}.problem-row:focus-visible{position:relative;z-index:1;outline:3px solid #d88b45;outline-offset:-3px}.problem-index{color:#829087;font-family:SFMono-Regular,Consolas,monospace;font-size:.88rem;font-weight:800}.problem-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.problem-title-line h3{font-size:1.05rem}.problem-main p{max-width:660px;margin-top:7px;color:#536159;font-size:.9rem;line-height:1.5}.problem-main code,.submission-table code{display:block;margin-top:8px;color:#6b776f;font-size:.76rem}.state-badge,.result-badge{display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;border-radius:6px;font-size:.73rem;font-weight:900}.state-badge{gap:6px}.lock-symbol{position:relative;display:inline-block;width:11px;height:9px;margin-top:4px;border:2px solid currentColor;border-radius:2px}.lock-symbol:before{content:"";position:absolute;left:50%;bottom:5px;width:7px;height:7px;transform:translate(-50%);border:2px solid currentColor;border-bottom:0;border-radius:6px 6px 0 0}.state-badge.ready,.result-badge.passed{background:#d9efdc;color:#225f34}.state-badge.locked,.result-badge.out-of-tokens,.result-badge.missing-device{background:#f5e5bd;color:#77521f}.state-badge.discovered{background:#dce8f2;color:#2f5876}.result-badge.failed,.result-badge.compile-error,.result-badge.system-error{background:#f3d8d4;color:#8a332d}.result-badge.running,.result-badge.queued{background:#e3e6e8;color:#4d5960}.problem-meta{display:grid;grid-template-columns:repeat(3,minmax(96px,1fr));gap:10px;margin:0}.problem-meta div{min-height:62px;padding:11px;border-left:3px solid #d9dfda}.problem-meta dd{margin:6px 0 0;font-size:.88rem;font-weight:800}.map-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 12px;border:2px solid #36533f;border-radius:7px;background:#fff;color:#284331;cursor:pointer;font-size:.78rem;font-weight:900;text-decoration:none;white-space:nowrap}.map-link:hover,.map-link:focus-visible{border-color:#b96f32;color:#8b4d20;outline:0}.problem-row.locked .map-link{color:#405849}.map-link.disabled{border-color:#aeb8b0;background:#e5e8e5;color:#7b837e;cursor:not-allowed}.map-link-arrow{font-size:1rem;line-height:1}.submission-table-wrap{overflow-x:auto;border-top:1px solid #cbd3cc}.submission-table{width:100%;border-collapse:collapse;background:#fff;text-align:left}.submission-table th{padding:12px 14px;border-bottom:1px solid #cbd3cc;color:#68736c;font-size:.72rem;text-transform:uppercase}.submission-table td{padding:16px 14px;border-bottom:1px solid #d9dedb;color:#46534b;font-size:.86rem;vertical-align:middle}.submission-table td strong{display:block;color:#1c2922}.submission-table td>span:not(.result-badge){display:block;margin-top:4px;color:#78827c;font-size:.72rem}.loading-state,.empty-state{margin:0;padding:32px 16px!important;color:#6e7972;text-align:center}.error-state{margin-top:24px;padding:20px;border:1px solid #d9aaa4;border-radius:8px;background:#fff4f1}.error-state p{margin-top:6px;color:#734641}.error-state button{min-height:38px;margin-top:14px;padding:0 14px;border:2px solid #263b30;border-radius:8px;background:#f0b35d;color:#17241d;font-weight:900}.solve-overlay{position:fixed;z-index:60;inset:0;display:grid;place-items:center;padding:24px;background:#15211ab8}.solve-dialog{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1180px,100%);max-height:min(880px,calc(100vh - 48px));overflow:hidden;border:2px solid #263b30;border-radius:8px;background:#fff;box-shadow:0 18px 50px #0a140e47}.solve-head{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:14px 18px 14px 24px;border-bottom:1px solid #cbd3cc;background:#f8faf7}.solve-head p,.solve-head h2,.solve-editor h3,.solve-editor p,.solve-output p{margin:0}.solve-head h2{margin-top:3px;font-size:1.3rem}.solve-close{display:grid;flex:0 0 auto;width:42px;height:42px;place-items:center;border:1px solid #aeb8b1;border-radius:7px;background:#fff;color:#2f3d35;font-size:1.6rem;line-height:1}.solve-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);min-height:0}.solve-statement,.solve-editor{min-width:0;overflow-y:auto}.solve-statement{padding:28px 30px 42px;border-right:1px solid #cbd3cc;color:#26332c;font-size:.94rem;line-height:1.65}.solve-statement h2{margin:0 0 16px;font-size:1.25rem}.solve-statement h3{margin:26px 0 8px;font-size:1rem}.solve-statement p{margin:10px 0}.solve-statement pre{overflow-x:auto;padding:14px;border-left:4px solid #70ad69;background:#f0f3f0;font-size:.85rem}.solve-statement code{font-family:SFMono-Regular,Consolas,monospace}.solve-statement table{width:100%;border-collapse:collapse}.solve-statement th,.solve-statement td{padding:8px 10px;border:1px solid #ccd4ce;text-align:left}.solve-editor{display:flex;flex-direction:column;background:#17201b}.solve-editor-head{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:52px;padding:10px 16px;border-bottom:1px solid #3b4941;color:#f7faf8}.solve-editor h3{font-size:.9rem}.solve-cost-summary{margin:3px 0 0;color:#aebbb3;font-size:.72rem}.solve-editor .draft-status{margin:3px 0 0;color:#aebbb3;font-size:.7rem;font-weight:800}.solve-editor .draft-status[data-tone=dirty],.solve-editor .draft-status[data-tone=saving]{color:#efd18a}.solve-editor .draft-status[data-tone=error]{color:#f3a59b}.submission-table tbody tr[data-submission-id]{cursor:pointer}.submission-table tbody tr[data-submission-id]:hover{background:#f4f8f4}.submission-table tbody tr[data-submission-id]:focus-visible{outline:3px solid #5c9d68;outline-offset:-3px}.solve-status{color:#c9d2cc;font-size:.75rem;font-weight:800}.solve-status.passed{color:#93dda1}.solve-status.failed{color:#f3b88a}.solve-rewards{margin:10px 0;padding:9px 11px;border-left:4px solid #78bc79;background:#eaf6e8;color:#21472d;font-weight:800}#solve-code-editor{flex:0 0 330px;width:100%;min-height:230px;border-bottom:1px solid #3b4941;overflow:hidden;background:#111813}#solve-code-editor .cm-editor{height:100%;background:#111813;color:#e7efe9;font:.84rem/1.6 SFMono-Regular,Consolas,monospace}#solve-code-editor .cm-scroller{overflow:auto;font-family:inherit}#solve-code-editor .cm-content{min-height:100%;padding:18px 4px;caret-color:#fff7dc}#solve-code-editor .cm-cursor,#solve-code-editor .cm-dropCursor{border-left-color:#fff!important}#solve-code-editor .cm-line{padding:0 10px}#solve-code-editor .cm-gutters{border-right:1px solid #3b4941;background:#0d1410;color:#819187}#solve-code-editor .cm-activeLine,#solve-code-editor .cm-activeLineGutter{background:#f7c95f14}#solve-code-editor .cm-selectionBackground,#solve-code-editor .cm-content ::selection{background:#7dbea357!important}#solve-code-editor:has(.cm-focused){box-shadow:inset 0 0 0 2px #d88b45}.solve-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-height:60px;padding:10px 16px;border-bottom:1px solid #3b4941}.solve-actions p{flex:1;color:#e0b986;font-size:.76rem;line-height:1.4}.solve-actions button{min-width:104px;min-height:38px;padding:0 16px;border:0;border-radius:7px;background:#f0b35d;color:#17241d;font-weight:900}.solve-actions button:disabled{cursor:not-allowed;opacity:.46}.solve-output{flex:1;min-height:150px;overflow-y:auto;padding:16px;color:#c9d2cc;font-size:.8rem;line-height:1.5}.solve-result-summary,.solve-case header{display:flex;justify-content:space-between;gap:16px}.solve-result-summary strong{color:#f4f7f5}.solve-estimate{margin-top:10px!important;color:#f1c779}.solve-test-line{position:relative;display:flex;justify-content:space-between;gap:8px;margin:18px 8px}.solve-test-line:before,.solve-test-line:after{content:"";position:absolute;z-index:0;top:50%;left:0;width:100%;height:3px;transform:translateY(-50%);background:#46534c}.solve-test-line:after{width:calc(var(--progress) * 100%);background:#70ad69}.solve-test-node{position:relative;z-index:1;display:grid;width:28px;height:28px;place-items:center;border:2px solid #65746b;border-radius:50%;background:#17201b;color:#c9d2cc;font-size:.7rem;font-weight:900}.solve-test-node.passed{border-color:#70ad69;background:#315f3b;color:#fff}.solve-test-node.failed{border-color:#dc765e;background:#7c3c31;color:#fff}.solve-cases{display:grid;gap:10px}.solve-case{padding:12px;border-left:3px solid #70ad69;background:#232e28}.solve-case.failed{border-left-color:#dc765e}.solve-case header span{color:#aebbb3}.solve-case dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0}.solve-case dl div{min-width:0;padding:8px;background:#18211c}.solve-case dt{color:#839188;font-size:.66rem;font-weight:800;text-transform:uppercase}.solve-case dd{overflow-wrap:anywhere;margin:5px 0 0;color:#edf2ee;font-family:SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.solve-input-load{border:0;padding:0;background:transparent;color:#b8ddb5;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}.solve-input-load:disabled{color:#839188;cursor:wait}@media(max-width:760px){.topbar{grid-template-columns:42px minmax(0,1fr) 42px}.problem-topbar-actions{grid-column:1 / -1;justify-content:space-between;padding-top:10px;border-top:1px solid #d9dedb}.player-resource{text-align:left}.workspace-head{grid-template-columns:1fr}.list-heading{align-items:flex-start}.view-toolbar{align-items:stretch;flex-direction:column}.problem-filter{align-self:flex-end;margin:8px 0}.summary-strip{width:100%}.problem-row{grid-template-columns:36px minmax(0,1fr);align-items:start}.problem-meta{grid-column:2}.map-link{grid-column:2;justify-self:start}.solve-overlay{place-items:start center;padding:10px}.solve-dialog{max-height:calc(100vh - 20px)}.solve-layout{grid-template-columns:1fr;overflow-y:auto}.solve-statement,.solve-editor{overflow:visible}.solve-statement{padding:22px 18px 30px;border-right:0;border-bottom:1px solid #cbd3cc}#solve-code-editor{flex-basis:270px}.submission-table,.submission-table tbody,.submission-table tr,.submission-table td{display:block;width:100%}.submission-table thead{display:none}.submission-table tr{padding:10px 14px;border-bottom:1px solid #cbd3cc}.submission-table td{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;padding:8px 0;border:0}.submission-table td:before{content:attr(data-label);color:#707b74;font-size:.72rem;font-weight:800;text-transform:uppercase}}@media(max-width:480px){.problem-workspace{width:min(100% - 20px,1120px);padding-top:28px}.summary-strip div{min-width:0;padding:12px 8px}.problem-row{gap:10px;padding:18px 10px}.problem-meta{grid-template-columns:1fr}.solve-head{min-height:68px;padding:10px 10px 10px 16px}.solve-head h2{font-size:1.05rem}.solve-case dl{grid-template-columns:1fr}.problem-list-tools>span{display:none}}
