.question-zoom-icon{display:inline-block;position:relative;width:11px;height:11px;border:1.5px solid currentColor;border-radius:50%;box-sizing:border-box;transform:translate(-1px,-1px)}.question-zoom-icon:after{position:absolute;content:"";width:6px;height:1.5px;background:currentColor;left:7px;top:8px;transform:rotate(45deg);transform-origin:left center}.question-image-viewer[data-v-8b504666]{margin:auto;max-width:94vw;max-height:94vh;padding:10px 12px 12px;border:0;border-radius:10px;background:#fff}.question-image-viewer[data-v-8b504666]::backdrop{background:#102039bf}.question-image-viewer>button[data-v-8b504666]{display:block;margin:0 0 8px auto}.question-image-viewer>img[data-v-8b504666]{display:block;max-width:calc(94vw - 24px);max-height:calc(94vh - 70px);object-fit:contain}.image-answer-options[data-v-67449286]{container-type:inline-size}.image-answer-grid[data-v-67449286]{--image-option-width: 268px}.image-answer-grid.has-wide-image[data-v-67449286]{--image-option-width: 330px}.image-answer-pair[data-v-67449286]{display:contents}.answer-options.block-scaled[data-v-67449286]{--block-card-insets: 46px;--block-card-gap: 10px;--block-card-width: calc(var(--scratch-block-size) * var(--widest-block-image) + var(--block-card-insets));display:flex;flex-wrap:wrap}.block-scaled .image-answer-pair[data-v-67449286]{display:grid;gap:var(--block-card-gap);width:min(100%,calc(2 * var(--block-card-width) + var(--block-card-gap)));grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--block-card-width)),1fr))}.block-scaled .image-answer-card img[data-v-67449286]{width:var(--block-image-width);max-height:none}.image-answer-card[data-v-67449286]{display:grid;position:relative;min-width:0}.answer-options .image-answer-card>label[data-v-67449286]{grid-template-columns:24px minmax(0,1fr);gap:4px;padding:8px 8px 9px}.answer-options .image-answer-card>label>b[data-v-67449286]{width:24px;height:24px;border-radius:6px;font-size:14px}.image-answer-card img[data-v-67449286]{display:block;justify-self:center;max-width:100%;max-height:320px;width:auto;height:auto;object-fit:contain}.image-enlarge[data-v-67449286]{position:absolute;bottom:7px;left:7px;display:grid;place-items:center;width:26px;height:26px;padding:0;border:1px solid #dfe6ef;border-radius:50%;background:#fff;color:#38567a;cursor:zoom-in}.image-enlarge[data-v-67449286]:hover{background:#edf4ff}@container (min-width: 310px){.image-answer-grid[data-v-67449286]:not(.has-wide-image){grid-template-columns:repeat(2,minmax(0,var(--image-option-width)))}}@container (width < 440px){.answer-options.image-answer-grid[data-v-67449286]{--block-card-insets: 10px;--block-card-gap: 8px;gap:8px;padding-inline:8px}.answer-options .image-answer-card>label[data-v-67449286]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;gap:2px;padding:5px 4px 6px}.image-enlarge[data-v-67449286]{top:4px;bottom:auto;left:34px}}@container (min-width: 440px){.image-answer-grid[data-v-67449286]{grid-template-columns:repeat(2,minmax(0,var(--image-option-width)))}}@container (min-width: 1150px){.scratch-practice-layout .image-answer-grid[data-v-67449286]:not(.has-wide-image){grid-template-columns:repeat(4,minmax(0,var(--image-option-width)))}}.reset-code-overlay[data-v-8a70be6a]{grid-template-columns:minmax(0,1fr);justify-items:center;padding:16px;background:#000000b3;-webkit-backdrop-filter:none;backdrop-filter:none}.reset-code-overlay[data-v-8a70be6a] .reset-code-card{width:min(480px,calc(100vw - 32px));max-width:100%;padding:24px;border-radius:13px;color:#262626;box-shadow:0 12px 32px #00000029}.reset-code-message[data-v-8a70be6a]{display:flex;align-items:flex-start;gap:16px}.reset-code-message>div[data-v-8a70be6a]{min-width:0}.reset-code-icon[data-v-8a70be6a]{flex:none;width:48px;height:48px;color:#2cbb5d}.reset-code-title[data-v-8a70be6a]{margin:0;font-size:18px;font-weight:500;line-height:28px}.reset-code-description[data-v-8a70be6a]{margin:8px 0 0;color:#595959;font-size:14px;line-height:20px}.reset-code-actions[data-v-8a70be6a]{display:flex;justify-content:flex-end;gap:16px;margin-top:32px}.reset-code-actions button[data-v-8a70be6a]{min-height:32px;padding:6px 12px;border:0;border-radius:8px;font-size:14px;font-weight:500;line-height:20px}.reset-code-cancel[data-v-8a70be6a]{color:#595959;background:#f2f2f2}.reset-code-cancel[data-v-8a70be6a]:hover{background:#e8e8e8}.reset-code-confirm[data-v-8a70be6a]{color:#fff;background:#2cbb5d}.reset-code-confirm[data-v-8a70be6a]:hover{background:#249c4e}.reset-code-actions button[data-v-8a70be6a]:focus-visible{outline:2px solid #94d8aa;outline-offset:3px}.program-layout{display:block}.program-statement{min-width:0}.program-work{min-width:0;display:grid;gap:20px}.program-page:not(.coding){max-width:960px;margin:auto}.program-page .program-history-row{display:flex;width:100%;border-width:0 0 1px;border-radius:0;padding:11px 0;text-align:left}.program-page .program-result pre{max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f8fb;padding:12px;font:12px/1.7 Consolas,monospace;border-radius:8px}@media(max-width:950px),(max-height:699px){.program-layout{display:block}.program-statement{position:static;max-height:none}.program-work{display:block}}@media(min-width:951px)and (min-height:700px){html:has(>body.program-desktop .program-page[data-context=practice]){scrollbar-gutter:auto}body.program-desktop{position:fixed;inset:0;height:100dvh;overflow:hidden}.program-desktop #app,.program-desktop .app-layout{height:100%;min-height:0;display:flex;flex-direction:column}.program-desktop .app-layout{--program-desktop-gutter: 24px}.program-desktop .app-layout>header{flex:none}.program-desktop .app-layout:has(>main .program-page[data-context=practice].coding)>.site-header>.site-header-inner{max-width:none;padding-inline:var(--program-desktop-gutter)}.program-desktop .app-layout>main{flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:12px var(--program-desktop-gutter) 16px;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.program-desktop .app-layout>main>.browser-learning-panel,.program-desktop .app-layout>footer{display:none}.program-desktop .program-page{display:flex;flex-direction:column;flex:1;min-height:0}.program-desktop .detail-toolbar{flex:none;margin:0 0 12px}.program-desktop .program-layout{flex:1;min-height:0;align-items:stretch;overflow:hidden}.program-desktop .program-statement,.program-desktop .program-work{min-height:0;max-height:none;overflow:auto;position:static;margin:0}.program-desktop .program-work{display:block}.program-desktop .program-work>.panel{margin:0 0 12px}.program-desktop .program-actions{position:sticky;bottom:0;background:#fff;padding:12px 0;z-index:2}}.program-page{padding-top:0}.app-layout>main:has(.program-page:not(.coding)){max-width:1468px;padding:32px 24px}.program-page .paper-breadcrumb{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 auto 15px;font-size:15px}.program-page .paper-breadcrumb>a{display:inline-block;padding:11px 13px;border-radius:10px;background:#2f6fed;color:#fff;font-size:13px;font-weight:850;text-decoration:none}.program-page .paper-breadcrumb>span{color:#66758b;font-size:13px}.program-page .paper-breadcrumb .question-position{margin-left:auto;white-space:nowrap}.program-page .program-statement{padding:26px 30px;border:1px solid #e1e8f0;border-radius:14px;background:#fff;margin:0}.program-page .statement-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:58px;padding-bottom:16px}.program-page .statement-heading h1{font-size:26px;line-height:1.4;letter-spacing:0;margin:0}.program-page .program-open-code{flex:none;white-space:nowrap;border:1px solid #c9dafb;border-radius:8px;padding:10px 16px;background:#fff;color:#2f6fed;font-size:13px;font-weight:700;margin:0}.program-page .program-limits{border-top:1px solid #e1e8f0;border-bottom:1px solid #e1e8f0;padding:12px 0;color:#66758b;font-size:12px;margin:0 0 22px}.program-page .program-statement-body>.program-limits{border:0;padding:0;margin:0 0 12px}.program-page .program-reading-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid #e1e8f0;margin:0 0 24px;padding:0}.program-page .program-reading-tabs>button{display:flex;align-items:center;gap:7px;padding:10px 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#66758b;font-size:15px;font-weight:700}.program-page .program-reading-tabs>button[aria-pressed=true]{color:#2f6fed;background:#eef4ff;border-bottom-color:#2f6fed;border-radius:8px 8px 0 0}.program-page .program-reading-tabs>button:hover{background:#e4edff}.program-page .program-statement .markdown{overflow-wrap:anywhere;line-height:1.95}.program-page .program-statement-body{overflow-wrap:anywhere}.program-page .program-statement .markdown h2{font-size:18px;margin:26px 0 10px}.program-page .program-statement .markdown h3{font-size:15px;margin:22px 0 8px}.program-page .program-statement .markdown p{margin:12px 0}.program-page .program-statement .markdown img{display:block;max-width:100%;max-height:400px;height:auto;object-fit:contain;margin:16px auto}.program-page .program-statement .markdown pre{background:#f5f7fb;border:1px solid #e6ecf3;border-radius:8px;padding:14px 16px;overflow:auto;font:13px/1.65 Consolas,monospace}.program-page .question-actions{display:flex;gap:12px;border-top:1px solid #e1e8f0;margin-top:24px;padding-top:20px}.program-page .question-actions>button{margin:0;background:#2f6fed;color:#fff;border:1px solid #2f6fed;border-radius:8px;padding:10px 16px;font-size:13px;font-weight:700}.program-page .coding-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px;font-size:13px;color:#66758b;margin-bottom:10px}.program-page .text-button{background:none;border:0;color:#2f6fed;font-size:12px;padding:0}.program-page .program-code{padding:20px;border:1px solid #e1e8f0;border-radius:14px;background:#fff}.program-page .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.program-page .section-heading h2{font-size:16px;margin:0}.program-page .section-heading>span{font-size:11px;color:#66758b}.program-page .program-config{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:12px}.program-page .program-config>label{display:flex;align-items:center;gap:12px;color:#66758b;font-size:12px}.program-page .program-config>.editor-theme-control{flex:0 0 auto}.program-page .editor-theme-control select{width:76px}.program-page .program-config select{min-width:0;flex:1;border:1px solid #e1e8f0;border-radius:7px;padding:7px;background:#fff;color:#142235}.program-page .editor-footer{display:flex;justify-content:space-between;gap:8px;color:#66758b;font-size:11px;margin-top:8px}.program-page .program-actions{display:flex;gap:10px;margin-top:17px}.program-page .program-actions>button{border-radius:8px;padding:10px 16px;font-size:13px;font-weight:700;background:#fff;color:#2f6fed;border:1px solid #c9dafb}.program-page .program-actions>.primary-button{background:#2f6fed;color:#fff;border-color:#2f6fed;flex:1}.program-page .program-results{padding:0;border:1px solid #e1e8f0;border-radius:12px;background:#fff;overflow:hidden}.program-page .program-results>summary{display:flex;align-items:center;gap:10px;padding:11px 16px;list-style:none;font-size:13px;font-weight:700;cursor:pointer}.program-page .program-results[open]>summary{border-bottom:1px solid #e1e8f0}.program-page .program-results>summary::-webkit-details-marker{display:none}.program-page .program-results>summary:before{content:"›";font-size:20px;line-height:1;transition:transform .15s}.program-page .program-results[open]>summary:before{transform:rotate(90deg)}.program-page .program-results>summary:after{content:"展开";color:#2f6fed;font-size:12px;font-weight:400;margin-left:auto}.program-page .program-results[open]>summary:after{content:"收起"}.program-page .program-results>.section-heading,.program-page .program-results>.program-result,.program-page .program-results>.muted,.program-page .program-results>.program-history-row,.program-page .program-history-source{margin:14px 16px}.program-page .program-results>.program-history-row{width:calc(100% - 32px);font-size:12px}.program-page .workspace-splitter{display:none}.program-page .program-code{--editor-color-scheme: dark;--editor-scrollbar-track: #282c34;--editor-scrollbar-thumb: #718096;--editor-resizer-background: #142235;--editor-resizer-border: #233650;--editor-resizer-handle: #7c93b1;--editor-resizer-active: #adcaff}.program-page .program-code[data-editor-theme=light]{--editor-color-scheme: light;--editor-scrollbar-track: #f1f3f5;--editor-scrollbar-thumb: #9aa7b5;--editor-resizer-background: #f6f8fa;--editor-resizer-border: #d0d7de;--editor-resizer-handle: #8c9bac;--editor-resizer-active: #65758b}.program-page .code-resizer{position:relative;height:16px;width:100%;margin-top:-1px;background:var(--editor-resizer-background);border:1px solid var(--editor-resizer-border);border-top:0;border-radius:0 0 9px 9px;cursor:ns-resize;touch-action:none;-webkit-user-select:none;user-select:none}.program-page .code-resizer:after{content:"";position:absolute;left:50%;top:5px;width:42px;height:4px;transform:translate(-50%);border-radius:3px;background:var(--editor-resizer-handle)}.program-page .code-resizer:hover:after,.program-page .code-resizer:focus-visible:after{background:var(--editor-resizer-active)}.program-page .code-resizer:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}.program-page .code-editor{border-radius:8px 8px 0 0;font-size:13px}@media(min-width:951px)and (min-height:700px){.program-desktop .program-page{padding:0}.program-desktop .program-layout{display:grid;grid-template-columns:minmax(0,calc(var(--statement-width, 45%) - 6px)) 12px minmax(0,1fr);gap:0}.program-desktop .program-statement{padding:20px 24px}.program-desktop .program-work{padding-left:0}.program-desktop .workspace-splitter{display:block;position:relative;align-self:stretch;cursor:col-resize;touch-action:none;border-radius:6px;outline-offset:-2px}.program-desktop .workspace-splitter:before{content:"";position:absolute;top:0;bottom:0;left:5px;width:2px;background:#dce5f1;border-radius:2px}.program-desktop .workspace-splitter:after{content:"";position:absolute;top:50%;left:3px;width:6px;height:40px;transform:translateY(-50%);border-radius:4px;background:#b6c7de}.program-desktop .workspace-splitter:focus-visible{outline:2px solid #2f6fed}.program-desktop .coding-heading{min-height:24px;margin:0 0 10px}.program-desktop .coding-heading button{display:none}.program-desktop .program-code{padding:14px 16px}.program-desktop .code-editor{font-size:14px}}@media(max-width:650px){.program-page{padding:0}.program-page .program-statement{padding:18px}.program-page .statement-heading{flex-wrap:wrap}.program-page .statement-heading h1{font-size:23px}.program-page .program-reading-tabs{gap:12px;margin-bottom:20px}.program-page .program-code{padding:16px}.program-page .editor-footer{flex-wrap:nowrap}.program-page .resize-hint{display:none}}.program-page .program-result .result-summary{display:flex;align-items:center;gap:10px;margin:6px 0 14px}.program-page .program-result .result-summary strong{font-size:23px}.program-page .program-result .result-summary strong small{font-size:13px}.program-page .program-result .badge{display:inline-block;font-size:11px;font-weight:700;border-radius:5px;padding:2px 7px;background:#edf2fa;color:#52657d}.program-page .program-result .badge.AC{color:#087449;background:#e1f5ea}.program-page .program-result .badge.WA,.program-page .program-result .badge.CE,.program-page .program-result .badge.RE,.program-page .program-result .badge.TLE,.program-page .program-result .badge.MLE,.program-page .program-result .badge.OLE,.program-page .program-result .badge.SYSTEM_ERROR{color:#b34b29;background:#fff0e9}.program-page .judge-cases{display:grid;grid-template-columns:repeat(auto-fill,minmax(67px,1fr));gap:7px}.program-page .judge-cases .case{border:1px solid #e1e8f0;border-radius:7px;text-align:center;padding:7px 4px;background:#fff;color:#142235}.program-page .judge-cases .case strong{display:block;font-size:12px}.program-page .judge-cases .case small{display:block;color:#66758b;font-size:10px}.program-page .judge-cases .case.AC{background:#f1faf5;border-color:#cce9db}.program-page .judge-cases .case.WA,.program-page .judge-cases .case.TLE,.program-page .judge-cases .case.RE,.program-page .judge-cases .case.MLE,.program-page .judge-cases .case.OLE{background:#fff6f0;border-color:#f0d3c1}.program-page .case-detail{padding:12px 0;font-size:12px}.program-page .case-detail pre{white-space:pre-wrap;background:#f7f8fb;padding:12px;font:12px/1.7 Consolas,monospace}.program-page .program-history-row{align-items:center;justify-content:flex-start;gap:10px}.program-page .program-history-row time{margin-left:auto;font-size:11px}.program-page .program-history-row.selected{color:#2f6fed}.program-page .program-history-row .badge{display:inline-block;font-size:11px;font-weight:700;border-radius:5px;padding:2px 7px;background:#edf2fa;color:#52657d}.program-page .program-history-row .badge.AC{color:#087449;background:#e1f5ea}.program-page .restore-source{margin:0 16px 16px}.program-page .program-results>.empty{padding:0 16px 16px;font-size:13px;color:#66758b}.program-page .program-feedback-fab{position:fixed;right:22px;bottom:26px;z-index:60;border:1px solid #dbe7fb;border-radius:999px;background:#fff;color:#245ac0;font-size:15px;font-weight:700;padding:14px 24px;box-shadow:0 8px 24px #1d32522e}.program-page .program-code-feedback{position:relative;min-width:0;width:auto;height:auto;padding:0 6px;margin-left:auto;border:0;border-radius:4px;box-shadow:none;background:transparent;color:#2f6fed;font-size:12px;font-weight:400;line-height:1.7}.program-page .coding-heading .program-code-feedback{display:block}.program-page .feedback-dot{position:absolute;width:6px;height:6px;right:0;top:0;border-radius:50%;background:#e36b5d}.program-page .program-statement .markdown h1{display:none}.program-page .paper-breadcrumb{justify-content:flex-start}.program-page{font-size:15px;line-height:1.7;font-family:Microsoft YaHei UI,PingFang SC,Arial,sans-serif}.program-page .program-statement .markdown h2{border:0;padding:0}.program-page .program-statement-body .markdown h1{display:block;font-size:15px;line-height:1.95;margin:22px 0 8px;font-weight:700;letter-spacing:normal}@media(max-width:520px){.app-layout>main:has(.program-page:not(.coding)),.app-layout>main:has(.program-page.coding){padding:22px 14px 90px}.program-page .paper-breadcrumb>span{font-size:11px}.program-page .paper-breadcrumb .question-position{flex-basis:100%;text-align:right}}.program-page .sample-downloads{border-top:1px solid var(--line);padding-top:15px;margin-top:24px;font-size:12px}.program-page .sample-downloads .sample-zip{display:block;width:fit-content;padding:7px 14px;border:1px solid #c9dafb;border-radius:8px;background:#eff5ff;color:var(--blue);font-weight:700;text-decoration:none}.program-page .sample-downloads .sample-zip:hover{background:#e3eeff;border-color:var(--blue)}.program-desktop .app-layout>main>.site-footer{display:none}@media(min-width:951px)and (min-height:700px){.program-page .coding-heading>.text-button{display:none}}.program-page .editor-footer .resize-hint{display:inline}@media(min-width:951px)and (min-height:700px){.program-desktop .program-page .paper-breadcrumb{width:100%;margin:0 0 10px;align-items:center}.program-desktop .program-page .paper-breadcrumb>a{padding:6px 10px}.program-desktop .program-actions{position:sticky;bottom:0;z-index:2;margin-top:4px;padding-block:8px;background:#fff}.program-desktop .editor-footer{margin-top:6px}}@media(min-width:951px)and (min-height:700px){.program-desktop .program-page[data-context=exam] .program-work{scrollbar-gutter:stable}.program-desktop .program-code>.section-heading{margin-bottom:8px}.program-desktop .program-code>.program-config{margin:0}.program-desktop .program-code>p.muted{font-size:12px;line-height:1.7;margin:5px 0 8px}}.program-page .paper-breadcrumb>.breadcrumb-divider{color:#b1bdcb}.program-page .paper-breadcrumb>.breadcrumb-current{color:#142235}.program-page .code-editor{border:1px solid #233650;border-radius:9px 9px 0 0;background:#142235}.program-page .code-editor .cm-editor{border-radius:8px 8px 0 0}.program-page .code-editor .cm-scroller{overflow:auto;padding:0;color-scheme:var(--editor-color-scheme);scrollbar-color:var(--editor-scrollbar-thumb) var(--editor-scrollbar-track)}.program-page .code-editor .cm-scroller::-webkit-scrollbar-track,.program-page .code-editor .cm-scroller::-webkit-scrollbar-corner{background:var(--editor-scrollbar-track)}.program-page .code-editor .cm-scroller::-webkit-scrollbar-thumb{background:var(--editor-scrollbar-thumb);border-radius:6px}.program-page .code-editor .cm-content{padding-block:12px;padding-inline:4px}.program-page .code-editor .cm-focused{outline:2px solid #6495f2;outline-offset:-2px}.program-page .code-editor .cm-tooltip-autocomplete>ul>li[aria-selected]{background:#2457bd;color:#fff;box-shadow:inset 3px 0 #b8d3ff}.program-page .code-editor .cm-tooltip-autocomplete>ul>li[aria-selected] .cm-completionDetail{color:#eaf2ff}.program-page{--muted: #66758b;--line: #e1e8f0}.program-page .code-editor{font:13px/1.8 Consolas,Cascadia Code,monospace;color:#e3efff;min-height:220px;border-radius:9px 9px 0 0}.program-page .program-config{font-size:12px;line-height:1.7}.program-page .program-code>p.muted{font-size:12px;line-height:1.7;margin:7px 0 12px}.program-page .program-statement .markdown table{display:table;width:100%;max-width:100%;font-size:13px;margin:12px 0;border-collapse:collapse}.program-page .program-statement .markdown td,.program-page .program-statement .markdown th{border:1px solid var(--line);padding:7px 10px;text-align:center;background:transparent}.program-page .program-statement .markdown pre{margin:1em 0}.program-page .program-statement .markdown{white-space:normal}@media(min-width:951px)and (min-height:700px){.program-desktop .program-layout{grid-template-columns:minmax(0,var(--statement-fr, 45fr)) 12px minmax(0,var(--editor-fr, 55fr))}.program-desktop .program-code>p.muted{margin:5px 0 8px}.program-desktop .program-work>.panel{margin:0}.program-desktop .program-results>summary{padding:8px 14px}.program-desktop .program-results{margin-top:10px!important}.program-desktop .code-editor{font-size:14px}}@media(max-width:950px),(max-height:699px){.program-page.coding .program-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}.program-page .program-work{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.program-page .program-work>.coding-heading,.program-page .program-work>.panel{min-width:0}.program-page .coding-heading,.program-page .program-work>.panel,.program-page .program-config{margin:0}.program-page .program-actions{position:sticky;bottom:0;z-index:2;padding-block:10px;background:#fff}}@media(max-width:520px){.program-page .program-statement .markdown table{font-size:11px}.program-page .program-statement .markdown td,.program-page .program-statement .markdown th{padding:5px}.program-page .program-statement{overflow:hidden}}.program-page .program-code .code-editor{font:13px/1.8 Consolas,Cascadia Code,monospace;color:#e3efff;min-height:220px;border-radius:9px 9px 0 0}@media(min-width:951px)and (min-height:700px){.program-desktop .program-code .code-editor{font-size:14px}}.program-page .code-editor .cm-editor{font-size:14px}.program-page .program-code .code-editor[data-theme=light]{background:#fff;color:#24292f;border-color:#d0d7de;color-scheme:light}.program-page .program-statement .markdown .code-number{display:none}.program-page .program-statement .markdown .code-line{display:block;min-height:0;line-height:inherit}.program-page .scoring-help{font-size:12px;color:var(--muted);margin:12px 0;line-height:1.7}@media(min-width:951px)and (min-height:700px){.program-desktop .scoring-help{flex:none;margin:6px 0 0;font-size:11px}}.program-page .question-return-toolbar .question-position{margin-left:auto;color:#617087;font-size:13px}.program-page .program-statement-scroll{min-width:0}.program-page .program-statement-footer{display:flex;justify-content:flex-end;padding-top:12px;margin-top:16px;border-top:1px solid #e1e8f0;background:#fff}.program-page .program-statement-footer .program-code-feedback{margin:0;position:static}.program-page .program-code>.program-config{align-items:center;gap:8px 12px;margin:0 0 10px;min-height:34px}.program-page .program-config>label{gap:6px}.program-page .program-config>.editor-completion-control{flex:none;white-space:nowrap;cursor:pointer}.program-page .editor-completion-control input{margin:0;accent-color:#2f6fed}.program-page .program-config select{padding:5px;font-size:12px;flex:none}.program-page .program-config .program-language{color:#617087;font-size:12px}.program-page .runtime-toggle{margin-left:auto;white-space:nowrap}.program-page .editor-fullscreen-toggle{white-space:nowrap}.program-page .program-runtime-details{font-size:12px;line-height:1.7;color:#617087;overflow-wrap:anywhere;border:1px solid #e1e8f0;border-radius:7px;padding:6px 10px;margin-bottom:10px}.program-page .program-runtime-details p{margin:4px 0}.program-page .cloud-draft-status{min-width:0;overflow-wrap:anywhere}.program-page .cloud-draft-status>button{margin-left:6px}.program-page .cloud-draft-status pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto;font:12px/1.6 Consolas,monospace}.program-page .cloud-draft-status summary{cursor:pointer;color:#2f6fed}.program-page .cloud-draft-status button{font-size:12px}.program-page .editor-footer{align-items:baseline;flex-wrap:wrap}.program-page .code-back-button{white-space:nowrap}.program-page .editor-format-actions{display:flex;align-items:center;gap:10px;flex:none}.program-page .editor-format-actions button{white-space:nowrap}.program-page .editor-format-status{color:#2f6fed;overflow-wrap:anywhere}.program-page .program-code{container-type:inline-size;container-name:program-code}@container program-code (max-width: 560px){.program-page .editor-control-label{display:none}.program-page .program-config{gap:8px}}@media(min-width:951px)and (min-height:700px){.program-desktop .program-statement{display:flex;flex-direction:column;overflow:hidden;scrollbar-gutter:auto}.program-desktop .program-statement-scroll{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;margin-right:-24px;padding-right:24px}.program-desktop .program-statement-footer{flex:none;margin-top:8px;padding-top:8px}.program-desktop .program-code>.program-config{margin-bottom:10px}.program-desktop .code-back-button{display:none}.program-desktop .program-editor-bottom{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;gap:12px;padding-block:8px;background:#fff}.program-desktop .program-editor-bottom .editor-footer{flex:1;min-width:0;margin:0}.program-desktop .program-editor-bottom .resize-hint{display:none}.program-desktop .program-editor-bottom .program-actions{position:static;flex:none;margin:0;padding:0}.program-desktop .program-editor-bottom .program-actions>button{padding:8px 12px}}@media(max-width:650px){.program-page .program-config{gap:8px}.program-page .program-config .program-language,.program-page .editor-footer .resize-hint{display:none}}.program-page.editor-fullscreen .program-work{position:fixed;inset:0;z-index:150;height:100dvh;box-sizing:border-box;display:block;overflow:auto;padding:12px;background:#f7f8fb}.program-page.editor-fullscreen .program-code{display:flex;flex-direction:column;box-sizing:border-box;height:calc(100dvh - 76px);min-height:420px;margin:0 0 8px}.program-page.editor-fullscreen .program-code>*{flex-shrink:0}.program-page.editor-fullscreen .code-editor{flex:1 0 160px;height:0;min-height:160px;border-radius:8px}.program-page.editor-fullscreen .code-resizer{display:none}.program-page.editor-fullscreen .program-results{margin:0}.program-page.editor-fullscreen .program-config{align-items:center}.program-page.editor-fullscreen .code-back-button{display:none}.program-editor-frame{display:contents}.program-page .practice-editor-frame{display:flex;flex-direction:column;min-width:0;border:1px solid var(--editor-resizer-border);border-radius:9px}.program-page .practice-editor-frame .code-editor{border:0;border-radius:8px 8px 0 0}.program-page .practice-editor-frame .code-resizer{height:12px;margin-top:0;border:0;border-radius:0}.program-page .practice-editor-frame .code-resizer:after{top:4px}.program-page .practice-editor-frame .program-editor-bottom{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:4px 8px;border-top:1px solid var(--editor-resizer-border);border-radius:0 0 8px 8px}.program-page .practice-editor-frame .editor-footer{flex:1 1 180px;min-width:0;justify-content:flex-start;flex-wrap:wrap;gap:4px 8px;margin:0;overflow-wrap:anywhere}.program-page .practice-editor-frame .legacy-code-drafts{min-width:0}.program-page .practice-editor-frame .legacy-code-drafts[open]{flex-basis:100%}.program-page .practice-editor-frame .legacy-code-drafts summary{color:var(--blue);cursor:pointer}.program-page .practice-editor-frame .program-actions{position:static;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin:0 0 0 auto;padding:0}.program-page .practice-editor-frame .program-actions>button{flex:none;min-height:32px;padding:4px 9px}.program-page.editor-fullscreen .practice-editor-frame{flex:1 0 auto}.program-page .program-reading-header{display:flex;flex:none;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-bottom:16px;padding-bottom:4px;border-bottom:1px solid #e1e8f0}.program-reading-header .program-return{color:var(--blue);font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}.program-reading-header .program-return:hover{text-decoration:underline}.program-page .program-reading-header .program-reading-tabs{gap:2px;margin:0;border:0}.program-page .program-reading-header .program-reading-tabs>button{white-space:nowrap;font-size:13px;padding:9px 8px}.program-reading-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.program-reading-actions .question-position{font-size:13px;white-space:nowrap;color:#66758b}.program-page .program-reading-header .program-open-code{padding:7px 10px}.program-page .program-question-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.program-page .program-submissions>.program-history-row{width:100%;margin-bottom:6px}.submission-detail{margin-bottom:16px}.program-page .program-practice-output{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;border:1px solid #e1e8f0;border-radius:12px}.practice-output-tabs{display:flex;flex:none;background:#f7f9fc;padding-inline:12px}.program-practice-output.is-expanded .practice-output-tabs{border-bottom:1px solid #e1e8f0}.practice-output-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:8px 12px;font-weight:650}.practice-output-tabs button[aria-expanded=true]{border-bottom-color:var(--blue);color:var(--blue)}.practice-output-tabs .collapse-output{margin-left:auto;color:#52647f}.program-self-test{display:flex;flex-direction:column;flex:1;gap:8px;min-height:0}.program-self-test{min-width:0;padding:12px;overflow:auto}.self-test-cases{display:flex;flex-wrap:wrap;flex:none;gap:6px}.self-test-cases button{padding:5px 10px;font-size:13px}.self-test-cases button[aria-pressed=true]{border-color:#b7cff9;background:#edf4ff;color:var(--blue)}.self-test-heading{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.self-test-input textarea,.program-self-test pre{min-width:0;margin:0;padding:8px 10px;border:1px solid #dce5f0;border-radius:6px;background:#f7f9fc;color:#243349;font:13px/1.5 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.self-test-input textarea{min-height:80px;flex:1;resize:vertical}.self-test-example{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.self-test-example>:only-child{grid-column:1 / -1}.self-test-example pre{min-height:46px;max-height:110px;overflow:auto}.self-test-heading button{font-size:12px}.self-test-compiler-warnings summary{color:var(--muted);cursor:pointer;font-size:12px}.self-test-compiler-warnings pre{max-height:8rem;margin-top:4px;overflow:auto}.self-test-case{font-size:13px}.program-self-test>p,.self-test-case>p{margin:0 0 6px}@media(min-width:951px)and (min-height:700px){.program-desktop .program-work>.program-practice-output{margin-top:10px}.program-desktop .program-work>.program-practice-output.is-expanded{height:clamp(225px,30dvh,310px)}}@media(max-width:580px){.program-page .program-reading-header{gap:4px 8px}.program-page .program-reading-header .program-reading-tabs>button{padding-inline:4px}.self-test-example{grid-template-columns:minmax(0,1fr)}}
