.contests-main{width:min(1180px,100%);color:var(--foreground);margin:auto;padding:42px 28px 64px}.contest-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px;display:flex}.contest-heading h1{margin:10px 0;font-size:30px;font-weight:700}.contest-heading p,.contest-note{color:var(--muted-foreground,#6a7e8f);line-height:1.8}.contest-kicker{color:#28709c;align-items:center;gap:7px;font-size:13px;display:flex}.contest-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.contest-panel{border:1px solid var(--border);background:var(--card,#ffffffc7);border-radius:18px;min-width:0;margin-bottom:22px;padding:26px;box-shadow:0 8px 30px #17354d06}.contest-panel h2{margin-bottom:18px;font-size:20px;font-weight:650}.contest-panel h2 small{color:var(--muted-foreground,#6a7e8f);margin-left:8px;font-size:12px;font-weight:400}.contest-welcome{text-align:center;flex-direction:column;align-items:center;gap:18px;padding:60px 24px;display:flex}.contest-welcome h1{font-size:28px;font-weight:700}.contest-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.contest-card{margin:0}.contest-card h2{margin:22px 0 18px}.contest-card p{color:var(--muted-foreground,#6a7e8f);font-size:13px;line-height:2}.contest-card-footer{justify-content:space-between;gap:12px;margin-top:24px;display:flex}.contest-phase{color:#627280;background:#eef1f5;border-radius:20px;padding:5px 10px;font-size:12px;display:inline-flex}.contest-phase.running{color:#237b58;background:#e5f7ee}.contest-phase.scheduled{color:#276796;background:#e8f1fd}.contest-phase.draft{color:#946922;background:#fff3dc}.contest-rules{background:var(--muted,#eff5fa);border-radius:12px;margin:18px 0 24px;padding:18px 20px;font-size:13px;line-height:1.9}.contest-rules strong{margin-bottom:5px;display:block}.contest-rules p+p{margin-top:7px}.contest-error,.contest-notice{border-radius:10px;margin:16px 0;padding:14px 18px;line-height:1.7}.contest-error{color:#a63838;background:#fff0f0}.contest-notice{color:#247353;background:#e7f7ef}.contest-back{color:#28709c;align-items:center;gap:8px;margin-bottom:20px;display:inline-flex}.contest-meta{flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:20px;font-size:13px;display:flex}.contest-problem-row{border-top:1px solid var(--border);align-items:center;gap:18px;padding:19px 0;display:flex}.contest-problem-row>div{flex:1;min-width:0}.contest-problem-row strong{overflow-wrap:anywhere}.contest-problem-row small,.contest-picked small{color:var(--muted-foreground,#6a7e8f);margin-top:6px;font-size:12px;display:block}.contest-letter{color:#256285;background:#e8f1f7;border-radius:9px;place-items:center;width:36px;height:36px;display:grid}.contest-ac{color:#25825b;align-items:center;gap:4px;font-size:12px;display:flex}.contest-table-scroll{overflow:auto}.contest-board{border-collapse:collapse;white-space:nowrap;text-align:center;width:100%;font-size:14px}.contest-board th{background:var(--muted,#eff5fa);color:var(--muted-foreground,#6a7e8f);padding:14px 16px;font-weight:500}.contest-board td{border-bottom:1px solid var(--border);padding:14px 16px}.contest-board td small{margin-top:5px;font-size:11px;display:block}.contest-mine{outline-offset:-1px;outline:1px solid #a3c6de}.contest-cell-ac{color:#22794f;background:#e8f8ef}.contest-cell-wa{color:#ae5546;background:#fff0ee}.contest-note{margin-top:12px;font-size:13px}.contest-note a{color:#23698f;text-decoration:underline}.contest-submissions>a{border-bottom:1px solid var(--border);align-items:center;gap:20px;padding:14px 0;display:flex}.contest-submissions>a>span:first-child{flex:1}.contest-submissions small{color:var(--muted-foreground,#6a7e8f)}.contest-editor-overlay{z-index:100;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#112c4a66;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.contest-editor{background:var(--background,#fff);border:1px solid var(--border);border-radius:20px;width:min(840px,100%);max-height:92dvh;padding:28px;overflow:auto;box-shadow:0 25px 80px #142c4b33}.contest-editor h2{font-size:23px;font-weight:700}.contest-editor h3{margin-top:25px;font-size:17px;font-weight:650}.contest-editor form>label,.contest-form-grid>label{flex-direction:column;gap:9px;margin-bottom:18px;font-size:14px;display:flex}.contest-editor input:not([type=checkbox]):not([type=file]),.contest-editor textarea{border:1px solid var(--border);background:var(--card,#fff);width:100%;color:inherit;border-radius:9px;padding:11px 13px}.contest-editor textarea{resize:vertical}.contest-form-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.contest-upload{background:var(--muted,#eff5fa);border:1px dashed #9eb9cd;border-radius:12px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:22px;padding:18px;display:flex}.contest-upload>div{flex:1;min-width:200px}.contest-upload strong{align-items:center;gap:7px;display:flex}.contest-upload p{color:var(--muted-foreground,#6a7e8f);margin-top:7px;font-size:12px;line-height:1.8}.contest-upload label{cursor:pointer;position:relative}.contest-upload input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.contest-picked{margin:15px 0;padding:0;list-style:none}.contest-picked li{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px 0;display:flex}.contest-picked li>span{overflow-wrap:anywhere;flex:1;min-width:0}.contest-picked button{border:1px solid var(--border);border-radius:6px;padding:7px}.contest-picked button:disabled{opacity:.3}.contest-picker{border:1px solid var(--border);border-radius:10px;max-height:220px;margin:15px 0 22px;overflow:auto}.contest-picker>button{text-align:left;border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:15px;width:100%;padding:12px 14px;display:flex}.contest-picker>button:hover{background:var(--muted,#eff5fa)}.contest-picker>p{padding:20px}.contest-editor .contest-checkbox{flex-direction:row;align-items:center;gap:10px}.contest-checkbox input{width:17px;height:17px}.contest-editor footer{border-top:1px solid var(--border);justify-content:flex-end;margin-top:20px;padding-top:20px}@media (max-width:700px){.contests-main{padding:26px 16px 40px}.contest-heading{flex-direction:column;align-items:flex-start}.contest-heading h1{font-size:26px}.contest-list{grid-template-columns:1fr}.contest-panel{padding:20px}.contest-problem-row{flex-wrap:wrap;gap:10px}.contest-problem-row .quiet-button{padding:8px;font-size:12px}.contest-ac{font-size:11px}.contest-form-grid{grid-template-columns:1fr;gap:0}.contest-editor{padding:20px}.contest-editor-overlay{padding:8px}.contest-submissions>a{flex-wrap:wrap;gap:8px 14px}.contest-submissions small{width:100%}.contest-submissions>a>svg{display:none}}.contest-editor[data-slot=dialog-content]{max-width:min(840px,100% - 24px);display:block}.contest-editor [data-slot=dialog-title]{font-size:23px;font-weight:700}.contest-format{border:0;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0;padding:0;display:grid}.contest-format legend{margin-bottom:10px;font-weight:600}.contest-format label{cursor:pointer;background:#fff;border:1px solid #dce5ee;border-radius:10px;align-items:center;gap:10px;padding:16px;display:flex}.contest-format label.selected{background:#edf5fb;border-color:#155784}.contest-format input{accent-color:#155784;height:16px;width:16px!important}.contest-format small{color:#738395;margin-top:5px;display:block}.contest-scoring-preview{background:#f2f7fb;border:1px solid #e1eaf2;border-radius:10px;margin-bottom:18px;padding:15px 18px;line-height:1.8}.contest-scoring-preview p{color:#65778a;margin-top:6px}.contest-point-input{color:#708294;flex:0 0 88px;width:88px;font-size:12px}.contest-point-input input{width:88px;padding:8px!important}.contest-points{color:#155784;flex-direction:column;gap:4px;min-width:120px;display:flex}.contest-points small{color:#7a8a99}.contest-board th small{color:#75879a;margin-top:4px;font-size:11px;font-weight:400;display:block}.contest-picked li{flex-wrap:wrap}.contest-picked li>span{min-width:120px}.contest-editor fieldset:disabled{opacity:.65}@media (max-width:640px){.contest-format{grid-template-columns:1fr}.contest-points{flex-basis:100%;margin-left:38px}.contest-picked li>span{flex-basis:calc(100% - 42px)}.contest-point-input{margin-left:32px}}.contest-room-tabs{background:var(--muted,#eff5fa);border-radius:10px;gap:8px;width:fit-content;margin:20px 0;padding:5px;display:flex}.contest-room-tabs a{color:var(--muted-foreground,#6a7e8f);border-radius:8px;padding:10px 20px;font-weight:600}.contest-room-tabs a[aria-current=page]{background:var(--card,#fff);color:#155784;box-shadow:0 2px 8px #173f5710}.contest-results-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;display:flex}.contest-results-heading h2{margin-bottom:0}.contest-first-blood,.contest-board th .contest-first-blood,.contest-points .contest-first-blood{color:#b45309;font-weight:700}.contest-board td.contest-cell-first-blood{color:#fff;background:#14532d}.contest-board td.contest-cell-first-blood small{color:#dcfce7}.contest-board td.contest-cell-first-blood .contest-first-blood{color:#fff}.upsolve-legend{flex-wrap:wrap;gap:12px;display:flex}.upsolve-legend span{border-radius:8px;padding:5px 10px}.upsolve-board td a{color:inherit;text-decoration:none;display:block}.upsolve-board td a:hover{text-decoration:underline}.upsolve-contest_ac{color:#166534!important;background:#dcfce7!important}.upsolve-upsolve_ac{color:#1e40af!important;background:#dbeafe!important}.upsolve-pending{color:#92400e!important;background:#fef3c7!important}.upsolve-attempted{color:#991b1b!important;background:#fee2e2!important}.upsolve-todo{color:#64748b}.upsolve-board{min-width:1000px}.contest-board td.contest-cell-perseverance{color:#fff;background:#1d4ed8}.contest-board td.contest-cell-perseverance small{color:#dbeafe}.contest-board td.contest-cell-perseverance .contest-perseverance{color:#fff;font-weight:700}.contest-board td.contest-cell-first-blood.contest-cell-perseverance{background:linear-gradient(115deg,#14532d 0% 48%,#1d4ed8 48% 100%)}.contest-timer{color:#8a6d1d;align-items:center;gap:6px;font-size:13px;display:inline-flex}.contest-timer b{color:#9a721b}.contest-timer .contest-timer-warn,.contest-timer .contest-timer-over{color:#c0392b}.contest-cell-partial{color:#a0741a}.tri-assign{margin-right:6px}.contest-tri-config{border:1px dashed #8884;border-radius:10px;gap:10px;padding:10px;display:grid}.tri-weights{gap:8px;display:flex}.tri-weights input{width:72px}
