@keyframes fadeInUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}*{box-sizing:border-box;margin:0;padding:0}body{font-family:Lucida Grande,Arial,sans-serif;font-size:13px;background:#fff;color:#222}a{color:#2264b0;text-decoration:none}a:hover{text-decoration:underline}.top-bar{background:#3d3d3d;color:#fff;padding:6px 16px;display:flex;align-items:center;gap:16px}.top-bar .logo{font-weight:700;font-size:15px;color:#fff;letter-spacing:.5px}.top-bar .user-info{margin-left:auto;color:#ccc;font-size:12px}.top-bar .user-info a{color:#aad4ff}.problem-nav{background:#f0f0f0;border-bottom:1px solid #ccc;display:flex;flex-wrap:wrap;padding:0 8px}.problem-nav a{display:inline-block;padding:6px 10px;color:#2264b0;font-size:12px;border-bottom:2px solid transparent;white-space:nowrap}.problem-nav a.active{border-bottom:2px solid #2264b0;color:#000;font-weight:700}.problem-nav a:hover{text-decoration:none;background:#e8e8e8}.content{padding:12px 16px}table.poly-table{width:100%;border-collapse:collapse;font-size:12px}table.poly-table th{background:#dde;border:1px solid #bbc;padding:4px 8px;text-align:left;font-weight:400}table.poly-table td{border:1px solid #ddd;padding:3px 8px;vertical-align:top}table.poly-table tr:nth-child(2n) td{background:#f8f8f8}table.poly-table tr:hover td{background:#eef}.btn{display:inline-block;padding:3px 10px;font-size:12px;background:#e0e8f0;border:1px solid #99aabb;border-radius:3px;cursor:pointer;color:#222;text-decoration:none}.btn:hover{background:#ccd8e8;text-decoration:none}.btn-primary{background:#4472c4;color:#fff;border-color:#2a52a0}.btn-primary:hover{background:#2a52a0;color:#fff}.btn-danger{background:#d44;color:#fff;border-color:#a22}.btn-danger:hover{background:#a22}.btn-sm{padding:2px 6px;font-size:11px}.poly-link{color:#00c;text-decoration:none}.poly-link:hover{text-decoration:underline;cursor:pointer}.form-row{margin-bottom:8px;display:flex;align-items:baseline;gap:8px}.form-row label{min-width:140px;font-size:12px;color:#444}.form-row input[type=text],.form-row input[type=password],.form-row input[type=number],.form-row select,.form-row textarea{border:1px solid #aaa;padding:3px 6px;font-size:12px;font-family:inherit;border-radius:2px}.form-row textarea{width:100%;resize:vertical;min-height:80px;font-family:Courier New,monospace;font-size:11px}.form-actions{margin-top:10px}.login-page{max-width:360px;margin:60px auto;border:1px solid #ccc;padding:24px;background:#f9f9f9}.login-page h2{margin-bottom:16px;font-size:16px}.problems-list h2{font-size:15px;margin-bottom:8px}.section-header{background:#e8e8e8;border:1px solid #ccc;padding:4px 10px;font-weight:700;font-size:12px;margin-bottom:4px}.verdict-OK{color:green;font-weight:700}.verdict-WA,.verdict-WRONG_ANSWER{color:red;font-weight:700}.verdict-TL,.verdict-TLE{color:#c60;font-weight:700}.verdict-ML,.verdict-MLE{color:purple;font-weight:700}.verdict-RE{color:#a00;font-weight:700}.verdict-CE{color:#800;font-weight:700}.verdict-PE,.verdict-PRESENTATION_ERROR{color:#06a;font-weight:700}.verdict-SKIPPED{color:#888}.tag-main{color:#007;font-weight:700}.tag-accepted{color:green}.tag-wrong-answer{color:red}.tag-time-limit-exceeded{color:#c60}.tag-rejected{color:#888}.flex{display:flex;gap:8px;align-items:center}.flex-between{display:flex;justify-content:space-between;align-items:center}.cautions{background:#fff3cd;border:1px solid #ffc107;padding:8px 12px;margin-bottom:10px;border-radius:3px;font-size:12px}.cautions ul{margin:4px 0 0 16px}.code-view{background:#f4f4f4;border:1px solid #ddd;padding:8px;font-family:Courier New,monospace;font-size:11px;white-space:pre-wrap;overflow-x:auto;max-height:400px;overflow-y:auto}.alert{padding:8px 12px;border-radius:3px;margin-bottom:8px;font-size:12px}.alert-error{background:#fde;border:1px solid #e99;color:#800}.alert-success{background:#efe;border:1px solid #9c9;color:#060}.alert-info{background:#def;border:1px solid #9ad;color:#036}.problem-summary{float:right;width:220px;border:1px solid #ccc;padding:8px;font-size:11px;margin-left:12px;background:#f9f9f9}.problem-summary table{width:100%}.problem-summary td{padding:2px 4px}.problem-summary td:first-child{color:#666}.clearfix:after{content:"";display:table;clear:both}h1,h2,h3{font-size:14px;margin:8px 0}.breadcrumb{font-size:12px;color:#666;margin-bottom:8px}.breadcrumb a{color:#2264b0}.file-size{color:#888;font-size:11px}.source-type{font-family:monospace;font-size:11px;color:#555}@keyframes spin{to{transform:rotate(360deg)}}.spinner{display:inline-block;width:11px;height:11px;border:2px solid #ccc;border-top-color:#4472c4;border-radius:50%;animation:spin .7s linear infinite;vertical-align:middle;flex-shrink:0}@keyframes progress-indeterminate{0%{transform:translate(-200%)}to{transform:translate(500%)}}.progress-bar{height:5px;background:#e0e0e0;border-radius:2px;overflow:hidden;margin:5px 0}.progress-bar-fill{height:100%;background:#4472c4;border-radius:2px;transition:width .4s ease}.progress-bar-fill-indeterminate{height:100%;width:35%;background:#4472c4;border-radius:2px;animation:progress-indeterminate 1.4s ease-in-out infinite}.stmt-preview{padding:24px 32px 32px;font-family:Georgia,Times New Roman,serif;font-size:15px;line-height:1.75;color:#1a1a1a}.stmt-preview .katex-display{margin:12px 0;overflow-x:auto}.stmt-preview .katex{font-size:1em}.stmt-title{font-size:20px;font-weight:700;text-align:center;margin:0 0 20px;color:#111;padding-bottom:14px;border-bottom:2px solid #e8eaed}.stmt-section{margin-bottom:16px}.stmt-tutorial{margin-top:24px;padding-top:16px;border-top:2px dashed #e0e0e0}.stmt-h3{font-size:13px;font-weight:700;font-family:Lucida Grande,Arial,sans-serif;text-transform:uppercase;letter-spacing:.06em;color:#444;margin:0 0 8px;padding-bottom:4px;border-bottom:1px solid #e8eaed}.lx-p{margin:0 0 .6em}.lx-p:last-child{margin-bottom:0}.lx-pre{background:#f6f8fa;border:1px solid #d0d7de;padding:8px 12px;font-family:Courier New,monospace;font-size:12px;border-radius:4px;white-space:pre;overflow-x:auto;margin:6px 0}.lx-tt{font-family:Courier New,monospace;background:#f0f2f5;border:1px solid #d8dde3;padding:1px 4px;border-radius:3px;font-size:.88em}.lx-list{margin:4px 0 8px 24px}.lx-list li{margin-bottom:4px;line-height:1.6}.stmt-example{display:flex;gap:10px;margin:8px 0}.stmt-example-col{flex:1;min-width:0}.stmt-example-label{font-family:Lucida Grande,Arial,sans-serif;font-size:10px;font-weight:700;color:#57606a;margin-bottom:4px;text-transform:uppercase;letter-spacing:.07em}.stmt-example-pre{background:#f6f8fa;border:1px solid #d0d7de;padding:8px 12px;font-family:Courier New,monospace;font-size:12.5px;line-height:1.5;min-height:44px;border-radius:4px;white-space:pre;overflow-x:auto;margin:0;color:#1f2328}.input-preview{background:#f4f4f4;border:1px solid #ddd;padding:4px 6px;font-family:monospace;font-size:11px;white-space:pre;overflow:hidden;max-height:60px;color:#333}:root{--bg: #ffffff;--surface: #ffffff;--surface-2: #f6f8fa;--surface-3: #eef0f3;--border: #dddddd;--fg: #222222;--muted: #666666;--accent: #2264b0;--info-bg: #eef4ff;--info-border: #cce;--warn-bg: #fff3cd;--warn-border: #ffc107;--ok-bg: #eefaef}[data-theme=dark]{--bg: #1e1e1e;--surface: #252526;--surface-2: #2d2d30;--surface-3: #33333a;--border: #3e3e42;--fg: #d4d4d4;--muted: #9aa0a6;--accent: #4ea1ff;--info-bg: #20303f;--info-border: #355270;--warn-bg: #3a3320;--warn-border: #6b5d2a;--ok-bg: #1f3a24}[data-theme=dark] body{background:var(--bg);color:var(--fg)}[data-theme=dark] a{color:#4ea1ff}[data-theme=dark] .top-bar{background:#141414}[data-theme=dark] .problem-nav{background:#252526;border-bottom-color:#3e3e42}[data-theme=dark] .problem-nav a{color:#4ea1ff}[data-theme=dark] .problem-nav a.active{color:#fff;border-bottom-color:#4ea1ff}[data-theme=dark] .problem-nav a:hover{background:#2d2d30}[data-theme=dark] table.poly-table th{background:#2d2d30;border-color:#3e3e42;color:#d4d4d4}[data-theme=dark] table.poly-table td{border-color:#3a3a3d}[data-theme=dark] table.poly-table tr:nth-child(2n) td{background:#2a2a2b}[data-theme=dark] table.poly-table tr:hover td{background:#323a45}[data-theme=dark] .btn{background:#3a3a3d;border-color:#555;color:#e0e0e0}[data-theme=dark] .btn:hover{background:#46464a}[data-theme=dark] .btn-primary{background:#3a6db5;border-color:#2a52a0;color:#fff}[data-theme=dark] .btn-primary:hover{background:#2a5699}[data-theme=dark] .btn-danger{background:#b33;border-color:#822;color:#fff}[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select{background:#1b1b1c;color:#d4d4d4;border-color:#3e3e42}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#6b7177}[data-theme=dark] .section-header{background:#2d2d30;border-color:#3e3e42;color:#d4d4d4}[data-theme=dark] .problem-summary{background:#252526;border-color:#3e3e42}[data-theme=dark] .problem-summary td:first-child,[data-theme=dark] .breadcrumb,[data-theme=dark] .breadcrumb a{color:#9aa0a6}[data-theme=dark] .problem-header{background:#1c1c1c!important;border-bottom-color:#3e3e42!important}[data-theme=dark] .code-view{background:#1b1b1b;border-color:#3e3e42;color:#d4d4d4}[data-theme=dark] .input-preview{background:#1b1b1b;border-color:#3e3e42;color:#c8c8c8}[data-theme=dark] .login-page{background:#252526;border-color:#3e3e42}[data-theme=dark] .cautions{background:#3a3320;border-color:#6b5d2a;color:#e8d9a0}[data-theme=dark] .alert-error{background:#3a2226;border-color:#7a3b42;color:#f0a8b0}[data-theme=dark] .alert-success{background:#1f3a24;border-color:#3a7a48;color:#a8e0b8}[data-theme=dark] .alert-info{background:#1f2f3a;border-color:#3a6080;color:#a8cce8}[data-theme=dark] .stmt-preview{background:var(--surface);color:#d4d4d4}[data-theme=dark] .stmt-title{color:#fff;border-bottom-color:#3e3e42}[data-theme=dark] .stmt-h3{color:#c8c8c8;border-bottom-color:#3e3e42}[data-theme=dark] .stmt-example-pre,[data-theme=dark] .lx-pre{background:#1b1b1b;border-color:#3e3e42;color:#d4d4d4}[data-theme=dark] .lx-tt{background:#2d2d30;border-color:#3e3e42;color:#d4d4d4}[data-theme=dark] .stmt-example-label{color:#9aa0a6}
