:root{color-scheme:light dark;font-family:Microsoft YaHei UI,PingFang SC,Noto Sans CJK SC,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #eaf2ff;--surface: rgba(255, 255, 255, .68);--surface-soft: rgba(244, 248, 255, .62);--surface-strong: rgba(214, 228, 246, .72);--text: #1d2b3f;--text-muted: #52657e;--heading: #10233f;--border: rgba(255, 255, 255, .86);--primary: #0969da;--primary-hover: #005bc4;--primary-soft: rgba(208, 229, 255, .7);--accent: #087f78;--accent-soft: rgba(211, 246, 241, .72);--warning: #a65305;--warning-soft: #fff2df;--danger: #b42318;--danger-soft: #fff0ee;--success: #087a55;--success-soft: #e7f6ef;--focus: #2563eb;--shadow-sm: 0 2px 8px rgba(36, 71, 115, .08), inset 0 1px 0 rgba(255, 255, 255, .7);--shadow-md: 0 18px 50px rgba(35, 75, 126, .14), inset 0 1px 0 rgba(255, 255, 255, .78);--radius-sm: 12px;--radius-md: 20px;--radius-lg: 28px;--sidebar-width: 244px}*{box-sizing:border-box}html{min-width:320px;min-height:100%;overflow-x:hidden;background:var(--bg)}body{min-width:320px;min-height:100vh;min-height:100dvh;margin:0;overflow-x:hidden;color:var(--text);background:radial-gradient(circle at 8% 4%,rgba(86,173,255,.35),transparent 30rem),radial-gradient(circle at 94% 18%,rgba(129,230,217,.28),transparent 28rem),radial-gradient(circle at 48% 94%,rgba(188,157,255,.2),transparent 34rem),var(--bg);background-attachment:fixed;font-size:16px;line-height:1.6}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2,h3{color:var(--heading);line-height:1.25}h1{margin-bottom:12px;font-size:clamp(1.75rem,4vw,2.5rem);letter-spacing:-.035em}h2{font-size:1.25rem}:focus-visible{outline:3px solid color-mix(in srgb,var(--focus) 65%,transparent);outline-offset:3px}.skip-link{position:fixed;z-index:1000;top:12px;left:12px;padding:10px 14px;border-radius:8px;color:#fff;background:var(--primary);transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{min-height:100vh;min-height:100dvh}.sidebar{position:fixed;z-index:40;inset:0 auto 0 0;display:flex;width:var(--sidebar-width);flex-direction:column;padding:28px 20px 22px;border-right:1px solid var(--border);background:#ffffff80;-webkit-backdrop-filter:blur(30px) saturate(175%);backdrop-filter:blur(30px) saturate(175%)}.brand{display:flex;min-height:52px;align-items:center;gap:12px;padding:4px;border-radius:var(--radius-sm)}.brand-mark{display:grid;width:44px;height:44px;flex:0 0 auto;place-items:center;border-radius:13px;color:#fff;background:var(--primary)}.brand strong,.brand small{display:block}.brand strong{color:var(--heading);font-size:1.05rem}.brand small{color:var(--text-muted);font-size:.8rem}.side-nav{display:grid;gap:8px;margin-top:42px}.nav-item{display:flex;min-height:48px;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:var(--text-muted);font-weight:600;transition:color .18s ease,background-color .18s ease}.nav-item:hover{color:var(--heading);background:var(--surface-soft)}.nav-item.active{color:var(--primary);background:var(--primary-soft)}.nav-badge{min-width:25px;margin-left:auto;padding:1px 7px;border-radius:999px;color:#fff;background:var(--danger);font-size:.75rem;text-align:center}.sidebar-note{display:flex;align-items:center;gap:9px;margin-top:auto;padding:12px;color:var(--text-muted);font-size:.78rem}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px var(--success-soft)}.main-content{min-height:100vh;margin-left:var(--sidebar-width);padding:40px clamp(24px,5vw,72px) 64px}.page{width:min(100%,1080px);margin:0 auto}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:40px}.page-header>div:first-child{max-width:720px}.eyebrow{margin-bottom:10px;color:var(--accent);font-size:.78rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.page-lead,.section-heading p{margin-bottom:0;color:var(--text-muted)}.button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:9px;padding:10px 18px;border:1px solid transparent;border-radius:12px;font-weight:700;transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease}.button.primary{color:#fff;background:linear-gradient(145deg,#1684f8,var(--primary));box-shadow:var(--shadow-sm)}.button.primary:hover:not(:disabled){background:var(--primary-hover);box-shadow:var(--shadow-md)}.button.secondary{color:var(--heading);border-color:var(--border);background:var(--surface)}.button.secondary:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.button:disabled,.button.disabled{opacity:.45;box-shadow:none}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 18px}.section-heading h2{margin-bottom:3px}.section-heading>a{min-height:44px;padding:8px 2px;color:var(--primary);font-weight:700}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:42px}.stat-card{display:flex;min-height:126px;align-items:flex-start;gap:14px;padding:20px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm)}.stat-icon,.type-icon,.mode-icon{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border-radius:12px;color:var(--accent);background:var(--accent-soft)}.stat-card p{margin-bottom:2px;color:var(--text-muted);font-size:.84rem}.stat-card strong{color:var(--heading);font-size:1.75rem;font-variant-numeric:tabular-nums}.stat-card strong small{margin-left:3px;color:var(--text-muted);font-size:.78rem}.type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.type-card,.mode-card{display:flex;min-height:92px;align-items:center;gap:14px;padding:18px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.type-card:hover,.mode-card:hover{border-color:color-mix(in srgb,var(--accent) 50%,var(--border));box-shadow:var(--shadow-md);transform:translateY(-2px)}.type-copy,.mode-card>span:nth-child(2){min-width:0;flex:1}.type-copy strong,.type-copy small,.mode-card strong,.mode-card small,.mode-card em{display:block}.type-copy strong,.mode-card strong{color:var(--heading);font-size:1rem}.type-copy small,.mode-card small{color:var(--text-muted);font-size:.82rem}.type-count{color:var(--text-muted);font-size:.85rem}.focus-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:40px;padding:26px 28px;border:1px solid color-mix(in srgb,var(--warning) 24%,var(--border));border-radius:var(--radius-lg);background:var(--warning-soft)}.focus-panel h2{margin-bottom:6px}.focus-panel p:last-child{margin-bottom:0;color:var(--text-muted)}.mode-grid{display:grid;gap:14px}.mode-card{min-height:104px}.mode-card em{margin-top:4px;color:var(--accent);font-size:.78rem;font-style:normal;font-weight:700}.mode-card.disabled{opacity:.62}.setup-section{margin-top:40px;padding-top:32px;border-top:1px solid var(--border)}.chip-list{display:flex;flex-wrap:wrap;gap:10px}.filter-chip{display:inline-flex;min-height:44px;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);font-weight:650}.filter-chip:hover{border-color:var(--primary);color:var(--primary)}.filter-chip span{color:var(--text-muted);font-size:.8rem}.practice-page{width:min(100%,860px)}.practice-toolbar{display:grid;grid-template-columns:48px minmax(76px,1fr) auto;align-items:center;gap:16px;margin-bottom:20px}.toolbar-actions{display:flex;gap:8px}.familiar-button.active{color:#08745d;border-color:#087a5573;background:var(--success-soft)}.icon-button{display:grid;width:48px;height:48px;place-items:center;border:1px solid var(--border);border-radius:14px;color:var(--text-muted);background:var(--surface);transition:color .18s ease,border-color .18s ease,background-color .18s ease}.icon-button:hover,.icon-button.active{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.progress-copy{display:flex;justify-content:space-between;margin-bottom:7px;color:var(--text-muted);font-size:.78rem;font-variant-numeric:tabular-nums;font-weight:700}.progress-track,.bar-track{height:8px;overflow:hidden;border-radius:999px;background:var(--surface-strong)}.progress-track>span,.bar-track>span{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .24s ease-out}.question-card{padding:clamp(22px,4vw,42px);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-md)}.question-sheet{margin-bottom:18px;padding:22px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-md)}.question-sheet>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.question-sheet h2,.question-sheet .eyebrow{margin-bottom:0}.question-sheet>header>span{flex:0 0 auto;color:var(--text-muted);font-size:.82rem;font-weight:700}.question-sheet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:9px}.question-sheet-grid button{min-width:44px;min-height:44px;border:1px solid color-mix(in srgb,var(--text-muted) 26%,transparent);border-radius:13px;color:var(--text-muted);background:#ffffff70;font-size:.82rem;font-weight:800;font-variant-numeric:tabular-nums;transition:transform .18s ease,border-color .18s ease,background-color .18s ease}.question-sheet-grid button:hover{transform:translateY(-1px);border-color:var(--primary)}.question-sheet-grid button.answered{color:var(--primary);border-color:color-mix(in srgb,var(--primary) 48%,transparent);background:var(--primary-soft)}.question-sheet-grid button.familiar{box-shadow:inset 0 -3px 0 var(--success)}.question-sheet-grid button.current{color:#fff;border-color:var(--primary);background:var(--primary);box-shadow:0 7px 18px #0969da40}.question-sheet-grid button.correct{color:var(--success);border-color:var(--success);background:var(--success-soft)}.question-sheet-grid button.wrong{color:var(--danger);border-color:var(--danger);background:var(--danger-soft)}.question-sheet-legend{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px;color:var(--text-muted);font-size:.76rem}.question-sheet-legend span{display:inline-flex;align-items:center;gap:6px}.question-sheet-legend i{width:12px;height:12px;border:1px solid var(--border);border-radius:4px}.legend-current{background:var(--primary)}.legend-answered{background:var(--primary-soft)}.legend-familiar{border-bottom:3px solid var(--success)!important}.familiar-label{display:inline-flex;align-items:center;gap:4px;margin-left:auto;color:var(--success);font-weight:750}.question-meta{display:flex;align-items:center;gap:10px;margin-bottom:20px;color:var(--text-muted);font-size:.8rem}.type-pill{display:inline-flex;min-height:28px;align-items:center;padding:3px 10px;border-radius:999px;color:var(--accent);background:var(--accent-soft);font-size:.78rem;font-weight:750}.question-card h1{max-width:38em;margin-bottom:30px;font-size:clamp(1.25rem,2.6vw,1.65rem);line-height:1.6;letter-spacing:0}.option-list,.judge-options{display:grid;gap:12px;padding:0;border:0}.option-button{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) 24px;min-height:58px;align-items:center;gap:12px;width:100%;padding:11px 14px;border:1px solid var(--border);border-radius:14px;color:var(--text);background:var(--surface);text-align:left;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.option-button.has-shortcut{grid-template-columns:38px minmax(0,1fr) 30px 24px}.option-button:hover:not(:disabled){border-color:color-mix(in srgb,var(--primary) 55%,var(--border));background:var(--primary-soft)}.option-button.selected{border-color:var(--primary);background:var(--primary-soft);box-shadow:inset 0 0 0 1px var(--primary)}.option-button.correct{border-color:var(--success);background:var(--success-soft);box-shadow:inset 0 0 0 1px var(--success)}.option-button.wrong{border-color:var(--danger);background:var(--danger-soft);box-shadow:inset 0 0 0 1px var(--danger)}.option-button:disabled{opacity:1}.option-key{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--border);border-radius:10px;color:var(--text-muted);background:var(--surface-soft);font-size:.85rem;font-weight:800}.selected .option-key{border-color:var(--primary);color:#fff;background:var(--primary)}.correct .option-key{border-color:var(--success);color:#fff;background:var(--success)}.wrong .option-key{border-color:var(--danger);color:#fff;background:var(--danger)}.option-state{color:var(--success)}.option-shortcut,.judge-shortcut{display:inline-grid;min-width:28px;min-height:28px;place-items:center;padding:1px 6px;border:1px solid color-mix(in srgb,var(--text-muted) 28%,transparent);border-bottom-width:2px;border-radius:8px;color:var(--text-muted);background:var(--surface-soft);font-family:inherit;font-size:.72rem;font-weight:800}.selected .option-shortcut,.judge-button.selected .judge-shortcut{color:var(--primary);border-color:color-mix(in srgb,var(--primary) 45%,transparent);background:var(--primary-soft)}.correct .option-shortcut,.judge-button.correct .judge-shortcut{color:var(--success);border-color:color-mix(in srgb,var(--success) 45%,transparent);background:var(--success-soft)}.wrong .option-state{color:var(--danger)}.judge-options{grid-template-columns:repeat(2,minmax(0,1fr))}.judge-button{display:flex;min-height:76px;align-items:center;justify-content:center;gap:10px;border:1px solid var(--border);border-radius:14px;color:var(--text-muted);background:var(--surface);font-weight:750}.judge-button:hover:not(:disabled),.judge-button.selected{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}.judge-button.correct{border-color:var(--success);color:var(--success);background:var(--success-soft)}.judge-button.wrong{border-color:var(--danger);color:var(--danger);background:var(--danger-soft)}.text-answer label{display:block;margin-bottom:8px;color:var(--heading);font-size:.88rem;font-weight:750}.text-answer input,.text-answer textarea{width:100%;min-height:50px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;color:var(--text);background:var(--surface);line-height:1.65;resize:vertical}.text-answer input:focus,.text-answer textarea:focus{border-color:var(--focus);outline:3px solid color-mix(in srgb,var(--focus) 20%,transparent)}.feedback{margin-top:24px;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft)}.feedback.success{border-color:color-mix(in srgb,var(--success) 35%,var(--border));background:var(--success-soft)}.feedback.error{border-color:color-mix(in srgb,var(--danger) 35%,var(--border));background:var(--danger-soft)}.feedback-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px;color:var(--heading)}.feedback.success .feedback-heading{color:var(--success)}.feedback.error .feedback-heading{color:var(--danger)}.feedback p{margin:0;white-space:pre-line}.feedback p span{display:block;margin-bottom:5px;color:var(--text-muted);font-size:.78rem;font-weight:750}.self-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.success-button{color:#fff;background:var(--success)}.question-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:28px;padding-top:22px;border-top:1px solid var(--border)}.exam-actions{justify-content:space-between}.exam-submit-floating{position:fixed;z-index:35;right:28px;bottom:28px;color:var(--heading);border-color:var(--border);background:#ffffffb8;box-shadow:var(--shadow-md);-webkit-backdrop-filter:blur(24px) saturate(170%);backdrop-filter:blur(24px) saturate(170%)}:where(.stat-card,.type-card,.mode-card,.focus-panel,.question-card,.question-sheet,.result-card,.empty-card,.review-item,.history-item,.analytics-card,.cloud-panel,.migration-panel,.data-panel,.segmented-control,.feedback){-webkit-backdrop-filter:blur(24px) saturate(165%);backdrop-filter:blur(24px) saturate(165%)}:where(.stat-card,.type-card,.mode-card,.question-card,.question-sheet,.analytics-card,.cloud-panel,.migration-panel,.history-item):before{content:"";position:absolute;inset:1px 12% auto;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.9),transparent)}:where(.stat-card,.type-card,.mode-card,.question-card,.question-sheet,.analytics-card,.cloud-panel,.migration-panel,.history-item){position:relative}.migration-panel{display:grid;grid-template-columns:auto minmax(0,1fr);gap:15px;margin-bottom:24px;padding:20px;overflow:hidden;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border));border-radius:var(--radius-md);background:linear-gradient(135deg,var(--accent-soft),var(--surface));box-shadow:var(--shadow-sm)}.migration-icon{display:grid;width:46px;height:46px;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 24%,var(--border));border-radius:15px;color:var(--accent);background:var(--surface)}.migration-copy{min-width:0}.migration-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.migration-heading .eyebrow{margin-bottom:2px}.migration-heading h2{margin-bottom:10px;font-size:1.05rem}.migration-heading>strong{color:var(--accent);font-variant-numeric:tabular-nums}.migration-progress{height:10px;overflow:hidden;border-radius:999px;background:var(--surface-strong)}.migration-progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary),var(--accent));box-shadow:0 0 14px color-mix(in srgb,var(--accent) 45%,transparent);transition:width .28s ease-out}.migration-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;color:var(--text-muted);font-size:.78rem}.migration-status button{min-height:36px;padding:5px 12px;border:1px solid var(--accent);border-radius:10px;color:var(--accent);background:var(--surface);font-weight:700}.question-actions p{margin-bottom:0;color:var(--text-muted);font-size:.8rem}.shortcut-hint{display:flex;min-height:44px;align-items:center;justify-content:flex-end;gap:7px;margin-top:14px;color:var(--text-muted);font-size:.78rem}.shortcut-hint>span:first-of-type{color:var(--heading);font-weight:750}.shortcut-hint kbd{display:inline-grid;min-width:30px;min-height:28px;place-items:center;padding:2px 8px;border:1px solid color-mix(in srgb,var(--text-muted) 28%,transparent);border-bottom-width:2px;border-radius:8px;color:var(--heading);background:#ffffff7a;box-shadow:inset 0 1px #ffffffb8;font-family:inherit;font-size:.72rem;font-weight:750}.result-page,.empty-page{display:grid;min-height:calc(100vh - 120px);place-items:center}.result-card,.empty-card{width:min(100%,580px);padding:clamp(28px,6vw,52px);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-md);text-align:center}.result-icon{display:grid;width:68px;height:68px;margin:0 auto 20px;place-items:center;border-radius:20px;color:var(--warning);background:var(--warning-soft)}.result-card h1{margin-bottom:4px;font-size:clamp(2.8rem,10vw,4.6rem);font-variant-numeric:tabular-nums}.result-card>p:not(.eyebrow),.empty-card p{color:var(--text-muted)}.result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:26px}.empty-card>svg{margin-bottom:14px;color:var(--accent)}.segmented-control{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft)}.segmented-control button{display:inline-flex;min-height:44px;align-items:center;gap:8px;padding:8px 15px;border:0;border-radius:10px;color:var(--text-muted);background:transparent;font-weight:700}.segmented-control button.active{color:var(--primary);background:var(--surface);box-shadow:var(--shadow-sm)}.review-list{display:grid;gap:12px;margin-top:24px}.review-item{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}.review-main{min-width:0}.review-main h2{margin:8px 0 6px;font-size:1rem;line-height:1.55}.review-main p{margin-bottom:0;color:var(--text-muted);font-size:.78rem}.mastery-dots{display:flex;flex:0 0 auto;gap:5px}.mastery-dots span{width:9px;height:9px;border-radius:50%;background:var(--surface-strong)}.mastery-dots span.filled{background:var(--accent)}.review-start{justify-self:start;margin-top:12px}.history-list{display:grid;gap:14px;margin-top:24px}.history-item{padding:22px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm)}.history-item>header{display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--text-muted);font-size:.78rem}.history-item>header>div{display:flex;align-items:center;gap:10px}.history-item h2{margin:14px 0 16px;font-size:1rem;line-height:1.6}.answer-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.answer-compare>div{min-width:0;padding:14px;border:1px solid color-mix(in srgb,var(--success) 32%,var(--border));border-radius:12px;background:var(--success-soft)}.answer-compare>.user-wrong-answer{border-color:color-mix(in srgb,var(--danger) 32%,var(--border));background:var(--danger-soft)}.answer-compare dt{margin-bottom:5px;color:var(--text-muted);font-size:.75rem;font-weight:750}.answer-compare dd{margin:0;overflow-wrap:anywhere;white-space:pre-line}.analytics-card,.cloud-panel,.data-panel{padding:26px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm)}.dashboard-grid{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(420px,1.7fr);gap:18px;margin-bottom:18px}.dashboard-grid .analytics-card{min-width:0}.donut-figure{display:flex;align-items:center;justify-content:center;gap:24px;margin:8px 0 0}.donut-chart{width:148px;height:148px;overflow:visible}.donut-track,.donut-value{fill:none;stroke-width:12}.donut-track{stroke:var(--surface-strong)}.donut-value{stroke:var(--accent);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset .3s ease-out}.donut-number{fill:var(--heading);font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}.donut-caption{fill:var(--text-muted);font-size:10px}.donut-figure figcaption strong,.donut-figure figcaption span{display:block}.donut-figure figcaption strong{color:var(--heading)}.donut-figure figcaption span{color:var(--text-muted);font-size:.8rem}.trend-figure{margin:4px 0 0}.chart-legend{display:flex;justify-content:flex-end;gap:16px;margin-bottom:10px;color:var(--text-muted);font-size:.78rem}.chart-legend span{display:inline-flex;align-items:center;gap:6px}.chart-legend i{width:11px;height:11px;border-radius:3px}.legend-correct{background:var(--accent)}.legend-wrong{border:2px solid var(--danger);background:var(--danger-soft)}.trend-chart{display:grid;grid-template-columns:repeat(7,minmax(34px,1fr));gap:10px;min-height:196px;align-items:end;padding-top:8px;border-bottom:1px solid var(--border)}.trend-column{display:grid;grid-template-rows:20px 126px 22px 20px;align-items:end;justify-items:center;min-width:0}.trend-total{color:var(--text-muted);font-size:.72rem;font-variant-numeric:tabular-nums}.trend-bar{display:flex;width:min(28px,70%);height:100%;align-items:flex-end;justify-content:flex-end;flex-direction:column-reverse;overflow:hidden;border-radius:7px 7px 2px 2px;background:var(--surface-soft)}.trend-correct,.trend-wrong{display:block;width:100%;min-height:0}.trend-correct{background:var(--accent)}.trend-wrong{border-top:2px solid var(--surface);background:var(--danger)}.trend-column strong,.trend-column small{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.trend-column strong{color:var(--text);font-size:.72rem}.trend-column small{color:var(--text-muted);font-size:.68rem;font-variant-numeric:tabular-nums}.chart-empty{display:grid;min-height:196px;place-items:center;padding:24px;border:1px dashed var(--border);border-radius:14px;color:var(--text-muted);background:var(--surface-soft);text-align:center}.bar-list{display:grid;gap:22px}.bar-copy{display:flex;justify-content:space-between;gap:20px;margin-bottom:7px;font-size:.88rem}.bar-copy span{color:var(--text-muted);font-variant-numeric:tabular-nums}.bar-track{height:10px}.cloud-panel{margin-top:24px}.cloud-panel-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.cloud-panel-heading h2{margin-bottom:4px}.cloud-panel-icon{display:grid;width:46px;height:46px;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 22%,var(--border));border-radius:15px;color:var(--accent);background:var(--accent-soft)}.cloud-status{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0;color:var(--text-muted);font-size:.82rem}.cloud-status strong{color:var(--success)}.cloud-status.is-error strong{color:var(--danger)}.cloud-status.is-syncing strong{color:var(--primary)}.sync-now-button:disabled{opacity:.62}.spinning{animation:spin .9s linear infinite}.sync-key-card{display:grid;gap:12px;margin-top:22px;padding:18px;border:1px solid var(--border);border-radius:18px;background:var(--surface-soft)}.sync-key-title{display:flex;align-items:flex-start;gap:10px}.sync-key-title>svg{flex:0 0 auto;margin-top:3px;color:var(--accent)}.sync-key-title strong,.sync-key-title span{display:block}.sync-key-title span,.sync-key-warning{color:var(--text-muted);font-size:.8rem}.sync-key-row{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}.sync-key-row code{display:flex;min-width:0;min-height:44px;align-items:center;overflow:hidden;padding:9px 12px;border:1px solid var(--border);border-radius:12px;color:var(--heading);background:var(--surface);font-family:ui-monospace,Cascadia Mono,Consolas,monospace;font-size:.8rem;overflow-wrap:anywhere}.sync-key-warning{margin:0}.sync-import-form{display:grid;gap:8px;margin-top:20px}.sync-import-form label{color:var(--heading);font-size:.86rem;font-weight:750}.sync-import-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.sync-import-form input{width:100%;min-width:0;min-height:46px;padding:10px 13px;border:1px solid var(--border);border-radius:12px;color:var(--text);background:var(--surface);outline:none}.sync-import-form input:focus{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 18%,transparent)}.sync-message{margin:12px 0 0;color:var(--success);font-size:.82rem}.data-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}.data-panel h2{margin-bottom:5px}.data-panel p{margin-bottom:0;color:var(--text-muted)}.danger-button{flex:0 0 auto;color:var(--danger);border-color:color-mix(in srgb,var(--danger) 35%,var(--border));background:var(--surface)}.danger-button:hover{color:#fff;background:var(--danger)}.state-screen{display:grid;min-height:calc(100vh - 100px);place-items:center;align-content:center;gap:10px;color:var(--text-muted);text-align:center}.state-screen p{margin-bottom:0}.spin{animation:spin 1s linear infinite}.bottom-nav{display:none}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:980px){:root{--sidebar-width: 216px}.main-content{padding-inline:28px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{display:none}.main-content{margin-left:0;padding:max(20px,env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom))}.bottom-nav{position:fixed;z-index:50;right:12px;bottom:max(12px,env(safe-area-inset-bottom));left:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:66px;padding:5px;border:1px solid var(--border);border-radius:20px;background:#ffffffad;box-shadow:0 16px 36px #102a4333;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.bottom-nav a{display:flex;min-height:54px;align-items:center;justify-content:center;flex-direction:column;gap:2px;border-radius:15px;color:var(--text-muted);font-size:.7rem;font-weight:700;touch-action:manipulation}.bottom-nav a.active{color:var(--primary);background:var(--primary-soft)}.page-header{align-items:flex-start;flex-direction:column;gap:20px;margin-bottom:30px}.page-header .hero-action{width:100%}.stat-grid{gap:10px}.stat-card{min-height:108px;padding:16px}.stat-card strong{font-size:1.5rem}.type-grid{grid-template-columns:1fr}.focus-panel{align-items:stretch;flex-direction:column}.practice-toolbar{position:sticky;z-index:20;top:0;padding:8px 0;background:var(--bg)}.practice-toolbar{top:env(safe-area-inset-top);background:color-mix(in srgb,var(--bg) 74%,transparent);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%)}.toolbar-actions{gap:5px}.toolbar-actions .icon-button{width:44px;height:44px}.question-card{padding:22px 18px;border-radius:18px}.question-card h1{margin-bottom:24px}.question-actions{align-items:stretch;flex-direction:column}.question-actions .button{width:100%}.shortcut-hint{justify-content:center;flex-wrap:wrap}.review-item{align-items:flex-start;flex-direction:column}.review-start{width:100%}.answer-compare{grid-template-columns:1fr}.data-panel{align-items:stretch;flex-direction:column}.data-panel .button{width:100%}.sync-import-form>div{grid-template-columns:1fr}.sync-import-form .button{width:100%}.exam-submit-floating{right:16px;bottom:calc(94px + env(safe-area-inset-bottom))}}@media(max-width:430px){.main-content{padding-inline:12px}.stat-grid{grid-template-columns:1fr 1fr}.stat-card{align-items:center;flex-direction:column;text-align:center}.stat-icon{width:38px;height:38px}.type-card{padding:15px}.type-count{display:none}.judge-options{grid-template-columns:1fr}.option-button{grid-template-columns:36px minmax(0,1fr) 20px;padding-inline:11px}.option-button.has-shortcut{grid-template-columns:36px minmax(0,1fr) 28px 20px}.segmented-control{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.segmented-control button{min-width:0;justify-content:center;padding-inline:8px;font-size:.82rem}.donut-figure{justify-content:flex-start}.trend-chart{gap:5px}.history-item{padding:18px}.history-item>header{align-items:flex-start}.result-actions{flex-direction:column}.result-actions .button{width:100%}.question-sheet{padding:18px 14px}.question-sheet-grid{grid-template-columns:repeat(5,minmax(44px,1fr))}.cloud-panel{padding:20px 16px}.migration-panel{grid-template-columns:1fr;padding:18px 16px}.migration-icon{display:none}.cloud-panel-heading{grid-template-columns:auto minmax(0,1fr)}.sync-now-button{grid-column:1 / -1;width:100%}.sync-key-row{grid-template-columns:minmax(0,1fr) 44px 44px}}@media(max-width:360px){.main-content{padding-inline:10px}.bottom-nav{right:8px;left:8px}.bottom-nav a{font-size:.66rem}.stat-card{padding:13px 8px}.stat-card strong{font-size:1.35rem}.segmented-control button{padding-inline:5px;font-size:.75rem}.segmented-control button svg{display:none}.question-card{padding-inline:14px}.question-meta{align-items:flex-start;flex-wrap:wrap}.option-button{gap:8px}.donut-figure{align-items:flex-start;flex-direction:column}.bar-copy{align-items:flex-start;flex-direction:column;gap:2px}.practice-toolbar{grid-template-columns:42px minmax(64px,1fr) auto;gap:7px}.practice-toolbar>.icon-button{width:42px;height:42px}.toolbar-actions{gap:3px}.toolbar-actions .icon-button{width:40px;height:42px;border-radius:12px}.progress-copy{font-size:.68rem}.question-sheet-grid{grid-template-columns:repeat(5,minmax(40px,1fr));gap:7px}.question-sheet-grid button{min-width:40px}.exam-actions{display:grid;grid-template-columns:1fr 1fr}}@media(prefers-color-scheme:dark){:root{--bg: #09111f;--surface: rgba(24, 39, 58, .72);--surface-soft: rgba(31, 49, 70, .68);--surface-strong: rgba(53, 76, 101, .72);--text: #e5edf5;--text-muted: #a6b5c4;--heading: #f4f8fb;--border: rgba(154, 190, 224, .2);--primary: #79b5df;--primary-hover: #9bc8e7;--primary-soft: #1a3549;--accent: #55c5b9;--accent-soft: #153c3b;--warning: #f3ad5d;--warning-soft: #3d2d1a;--danger: #ff8f86;--danger-soft: #472523;--success: #62d5a9;--success-soft: #153a2f;--focus: #6ea8ff;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .22);--shadow-md: 0 14px 32px rgba(0, 0, 0, .28)}body{background:radial-gradient(circle at 10% 5%,rgba(0,122,255,.2),transparent 30rem),radial-gradient(circle at 90% 20%,rgba(48,209,88,.12),transparent 28rem),var(--bg)}.sidebar,.bottom-nav,.exam-submit-floating{background:#111e2fb8}.question-sheet-grid button{background:#1f3146a8}.button.primary,.brand-mark,.selected .option-key{color:#071522}.status-dot{box-shadow:0 0 0 4px #1d473a}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
