*{box-sizing:border-box;margin:0;padding:0}body{font-family:Arial,sans-serif;background-color:#f5f7fb;color:#222}a{text-decoration:none;color:inherit}.header{height:70px;padding:0 60px;background-color:#fff;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;align-items:center}.logo{font-size:22px;font-weight:700;color:#2563eb}.nav{display:flex;gap:28px}.nav a{font-size:16px;color:#333}.nav a:hover{color:#2563eb}.main{max-width:1100px;margin:0 auto;padding:60px 24px}.hero{background:#fff;padding:70px 50px;border-radius:20px;text-align:center;box-shadow:0 8px 24px #00000014}.hero h1{font-size:42px;margin-bottom:20px}.hero p{font-size:18px;color:#555;margin-bottom:32px}.hero-buttons{display:flex;justify-content:center;gap:14px}.btn{padding:12px 20px;border-radius:10px;background-color:#e5e7eb;font-weight:700}.btn.primary{background-color:#2563eb;color:#fff}.btn:hover{opacity:.85}.intro,.notice-section{margin-top:50px}.intro h2,.notice-section h2{font-size:28px;margin-bottom:18px}.intro p{background:#fff;padding:28px;border-radius:16px;line-height:1.7;color:#444}.section-title{display:flex;justify-content:space-between;align-items:center}.section-title a{color:#2563eb;font-weight:700}.notice-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}.notice-card{background:#fff;padding:24px;border-radius:16px;border:1px solid #e5e7eb}.notice-card-number{display:inline-block;margin-bottom:10px;padding:4px 10px;border-radius:999px;background-color:#dbeafe;color:#2563eb;font-size:13px;font-weight:700}.notice-card h3{font-size:20px;margin-bottom:12px}.notice-card p{color:#555;margin-bottom:18px;line-height:1.5}.notice-card span{font-size:14px;color:#888}.footer{text-align:center;padding:30px;color:#777}.notice-page h1{font-size:36px;margin-bottom:30px}.notice-table{background:#fff;border-radius:16px;overflow:hidden;border:1px solid #ddd}.notice-header,.notice-row{display:grid;grid-template-columns:64px 140px 1fr 120px;align-items:center;padding:18px 24px}.notice-number{font-weight:700;color:#2563eb;text-align:center}.notice-admin-table .notice-admin-header,.notice-admin-row{display:grid;grid-template-columns:64px 140px 1fr 120px 100px;align-items:center;padding:18px 24px}.notice-admin-row{border-bottom:1px solid #eee}.notice-admin-row:last-child{border-bottom:none}.notice-admin-title{font-weight:700;color:#222}.admin-form{background:#fff;padding:28px;border-radius:16px;border:1px solid #e5e7eb;box-shadow:0 8px 24px #0000000f;margin-bottom:36px}.admin-form h2{font-size:22px;margin-bottom:20px;color:#2563eb}.admin-section-title{font-size:22px;margin-bottom:18px}.admin-form label{display:block;margin-bottom:16px;font-weight:700;color:#333}.admin-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-form input,.admin-form textarea{display:block;width:100%;margin-top:8px;padding:12px 14px;border:1px solid #d1d5db;border-radius:10px;font-size:15px;font-weight:400}.admin-form textarea{resize:vertical;min-height:120px}.admin-form input:focus,.admin-form textarea:focus{outline:none;border-color:#2563eb}.admin-form .auth-btn{margin-top:8px}.notice-header{background-color:#f3f4f6;font-weight:700;border-bottom:1px solid #ddd}.notice-row{border-bottom:1px solid #eee;cursor:pointer}.notice-row:hover{background-color:#f9fafb}.notice-box{display:none;padding:24px;background-color:#fafafa;border-top:1px solid #eee}.notice-box.active{display:block}.notice-box h2{margin-bottom:14px;font-size:24px}.notice-box p{line-height:1.7;color:#444}.login-page{display:flex;justify-content:center;align-items:center;min-height:650px}.login-box{width:420px;background:#fff;border-radius:20px;padding:32px;border:1px solid #e5e7eb;box-shadow:0 8px 24px #00000014}.login-tabs{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;margin-bottom:28px;background-color:#f3f4f6;border-radius:12px;padding:5px}.tab-btn{border:none;background:transparent;padding:12px;border-radius:10px;cursor:pointer;font-weight:700;color:#555}.tab-btn.active{background-color:#2563eb;color:#fff}.auth-form{display:none;flex-direction:column}.auth-form.active{display:flex}.auth-form h1{font-size:30px;margin-bottom:24px}.auth-form label{margin-bottom:8px;font-weight:700}.auth-form input{height:46px;padding:0 14px;margin-bottom:18px;border:1px solid #d1d5db;border-radius:10px;font-size:15px}.auth-form input:focus{outline:none;border-color:#2563eb}.auth-btn{height:48px;border:none;border-radius:10px;background-color:#2563eb;color:#fff;font-weight:700;font-size:16px;cursor:pointer}.auth-btn:hover{opacity:.9}.auth-message{margin-top:16px;font-size:14px;color:#dc2626}.hidden{display:none!important}.admin-page h1{font-size:36px;margin-bottom:30px}.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.admin-card{display:block;background:#fff;padding:28px;border-radius:16px;border:1px solid #e5e7eb;box-shadow:0 8px 24px #0000000f}.admin-card:hover{transform:translateY(-3px)}.admin-card h2{font-size:24px;margin-bottom:12px;color:#2563eb}.admin-card p{color:#555;line-height:1.6}.admin-page-top{margin-bottom:28px}.admin-back{display:inline-block;margin-bottom:14px;color:#2563eb;font-weight:700}.admin-back:hover{opacity:.85}.admin-page-desc{margin-top:10px;color:#555;line-height:1.6}.admin-message{margin-bottom:18px;padding:14px 18px;border-radius:10px;background-color:#eff6ff;color:#2563eb;font-size:14px;font-weight:700}.admin-message.error{background-color:#fef2f2;color:#dc2626}.admin-empty,.admin-loading{padding:24px;text-align:center;color:#666;background:#fff}.user-table{background:#fff;border-radius:16px;overflow:hidden;border:1px solid #ddd}.user-header,.user-row{display:grid;grid-template-columns:120px 1fr 100px minmax(220px,1.4fr);align-items:center;padding:18px 24px}.user-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.user-header{background-color:#f3f4f6;font-weight:700;border-bottom:1px solid #ddd}.user-row{border-bottom:1px solid #eee}.user-row:last-child{border-bottom:none}.role-badge{display:inline-block;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:700}.role-guest{background-color:#f3f4f6;color:#555}.role-user{background-color:#dbeafe;color:#2563eb}.btn-approve{padding:8px 14px;border:none;border-radius:10px;background-color:#2563eb;color:#fff;font-weight:700;font-size:14px;cursor:pointer}.btn-approve:hover:not(:disabled){opacity:.9}.btn-approve:disabled,.btn-demote:disabled,.btn-delete:disabled{opacity:.6;cursor:not-allowed}.btn-demote,.btn-delete{padding:8px 14px;border-radius:10px;font-weight:700;font-size:14px;cursor:pointer;border:1px solid #d1d5db;background-color:#fff;color:#374151}.btn-demote:hover:not(:disabled){background-color:#f3f4f6}.btn-delete{border-color:#fecaca;color:#dc2626}.btn-delete:hover:not(:disabled){background-color:#fef2f2}.nav a.nav-active{color:#2563eb;font-weight:700}.problems-page h1,.problems-list-page h1{font-size:36px;margin-bottom:10px}.problems-page-head{margin-bottom:36px}.problems-page-desc{color:#555;line-height:1.6;margin-bottom:24px}.problems-list-page .problems-page-desc{margin-top:-18px}.book-list-header,.book-list-row{grid-template-columns:64px 1fr 88px 88px 88px}.book-list-row{display:grid;color:inherit;text-decoration:none;transition:background-color .15s ease}.book-list-row:hover{background-color:#f9fafb}.book-list-title{font-weight:700;color:#222}.book-list-row.is-completed .book-list-title{color:#166534}.book-list-status{display:flex;align-items:center;justify-content:center}.book-complete-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.2;color:#166534;background:#dcfce7;border:1px solid #86efac;vertical-align:middle}.practice-page-head h1 .book-complete-badge{margin-left:10px;font-size:14px;vertical-align:middle}.practice-page .admin-back{display:inline-block;margin-bottom:20px}.practice-page-head{margin-bottom:24px}.practice-page-head h1{font-size:32px;margin-bottom:8px}.practice-filters{display:flex;flex-wrap:wrap;gap:14px;padding:18px 20px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;margin-bottom:18px}.practice-filter{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#555}.practice-filter select,.practice-filter input{min-width:140px;height:40px;padding:0 12px;border:1px solid #d1d5db;border-radius:10px;font-size:14px;font-weight:400}.practice-filter-search input{min-width:200px}.practice-filter select:focus,.practice-filter input:focus{outline:none;border-color:#2563eb}.practice-view-tabs{display:inline-flex;gap:6px;padding:5px;background:#f3f4f6;border-radius:12px;margin-bottom:18px}.view-tab{border:none;background:transparent;padding:10px 18px;border-radius:10px;font-weight:700;color:#555;cursor:pointer}.view-tab.active{background:#2563eb;color:#fff}.practice-list-view{display:flex;flex-direction:column;gap:12px}.practice-card{display:block;padding:20px 22px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.practice-card:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 8px 20px #2563eb1a}.practice-card.is-solved{border-color:#86efac;background:linear-gradient(180deg,#fff,#f0fdf4)}.practice-card.is-wrong{border-color:#fca5a5;background:linear-gradient(180deg,#fff,#fef2f2)}.practice-card-result{margin-left:auto;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px}.practice-card-result.is-correct{color:#15803d;background:#dcfce7}.practice-card-result.is-wrong{color:#b91c1c;background:#fee2e2}.practice-card-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}.practice-card-no{font-size:14px;font-weight:700;color:#2563eb}.practice-card-level{font-size:13px;font-weight:700;color:#6b7280;padding:4px 10px;border-radius:999px;background:#f3f4f6}.practice-card-badge{margin-left:auto;font-size:12px;font-weight:700;color:#16a34a;padding:4px 10px;border-radius:999px;background:#dcfce7}.practice-card-title{font-size:18px;margin-bottom:8px;color:#111827}.practice-card-tag{font-size:13px;color:#6b7280;font-weight:700}.practice-grid-view{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px}.practice-grid-view .problem-grid{margin-bottom:0}.problem-cell.is-empty{border-style:dashed;background:#f9fafb;cursor:default;opacity:.5}.problem-cell.is-empty:hover{transform:none;box-shadow:none;border-color:#e5e7eb}.practice-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:28px}.practice-pagination.hidden{display:none}.page-btn{min-width:40px;height:40px;padding:0 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff;font-weight:700;color:#374151;cursor:pointer}.page-btn:hover{border-color:#2563eb;color:#2563eb}.page-btn.active{background:#2563eb;border-color:#2563eb;color:#fff}.admin-tabs{display:flex;gap:10px;margin-bottom:24px}.admin-tab{flex:1;max-width:200px;padding:12px 18px;border:none;border-radius:12px;background:#e5e7eb;font-weight:700;color:#555;cursor:pointer}.admin-tab.active{background:#2563eb;color:#fff}.admin-tab-panel{display:none}.admin-tab-panel.active{display:block}.form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.btn-cancel,.btn-secondary{padding:12px 18px;border-radius:10px;font-weight:700;font-size:15px;cursor:pointer;border:1px solid #d1d5db;background:#fff;color:#374151}.btn-secondary:hover,.btn-cancel:hover{background:#f3f4f6}.form-subtitle{font-size:16px;margin:8px 0 12px;color:#2563eb}.form-hint{font-size:13px;color:#888;margin-top:-8px;margin-bottom:12px}.type-fields.hidden{display:none}.choices-list{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}.choice-row{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center}.choice-row .choice-id{text-align:center;font-weight:700}.correct-choice-label{margin-top:14px}.filter-inline{display:block;margin-bottom:16px;font-weight:700;color:#333}.filter-inline select{display:block;margin-top:8px;width:100%;max-width:320px;height:42px;padding:0 12px;border:1px solid #d1d5db;border-radius:10px}.book-admin-header,.book-admin-row{grid-template-columns:72px 1fr 100px 160px}.problem-admin-header,.problem-admin-row{grid-template-columns:64px 1fr 88px 160px}.problem-list-meta{font-size:13px;color:#888;margin-top:4px;font-weight:400}.practice-card-tag-inline{margin-left:auto;font-size:12px;font-weight:700;color:#6b7280;padding:4px 8px;border-radius:6px;background:#f3f4f6}.problem-solve-page{max-width:800px}.problem-solve-head{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:28px;margin-bottom:24px;box-shadow:0 8px 24px #0000000f}.problem-solve-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px}.problem-solve-head h1{font-size:28px;margin-bottom:0}.problem-panels{display:flex;flex-direction:column;gap:0;margin-bottom:24px}.problem-panel{border-radius:16px;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 4px 14px #0000000d}.problem-panel-text{background:#fff;border-color:#bfdbfe}.problem-panel-code{background:#0f172a;border-color:#334155;box-shadow:0 8px 24px #0f172a40}.problem-panel-header{display:flex;align-items:center;gap:12px;padding:14px 22px;background:#eff6ff;border-bottom:1px solid #dbeafe}.problem-panel-header-code{background:#1e293b;border-bottom:1px solid #334155}.problem-panel-label{flex-shrink:0;font-size:11px;font-weight:800;letter-spacing:.06em;padding:5px 10px;border-radius:6px;background:#2563eb;color:#fff}.problem-panel-label-code{background:#38bdf8;color:#0f172a}.problem-panel-title{margin:0;font-size:17px;font-weight:700;color:#1e40af}.problem-panel-header-code .problem-panel-title{color:#e2e8f0}.problem-panel-body{padding:22px 26px}.problem-panel-separator{display:flex;align-items:center;gap:14px;margin:28px 0}.problem-panel-separator-line{flex:1;height:2px;background:linear-gradient(90deg,#93c5fd,#cbd5e1,#64748b);border-radius:2px}.problem-panel-separator-label{flex-shrink:0;font-size:12px;font-weight:800;letter-spacing:.04em;padding:4px 10px;border-radius:6px}.problem-panel-separator-label-text{color:#1d4ed8;background:#dbeafe}.problem-panel-separator-label-code{color:#e2e8f0;background:#334155}.problem-statement{margin:0;line-height:1.85;color:#1f2937;white-space:pre-wrap;font-size:16px}.problem-panel-code .problem-code{margin:0;padding:22px 24px;background:#020617;color:#e2e8f0;border-radius:0;overflow-x:auto;font-family:Consolas,Courier New,monospace;font-size:14px;line-height:1.65;white-space:pre;border:none;border-top:1px solid #1e293b}.problem-code code{font-family:inherit}.problem-form-section{margin-top:20px;padding:0;border-radius:14px;border:1px solid #e5e7eb;overflow:hidden}.problem-form-section .form-subtitle{margin:0;padding:12px 18px;font-size:15px;border-bottom:1px solid #e5e7eb}.problem-form-section label{display:block;padding:16px 18px 20px;margin:0}.problem-form-section-content{border-color:#bfdbfe;background:#fff}.problem-form-section-content .form-subtitle{background:#eff6ff;color:#1e40af;border-bottom-color:#dbeafe}.problem-form-section-code{margin-top:28px;border-color:#334155;background:#0f172a}.problem-form-section-code .form-subtitle{background:#1e293b;color:#e2e8f0;border-bottom-color:#334155}.problem-form-section-code label{color:#cbd5e1}.problem-form-section-code .form-hint{color:#94a3b8;padding:0 18px 16px;margin:-8px 0 0}.problem-form-section-code textarea{font-family:Consolas,Courier New,monospace;font-size:14px;line-height:1.5;background:#1e293b;color:#e2e8f0;border-color:#334155}.problem-form-section-code textarea::placeholder{color:#94a3b8}.problem-form-section-work{margin-top:20px;border-color:#86efac;background:#0f172a}.problem-form-section-work .form-subtitle{background:#14532d;color:#dcfce7;border-bottom-color:#166534}.problem-form-section-work label{color:#cbd5e1}.problem-form-section-work textarea{font-family:Consolas,Courier New,monospace;font-size:14px;background:#020617;color:#e2e8f0;border-color:#334155}#starterCode{font-family:Consolas,Courier New,monospace;font-size:14px}.work-random-panel{margin-top:24px;padding:20px;border-radius:14px;border:1px solid #c4b5fd;background:linear-gradient(180deg,#faf5ff,#f5f3ff)}.work-random-panel .form-subtitle{margin:0 0 14px;padding:0;border:none;background:none;color:#6d28d9}.work-random-grid{margin-bottom:12px}.work-random-panel code{font-size:12px;background:#ede9fe;padding:2px 6px;border-radius:4px}#randomTcCustomWrap,#randomTcLinesWrap{margin-bottom:12px;font-weight:700}.work-random-options{display:flex;flex-wrap:wrap;gap:16px 24px;margin:14px 0}.checkbox-inline{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#555}.work-random-panel>.btn-secondary{margin-top:4px}.work-testcases-block{margin-top:24px;padding-top:20px;border-top:2px dashed #e5e7eb}.work-testcases-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.work-testcases-head .form-subtitle{margin:0;padding:0;border:none;background:none;color:#1e40af}.work-runner-status{margin:12px 0;padding:10px 14px;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:14px;font-weight:700}.work-runner-status.error{background:#fef2f2;color:#b91c1c}.testcases-list{display:flex;flex-direction:column;gap:16px}.testcase-row{padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb}.testcase-row-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}.testcase-row-label{margin-right:auto;color:#374151}.testcase-sample-label{font-size:14px;font-weight:700;color:#555}.testcase-row-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.testcase-row-grid textarea{font-family:Consolas,Courier New,monospace;font-size:13px}@media (max-width: 720px){.testcase-row-grid{grid-template-columns:1fr}}.work-test-panel{margin:20px 0;padding:18px 20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px}.work-test-title{margin:0 0 14px;font-size:16px;color:#2563eb}.work-test-run{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.work-test-input-label{display:block;margin:0;font-weight:700;font-size:14px;color:#374151}.work-test-input-label span{display:block;margin-bottom:8px}.work-test-input{width:100%;font-family:Consolas,Courier New,monospace;font-size:14px;line-height:1.5;padding:12px 14px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;resize:vertical}.work-test-run .btn-secondary{height:44px;padding:0 22px;white-space:nowrap}.work-test-output-wrap{margin-top:16px}.work-test-output-pre{margin:8px 0 0;padding:14px 16px;background:#0f172a;color:#e2e8f0;border-radius:10px;font-family:Consolas,Courier New,monospace;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-x:auto}.work-test-error{margin:12px 0 0;padding:12px 14px;border-radius:10px;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;font-size:14px;font-weight:700;white-space:pre-wrap}.work-form-actions{margin-top:8px}.work-form-actions .auth-btn{width:100%}@media (max-width: 640px){.work-test-run{grid-template-columns:1fr}.work-test-run .btn-secondary{width:100%}}.work-code-input{width:100%;font-family:Consolas,Courier New,monospace;font-size:14px;line-height:1.55;padding:14px 16px;border:1px solid #334155;border-radius:12px;background:#0f172a;color:#e2e8f0;resize:vertical}.work-sample-tests{margin-bottom:20px;padding:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.work-sample-title{margin:0 0 14px;font-size:16px;color:#2563eb}.work-sample-card{padding:12px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:10px}.work-sample-card:last-child{margin-bottom:0}.work-sample-io{display:grid;grid-template-columns:1fr 1fr;gap:14px}.work-io-label{display:block;font-size:12px;font-weight:700;color:#64748b;margin-bottom:6px}.work-io-pre{margin:0;padding:10px 12px;background:#f1f5f9;border-radius:8px;font-family:Consolas,Courier New,monospace;font-size:13px;white-space:pre-wrap;word-break:break-word;overflow-x:auto}@media (max-width: 640px){.work-sample-io{grid-template-columns:1fr}}.work-judge-result{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px;margin-bottom:20px}.work-judge-summary{font-size:18px;font-weight:700;margin:0 0 16px}.work-judge-summary.is-correct{color:#15803d}.work-judge-summary.is-wrong{color:#b91c1c}.work-judge-rows{display:flex;flex-direction:column;gap:10px}.work-judge-row{padding:12px 14px;border-radius:10px;font-weight:700;font-size:14px}.work-judge-row.tc-pass{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}.work-judge-row.tc-fail{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.work-judge-input{display:block;margin-top:6px;font-size:12px;font-weight:400;color:#64748b}.work-judge-detail{margin:8px 0 0;font-weight:400;font-size:12px;white-space:pre-wrap;font-family:Consolas,Courier New,monospace}.problem-answer-form{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:28px;margin-bottom:20px}.problem-answer-form h2{font-size:20px;margin-bottom:18px;color:#2563eb}.problem-answer-form label{display:block;font-weight:700;margin-bottom:16px}.problem-answer-form input[type=text]{display:block;width:100%;margin-top:8px;height:46px;padding:0 14px;border:1px solid #d1d5db;border-radius:10px;font-size:16px;font-weight:400}.mcq-choices{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.mcq-choice-label{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:2px solid #e5e7eb;border-radius:12px;cursor:pointer;font-weight:400;transition:border-color .15s ease,background-color .15s ease}.mcq-choice-label:hover{border-color:#93c5fd;background:#f9fafb}.mcq-choice-label input{margin-top:3px;flex-shrink:0}.mcq-choice-label:has(input:checked){border-color:#2563eb;background:#eff6ff}.problem-result{padding:16px 20px;border-radius:12px;font-weight:700;font-size:16px}.problem-result.is-correct{background:#dcfce7;color:#15803d}.problem-result.is-wrong{background:#fef2f2;color:#dc2626}.problem-book{background:#fff;border-radius:20px;border:1px solid #e5e7eb;box-shadow:0 8px 24px #0000000f;padding:28px 28px 32px;margin-bottom:28px}.problem-book-header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px;padding-bottom:18px;border-bottom:2px solid #f3f4f6}.problem-book-title{display:flex;align-items:baseline;gap:12px}.problem-book-chapter{display:inline-block;padding:6px 12px;border-radius:999px;background-color:#dbeafe;color:#2563eb;font-size:14px;font-weight:700}.problem-book-header h2{font-size:26px;color:#222}.problem-book-meta{font-size:14px;color:#888;font-weight:700}.problem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.problem-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:88px;padding:14px 10px;border-radius:14px;border:2px solid #e5e7eb;background:linear-gradient(180deg,#fff,#f9fafb);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.problem-cell:hover{transform:translateY(-2px);box-shadow:0 6px 16px #2563eb1f;border-color:#93c5fd}.problem-cell-num{font-size:22px;font-weight:700;color:#1f2937;line-height:1}.problem-cell-status{font-size:12px;font-weight:700;color:#6b7280}.problem-cell.is-solved{border-color:#86efac;background:linear-gradient(180deg,#f0fdf4,#ecfdf5)}.problem-cell.is-solved .problem-cell-num{color:#15803d}.problem-cell.is-solved .problem-cell-status{color:#16a34a}.problem-cell.is-wrong{border-color:#fca5a5;background:linear-gradient(180deg,#fef2f2,#fee2e2)}.problem-cell.is-wrong .problem-cell-num{color:#b91c1c}.problem-cell.is-wrong .problem-cell-status{color:#dc2626}.problem-cell.is-current{border-color:#2563eb;background:linear-gradient(180deg,#eff6ff,#dbeafe);box-shadow:0 0 0 3px #2563eb26}.problem-cell.is-current .problem-cell-num,.problem-cell.is-current .problem-cell-status{color:#2563eb}.problem-cell.is-locked{border-color:#e5e7eb;background:#f3f4f6;cursor:not-allowed;opacity:.75}.problem-cell.is-locked:hover{transform:none;box-shadow:none;border-color:#e5e7eb}.problem-cell.is-locked .problem-cell-num,.problem-cell.is-locked .problem-cell-status{color:#9ca3af}.problems-legend{display:flex;flex-wrap:wrap;gap:18px 24px;justify-content:center;margin-top:8px;padding:18px 20px;background:#fff;border-radius:14px;border:1px solid #e5e7eb}.legend-item{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#555;font-weight:700}.legend-dot{width:14px;height:14px;border-radius:4px;border:2px solid #e5e7eb;background:#f9fafb}.legend-dot.is-current{border-color:#2563eb;background:#dbeafe}.legend-dot.is-solved{border-color:#86efac;background:#dcfce7}.legend-dot.is-locked{border-color:#e5e7eb;background:#f3f4f6}@media (max-width: 720px){.problem-book-header{flex-direction:column;align-items:flex-start}.book-list-header,.book-list-row{grid-template-columns:48px 1fr 56px 56px;font-size:14px}.book-list-header div:nth-child(4),.book-list-row div:nth-child(4){display:none}.book-complete-badge{padding:2px 8px;font-size:11px}.practice-filters{flex-direction:column}.practice-filter select,.practice-filter input{width:100%;min-width:0}.problem-grid{gap:10px}.problem-cell{min-height:72px;padding:10px 8px}.problem-cell-num{font-size:18px}}@media (max-width: 480px){.problem-grid{grid-template-columns:repeat(3,1fr);gap:8px}.problem-cell{min-height:64px;border-radius:10px}.problem-cell-status{font-size:10px}}.profile-page{max-width:720px}.profile-page h1{font-size:36px;margin-bottom:24px}.profile-user-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px 28px;margin-bottom:16px;box-shadow:0 4px 14px #0000000d}.profile-user-name{font-size:24px;font-weight:700;margin:0 0 8px;color:#111827}.profile-user-meta{margin:0 0 12px;color:#6b7280;font-size:15px}.profile-role-badge{display:inline-block;font-size:13px;font-weight:700;padding:6px 12px;border-radius:999px;background:#eff6ff;color:#2563eb}.profile-logout-btn{margin-bottom:32px}.profile-solved-section h2{font-size:22px;margin-bottom:16px;color:#1e40af}.profile-solved-count{font-size:18px;color:#2563eb;font-weight:700}.profile-solved-list{display:flex;flex-direction:column;gap:12px}.profile-loading,.profile-solved-list .admin-empty{padding:24px;text-align:center;color:#6b7280;background:#fff;border-radius:14px;border:1px dashed #e5e7eb}.profile-solved-card{display:block;background:#fff;border:1px solid #e5e7eb;border-left:4px solid #86efac;border-radius:14px;padding:18px 20px;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}.profile-solved-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #2563eb1a;border-color:#93c5fd}.profile-solved-top{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.profile-solved-level{font-size:13px;font-weight:700;color:#15803d;background:#dcfce7;padding:4px 10px;border-radius:999px}.profile-solved-type{font-size:13px;font-weight:700;color:#6b7280;background:#f3f4f6;padding:4px 10px;border-radius:999px}.profile-solved-title{margin:0 0 6px;font-size:17px;color:#111827}.profile-solved-book{margin:0;font-size:14px;color:#6b7280}.ranking-page h1{font-size:36px;margin-bottom:12px}.ranking-page-desc{color:#6b7280;margin-bottom:24px}.ranking-my-rank{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding:16px 20px;margin-bottom:20px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:14px;font-size:15px}.ranking-my-rank strong{color:#1e40af}.ranking-my-detail{margin-left:auto;font-weight:700;color:#2563eb}.ranking-header,.ranking-row{grid-template-columns:72px 1fr 140px 100px}.ranking-row.is-me{background:#f0fdf4}.ranking-rank{font-weight:700;color:#2563eb}.ranking-rank.rank-gold{color:#b45309}.ranking-rank.rank-silver{color:#64748b}.ranking-rank.rank-bronze{color:#92400e}.ranking-name{font-weight:700;color:#111827}.ranking-student-id{color:#6b7280;font-size:14px}.ranking-count{font-weight:700;color:#15803d;text-align:center}@media (max-width: 640px){.ranking-header,.ranking-row{grid-template-columns:48px 1fr 72px}.ranking-header div:nth-child(3),.ranking-row .ranking-student-id{display:none}.ranking-my-detail{width:100%;margin-left:0;margin-top:8px}}.solve-inquiry-link{font-size:12px;font-weight:700;padding:4px 10px;border-radius:4px;border:1px solid #555;background:#333;color:#9cdcfe;text-decoration:none}.solve-inquiry-link:hover{background:#444}.inquiry-compose{margin-bottom:32px;padding:22px 24px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 4px 14px #0000000a}.inquiry-compose h2,.inquiry-list-title{font-size:18px;margin-bottom:14px}.inquiry-list-title{margin-top:8px}.inquiry-form label{display:block;font-weight:700;font-size:14px;margin-bottom:14px}.inquiry-form select{display:block;width:100%;max-width:280px;margin-top:8px;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:15px}.inquiry-form textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #d1d5db;border-radius:10px;font-size:15px;line-height:1.5;resize:vertical;min-height:120px;font-family:inherit;box-sizing:border-box}.inquiry-form-message{margin-top:10px;font-size:14px;color:#b91c1c}.inquiry-form-message.is-success{color:#047857}.inquiries-page h1{font-size:32px;margin-bottom:8px}.inquiries-page-desc,.admin-page-desc{color:#555;margin-bottom:20px}.inquiry-list{display:flex;flex-direction:column;gap:16px}.inquiry-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px 20px;box-shadow:0 4px 14px #0000000a}.inquiry-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.inquiry-card-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}.inquiry-card-actions time{font-size:13px;color:#9ca3af}.inquiry-delete-btn{padding:6px 12px;font-size:13px}.inquiry-card-page{font-weight:700;color:#2563eb;margin-right:8px}.inquiry-card-status{font-size:12px;font-weight:700;padding:3px 8px;border-radius:6px;background:#fef3c7;color:#b45309}.inquiry-status-answered{background:#dcfce7;color:#15803d}.inquiry-card-meta{font-size:13px;color:#6b7280;margin-bottom:8px}.inquiry-card-question{white-space:pre-wrap;line-height:1.65;margin-bottom:14px}.inquiry-replies{display:flex;flex-direction:column;gap:10px;margin-bottom:14px;padding-top:12px;border-top:1px dashed #e5e7eb}.inquiry-replies-empty{font-size:13px;color:#9ca3af}.inquiry-reply{padding:12px 14px;border-radius:10px;background:#f9fafb;border:1px solid #e5e7eb}.inquiry-reply.is-admin{background:#eff6ff;border-color:#bfdbfe}.inquiry-reply-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;margin-bottom:6px}.inquiry-reply-head time{color:#9ca3af;margin-left:auto}.inquiry-reply-body{white-space:pre-wrap;line-height:1.55;font-size:14px}.inquiry-followup-form label,.inquiry-admin-reply-form label{display:block;font-weight:700;font-size:14px;margin-top:8px}.inquiry-followup-form textarea,.inquiry-admin-reply-form textarea{width:100%;margin:8px 0 10px;padding:10px;border:1px solid #d1d5db;border-radius:8px;font-family:inherit;font-size:14px}.inquiry-admin-filters{margin-bottom:16px}.inquiry-admin-filters select{margin-left:8px;padding:8px 12px;border-radius:8px;border:1px solid #d1d5db}html.solve-root,html.solve-root body{height:100%;margin:0;overflow:hidden}body.solve-page{display:flex;flex-direction:column;font-family:Malgun Gothic,Apple SD Gothic Neo,sans-serif;background:#f6f7f9;color:#333}.solve-site-header{flex-shrink:0;height:56px;padding:0 20px;z-index:10}.solve-site-header .logo{font-size:17px}.solve-site-header .nav{gap:18px}.solve-site-header .nav a{font-size:14px}.solve-toolbar{flex-shrink:0;display:flex;align-items:center;gap:16px;height:48px;padding:0 16px;background:#fff;border-bottom:1px solid #e1e4e8;box-shadow:0 1px 2px #0000000a}.solve-toolbar-left{display:flex;align-items:center;gap:12px;min-width:0}.solve-back{flex-shrink:0;font-size:13px;color:#6b7280;text-decoration:none;padding:6px 10px;border-radius:6px}.solve-back:hover{background:#f3f4f6;color:#111}.solve-breadcrumb{font-size:13px;color:#9ca3af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.solve-breadcrumb strong{color:#374151;font-weight:600}.solve-toolbar-title{flex:1;min-width:0;margin:0;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.solve-toolbar-meta{flex-shrink:0;display:flex;align-items:center;gap:8px}.solve-badge{font-size:11px;font-weight:700;padding:4px 8px;border-radius:4px;background:#eff6ff;color:#2563eb}.solve-badge-type{background:#f3f4f6;color:#4b5563}.solve-split{flex:1;display:flex;min-height:0}.solve-pane{display:flex;flex-direction:column;min-width:0;min-height:0}.solve-pane-desc{flex:0 0 auto;width:42%;min-width:240px;max-width:72%;background:#fff;border-right:none}.solve-resizer{flex-shrink:0;position:relative;z-index:2;touch-action:none;background:#e8eaed;transition:background .15s}.solve-resizer:after{content:"";position:absolute;background:#9ca3af;border-radius:2px;opacity:0;transition:opacity .15s}.solve-resizer:hover,.solve-resizer:focus-visible{background:#d1d5db}.solve-resizer:hover:after,.solve-resizer:focus-visible:after{opacity:1}.solve-resizer-split{width:6px;cursor:col-resize}.solve-resizer-split:after{top:50%;left:50%;transform:translate(-50%,-50%);width:2px;height:32px}.solve-resizer-console{height:6px;cursor:row-resize;background:#333}.solve-resizer-console:after{left:50%;top:50%;transform:translate(-50%,-50%);width:32px;height:2px;background:#6b7280}.solve-resizer-console:hover,.solve-resizer-console:focus-visible{background:#444}body.solve-is-resizing{-webkit-user-select:none;user-select:none;cursor:col-resize}body.solve-is-resizing-h{cursor:row-resize}.solve-pane-workspace{flex:1;background:#1e1e1e;display:flex;flex-direction:column}.solve-pane-head{flex-shrink:0;display:flex;align-items:center;height:40px;padding:0 16px;border-bottom:1px solid #e1e4e8;background:#fafbfc}.solve-pane-workspace .solve-pane-head{background:#252526;border-bottom-color:#333}.solve-pane-tab{font-size:13px;font-weight:600;color:#2563eb;padding-bottom:2px;border-bottom:2px solid #2563eb}.solve-pane-workspace .solve-pane-tab{color:#ccc;border-bottom-color:#007acc}.solve-pane-scroll{flex:1;overflow:auto;padding:20px 24px 32px}.solve-statement{margin:0 0 20px;line-height:1.75;font-size:15px;color:#24292f;white-space:pre-wrap}.solve-ref-code{margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb}.solve-ref-code h3{margin:0 0 10px;font-size:14px;color:#6b7280}.solve-ref-code pre{margin:0;padding:14px 16px;background:#f6f8fa;border:1px solid #e1e4e8;border-radius:8px;font-size:13px;line-height:1.55;overflow-x:auto;white-space:pre;font-family:Consolas,Courier New,monospace}.solve-pane-desc .work-sample-tests{margin:0;padding:0;background:transparent;border:none}.solve-pane-desc .work-sample-title{font-size:14px;margin:0 0 12px;color:#374151}.solve-pane-desc .work-sample-card{margin-bottom:16px;padding:14px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px}.solve-pane-desc .work-io-label{font-size:12px;font-weight:700;color:#6b7280}.solve-pane-desc .work-io-pre{margin:6px 0 0;padding:10px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;font-size:13px}.solve-work-form{flex:1;display:flex;flex-direction:column;min-height:0;margin:0}.solve-editor-bar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;height:36px;padding:0 12px;background:#2d2d2d;border-bottom:1px solid #333}.solve-lang{font-size:12px;font-weight:600;color:#9cdcfe}.solve-editor-actions{display:flex;gap:8px}.solve-btn{font-size:12px;font-weight:600;padding:5px 14px;border-radius:4px;border:none;cursor:pointer;font-family:inherit}.solve-btn-run{background:#3c3c3c;color:#e0e0e0;border:1px solid #555}.solve-btn-run:hover:not(:disabled){background:#4a4a4a}.solve-btn-submit{background:#007acc;color:#fff}.solve-btn-submit:hover:not(:disabled){background:#0062a3}.solve-btn:disabled{opacity:.5;cursor:not-allowed}.solve-code-editor{flex:1;width:100%;min-height:120px;margin:0;padding:16px;border:none;resize:none;background:#1e1e1e;color:#d4d4d4;font-family:Consolas,Courier New,monospace;font-size:14px;line-height:1.55;-moz-tab-size:4;tab-size:4;outline:none;box-sizing:border-box}.solve-code-editor::placeholder{color:#6a6a6a}.solve-console{flex:0 0 auto;height:180px;min-height:72px;display:flex;flex-direction:column;border-top:none;background:#252526;overflow:hidden}.solve-console-head{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:6px 12px;font-size:12px;color:#999;border-bottom:1px solid #333}.solve-console-hint{font-size:11px;color:#6b7280}.solve-console-body{flex:1;display:grid;grid-template-columns:1fr 1fr;min-height:0;overflow:hidden}.solve-console-col{display:flex;flex-direction:column;min-height:0;border-right:1px solid #333}.solve-console-col:last-child{border-right:none}.solve-console-label{flex-shrink:0;padding:6px 12px;font-size:11px;font-weight:700;color:#888;background:#2d2d2d}.solve-test-input,.solve-test-output{flex:1;margin:0;padding:10px 12px;border:none;resize:none;background:#1e1e1e;color:#d4d4d4;font-family:Consolas,Courier New,monospace;font-size:13px;line-height:1.45;outline:none;overflow:auto;white-space:pre-wrap}.solve-test-output{min-height:60px}.solve-test-error{margin:0;padding:8px 12px;font-size:12px;color:#f87171;background:#2d1f1f}.solve-status-bar{flex-shrink:0;padding:8px 16px;font-size:13px;background:#fff;border-top:1px solid #e1e4e8}.solve-status-bar.hidden{display:none}.solve-status-bar.is-correct{background:#ecfdf5;color:#047857}.solve-status-bar.is-wrong{background:#fef2f2;color:#b91c1c}.solve-pane-workspace.solve-pane-quiz{background:#fff}.solve-pane-quiz .solve-pane-head{background:#fafbfc;border-bottom-color:#e1e4e8}.solve-pane-quiz .solve-pane-tab{color:#2563eb;border-bottom-color:#2563eb}.solve-quiz-body{flex:1;overflow:auto;padding:24px}.solve-answer-form{max-width:560px}.solve-answer-form h2{margin:0 0 16px;font-size:16px}.solve-answer-form label{display:block;margin-bottom:12px;font-weight:600}.solve-answer-form input[type=text]{width:100%;max-width:400px;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:15px;box-sizing:border-box}.solve-mcq-choices{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}.solve-mcq-choices .mcq-choice-label{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:border-color .15s,background .15s}.solve-mcq-choices .mcq-choice-label:hover{border-color:#93c5fd;background:#f8fafc}.solve-btn-quiz{background:#2563eb;color:#fff;padding:10px 24px;font-size:14px}.solve-loading{padding:40px 24px;color:#6b7280;text-align:center}@media (max-width: 900px){.solve-split{flex-direction:column}.solve-pane-desc{width:100%!important;max-width:none;min-width:0;min-height:120px;max-height:72%;border-bottom:none}.solve-resizer-split{width:100%;height:6px;cursor:row-resize}.solve-resizer-split:after{width:32px;height:2px}body.solve-is-resizing{cursor:row-resize}.solve-console-body{grid-template-columns:1fr}.solve-console-col{border-right:none;border-bottom:1px solid #333}}
