.field-help-caption{position:relative}.field-help-trigger{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:22px;height:22px;min-height:22px;padding:0;margin-left:7px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--brand);font-size:12px;line-height:1;font-weight:700;cursor:pointer}.field-help-trigger:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.field-help-panel{position:absolute;z-index:30;top:calc(100% + 7px);left:0;width:min(340px,80vw);padding:14px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--ink);box-shadow:0 8px 24px #0002;font-size:13px;font-weight:400;line-height:1.65}.field-help-panel[hidden]{display:none}.task-required-note{padding:12px 14px;border-left:3px solid var(--brand);background:var(--surface);font-size:13px;line-height:1.6}.required-field-marker{font-weight:400;color:var(--muted);font-size:11px}
.algorithm-explainer{margin:0 0 24px;padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.algorithm-explainer h4{margin:0 0 10px;font-size:18px}.algorithm-explainer p{font-size:13px;line-height:1.65}.algorithm-flow{max-width:760px;margin:20px auto;display:grid;gap:12px;text-align:center}.algorithm-flow-input{justify-self:center;padding:10px 25px;border-radius:30px;background:var(--brand);color:#fff;font-weight:600}.algorithm-flow-paths{display:grid;grid-template-columns:1fr 1fr;gap:20px}.algorithm-flow-path{display:grid;gap:8px;padding:16px;border:1px solid var(--border);border-radius:10px}.algorithm-flow-arrow{color:var(--brand)}.algorithm-flow-compare{display:grid;gap:8px;border:1px dashed var(--brand);padding:16px;border-radius:10px;font-size:13px}.code-library-note{grid-column:1/-1;padding:13px 16px;border-left:3px solid var(--brand);background:var(--surface);font-size:13px;line-height:1.65}.code-library-note p{margin:0 0 5px}.code-library-note a{color:var(--brand);font-weight:600}.algorithm-limit-note{display:block;margin-top:6px}.algorithm-limit-note[hidden]{display:none}
.code-environment-page{max-width:1000px;margin:0 auto;padding:26px 24px 70px}.code-environment-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:20px;margin-bottom:30px}.code-environment-page h1{font-size:36px;margin:10px 0 16px}.code-environment-page h2{margin:0 0 14px}.code-environment-page section{padding:24px;border:1px solid var(--border);border-radius:12px;margin:24px 0;background:var(--surface)}.code-environment-page p,.code-environment-page li{line-height:1.7}.code-environment-page a{color:var(--brand)}.code-environment-page table{width:100%;border-collapse:collapse}.code-environment-page th,.code-environment-page td{text-align:left;padding:10px;border-bottom:1px solid var(--border)}.code-environment-page pre{padding:16px;overflow:auto;background:var(--surface-2,#f4eee2);border-radius:8px}.code-package-list{max-height:540px;overflow:auto}.code-environment-source{font-size:13px;color:var(--muted)}
@media(max-width:650px){.algorithm-flow-paths{grid-template-columns:1fr;gap:12px}.algorithm-explainer{padding:14px}.code-environment-page{padding:18px 16px 40px}.code-environment-page section{padding:18px}.code-environment-page h1{font-size:29px}.field-help-trigger{width:28px;height:28px}.field-help-panel{width:min(300px,76vw)}}

.task-layout-heading .eyebrow,.task-layout-heading > .pill,.task-layout-heading > .studio-status-pill{display:none}
.task-layout-heading h3,.task-layout-test > h3{font-size:17px;margin:0}
.task-layout-basics-grid{align-items:start}
.task-layout-identity{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,132px);align-items:start;gap:12px}
.task-layout-statement-label{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;font-size:13px;font-weight:650}
.task-layout-preview{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.task-layout-preview .button{margin:0;min-height:36px;padding:6px 11px}
.task-layout-preview [aria-disabled="true"]{opacity:.65;cursor:default}
.task-layout-preview small:empty{display:none}
.task-layout-options{border:1px solid var(--border);border-radius:8px;padding:9px 12px;background:var(--surface)}
.task-layout-model-training > #task-editor-resources{margin:12px 0 0;padding:0;border:0;background:none;box-shadow:none}
.task-layout-model-training .task-editor-section-heading{display:none}
.task-layout-training-files{min-width:0;margin:0;padding:0;border:0}
.task-layout-options > summary{font-weight:650;cursor:pointer}
.task-layout-options[open] > :is(.task-editor-grid,.ml-runtime-controls,.task-layout-options-content){margin-top:12px}
.task-layout-test{display:grid;gap:12px;border-top:1px solid var(--border);padding-top:14px}
.task-layout-test[hidden],.task-editor-nav a[hidden],.task-layout-test [hidden]{display:none!important}
.task-layout-test > .task-editor-submission-test{margin:0}
.task-layout-actions{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:10px}
.task-layout-actions .task-editor-actions{margin:0}
.task-layout-actions .status:empty{flex:0;min-width:0}
.task-layout-actions #contest-task-submit:not(:disabled){background:var(--surface);border-color:var(--border-strong);color:var(--ink)}
.task-layout-test #task-editor-publish:not(:disabled){background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.task-layout-test .task-procedure{margin:10px 0 0}

#contest-task-editor.task-editor-compact :is(.task-family-card,.task-required-note,.task-layout-old-intro,.task-editor-nav [data-ml-editor-section]){display:none!important}
#contest-task-editor.task-editor-compact :is(.task-editor-section,.evaluation-panel,.ml-csv-panel,.ml-csv-section,.task-layout-test,.task-editor-submission-test){min-width:0}
#contest-task-editor.task-editor-compact :is(.task-editor-section,.task-layout-test){scroll-margin-top:72px}
#contest-task-editor.task-editor-compact .task-layout-options pre{contain:inline-size;overflow-x:auto}
#contest-task-editor.task-editor-compact .task-layout-type-picker{grid-template-columns:repeat(auto-fit,minmax(min(100%,142px),1fr));gap:7px}
#contest-task-editor.task-editor-compact .task-layout-type-picker .task-family-option{min-width:0;padding:8px;gap:6px;min-height:55px}
#contest-task-editor.task-editor-compact .task-layout-type-picker .task-family-option-icon{display:none}
#contest-task-editor.task-editor-compact .task-layout-type-picker small{line-height:1.25}
#contest-task-editor.task-editor-compact .markdown-workbench-body{min-height:0}
#contest-task-editor.task-editor-compact .markdown-workbench-body :is(.markdown-editor,.markdown-preview){min-height:165px;height:165px}
#contest-task-editor.task-editor-compact .task-editor-submission-test-heading :is(.eyebrow,.pill){display:none}
#contest-task-editor.task-editor-compact #task-editor-ml-scoring .evaluation-panel-heading > .pill{display:none}
#contest-task-editor[data-authoring-layout="algorithm"] #task-editor-test-dataset-guide{display:none}
#contest-task-editor[data-authoring-layout="algorithm"] .algorithm-explainer{margin:0 0 12px;padding:9px 12px}
#contest-task-editor[data-authoring-layout="algorithm"] .task-editor-testcase{grid-template-columns:minmax(0,1fr) auto}
#contest-task-editor[data-authoring-layout="algorithm"] .task-editor-testcase label:has([data-case-name]),
#contest-task-editor[data-authoring-layout="algorithm"] .task-editor-testcase label:has([data-case-subtask]:is(:not([value]),[value=""])){display:none}
#contest-task-editor:not([data-authoring-layout="algorithm"]) #task-editor-classic-panel h4 .required-field-marker{display:none}
@media(max-width:540px){.task-layout-identity{grid-template-columns:minmax(0,1fr) minmax(70px,94px)}.task-layout-actions{display:grid}}
