:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;--bg: #0f0f13;--surface: #1a1a24;--surface2: #24243a;--border: rgba(255, 255, 255, .08);--accent: #7c6aef;--accent-light: #9d8ff5;--green: #34d399;--orange: #fb923c;--red: #f87171;--text: #e8e8f0;--text-dim: rgba(255, 255, 255, .5);--radius: 12px}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{min-height:100vh;background:var(--bg);color:var(--text);overflow-x:hidden}button{font-family:inherit;cursor:pointer;border:none;outline:none}.app{display:flex;min-height:100vh}.sidebar{width:240px;background:var(--surface);border-right:1px solid var(--border);padding:1.5rem 1rem;display:flex;flex-direction:column;gap:.25rem;flex-shrink:0}.sidebar-logo{display:flex;align-items:center;gap:.6rem;padding:0 .5rem 1.25rem;border-bottom:1px solid var(--border);margin-bottom:1rem}.sidebar-logo svg{width:28px;height:28px}.sidebar-logo span{font-size:1.05rem;font-weight:700;letter-spacing:-.02em;background:linear-gradient(135deg,var(--accent-light),var(--green));-webkit-background-clip:text;-webkit-text-fill-color:transparent}.nav-item{display:flex;align-items:center;gap:.65rem;padding:.6rem .75rem;border-radius:8px;font-size:.88rem;color:var(--text-dim);background:transparent;transition:all .15s;width:100%;text-align:left}.nav-item:hover{background:#ffffff0a;color:var(--text)}.nav-item.active{background:var(--accent);color:#fff;font-weight:600}.main{flex:1;padding:2rem 2.5rem;overflow-y:auto;max-height:100vh}.page-header{margin-bottom:2rem}.page-header h1{font-size:1.75rem;font-weight:700;letter-spacing:-.03em;margin-bottom:.35rem}.page-header p{color:var(--text-dim);font-size:.95rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem 1.1rem;border-radius:8px;font-size:.85rem;font-weight:600;transition:all .15s}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-light)}.btn-ghost{background:transparent;color:var(--text-dim);border:1px solid var(--border)}.btn-ghost:hover{background:#ffffff0a;color:var(--text)}.btn-danger{background:#f8717126;color:var(--red)}.btn-danger:hover{background:#f8717140}.btn-sm{padding:.35rem .75rem;font-size:.8rem}.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:2rem}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem}.stat-card .label{font-size:.78rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem}.stat-card .value{font-size:1.8rem;font-weight:700;letter-spacing:-.03em}.stat-card.accent .value{color:var(--accent-light)}.stat-card.green .value{color:var(--green)}.stat-card.orange .value{color:var(--orange)}.stat-card.red .value{color:var(--red)}.flashcard-container{display:flex;flex-direction:column;align-items:center;gap:1.5rem;padding:2rem 0}.flashcard{width:100%;max-width:560px;min-height:300px;perspective:1000px;cursor:pointer}.flashcard-inner{position:relative;width:100%;min-height:300px;transition:transform .5s cubic-bezier(.4,0,.2,1);transform-style:preserve-3d}.flashcard.flipped .flashcard-inner{transform:rotateY(180deg)}.flashcard-face{position:absolute;top:0;right:0;bottom:0;left:0;backface-visibility:hidden;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2.5rem;text-align:center}.flashcard-face.back{transform:rotateY(180deg);background:var(--surface2)}.flashcard-face .label{font-size:.7rem;text-transform:uppercase;letter-spacing:.15em;color:var(--text-dim);margin-bottom:1rem}.flashcard-face .content{font-size:1.25rem;line-height:1.6;font-weight:500}.flashcard-actions{display:flex;gap:.75rem}.flashcard-actions .btn{min-width:120px;justify-content:center}.card-counter{font-size:.85rem;color:var(--text-dim)}.deck-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;cursor:pointer;transition:all .15s}.deck-card:hover{border-color:var(--accent);transform:translateY(-2px)}.deck-card h3{font-size:1rem;font-weight:600;margin-bottom:.35rem}.deck-card .meta{font-size:.8rem;color:var(--text-dim)}.deck-card .progress-bar{margin-top:.75rem;height:4px;background:#ffffff0f;border-radius:2px;overflow:hidden}.deck-card .progress-fill{height:100%;background:var(--accent);border-radius:2px;transition:width .3s}.quiz-container{max-width:640px;margin:0 auto}.quiz-progress{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}.quiz-progress .bar{flex:1;height:6px;background:#ffffff0f;border-radius:3px;overflow:hidden}.quiz-progress .fill{height:100%;background:var(--accent);border-radius:3px;transition:width .3s}.quiz-progress .count{font-size:.85rem;color:var(--text-dim);white-space:nowrap}.quiz-question{font-size:1.15rem;font-weight:600;margin-bottom:1.5rem;line-height:1.5}.quiz-options{display:flex;flex-direction:column;gap:.65rem;margin-bottom:1.5rem}.quiz-option{padding:.85rem 1.1rem;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.92rem;text-align:left;transition:all .15s;display:flex;align-items:center;gap:.75rem}.quiz-option:hover:not(.selected):not(.correct):not(.wrong){border-color:var(--accent);background:#7c6aef14}.quiz-option.selected{border-color:var(--accent);background:#7c6aef1f}.quiz-option.correct{border-color:var(--green);background:#34d3991a;color:var(--green)}.quiz-option.wrong{border-color:var(--red);background:#f871711a;color:var(--red)}.quiz-option .letter{width:26px;height:26px;border-radius:50%;background:#ffffff0f;display:flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:700;flex-shrink:0}.quiz-result{text-align:center;padding:3rem 1rem}.quiz-result .score{font-size:3.5rem;font-weight:800;letter-spacing:-.04em;margin-bottom:.5rem}.quiz-result .score.good{color:var(--green)}.quiz-result .score.ok{color:var(--orange)}.quiz-result .score.bad{color:var(--red)}.quiz-result .message{font-size:1.1rem;color:var(--text-dim);margin-bottom:2rem}.timer-container{display:flex;flex-direction:column;align-items:center;gap:2rem;padding:2rem 0}.timer-display{position:relative;width:280px;height:280px}.timer-display svg{width:100%;height:100%;transform:rotate(-90deg)}.timer-display .bg{fill:none;stroke:#ffffff0a;stroke-width:6}.timer-display .progress{fill:none;stroke:var(--accent);stroke-width:6;stroke-linecap:round;transition:stroke-dashoffset 1s linear}.timer-text{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.timer-text .time{font-size:3rem;font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.timer-text .phase{font-size:.85rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:.1em}.timer-controls{display:flex;gap:.75rem}.timer-presets{display:flex;gap:.5rem}.timer-presets .btn{min-width:70px;justify-content:center}.session-log{width:100%;max-width:500px}.session-log h3{font-size:.85rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.75rem}.session-item{display:flex;justify-content:space-between;align-items:center;padding:.65rem 0;border-bottom:1px solid var(--border);font-size:.88rem}.session-item:last-child{border-bottom:none}.session-item .duration{color:var(--accent-light);font-weight:600}.notes-layout{display:grid;grid-template-columns:260px 1fr;gap:1.25rem;height:calc(100vh - 140px)}.notes-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow-y:auto;padding:.5rem}.note-item{padding:.75rem;border-radius:8px;cursor:pointer;transition:background .15s;margin-bottom:2px}.note-item:hover{background:#ffffff08}.note-item.active{background:var(--surface2)}.note-item h4{font-size:.88rem;font-weight:600;margin-bottom:.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-item .preview{font-size:.78rem;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-item .date{font-size:.7rem;color:var(--text-dim);margin-top:.25rem}.note-editor{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column}.note-editor-toolbar{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-bottom:1px solid var(--border)}.note-editor-toolbar input{flex:1;background:transparent;border:none;color:var(--text);font-size:1.05rem;font-weight:600;font-family:inherit;outline:none}.note-editor textarea{flex:1;background:transparent;border:none;color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9rem;line-height:1.7;padding:1.25rem;resize:none;outline:none}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.75rem;width:90%;max-width:480px}.modal h2{font-size:1.15rem;margin-bottom:1.25rem}.modal .form-group{margin-bottom:1rem}.modal label{display:block;font-size:.82rem;color:var(--text-dim);margin-bottom:.4rem}.modal input,.modal textarea{width:100%;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);font-family:inherit;font-size:.9rem;padding:.6rem .85rem;outline:none}.modal input:focus,.modal textarea:focus{border-color:var(--accent)}.modal textarea{min-height:80px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.5rem}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;text-align:center;color:var(--text-dim)}.empty-state svg{width:48px;height:48px;margin-bottom:1rem;opacity:.3}.empty-state p{margin-bottom:1rem;font-size:.95rem}@media(max-width:768px){.sidebar{width:60px;padding:1rem .5rem}.sidebar-logo span,.nav-item span{display:none}.nav-item{justify-content:center;padding:.6rem}.main{padding:1.5rem 1rem}.stats-row{grid-template-columns:repeat(2,1fr)}.notes-layout{grid-template-columns:1fr}}
