@font-face{font-family:Golos;src:url(/fonts/golos-text-regular.ttf)}@font-face{font-family:Golos;src:url(/fonts/golos-text-demibold.ttf);font-weight:600}@font-face{font-family:Golos;src:url(/fonts/golos-text-bold.ttf);font-weight:700}@font-face{font-family:Oswald;src:url(/fonts/oswald-bold.ttf);font-weight:700}:root{color:#181918;--orange:#ff3700;--ink:#181918;--muted:#737777;--line:#e8ebec;--blue:#177ccc;--blue-heading:#122f50;--sky-surface:linear-gradient(100deg, #e9f3fb55, #eff6fac9), url(/textures/sky-numbers.png) center 48% / cover;--sky-ink:#102f4c;background:#f6f7f8;font-family:Golos,Arial,sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button,a{touch-action:manipulation}button{border:0}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2{letter-spacing:-.035em}h3{letter-spacing:-.025em;font-size:1.2rem}p{line-height:1.6}small{font-size:.82rem;line-height:1.5}input,textarea,select{width:100%;min-height:46px;color:var(--ink);background:#fff;border:1px solid #dce1e3;border-radius:10px;outline:none;padding:12px 14px}input:focus,textarea:focus,select:focus{border-color:#ff3700;box-shadow:0 0 0 3px #ff370014}select:not([multiple]){-webkit-appearance:none;appearance:none;cursor:pointer;background-image:url(/icons/chevron-down.svg);background-position:right 16px center;background-repeat:no-repeat;background-size:16px 16px;padding-right:44px}select:disabled{cursor:not-allowed}@media (forced-colors:active){select:not([multiple]){-webkit-appearance:auto;appearance:auto;background-image:none}}input[type=checkbox]{width:19px;height:19px;min-height:0;accent-color:var(--orange)}:is(button:focus-visible,a:focus-visible,summary:focus-visible){outline-offset:4px;outline:3px solid #0086dd}textarea{resize:vertical}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.82rem;line-height:1.6}code{font-family:monospace}summary{cursor:pointer}.brand{white-space:nowrap;align-items:flex-end;gap:8px;display:flex}.brand img{height:auto;display:block;transform:translateY(-2px)}.brand img:first-child{filter:brightness(0);width:65px}.brand img:last-child{width:137px}.brand span{align-self:center;font-size:12px}.overline{text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px;font-size:.75rem;font-weight:600}.muted{color:var(--muted);font-size:.9rem}.text-link{text-underline-offset:4px;font-size:.875rem;text-decoration:underline}.button{border-radius:13px;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:13px 23px;font-size:.9rem;font-weight:600;transition:background .2s,transform .2s;display:inline-flex}.button:hover{transform:translateY(-1px)}.primary{color:#fff;background:var(--orange);box-shadow:inset 0 1px 3px #ffffff50}.primary:hover{background:#e93200}.secondary{color:var(--ink);background:#fff;box-shadow:inset 0 0 0 1px #e1e5e7}.quiet{color:var(--ink);background:0 0;border-radius:8px;padding:8px 10px;font-size:.85rem}.quiet:hover{background:#e9eef2}.button-row{flex-wrap:wrap;gap:10px;display:flex}.field{flex-direction:column;gap:8px;font-size:.88rem;font-weight:600;display:flex}.field small{color:var(--muted);font-weight:400}.form{flex-direction:column;gap:19px;display:flex}.form>.button{align-self:flex-start}.form-grid{grid-template-columns:1fr 1fr;gap:20px;display:grid}.error,.success,.notice{border-radius:12px;margin-bottom:15px;padding:15px 18px;font-size:.9rem;line-height:1.55}.error{color:#b12c0a;background:#fff0ed}.success{color:#217242;background:#edf8f1}.notice{color:#36526c;background:#eef4fa}.panel{background:#fff;border-radius:20px;padding:28px}.two-cols{grid-template-columns:1fr 1fr;gap:22px;display:grid}.empty{text-align:center;color:var(--muted);background:#fff;border-radius:20px;padding:58px 24px}.empty h3{color:var(--ink);margin:20px 0 10px}.empty-mark{color:#c4dced;letter-spacing:-.04em;font:700 2.4rem Oswald;display:inline-block}.empty p{max-width:420px;margin:0 auto;font-size:.9rem}.loading{place-items:center;min-height:100vh;display:grid}.status{white-space:nowrap;color:#61686d;background:#edf0f2;border-radius:8px;padding:7px 11px;font-size:.74rem;font-weight:600;display:inline-block}.status.live,.status.accepted,.status.stage_passed,.status.open{color:#267243;background:#e9f5ed}.status.paused,.status.review{color:#876029;background:#fff1dc}.status.error,.status.rejected{color:#bc3c23;background:#fff0ec}.status.running{color:#2572ae;background:#eaf3fc}.login-page{background:#fff;grid-template-columns:1.15fr 1fr;min-height:100svh;display:grid}.login-story{color:#fff;background:linear-gradient(170deg,#007ed7 0%,#80c1e4 55%,#edf6f9 100%);grid-template-rows:1fr auto 1fr;padding:44px 56px;display:grid;position:relative;overflow:hidden}.login-story>.brand{align-self:start}.login-story .brand img{filter:brightness(0)invert()}.login-story>div:nth-child(2){text-align:left;padding:36px 0}.login-story h1{letter-spacing:-.04em;margin:0;font:700 clamp(4rem,7.2vw,8rem)/1.05 Oswald}.login-caption{max-width:350px;font-size:1.1rem}.login-bottom{color:#273f51;justify-content:space-between;font-size:.875rem;display:flex}.login-form{place-self:center;width:min(100%,490px);padding:80px 42px}.login-form h2{margin-bottom:16px;font-size:2.4rem;line-height:1.15}.login-form .form{margin-top:36px}.login-form .button{border-radius:15px;width:100%;min-height:54px}.login-help{color:var(--muted);margin:34px 0 28px;font-size:.85rem}.password-page{place-items:center;min-height:100svh;display:grid}.password-page .panel{width:min(92%,500px)}.password-page h1{margin-top:40px}.app-shell{min-height:100svh;display:flex}.sidebar{border-right:1px solid var(--line);z-index:30;background:#fff;flex-direction:column;width:264px;padding:30px 22px 22px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-heading{letter-spacing:-.035em;margin-top:0;font:700 1.8rem/1.1 Oswald}.sidebar-heading+nav{margin-top:32px}.role-label{color:var(--muted);margin:14px 0 33px;font-size:.74rem}.sidebar nav{flex-direction:column;gap:6px;display:flex}.sidebar nav button{text-align:left;color:#62666a;background:0 0;border-radius:10px;align-items:center;gap:13px;padding:14px 12px;font-size:.86rem;display:flex}.sidebar nav button:hover{background:#f6f8f9}.sidebar nav button.active{color:#d93107;background:#fff0e9;font-weight:600}.nav-number{color:#8b949a;min-width:17px;font-size:.68rem}.active .nav-number{color:#e65431}.sidebar-footer{grid-template-columns:36px minmax(0,1fr);align-items:center;gap:9px;margin-top:auto;padding-top:32px;font-size:.78rem;display:grid}.sidebar-footer strong{text-overflow:ellipsis;max-width:115px;display:block;overflow:hidden}.sidebar-footer small{color:var(--muted);font-size:.7rem;display:block}.avatar{color:#35729d;background:#eaf2f9;border-radius:50%;flex-shrink:0;place-items:center;width:36px;height:36px;display:inline-grid}.logout{color:#c8320b;background:#fff0e9;border-radius:12px;grid-column:1/-1;justify-content:center;align-items:center;gap:9px;min-height:44px;margin-top:9px;font-size:.875rem;font-weight:500;transition:background .2s,color .2s;display:flex}.logout:hover{color:#fff;background:#ff3700}.workspace{flex-direction:column;flex:1;min-width:0;margin-left:264px;display:flex}.content{flex:1;width:100%;max-width:1500px;margin:auto;padding:34px 38px 55px}.workspace-footer{color:#8b9195;justify-content:space-between;padding:22px 38px;font-size:.72rem;display:flex}.announcement{white-space:pre-line;background:#fff1e9;border-radius:14px;gap:20px;margin-bottom:24px;padding:17px 22px;font-size:.85rem;display:flex}.announcement strong{flex-shrink:0}.page-title{justify-content:space-between;align-items:center;gap:20px;margin:12px 0 30px;display:flex}.page-title h1{margin:0;font-size:2.5rem;font-weight:600}.page-title .overline{color:var(--muted);margin-bottom:10px}.mobile-toggle{display:none}.battle-hero,.admin-hero{background:var(--sky-surface);color:var(--sky-ink);border-radius:25px;justify-content:space-between;align-items:center;gap:24px;min-height:295px;padding:36px 42px;display:flex;position:relative;overflow:hidden}.battle-hero h1,.admin-hero h1{letter-spacing:-.035em;margin:16px 0 20px;font:700 4.8rem/1 Oswald}.battle-hero{flex-wrap:wrap}.battle-hero>div:first-child{flex:330px;min-width:0}.battle-hero h1{font-size:clamp(3.4rem,5vw,6rem)}.battle-hero p:last-child{max-width:330px;margin:0;font-size:.88rem}.hero-stats{flex:0 auto;gap:clamp(16px,3vw,42px);max-width:100%;display:flex}.hero-stats>div{flex-direction:column;gap:12px;display:flex}.hero-stats strong{letter-spacing:-.04em;font:700 5.7rem/1 Oswald}.hero-stats span{font-size:.8rem}.section-heading{justify-content:space-between;align-items:center;gap:15px;margin:36px 0 22px;display:flex}.section-heading h2{margin:0;font-size:1.6rem}.section-heading .muted{font-size:.77rem}.filters,.segmented{flex-wrap:wrap;gap:8px;margin-bottom:24px;display:flex}.battle-hero+.filters{margin-top:28px}.filters button,.segmented button{color:#6b747a;background:#fff;border-radius:9px;padding:11px 17px;font-size:.82rem}.filters button.selected,.segmented button.selected{background:var(--ink);color:#fff}.task-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;display:grid}.task-card{text-align:left;background:#fff;border-radius:19px;flex-direction:column;min-height:200px;padding:25px;transition:transform .2s,box-shadow .2s;display:flex}.task-card:hover{transform:translateY(-3px);box-shadow:0 12px 32px #1a47610c}.task-card:disabled{opacity:1;cursor:not-allowed;color:#666d74;box-shadow:none;background:#edf0f3;transform:none}.task-card-locked .task-card-bottom>span{color:#666d74}.task-card-locked h3{color:#626a73}.task-card>div:first-child{justify-content:space-between;align-items:center;margin-bottom:23px;display:flex}.tag{color:#fff;background:var(--blue-heading);border-radius:999px;align-items:center;padding:7px 12px;font-size:.75rem;font-weight:400;line-height:1.25;display:inline-flex}.task-index{color:#b3c3cd;font:700 1.6rem Oswald}.task-card h3{margin-bottom:12px;font-size:1.3rem}.task-card-bottom{color:#93999d;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;font-size:.75rem;display:flex}.task-card-bottom strong{color:var(--orange);font-size:1.4rem}.task-card-bottom strong span{font-size:.73rem;font-weight:400}.task-card-bottom>span{color:#495961}.task-card.task-card-solved{background:#e8f5ed;box-shadow:inset 0 0 0 1px #b9dec7}.task-card-solved:hover:not(:disabled){box-shadow:inset 0 0 0 1px #9cccaf,0 12px 32px #1a47610c}.task-card-solved .task-index{color:#6c9e80}.task-card-bottom>.task-card-status-solved{color:#14663a;background:#ccebd8;border-radius:8px;flex-shrink:0;align-items:center;gap:6px;padding:7px 10px;font-weight:700;display:inline-flex}.task-card-status-solved svg{flex-shrink:0}.table-wrap{padding:0;overflow:auto}table{border-collapse:collapse;text-align:left;width:100%;font-size:.85rem}th{color:#7e868c;border-bottom:1px solid var(--line);white-space:nowrap;padding:18px 22px;font-size:.72rem;font-weight:400}td{border-bottom:1px solid #eff1f2;padding:20px 22px}tr:last-child td{border-bottom:0}td strong{font-weight:600}td small{color:#80878c;margin-top:5px;display:block}.rank{color:#bcc8cf;font:700 2rem Oswald}.score{color:#223c51;font:700 1.5rem Oswald}.own-team{background:#fff4ec}.member{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:16px 0;font-size:.9rem;display:flex}.member span:last-child{color:var(--muted);margin-left:auto;font-size:.8rem}.sky-panel{background:linear-gradient(130deg,#ffffffa0,#e6f1fabb),url(/textures/sky-numbers.png) 50%/cover}.invite{letter-spacing:.06em;padding:20px 0;font-size:1.35rem;display:block}.admin-hero{min-height:245px}.admin-hero h1{font-size:4.4rem}.event-summary{flex-direction:column;align-items:flex-start;gap:18px;max-width:210px;font-size:.9rem;display:flex}.event-summary small{color:#536f85}.metric-grid{grid-template-columns:repeat(4,1fr);gap:18px;margin:22px 0;display:grid}.metric-card{background:#fff;border-radius:19px;flex-direction:column;justify-content:space-between;gap:26px;padding:23px 24px;display:flex}.metric-card>span{color:#707980;font-size:.78rem}.metric-card>strong{letter-spacing:-.035em;font:700 3.5rem/1 Oswald}.metric-card:last-child>strong{color:var(--orange)}.queue-row{border-bottom:1px solid var(--line);justify-content:space-between;padding:18px 0;font-size:.85rem;display:flex}.queue-row strong{font-size:1.2rem}.overview-bottom .muted{margin:24px 0 0;font-size:.8rem}.activity{border-bottom:1px solid var(--line);flex-direction:column;gap:5px;padding:14px 0;font-size:.83rem;display:flex}.activity small{color:var(--muted)}.admin-task-list{flex-direction:column;gap:12px;display:flex}.task-order-hint{margin:-8px 0 20px;font-size:.82rem}.admin-task-row{background:#fff;border-radius:16px;align-items:stretch;display:flex;position:relative}.admin-task-row.dragging{opacity:.5}.admin-task-row.drop-before:before,.admin-task-row.drop-after:after{content:"";background:var(--orange,#ff4500);pointer-events:none;border-radius:4px;height:3px;position:absolute;inset-inline:0}.admin-task-row.drop-before:before{top:-7px}.admin-task-row.drop-after:after{bottom:-7px}.task-drag-handle{color:#8a969e;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border-radius:16px 0 0 16px;flex:0 0 40px;place-items:center;display:grid}:is(.task-drag-handle:hover,.task-drag-handle:focus-visible){color:#ff4500;background:#fff0e9}.task-drag-handle:active{cursor:grabbing}.admin-task-row>.admin-task{flex:1;min-width:0;padding-left:8px}.admin-task{text-align:left;background:#fff;border-radius:16px;align-items:center;gap:23px;padding:23px 26px;display:flex}.admin-task>div{flex:1}.admin-task h3{margin:0 0 7px;font-size:1.05rem}.admin-task>div>span{color:var(--muted);font-size:.78rem}.admin-task>strong{font-size:.83rem}.edit-label{color:var(--muted);font-size:.75rem}.settings-panel{max-width:950px}.switches{flex-direction:column;gap:20px;margin-block:10px;display:flex}.switches label,.check{align-items:center;gap:12px;font-size:.9rem;display:flex}.search-row{align-items:center;gap:25px;margin-bottom:24px;display:flex}.search-row input{max-width:430px}.pagination{justify-content:flex-end;align-items:center;gap:16px;padding-top:22px;font-size:.8rem;display:flex}.modal{color:var(--ink);background:#fff;border:0;border-radius:23px;width:calc(100% - 32px);max-width:570px;max-height:calc(100svh - 48px);margin:auto;padding:30px;inset:0;box-shadow:0 20px 90px #173a5833}.modal.wide{max-width:850px}.modal.puzzle-modal{flex-direction:column;width:calc(100vw - 32px);max-width:1880px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:24px;display:flex;overflow:hidden}.puzzle-modal .modal-title{flex:none;margin-bottom:18px}.puzzle-modal .modal-title h2{font-size:26px}.jigsaw-step{color:var(--blue-heading);flex:none;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:16px;display:flex}.jigsaw-step span{color:var(--muted);white-space:nowrap;font-size:13px}.jigsaw-assembly{flex-direction:column;flex:1;min-height:0;display:flex}.jigsaw-assembly[hidden]{display:none}.jigsaw-matching{flex:1;grid-template-rows:repeat(2,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;min-height:0;padding:2px;display:grid;overflow:auto}.jigsaw-picture{background:#edf3f8;border:1px solid #dce5ec;border-radius:18px;flex-direction:column;min-width:0;min-height:0;padding:14px;display:flex}.jigsaw-preview{border-radius:10px;flex:1 1 0;width:100%;height:0;min-height:0;display:block}.jigsaw-picture label{color:var(--blue-heading);gap:8px;margin-top:14px;font-size:14px;display:grid}.jigsaw-picture select{background-color:#fff;width:100%;min-width:0;margin:0}.jigsaw-assembly>.jigsaw-footer{justify-content:flex-end}.jigsaw-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;display:flex}.jigsaw-controls{align-items:center;gap:8px;min-width:0;display:flex}.jigsaw-controls button{min-height:42px;color:var(--blue-heading);background:#eef3f7;border-radius:10px;padding:10px 14px;font-weight:700}.jigsaw-controls button:disabled{opacity:.4;cursor:default}.jigsaw-context{z-index:30;background:#fff;border:1px solid #dce5ec;border-radius:14px;width:256px;padding:6px;position:fixed;box-shadow:0 10px 32px #122f5030}.jigsaw-context button{width:100%;min-height:44px;color:var(--blue-heading);text-align:left;background:0 0;border-radius:9px;align-items:center;gap:10px;padding:10px 12px;font-size:14px;display:flex}:is(.jigsaw-context button:hover,.jigsaw-context button:focus-visible){background:#edf3f8;outline:none}.jigsaw-context button:disabled{opacity:.4;cursor:default}.jigsaw-context button span{text-align:center;width:22px;font-size:22px;line-height:1}.jigsaw-context .jigsaw-detach{border-top:1px solid #edf3f8;border-radius:0 0 9px 9px;margin-top:3px}.jigsaw-controls select{width:290px;min-width:0;max-width:100%;margin:0;padding:11px 44px 11px 12px;font-size:14px}.jigsaw-zoom span{text-align:center;width:42px;color:var(--muted);font-size:13px}.jigsaw-viewport{overscroll-behavior:contain;background:#edf3f8;border:1px solid #dce5ec;border-radius:18px;flex:1;min-height:180px;position:relative;overflow:auto}.jigsaw-canvas{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;background:radial-gradient(circle,#c7d4df .8px,#0000 1px) 0 0/20px 20px;max-width:none;margin:auto;display:block}.jigsaw-piece{cursor:grab;filter:drop-shadow(0 2px 2px #122f5038);outline:none}.jigsaw-piece:active{cursor:grabbing}.jigsaw-piece:focus-visible{filter:drop-shadow(0 0 4px var(--orange))}.jigsaw-label rect{fill:var(--blue-heading)}.jigsaw-label text{fill:#fff;font-size:16px;font-weight:600}.jigsaw-footer{flex:none;justify-content:space-between;align-items:center;gap:20px;padding-top:16px;display:flex}.jigsaw-footer>.button{white-space:nowrap}.jigsaw-places{flex-wrap:wrap;gap:7px;display:flex}.jigsaw-places button{color:var(--blue-heading);text-align:left;background:#edf3f8;border-radius:18px;padding:8px 12px;font-size:12px}.jigsaw-places button.assigned{color:#fff;background:var(--blue-heading)}.jigsaw-places button:disabled{cursor:default}.puzzle-modal>.error{flex:none;margin:8px 0 0;padding:8px 12px}@media (max-width:850px){.modal.puzzle-modal{border-radius:18px;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:16px}.puzzle-modal .modal-title h2{font-size:22px}.jigsaw-toolbar{gap:8px;margin-bottom:10px}.jigsaw-controls{flex-wrap:wrap}.jigsaw-controls select{flex:1 0 100%;width:100%}.jigsaw-footer{flex-wrap:wrap;gap:10px;padding-top:10px}.jigsaw-footer>.button{width:100%;min-height:44px}.jigsaw-places button{padding:6px 9px;font-size:11px}}@media (max-width:560px){.jigsaw-matching{grid-template-rows:none;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:start;gap:14px}.jigsaw-preview{aspect-ratio:4/3;flex:none;height:auto}.jigsaw-picture{min-height:auto;padding:10px;display:block}.jigsaw-matching-footer{flex-wrap:nowrap}.jigsaw-matching-footer>.button{white-space:normal;flex:1;width:auto;min-width:0;padding:10px;font-size:13px}}@media (min-width:1100px){.jigsaw-picture{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:18px;display:grid}.jigsaw-preview{height:100%}.jigsaw-picture label{margin-top:0}}@media (min-width:561px) and (max-height:600px){.jigsaw-matching{grid-template-rows:repeat(2,260px)}}.modal::backdrop{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#132b4059}.modal-title{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:25px;display:flex}.modal-title h2{margin:0;font-size:1.65rem;line-height:1.2}.modal-title .quiet{color:var(--muted);border-radius:12px;flex-shrink:0;padding:10px 16px}.statement{white-space:pre-wrap;overflow-wrap:anywhere;margin:28px 0 32px;line-height:1.7}.task-meta{flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:20px;font-size:.85rem;display:flex}.code-input{tab-size:4;font-family:monospace;font-size:.875rem}.submission-code{background:#f5f7f8;border-radius:12px;max-height:320px;padding:22px;overflow:auto}.rejudge{border-top:1px solid var(--line);margin-top:25px;padding-top:22px}.rejudge summary{font-size:.85rem}.rejudge .form{margin-top:20px}.current-score{margin-bottom:20px;font:700 3rem Oswald}.current-score small{font:400 .9rem Golos}.credential-list,.preview-list{max-height:280px;margin:20px 0;overflow:auto}.credential-list>div{flex-direction:column;gap:8px;padding:12px 0;font-size:.85rem;display:flex}.credential-list code{background:#f0f4f7;border-radius:7px;padding:10px}.preview-list p{font-size:.8rem}@media (min-width:1700px){.content{padding-top:45px}.battle-hero h1{font-size:6rem}.battle-hero{min-height:350px}.task-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:1150px){.sidebar{width:228px;padding-inline:16px}.workspace{margin-left:228px}.content{padding:26px 24px}.hero-stats{gap:24px;margin:0}.hero-stats strong{font-size:4.4rem}.battle-hero,.admin-hero{padding:29px}.metric-grid{gap:12px}.metric-card{padding:20px 16px}.overview-bottom{grid-template-columns:1fr}.admin-task{gap:15px}.edit-label{display:none}}@media (max-width:850px){.sidebar{width:260px;display:none;top:0;box-shadow:20px 0 50px #11284018}.sidebar.mobile-open{display:flex}.workspace{margin-left:0}.mobile-toggle{right:20px;bottom:max(20px, env(safe-area-inset-bottom));z-index:45;background:#fff;border-radius:14px;min-height:44px;padding:12px 20px;display:block;position:fixed;box-shadow:0 4px 24px #11284018}.content{padding:25px 20px 90px}.workspace-footer{padding-inline:20px}.page-title h1{font-size:2rem}.login-story{padding:36px}.login-story h1{font-size:4.5rem}.login-form{padding-inline:30px}}@media (max-width:600px){.login-page{grid-template-columns:1fr}.login-story{grid-template-rows:auto 1fr;min-height:290px;padding:26px}.login-story>div:nth-child(2){padding:35px 0 5px}.login-story h1{font-size:3.5rem;line-height:1.05}.login-story .overline,.login-caption,.login-bottom{display:none}.login-form{width:100%;max-width:none;padding:38px 26px}.login-form h2{font-size:2rem}.content{padding:23px 15px 90px}.battle-hero,.admin-hero{flex-direction:column;align-items:flex-start;padding:26px}.battle-hero h1,.admin-hero h1{font-size:4.1rem}.battle-hero>div:first-child{flex-basis:auto;width:100%}.battle-hero h1{font-size:clamp(2.75rem,11vw,4.1rem)}.hero-stats{gap:38px;width:100%;margin-top:10px}.hero-stats strong{font-size:3.2rem}.hero-stats>div{gap:6px}.section-heading{flex-direction:column;align-items:flex-start;gap:7px}.task-grid,.two-cols,.form-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr 1fr}.metric-card{gap:22px;padding:21px}.metric-card>strong{font-size:3rem}.event-summary{gap:12px;max-width:none}.event-summary small{display:none}.page-title{flex-direction:column;align-items:flex-start;gap:17px}.page-title .button{padding-inline:17px;font-size:.8rem}.filters{gap:6px}.filters button{padding:10px 12px;font-size:.74rem}.task-card{min-height:215px}.panel{padding:23px}.table-wrap{padding:0}td,th{white-space:nowrap;padding:16px}td small{white-space:normal;min-width:130px;max-width:200px}.responsive-table{overflow:visible}.responsive-table table,.responsive-table tbody{width:100%;min-width:0;display:block}.responsive-table thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.responsive-table tr{border-bottom:1px solid var(--line);padding:14px 16px;display:block}.responsive-table tr:last-child{border-bottom:0}.responsive-table td{white-space:normal;overflow-wrap:anywhere;border:0;grid-template-columns:minmax(0,1fr);align-items:baseline;gap:12px;min-width:0;padding:8px 0;display:grid}.responsive-table td[data-label]{grid-template-columns:85px minmax(0,1fr)}.responsive-table td[data-label]:before{content:attr(data-label);color:var(--muted);font:400 .75rem Golos,sans-serif}.responsive-table td small{min-width:0;max-width:none}.responsive-table td .status{justify-self:start}.admin-task{flex-wrap:wrap;gap:12px;padding:22px}.admin-task>div{flex-basis:calc(100% - 50px)}.admin-task>strong{margin-left:35px}.modal{padding:24px 20px}.modal-title h2{font-size:1.4rem}.announcement{flex-direction:column;gap:6px}.workspace-footer{gap:15px;font-size:.63rem}.search-row{gap:12px}.search-row .muted{white-space:nowrap;font-size:.75rem}}.answer-parts{gap:24px;min-width:0;display:grid}.answer-part{border:0;border-top:1px solid var(--line);min-width:0;margin:0;padding:22px 0 0}.answer-part legend{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;padding:0 8px 0 0;font-weight:600;line-height:1.6;display:block}.part-number{color:var(--blue);margin-right:10px;font-weight:700}.answer-options,.editor-options{gap:12px;display:grid}.answer-option{cursor:pointer;overflow-wrap:anywhere;background:#f6f7f8;border-radius:12px;align-items:center;gap:12px;min-height:52px;padding:14px 16px;line-height:1.5;display:flex}.answer-option>span{flex:1;min-width:0}.answer-option:has(input:checked){box-shadow:inset 0 0 0 1px var(--blue);background:#eaf3fc}.answer-option input,.editor-option>input:first-child{width:18px;height:18px;min-height:0;accent-color:var(--blue);flex:0 0 18px;margin:0;padding:0}.program-editor{text-align:left;border:1px solid #dbe1e5;border-radius:14px;margin:16px 0;overflow:hidden}.program-editor .cm-editor{background:#fff;min-height:330px;font-size:14px}.program-editor .cm-scroller{max-height:560px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}.program-editor .cm-gutters{color:#677582;background:#f5f7f8;border:0}.program-editor .cm-content{padding:16px 0}.program-editor .cm-focused{outline:2px solid var(--blue-heading);outline-offset:-2px}.code-toolbar,.code-submit{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.code-toolbar label{flex:1;gap:8px;max-width:360px;font-weight:700;display:grid}.code-toolbar select{width:100%}.code-runtime{color:var(--muted);font-size:.85rem;line-height:1.5}.code-verdict{margin-top:28px}.modal.code-modal[open]{flex-direction:column;width:calc(100vw - 48px);max-width:1680px;height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);display:flex;overflow:hidden}.code-modal>.modal-title,.code-modal>.task-meta{flex-shrink:0}.code-modal>.modal-title{margin-bottom:16px}.code-workspace{flex:1;grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);gap:28px;min-height:0;display:grid}.code-problem-pane{scrollbar-gutter:stable;min-width:0;min-height:0;padding-right:20px;overflow:auto}.code-problem-pane .statement{margin-top:0}.code-editor-pane{flex-direction:column;min-width:0;min-height:0;display:flex}.code-editor-pane>:not(.program-editor){flex-shrink:0}.code-editor-pane .code-runtime{margin:12px 0 0}.code-editor-pane .program-editor{flex:1;min-height:0}.code-editor-pane .cm-editor{height:100%;min-height:0}.code-editor-pane .cm-scroller{max-height:none}.code-editor-pane .code-submit{font-size:.85rem}.code-archive-pane{background:#f5f7f8;border-radius:20px;flex-direction:column;gap:20px;min-width:0;padding:24px;display:flex;overflow:auto}.modal.archive-only-modal{max-width:760px}.code-archive-pane h3,.code-archive-pane p{margin:0}.code-archive-pane>.button{align-self:flex-start}.code-archive-upload{border:1px dashed var(--blue-heading);overflow-wrap:anywhere;background:#fff;border-radius:16px;flex-direction:column;align-items:flex-start;gap:16px;padding:28px;display:flex}.code-archive-upload span{color:var(--muted);font-size:.85rem}.code-archive-upload input{width:100%;min-width:0;max-width:100%}@media (max-width:900px){.modal.code-modal[open]{width:calc(100vw - 24px);height:auto;max-height:calc(100dvh - 24px);padding:24px 20px;overflow:auto}.code-workspace{flex-direction:column;flex:none;gap:24px;display:flex}.code-problem-pane{scrollbar-gutter:auto;padding:0;overflow:visible}.code-archive-pane{padding:20px;overflow:visible}.code-editor-pane .program-editor{flex:none;height:clamp(360px,60dvh,650px)}}.program-samples{margin:24px 0}.sample-columns{grid-template-columns:1fr 1fr;gap:16px;display:grid}.sample-columns>div{min-width:0}.sample-columns pre,.compiler-output{white-space:pre;background:#f5f7f8;border-radius:12px;padding:14px;font-size:.85rem;overflow:auto}.judge-tests{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0;display:grid}.judge-test{border:1px solid #dbe1e5;border-radius:12px;grid-template-columns:28px 1fr;gap:4px 8px;padding:12px;font-size:.75rem;display:grid}.judge-test strong{color:var(--blue-heading);grid-row:span 2}.judge-test span:last-child{font-weight:700}.judge-test.passed{background:#e8f5ed;border-color:#b9dec7}.status.partial{color:var(--blue-heading);background:#ecf4fb}@media (max-width:600px){.sample-columns{grid-template-columns:1fr}.judge-tests{grid-template-columns:repeat(2,minmax(0,1fr))}.code-toolbar label{max-width:none}.program-editor .cm-editor{font-size:13px}.code-submit .button{width:100%}}.editor-part{gap:18px;display:grid}.editor-option{align-items:center;gap:10px;display:flex}.editor-option>input:nth-child(2){flex:1;min-width:0}.stage-progress{gap:10px;margin:24px 0;display:grid}.stage-progress>span{color:var(--muted);font-size:.8rem}.stage-progress progress{width:100%;height:7px;accent-color:var(--blue)}.task-protection{min-height:160px;position:relative}.protected-question{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.protected-question input,.protected-question textarea{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.protected-question.concealed{display:none}.task-shield{text-align:center;background:#fff;border-radius:18px;align-content:center;justify-items:center;gap:18px;padding:28px;display:none;position:absolute;inset:0}.task-shield.visible{min-height:330px;display:grid;position:relative}.task-shield h3{max-width:520px;margin:0;font:700 clamp(1.8rem,4vw,2.8rem)/1.12 Oswald}.task-shield p{max-width:380px;color:var(--muted);margin:0}@media print{.protected-question{visibility:hidden}.task-shield{display:grid}.task-shield .button{display:none}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.ml-downloads{flex-wrap:wrap;gap:12px;margin:20px 0;display:flex}.ml-attribution{color:var(--muted);flex-wrap:wrap;align-items:center;gap:4px 5px;margin:0 0 24px;font-size:14px;line-height:24px;display:flex}.ml-attribution a{color:var(--text,#171715);font:inherit;white-space:nowrap;align-items:center;gap:5px;font-weight:700;text-decoration:none;display:inline-flex}.ml-attribution a:hover{text-decoration:underline}.ml-attribution img{object-fit:contain;flex:none;width:24px;height:24px;display:block}.quiz-question-image{object-fit:contain;width:auto;max-width:100%;max-height:260px;margin:8px 0 24px;display:block}.quiz-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:8px 0 24px;display:grid}.quiz-gallery figure{min-width:0;margin:0}.quiz-gallery img{aspect-ratio:1;object-fit:contain;border-radius:12px;width:100%;display:block}.quiz-gallery figcaption{text-align:center;margin-top:8px;font-weight:700}.quiz-matching{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;display:grid}.quiz-matching .field{min-width:0;margin:0}.quiz-matching select{width:100%}@media (max-width:600px){.quiz-matching{grid-template-columns:1fr}.quiz-gallery{gap:8px}}
