@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap";:root{font-family:DM Sans,system-ui,sans-serif;color:#17243a;background:#f5f7fb}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{min-height:76px;padding:12px max(28px,calc((100vw - 1220px)/2));display:flex;align-items:center;gap:44px;background:#fff;border-bottom:1px solid #e2e7f0}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand strong,h1,h2,h3{font-family:Space Grotesk,system-ui,sans-serif}.brand strong{font-size:19px;letter-spacing:-.035em}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#2259b5;color:#fff;font-weight:700}.topbar nav{display:flex;gap:4px;flex:1}.topbar button{border:0;background:transparent;color:#68788f;padding:10px 13px;border-radius:8px;font-size:14px;font-weight:600}.topbar button:hover,.topbar button.active{color:#194d9e;background:#eaf1fc}.topbar button.primary{background:#2259b5;color:#fff}.account{display:flex;align-items:center;gap:10px;color:#40526a;font-weight:700}main{width:min(100% - 48px,1220px);margin:0 auto;padding:54px 0 90px;flex:1}.intro{margin-bottom:36px}.eyebrow{color:#2460bd;font-size:12px;font-weight:700;letter-spacing:.18em}.intro h1{font-size:clamp(36px,5vw,54px);letter-spacing:-.06em;margin:8px 0 12px;line-height:1.1}.intro p{color:#65758e;font-size:17px;line-height:1.5;margin:0}.panel{background:#fff;border:1px solid #e0e7f0;border-radius:16px;box-shadow:0 8px 30px #1532560b;overflow:hidden}.panel-head{padding:20px 24px;border-bottom:1px solid #edf1f6;display:flex;align-items:center;justify-content:space-between;gap:14px;font-weight:700}.panel-head>span:last-child:not(:first-child){color:#8a98a9;font-size:13px;font-weight:500}.panel-head button{background:transparent;border:0;color:#245aaf;font-weight:700}.list-row{display:flex;align-items:center;gap:20px;width:100%;padding:20px 24px;background:#fff;border:0;border-bottom:1px solid #edf1f6;text-align:left;color:#23334a}.list-row:hover{background:#f7faff}.list-row strong{flex:1}.list-row>span:last-child{color:#728199;font-size:13px}.position{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#ecf3ff;color:#2e62ad;font-weight:700}.empty{padding:34px 24px;color:#7c8a9f;margin:0}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:20px}.contest-card{padding:28px}.contest-card h2{margin:18px 0 12px;letter-spacing:-.04em}.contest-card p{color:#697a91;line-height:1.7}.pill{background:#eaf1fd;color:#245eaf;padding:7px 12px;border-radius:50px;font-size:12px;font-weight:700}.card-foot{display:flex;gap:10px;margin-top:26px}.primary,.secondary{border:1px solid transparent;border-radius:9px;padding:11px 16px;font-weight:700}.primary{background:#2259b5;color:#fff}.primary:hover{background:#18499c}.secondary{background:#f0f5fc;color:#2459a7}.secondary:hover{background:#e1ecfb}.small{padding:9px 14px!important}.solve-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,1.15fr);gap:20px;align-items:start}.statement .markdown{white-space:pre-wrap;padding:26px;font-size:15px;line-height:1.75;min-height:470px}.editor{display:flex;flex-direction:column}.editor select{border:1px solid #d7e1ee;border-radius:8px;background:#fff;padding:7px 12px}.editor textarea{min-height:425px;resize:vertical;border:0;outline:0;padding:23px;background:#111d2f;color:#eaf1ff;font:14px/1.6 Consolas,monospace}.editor-foot{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;color:#91a0b2;font-size:13px}.content-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:15px 22px;border-bottom:1px solid #edf1f6;font-size:14px}th{color:#7a8ba1;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.verdict{display:inline-block;padding:5px 9px;background:#eef1f6;border-radius:6px;font-size:12px;font-weight:700}.verdict.accepted{background:#e6f7ed;color:#198353}.message{padding:14px 18px;background:#fff5df;color:#815a12;border:1px solid #f0ddb2;border-radius:10px;margin-bottom:24px}.auth-panel{max-width:510px;padding:34px}.auth-panel h2,.admin-card h2{margin:0 0 24px}.auth-panel form,.admin-card{display:grid;gap:17px}label{display:grid;gap:7px;color:#4c5d76;font-size:14px;font-weight:700}input,textarea{width:100%;padding:12px 13px;border:1px solid #d2dce9;border-radius:8px;background:#fff;color:#17243a}input:focus,textarea:focus{outline:2px solid #9fc2f8;border-color:#4c86d1}.auth-panel .primary{margin-top:5px}.link{background:transparent;border:0;color:#2459a7;padding:16px 0 0;font-weight:700}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:20px}.admin-card{padding:28px;align-content:start}.admin-card textarea{min-height:85px;resize:vertical}.admin-card hr{width:100%;border:0;border-top:1px solid #e7edf4;margin:10px 0}footer{text-align:center;color:#9aa8b9;font-size:13px;padding:24px}@media(max-width:920px){.topbar{flex-wrap:wrap;gap:10px}.topbar nav{order:1;overflow:auto}.account{order:2;margin-left:auto}.solve-grid,.content-grid{grid-template-columns:1fr}}@media(max-width:540px){main{width:min(100% - 28px,1220px);padding-top:34px}.topbar{padding:12px 14px}.topbar nav{order:3;width:100%;flex-basis:100%}.intro h1{font-size:36px}.panel-head,.list-row{padding:16px}.solve-grid{display:block}.solve-grid .panel{margin-bottom:18px}th,td{padding:10px;font-size:12px}}.admin-portal{display:grid;gap:22px}.admin-help{margin:0;color:#718098;font-size:13px;line-height:1.55}.admin-card .admin-statement{min-height:310px;font:13px/1.6 Consolas,monospace}.admin-card select[multiple]{min-height:135px}.admin-actions{display:flex;flex-wrap:wrap;gap:10px}.admin-list .admin-row{display:flex;align-items:center;gap:18px;padding:16px 22px;border-bottom:1px solid #edf1f6;flex-wrap:wrap}.admin-row strong{min-width:140px}.admin-row code{margin-left:auto;color:#7989a0;font-size:12px;overflow-wrap:anywhere}.admin-row>span{color:#6f7f94;font-size:13px}.admin-sections,.problem-section-tabs{display:flex;gap:8px;border-bottom:1px solid #e0e7f0;padding:0 4px 12px}.admin-sections button,.problem-section-tabs button{border:0;background:#edf2f8;color:#66768d;border-radius:9px;padding:11px 17px;font-weight:700}.admin-sections button.active,.problem-section-tabs button.active{background:#2259b5;color:#fff}.mcq-admin-options{display:grid;gap:11px}.mcq-admin-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.mcq-admin-option .correct-option{display:flex;align-items:center;gap:7px;white-space:nowrap}.mcq-admin-option input[type=radio],.mcq-admin-option input[type=checkbox]{width:16px;height:16px;accent-color:#2259b5}.visibility-public{color:#168450!important;font-weight:700}.visibility-private{color:#9a5c13!important;font-weight:700}.mcq-workspace{width:100%;height:100%;overflow:auto;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:14px;padding:16px;background:#e9edf3}.mcq-question,.mcq-options-panel{padding:26px}.mcq-question h1{margin:18px 0 24px}.mcq-meta{display:flex;gap:9px;margin-top:22px}.mcq-meta span{padding:6px 10px;border-radius:20px;background:#edf3fc;color:#2c5ea5;font-size:12px;font-weight:700}.mcq-options-panel{align-self:start}.mcq-instruction{color:#75849a;margin:0 0 18px}.mcq-option{display:flex;align-items:center;gap:13px;padding:14px;margin-bottom:10px;border:1px solid #dce4ef;border-radius:11px;background:#fff;cursor:pointer}.mcq-option.selected{border-color:#4681d4;background:#f2f7ff}.mcq-option input{width:17px;height:17px;accent-color:#2259b5}.mcq-option-letter{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#edf3fb;color:#2459a7;font-weight:700}.mcq-submit{margin-top:12px}.mcq-result{margin-top:16px;padding:13px 15px;border-radius:9px;font-weight:700}.mcq-result.good{background:#e5f6ec;color:#167847}.mcq-result.bad{background:#fff0ed;color:#b53b2d}.contest-status-line{display:flex;align-items:center;gap:8px}.contest-card.live{border-color:#f06b62;box-shadow:0 0 0 1px #f06b62,0 0 24px #ed4b423d;animation:live-pulse 1.8s ease-in-out infinite}.contest-card.registered{border-color:#38a873;box-shadow:0 0 0 1px #38a873,0 0 24px #2eae7340}.live-label,.registered-label{padding:6px 10px;border-radius:30px;font-size:11px;font-weight:800;letter-spacing:.07em}.live-label{background:#fff0ed;color:#bf3e32}.registered-label{background:#e5f6ec;color:#167847}.contest-card.registered .registered-label{margin-left:auto}.contest-navigation{display:flex;gap:10px}.contest-navigation button{white-space:nowrap}@keyframes live-pulse{50%{box-shadow:0 0 0 1px #f06b62,0 0 34px #ed4b4270}}@media(max-width:850px){.mcq-workspace{grid-template-columns:1fr;height:auto;overflow:visible}.mcq-question,.mcq-options-panel{padding:20px}}@media(prefers-reduced-motion:reduce){.contest-card.live{animation:none}}.topbar{padding-left:clamp(22px,3vw,56px);padding-right:clamp(22px,3vw,56px)}main{width:calc(100% - clamp(44px,6vw,112px));max-width:none;padding-top:clamp(36px,4vw,64px)}.solve-grid{grid-template-columns:minmax(330px,.85fr) minmax(480px,1.3fr);align-items:stretch}.solve-grid>.panel{min-height:min(72vh,760px)}.editor{min-width:0}.editor-head{min-height:70px}.editor-actions{display:flex;align-items:center;gap:16px}.draft-note{font-size:12px;color:#8292a8;font-weight:500}.editor-toolbar{display:flex;align-items:center;gap:9px;padding:10px 16px;background:#172337;color:#c7d7ed;font:12px/1.4 Consolas,monospace;border-bottom:1px solid #33445e}.editor-dot{width:7px;height:7px;border-radius:50%;background:#65d6a2}.editor-toolbar-right{margin-left:auto;color:#8fa4bf}.code-area{display:flex;flex:1;min-height:470px;background:#101b2d;overflow:hidden}.line-numbers{flex:none;width:52px;max-height:100%;overflow:hidden;padding:22px 10px;text-align:right;background:#142137;color:#7085a4;border-right:1px solid #263650;font:14px/1.65 Consolas,monospace;-webkit-user-select:none;user-select:none}.editor .code-area textarea{flex:1;display:block;width:100%;min-width:0;min-height:470px;resize:vertical;padding:22px 24px;background:#101b2d;color:#e6f1ff;caret-color:#8bc4ff;border:0;border-radius:0;font:14px/1.65 Consolas,monospace;-moz-tab-size:4;tab-size:4;white-space:pre;overflow:auto}.editor .code-area textarea:focus{outline:0}.editor-foot{border-top:1px solid #e7edf4;gap:12px}.statement .markdown{min-height:520px;max-width:85ch}@media(max-width:1000px){.solve-grid{grid-template-columns:1fr}.solve-grid>.panel{min-height:0}.statement .markdown{min-height:180px}.code-area,.editor .code-area textarea{min-height:380px}}@media(max-width:600px){main{width:calc(100% - 28px)}.topbar{padding:12px 14px}.editor-toolbar-right,.draft-note{display:none}.editor-head{min-height:60px}.code-area,.editor .code-area textarea{min-height:340px}}.workspace-open{height:100vh;overflow:hidden;background:#e9edf3}.workspace-open .topbar{height:62px;min-height:62px;flex:none;padding-top:6px;padding-bottom:6px}.workspace-open main{width:100%;max-width:none;padding:0;margin:0;min-height:0;display:flex;flex:1}.workspace-open footer{display:none}.solve-workspace{display:grid;grid-template-columns:minmax(320px,42%) minmax(0,1fr);gap:8px;padding:8px;width:100%;min-width:0;height:100%}.workspace-left,.workspace-right{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid #dbe2eb;border-radius:11px;overflow:hidden;box-shadow:0 1px 5px #192a4312}.workspace-tabs{display:flex;flex:none;gap:3px;min-height:49px;padding:0 12px;border-bottom:1px solid #e7ebf1}.workspace-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#67768b;font-size:13px;font-weight:700;padding:0 13px;white-space:nowrap}.workspace-tabs button:hover{color:#304b6e}.workspace-tabs button.selected{color:#2558a8;border-bottom-color:#2962bb}.workspace-tabs button span{margin-left:5px}.workspace-left-body{flex:1;min-height:0;overflow:auto}.workspace-description,.workspace-submissions,.workspace-testcase{padding:26px 32px 38px}.workspace-back{padding:0;border:0;background:none;color:#57708e;font-size:13px;font-weight:700}.workspace-back:hover{color:#2459aa}.problem-kicker{margin-top:34px;color:#3267b7;font-size:11px;letter-spacing:.16em;font-weight:800}.workspace-description h1{font-size:clamp(29px,3vw,39px);line-height:1.12;letter-spacing:-.05em;margin:9px 0 18px}.problem-meta{display:flex;gap:8px}.problem-meta span{font-size:12px;font-weight:700;color:#47714f;background:#eaf7ed;padding:6px 10px;border-radius:20px}.problem-meta span+span{color:#5e7087;background:#eef2f7}.statement-text{white-space:pre-wrap;font-size:15px;line-height:1.75;max-width:70ch;margin-top:38px;color:#2b394d}.problem-hint{margin-top:44px;padding:18px;border:1px solid #dbe8f7;border-radius:10px;background:#f6faff;color:#60748e;font-size:13px;line-height:1.55}.workspace-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.workspace-section-title h2,.workspace-section-title h3{font-size:18px;margin:0;letter-spacing:-.03em}.workspace-section-title button{border:0;background:none;color:#2b62b1;font-weight:700}.workspace-section-title>span{font-size:12px;color:#8391a3}.workspace-empty{margin:35px 0;color:#8291a6;font-size:14px}.submission-list{margin:22px -32px 0;border-top:1px solid #edf1f5}.submission-row{width:100%;display:flex;align-items:center;gap:14px;text-align:left;border:0;border-bottom:1px solid #edf1f5;background:#fff;padding:16px 26px}.submission-row:hover,.submission-row.active{background:#f5f8fd}.submission-row strong{font-size:14px;display:block}.submission-row small{display:block;color:#8a98a9;margin-top:5px;font-size:12px}.submission-arrow{margin-left:auto;color:#8b9aac;font-size:22px}.status-mark{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:800}.status-mark.good{color:#15945b;background:#e7f7ee}.status-mark.bad{color:#c53843;background:#fdecef}.status-mark.waiting{color:#63758c;background:#eef2f6}.good{color:#188653}.bad{color:#c53b46}.waiting{color:#718299}.submission-detail{padding-top:26px;border-top:1px solid #e6ecf3;margin-top:20px}.submission-detail p{font-size:13px;color:#7c8ba0}.submission-detail .cm-editor{border-radius:0 0 9px 9px}.submitted-code-head{background:#1c293c;color:#dce8f6;font:12px Consolas,monospace;padding:12px 16px;margin-top:22px;border-radius:9px 9px 0 0}.result-pill{font-size:11px;font-weight:800;padding:6px 9px;border-radius:20px}.result-pill.good{background:#e6f8ed}.result-pill.bad{background:#fdecef}.result-pill.waiting{background:#eef2f6}.testcase-help{font-size:13px;line-height:1.6;color:#77879a;margin:18px 0 24px}.workspace-testcase label{font-size:13px;color:#304258;margin:16px 0 0}.workspace-testcase textarea{min-height:115px;resize:vertical;font:13px/1.55 Consolas,monospace;border:1px solid #d8e0eb;background:#fbfcfe;margin-top:8px}.optional{font-size:11px;color:#94a2b2;font-weight:500}.run-result{margin-top:28px;border:1px solid #dfe6ee;border-radius:10px;overflow:hidden}.run-result.good{border-color:#afe2c5}.run-result.bad{border-color:#efbac0}.run-result-head{display:flex;justify-content:space-between;padding:14px 16px;background:#f2f5f9}.run-result.good .run-result-head{background:#e9f9f0}.run-result.bad .run-result-head{background:#fff0f1}.run-result-head span{font-size:12px;color:#7c8da3}.output-label{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#74849a;padding:14px 16px 0}.run-result pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 Consolas,monospace;color:#293c56;margin:8px 16px 16px;background:#f8fafc;border:1px solid #e7ecf2;padding:12px;border-radius:7px}.code-panel-head{height:49px;flex:none;border-bottom:1px solid #e8edf3;display:flex;align-items:center;justify-content:space-between;padding:0 17px;color:#29384d;font-size:13px}.code-panel-head>div{display:flex;align-items:center;gap:9px}.editor-symbol{color:#3970c0;font-size:19px}.code-panel-head select{width:auto;border:1px solid #dae2ed;border-radius:7px;background:#f8fafc;color:#33465e;padding:6px 10px;font-size:12px;font-weight:700}.code-file-tab{height:39px;flex:none;display:flex;align-items:center;gap:8px;padding:0 18px;background:#202b3c;color:#d8e4f4;font:12px Consolas,monospace;border-bottom:1px solid #364256}.file-dot{width:7px;height:7px;background:#67dba1;border-radius:50%}.saved-label{margin-left:auto;color:#90a3bb;font:11px DM Sans,sans-serif}.workspace-editor{flex:1;min-height:0;overflow:hidden;background:#282c34}.workspace-editor>div,.workspace-editor .cm-editor{height:100%}.workspace-editor .cm-scroller{overflow:auto}.workspace-editor .cm-content{min-height:100%;font:14px/1.65 Consolas,Courier New,monospace}.workspace-editor .cm-gutters{background:#20252e;color:#7e899c;border-right:1px solid #333b49}.workspace-editor .cm-activeLine{background:#ffffff0b}.workspace-actions{min-height:64px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 17px;border-top:1px solid #e2e8f0;background:#fff}.workspace-actions>span{color:#8795a8;font-size:11px}.workspace-actions>div{display:flex;gap:8px}.run-button,.submit-button{border-radius:7px;padding:9px 19px;font-size:13px;font-weight:800}.run-button{color:#466078;background:#f0f4f8;border:1px solid #dce4ed}.run-button:hover{background:#e5edf6}.submit-button{color:#fff;background:#238657;border:1px solid #238657}.submit-button:hover{background:#19754a}.workspace-actions button:disabled{opacity:.55}.workspace-notice{padding:8px 17px;font-size:12px;color:#855819;background:#fff4dd;border-top:1px solid #f1e1bf}@media(max-width:900px){.workspace-open{height:auto;min-height:100vh;overflow:visible}.workspace-open main{display:block}.solve-workspace{display:flex;flex-direction:column;height:auto;min-height:calc(100vh - 100px)}.workspace-left{min-height:300px;max-height:48vh}.workspace-right{min-height:66vh}.workspace-editor{min-height:380px}.workspace-open .topbar{height:auto;min-height:62px}.workspace-description,.workspace-submissions,.workspace-testcase{padding:22px}.submission-list{margin-left:-22px;margin-right:-22px}}@media(max-width:540px){.solve-workspace{padding:6px;gap:6px}.workspace-tabs{padding:0 5px}.workspace-tabs button{padding:0 8px;font-size:12px}.workspace-description,.workspace-submissions,.workspace-testcase{padding:20px}.workspace-left{max-height:52vh}.workspace-actions{flex-wrap:wrap}.workspace-actions>span{order:2}.workspace-actions>div{margin-left:auto}.workspace-editor{min-height:440px}}.workspace-open .topbar button{font-size:15px}.workspace-tabs{min-height:56px}.workspace-tabs button{font-size:15px;padding:0 16px}.workspace-description,.workspace-submissions,.workspace-testcase{padding:30px 36px 48px}.workspace-description h1{font-size:clamp(32px,3vw,42px);margin:20px 0 30px}.workspace-back{font-size:15px}.statement-section{padding:0 0 26px;margin:0 0 27px;border-bottom:1px solid #e7ebf0}.statement-section:last-child{border:0}.statement-section h2{font:700 20px/1.3 Space Grotesk,system-ui,sans-serif;letter-spacing:-.025em;color:#1e2d42;margin:0 0 16px}.statement-block p,.example-card p{font-size:16px;line-height:1.75;color:#34445b;margin:0 0 10px}.statement-block+.statement-block{margin-top:14px}.statement-sections code{font:600 15px/1.5 Consolas,monospace;background:#f0f3f7;color:#25374f;padding:2px 6px;border-radius:5px}.example-card{background:#f7f9fc;border:1px solid #e1e8f0;border-radius:10px;padding:18px 20px;margin:14px 0}.example-card h3{font-size:16px;margin:0 0 12px}.example-field{display:flex;gap:16px;align-items:baseline}.example-field strong{min-width:56px;color:#263a52}.example-field code{background:#e9eef5}.code-panel-head{height:56px;font-size:16px}.code-panel-head select{font-size:14px}.code-file-tab{height:44px;font-size:14px}.saved-label{font-size:13px}.workspace-editor .cm-content{font-size:16px;line-height:1.7}.workspace-editor .cm-gutters{font-size:14px}.workspace-actions{min-height:72px}.workspace-actions>span{font-size:13px}.run-button,.submit-button{font-size:15px;padding:10px 22px}.workspace-section-title h2,.workspace-section-title h3{font-size:20px}.testcase-help,.workspace-testcase label,.workspace-empty,.submission-row strong,.submission-detail p,.workspace-testcase textarea,.run-result pre{font-size:15px}.run-result-head strong{font-size:17px}.run-result-head span,.output-label,.submission-row small{font-size:13px}.run-result pre{line-height:1.6}.workspace-notice{font-size:14px}@media(max-width:900px){.workspace-description,.workspace-submissions,.workspace-testcase{padding:24px}.workspace-left{max-height:52vh}}@media(max-width:540px){.workspace-description,.workspace-submissions,.workspace-testcase{padding:20px}.workspace-tabs button{font-size:13px;padding:0 8px}.workspace-actions>span{font-size:12px}.workspace-editor .cm-content,.statement-block p,.example-card p{font-size:15px}}.code-head-actions{display:flex;align-items:center;gap:10px}.reset-code{border:0;background:transparent;color:#53677f;font-size:14px;font-weight:700;padding:7px 9px;border-radius:7px}.reset-code:hover{background:#eef3f8;color:#2459a7}.workspace-actions kbd{font:600 12px/1.3 DM Sans,sans-serif;color:#40536d;background:#f0f3f7;border:1px solid #e0e5eb;border-radius:5px;padding:4px 6px}.shortcut-separator{padding:0 9px;color:#a4afbe}.restore-code{border:1px solid #cbdcf0;background:#edf5ff;color:#235ba7;border-radius:7px;padding:9px 13px;font-size:14px;font-weight:700;margin:5px 0 0}.restore-code:hover{background:#deedff}.example-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 20px}.example-tabs button{border:1px solid #dce4ed;background:#f4f7fa;color:#52647b;border-radius:7px;padding:9px 15px;font-size:14px;font-weight:700}.example-tabs button.selected{background:#eaf2fd;color:#235bb0;border-color:#9fc0ed}@media(max-width:540px){.code-head-actions{gap:3px}.reset-code{font-size:12px;padding:6px}.code-panel-head select{font-size:12px}.workspace-actions kbd{font-size:11px}}.example-tabs button.good{background:#e9f8ef;color:#16784a;border-color:#9edbb9}.example-tabs button.bad{background:#fff0f1;color:#b72f3d;border-color:#efb9c0}.example-tabs button.selected{box-shadow:0 0 0 2px #afcafa}.example-tabs .add-case{margin-left:auto;background:#fff;color:#2e62a9;border-style:dashed}.example-tabs .add-case:disabled{opacity:.45}.case-controls{display:flex;align-items:center;justify-content:space-between;color:#687b91;font-size:13px;font-weight:700;margin:4px 0 18px}.case-controls button{border:0;background:transparent;color:#b23c48;font-size:13px;font-weight:700;padding:5px}.case-controls button:disabled{color:#a3afbd}.case-error{margin-top:20px;padding:14px;border-radius:8px;background:#fff0f1;color:#a92d3b;font-size:14px}:root{font-size:17px;color:#1d2b3e;background:#f3f6fa}.app{background:#f3f6fa}.topbar{min-height:74px;border-bottom:1px solid #dce4ee;box-shadow:0 2px 14px #223b5908}.brand strong{font-size:22px}.brand-mark{width:40px;height:40px;font-size:18px}.topbar button,.workspace-open .topbar button,.account{font-size:16px}main{width:min(100% - 64px,1380px);padding:60px 0 100px}.intro{margin-bottom:34px}.eyebrow{font-size:13px}.intro h1{font-size:clamp(42px,5vw,64px);margin:12px 0 14px}.intro p{font-size:19px;color:#56677d}.panel{border-color:#dce4ee;border-radius:18px;box-shadow:0 12px 32px #24446a0c}.panel-head{padding:23px 28px;font-size:18px}.panel-head>span:last-child:not(:first-child){font-size:15px;color:#66788e}.list-row{padding:23px 28px;gap:22px;min-height:92px}.list-row:hover{background:#f4f8fd}.position{width:44px;height:44px;border-radius:11px;font-size:16px}.problem-row-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.problem-row-copy strong{font-size:20px;letter-spacing:-.025em;color:#20324a}.problem-row-copy small{font-size:15px;font-weight:400;color:#697c91;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-row .open-arrow{font-size:15px;font-weight:700;color:#2c62b1}.primary,.secondary{font-size:16px;padding:12px 18px}.cards{gap:24px}.contest-card{padding:32px}.contest-card h2{font-size:26px}.contest-card p{font-size:16px}.pill{font-size:13px}.auth-panel{max-width:560px;padding:40px}.auth-panel h2,.admin-card h2{font-size:27px}label{font-size:16px;gap:9px}input,textarea,select{font-size:16px}.auth-panel input,.admin-card input,.admin-card textarea{padding:14px 16px}.admin-card{padding:32px}.admin-card label:has(textarea):first-of-type textarea{min-height:210px}.link,.empty,.message{font-size:16px}table th{font-size:14px}table td{font-size:16px;padding:17px 22px}.verdict{font-size:14px}.workspace-tabs button{font-size:16px}.workspace-description h1{font-size:clamp(35px,3.2vw,45px)}.statement-section h2{font-size:23px}.statement-block p,.example-card p{font-size:18px;line-height:1.75}.statement-sections code{font-size:16px}.example-card h3{font-size:18px}.workspace-back{font-size:16px}.workspace-section-title h2,.workspace-section-title h3{font-size:23px}.workspace-section-title>span{font-size:15px}.workspace-testcase label,.workspace-empty,.submission-row strong,.submission-detail p{font-size:17px}.workspace-testcase textarea,.run-result pre{font-size:16px}.example-tabs button{font-size:16px;padding:10px 16px}.case-controls,.case-controls button,.optional{font-size:15px}.run-result-head strong{font-size:19px}.run-result-head span,.output-label,.submission-row small{font-size:15px}.output-label{letter-spacing:.04em}.run-result pre{padding:15px}.restore-code{font-size:16px}.submitted-code-head{font-size:14px}.workspace-notice{font-size:16px}@media(max-width:900px){main{width:calc(100% - 36px);padding-top:38px}.workspace-tabs button{font-size:15px}.workspace-description,.workspace-submissions,.workspace-testcase{padding:24px}.statement-block p,.example-card p{font-size:17px}}@media(max-width:540px){main{width:calc(100% - 24px)}.topbar{padding:12px}.brand strong{font-size:19px}.topbar button,.workspace-open .topbar button{font-size:15px}.intro h1{font-size:39px}.intro p{font-size:17px}.panel-head,.list-row{padding:18px}.problem-row-copy strong{font-size:18px}.problem-row-copy small,.list-row .open-arrow,.workspace-tabs button{font-size:14px}.workspace-description,.workspace-submissions,.workspace-testcase{padding:20px}.statement-section h2{font-size:21px}.statement-block p,.example-card p{font-size:17px}.workspace-testcase label,.submission-row strong{font-size:16px}}.app>footer{display:none}.account .account-profile{display:flex;align-items:center;gap:9px;color:#29405d;font-weight:800}.account-avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#e5efff;color:#235ab2;font-size:14px}.profile-page{max-width:1060px;margin:0 auto}.profile-hero{display:flex;align-items:center;gap:26px;padding:36px 40px;background:linear-gradient(110deg,#fff 60%,#eef5ff)}.profile-avatar{width:86px;height:86px;border-radius:20px;background:#255db5;color:#fff;display:grid;place-items:center;font:700 42px Space Grotesk,sans-serif;flex:none}.profile-eyebrow{font-size:12px;letter-spacing:.15em;color:#3066b9;font-weight:800}.profile-hero h1{font-size:38px;margin:5px 0}.profile-hero p{margin:0;color:#63758d;font-size:16px}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0}.profile-stats>.panel{padding:24px 28px;display:flex;flex-direction:column;gap:5px}.profile-stats strong{font:700 34px Space Grotesk,sans-serif;color:#213b61}.profile-stats span{color:#718198;font-size:15px}.profile-activity{padding-bottom:20px}.profile-tabs{display:flex;align-items:center;gap:8px;padding:0 28px;border-bottom:1px solid #e6ebf2}.profile-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:18px 15px;font-weight:800;font-size:16px;color:#748399}.profile-tabs button.active{color:#245cae;border-bottom-color:#2868c6}.profile-tabs .profile-refresh{margin-left:auto;font-size:14px;color:#3368af}.profile-activity h2{font-size:23px;margin:27px 30px 16px}.profile-submission-list{border-top:1px solid #edf1f5}.profile-submission{display:flex;align-items:center;gap:16px;width:100%;padding:18px 30px;border:0;border-bottom:1px solid #edf1f5;background:#fff;text-align:left}.profile-submission:hover,.profile-submission.selected{background:#f6f9fe}.profile-status{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;flex:none;font-weight:800}.profile-status.good{background:#e5f7ed}.profile-status.bad{background:#fdecef}.profile-status.waiting{background:#edf2f6}.profile-submission-main{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.profile-submission-main strong{font-size:17px;color:#273a54}.profile-submission-main small{font-size:14px;color:#7b8a9e}.profile-verdict{font-size:14px;font-weight:800;text-align:right}.profile-source{margin:25px 30px 10px;border:1px solid #dce4ee;border-radius:10px;overflow:hidden}.profile-source-head{display:flex;justify-content:space-between;padding:14px 18px;font-size:15px;background:#f5f8fc;color:#3b506c}.profile-source pre{margin:0;padding:18px;background:#222a38;color:#e7eef8;overflow:auto;font:14px/1.6 Consolas,monospace}.profile-see-all{margin:20px 30px 4px;border:0;background:transparent;color:#245db2;font-size:15px;font-weight:800}@media(max-width:650px){.account .account-profile{font-size:14px}.profile-hero{padding:25px;gap:16px}.profile-avatar{width:62px;height:62px;font-size:30px;border-radius:15px}.profile-hero h1{font-size:29px}.profile-hero p{font-size:14px}.profile-stats{gap:8px}.profile-stats>.panel{padding:17px 12px}.profile-stats strong{font-size:26px}.profile-stats span{font-size:12px}.profile-tabs{padding:0 12px}.profile-tabs button{font-size:14px;padding:16px 10px}.profile-activity h2{margin:20px;font-size:21px}.profile-submission{padding:15px;gap:10px}.profile-submission-main strong{font-size:15px}.profile-submission-main small,.profile-verdict{font-size:12px}.profile-source{margin:20px 15px}}.profile-tabs>strong{padding:18px 15px;color:#245cae;font-size:17px;border-bottom:3px solid #2868c6}.profile-pagination{display:flex;align-items:center;justify-content:center;gap:18px;padding:22px}.profile-pagination button{border:1px solid #d9e3ef;background:#f6f9fd;color:#285ca7;border-radius:8px;padding:9px 14px;font-weight:700;font-size:14px}.profile-pagination button:disabled{opacity:.4;cursor:not-allowed}.profile-pagination span{font-size:14px;color:#63758c;font-weight:700}.profile-submission{color:inherit;text-decoration:none}.submission-page{max-width:1100px;margin:0 auto;padding:38px;overflow:hidden}.submission-back{color:#2863b4;text-decoration:none;font-size:16px;font-weight:700}.submission-page h1{font-size:36px;margin:20px 0 28px}.submission-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:24px;background:#f6f9fd;border:1px solid #e2eaf3;border-radius:12px}.submission-facts>div{display:flex;flex-direction:column;gap:7px}.submission-facts span{font-size:14px;color:#73849b}.submission-facts strong,.submission-facts a{font-size:17px;font-weight:700}.submission-facts a{color:#2762b7;text-decoration:none}.submission-facts a:hover{text-decoration:underline}.submission-code-title{display:flex;justify-content:space-between;gap:15px;margin-top:30px;padding:16px 20px;border-radius:10px 10px 0 0;background:#1d293b;color:#e4eefb;font-size:16px}.submission-code-title span{color:#9eafc6}.submission-page .cm-editor{border-radius:0 0 10px 10px;overflow:hidden;font-size:15px}.submission-page .cm-content{padding:15px 0;min-height:230px}@media(max-width:650px){.submission-page{padding:22px}.submission-facts{grid-template-columns:1fr}.submission-page h1{font-size:29px}}.failed-test-case{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;padding:15px 18px;border:1px solid #efb9c0;border-radius:9px;background:#fff0f1;color:#a92d3b;font-size:15px}.failed-test-case span{font-weight:700}.public-failed-case{margin-top:24px}.submission-summary{color:#718198;font-size:14px}.submission-view .cm-editor{margin-top:0}.delete-contest{flex:none;border:1px solid #efd7d8;border-radius:8px;background:#fff7f7;color:#a64149;padding:7px 10px;font-size:11px;font-weight:700}.delete-contest:hover:not(:disabled){border-color:#e4a8ad;background:#fff0f1}.delete-contest:disabled{color:#9aa5b4;border-color:#e4e8ee;background:#f6f7f9}.contest-back-button{display:inline-flex;align-items:center;gap:8px;margin:0 0 20px;padding:9px 13px;border:1px solid #dce5f0;border-radius:9px;background:#fff;color:#315f9e;font-size:14px;font-weight:700}.contest-back-button:hover{background:#edf4fd}.contest-problem-copy{display:grid;gap:5px;flex:1}.contest-problem-copy small{color:#7a899d;font-size:12px}.ranking-action{padding:9px 14px!important}.contest-ranking{max-width:1000px;margin:0 auto}.ranking-table-wrap{overflow-x:auto}.contest-ranking table{min-width:520px}.rank-number{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#edf3fc;color:#285b9f;font-weight:800}.ranking-user-link{color:#275da8;font-weight:700;text-decoration:none}.ranking-user-link:hover{text-decoration:underline}.contest-problem-panel .list-row:last-child{border-bottom:0}.problem-catalog{overflow:hidden}.problem-catalog-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:30px 28px 24px}.problem-catalog-intro h2{font-size:27px;letter-spacing:-.045em;margin:6px 0}.problem-catalog-intro p{margin:0;color:#718098;font-size:14px}.admin-kicker{color:#3868ac;font-size:10px;font-weight:800;letter-spacing:.16em}.catalog-total{flex:none;padding:8px 12px;border:1px solid #e4eaf2;border-radius:20px;color:#6a7a91;font-size:12px;font-weight:700}.problem-section-tabs{margin:0 28px}.problem-section-tabs button{display:flex;align-items:center;gap:9px}.problem-section-tabs button span{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:20px;background:#ffffff65;font-size:11px}.problem-tools{display:flex;justify-content:space-between;align-items:end;gap:14px;padding:20px 28px 15px}.problem-search{display:flex;align-items:center;gap:9px;width:min(100%,480px);height:44px;padding:0 12px;border:1px solid #dce4ef;border-radius:10px;background:#fff;color:#74839a}.problem-search:focus-within,.problem-filter select:focus{border-color:#75a0dd;box-shadow:0 0 0 3px #e8f1ff;outline:0}.problem-search>span{font-size:22px;line-height:1}.problem-search input{height:100%;padding:0;border:0;outline:0;box-shadow:none!important;font-size:14px}.problem-filter{display:grid;gap:5px;min-width:180px;color:#718098;font-size:11px;font-weight:700}.problem-filter select,.admin-card select{min-height:42px;padding:9px 12px;border:1px solid #dce4ef;border-radius:9px;background:#fff;color:#26364b}.problem-catalog .panel-head{padding:14px 28px;background:#fafbfd;font-size:13px}.problem-list{padding:0 16px 12px}.problem-card-row{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto 66px;align-items:center;gap:15px;padding:16px 14px;border:0;border-bottom:1px solid #edf1f6;background:#fff;text-align:left;color:#22334a;transition:background .15s ease,transform .15s ease}.problem-card-row:hover{background:#f8faff;transform:translate(2px)}.problem-index{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eff4fb;color:#5c7190;font-size:12px;font-weight:800}.problem-row-copy{display:grid;gap:4px;min-width:0}.problem-row-copy strong{font-size:14px}.problem-row-copy small{overflow:hidden;color:#7b899e;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.problem-tags{display:flex;gap:6px}.problem-tag{padding:6px 9px;border-radius:20px;background:#eaf2ff;color:#285caa;font-size:10px;font-weight:800;text-transform:capitalize;white-space:nowrap}.problem-tag.muted{background:#f1f3f6;color:#77859a}.open-arrow{color:#3769ae;font-size:12px;font-weight:700;text-align:right;white-space:nowrap}.open-arrow b{padding-left:4px}.problem-empty{display:grid;justify-items:center;gap:7px;padding:48px 20px;text-align:center}.problem-empty>span{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#eef4fd;color:#3265ae;font-size:24px}.problem-empty strong{margin-top:5px;color:#33445c}.problem-empty p{max-width:380px;margin:0 0 8px;color:#78869a;font-size:13px;line-height:1.5}.admin-card{gap:16px}.admin-card-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.admin-card-heading h2{margin:5px 0 0}.admin-step{padding:7px 10px;border-radius:18px;background:#f0f4fa;color:#71819a;font-size:10px;font-weight:800;letter-spacing:.07em}.admin-field-row,.admin-mcq-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-card input[readonly]{background:#f6f8fb;color:#66768d}.admin-card .mcq-question-editor{min-height:124px;resize:vertical;line-height:1.55}.admin-mcq-settings{padding:14px;border:1px solid #e6ebf2;border-radius:12px;background:#fafbfd}.admin-mcq-settings label{font-size:12px}.mcq-admin-options{padding:16px;border:1px solid #e6ebf2;border-radius:12px;background:#fafbfd}.mcq-admin-options>div:first-child{margin-bottom:5px}.mcq-admin-option{grid-template-columns:30px minmax(0,1fr) auto;padding:8px 0;border-top:1px solid #e9edf3}.mcq-admin-letter{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#eaf1fb;color:#42699f;font-size:11px;font-weight:800}.mcq-admin-option>input{min-width:0}.mcq-admin-option .correct-option{padding:7px 8px;border-radius:8px;background:#f0f3f7;color:#68788f;font-size:11px}.mcq-admin-option .correct-option:has(input:checked){background:#e4f5eb;color:#19804f}.admin-submit{min-height:46px}.admin-row{min-width:0}.admin-row-main{display:grid;gap:3px;flex:1;min-width:160px}.admin-row-main strong{min-width:0}.admin-row-main small{color:#94a0b0;font-size:11px}.admin-row .admin-status{padding:5px 9px;border-radius:20px;background:#f0f3f7;color:#68788f;font-size:10px;font-weight:800;text-transform:capitalize}.admin-row .visibility-public,.admin-row .visibility-private{font-size:12px}.admin-list .panel-head{background:#fafbfd}@media(max-width:680px){.problem-catalog-intro{align-items:flex-start;padding:23px 18px 19px}.problem-catalog-intro h2{font-size:23px}.catalog-total{font-size:10px}.problem-section-tabs{margin:0 18px}.problem-tools{align-items:stretch;flex-direction:column;padding:17px 18px 12px}.problem-search{width:100%}.problem-filter{min-width:unset}.problem-catalog .panel-head{padding:13px 18px}.problem-list{padding:0 9px 8px}.problem-card-row{grid-template-columns:32px minmax(0,1fr) auto;gap:10px;padding:14px 8px}.problem-index{width:30px;height:30px}.problem-tags{grid-column:2;grid-row:2}.problem-row-copy{grid-column:2;grid-row:1}.open-arrow{grid-column:3;grid-row:1/3}.problem-row-copy small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.admin-field-row,.admin-mcq-settings{grid-template-columns:1fr}.mcq-admin-option{grid-template-columns:26px minmax(0,1fr)}.mcq-admin-option .correct-option{grid-column:2;justify-self:start}}.contest-index{display:grid;gap:20px}.contest-index-head{display:flex;align-items:end;justify-content:space-between;gap:20px}.contest-index-head h2{margin:6px 0 5px;font-size:29px;letter-spacing:-.045em}.contest-index-head p{margin:0;color:#718098;font-size:14px}.contest-filters{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.contest-filters button{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;padding:10px 14px;border:1px solid #dce5ef;border-radius:10px;background:#fff;color:#587089;font-weight:750}.contest-filters button.active{background:#2259b5;border-color:#2259b5;color:#fff}.contest-filters button span{min-width:21px;padding:2px 5px;border-radius:20px;background:#edf2f8;color:#5d7087;font-size:11px;text-align:center}.contest-filters button.active span{background:#ffffff30;color:#fff}.contest-cards{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));align-items:stretch}.contest-card{display:flex;flex-direction:column;min-height:315px;padding:24px 26px 0;transition:transform .18s ease,box-shadow .18s ease}.contest-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px #24446a1a}.contest-status-line{min-height:28px}.contest-status-line .registered-label{margin-left:auto}.contest-phase{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:20px;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.contest-phase:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.contest-phase.live{background:#e8f7ee;color:#17804e}.contest-phase.upcoming{background:#eaf2fd;color:#255fa9}.contest-phase.ended{background:#f0f2f5;color:#6e7c8e}.contest-card h2{margin:22px 0 3px;font-size:23px;line-height:1.25;letter-spacing:-.035em}.contest-card-format{margin:0;color:#728198;font-size:13px}.contest-card-schedule{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}.contest-card-schedule span,.contest-overview-dates span{display:grid;gap:5px;min-width:0}.contest-card-schedule small,.contest-overview-dates small{color:#8290a1;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.contest-card-schedule strong,.contest-overview-dates strong{color:#35465c;font-size:13px;line-height:1.35}.contest-card-action{display:flex;justify-content:space-between;align-items:center;width:calc(100% + 52px);margin:auto -26px 0;padding:15px 26px;border:0;border-top:1px solid #e7edf5;background:#f9fbfe;color:#2259b5;font-size:14px;font-weight:800;text-align:left}.contest-card-action:hover{background:#edf4fd}.contest-card-action span{font-size:19px}.contest-detail{display:grid;gap:20px}.contest-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 32px;padding:28px 32px;background:linear-gradient(115deg,#fff 60%,#f2f7fe)}.contest-overview h2{margin:12px 0 4px;font-size:29px;letter-spacing:-.04em}.contest-overview p{margin:0;color:#74849a;font-size:14px}.contest-overview-dates{display:flex;align-items:center;gap:28px}.contest-overview-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding-top:19px;border-top:1px solid #e6edf5}.contest-overview-actions .registered-label{font-size:12px}.contest-problem-panel .panel-head{background:#fafbfd}.contest-problem-panel .list-row{min-height:78px}.contest-problem-copy strong{font-size:16px}.contest-problem-copy small{font-size:12px}.contest-empty{display:grid;gap:7px;justify-items:center;padding:44px 22px;color:#34485f;text-align:center}.contest-empty p{max-width:430px;margin:0;color:#7d8da0;font-size:13px;line-height:1.55}.contest-picker{display:grid;gap:12px;padding:18px;border:1px solid #e0e8f2;border-radius:14px;background:#f9fbfe}.contest-picker-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.contest-picker-head>div{display:grid;gap:3px}.contest-picker-head strong{font-size:16px}.contest-picker-head small{color:#7d8b9f;font-size:12px}.picker-clear,.contest-picker-toolbar button{padding:5px 7px;border:0;background:transparent;color:#2a62b0;font-size:12px;font-weight:800}.contest-picker>input{background:#fff}.contest-picker-toolbar{display:flex;justify-content:space-between;align-items:center;color:#8190a2;font-size:12px}.contest-picker-list{max-height:325px;overflow:auto;border:1px solid #e1e8f1;border-radius:10px;background:#fff}.contest-picker-row{display:flex;align-items:center;gap:12px;padding:12px 13px;border-bottom:1px solid #edf1f6;cursor:pointer}.contest-picker-row:last-child{border-bottom:0}.contest-picker-row:hover{background:#f6f9fe}.contest-picker-row:has(input:checked){background:#f0f6ff}.contest-picker-row.added{opacity:.68;cursor:default}.contest-picker-row input{width:17px;height:17px;margin:0;accent-color:#2259b5;flex:none}.contest-picker-row>span{display:grid;gap:3px;min-width:0;flex:1}.contest-picker-row strong{overflow:hidden;color:#24384f;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.contest-picker-row small{color:#8593a5;font-size:11px;font-weight:500}.contest-picker-row em{color:#3c6eaf;font-size:11px;font-style:normal;font-weight:800}.contest-picker .empty{font-size:13px}.admin-actions .primary{margin-left:auto}@media(max-width:720px){.contest-index-head h2{font-size:25px}.contest-cards{grid-template-columns:1fr}.contest-card{min-height:280px}.contest-overview{grid-template-columns:1fr;padding:23px}.contest-overview-dates{flex-wrap:wrap;gap:14px 26px}.contest-overview-actions{flex-wrap:wrap}.contest-overview-actions button{flex:1;white-space:nowrap}.contest-card-schedule{margin:20px 0}.contest-picker{padding:12px}}.contest-closed{color:#7c8a9e;font-size:13px;font-weight:700}.contest-entry-guide .panel-head{background:#fafbfd}.contest-entry-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:24px}.contest-entry-steps>div{padding:17px;border:1px solid #e5ebf3;border-radius:12px;background:#fcfdff}.contest-entry-steps b{display:block;margin-bottom:12px;color:#2b64ad;font-size:12px;letter-spacing:.08em}.contest-entry-steps strong{display:block;color:#263a51;font-size:15px}.contest-entry-steps p{margin:7px 0 0;color:#728298;font-size:13px;line-height:1.5}.contest-arena{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;flex-direction:column;background:#e9eef5;color:#203249}.arena-header{z-index:2;display:flex;align-items:center;gap:22px;min-height:76px;padding:10px 20px;background:#fff;border-bottom:1px solid #dbe3ee;box-shadow:0 2px 10px #1934510a}.arena-identity{display:flex;align-items:center;gap:11px;min-width:190px}.arena-mark{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:10px;background:#2259b5;color:#fff;font-weight:800}.arena-identity>div{display:grid;gap:2px}.arena-identity strong{max-width:250px;overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.arena-identity small{color:#8290a1;font-size:11px}.arena-warning{display:grid;gap:2px;flex:1;padding:9px 16px;border:1px solid #f1d6ab;border-radius:9px;background:#fff9ec;color:#865616}.arena-warning strong{font-size:13px}.arena-warning span{font-size:12px}.arena-exit{flex:none;padding:12px 17px;border:1px solid #bd3737;border-radius:9px;background:#c83d3d;color:#fff;font-size:13px;font-weight:800}.arena-exit:hover{background:#aa2f2f}.arena-exit:disabled{opacity:.55;cursor:not-allowed}.arena-content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.arena-content>.message{margin:12px 16px 0}.arena-dashboard{width:min(100% - 40px,1120px);margin:auto;display:grid;gap:20px;padding:28px 0}.arena-intro{position:relative;padding:29px 32px;border:1px solid #dbe4ef;border-radius:17px;background:linear-gradient(110deg,#fff 60%,#ecf4ff);box-shadow:0 9px 25px #24446a0c}.arena-intro h1{margin:14px 0 5px;font-size:clamp(28px,3vw,40px);letter-spacing:-.04em}.arena-intro p{margin:0;color:#708198;font-size:14px}.arena-intro>div{display:flex;gap:9px;margin-top:20px;font-size:13px}.arena-intro>div span{color:#8290a1}.arena-questions .panel-head{background:#fafbfd}.arena-questions .list-row:last-child{border-bottom:0}.arena-state{display:grid;justify-items:center;align-content:center;gap:12px;min-height:300px;flex:1;text-align:center}.arena-state strong{font-size:23px}.arena-state p{max-width:380px;margin:0;color:#718198;font-size:14px}.arena-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;place-items:center;padding:20px;background:#102036a8}.arena-modal{width:min(100%,430px);padding:30px;border-radius:18px;background:#fff;box-shadow:0 24px 60px #0f1c3290}.arena-modal-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#feecec;color:#bd3333;font-weight:900}.arena-modal h2{margin:18px 0 8px;font-size:24px}.arena-modal p{margin:0;color:#6d7e92;font-size:14px;line-height:1.55}.arena-modal>div{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}.contest-arena .solve-workspace,.contest-arena .mcq-workspace{flex:1;min-height:0}.contest-arena .solve-workspace{height:100%}@media(max-width:760px){.contest-entry-steps{grid-template-columns:1fr;padding:16px}.arena-header{flex-wrap:wrap;gap:8px;padding:9px 12px}.arena-identity{flex:1}.arena-warning{order:3;flex-basis:100%;padding:7px 10px}.arena-warning span{font-size:11px}.arena-exit{padding:10px 12px}.arena-dashboard{width:calc(100% - 20px);padding:14px 0}.arena-intro{padding:22px}.arena-content .solve-workspace{height:auto;min-height:100%}}.arena-header-actions{display:flex;align-items:center;gap:9px}.arena-header-actions .secondary{white-space:nowrap}.my-rank{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 20px;padding:17px 20px;border:1px solid #bfd7fa;border-radius:12px;background:linear-gradient(110deg,#eaf3ff,#f7fbff);color:#25456d}.my-rank span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.my-rank strong{font-size:28px;line-height:1;color:#1e58ad}.my-rank small{color:#627b99;font-size:12px}.my-ranking-row{background:#eef6ff}.contest-arena .contest-ranking{min-width:0}.contest-arena .contest-back-button{justify-self:start}.arena-modal>.primary,.arena-modal>.arena-exit{margin:18px 9px 0 0}@media(max-width:760px){.arena-header-actions{margin-left:auto}.arena-header-actions .secondary{padding:9px}.my-rank{margin:12px;padding:14px}}.contest-arena .arena-content{width:100%;max-width:none;margin:0;padding:0;min-height:0}.contest-arena .arena-problem-content{overflow:hidden}.contest-arena .arena-problem-content .solve-workspace,.contest-arena .arena-problem-content .mcq-workspace{width:100%;height:100%;min-height:0;margin:0;overflow:hidden}.contest-arena .arena-problem-content .solve-workspace{grid-template-columns:minmax(0,42%) minmax(0,58%)}.contest-arena .arena-problem-content .workspace-left,.contest-arena .arena-problem-content .workspace-right{min-height:0;max-height:none}.contest-arena .arena-problem-content .workspace-editor{min-height:0}.contest-arena .arena-problem-content .mcq-question,.contest-arena .arena-problem-content .mcq-options-panel{min-height:0;overflow:auto}@media(max-width:900px){.contest-arena .arena-problem-content{overflow:auto}.contest-arena .arena-problem-content .solve-workspace{display:flex;flex-direction:column;height:auto;min-height:100%}.contest-arena .arena-problem-content .workspace-left{min-height:240px;max-height:40vh}.contest-arena .arena-problem-content .workspace-right{min-height:60vh}.contest-arena .arena-problem-content .mcq-workspace{height:auto;min-height:100%;overflow:auto}}.contest-arena .arena-ranking-content{overflow:hidden}.contest-arena .arena-ranking-content .arena-dashboard{width:100%;height:100%;min-height:0;max-width:none;margin:0;padding:18px 24px;display:flex;flex-direction:column;gap:12px}.contest-arena .arena-ranking-content .contest-ranking{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}.contest-arena .arena-ranking-content .ranking-table-wrap{flex:1;min-height:0;overflow:auto}.contest-arena .arena-ranking-content .ranking-table-wrap table{width:100%}.contest-arena .arena-ranking-content .ranking-table-wrap th{position:sticky;top:0;z-index:1;background:#f8fbff}@media(max-width:760px){.contest-arena .arena-ranking-content .arena-dashboard{padding:10px}.contest-arena .arena-ranking-content .ranking-table-wrap{overflow:auto}}.contest-clock{display:grid;gap:1px;min-width:108px;text-align:center}.contest-clock small{color:#728298;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.contest-clock strong{color:#1d3b61;font:800 21px/1.2 Consolas,monospace}.ranking-hero{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:24px 30px;background:linear-gradient(115deg,#102b50,#1b4d88);color:#fff}.ranking-hero .admin-kicker{color:#9fc8ff}.ranking-hero h2{margin:5px 0 3px;font-size:clamp(24px,2.4vw,34px);letter-spacing:-.04em}.ranking-hero p{margin:0;color:#bdd0e8;font-size:13px}.ranking-count{padding:9px 13px;border:1px solid #ffffff46;border-radius:24px;font-size:12px;font-weight:800;white-space:nowrap}.ranking-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 20px 16px}.podium-place{display:flex;align-items:center;gap:12px;min-width:0;padding:14px 16px;border:1px solid #dce6f4;border-radius:13px;background:#f7faff}.podium-place.place-1{border-color:#efd891;background:#fff9e8}.podium-medal{font-size:28px}.podium-place div{display:grid;gap:2px;min-width:0}.podium-place small{color:#71849c;font-size:10px;font-weight:800;text-transform:uppercase}.podium-place strong{overflow:hidden;color:#223b59;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.podium-place div>span{color:#6e8097;font-size:11px}.contest-ranking{max-width:none;width:100%;overflow:hidden}.contest-ranking table{width:100%;border-collapse:collapse}.contest-ranking th{background:#f7faff;color:#72849b;text-align:left;text-transform:uppercase;letter-spacing:.07em}.contest-ranking td{border-top:1px solid #edf1f7}.contest-ranking tr:hover td{background:#f8fbff}.my-ranking-row td{background:#edf6ff!important}.app main:has(.contest-ranking){width:calc(100% - 48px);max-width:none;min-height:calc(100vh - 150px);padding:24px 0}.app .contest-detail:has(.contest-ranking){width:100%;min-height:calc(100vh - 230px)}@media(max-width:760px){.ranking-hero{padding:18px}.ranking-count{display:none}.ranking-podium{grid-template-columns:1fr;padding:0 12px 12px}.contest-clock{min-width:80px}.contest-clock strong{font-size:16px}.app main:has(.contest-ranking){width:calc(100% - 20px)}}.catalog-preview{padding:8px 24px 20px}.catalog-skeleton{height:75px;margin:12px 0;border-radius:10px;background:linear-gradient(90deg,#f0f3f8 20%,#e4ebf5,#f0f3f8 76%);background-size:220% 100%;animation:catalog-pulse 1.4s ease-in-out infinite}.catalog-more{display:flex;justify-content:center;padding:18px 24px 22px;border-top:1px solid #edf1f6}@keyframes catalog-pulse{to{background-position-x:-220%}}
