:root{--color-bg: #191919;--color-surface: #252525;--color-surface-soft: #374151;--color-text: #f9fafb;--color-text-muted: #9ca3af;--color-accent-strong: #A52A2A;--color-border: #374151;--color-primary: #AE7734;--color-button-bg: #374151;--color-button-text: #f9fafb;--color-button-disabled-bg: #1f2937;--color-button-disabled-text: #6b7280}*,*:before,*:after{box-sizing:border-box}html{width:100%;min-height:100%;margin:0;background:var(--color-bg);-webkit-text-size-adjust:100%}body{width:100%;min-height:100%;margin:0;background:var(--color-bg);color:var(--color-text);overflow-x:hidden;display:block;place-items:initial}#root{width:100%;max-width:none;min-height:100vh;margin:0;padding:0;text-align:initial}.quiz-markdown{line-height:inherit;word-break:break-all;overflow-wrap:anywhere}.quiz-markdown :where(p,ul,ol,blockquote,pre){margin-top:0;margin-bottom:.35em;line-height:inherit}.quiz-markdown :where(p:last-child,ul:last-child,ol:last-child,blockquote:last-child,pre:last-child){margin-bottom:0}.login-page{min-height:100vh;padding:24px;display:flex;align-items:center;justify-content:center;background:var(--color-bg);color:var(--color-text)}.login-card{width:100%;max-width:360px;padding:24px;border:1px solid var(--color-border);border-radius:18px;background:var(--color-surface);display:flex;flex-direction:column;gap:18px}.login-title{margin:0 0 4px;text-align:center;font-size:24px;line-height:1.3}.login-field{display:flex;flex-direction:column;gap:8px;color:var(--color-text-muted);font-size:14px}.login-field input{width:100%;min-height:46px;padding:12px 14px;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface-soft);color:var(--color-text);font-size:16px}.login-field input::placeholder{color:var(--color-text-muted)}.login-field input:focus{outline:2px solid var(--color-primary);outline-offset:2px}.login-error{margin:0;color:#fca5a5;font-size:14px;text-align:center}.login-button{width:100%;min-height:46px;padding:12px 14px;border:none;border-radius:12px;background:var(--color-primary);color:#111827;font-weight:700;font-size:16px;cursor:pointer}.login-button:disabled{opacity:.65;cursor:not-allowed}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.markdown-content{line-height:inherit;word-break:inherit;overflow-wrap:inherit}.markdown-content p{margin:0 0 4px;line-height:inherit}.markdown-content p:last-child{margin-bottom:0}.markdown-content strong{font-weight:700}.markdown-content ul,.markdown-content ol{margin:8px 0 12px;padding-left:24px}.markdown-content li{margin:4px 0}.markdown-content blockquote{margin:12px 0;padding:8px 12px;border-left:4px solid #999;background:#0000000a}.markdown-content code{padding:2px 5px;border-radius:4px;background:#6e76812e;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.92em}.markdown-content pre{margin:12px 0;padding:14px 16px;border-radius:10px;overflow-x:auto;background:#0d1117;color:#f0f6fc;tab-size:2;font-weight:400;white-space:pre}.markdown-content pre code{padding:0;border-radius:0;background:transparent;font-size:.95em;line-height:1.6;font-weight:400;tab-size:2}.markdown-content table{width:100%;border-collapse:collapse;margin:12px 0;font-size:.95em}.markdown-content th,.markdown-content td{border:1px solid #d0d7de;padding:6px 8px}.markdown-content th{font-weight:700;background:#0000000a}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.mentor-feedback-markdown .markdown-content h2,.mentor-feedback-markdown .markdown-content h3{display:table;width:fit-content;max-width:100%;background:#333;color:#bbb;padding:4px 8px;border-radius:6px;margin:10px 0 14px;font-weight:900;line-height:1.2}.mentor-feedback-markdown .markdown-content p,.mentor-feedback-markdown .markdown-content li{color:#d6d3d1}.mentor-feedback-markdown .markdown-content hr{border:none;border-top:1px solid var(--color-border);margin:22px 0}.exam-page,.exam-play-page{width:min(100%,960px);min-height:100vh;margin:0 auto;padding:32px 20px 120px;box-sizing:border-box}.exam-page-header{display:flex;align-items:flex-start;gap:18px;margin-bottom:24px}.exam-page-header h1{margin:0 0 6px;font-size:28px}.exam-page-header p{margin:0;color:var(--color-text-muted)}.exam-back-button{flex:0 0 auto;padding:8px 10px;border:0;background:transparent;color:inherit;cursor:pointer}.exam-entry-card{display:flex;align-items:center;gap:16px;width:100%;padding:20px;border:1px solid rgba(128,128,128,.2);border-radius:18px;background:var(--color-surface, #fff);color:inherit;text-decoration:none;box-sizing:border-box;transition:transform .15s ease,box-shadow .15s ease}.exam-entry-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #00000014}.exam-entry-card__icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#5078ff1a;font-size:24px}.exam-entry-card__content{flex:1;min-width:0}.exam-entry-card__title{display:block;margin-bottom:4px;font-size:18px}.exam-entry-card__description{margin:0;color:var(--color-text-muted);line-height:1.5}.exam-entry-card__arrow{font-size:30px;color:var(--color-text-muted)}.exam-guide-card,.exam-status-card,.exam-empty-card{padding:18px;border:1px solid rgba(128,128,128,.2);border-radius:16px;background:var(--color-surface, #fff)}.exam-guide-card{margin-bottom:20px}.exam-guide-card p{margin:8px 0 0;color:var(--color-text-muted);line-height:1.6}.exam-error-message{margin-bottom:18px;padding:14px 16px;border-radius:12px;background:#c81e1e1a;color:#b3261e;line-height:1.5}.exam-folder-list{display:grid;gap:12px}.exam-folder-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid rgba(128,128,128,.2);border-radius:15px;background:var(--color-surface, #fff)}.exam-folder-card.is-selected{border-color:#4664e6a6;box-shadow:0 0 0 2px #4664e614}.exam-folder-main{display:flex;align-items:flex-start;gap:12px;min-width:0;cursor:pointer}.exam-folder-main input{width:18px;height:18px;margin-top:2px}.exam-folder-text{display:flex;flex-direction:column;gap:5px;min-width:0}.exam-folder-text small{color:var(--color-text-muted);overflow-wrap:anywhere}.exam-folder-count{display:flex;align-items:center;gap:12px;flex:0 0 auto}.exam-folder-count span{color:var(--color-text-muted);font-size:14px}.exam-folder-count input{width:76px;padding:9px 8px;border:1px solid rgba(128,128,128,.3);border-radius:10px;background:var(--color-bg, #fff);color:inherit;text-align:center}.exam-setup-footer,.exam-submit-area{position:sticky;bottom:16px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;padding:16px 18px;border:1px solid rgba(128,128,128,.2);border-radius:18px;background:color-mix(in srgb,var(--color-surface, #fff) 94%,transparent);box-shadow:0 10px 30px #0000001f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.exam-summary{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--color-text-muted)}.exam-summary strong{color:var(--color-text, #111)}.exam-primary-button,.exam-secondary-button{min-height:46px;padding:0 22px;border-radius:12px;font-weight:700;cursor:pointer}.exam-primary-button{border:0;background:#4059d8;color:#fff}.exam-primary-button:disabled{opacity:.5;cursor:not-allowed}.exam-secondary-button{border:1px solid rgba(128,128,128,.35);background:transparent;color:inherit}.exam-play-page{padding-top:96px}.exam-play-header{position:fixed;top:16px;left:50%;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(calc(100% - 40px),920px);padding:14px 18px 20px;border:1px solid #6f292c;border-radius:17px;background:#241611;color:var(--color-text);box-shadow:0 8px 24px #0000004d,0 0 18px #8214191f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transform:translate(-50%);box-sizing:border-box;overflow:hidden}.exam-play-header>div:first-child{display:flex;flex-direction:column;gap:3px}.exam-play-header span{color:var(--color-text-muted);font-size:13px}.exam-timer{min-width:112px;color:#ff2b2b;font-size:26px;font-weight:900;line-height:1;text-align:right;font-variant-numeric:tabular-nums;letter-spacing:.02em}.exam-timer.is-urgent{color:red;animation:exam-timer-pulse .8s ease-in-out infinite alternate}@keyframes exam-timer-pulse{0%{opacity:1;text-shadow:0 0 8px rgba(255,0,0,.45),0 0 16px rgba(255,0,0,.25)}to{opacity:.72;text-shadow:0 0 12px rgba(255,0,0,.75),0 0 24px rgba(255,0,0,.4)}}.exam-countdown-track{position:absolute;right:18px;bottom:8px;left:18px;height:3px;overflow:hidden;border-radius:999px;background:#ffffff1a}.exam-countdown-progress{height:100%;border-radius:inherit;background:#ff2020;box-shadow:0 0 7px #ff1414bf,0 0 12px #ff141459;transition:width .4s linear}.exam-problem-list{display:grid;gap:22px}.exam-problem-card{padding:22px;border:1px solid rgba(128,128,128,.2);border-radius:18px;background:var(--color-surface, #fff)}.exam-problem-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.exam-problem-meta span{color:var(--color-text-muted);font-size:13px;text-align:right}.exam-question-text{margin-bottom:20px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.exam-answer-field{display:grid;gap:8px}.exam-answer-field>span{font-weight:700}.exam-answer-field textarea{width:100%;min-height:150px;padding:15px;border:1px solid rgba(128,128,128,.3);border-radius:13px;background:var(--color-bg, #fff);color:inherit;font:inherit;line-height:1.6;resize:vertical;box-sizing:border-box}.exam-answer-field textarea:focus{border-color:#4059d8;outline:3px solid rgba(64,89,216,.12)}.exam-submit-area>div:first-child{display:flex;flex-direction:column;gap:4px}.exam-submit-area span{color:var(--color-text-muted);font-size:13px}.exam-complete-card{width:min(100%,560px);padding:36px 28px;border:1px solid rgba(128,128,128,.2);border-radius:22px;background:var(--color-surface, #fff);text-align:center}.exam-complete-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 18px;border-radius:50%;background:#1ea05a1f;color:#14804a;font-size:32px;font-weight:900}.exam-complete-card h1{margin:0 0 10px}.exam-complete-card>p{margin:0;color:var(--color-text-muted);line-height:1.6}.exam-complete-summary{display:grid;gap:0;margin:28px 0;text-align:left}.exam-complete-summary>div{display:flex;justify-content:space-between;gap:20px;padding:14px 4px;border-bottom:1px solid rgba(128,128,128,.16)}.exam-complete-summary dt{color:var(--color-text-muted)}.exam-complete-summary dd{margin:0;font-weight:700;text-align:right}.exam-complete-actions{display:flex;justify-content:center;gap:10px}@media(max-width:640px){.exam-page,.exam-play-page{padding-right:14px;padding-left:14px}.exam-page-header{gap:8px}.exam-page-header h1{font-size:23px}.exam-folder-card{align-items:stretch;flex-direction:column}.exam-folder-count{justify-content:space-between;padding-left:30px}.exam-setup-footer,.exam-submit-area{align-items:stretch;flex-direction:column;bottom:8px}.exam-primary-button,.exam-secondary-button{width:100%}.exam-play-header{top:8px;width:calc(100% - 20px)}.exam-play-page{padding-top:88px}.exam-problem-card{padding:18px 15px}.exam-problem-meta{align-items:flex-start;flex-direction:column;gap:5px}.exam-problem-meta span{text-align:left}.exam-answer-field textarea{min-height:180px}.exam-complete-actions{flex-direction:column}}.exam-guide-card__header{display:flex;align-items:center;justify-content:space-between;gap:24px}.exam-guide-card__header>div{min-width:0}.exam-time-setting{display:flex;align-items:center;gap:10px;flex:0 0 auto}.exam-time-setting>span{color:var(--color-text-muted);font-size:14px;white-space:nowrap}.exam-time-setting select{min-width:84px;height:40px;padding:0 12px;border:1px solid var(--color-border);border-radius:10px;background:var(--color-bg);color:var(--color-text);font:inherit;font-weight:700;cursor:pointer}.exam-time-setting select:focus{border-color:var(--color-primary);outline:2px solid color-mix(in srgb,var(--color-primary) 25%,transparent)}.exam-result-page{width:min(100%,960px);min-height:100vh;margin:0 auto;padding:34px 20px 120px;box-sizing:border-box}.exam-result-page .exam-complete-card{width:100%;margin-bottom:28px}.exam-review-section{width:100%}.exam-review-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.exam-review-header h2{margin:0 0 6px;font-size:24px;letter-spacing:-.04em}.exam-review-header p{margin:0;color:var(--color-text-muted);font-size:14px;line-height:1.5}.exam-review-header>strong{flex:0 0 auto;color:var(--color-primary);font-size:15px}.exam-review-list{display:grid;gap:20px}.exam-review-card__header>strong{flex:0 0 auto;color:var(--color-text);font-size:17px}.exam-review-card__header>span{min-width:0;overflow:hidden;color:var(--color-text-muted);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.exam-result-actions{position:sticky;bottom:12px;z-index:20;display:flex;justify-content:flex-end;gap:10px;margin-top:28px;padding:14px;border:1px solid var(--color-border);border-radius:16px;background:color-mix(in srgb,var(--color-surface) 94%,transparent);box-shadow:0 12px 32px #00000059;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}@media(max-width:640px){.exam-result-page{padding:18px 14px 110px}.exam-result-page .exam-complete-card{padding:28px 18px}.exam-review-header{align-items:flex-start;flex-direction:column;gap:8px}.exam-review-header h2{font-size:21px}.exam-review-card__header{align-items:flex-start;flex-direction:column;gap:5px}.exam-review-card__header>span{width:100%;white-space:normal}.exam-review-card__header{align-items:flex-start;flex-direction:column;gap:5px;padding:14px 16px}.exam-review-card__header>span{width:100%;white-space:normal;overflow-wrap:anywhere}.exam-review-main-content{padding:18px 16px}.exam-review-question{margin-bottom:22px;font-size:15px;line-height:1.7}.exam-review-content-group{margin-top:18px}.exam-review-user-answer{min-height:82px;padding:18px 16px 22px}.exam-review-text{font-size:14px;line-height:1.7}.exam-result-actions{align-items:stretch;flex-direction:column;bottom:8px}.exam-tree-row{grid-template-columns:18px minmax(0,1fr);gap:8px;min-height:64px;padding-right:12px!important;padding-left:10px!important}.exam-tree-folder-meta{grid-column:2;justify-content:space-between;width:100%;padding-bottom:4px}.exam-tree-folder-text small{white-space:normal;overflow-wrap:anywhere}.exam-tree-folder-meta input[type=number]{width:68px;height:36px}}.exam-folder-tree{overflow:hidden;border:1px solid var(--color-border);border-radius:18px;background:var(--color-surface)}.exam-tree-node{width:100%}.exam-tree-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:54px;padding-top:7px;padding-right:18px;padding-bottom:7px;transition:background .15s ease,border-color .15s ease}.exam-tree-row.is-selected{background:color-mix(in srgb,var(--color-primary) 9%,var(--color-surface))}.exam-tree-row input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--color-primary);cursor:pointer}.exam-tree-folder-button{display:flex;align-items:center;gap:10px;min-width:0;padding:6px 0;border:0;background:transparent;color:var(--color-text);text-align:left;cursor:pointer}.exam-tree-folder-button:disabled{cursor:default;opacity:.5}.exam-tree-folder-icon{flex:0 0 auto;font-size:17px}.exam-tree-folder-text{display:flex;flex-direction:column;gap:4px;min-width:0}.exam-tree-folder-text strong{overflow:hidden;color:var(--color-text);font-size:15px;text-overflow:ellipsis;white-space:nowrap}.exam-tree-folder-text small{overflow:hidden;color:var(--color-text-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.exam-tree-folder-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}.exam-tree-folder-meta>span{color:var(--color-text-muted);font-size:13px;white-space:nowrap}.exam-tree-folder-meta input[type=number]{width:68px;height:32px;padding:0 7px;border:1px solid var(--color-border);border-radius:9px;background:var(--color-bg);color:var(--color-text);font:inherit;font-size:14px;font-weight:700;text-align:center}.exam-tree-folder-meta input:disabled{color:var(--color-button-disabled-text);background:var(--color-button-disabled-bg)}.exam-guide-card--yellow{border-color:color-mix(in srgb,var(--color-primary) 55%,var(--color-border));background:color-mix(in srgb,var(--color-primary) 14%,var(--color-surface))}.exam-guide-card--yellow strong{color:#e1b56f}.exam-guide-card--yellow p,.exam-guide-card--yellow .exam-time-setting>span{color:#c8b38f}.exam-tree-folder-button--leaf{cursor:default}button.exam-tree-folder-button:hover{color:var(--color-primary)}button.exam-tree-folder-button:hover .exam-tree-folder-icon{transform:translateY(-1px)}.exam-folder-tree>.exam-tree-node+.exam-tree-node{border-top:1px solid var(--color-border)}.exam-tree-row.is-leaf{min-height:2px;padding-top:3px;padding-bottom:3px}.exam-problem-card{transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease}.exam-problem-card.is-answered{border-color:color-mix(in srgb,var(--color-primary) 60%,var(--color-border))}.exam-problem-card.is-answered .exam-problem-meta>strong,.exam-problem-card.is-answered .exam-answer-field>span{color:color-mix(in srgb,var(--color-primary) 72%,var(--color-text))}.exam-review-card{overflow:hidden;border:1px solid var(--color-border);border-radius:18px;background:var(--color-surface)}.exam-review-card__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;background:var(--color-surface)}.exam-review-card__header>strong{flex:0 0 auto;color:#d1d5db;font-size:17px;font-weight:800}.exam-review-card__header>span{min-width:0;overflow:hidden;color:#b6bbc4;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.exam-review-main-content{padding:22px;background:var(--color-bg);color:var(--color-text)}.exam-review-question{margin-bottom:26px;color:var(--color-text);font-size:16px;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}.exam-review-content-group{margin-top:22px}.exam-review-content-group h3,.exam-review-user-answer h3{margin:0 0 10px;color:var(--color-text);font-size:14px;font-weight:800;letter-spacing:-.02em}.exam-review-text{color:var(--color-text);font-size:15px;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}.exam-review-user-answer{min-height:100px;padding:20px 22px 24px;border-top:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);transition:background-color .18s ease,border-color .18s ease}.exam-review-user-answer.is-unanswered{background:#2a1a1c}.exam-play-header,.exam-problem-card,.exam-submit-area,.exam-complete-card,.exam-review-card,.exam-result-actions{border-radius:10px}
