*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{color:#1a202c;background:#f0f4f8;min-height:100vh;font-family:Segoe UI,system-ui,-apple-system,sans-serif}#root{width:100%}.layout{min-height:100vh;display:flex}.sidebar{background:#1a202c;flex-direction:column;flex-shrink:0;width:200px;min-height:100vh;padding:1.5rem 0;display:flex;overflow-y:auto}.sidebar-logo{color:#fff;letter-spacing:-.3px;padding:0 1.25rem 1.5rem;font-size:1.2rem;font-weight:700}.nav-item{color:#9ca3af;cursor:pointer;text-align:left;background:0 0;border:none;border-left:3px solid #0000;align-items:center;gap:.6rem;width:100%;padding:.7rem 1.25rem;font-family:inherit;font-size:.9rem;font-weight:500;transition:background .15s,color .15s;display:flex}.nav-item:hover{color:#fff;background:#2d3748}.nav-item.active{color:#fff;background:#2d3748;border-left-color:#3b82f6}.nav-chevron{opacity:.6;margin-left:auto;font-size:.7rem}.nav-sub-list{flex-direction:column;display:flex}.nav-sub-item{color:#6b7280;cursor:pointer;text-align:left;background:0 0;border:none;border-left:3px solid #0000;width:100%;padding:.45rem 1.25rem .45rem 2rem;font-family:inherit;font-size:.82rem;font-weight:400;transition:background .15s,color .15s}.nav-sub-item:hover{color:#e5e7eb;background:#2d3748}.nav-sub-item.active{color:#fff;background:#2d3748;border-left-color:#3b82f6}.main-content{background:#f0f4f8;flex:1;overflow:auto}.app{flex-direction:column;gap:1.5rem;width:100%;max-width:600px;margin:0 auto;padding:2rem 1rem 3rem;display:flex}.word-list{padding:2rem}.word-list-header{flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1.25rem;display:flex}.word-list-header h2{color:#1a202c;margin:0;font-size:1.4rem;font-weight:700}.search-input{background:#fff;border:2px solid #e5e7eb;border-radius:8px;outline:none;min-width:240px;padding:.5rem .85rem;font-family:inherit;font-size:.95rem;transition:border-color .15s}.search-input:focus{border-color:#3b82f6}.familiar-toggle{color:#374151;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.4rem;font-size:.9rem;display:flex}.word-list-count{color:#9ca3af;margin-left:auto;font-size:.85rem}.table-wrap{border-radius:12px;overflow-x:auto;box-shadow:0 2px 12px #00000012}.vocab-table{border-collapse:collapse;background:#fff;width:100%;font-size:.9rem}.vocab-table th{text-align:left;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;background:#f8fafc;border-bottom:2px solid #e5e7eb;padding:.7rem 1rem;font-size:.75rem;font-weight:700}.vocab-table td{color:#111827;border-bottom:1px solid #f1f5f9;padding:.6rem 1rem}.vocab-table tr:last-child td{border-bottom:none}.vocab-table tbody tr:hover td{background:#f8fafc}.col-article{color:#2563eb;width:70px;font-weight:600}.col-word{font-weight:600}.col-inflection{color:#6b7280;font-size:.85rem}.col-type{color:#9ca3af;text-transform:uppercase;width:60px;font-size:.8rem;font-weight:600}.col-familiar{text-align:center;width:60px}.col-actions{white-space:nowrap;width:110px}.btn-edit,.btn-delete{cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.2rem .4rem;font-family:inherit;font-size:.8rem;font-weight:600}.btn-edit{color:#2563eb}.btn-edit:hover{background:#eff6ff}.btn-delete{color:#b91c1c}.btn-delete:hover{background:#fef2f2}.btn-add-word{color:#fff;cursor:pointer;background:#3b82f6;border:none;border-radius:8px;padding:.5rem .9rem;font-family:inherit;font-size:.85rem;font-weight:600;transition:background .15s}.btn-add-word:hover{background:#2563eb}.header{justify-content:space-between;align-items:center;display:flex}.title{letter-spacing:-.5px;color:#1a202c;font-size:1.6rem;font-weight:700}.mode-toggle{border:2px solid #d1d5db;border-radius:8px;display:flex;overflow:hidden}.mode-btn{color:#6b7280;cursor:pointer;background:#fff;border:none;padding:.4rem 1.1rem;font-size:.9rem;font-weight:600;transition:background .15s,color .15s}.mode-btn.active{color:#fff;background:#3b82f6}.card{background:#fff;border-radius:16px;flex-direction:column;gap:1.5rem;padding:2rem;display:flex;box-shadow:0 4px 24px #00000014}.badge{color:#2563eb;text-transform:uppercase;letter-spacing:.08em;background:#eff6ff;border-radius:999px;align-self:flex-start;padding:.2rem .65rem;font-size:.75rem;font-weight:700;display:inline-block}.display-word{color:#111827;text-align:center;margin:.5rem 0;font-size:2rem;font-weight:700;line-height:1.2}.fields{flex-direction:column;gap:.85rem;display:flex}.field{flex-direction:column;gap:.3rem;display:flex}.field-narrow{max-width:200px}.field-label{text-transform:uppercase;letter-spacing:.06em;color:#6b7280;font-size:.78rem;font-weight:600}.field-input{color:#111827;background:#f9fafb;border:2px solid #e5e7eb;border-radius:8px;outline:none;width:100%;padding:.55rem .8rem;font-family:inherit;font-size:1rem;transition:border-color .15s,background .15s}.field-input:focus{background:#fff;border-color:#3b82f6}.field-input.field-correct{color:#15803d;background:#f0fdf4;border-color:#22c55e}.field-input.field-wrong{color:#b91c1c;background:#fef2f2;border-color:#ef4444}.field-input.field-revealed{color:#6d28d9;background:#f5f3ff;border-color:#a78bfa;font-weight:600}.field-hint{color:#16a34a;font-size:.82rem;font-weight:500}.actions{flex-wrap:wrap;gap:.75rem;display:flex}.btn{cursor:pointer;border:none;border-radius:10px;flex:1;min-width:80px;padding:.65rem 1rem;font-family:inherit;font-size:.95rem;font-weight:600;transition:opacity .15s,transform .1s}.btn:disabled{opacity:.4;cursor:not-allowed}.btn:not(:disabled):active{transform:scale(.97)}.btn-check{color:#fff;background:#3b82f6}.btn-check:not(:disabled):hover{background:#2563eb}.btn-reveal{color:#374151;background:#f3f4f6}.btn-reveal:not(:disabled):hover{background:#e5e7eb}.btn-next{color:#fff;background:#111827}.btn-next:hover{background:#1f2937}.practice-group{background:#fff;border:1px solid #e5e7eb;border-radius:8px;flex-direction:column;gap:.3rem;padding:.35rem .65rem;display:flex}.practice-group-label{text-transform:uppercase;letter-spacing:.08em;color:#9ca3af;font-size:.65rem;font-weight:700;line-height:1}.practice-group-buttons{gap:.4rem;display:flex}.btn-practice{color:#2563eb;cursor:pointer;background:#eff6ff;border:1px solid #3b82f6;border-radius:6px;padding:.3rem .75rem;font-family:inherit;font-size:.85rem;font-weight:600;transition:background .15s,color .15s}.btn-practice:hover:not(:disabled){color:#fff;background:#3b82f6}.btn-practice:disabled{opacity:.4;cursor:not-allowed}.modal-overlay{z-index:100;background:#0f172af7;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-dialog{background:#fff;border-radius:16px;flex-direction:column;gap:1.5rem;width:100%;max-width:480px;max-height:90vh;margin:1rem;padding:2rem;display:flex;position:relative;overflow-y:auto;box-shadow:0 8px 40px #00000040}.modal-close{color:#9ca3af;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.25rem .5rem;font-size:1rem;line-height:1;transition:color .15s,background .15s;position:absolute;top:1rem;right:1rem}.modal-close:hover{color:#374151;background:#f3f4f6}.modal-prompt{color:#111827;text-align:center;margin:.5rem 0;font-size:2rem;font-weight:700;line-height:1.2}.auth-screen{background:#f0f4f8;justify-content:center;align-items:center;min-height:100vh;padding:1rem;display:flex}.auth-card{width:100%;max-width:360px}.auth-error{color:#b91c1c}.sidebar-footer{margin-top:auto;padding:.7rem 1.25rem 0}.sign-out-btn{color:#6b7280;cursor:pointer;background:0 0;border:none;padding:0;font-family:inherit;font-size:.82rem}.sign-out-btn:hover{color:#fff}.hint{text-align:center;color:#9ca3af;font-size:.8rem}
