:root{color:#1e293b;font-synthesis:none;text-rendering:optimizelegibility;--primary:#2563eb;--primary-dark:#1d4ed8;--surface:#fff;--surface-soft:#f8fafc;--border:#e2e8f0;--muted:#64748b;--success:#15803d;--danger:#b91c1c;background:#f5f7fb;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}body{background:#f5f7fb;min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}h1,h2,h3,p{margin-top:0}.app-shell{grid-template-columns:230px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;height:100vh;padding:28px 20px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;margin-bottom:36px;display:flex}.brand-mark{color:#fff;background:var(--primary);letter-spacing:.04em;border-radius:12px;place-items:center;width:44px;height:44px;font-size:14px;font-weight:800;display:grid}.brand strong,.brand small{display:block}.brand strong{font-size:16px}.brand small{color:var(--muted);margin-top:3px;font-size:12px}.main-nav{gap:8px;display:grid}.nav-button{color:#475569;text-align:left;background:0 0;border:0;border-radius:10px;padding:12px 14px;font-weight:650}.nav-button:hover{background:#f1f5f9}.nav-button.active{color:var(--primary-dark);background:#eff6ff}.storage-note{color:#94a3b8;margin:auto 0 0;font-size:12px;line-height:1.6}.storage-note.storage-error{color:var(--danger)}.main-content{width:100%;max-width:1280px;margin:0 auto;padding:42px 44px 64px}.page-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px;display:flex}.page-header h1{color:#0f172a;margin-bottom:10px;font-size:clamp(28px,4vw,40px);line-height:1.15}.page-header p:not(.eyebrow){max-width:680px;color:var(--muted);margin-bottom:0;line-height:1.7}.eyebrow{color:var(--primary);letter-spacing:.08em;margin-bottom:8px;font-size:13px;font-weight:800}.rate-card,.count-card{border:1px solid var(--border);background:var(--surface);border-radius:16px;flex:0 0 220px;padding:18px 20px;box-shadow:0 8px 24px #0f172a0a}.rate-card>span,.count-card>span{color:var(--muted);font-size:13px}.rate-card strong,.count-card strong{color:#0f172a;margin:5px 0 12px;font-size:30px;display:block}.progress-track{background:#e2e8f0;border-radius:999px;height:9px;overflow:hidden}.progress-track span{border-radius:inherit;background:var(--primary);height:100%;transition:width .18s;display:block}.progress-track.compact{height:7px;margin:20px 0}.progress-track.large{height:12px}.feedback-banner{background:#eff6ff;border:1px solid #bfdbfe;border-radius:16px;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px;padding:20px 24px;display:flex}.feedback-banner strong{color:#1e3a8a;margin-top:5px;line-height:1.55;display:block}.feedback-label,.streak-block span{color:#3b82f6;font-size:12px;font-weight:750}.streak-block{text-align:right;min-width:110px}.streak-block strong{font-size:22px}.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.subject-card,.panel,.error-card,.review-card,.stat-card,.empty-state{border:1px solid var(--border);background:var(--surface);border-radius:18px;box-shadow:0 8px 28px #0f172a0a}.subject-card{border-top-width:4px;padding:22px}.subject-card.subject-math{border-top-color:#2563eb}.subject-card.subject-english{border-top-color:#7c3aed}.subject-card.subject-computer{border-top-color:#0f766e}.subject-card-header{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.subject-card h2{color:#0f172a;margin:6px 0 0;font-size:19px}.subject-tag{color:var(--muted);font-size:12px}.subject-rate{color:var(--primary);font-size:20px}.subject-summary{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:24px;display:grid}.subject-summary>div{background:var(--surface-soft);text-align:center;border-radius:10px;padding:10px 6px}.subject-summary span,.subject-summary strong{display:block}.subject-summary span{color:var(--muted);font-size:11px}.subject-summary strong{color:#0f172a;margin-top:5px;font-size:19px}.subject-controls{gap:14px;display:grid}.number-control{color:#475569;justify-content:space-between;align-items:center;gap:10px;font-size:13px;font-weight:650;display:flex}.stepper{border:1px solid var(--border);border-radius:9px;display:flex;overflow:hidden}.stepper button,.stepper input{text-align:center;background:#fff;border:0;width:34px;height:32px}.stepper button{color:var(--primary-dark);font-weight:800}.stepper button:hover:not(:disabled){background:#eff6ff}.stepper input{border-right:1px solid var(--border);border-left:1px solid var(--border);color:#0f172a;appearance:textfield;width:48px}.stepper input::-webkit-outer-spin-button{appearance:none;margin:0}.stepper input::-webkit-inner-spin-button{appearance:none;margin:0}.panel{padding:26px}.section-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;display:flex}.section-heading h2{color:#0f172a;margin-bottom:5px;font-size:21px}.section-heading p{color:var(--muted);margin-bottom:0;font-size:13px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.form-grid label{gap:8px;display:grid}.form-grid label>span{color:#334155;font-size:13px;font-weight:700}.form-grid .full-width{grid-column:1/-1}input,select,textarea{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:10px;outline:none;width:100%}.form-grid input,.form-grid select,.form-grid textarea{padding:11px 12px}input:focus,select:focus,textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #3b82f61f}textarea{resize:vertical}.primary-button,.secondary-button,.text-button,.filter-group button{border:0;border-radius:9px;font-weight:700}.primary-button{color:#fff;background:var(--primary);padding:11px 18px}.primary-button:hover{background:var(--primary-dark)}.form-submit-row{align-items:center;gap:14px;margin-top:22px;display:flex}.form-message{margin:0;font-size:13px;font-weight:700}.form-message.success{color:var(--success)}.form-message.error{color:var(--danger)}.secondary-button{color:var(--primary-dark);background:#eff6ff;padding:9px 13px}.text-button{color:var(--muted);background:0 0;padding:9px 10px}.text-button.danger{color:var(--danger)}.list-section{margin-top:34px}.list-heading{align-items:flex-end}.filter-group{flex-wrap:wrap;gap:7px;display:flex}.filter-group button{color:#475569;background:#e2e8f0;padding:8px 11px;font-size:12px}.filter-group button.active{color:#fff;background:var(--primary)}.error-list,.review-list{gap:16px;display:grid}.error-card,.review-card{padding:22px}.error-card-top,.review-card-header,.error-card-footer{justify-content:space-between;align-items:center;gap:14px;display:flex}.subject-pill,.type-pill,.review-date{border-radius:999px;font-size:12px;font-weight:700;display:inline-block}.subject-pill{color:#1e40af;background:#dbeafe;margin-right:6px;padding:5px 9px}.subject-pill.subject-english{color:#6d28d9;background:#ede9fe}.subject-pill.subject-computer{color:#0f766e;background:#ccfbf1}.type-pill{color:#475569;background:#f1f5f9;padding:5px 9px}.review-date{color:var(--muted)}.review-date.due{color:#b45309}.error-card h3{color:#0f172a;margin:18px 0;font-size:18px;line-height:1.55}.error-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;display:grid}.error-details>div,.review-focus{background:var(--surface-soft);border-radius:11px;padding:14px}.error-details dt,.review-focus span{color:var(--muted);margin-bottom:6px;font-size:12px;font-weight:700}.error-details dd{color:#334155;margin:0;line-height:1.6}.error-card-footer{border-top:1px solid var(--border);margin-top:18px;padding-top:16px}.error-card-footer>span{color:var(--muted);font-size:12px}.error-card-footer>div{gap:4px;display:flex}.empty-state{color:#475569;text-align:center;padding:54px 24px}.empty-state strong{color:#0f172a;margin-bottom:8px;font-size:19px;display:block}.empty-state p{color:var(--muted);margin-bottom:0}.success-state{background:#f0fdf4;border-color:#bbf7d0}.review-card h2{color:#0f172a;margin:20px 0;font-size:21px;line-height:1.55}.review-focus span,.review-focus strong{display:block}.review-focus strong{color:#1e3a8a;line-height:1.6}.review-card details{color:#475569;margin:15px 0}.review-card summary{cursor:pointer;color:var(--muted);font-size:13px;font-weight:700}.review-card details p{margin:10px 0 0;line-height:1.6}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px;display:grid}.stat-card{padding:22px}.stat-card>span{color:var(--muted);font-size:13px}.stat-card div{align-items:baseline;gap:5px;margin-top:12px;display:flex}.stat-card strong{color:#0f172a;font-size:34px}.stat-card small{color:var(--muted);font-weight:650}.weekly-panel{margin-bottom:18px}.weekly-panel .section-heading>strong{color:var(--primary);font-size:30px}.weekly-feedback{color:#475569;margin:16px 0 0;line-height:1.6}.habit-panel{grid-template-columns:auto auto 1fr;align-items:center;gap:12px;display:grid}.habit-panel>span{color:var(--muted);font-weight:700}.habit-panel>strong{color:#0f172a;font-size:24px}.habit-panel p{color:var(--muted);text-align:right;margin:0 0 0 10px}@media (width<=1040px){.subject-grid{grid-template-columns:1fr}.subject-controls,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.app-shell{display:block}.sidebar{z-index:10;border-right:0;border-bottom:1px solid var(--border);width:100%;height:auto;padding:12px 16px;display:block;position:sticky}.brand{margin-bottom:10px}.brand-mark{border-radius:10px;width:36px;height:36px;font-size:12px}.brand small,.storage-note{display:none}.main-nav{grid-template-columns:repeat(4,minmax(max-content,1fr));gap:6px;display:grid;overflow-x:auto}.nav-button{text-align:center;white-space:nowrap;padding:9px 8px;font-size:13px}.main-content{padding:28px 16px 48px}.page-header,.feedback-banner,.list-heading,.error-card-top,.review-card-header,.error-card-footer{flex-direction:column;align-items:stretch}.rate-card,.count-card{flex-basis:auto;width:100%}.feedback-banner{gap:14px}.streak-block{text-align:left}.form-grid,.error-details{grid-template-columns:1fr}.form-grid .full-width{grid-column:auto}.error-card-footer>div{justify-content:flex-start}.habit-panel{grid-template-columns:1fr auto}.habit-panel p{text-align:left;grid-column:1/-1;margin:0}}@media (width<=480px){.page-header h1{font-size:28px}.subject-card,.panel,.error-card,.review-card{padding:18px}.subject-controls,.stats-grid{grid-template-columns:1fr}.section-heading{flex-direction:column;align-items:flex-start}.primary-button{width:100%}.form-submit-row{flex-direction:column;align-items:stretch}}
