:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0b0c0f;color:#f2f3f5;--bg: #0b0c0f;--surface: #17181c;--surface-raised: #202126;--surface-soft: #26282e;--border: #32343b;--muted: #9da2ad;--text: #f2f3f5;--green: #2db55d;--green-strong: #33c165;--yellow: #d6a032;--blue: #4b94ff;--red: #ef5757;--easy: #25b685;--medium: #e7a73a;--hard: #ef5b68}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}button,textarea,input,select{font:inherit}button{border:0}button:not(:disabled),select:not(:disabled),a[href],[role=button]:not([aria-disabled=true]){cursor:pointer}button:disabled,select:disabled,[aria-disabled=true]{cursor:not-allowed}.app-shell{min-width:320px;height:100%;display:flex;flex-direction:column;background:var(--bg);color:var(--text)}.topbar{position:relative;height:44px;display:flex;align-items:center;gap:8px;padding:0 10px;border-bottom:1px solid #24262c;background:#111216;flex:0 0 auto}.brand-block{display:flex;align-items:center;gap:8px;min-width:128px}.brand-logo{width:25px;height:25px;display:block;object-fit:contain;flex:0 0 auto}.brand-name{font-size:15px;font-weight:700}.nav-links{position:relative;display:flex;align-items:center;gap:2px}.nav-link,.icon-button,.panel-tool-button,.problem-menu-row,.tab-button,.case-chip,.run-button,.submit-button{cursor:pointer}.nav-link{height:30px;border-radius:6px;padding:0 10px;display:inline-flex;align-items:center;gap:7px;background:transparent;color:var(--muted);white-space:nowrap}.nav-link.active,.nav-link:hover{color:var(--text);background:#1d1f24}.question-controls{display:flex;align-items:center;gap:4px;margin-left:4px}.nav-icon-button{width:30px;height:30px}.question-title-button{max-width:220px;height:30px;padding:0 10px;border-radius:6px;background:transparent;color:#cdd1d8;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.question-title-button:hover{background:#1d1f24;color:var(--text)}.timer-chip{display:flex;align-items:center}.topbar-run-controls{position:absolute;top:6px;left:50%;z-index:5;transform:translate(-50%);height:32px;display:flex;align-items:center;overflow:hidden;border-radius:5px;background:#1c1d22}.problem-menu{position:absolute;top:39px;left:0;z-index:30;width:340px;max-height:min(460px,calc(100vh - 70px));overflow:auto;padding:8px;border:1px solid var(--border);border-radius:8px;background:#1b1c21;box-shadow:0 18px 45px #00000073}.problem-set-picker{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:7px 8px 10px;margin-bottom:5px;border-bottom:1px solid var(--border);color:var(--muted);font-size:12px}.problem-set-picker select{width:160px;height:30px;border:1px solid var(--border);border-radius:6px;background:#272a31;color:var(--text);padding:0 8px;font-size:13px}.problem-menu-empty{padding:18px 10px;color:var(--muted);font-size:13px}.problem-menu-row{width:100%;min-height:40px;border-radius:7px;padding:0 10px;display:grid;grid-template-columns:1fr auto 20px;align-items:center;gap:10px;background:transparent;color:var(--text);text-align:left}.problem-menu-row:hover,.problem-menu-row.selected{background:#272a31}.problem-menu-row .difficulty{min-height:22px;padding:0 8px}.topbar-spacer{flex:1}.problem-list-page{flex:1 1 auto;min-height:0;overflow:auto;background:#111}.problem-list-shell{width:min(100%,1280px);margin:0 auto;padding:28px 32px 52px}.problem-list-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.problem-list-header h1{margin:0;font-size:28px;line-height:1.1;letter-spacing:0}.problem-list-header p{margin:8px 0 0;color:var(--muted);font-size:14px}.problem-list-set-picker{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.problem-list-set-picker select,.filter-row select{height:36px;min-width:170px;border:1px solid #44464d;border-radius:9px;background:#2a2b30;color:var(--text);padding:0 34px 0 12px;outline:none}.problem-list-controls{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:12px;padding:0 0 22px;background:#111}.problem-search{width:min(320px,42vw);height:42px;display:flex;align-items:center;gap:10px;padding:0 16px;border-radius:999px;background:#2a2a2a;color:#a8a8a8}.problem-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:17px}.problem-search input::placeholder{color:#a9a9a9}.problem-round-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#2a2a2a;color:#b9b9b9;cursor:pointer}.problem-round-button:hover:not(:disabled),.problem-round-button.active{background:#393939;color:#f2f2f2}.problem-round-button:disabled{cursor:not-allowed;opacity:.45}.problem-list-menu-anchor{position:relative}.problem-list-popover{position:absolute;top:50px;left:0;z-index:20;min-width:230px;border:1px solid #454545;border-radius:10px;background:#2b2b2b;box-shadow:0 18px 45px #00000073;padding:8px}.problem-list-popover.compact{display:grid;gap:3px}.problem-list-popover.compact button{min-height:42px;display:flex;align-items:center;justify-content:space-between;border-radius:8px;padding:0 12px;background:transparent;color:#f0f0f0;text-align:left;cursor:pointer}.problem-list-popover.compact button:hover,.problem-list-popover.compact button.selected{background:#3b3b3b}.problem-list-popover.filters{width:min(560px,calc(100vw - 44px));display:grid;gap:14px;padding:18px}.filter-row{display:grid;grid-template-columns:120px 140px minmax(180px,1fr);align-items:center;gap:14px;color:#bcbcbc;font-size:16px;font-weight:700}.filter-row select{width:100%}.problem-filter-reset{height:38px;width:fit-content;display:inline-flex;align-items:center;gap:8px;border-radius:8px;padding:0 13px;background:#363636;color:#f2f2f2;cursor:pointer}.problem-list-spacer{flex:1}.problem-list-progress{display:inline-flex;align-items:center;gap:9px;color:#bdbdbd;font-size:18px;white-space:nowrap}.problem-progress-ring{width:26px;height:26px;transform:rotate(-90deg)}.problem-progress-ring circle{fill:transparent;stroke-width:10}.problem-progress-ring circle:first-child{stroke:#303030}.problem-progress-ring circle:last-child{stroke:var(--green);stroke-linecap:round}.problem-list-results{display:grid;gap:0;padding-bottom:80px}.problem-list-row{width:100%;min-height:66px;display:grid;grid-template-columns:54px minmax(0,1fr) 120px;align-items:center;gap:18px;border-radius:8px;padding:0 24px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.problem-list-row:nth-child(odd){background:#252525}.problem-list-row:hover,.problem-list-row.selected{background:#333}.problem-status-icon{justify-self:center}.problem-status-icon.solved{color:var(--green)}.problem-status-icon.attempted{width:17px;height:17px;border:2px solid #a3a3a3;border-radius:999px}.problem-status-icon.todo{width:17px;height:17px}.problem-list-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:21px;font-weight:700}.problem-list-difficulty.difficulty{justify-self:start;min-height:auto;padding:0;border-radius:0;background:transparent;font-size:20px;font-weight:800}.problem-list-empty{min-height:180px;display:grid;place-items:center;color:var(--muted);font-size:16px}.search-shell{height:30px;width:min(240px,20vw);min-width:150px;border-radius:6px;border:1px solid var(--border);color:#777d88;display:flex;align-items:center;gap:8px;padding:0 9px;font-size:13px}.error-banner{padding:9px 16px;color:#ffdede;background:#522;border-bottom:1px solid #7d3737;font-size:13px}.workspace{flex:1;min-height:0;display:flex}.solved-icon{color:var(--green)}.workbench{width:100%;min-width:0;min-height:0;display:grid;padding:7px;background:#0b0c0f}.panel{min-width:0;min-height:0;overflow:hidden;border:1px solid #2a2c33;border-radius:7px;background:var(--surface)}.problem-panel,.editor-panel,.console-panel{display:flex;flex-direction:column}.right-stack{min-width:0;min-height:0;display:flex;flex-direction:column}.resize-handle{width:8px;cursor:col-resize}.resize-handle-vertical{height:8px;cursor:row-resize}.resize-handle:hover,.resize-handle-vertical:hover{background:#252830}.tabbar{height:36px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 6px;border-bottom:1px solid #2a2c33;background:#1b1c21;overflow:hidden}.tabbar-tabs{min-width:0;height:100%;display:flex;align-items:stretch;gap:2px;overflow-x:auto}.tabbar-right{flex:0 0 auto;display:flex;align-items:center;padding-left:8px}.tab-button{min-width:max-content;display:inline-flex;align-items:center;gap:6px;padding:0 10px;background:transparent;color:var(--muted);border-bottom:2px solid transparent}.tab-button.active{color:var(--text);border-bottom-color:var(--green)}.tab-button:hover{color:var(--text)}.panel-toolbar{display:flex;align-items:center;gap:3px}.panel-tool-button{width:24px;height:24px;display:grid;place-items:center;border-radius:4px;background:transparent;color:#a2a7b0}.panel-tool-button:hover{background:#2a2d34;color:#f4f5f6}.panel-body,.console-body{min-height:0;flex:1}.scroll-area{overflow:auto}.description-view{padding:20px}.title-row{display:flex;align-items:flex-start;gap:12px}.title-row h1{margin:0;font-size:22px;line-height:1.25;letter-spacing:0}.meta-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.difficulty,.meta-pill{min-height:26px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border-radius:999px;background:#24262d;font-size:12px;font-weight:600}.difficulty-easy{color:var(--easy)}.difficulty-medium{color:var(--medium)}.difficulty-hard{color:var(--hard)}.meta-pill{color:#c5c9d0}.markdown{padding:20px;color:#d8dbe1;line-height:1.65}.description-view .markdown{padding:0}.markdown.compact{font-size:14px}.markdown h1,.markdown h2,.markdown h3{color:#f5f6f8;letter-spacing:0}.markdown h1{display:none}.markdown h2{margin:24px 0 10px;font-size:17px}.markdown p,.markdown ul,.markdown ol{margin:0 0 14px}.markdown code,.case-field code,.result-value pre,.case-edit-field textarea{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.markdown :not(pre)>code{padding:1px 5px;border-radius:5px;background:#282b31;color:#eef0f3}.markdown pre{overflow:auto;padding:12px;border-radius:7px;background:#101115;border:1px solid #2d3037}.markdown img.problem-image{display:block;max-width:100%;height:auto;margin:14px 0 18px;border:1px solid #2d3037;border-radius:7px;background:#fff!important;padding:6px}.hint-section{margin-top:20px}.topic-details{margin-top:18px;border-top:1px solid #2d3037;border-bottom:1px solid #2d3037;color:#d7dae0}.topic-details summary{min-height:42px;display:flex;align-items:center;cursor:pointer;font-weight:600}.topic-pill-row{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 14px}.topic-details:not([open]) .topic-pill-row{display:none}.hint-section h2{font-size:16px;letter-spacing:0}.hint-card{border-top:1px solid #2d3037;padding:10px 0}.hint-card summary{cursor:pointer;color:#d7dae0}.hint-card p{color:#b9bec7}.editor-toolbar{height:38px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 10px;border-bottom:1px solid #2a2c33;background:#1b1c21}.toolbar-left,.toolbar-right,.toolbar-tab,.console-actions{display:flex;align-items:center}.toolbar-left,.toolbar-right{gap:6px}.toolbar-tab{gap:6px;min-height:28px;border-radius:6px;background:transparent;padding:0 6px;color:var(--text);font-weight:600}.toolbar-tab:not(span):hover,.toolbar-tab.active{background:#24262d}.submission-result-tab{color:#f2f3f5}.toolbar-tab-close{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;background:transparent;color:#9da2ad}.toolbar-tab-close:hover{background:#33363e;color:#f2f3f5}.select-pill,.font-size-label{min-height:24px;display:inline-flex;align-items:center;border-radius:6px;padding:0 9px;background:#24262d;color:#c9cdd5;font-size:13px}.runtime-select-shell{position:relative}.runtime-select{min-height:24px;border:0;border-radius:6px;padding:0 26px 0 9px;background:#24262d;color:#c9cdd5;font:inherit;font-size:13px;outline:none}.runtime-select:focus-visible{box-shadow:0 0 0 1px #5f8cff}.runtime-warning{min-height:24px;display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:0 8px;background:#302224;color:#ffb5ba;font-size:12px;white-space:nowrap}.runtime-warning-dot{width:8px;height:8px;border-radius:999px;background:#ff4d57;box-shadow:0 0 0 2px #ff4d572e}.judge-status-note{flex:0 0 auto;padding:8px 12px;border-bottom:1px solid #3a3130;background:#241d1d;color:#f0c5b2;font-size:13px;line-height:1.35}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.icon-button{width:28px;height:28px;display:grid;place-items:center;border-radius:6px;background:transparent;color:#b8bdc7}.icon-button:hover{background:#2a2d34;color:#f4f5f6}.save-state{color:var(--muted);font-size:13px;min-width:62px;text-align:right}.save-saved{color:#8fae9b}.save-save-failed{color:var(--red)}.editor-frame{flex:1;min-height:0;background:#1e1e1e}.console-panel{min-height:190px}.console-actions{height:36px;flex:0 0 auto;border-bottom:1px solid #2a2c33;background:#1b1c21}.console-actions .tabbar{border-bottom:0;background:transparent;width:100%}.action-buttons{display:flex;align-items:center}.run-button,.submit-button{height:32px;border-radius:0;padding:0 10px;display:inline-flex;align-items:center;gap:7px;background:transparent}.run-button{color:#d9dce2}.run-button:hover{background:#2a2d34}.action-buttons.compact .run-button,.action-buttons.compact .submit-button{height:32px}.submit-button{color:var(--green-strong)}.submit-button:hover{background:#1e3328}.run-button:disabled,.submit-button:disabled{cursor:not-allowed;opacity:.55}.console-body{overflow:auto}.settings-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:#00000094;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.settings-dialog{width:min(880px,calc(100vw - 48px));height:min(520px,calc(100vh - 48px));display:grid;grid-template-columns:218px 1fr;overflow:hidden;border:1px solid #44464b;border-radius:14px;background:#343434;box-shadow:0 18px 55px #00000094}.settings-sidebar{padding:24px 18px;background:#242424;border-right:1px solid #383838}.settings-sidebar h2{margin:0 0 22px;font-size:24px;line-height:1.1;letter-spacing:0}.settings-nav{display:grid;gap:8px}.settings-nav-item{height:42px;border-radius:8px;display:flex;align-items:center;gap:10px;padding:0 13px;background:transparent;color:#b9b9b9;font-size:15px;font-weight:650;text-align:left}.settings-nav-item.active{background:#3a3a3a;color:#f2f2f2}.settings-content{position:relative;overflow:auto;padding:72px 30px 30px;background:#343434}.settings-close{position:absolute;top:18px;right:18px;width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:transparent;color:#c5c5c5;cursor:pointer}.settings-close:hover{color:#fff;background:#444}.settings-page{display:grid;gap:20px;color:#f2f2f2}.settings-page h3{margin:0;font-size:18px;line-height:1.2;letter-spacing:0}.settings-page-row.top{display:flex;align-items:center;justify-content:space-between}.settings-reset{min-width:84px;height:34px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#4a4a4a;color:#f4f4f4;font-size:14px;font-weight:650;cursor:pointer}.layout-choice-row{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:start;gap:28px}.layout-choice-grid{display:flex;gap:16px}.layout-card{width:120px;display:grid;gap:10px;justify-items:center;background:transparent;color:#bcbcbc;cursor:pointer}.layout-card.active{color:#f4f4f4}.layout-card strong{font-size:14px;font-weight:650}.layout-preview{width:112px;height:72px;border:1px solid #5f5f5f;border-radius:10px;background:#3d3d3d;position:relative}.layout-card.active .layout-preview{border-color:#f0f0f0}.toolbar-preview:before{content:"";position:absolute;left:9px;top:9px;width:10px;height:2px;background:#858585;box-shadow:0 5px #858585}.toolbar-preview span:nth-child(1){position:absolute;top:9px;left:40px;width:34px;height:10px;border-radius:9px;background:#f1f1f1}.toolbar-preview span:nth-child(2),.toolbar-preview span:nth-child(3){position:absolute;bottom:9px;width:44px;height:42px;border-radius:7px;background:#555}.toolbar-preview span:nth-child(2){left:8px}.toolbar-preview span:nth-child(3){right:8px}.editor-preview{overflow:hidden}.editor-preview svg{position:absolute;left:11px;top:10px;color:#2f9c44}.editor-preview:before{content:"";position:absolute;left:7px;right:7px;top:27px;height:38px;border-radius:7px;background:#4c4c4c}.editor-preview span{position:absolute;right:12px;bottom:12px;width:34px;height:10px;border-radius:9px;background:#9e9e9e}.editor-settings-page{gap:16px}.settings-control-row{min-height:36px;display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:24px;font-size:15px;font-weight:650}.settings-control-row>span{display:grid;gap:8px}.settings-control-row small{max-width:520px;color:#bdbdbd;font-size:13px;line-height:1.35;font-weight:500}.settings-control-row select{min-width:120px;height:34px;border:0;border-radius:7px;padding:0 34px 0 12px;background:#484848;color:#f4f4f4;font-size:14px;font-weight:650}.settings-control-row input[type=checkbox]{appearance:none;width:44px;height:24px;border-radius:999px;background:#5a5a5a;position:relative;cursor:pointer}.settings-control-row input[type=checkbox]:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#f2f2f2;transition:transform .15s ease}.settings-control-row input[type=checkbox]:checked{background:#1687ff}.settings-control-row input[type=checkbox]:checked:after{transform:translate(20px)}.settings-section-label{color:#bdbdbd}.shortcut-row{min-height:42px;display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:center;gap:20px;font-size:15px;font-weight:650}.shortcut-right{display:flex;align-items:center;gap:14px}.keycap-row{min-width:118px;display:flex;justify-content:flex-end;gap:6px}kbd{min-width:32px;height:30px;padding:0 9px;border:1px solid #545454;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;background:#393939;color:#f0f0f0;font-family:inherit;font-size:13px;font-weight:650}.switch{width:44px;height:24px;border-radius:999px;background:#5a5a5a;padding:3px;cursor:pointer}.switch span{width:18px;height:18px;border-radius:50%;display:block;background:#f2f2f2;transition:transform .15s ease}.switch.checked{background:#1687ff}.switch.checked span{transform:translate(20px)}.testcase-view,.result-view{padding:14px}.case-chip-row,.result-case-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:14px}.case-chip,.result-case-chip{min-height:30px;border-radius:8px;padding:0 13px;display:inline-flex;align-items:center;gap:7px;background:transparent;color:var(--muted)}.case-chip:hover,.case-chip.active{background:#2a2d34;color:var(--text)}.case-chip.add{color:#c7cad0}.case-chip-shell{min-height:30px;display:inline-flex;align-items:stretch;border-radius:8px;overflow:hidden}.case-chip-shell.active,.case-chip-shell:hover{background:#2a2d34}.case-chip-shell .case-chip.extra{border-radius:0;padding-right:8px}.case-chip-shell.active .case-chip.extra,.case-chip-shell:hover .case-chip.extra{background:transparent;color:var(--text)}.case-chip-delete{width:28px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#9da2ad}.case-chip-delete:hover{color:var(--red);background:#ef575721}.case-fields{display:grid;gap:12px}.case-field{display:grid;gap:6px}.case-field span{color:#cfd3da;font-size:13px}.case-field code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:11px 12px;border-radius:7px;background:#101115;border:1px solid #2d3037;color:#f2f4f7}.case-field.expected code{color:#cfe4ff}.case-edit-form,.editable-case-fields{display:grid;gap:12px}.case-edit-field{display:grid;gap:6px}.case-edit-field span{color:#cfd3da;font-size:13px}.case-edit-field input,.case-edit-field textarea{width:100%;border-radius:7px;border:1px solid #2d3037;outline:none;background:#101115;color:#f2f4f7}.case-edit-field input{min-height:38px;padding:0 12px}.case-edit-field textarea{min-height:96px;resize:vertical;padding:11px 12px;line-height:1.55}.verdict{color:#d9dce2}.verdict-accepted{color:var(--green-strong)}.verdict-wrong-answer,.verdict-runtime-error,.verdict-time-limit-exceeded,.verdict-internal-judge-error{color:var(--red)}.run-result-view{padding:18px 22px 30px;background:#242424}.submission-failure-report{min-height:100%;display:grid;align-content:start;gap:22px;padding:26px 22px 32px;background:#242424}.submission-failure-header{display:flex;align-items:center;justify-content:space-between;gap:18px}.submission-failure-header>div{min-width:0;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.submission-failure-header strong{font-size:26px;line-height:1.1}.submission-failure-header span{color:#a7a7a7;font-size:16px;font-weight:700}.use-testcase-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border-radius:8px;background:var(--green);color:#fff;font-size:14px;font-weight:800}.use-testcase-button:hover:not(:disabled){filter:brightness(1.08)}.use-testcase-button:disabled{cursor:not-allowed;background:#383838;color:#858585}.submission-failure-case{width:fit-content;max-width:100%;min-height:40px;display:inline-flex;align-items:center;gap:9px;padding:0 14px;border-radius:8px;background:#363636;color:var(--red);font-size:16px;font-weight:800}.submission-failure-case span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.run-result-summary{display:flex;align-items:baseline;gap:18px;margin:0 0 22px}.run-result-summary svg{align-self:center;color:currentColor}.run-result-summary strong{font-size:25px;line-height:1.1}.run-result-summary span{color:#a7a7a7;font-size:17px;font-weight:700}.result-case-chip{border-radius:9px;background:transparent;color:#9d9d9d;font-size:17px;font-weight:700}.result-case-chip:hover,.result-case-chip.active{background:#363636;color:#f4f4f4}.result-case-chip.passed svg,.result-case-chip.passed{color:var(--green-strong)}.result-case-chip.failed svg,.result-case-chip.failed{color:var(--red)}.result-case-chip.passed.active,.result-case-chip.failed.active{color:#f4f4f4}.result-detail{display:grid;gap:14px}.run-result-detail{gap:16px}.run-input-fields{display:grid;gap:14px}.run-field-section-label{color:#aaa;font-size:16px;font-weight:700}.submission-report{min-height:100%;display:flex;flex-direction:column;background:#242424}.submission-report-nav{height:56px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px;border-bottom:1px solid #383838;color:#b8b8b8;font-size:18px;font-weight:700}.submission-report-nav span{display:inline-flex;align-items:center;gap:12px}.submission-report-content{width:min(760px,100%);margin:0 auto;display:grid;gap:22px;padding:24px 22px 34px}.submission-report-header{display:flex;align-items:center;justify-content:space-between;gap:18px}.submission-report-header>div:first-child{display:flex;align-items:baseline;gap:12px;min-width:0}.submission-report-header strong{font-size:22px;line-height:1.1}.submission-report-header span{color:#a7a7a7;font-size:16px;font-weight:700}.submission-report-actions{display:flex;align-items:center;gap:10px}.submission-report-actions>span{min-height:38px;display:inline-flex;align-items:center;gap:10px;padding:0 16px;border-radius:8px;background:#343152;color:#9e73ff;font-size:17px;font-weight:800}.sparkle-icon{position:relative;width:20px;height:20px;display:inline-block;flex:0 0 auto}.sparkle-icon span{position:absolute;display:block;background:currentColor;transform:rotate(45deg)}.sparkle-icon span:nth-child(1){width:10px;height:10px;left:4px;top:5px}.sparkle-icon span:nth-child(2){width:5px;height:5px;right:1px;top:0}.sparkle-icon span:nth-child(3){width:5px;height:5px;right:0;bottom:2px}.complexity-report-card{display:grid;gap:22px;padding:18px;border:1px solid #454545;border-radius:10px;background:#242424}.complexity-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.complexity-summary-card{min-width:0;min-height:132px;display:grid;align-content:start;gap:14px;padding:18px 20px;border-radius:9px;background:transparent;color:#818181;text-align:left;opacity:.56}.complexity-summary-card:hover,.complexity-summary-card.active{background:#363636;color:#f2f2f2;opacity:1}.complexity-summary-title{display:inline-flex;align-items:center;gap:8px;color:inherit;font-size:18px;font-weight:800}.complexity-summary-card strong{color:inherit;font-size:25px;line-height:1.1}.complexity-estimate-label{font-size:13px;font-weight:800}.complexity-estimate-label.good,.complexity-detail-header strong.good{color:var(--green-strong)}.complexity-estimate-label.bad,.complexity-detail-header strong.bad{color:var(--red)}.complexity-estimate-label.neutral,.complexity-detail-header strong.neutral{color:#b8b8b8}.complexity-detail-card{display:grid;gap:16px;padding:16px;border-radius:8px;background:#202020;border:1px solid #383838}.complexity-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.complexity-detail-header>div{display:grid;gap:6px}.complexity-detail-header span,.complexity-estimate-box span{color:#9f9f9f;font-size:13px;font-weight:700}.complexity-detail-header strong{font-size:18px}.complexity-estimate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.complexity-estimate-box{min-width:0;display:grid;gap:9px;align-content:start;min-height:104px;padding:16px;border-radius:8px;background:#2b2b2b}.complexity-estimate-box strong{min-width:0;color:#f2f2f2;font-size:22px;line-height:1.1;overflow-wrap:anywhere}.complexity-estimate-box small{color:#a7a7a7;font-size:13px;font-weight:700}.complexity-estimate-box.expected{background:#292929}.complexity-formula{white-space:nowrap}.complexity-formula sup{font-size:.68em;line-height:0;vertical-align:super}.result-value{display:grid;gap:5px}.result-value-heading,.result-value-inline-label{color:#aaa;font-size:16px;font-weight:700}.result-value-inline-label{display:block;margin-bottom:10px}.result-value pre{margin:0;max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;border-radius:9px;background:#343434;border:0;color:#f2f4f7;font-size:16px;line-height:1.45}.output-diff{font-weight:800}.output-diff-actual{color:var(--red)}.output-diff-expected{color:var(--green-strong)}.submission-table{width:100%;min-width:0;display:grid;overflow:hidden;background:#242424}.submission-table-head,.submission-table-row{width:100%;min-width:0;display:grid;grid-template-columns:minmax(28px,.25fr) minmax(92px,1.2fr) minmax(74px,.75fr) minmax(74px,.8fr) minmax(74px,.8fr);align-items:center}.submission-table-head{min-height:48px;border-bottom:1px solid #3a3a3a;color:#aaa;font-size:18px;font-weight:700}.submission-table-head span{min-width:0;display:inline-flex;align-items:center;gap:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.submission-table-row{min-height:76px;text-align:left;background:transparent;color:#c8c8c8}.submission-table-row:hover,.submission-table-row.selected{background:#373737}.submission-table-row:nth-child(odd){background:#303030}.submission-table-row:nth-child(odd):hover,.submission-table-row:nth-child(odd).selected{background:#3a3a3a}.submission-index{justify-self:center;color:#b8b8b8;font-size:18px;font-weight:700}.submission-status-cell{min-width:0;display:grid;gap:4px}.submission-status-cell strong{font-size:18px;line-height:1.1}.submission-status-cell span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c2c2c2;font-size:15px;font-weight:700}.submission-language-pill{width:fit-content;max-width:100%;min-height:26px;display:inline-flex;align-items:center;border-radius:999px;padding:0 11px;background:#4a4a4a;color:#dedede;font-size:15px;font-weight:700;white-space:nowrap}.submission-metric{min-width:0;display:inline-flex;align-items:center;gap:8px;overflow:hidden;white-space:nowrap;color:#d0d0d0;font-size:17px;font-weight:700}.empty-state,.loading-block{min-height:180px;display:grid;place-items:center;align-content:center;gap:10px;color:var(--muted);text-align:center}.result-pending-state{min-height:220px;width:min(420px,90%);margin:0 auto}.judge-progress{width:100%;height:8px;overflow:hidden;border-radius:999px;background:#ffffff14;border:1px solid rgba(255,255,255,.08)}.judge-progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#22c55e,#4ade80);transition:width .18s ease}.judge-progress.indeterminate .judge-progress-fill{animation:progress-slide 1.1s ease-in-out infinite}.judge-progress-meta{width:100%;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:13px}.judge-progress-case{max-width:100%;overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.spin{animation:spin .8s linear infinite}@keyframes progress-slide{0%{transform:translate(-120%)}to{transform:translate(280%)}}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:980px){.topbar-run-controls{position:static;transform:none}.workbench{display:flex;flex-direction:column;gap:8px;overflow:auto}.problem-panel,.right-stack{min-height:620px}.resize-handle,.resize-handle-vertical{display:none}}@media(max-width:720px){.topbar{gap:6px}.brand-name,.search-shell,.nav-link:not(.active){display:none}.workbench{padding:6px}.editor-toolbar,.console-actions{height:auto;min-height:40px;align-items:flex-start;flex-wrap:wrap;padding:6px}.toolbar-right{margin-left:0}.settings-backdrop{padding:12px}.settings-dialog{width:calc(100vw - 24px);height:calc(100vh - 24px);grid-template-columns:1fr;grid-template-rows:auto 1fr}.settings-sidebar{border-right:0;border-bottom:1px solid #383838;padding:16px}.settings-sidebar h2{margin-bottom:12px;font-size:21px}.settings-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-nav-item{justify-content:center;padding:0 8px}.settings-content{padding:62px 18px 22px}.layout-choice-row,.settings-control-row,.shortcut-row{grid-template-columns:1fr}.layout-choice-grid{justify-content:flex-start}.submission-report-content,.run-result-view,.submission-failure-report{padding-inline:14px}.submission-report-header,.submission-failure-header,.complexity-detail-header{align-items:stretch;flex-direction:column}.complexity-summary-grid,.complexity-estimate-grid{grid-template-columns:1fr}.run-result-summary{align-items:flex-start;flex-direction:column;gap:8px}}
