:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;--font-ui:Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;--font-mono:"Cascadia Code", "SFMono-Regular", Consolas, monospace;--bg:#f6f8fb;--surface:#fff;--surface-soft:#f8fafc;--surface-raised:#fff;--ink:#172033;--muted:#64748b;--line:#e2e8f0;--line-strong:#cbd5e1;--brand:#2563eb;--brand-dark:#1d4ed8;--brand-pale:#eff6ff;--paper:var(--surface);--paper-soft:var(--surface-soft);--primary:var(--brand);--accent-strong:var(--brand-dark);--green:#137a55;--green-pale:#e8f6ef;--amber:#9a6200;--amber-pale:#fff5d9;--red:#b4232d;--red-pale:#fff0f1;--success:var(--green);--warning:var(--amber);--danger:var(--red);--info:#245caa;--focus:#2563eb4d;--radius-sm:6px;--radius-md:8px;--radius-lg:10px;--shadow:0 12px 32px #1d31521a;--content-width:1180px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;background:#f6f8fb;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif}:root[data-theme=teal]{--bg:#f2f8f7;--surface-soft:#f4faf9;--ink:#153331;--muted:#56716e;--line:#cfdfdc;--line-strong:#a8c5c0;--brand:#0f766e;--brand-dark:#0a5b56;--brand-pale:#e8f7f4;--info:#146d83;--focus:#0f766e42}:root[data-theme=graphite]{--bg:#f3f4f6;--surface-soft:#f7f7f8;--ink:#1f2937;--muted:#667085;--line:#d5d8de;--line-strong:#adb3bd;--brand:#4b5563;--brand-dark:#303846;--brand-pale:#eceff2;--info:#3c5a78;--focus:#4b556347}*{box-sizing:border-box}html{background:var(--bg);min-width:320px}body{background:var(--bg);min-width:320px;min-height:100vh;color:var(--ink);margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--brand);text-underline-offset:3px;text-decoration-thickness:1px}a:hover{color:var(--brand-dark)}:focus-visible{outline:2px solid var(--brand);outline-offset:2px}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.02em}pre{white-space:pre-wrap;overflow-wrap:anywhere}#root{min-height:100vh}::selection{background:color-mix(in srgb, var(--brand) 24%, transparent)}.auth-layout{background:radial-gradient(circle at 12% 15%,#7a1f2b24,#0000 30rem),linear-gradient(135deg,#f3eee9 0%,#f8f7f4 55%,#ece9e4 100%);grid-template-columns:minmax(320px,1fr) minmax(420px,560px);align-items:center;gap:clamp(3rem,8vw,9rem);min-height:100vh;padding:clamp(2rem,7vw,7rem);display:grid}.problem-lists-page .problem-list-grid{margin-top:24px}.home-page{max-width:1240px}.home-dashboard{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:24px;display:grid}.home-main,.home-side{gap:16px;min-width:0;display:grid}.home-panel{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);min-width:0;padding:20px}.home-panel h2{margin-top:0}.home-panel .empty-state{min-height:8rem}.home-list{gap:.8rem;margin:0;padding:0;list-style:none;display:grid}.home-list li{border-bottom:1px solid var(--line);padding-bottom:.8rem}.home-list li:last-child{border-bottom:0}.home-list li>div{align-items:center;gap:.6rem;display:flex}.home-list p{color:var(--muted);margin:.35rem 0 0}.checkin-panel{border-top:3px solid var(--brand)}.home-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0;display:grid}.home-metrics span{border-radius:var(--radius-sm);background:var(--surface-soft);color:var(--muted);padding:8px;font-size:12px;line-height:18px}.home-metrics strong{color:var(--ink);font-size:20px;line-height:28px;display:block}.home-help{color:var(--muted);margin:12px 0 0;font-size:12px;line-height:18px}.home-shortcuts{gap:4px;display:grid}.home-shortcuts h2{margin-bottom:8px}.home-shortcuts a{border-bottom:1px solid var(--line);padding:8px 0;text-decoration:none}.home-shortcuts a:last-child{border-bottom:0}.home-notices{margin-top:24px}.compact-list{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.compact-list li{border-bottom:0;padding:0}.level-important,.level-urgent{background:var(--amber-pale);color:var(--amber)}.level-urgent{background:var(--red-pale);color:var(--red)}.profile-page{max-width:1180px}.profile-hero{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:20px;display:grid}.profile-hero h1{font-family:var(--font-ui);margin:0 0 4px;font-size:26px;font-weight:600;line-height:34px}.profile-hero p{color:var(--muted);margin:0}.profile-initial{border-radius:var(--radius-md);background:var(--brand);color:#fff;place-items:center;width:56px;height:56px;font-size:22px;font-weight:600;display:grid}.profile-private{margin-top:1rem}.profile-statistics,.profile-contributions{margin-top:32px}.profile-section-nav{border-bottom:1px solid var(--line);gap:8px;margin-top:16px;display:flex}.profile-section-nav a{color:var(--muted);padding:8px 12px;text-decoration:none}.profile-section-nav a:hover{color:var(--brand);border-bottom:2px solid var(--brand)}.section-heading{justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1rem;display:flex}.section-heading h2{margin:0}.section-heading>p{max-width:36rem;color:var(--muted);text-align:right;margin:0}.profile-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;display:grid}.profile-metric{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);padding:16px}.profile-metric span,.profile-metric small{color:var(--muted);display:block}.profile-metric strong{margin:4px 0;font-size:24px;line-height:32px;display:block}.difficulty-layout{grid-template-columns:minmax(260px,.8fr) minmax(480px,1.2fr);gap:1rem;margin-top:1rem;display:grid}.difficulty-bars{border:1px solid var(--line);background:#fff;border-radius:.8rem;gap:.8rem;padding:1rem;display:grid}.difficulty-bars>div{grid-template-columns:4.5rem 1fr auto;align-items:center;gap:.7rem;display:grid}.difficulty-bars div div{background:#eceeed;border-radius:999px;height:.55rem;overflow:hidden}.difficulty-bars i{border-radius:inherit;background:var(--brand);height:100%;display:block}.difficulty-layout table{background:#fff;min-width:480px}.contribution-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;display:grid}.contribution-card{min-width:0}.contribution-card ul{gap:.75rem;margin:1rem 0;padding:0;list-style:none;display:grid}.contribution-card li{border-bottom:1px solid var(--line);padding-bottom:.75rem}.contribution-card li a{overflow-wrap:anywhere;font-weight:750}.contribution-card li small{color:var(--muted);margin-top:.25rem;display:block}.pagination.compact{padding-inline:0}.problem-list-items{gap:.85rem;padding:0;list-style:none;display:grid}.problem-list-items .content-card{grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;display:grid}.problem-list-items h2{margin:0;font-size:1.05rem}.picker-list{gap:.55rem;max-height:20rem;margin:1rem 0;display:grid;overflow:auto}.picker-list>label:not(.choice-field){align-items:flex-start;gap:8px;display:flex}.danger-zone{background:#fff9f8;border:1px solid #e8b5b0;border-radius:12px;margin-top:2rem;padding:1.25rem}@media (width<=720px){.problem-list-items .content-card{grid-template-columns:1fr}}.auth-layout.single{grid-template-columns:minmax(300px,760px);justify-content:center}.auth-brand{max-width:670px}.auth-brand h1{margin:1.4rem 0;font-family:Georgia,Noto Serif SC,serif;font-size:clamp(2.7rem,5.8vw,5.6rem);line-height:1.05}.auth-brand>p:last-child{color:var(--muted);font-size:1.08rem}.brand-mark{flex:none;place-items:center;width:4.5rem;height:4.5rem;display:inline-grid}.brand-mark.small{width:2.4rem;height:2.4rem}.brand-mark img{object-fit:contain;width:100%;height:100%;display:block}.eyebrow{color:var(--brand);letter-spacing:.16em;text-transform:uppercase;margin-bottom:.55rem;font-size:.75rem;font-weight:800}.auth-card,.content-card,.table-card,.filter-panel{box-shadow:var(--shadow);background:#fffffff0;border:1px solid #4c443d1f;border-radius:1rem}.auth-card{padding:clamp(1.6rem,5vw,3.25rem)}.auth-card h1,.auth-card h2{margin-bottom:.7rem;font-size:clamp(1.8rem,4vw,2.5rem)}.auth-card.wide{max-width:760px}.auth-switch{text-align:center;color:var(--muted);margin:1.4rem 0 0}.stack-form{gap:1rem;margin-top:1.5rem;display:grid}.stack-form.two-column{grid-template-columns:repeat(2,minmax(0,1fr))}.stack-form .full{grid-column:1/-1}label{color:var(--ink);font-size:14px;font-weight:500;line-height:20px}label:not(.choice-field):not(.radio-card):not(.switch-field):not(.inline-check):not(.file-button):not(:has(>input[type=checkbox])):not(:has(>input[type=radio])){gap:6px;display:grid}:where(label:has(>input[type=checkbox]):not(.choice-field):not(.radio-card):not(.switch-field):not(.inline-check)),:where(label:has(>input[type=radio]):not(.choice-field):not(.radio-card):not(.switch-field):not(.inline-check)){cursor:pointer;align-items:flex-start;gap:8px;min-height:36px;display:flex}:where(label:has(>input[type=checkbox]):not(.choice-field):not(.radio-card):not(.switch-field):not(.inline-check))>input,:where(label:has(>input[type=radio]):not(.choice-field):not(.radio-card):not(.switch-field):not(.inline-check))>input{order:-1}:where(input:not([type]),input[type=text],input[type=password],input[type=email],input[type=number],input[type=search],input[type=url],input[type=tel],input[type=date],input[type=datetime-local],input[type=time],input[type=month],input[type=week]),select,textarea{border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:40px;color:var(--ink);padding:9px 12px;font-size:14px;line-height:20px;transition:border-color .16s,box-shadow .16s}input[type=checkbox],input[type=radio]{block-size:18px;inline-size:18px;min-inline-size:18px;accent-color:var(--brand);flex:0 0 18px;margin:2px 0 0;padding:0}textarea{resize:vertical}.text-input:focus,:where(input:not([type]),input[type=text],input[type=password],input[type=email],input[type=number],input[type=search],input[type=url],input[type=tel],input[type=date],input[type=datetime-local],input[type=time],input[type=month],input[type=week]):focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--focus);outline:none}.button,button:not([class]),button.quiet,button.ghost,button.secondary,button.primary,button.danger{border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);min-height:36px;color:var(--ink);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:8px;padding:7px 14px;font-size:14px;font-weight:500;line-height:20px;text-decoration:none;display:inline-flex}.button:hover,button:not([class]):hover,button.quiet:hover,button.ghost:hover,button.secondary:hover,button.primary:hover,button.danger:hover{border-color:var(--brand);background:var(--brand-pale);color:var(--brand-dark)}.button:active,button:not([class]):active,button.quiet:active,button.ghost:active,button.secondary:active,button.primary:active,button.danger:active{transform:translateY(1px)}.button:disabled,button:not([class]):disabled,button.quiet:disabled,button.ghost:disabled,button.secondary:disabled,button.primary:disabled,button.danger:disabled{opacity:.62;cursor:not-allowed;transform:none}.button.primary{color:#fff;border-color:var(--brand);background:var(--brand);box-shadow:none}.button.primary:hover{color:#fff;background:var(--brand-dark)}.button.secondary{border-color:var(--brand);color:var(--brand);background:#fff}.button.ghost,.button.quiet{color:var(--ink);background:0 0;border-color:#0000}.button.small{min-height:32px;padding:5px 10px}.button.large{min-height:40px;padding:9px 16px}.button-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.button-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:14px;height:14px;animation:.7s linear infinite spin}.button[aria-busy=true] .button-label{opacity:.82}.alert,.notice{background:var(--amber-pale);color:#68470f;border:1px solid #ead294;border-radius:.58rem;padding:.8rem 1rem}.alert-error{background:var(--red-pale);color:#76242a;border-color:#edc1c5}.app-frame{min-height:100vh}.topbar{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#faf9f7f0;grid-template-columns:1fr auto 1fr;align-items:center;gap:2rem;height:4.5rem;padding:0 clamp(1rem,4vw,4rem);display:grid;position:sticky;top:0}.brand{color:var(--ink);align-items:center;gap:.7rem;font-weight:850;text-decoration:none;display:flex}.topbar nav{align-items:center;gap:.35rem;display:flex}.topbar nav a{color:#596269;border-radius:.5rem;padding:.58rem .85rem;font-weight:680;text-decoration:none}.user-menu{justify-self:end;align-items:center;gap:.8rem;font-size:.9rem;display:flex}.notice{max-width:1180px;margin:1rem auto}.page-shell{width:min(1180px,100% - 2rem);margin:0 auto;padding:3rem 0 5rem}.page-heading{justify-content:space-between;align-items:end;gap:2rem;margin-bottom:1.7rem;display:flex}.page-heading.compact{align-items:center}.page-heading h1{font-family:var(--font-ui);margin-bottom:8px;font-size:clamp(24px,3vw,28px);font-weight:600;line-height:34px}.page-heading p:last-child{color:var(--muted);margin-bottom:0}.filter-panel{box-shadow:none;margin-bottom:1.3rem;padding:1rem}.search-row,.filter-row{flex-wrap:wrap;align-items:end;gap:.8rem;display:flex}.search-row .grow{flex:320px}.filter-row{margin-top:.8rem}.filter-row label{flex:180px;min-width:180px}.responsive-table{overflow-x:auto}.table-card{overflow:hidden}table{border-collapse:collapse;width:100%;min-width:760px}th{text-align:left;background:var(--paper-soft);height:40px;color:var(--muted);letter-spacing:.01em;text-transform:none;padding:8px 12px;font-size:12px;line-height:18px}td{border-top:1px solid var(--line);vertical-align:middle;min-height:44px;padding:10px 12px;font-size:14px;line-height:22px}.problem-code{color:var(--muted);font-family:ui-monospace,monospace}.problem-link{color:var(--ink);font-weight:750}.tag-list{flex-wrap:wrap;gap:.3rem;display:flex}.tag{color:#525c62;background:#eef0ef;border-radius:999px;padding:.2rem .48rem;font-size:.72rem}.difficulty{font-weight:750}.difficulty.easy{color:var(--green)}.difficulty.medium{color:var(--amber)}.difficulty.hard{color:var(--red)}.pagination{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;font-size:13px;line-height:18px;display:flex}.center-state,.empty-state{text-align:center;min-height:120px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.empty-state h2{color:var(--ink);margin:0;font-size:16px;font-weight:600;line-height:24px}.empty-state p{margin:0;font-size:14px;line-height:22px}.error-state{border:1px solid color-mix(in srgb, var(--red) 28%, var(--line));background:var(--red-pale)}.spinner{border:2px solid #ddd;border-top-color:var(--brand);border-radius:50%;width:1.5rem;height:1.5rem;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.status-badge{color:#536067;white-space:nowrap;background:#edf0ef;border-radius:999px;align-items:center;gap:.4rem;padding:.34rem .58rem;font-size:.76rem;font-weight:780;display:inline-flex}.status-dot{background:currentColor;border-radius:50%;width:.4rem;height:.4rem}.status-badge.success{background:var(--green-pale);color:var(--green)}.status-badge.active{background:var(--amber-pale);color:var(--amber)}.status-badge.danger{background:var(--red-pale);color:var(--red)}.problem-workspace{grid-template-columns:minmax(0,1.08fr) minmax(450px,.92fr);min-height:calc(100vh - 4.5rem);display:grid}.problem-workspace[hidden],.workspace-submissions[hidden]{display:none}.statement-pane{background:var(--paper);border-right:1px solid var(--line);padding:clamp(1.5rem,4vw,4rem);overflow-x:hidden}.problem-header{border-bottom:1px solid var(--line);margin-bottom:2rem;padding-bottom:1.8rem}.problem-header h1{font-family:var(--font-ui);overflow-wrap:anywhere;margin:8px 0 12px;font-size:clamp(24px,3vw,28px);font-weight:600;line-height:36px}.problem-meta{flex-wrap:wrap;gap:.55rem;display:flex}.problem-meta span{color:#4f595e;background:#f1f2f0;border-radius:.4rem;padding:.32rem .55rem;font-size:.78rem}.back-link{margin-bottom:1.5rem;text-decoration:none;display:inline-block}.statement-pane article>h2{border-left:3px solid var(--brand);margin:2.2rem 0 .8rem;padding-left:.75rem;font-size:1.15rem}.markdown-body{overflow-wrap:anywhere;line-height:1.8}.markdown-body pre,.sample pre,.diagnostic{color:#e7ece9;background:#171b1e;border-radius:.55rem;padding:1rem;overflow-x:auto}.markdown-body table{min-width:0;display:block;overflow-x:auto}.markdown-body img{border-radius:.4rem;max-width:100%;height:auto}.image-fallback,.image-loading{color:var(--muted);border:1px dashed #c8cdca;padding:.8rem;display:inline-flex}.sample{border:1px solid var(--line);border-radius:.7rem;margin-bottom:1rem;padding:1rem}.sample-grid{grid-template-columns:1fr 1fr;gap:.8rem;display:grid}.sample pre{min-height:4rem;margin-bottom:0}.source,.muted{color:var(--muted)}.editor-pane{color:#fff;background:#15191c;grid-template-rows:auto 1fr auto;height:calc(100vh - 4.5rem);display:grid;position:sticky;top:4.5rem}.editor-toolbar,.submit-bar{background:#202529;border-bottom:1px solid #343b3f;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;display:flex}.editor-toolbar label{color:#cfd5d2;grid-template-columns:auto 170px;align-items:center}.editor-toolbar select{color:#fff;background:#2b3135;border-color:#4a5257}.draft-indicator{color:#9ea8a3;font-size:.78rem}.editor-wrap{min-height:350px}.submit-bar{border-top:1px solid #343b3f;border-bottom:0}.inline-message{color:#f0cfd3;font-size:.82rem}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1rem;display:grid}.content-card{box-shadow:none;padding:1.4rem}.content-card h2{font-size:1.15rem}.detail-list{margin:1.2rem 0;display:grid}.detail-list>div{border-bottom:1px solid #eceeeb;grid-template-columns:8rem 1fr;gap:1rem;padding:.65rem 0;display:grid}.detail-list dt{color:var(--muted)}.detail-list dd{overflow-wrap:anywhere;margin:0;font-weight:650}.request-list{gap:.5rem;margin-top:1rem;display:grid}.request-row{border:1px solid var(--line);border-radius:.55rem;grid-template-columns:1fr auto auto;align-items:center;gap:.7rem;padding:.75rem;display:grid}.request-row small{color:var(--muted);margin-top:.2rem;display:block}.request-row p{color:var(--muted);grid-column:1/-1;margin:0}.confirm-form{border-top:1px solid var(--line);padding-top:1rem}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin-bottom:1rem;display:grid}.metric-grid>div{border:1px solid var(--line);background:#fff;border-radius:.65rem;padding:.9rem}.metric-grid span{color:var(--muted);margin-bottom:.4rem;font-size:.74rem;display:block}.metric-grid strong{overflow-wrap:anywhere;font-size:.98rem}.page-shell>.content-card{margin-top:1rem}.readonly-editor{border-radius:.6rem;overflow:hidden}.point-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:.6rem;display:grid}.point-grid article{border:1px solid var(--line);border-radius:.5rem;grid-template-columns:auto 1fr;gap:.45rem;padding:.75rem;display:grid}.point-grid small{color:var(--muted);grid-column:1/-1}.admin-page{gap:1.1rem;display:grid}.filter-bar{border:1px solid var(--line);background:#fff;border-radius:.8rem;flex-wrap:wrap;align-items:end;gap:.8rem;padding:1rem;display:flex}.filter-bar label{flex:180px}.admin-section{border:1px solid var(--line);background:#fff;border-radius:.85rem;padding:1.2rem;box-shadow:0 8px 28px #28231f09}.admin-section>h2{margin-top:0;font-size:1.15rem}.table-wrap{overflow-x:auto}.table-wrap td small{color:var(--muted);margin-top:.25rem;display:block}.button.small{min-height:2rem;padding:.35rem .65rem;font-size:.8rem}button.danger,.button.danger{color:var(--red);background:var(--red-pale);border:1px solid #d7aeb2;border-radius:.5rem;padding:.55rem .75rem;font-weight:700}.form-error{background:var(--red-pale);color:#76242a;border:1px solid #edc1c5;border-radius:.58rem;padding:.8rem 1rem}.review-list,.image-admin-list{gap:.7rem;padding:0;list-style:none;display:grid}.review-list li{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 0;display:flex}.review-list p{color:var(--muted);margin:.3rem 0 0}.file-field{border:1px dashed #b6bcb9;border-radius:.6rem;align-items:center;gap:.7rem;margin:.5rem 0 1rem;padding:.75rem;display:inline-flex}.file-field input{border:0;padding:0}.credential-dialog{z-index:50;max-width:min(460px,100vw - 2rem);box-shadow:var(--shadow);border:1px solid #d2b6b9;border-radius:.9rem;padding:1.25rem;position:fixed;inset:auto 1rem 1rem auto}.credential-dialog li{justify-content:space-between;gap:1rem;margin:.5rem 0;display:flex}.status-chip{color:#536067;background:#edf0ef;border-radius:999px;padding:.25rem .55rem;font-size:.76rem;font-weight:750;display:inline-flex}.status-published,.status-APPROVED{background:var(--green-pale);color:var(--green)}.status-pending_review,.status-PENDING{background:var(--amber-pale);color:var(--amber)}.status-hidden,.status-REJECTED,.status-SUPERSEDED{background:var(--red-pale);color:var(--red)}.editor-admin-page{max-width:1500px}.management-grid{grid-template-columns:minmax(0,1fr) minmax(330px,430px);align-items:start;gap:1rem;display:grid}.admin-aside{gap:1rem;max-height:calc(100vh - 6.5rem);display:grid;position:sticky;top:5.5rem;overflow-y:auto}.problem-form{gap:1rem;display:grid}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;display:grid}.editor-preview{grid-template-columns:1fr 1fr;align-items:start;gap:1rem;display:grid}.editor-preview>div{gap:.8rem;display:grid}.preview-card{border:1px solid var(--line);background:var(--paper-soft);border-radius:.7rem;min-height:24rem;padding:1rem;overflow-x:hidden}.tag-options{flex-wrap:wrap;gap:.55rem;display:flex}.tag-options label{border:1px solid var(--line);border-radius:999px;align-items:center;gap:.35rem;padding:.35rem .6rem;display:flex}.tag-options input{width:auto}.image-admin-list li{border-bottom:1px solid var(--line);gap:.5rem;padding-bottom:.8rem;display:grid}.image-admin-list img{object-fit:contain;background:var(--paper-soft);max-width:100%;max-height:180px}.image-admin-list code{overflow-wrap:anywhere;color:var(--muted)}.point-list{gap:.6rem;display:grid}.point-card{border:1px solid var(--line);border-radius:.65rem;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;padding:.75rem;display:grid}.point-card h3,.point-card .button-row{grid-column:1/-1}.advanced-judge-panel textarea{width:100%;font-family:var(--font-mono,monospace)}.advanced-judge-panel .inline-check{align-items:center;gap:.55rem;margin:1rem 0;display:flex}.subtask-editor{gap:.75rem;margin:1rem 0;display:grid}@media (width<=900px){.auth-layout{grid-template-columns:1fr;gap:2rem}.auth-brand h1{font-size:3rem}.topbar{grid-template-columns:1fr auto;height:auto;min-height:4.2rem;padding-block:.6rem}.topbar nav{grid-area:2/1/auto/-1;justify-content:center;overflow-x:auto}.user-menu>span{display:none}.problem-workspace{grid-template-columns:1fr}.editor-pane{height:min(72vh,720px);position:relative;top:auto}.statement-pane{border-right:0}.settings-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.management-grid,.editor-preview,.difficulty-layout,.contribution-grid{grid-template-columns:1fr}.admin-aside{max-height:none;position:static}}@media (width<=560px){.auth-layout{padding:1rem}.auth-brand{display:none}.stack-form.two-column,.sample-grid{grid-template-columns:1fr}.topbar{gap:.5rem;padding-inline:.75rem}.topbar nav a{padding:.5rem .55rem;font-size:.83rem}.page-shell{width:min(100% - 1rem,1180px);padding-top:1.7rem}.page-heading{flex-direction:column;align-items:start}.statement-pane{padding:1.2rem}.editor-toolbar{flex-direction:column;align-items:stretch}.draft-indicator{display:none}.metric-grid{grid-template-columns:1fr 1fr}.detail-list>div{grid-template-columns:1fr;gap:.2rem}.pagination{gap:.3rem;font-size:.72rem}.form-grid,.point-card{grid-template-columns:1fr}.review-list li{flex-direction:column;align-items:start}.profile-hero{grid-template-columns:auto 1fr}.profile-hero .button{grid-column:1/-1}.profile-metrics,.home-grid,.home-metrics{grid-template-columns:1fr}.section-heading{flex-direction:column;align-items:start}.section-heading>p{text-align:left}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.management-shortcut{background:var(--surface-soft);border-bottom:1px solid var(--line);padding:.55rem max(1rem,50vw - 590px)}.management-shortcut a{color:var(--accent-strong);font-weight:650}.auth-v2{background:var(--bg);place-items:center;min-height:100vh;padding:2rem 1rem;display:grid}.auth-v2-panel{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);width:min(420px,100%);padding:2rem}.auth-v2-panel h1{margin:1.5rem 0;font-size:clamp(1.65rem,5vw,2rem)}.auth-v2-brand{color:var(--ink);align-items:center;gap:.75rem;font-size:1.05rem;font-weight:750;display:flex}.auth-v2-brand img{object-fit:contain;width:2.5rem;height:2.5rem}.auth-v2-panel footer{border-top:1px solid var(--line);margin-top:1.25rem;padding-top:1rem}.app-topbar{grid-template-columns:auto minmax(0,1fr) auto;height:auto;min-height:56px}.app-actions{align-items:center;gap:.65rem;display:flex}.user-dropdown{position:relative}.user-dropdown summary{cursor:pointer;border:1px solid var(--line);border-radius:var(--radius-sm);padding:.5rem .65rem;font-weight:650;list-style:none}.user-dropdown>div{z-index:40;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-raised);min-width:180px;box-shadow:var(--shadow);padding:.45rem;display:grid;position:absolute;top:calc(100% + .4rem);right:0}.user-dropdown a,.user-dropdown button{text-align:left;width:100%;color:var(--ink);padding:.55rem .65rem;text-decoration:none}.management-layout{grid-template-columns:232px minmax(0,1fr);min-height:calc(100vh - 56px);display:grid}.management-sidebar{border-right:1px solid var(--line);background:var(--surface-soft);padding:1.25rem 1rem}.management-sidebar>strong{margin:1rem .55rem 1.25rem;font-size:1.05rem;display:block}.management-sidebar nav{gap:1.1rem;display:grid}.management-sidebar section{gap:.2rem;display:grid}.management-sidebar h2{color:var(--muted);letter-spacing:.06em;margin:0 .55rem .25rem;font-size:.75rem}.management-sidebar a{border-radius:var(--radius-sm);color:var(--ink);padding:.55rem .65rem;text-decoration:none}.management-sidebar a.active{background:var(--brand-pale);color:var(--brand-dark);font-weight:700}.management-back{color:var(--brand)!important}.management-main{min-width:0}.management-main .page-shell{width:min(1280px,100% - 3rem)}.dashboard-actions{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;display:grid}.dashboard-actions article{border-top:2px solid var(--brand);align-content:start;gap:.7rem;padding:1.25rem 0;display:grid}.dashboard-actions h2,.dashboard-actions p{margin:0}.dashboard-actions a:not(.button){width:fit-content}.workspace-v2{min-height:calc(100vh - 56px)}.workspace-tabs{border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;gap:1rem;padding:.5rem max(1rem,50vw - 730px);display:flex}.workspace-community-link{flex:none;font-weight:650;text-decoration:none}.workspace-submissions{width:min(1180px,100% - 2rem);margin:1.5rem auto}.problem-submissions td{vertical-align:middle}.tabs-v2{gap:.25rem;display:flex;overflow-x:auto}.tabs-v2 button{color:var(--muted);white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0}.tabs-v2 button.active,.tabs-v2 button[aria-selected=true]{border-bottom-color:var(--brand);color:var(--brand-dark)}.page-header-v2 h1{margin:.2rem 0;font-size:clamp(1.55rem,3vw,1.8rem)}.page-actions{align-items:center;gap:.5rem;display:flex}.permission-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:.55rem;margin:.75rem 0;display:grid}.contest-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;display:grid}.contest-grid .pagination{grid-column:1/-1}.contest-card{border:1px solid var(--line);background:#fff;border-radius:.8rem;min-width:0;padding:1.2rem;box-shadow:0 8px 24px #28231f0a}.contest-card h2{margin:.85rem 0 .55rem;font-size:1.2rem}.contest-card p,.contest-card small{color:var(--muted)}.contest-problems{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.7rem;display:grid}.contest-problems a{border:1px solid var(--line);min-width:0;color:var(--ink);border-radius:.65rem;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;padding:.9rem;text-decoration:none;display:grid}.contest-problems a:hover{border-color:var(--brand);background:var(--brand-pale)}.contest-problems strong{background:var(--brand);color:#fff;border-radius:.45rem;place-items:center;width:2rem;height:2rem;display:grid}.contest-problems span{overflow-wrap:anywhere;font-weight:700}.contest-problems small{color:var(--muted);white-space:nowrap}.permission-grid label{border:1px solid var(--line);border-radius:.55rem;align-items:flex-start;gap:.55rem;padding:.65rem;display:flex}.permission-grid small,.rbac-columns small{color:var(--muted);overflow-wrap:anywhere;display:block}.rbac-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem;display:grid}.rbac-columns>div{border:1px solid var(--line);background:var(--surface);border-radius:.75rem;min-width:0;padding:1rem}.rbac-columns code{white-space:pre-wrap;overflow-wrap:anywhere;display:block}@media (width<=760px){.rbac-columns{grid-template-columns:1fr}}.public-rank-shell{color:#18231f;background:#f4f1e9;min-height:100vh;padding:clamp(1.25rem,4vw,4rem)}.public-rank-heading{justify-content:space-between;align-items:end;gap:1.5rem;max-width:1100px;margin:0 auto 1.5rem;display:flex}.public-rank-shell .responsive-table,.public-rank-shell .empty-state{background:#fffdf8;border:1px solid #d8d2c4;border-radius:18px;max-width:1100px;margin-inline:auto;box-shadow:0 12px 40px #1f2a2414}.public-rank-shell table{width:100%}.privacy-note,.public-rank-footer{color:#5b655f;max-width:1100px;margin:1rem auto;font-size:.92rem}.visibility-panel{border-left:4px solid #315f4d}.visibility-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.visibility-actions>div{margin-right:auto}.visibility-actions p{margin:.25rem 0 0}.credential-once{background:#fff8e8;border:1px solid #d39d42;border-radius:12px;gap:.75rem;margin-top:1rem;padding:1rem;display:grid}.credential-once code{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.phase-pill{letter-spacing:.05em;background:#e7ece8;border-radius:999px;padding:.35rem .7rem;font-size:.78rem}.phase-frozen{background:#f7e2b5}.phase-hidden{background:#e5e5e5}.phase-revealed{background:#d9eadf}.phase-rolling{background:#dce8ff}.phase-correction{background:#f7e2b5}.rolling-control,.rolling-spectator{border:1px solid var(--line);background:color-mix(in srgb, var(--surface) 92%, var(--brand));border-radius:.85rem;gap:.75rem;padding:1rem;display:grid}.rolling-spectator{max-width:1100px;margin:1rem auto}.rolling-spectator progress{width:min(28rem,100%)}.rolling-events{color:var(--muted);margin:0;padding-left:1.5rem}.rolling-event-summary{color:var(--muted);margin-top:.75rem}.reveal-highlight{outline:2px solid var(--brand);outline-offset:-2px;animation:1.2s ease-out reveal-pulse}@keyframes reveal-pulse{0%{background:color-mix(in srgb, var(--brand) 22%, transparent)}to{background:0 0}}@media (width<=680px){.public-rank-heading{flex-direction:column;align-items:stretch}.public-rank-shell{padding:1rem}}.tab-list{border-bottom:1px solid var(--line);gap:.5rem;margin:0 0 1rem;display:flex}.tab-list button{background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0}.tab-list button.active{border-color:var(--brand);color:var(--brand)}.stack-list,.draft-list{gap:.75rem;display:grid}.draft-list{margin-top:1.25rem}.draft-list a{display:block}.comment-card{border-bottom:1px solid var(--line);padding:1rem 0}.community-page textarea,.content-detail textarea{width:100%}.rating-card{margin-top:1.25rem}.rating-card .status-pill{align-self:flex-start}.rating-up{color:var(--success,#137333);font-weight:700}.rating-trend{margin:1rem 0}.rating-trend svg{background:color-mix(in srgb, var(--surface) 88%, var(--primary));border-radius:.75rem;width:100%;max-height:12rem;display:block}.rating-trend polyline{stroke:var(--primary);stroke-width:3px}.rating-trend circle{fill:var(--surface);stroke:var(--primary);stroke-width:3px}.rating-trend figcaption{color:var(--muted);margin-top:.4rem;font-size:.85rem}.rating-down{color:var(--danger,#b3261e);font-weight:700}.editor-admin-page{padding-bottom:5rem}.task-steps{border-block:1px solid var(--line);grid-template-columns:repeat(6,minmax(0,1fr));margin:1rem 0 1.5rem;display:grid}.task-steps button{min-height:3rem;color:var(--muted);background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;justify-content:center;align-items:center;gap:.45rem;display:flex}.task-steps button span{background:var(--surface-soft);border-radius:50%;place-items:center;width:1.4rem;height:1.4rem;font-size:.75rem;display:grid}.task-steps button.active{border-bottom-color:var(--brand);color:var(--brand-dark);font-weight:700}.task-panel{min-width:0}.sticky-actions{z-index:5;border:1px solid var(--line);background:color-mix(in srgb, var(--surface) 96%, transparent);box-shadow:var(--shadow);align-items:center;gap:1rem;margin-top:1rem;padding:.75rem;display:flex;position:sticky;bottom:.75rem}.sample-editor{gap:1rem;display:grid}.sample-editor>article{border:1px solid var(--line);background:var(--surface-soft);grid-template-columns:1fr 1fr;gap:.75rem;padding:1rem;display:grid}.sample-editor article header,.sample-editor article label:last-child{grid-column:1/-1}.sample-editor article header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.archive-upload{border:1px solid var(--line);background:var(--surface-soft);gap:.8rem;margin:1rem 0;padding:1rem;display:grid}.archive-selection{grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.75rem;display:grid}.archive-selection strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.archive-upload progress{width:100%;accent-color:var(--brand)}.auth-layout{background:var(--bg)}.auth-card,.content-card,.table-card,.filter-panel,.home-panel,.profile-metric,.difficulty-bars,.admin-section,.contest-card,.rbac-columns>div{background:var(--surface);border-color:var(--line);border-radius:var(--radius-md);box-shadow:none}.checkin-panel,.profile-hero{background:var(--surface);border-radius:var(--radius-md)}.profile-initial{border-radius:var(--radius-md);box-shadow:none;background:var(--brand)}.eyebrow{color:var(--brand);letter-spacing:.07em;text-transform:none}.page-heading h1,.problem-header h1,.profile-hero h1,.auth-brand h1{font-family:var(--font-ui)}.topbar{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;border-color:var(--line)}.topbar nav a{color:var(--muted);border-radius:var(--radius-sm)}.topbar nav a.active{background:var(--brand-pale);color:var(--brand-dark)}.management-shortcut{background:var(--surface-soft)}.page-shell{width:min(var(--content-width), calc(100% - 2rem))}:where(input:not([type]),input[type=text],input[type=password],input[type=email],input[type=number],input[type=search],input[type=url],input[type=tel],input[type=date],input[type=datetime-local],input[type=time],input[type=month],input[type=week]),select,textarea{border-color:var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink)}:where(input:not([type]),input[type=text],input[type=password],input[type=email],input[type=number],input[type=search],input[type=url],input[type=tel],input[type=date],input[type=datetime-local],input[type=time],input[type=month],input[type=week]):focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--focus)}.button,button.danger,.button.danger{border-radius:var(--radius-sm)}.button.primary{background:var(--brand);box-shadow:none}.button.primary:hover{background:var(--brand-dark)}.button.secondary{border-color:var(--brand);background:var(--surface);color:var(--brand)}.button.quiet{color:var(--ink);border-color:var(--line-strong);background:0 0}button.danger,.button.danger{border-color:color-mix(in srgb, var(--red) 42%, var(--line));min-height:36px;color:var(--red);background:var(--red-pale);padding:7px 14px;font-size:14px;font-weight:500;line-height:20px}.tag,.status-badge,.status-chip,.phase-pill{border-radius:var(--radius-sm)}th{background:var(--surface-soft);color:var(--muted);text-transform:none;letter-spacing:.01em}td{border-color:var(--line)}tbody tr:hover{background:color-mix(in srgb, var(--brand-pale) 45%, var(--surface))}.problem-meta span,.metric-grid>div,.request-row,.point-grid article,.sample,.filter-bar,.preview-card,.point-card,.permission-grid label,.contest-problems a,.rolling-control,.rolling-spectator,.credential-once{border-radius:var(--radius-sm);border-color:var(--line)}.metric-grid>div,.filter-bar,.preview-card{background:var(--surface)}.markdown-body pre,.sample pre,.diagnostic{border-radius:var(--radius-sm)}.public-rank-shell{background:var(--bg);color:var(--ink)}.public-rank-shell .responsive-table,.public-rank-shell .empty-state{background:var(--surface);border-color:var(--line);border-radius:var(--radius-md);box-shadow:none}.rating-trend svg{border-radius:var(--radius-sm);background:var(--surface-soft)}.business-surface{min-height:calc(100vh - 4.5rem)}.editor-loading{color:#dce6f6;background:#111827;place-items:center;min-height:18rem;display:grid}.toast-viewport{z-index:1000;pointer-events:none;gap:.6rem;width:min(380px,100vw - 2rem);display:grid;position:fixed;top:1rem;right:1rem}.toast{border:1px solid var(--line-strong);border-left:4px solid var(--info);border-radius:var(--radius-md);background:var(--surface-raised);color:var(--ink);box-shadow:var(--shadow);pointer-events:auto;grid-template-columns:1fr auto;align-items:start;gap:.8rem;padding:.85rem 1rem;display:grid}.toast-success{border-left-color:var(--green)}.toast-warning{border-left-color:var(--amber)}.toast-error{border-left-color:var(--red)}.toast p{color:var(--muted);margin:.25rem 0 0;font-size:.9rem}.toast button{width:2rem;height:2rem;color:var(--muted);cursor:pointer;background:0 0;border:0;font-size:1.25rem}.action-dialog{border:1px solid var(--line-strong);border-radius:var(--radius-lg);background:var(--surface);width:min(520px,100vw - 2rem);color:var(--ink);padding:0;box-shadow:0 24px 72px #0f203742}.action-dialog::backdrop{background:#0f18287a}.action-dialog form{padding:1.25rem}.action-dialog header,.action-dialog footer{justify-content:space-between;align-items:center;gap:1rem;display:flex}.action-dialog header{border-bottom:1px solid var(--line);padding-bottom:.8rem}.action-dialog header h2{margin:0;font-size:1.2rem}.action-dialog header button{color:var(--muted);background:0 0;border:0;font-size:1.4rem}.action-dialog form>p{color:var(--muted);margin:1rem 0}.action-dialog footer{justify-content:flex-end;padding-top:1rem}.appearance-settings{margin-top:1rem}.theme-picker{border:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 24px;padding:0;display:grid}.theme-picker legend{margin-bottom:8px;font-weight:600}.choice-field,.radio-card,.switch-field{min-height:36px;color:var(--ink);cursor:pointer;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:8px;display:grid}.choice-field>input,.radio-card>input{grid-column:1;margin-top:2px}.choice-copy{grid-column:2;gap:2px;min-width:0;display:grid}.choice-label{font-size:14px;font-weight:500;line-height:22px}.choice-description{color:var(--muted);font-size:12px;font-weight:400;line-height:18px}.radio-card{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);grid-template-columns:18px minmax(0,1fr);padding:12px}.radio-card:hover{border-color:var(--line-strong);background:var(--surface-soft)}.radio-card.selected{border-color:var(--brand);box-shadow:0 0 0 2px var(--focus)}.radio-card:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 2px var(--focus)}.theme-swatches{gap:4px;margin:4px 0;display:flex}.theme-swatches i{border-radius:2px;width:24px;height:8px}.switch-field{grid-template-columns:40px minmax(0,1fr);align-items:start;min-height:44px}.switch-field>input{opacity:0;width:1px;height:1px;position:absolute}.switch-track{border:1px solid var(--line-strong);background:var(--surface-soft);border-radius:999px;width:40px;height:22px;margin-top:1px;transition:background .16s,border-color .16s;position:relative}.switch-track span{background:var(--muted);border-radius:50%;width:16px;height:16px;transition:transform .16s,background .16s;position:absolute;top:2px;left:2px}.switch-field input:checked+.switch-track{border-color:var(--brand);background:var(--brand)}.switch-field input:checked+.switch-track span{background:#fff;transform:translate(18px)}.switch-field input:focus-visible+.switch-track{outline:2px solid var(--brand);outline-offset:2px}.switch-field input:disabled+.switch-track,.choice-field input:disabled,.radio-card input:disabled{opacity:.55;cursor:not-allowed}.inline-check{grid-template-columns:18px minmax(0,1fr);align-items:start;gap:8px;min-height:36px;display:grid}.inline-check input{width:18px}.local-css-panel{border-top:1px solid var(--line);margin-top:1.25rem;padding-top:1.25rem}.file-button{position:relative;overflow:hidden}.file-button input{opacity:0;width:1px;height:1px;position:absolute}.local-css-preview{border:1px dashed var(--line-strong);background:var(--surface-soft);margin-top:1rem;padding:.8rem}.local-css-preview>.content-card{margin:0}.preview-actions{border:1px solid var(--brand);background:var(--brand-pale);justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem;padding:.8rem;display:flex}.form-success{border-left:3px solid var(--green);background:var(--green-pale);color:var(--green);margin-top:1rem;padding:.75rem}.recovery-page{color:#172033;background:#f4f7fb;place-items:center;min-height:100vh;padding:1rem;display:grid}.recovery-panel{background:#fff;border:1px solid #d7deea;border-radius:8px;width:min(560px,100%);padding:2rem;box-shadow:0 18px 48px #1d31521f}.recovery-panel h1{margin:1rem 0 .5rem}.recovery-panel small{color:#60708a;margin-top:1.25rem;display:block}.ac-celebration{z-index:900;border:1px solid color-mix(in srgb,var(--brand) 38%,var(--line));border-radius:var(--radius-lg);background:var(--surface-raised);min-width:250px;color:var(--ink);box-shadow:var(--shadow);pointer-events:none;align-items:center;gap:.9rem;padding:.8rem 1rem .8rem .75rem;animation:1.9s both ac-arrive;display:flex;position:fixed;top:5.5rem;left:50%;transform:translate(-50%)}.ac-celebration strong,.ac-celebration span{display:block}.ac-celebration strong{color:var(--green);font-size:1.25rem}.ac-celebration span{color:var(--muted);font-size:.85rem}.ac-celebration-mark{width:3.2rem;height:3.2rem;position:relative}.ac-celebration-mark svg{width:100%;height:100%;fill:var(--green-pale);stroke:var(--green);stroke-width:4px;stroke-linecap:round;stroke-linejoin:round}.ac-celebration-mark svg circle{stroke-dasharray:190;animation:.55s ease-out both ac-ring}.ac-celebration-mark svg path{fill:none;stroke-dasharray:48;animation:.42s ease-out .28s both ac-check}.ac-celebration-mark i{background:var(--brand);border-radius:1px;width:5px;height:5px;animation:.65s ease-out .2s both ac-particle;position:absolute;top:50%;left:50%}.ac-celebration-mark i:first-of-type{--x:34px;--y:0}.ac-celebration-mark i:nth-of-type(2){--x:24px;--y:24px}.ac-celebration-mark i:nth-of-type(3){--x:0;--y:34px}.ac-celebration-mark i:nth-of-type(4){--x:-24px;--y:24px}.ac-celebration-mark i:nth-of-type(5){--x:-34px;--y:0}.ac-celebration-mark i:nth-of-type(6){--x:-24px;--y:-24px}.ac-celebration-mark i:nth-of-type(7){--x:0;--y:-34px}.ac-celebration-mark i:nth-of-type(8){--x:24px;--y:-24px}@keyframes ac-arrive{0%{opacity:0;transform:translate(-50%,-12px)scale(.96)}18%,78%{opacity:1;transform:translate(-50%)scale(1)}to{opacity:0;transform:translate(-50%,-5px)scale(.98)}}@keyframes ac-ring{0%{stroke-dashoffset:190px}to{stroke-dashoffset:0}}@keyframes ac-check{0%{stroke-dashoffset:48px}to{stroke-dashoffset:0}}@keyframes ac-particle{0%{opacity:1;transform:translate(-50%,-50%)scale(1)}to{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(80deg) scale(.5)}}@media (width<=900px){.theme-picker{grid-template-columns:1fr}.topbar nav{justify-content:flex-start}.management-layout{grid-template-columns:1fr}.management-sidebar{border-right:0;border-bottom:1px solid var(--line);position:static}.management-sidebar nav{gap:.75rem;display:flex;overflow-x:auto}.management-sidebar section{min-width:155px}.management-main .page-shell{width:min(100% - 2rem,1180px)}.task-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=620px){.app-topbar{grid-template-columns:1fr auto}.app-topbar nav{order:3;grid-column:1/-1;justify-content:flex-start}.app-actions .button.secondary{display:none}.auth-v2-panel{padding:1.4rem}.workspace-tabs{flex-direction:column;align-items:stretch}.sample-editor>article{grid-template-columns:1fr}.sample-editor article header,.sample-editor article label:last-child{grid-column:auto}.archive-selection{grid-template-columns:1fr auto}.archive-selection button{grid-column:1/-1}.task-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=560px){.toast-viewport{width:calc(100vw - 1rem);top:.5rem;right:.5rem}.preview-actions{flex-direction:column;align-items:stretch}.ac-celebration{width:min(320px,100vw - 1rem);top:.75rem}}@media (prefers-reduced-motion:reduce){.ac-celebration{animation:1.6s both ac-static}.ac-celebration-mark svg circle,.ac-celebration-mark svg path,.ac-celebration-mark i{animation:none}.ac-celebration-mark i{display:none}}@keyframes ac-static{0%,to{opacity:0}10%,85%{opacity:1}}.account-layout{grid-template-columns:192px minmax(0,760px);align-items:start;gap:32px;display:grid}.account-nav{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);gap:4px;padding:8px;display:grid;position:sticky;top:72px}.account-nav a{border-radius:var(--radius-sm);color:var(--ink);padding:9px 12px;font-size:14px;font-weight:500;text-decoration:none}.account-nav a:hover{background:var(--surface-soft)}.account-nav a.active{background:var(--brand-pale);color:var(--brand-dark)}.account-task{min-width:0}.account-task>section,.account-task>.appearance-settings{margin:0}.account-task .section-heading{align-items:start;margin-bottom:16px}.account-task .section-heading h2{font-size:18px;line-height:26px}.account-task .section-heading p{color:var(--muted);margin:2px 0 0;font-size:14px;line-height:22px}.setting-row{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);justify-content:space-between;align-items:center;gap:24px;min-height:64px;padding:16px;display:flex}.setting-row+.setting-row{margin-top:12px}.setting-row strong{font-size:14px;line-height:22px}.setting-row p{color:var(--muted);margin:2px 0 0;font-size:13px;line-height:20px}.task-form{margin-top:12px}.task-form h3,.request-section h3{font-size:16px;font-weight:600;line-height:24px}.task-form .stack-form{max-width:560px}.request-section{margin-top:24px}.request-section .empty-state{text-align:left;align-items:flex-start;min-height:80px;padding-inline:0}.settings-list,.submission-filters{gap:12px;display:grid}.primary-filters{margin:0}.advanced-filters{border-top:1px solid var(--line);padding-top:8px}.advanced-filters summary{cursor:pointer;width:fit-content;color:var(--brand);font-size:13px;font-weight:500}.advanced-filters[open] summary{margin-bottom:8px}.submissions-table{min-width:820px}.time-cell{width:160px;min-width:160px}.numeric-cell{white-space:nowrap;font-variant-numeric:tabular-nums;width:72px}.resource-cell{white-space:nowrap;min-width:128px}.resource-cell span{display:block}.language-cell{min-width:120px}.action-link{text-decoration:none;display:inline-flex}.reading-page{max-width:920px}.reading-surface{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);width:min(840px,100%);margin-inline:auto;padding:24px}.reading-surface>h1{margin:12px 0 20px;font-size:26px;font-weight:600;line-height:34px}.reading-surface .markdown-body{font-size:16px;line-height:26px}.reading-surface .markdown-body pre,.reading-surface .markdown-body table{overflow-x:auto}.content-detail>.page-heading,.content-detail>.reading-surface,.content-detail>.admin-section,.content-detail>.content-card{width:min(840px,100%);margin-inline:auto}.content-detail>.admin-section,.content-detail>.content-card{margin-top:16px}.reading-index{max-width:980px}.reading-list{border-top:1px solid var(--line);display:grid}.reading-list>article{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:16px 0;display:grid}.reading-list h2{margin:6px 0 4px;font-size:18px;font-weight:600;line-height:26px}.reading-list p{color:var(--muted);margin:0}.reading-list time{color:var(--muted);white-space:nowrap;font-size:12px;line-height:18px}.notice-list>article{grid-template-columns:minmax(0,1fr) minmax(260px,340px)}.compact-detail-list{gap:4px;margin:0;display:grid}.compact-detail-list>div{grid-template-columns:72px 1fr;gap:8px;font-size:13px;line-height:20px;display:grid}.compact-detail-list dt{color:var(--muted)}.compact-detail-list dd{margin:0}.problem-list-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.problem-list-card{align-content:start;min-height:190px;display:grid}.problem-list-card h2{margin:4px 0 8px;font-size:18px;line-height:26px}.problem-list-card h2 a{color:var(--ink);text-decoration:none}.problem-list-card h2 a:hover{color:var(--brand);text-decoration:underline}.problem-list-description{-webkit-line-clamp:2;min-height:44px;color:var(--muted);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.problem-list-card .button{justify-self:start;margin-top:auto}.member-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;min-height:48px;padding-block:8px;display:flex}.member-row>span{overflow-wrap:anywhere;min-width:0}.file-button{min-height:36px}.file-button input[type=file]{opacity:0;width:1px;height:1px;padding:0;position:absolute}.form-error,.form-success,.alert,.notice{font-size:14px;line-height:22px}.nowrap,.unit-value{white-space:nowrap}.selection-column{text-align:center;width:44px;min-width:44px}.selection-column input{margin-inline:auto}.foundation-fixture{max-width:980px}.foundation-fixture>section{margin-bottom:16px}.fixture-choice-list{gap:12px;max-width:540px;display:grid}.fixture-states{grid-template-columns:1fr 1fr;gap:16px;display:grid}.fixture-states>*{border:1px solid var(--line);border-radius:var(--radius-md)}@media (width<=960px){.home-dashboard{grid-template-columns:minmax(0,1fr) 260px}.problem-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-layout{grid-template-columns:160px minmax(0,1fr);gap:24px}}@media (width<=720px){.home-dashboard,.account-layout{grid-template-columns:1fr}.account-nav{padding:4px;display:flex;position:static;overflow-x:auto}.account-nav a{flex:none;align-items:center;min-height:44px;display:inline-flex}.problem-list-grid{grid-template-columns:1fr}.setting-row{flex-direction:column;align-items:flex-start;gap:12px}.setting-row .button{min-height:44px}.reading-list>article,.notice-list>article{grid-template-columns:1fr;gap:8px}.reading-list time{white-space:normal}.member-row{flex-direction:column;align-items:flex-start}.member-row .button-row{width:100%}.fixture-states{grid-template-columns:1fr}}.ux03-page{max-width:1280px}.breadcrumb{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;font-size:13px;line-height:20px;display:flex}.breadcrumb a{color:var(--brand)}.object-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:16px;display:flex}.object-header h1{overflow-wrap:anywhere;max-width:900px;margin:8px 0 4px;font-size:26px;font-weight:600;line-height:34px}.object-header p{color:var(--muted);margin:0}.object-primary-action{flex:none;align-items:center;gap:8px;display:flex}.status-line{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.status-running{background:var(--green-pale);color:var(--green)}.status-not_started{background:var(--brand-pale);color:var(--brand-dark)}.status-finished,.status-archived{background:var(--surface-soft);color:var(--muted)}.object-context-nav{border-bottom:1px solid var(--line);margin-bottom:24px}.object-context-nav .tabs-v2{margin-bottom:-1px}.section-panel{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);min-width:0;margin-bottom:16px;padding:20px}.section-panel>h2,.section-panel>h3{margin-top:0}.section-heading{align-items:flex-start}.section-heading h2{font-size:18px;line-height:26px}.section-heading p{color:var(--muted);margin:2px 0 0;font-size:14px;line-height:22px}.contest-filter-bar{grid-template-columns:minmax(260px,1fr) minmax(150px,190px) minmax(150px,190px) auto;align-items:end;gap:12px;display:grid}.contest-filter-bar label{gap:6px;display:grid}.contest-list-v2,.classroom-list,.assignment-list-v2{border-top:1px solid var(--line);display:grid}.contest-row,.classroom-row,.assignment-row{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) minmax(180px,auto) auto;align-items:center;gap:24px;padding:16px 0;display:grid}.contest-row h2,.classroom-row h2,.assignment-row h3{margin:6px 0 3px;font-size:18px;font-weight:600;line-height:26px}.contest-row h2 a{color:var(--ink);text-decoration:none}.contest-row h2 a:hover{color:var(--brand);text-decoration:underline}.contest-row p,.classroom-row p,.assignment-row p{color:var(--muted);margin:0}.contest-row-meta,.classroom-row-meta{color:var(--muted);gap:2px;font-size:13px;line-height:20px;display:grid}.contest-overview-grid,.classroom-overview-grid,.assignment-overview-grid{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:24px;display:grid}.contest-overview-grid .section-panel,.classroom-overview-grid .section-panel,.assignment-overview-grid .section-panel{margin:0}.participation-card,.assignment-personal-summary{gap:12px;display:grid}.participation-state{margin:0;font-size:16px;font-weight:600;line-height:24px}.stack-actions{gap:12px;display:grid}.metric-list{grid-template-columns:repeat(3,1fr);gap:12px;margin:0;display:grid}.metric-list div{background:var(--surface-soft);padding:12px}.metric-list dt{color:var(--muted);font-size:12px}.metric-list dd{margin:4px 0 0;font-size:22px;font-weight:600}.compact-assignment-list{display:grid}.assignment-row.compact{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding-block:10px}.assignment-progress{white-space:nowrap;align-items:center;gap:12px;display:flex}.assignment-personal-summary strong{font-size:24px;line-height:32px}.assignment-personal-summary span{color:var(--brand-dark);font-size:18px;font-weight:600}.assignment-personal-summary p{color:var(--muted);margin:0}.policy-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px;display:grid}.policy-summary span{border:1px solid var(--line);background:var(--surface-soft);color:var(--muted);gap:2px;padding:12px;display:grid}.policy-summary strong{color:var(--ink)}.team-onboarding-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;display:grid}.team-onboarding-grid>section{min-width:0}.team-onboarding-grid h3,.team-invitations h3{font-size:16px;line-height:24px}.compact-list article{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:12px 0;display:flex}.compact-list article>div:first-child{display:grid}.compact-list small{color:var(--muted)}.team-summary-v2{justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px;display:flex}.team-summary-v2 h3{margin:6px 0 0}.team-summary-v2 p{color:var(--muted);margin:0}.team-primary-actions{gap:8px;display:flex}.team-invitations{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.ladder-problems-v2{gap:24px;display:grid}.ladder-problems-v2>section{border-top:1px solid var(--line);padding-top:16px}.ladder-problems-v2 header{justify-content:space-between;gap:20px;display:flex}.ladder-problems-v2 h3{margin:0}.ladder-problems-v2 header p{color:var(--muted);margin:0;font-size:13px}.rank-controls{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.rank-controls label:not(.choice-row){gap:4px;display:grid}.choice-row{grid-template-columns:18px minmax(0,1fr);align-items:start;gap:8px;min-height:36px;padding-block:7px;display:grid}.choice-row input{margin-top:2px}.ladder-rule-note{border-left:3px solid var(--brand);background:var(--brand-pale);flex-wrap:wrap;gap:8px 16px;margin-bottom:16px;padding:12px;display:flex}.ladder-rule-note span{color:var(--muted)}.rank-table-scroll,.teaching-matrix-scroll{border:1px solid var(--line);border-radius:var(--radius-md);max-width:100%;overflow:auto}.rank-table,.teaching-matrix-scroll table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%}.rank-table th,.rank-table td{text-align:center;white-space:nowrap;min-width:76px}.rank-table td small{color:var(--muted);margin-top:2px;display:block}.rank-table .rank-position{width:56px;min-width:56px;left:0}.rank-table .rank-subject{text-align:left;width:190px;min-width:160px;left:56px}.rank-sticky{z-index:2;background:var(--surface);position:sticky}.rank-table thead .rank-sticky{z-index:3;background:var(--surface-soft)}.ux03-page,.management-main .admin-page,.management-main .admin-section,.management-main .responsive-table,.app-topbar nav,.management-sidebar nav{min-width:0;max-width:100%}.rolling-spectator{grid-template-columns:minmax(0,1fr) minmax(180px,420px);align-items:center;display:grid}.rolling-spectator>div{display:grid}.rolling-spectator span{color:var(--muted)}.rolling-spectator p{grid-column:1/-1;margin:0}.public-rank-v2{max-width:none;padding:0 24px 32px}.public-rank-topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;min-height:56px;display:flex}.public-rank-topbar .brand{align-items:center;gap:8px;font-weight:700;display:flex}.public-rank-topbar img{object-fit:contain;width:32px;height:32px}.public-rank-context{justify-content:space-between;align-items:flex-end;gap:24px;max-width:1280px;margin:24px auto 16px;display:flex}.public-rank-context h1{margin:4px 0;font-size:26px;line-height:34px}.public-rank-v2 .rank-table-scroll,.public-rank-v2 .empty-state{max-width:1280px;margin-inline:auto}.public-rank-v2 .privacy-note,.public-rank-v2 .public-rank-footer,.public-rank-v2 .rolling-spectator{max-width:1280px}.contest-workspace-navigation{gap:8px;width:100%;display:grid}.workspace-context{color:var(--muted);justify-content:space-between;align-items:center;gap:16px;font-size:13px;display:flex}.workspace-context a{color:var(--ink);font-weight:600;text-decoration:none}.contest-problem-switcher{gap:4px;max-width:100%;padding-bottom:4px;display:flex;overflow-x:auto}.contest-problem-switcher a{border:1px solid var(--line);border-radius:var(--radius-sm);min-width:48px;color:var(--ink);text-align:center;flex:none;padding:6px 10px;text-decoration:none;display:grid}.contest-problem-switcher a[aria-current=page]{border-color:var(--brand);background:var(--brand-pale);color:var(--brand-dark)}.contest-problem-switcher small{color:var(--muted);font-size:11px}.objective-answer-pane{background:var(--surface);color:var(--ink)}.objective-answer-pane .editor-toolbar{border-color:var(--line);background:var(--surface-soft);color:var(--ink)}.objective-fields{min-width:0;padding:24px;overflow:auto}.objective-answer-pane .choice-row{border-bottom:1px solid var(--line)}.objective-answer-pane .choice-row:last-child{border-bottom:0}.objective-answer-pane .submit-bar{border-color:var(--line);background:var(--surface-soft)}.objective-answer-pane .submit-bar>div{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.teaching-metrics{grid-template-columns:repeat(4,minmax(100px,1fr));gap:12px;margin-bottom:16px;display:grid}.teaching-metrics div{border:1px solid var(--line);background:var(--surface-soft);gap:2px;padding:12px;display:grid}.teaching-metrics span{color:var(--muted)}.teaching-metrics strong{font-size:22px}.teacher-student-filter{gap:6px;max-width:320px;margin-bottom:20px;display:grid}.teacher-progress-v2>section+section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.teaching-matrix-scroll th,.teaching-matrix-scroll td{text-align:center;white-space:nowrap;min-width:108px}.teaching-matrix-scroll .matrix-sticky{z-index:2;text-align:left;background:var(--surface);min-width:180px;position:sticky;left:0}.teaching-matrix-scroll thead .matrix-sticky{z-index:3;background:var(--surface-soft)}.teaching-matrix-scroll td small{color:var(--muted);display:block}.table-identity-button{border-radius:var(--radius-sm);width:100%;min-height:36px;color:inherit;text-align:left;background:0 0;border:0;gap:2px;padding:4px 6px;display:grid}.table-identity-button:hover,.table-identity-button:focus-visible,.selected-row .table-identity-button{background:var(--brand-pale)}@media (width<=1024px){.contest-overview-grid,.classroom-overview-grid,.assignment-overview-grid{grid-template-columns:minmax(0,1fr) 260px}.problem-workspace{grid-template-columns:1fr}.editor-pane{min-height:620px}}@media (width<=760px){.object-header,.public-rank-context,.team-summary-v2,.ladder-problems-v2 header{flex-direction:column;align-items:stretch}.object-primary-action,.team-primary-actions{flex-wrap:wrap}.contest-filter-bar,.contest-overview-grid,.classroom-overview-grid,.assignment-overview-grid,.team-onboarding-grid{grid-template-columns:1fr}.contest-row,.classroom-row,.assignment-row,.assignment-row.compact{grid-template-columns:minmax(0,1fr);gap:12px}.contest-row-meta,.classroom-row-meta{flex-wrap:wrap;gap:4px 12px;display:flex}.policy-summary,.teaching-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-context{flex-direction:column;align-items:flex-start;gap:2px}.rolling-spectator{grid-template-columns:1fr}.public-rank-v2{padding-inline:16px}.management-main .page-shell{width:min(100% - 1rem,1180px)}}@media (width<=420px){.policy-summary,.teaching-metrics,.metric-list{grid-template-columns:1fr}.section-panel{padding:16px}.editor-pane{min-height:560px}}
