:root{--canvas:#f3f3f0;--edge:#deded9;--soft:#f7f7f4;--strong:#171717}body{font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:14px;color:#000}button,input,textarea{color:#000}button{transition:background .12s}button:disabled{opacity:.35}.topbar{height:64px;padding:0 25px;border-bottom:1px solid var(--edge);background:#fff}.brand{display:flex;align-items:center;gap:11px;letter-spacing:0}.brand-symbol{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;background:#ededE8;border:1px solid #d6d6ce;border-radius:9px;font:700 18px Consolas,monospace}.brand .brand-name,.practice-page .topbar .brand .brand-name{display:inline;margin:0;font-size:16px;letter-spacing:.5px;font-weight:700}.topbar nav{gap:30px;font-size:13px}.topbar nav a[aria-current]{border-bottom-width:2px}.studio{height:100dvh;overflow:hidden;background:var(--canvas)}.studio .layout{grid-template-columns:224px minmax(0,1fr);height:calc(100dvh - 64px);max-width:none}.studio aside{top:0;position:relative;height:100%;padding:23px 15px;background:#fafaf8;border-right:1px solid var(--edge);scrollbar-width:thin}.sidebar-title{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:700;margin:0 4px 18px}.sidebar-title span{font:12px Consolas,monospace;border:1px solid var(--edge);border-radius:5px;padding:0 6px}.studio aside input{font-size:12px;background:#fff;border:1px solid #d4d4cc;border-radius:7px;padding:9px 10px}.studio .practice-progress{font-size:11px;margin:10px 4px 24px}.studio .nav-group{margin:20px 0}.studio .nav-group p{font-size:11px;font-weight:700;margin:0 8px 6px}.studio .nav-group a{font-size:12px;padding:9px 8px;border:0;border-radius:6px;line-height:1.5}.studio .nav-group a.active{background:#e8e8e1;font-weight:700;box-shadow:inset 2px 0 #000}.studio main{padding:0;max-width:none;display:flex;flex-direction:column;min-height:0}.workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px 20px}.breadcrumb{font-size:11px;margin:0 0 5px}.studio h1{font-size:21px;line-height:1.4;margin:0;letter-spacing:0}.problem-paging{display:flex;gap:6px}.problem-paging button{border:1px solid #d2d2ca;background:#fafaf8;border-radius:6px;width:31px;height:29px;padding:0}.desk-grid{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(400px,1.2fr);gap:14px;padding:0 20px 20px;flex:1;min-height:0}.task-pane,.workspace,.console-pane{background:white;border:1px solid var(--edge);border-radius:10px;min-width:0;overflow:hidden;box-shadow:0 2px 5px #00000003}.task-pane{display:flex;flex-direction:column;min-height:0}.pane-tabs{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--edge);padding:0 18px;height:46px;flex-shrink:0;background:#fff}.pane-tabs button{padding:0 1px;height:46px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:12px;white-space:nowrap}.pane-tabs button.selected{border-bottom-color:#000;font-weight:700}.pane-tabs button:hover{background:none}.task-scroll{padding:21px 23px;overflow:auto;scrollbar-width:thin;flex:1;min-height:0}.studio .task-scroll h3,.studio #problem-statement strong{font-size:14px}.studio .task-scroll h3{margin:8px 0 12px;font-weight:700}.studio .task-scroll p{font-size:13px;line-height:1.95;margin:0 0 16px}.studio #problem-statement p:has(>strong:only-child){margin-top:24px;margin-bottom:10px}.studio #problem-statement p:first-child{margin-top:0}.studio .samples{display:grid;grid-template-columns:1fr;gap:0;margin:8px 0 20px;border:1px solid var(--edge);border-radius:7px;overflow:hidden}.studio .samples>div{border:0;padding:0;background:#fafaf8}.studio .samples>div+div{border-top:1px solid var(--edge)}.studio .samples h3{font-size:11px;padding:7px 12px;margin:0;background:#f0f0eb;border-bottom:1px solid var(--edge)}.studio .samples pre{font:12px/1.8 Consolas,monospace;padding:12px;margin:0;white-space:pre-wrap}.coding-pane{display:flex;flex-direction:column;gap:14px;min-height:0;min-width:0}.studio .workspace{margin:0;border-top:1px solid var(--edge);flex:1.15;display:flex;flex-direction:column;min-height:230px}.studio .editor-heading{height:43px;padding:0 16px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--edge);flex-shrink:0;background:#fafaf8}.editor-file{font:12px Consolas,monospace;display:flex;align-items:center;gap:8px}.editor-file:before{content:'';width:6px;height:6px;background:#000;border-radius:2px}.language-tag{font:11px Consolas,monospace;border:1px solid var(--edge);border-radius:4px;padding:0 6px}.studio #draft-status{margin-left:auto;font-size:10px}.editor-body{display:flex;flex:1;min-height:0;margin:12px;border:1px dashed #d5d5cd;border-radius:5px;background:#fff;overflow:hidden}.studio #line-numbers{font:13px/1.85 Consolas,monospace;text-align:right;min-width:39px;padding:14px 9px 14px 0;background:#fbfbf9;border-right:1px solid #eeeee8;margin:0;overflow:hidden;user-select:none}.studio #code-editor{border:0;border-radius:0;outline:0;box-shadow:none;min-height:0;height:100%;flex:1;min-width:0;padding:14px 12px;resize:none;tab-size:4;background:white;font:13px/1.85 Consolas,"Microsoft YaHei",monospace;white-space:pre;overflow:auto}.studio .editor-actions{display:flex;align-items:center;gap:7px;padding:0 12px 12px;margin:0;flex-shrink:0}.studio .editor-actions button{font-size:11px;border-radius:5px;padding:5px 11px;border-color:#d1d1c9}.studio .editor-actions .primary{border:1px solid #000;background:#e9e9e2;color:#000;font-weight:700}.editor-position{margin-right:auto;font:10px Consolas,"Microsoft YaHei",sans-serif}.console-pane{flex:1;min-height:210px;display:flex;flex-direction:column}.studio #runtime-status{font-size:10px;margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}.console-scroll{padding:17px 18px;overflow:auto;min-height:0;flex:1;scrollbar-width:thin}.studio .input-grid{display:grid;grid-template-columns:1fr;gap:14px;margin:0}.studio .input-grid label{font-size:11px;margin-bottom:8px}.studio #stdin{min-height:100px;height:110px;background:#fafaf8;border:1px solid var(--edge);border-radius:5px;font:12px/1.7 Consolas,monospace;resize:vertical}.studio #run-note{font-size:10px;line-height:1.8;margin:12px 0 0}.studio #result-summary{font-size:13px;padding:9px 11px;background:#f0f0ea;border-radius:5px;margin:0 0 14px}.studio .test-result{border:0;border-bottom:1px solid var(--edge);margin:0;padding:12px 0}.studio .test-result h3{font-size:12px;margin:0 0 6px}.studio .test-result details summary{font-size:11px;text-decoration:none}.studio .execution pre,.studio #test-cases pre{font:12px/1.8 Consolas,monospace;background:#f7f7f3;border:1px solid #e9e9e1;border-radius:4px;padding:9px}.studio .result-comparison{grid-template-columns:1fr 1fr}.studio .result-comparison strong{font-size:11px}.studio #knowledge,.studio #reference-answer,.studio #test-data{border:0;padding:0;margin:0}.studio #knowledge table{min-width:0;font-size:12px}.studio #knowledge th:first-child{width:40%}.studio #knowledge th,.studio #knowledge td{padding:9px 8px}.studio #reference-answer pre{font:12px/1.85 Consolas,"Microsoft YaHei",monospace;white-space:pre-wrap;overflow-wrap:anywhere;border:1px dashed #ccc;border-radius:5px;background:#fafaf8;margin:0;padding:15px}.studio #test-cases>details{padding:12px 0;border-bottom:1px solid var(--edge)}.studio .file-section{font-size:12px}.studio #drawing svg{max-height:230px}.reading-studio{background:var(--canvas)}.reading-studio .layout{max-width:1480px;grid-template-columns:244px minmax(0,1fr)}.reading-studio aside{top:64px;height:calc(100vh - 64px);background:#fafaf8;border-color:var(--edge);padding:25px 19px;scrollbar-width:thin}.reading-studio main{padding:35px 44px;background:#fff;margin:20px;border-radius:10px;border:1px solid var(--edge);max-width:1100px}.reading-studio .page-heading{border-bottom:1px solid #bbb;padding-bottom:23px;margin-bottom:25px}.reading-studio h1{font-size:27px}.reading-studio .topic,.reading-studio .problem{border-color:var(--edge);padding:20px 0 27px}.reading-studio .nav-group a{font-size:12px;border:0;border-radius:5px}.reading-studio .nav-group a.active{background:#e8e8e1}.reading-studio .nav-group p{font-size:12px}.reading-studio .focus{border-left-width:2px;background:#f4f4ef;border-radius:0 5px 5px 0}.reading-studio .quiz-option{border-radius:6px;padding:12px}.reading-studio .quiz-option:has(input:checked){background:#eeeee7}.reading-studio footer{background:#fafaf8}.reading-studio .tools button{border-color:#ccc;border-radius:5px}.reading-studio th{background:#f5f5f0}.reading-studio .code-panel{border-color:#c5c5ba;background:#fafaf8}.reading-studio .practice-link{border-color:#aaa;background:#f7f7f2}.studio .sr-only{display:none}
@media(min-width:1700px){.desk-grid{grid-template-columns:minmax(400px,1fr) minmax(550px,1.15fr)}.task-scroll{padding:28px 32px}}@media(max-width:1200px){.studio .layout{grid-template-columns:195px minmax(0,1fr)}.desk-grid{gap:10px;padding:0 12px 12px;grid-template-columns:minmax(260px,.9fr) minmax(350px,1.1fr)}.task-scroll{padding:18px 17px}.studio #draft-status{display:none}.studio #runtime-status{max-width:100px}.studio .pane-tabs{gap:12px;padding:0 13px}.studio .editor-actions{gap:5px}.studio .editor-actions button{padding:5px 8px}.editor-position{font-size:9px}.topbar nav{gap:23px}}@media(max-width:1000px){.studio .layout{grid-template-columns:180px minmax(0,1fr)}.desk-grid{grid-template-columns:1fr;overflow:auto;display:block}.task-pane{min-height:350px;max-height:55vh;margin-bottom:12px}.coding-pane{height:750px}.studio{overflow:auto}.studio main{overflow:hidden}.studio .workbench-heading{padding:16px}.studio .topbar .brand .brand-name{font-size:13px}.studio h1{font-size:19px}.reading-studio main{padding:28px;margin:14px}}@media(max-width:760px){.topbar{height:58px;padding:0 12px;gap:10px}.brand .brand-name,.practice-page .topbar .brand .brand-name{display:none}.brand-symbol{width:29px;height:29px;font-size:16px}.topbar nav{gap:15px;font-size:11px}.menu{font-size:10px;white-space:nowrap;padding:4px 7px}.studio .layout{height:calc(100dvh - 58px);display:block}.studio aside{position:fixed;top:58px;left:0;z-index:7;width:270px;height:calc(100dvh - 58px)}.studio main{height:100%}.studio .workbench-heading{padding:15px 14px}.studio h1{font-size:18px}.breadcrumb{font-size:10px}.desk-grid{padding:0 10px 12px}.task-pane{max-height:430px;min-height:310px}.coding-pane{height:740px}.studio .editor-heading{flex-direction:row;margin:0}.studio .pane-tabs{gap:16px}.studio .result-comparison{grid-template-columns:1fr}.studio #run-note{font-size:10px}.reading-studio .layout{display:block}.reading-studio main{margin:10px;padding:22px 17px}.reading-studio aside{top:58px;height:calc(100dvh - 58px)}.reading-studio h1{font-size:24px}.reading-studio .topbar nav{font-size:10px;gap:12px}}
