*{margin:0;padding:0;box-sizing:border-box}body{font-family:SF Pro Display,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#fafafa;min-height:100vh;color:#171717;line-height:1.5}button,select{font-family:SF Pro Display,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.container{max-width:1200px;margin:0 auto;padding:32px 24px}header{text-align:center;margin-bottom:48px}header h1{font-size:2.5rem;font-weight:600;margin-bottom:8px;color:#171717;letter-spacing:-.025em}header p{font-size:1rem;color:#737373;font-weight:400}.stats-section{margin-bottom:48px}.stats{display:flex;justify-content:center;gap:48px;background:#fff;border-radius:12px;padding:32px;border:1px solid #e5e5e5;box-shadow:0 1px 3px #0000001a}.stat-item{text-align:center}.stat-value{display:block;font-size:2.25rem;font-weight:600;margin-bottom:4px;color:#171717}.stat-label{font-size:.875rem;color:#737373;font-weight:500}.controls{display:flex;justify-content:center;align-items:baseline;gap:16px;margin-bottom:48px}.dataset-selector{display:flex;align-items:baseline;gap:12px;margin-right:24px}.dataset-selector span{font-size:.875rem;font-weight:500;color:#171717}.dataset-selector label{display:flex;align-items:baseline;gap:6px;font-size:.875rem;color:#171717;cursor:pointer}.dataset-selector input[type=radio]{margin:0}.primary-btn,.secondary-btn,.danger-btn{padding:0 24px;height:40px;border:1px solid transparent;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;justify-content:center;line-height:100%}.primary-btn{background:#171717;color:#fff;border-color:#171717}.primary-btn:hover{background:#262626;border-color:#262626}.secondary-btn{background:#fff;color:#171717;border-color:#d4d4d8}.secondary-btn:hover{background:#f4f4f5;border-color:#a1a1aa}.danger-btn{background:#fff;color:#dc2626;border-color:#fecaca}.danger-btn:hover{background:#fef2f2;border-color:#fca5a5}.study-mode,.browse-mode{background:#fff;border-radius:12px;padding:32px;border:1px solid #e5e5e5;box-shadow:0 1px 3px #0000001a}.card-container{display:flex;justify-content:center;margin-bottom:30px}.card{background:#fafafa;border-radius:12px;border:1px solid #e5e5e5;width:100%;max-width:600px;min-height:320px;padding:48px 32px;text-align:center;position:relative;transition:all .15s ease}.card-front,.card-back{display:grid;grid-template-rows:1fr auto auto;height:100%}.card-text{font-size:1.5rem;line-height:1.4;color:#171717;font-weight:500;letter-spacing:-.01em}.phonetics{font-size:.875rem;color:#737373;margin-top:8px;font-weight:400;font-style:italic}.latin-repeat{font-size:1rem;color:#a1a1aa;margin-top:16px;font-weight:400}.phonetics-repeat{font-size:.75rem;color:#a1a1aa;margin-top:4px;font-weight:400;font-style:italic}.card-actions{display:flex;align-items:center;justify-content:center;gap:12px}.listen-container{display:flex;align-items:center}.voice-settings-btn{background:none;border:none;cursor:pointer;padding:6px;border-radius:4px;color:#737373;transition:all .15s ease;display:flex;align-items:center;justify-content:center;margin-left:2px;position:relative}.voice-settings-btn:before{content:" ";position:absolute;top:-8px;left:-2px;bottom:-8px;right:0}.voice-settings-btn:hover{background:#e5e5e5;color:#171717}.voice-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}.voice-modal-content{background:#fff;border-radius:12px;max-width:400px;width:100%;max-height:80vh;overflow-y:auto;box-shadow:0 10px 25px #0003}.voice-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 20px 0;border-bottom:1px solid #e5e5e5;margin-bottom:20px}.voice-modal-header h3{margin:0;font-size:1.125rem;font-weight:600;color:#171717}.close-btn{background:none;border:none;cursor:pointer;padding:8px;border-radius:6px;color:#737373;transition:all .15s ease;display:flex;align-items:center;justify-content:center}.close-btn:hover{background:#f4f4f5;color:#171717}.voice-modal-body{padding:0 20px 20px}.voice-modal-body label{display:block;font-size:.875rem;font-weight:500;color:#171717;margin-bottom:8px}.voice-select{width:100%;padding:16px;border:1px solid #d4d4d8;border-radius:8px;font-size:1rem;background:#fff;margin-bottom:16px;min-height:48px}.voice-select:focus{outline:none;border-color:#171717}.test-voice-btn{background:#f4f4f5;color:#171717;border:1px solid #d4d4d8;padding:12px 20px;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s ease;min-height:48px}.test-voice-btn:hover{background:#e5e5e5}@media (max-width: 768px){.voice-modal{padding:0;align-items:flex-end;justify-content:center}.voice-modal-content{max-width:none;width:100%;max-height:70vh;border-radius:16px 16px 0 0;display:flex;flex-direction:column;box-shadow:0 -4px 20px #00000026}.voice-modal-header{flex-shrink:0;padding:20px 20px 16px;border-bottom:1px solid #e5e5e5;margin-bottom:0;position:relative}.voice-modal-header:before{content:"";position:absolute;top:8px;left:50%;transform:translate(-50%);width:40px;height:4px;background:#d4d4d8;border-radius:2px}.voice-modal-body{flex:1;padding:20px;overflow-y:auto}.voice-modal-body{display:flex;flex-direction:column}.voice-modal-body label{margin-bottom:12px;font-size:1rem}.voice-select{margin-bottom:20px;font-size:1.1rem;padding:18px;min-height:56px}.test-voice-btn{align-self:flex-end;min-height:56px;padding:16px 24px;font-size:1rem;margin-top:auto}}.card-actions{display:flex;align-items:center;gap:12px;justify-content:center}.listen-btn{width:40px;height:40px;padding:0!important;color:#737373}.reveal-btn{background:#171717;color:#fff;border:1px solid #171717;padding:0 24px;height:40px;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s ease;flex-shrink:0}.reveal-btn:hover{background:#262626;border-color:#262626}.rating-btn{padding:10px 20px;border:1px solid;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s ease;min-width:80px}.rating-btn.hard{background:#fff;color:#dc2626;border-color:#fecaca}.rating-btn.hard:hover{background:#fef2f2;border-color:#fca5a5}.rating-btn.medium{background:#fff;color:#d97706;border-color:#fed7aa}.rating-btn.medium:hover{background:#fef3ec;border-color:#fdba74}.rating-btn.easy{background:#fff;color:#059669;border-color:#a7f3d0}.rating-btn.easy:hover{background:#ecfdf5;border-color:#6ee7b7}.study-progress{display:flex;align-items:center;gap:20px;justify-content:center}.progress-bar{background:#f4f4f5;border-radius:6px;height:8px;width:320px;overflow:hidden}.progress-fill{background:#171717;height:100%;width:0%;transition:width .3s ease}#progressText{font-weight:500;color:#737373;font-size:.875rem;white-space:nowrap}.browse-controls{display:flex;gap:16px;margin-bottom:32px;justify-content:center;align-items:center}#searchInput,#filterSelect{padding:12px 16px;border:1px solid #d4d4d8;border-radius:8px;font-size:.875rem;outline:none;transition:border-color .15s ease;background:#fff}#searchInput{width:280px}#searchInput:focus,#filterSelect:focus{border-color:#171717}.cards-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.browse-card{background:#fff;border-radius:8px;padding:20px;border:1px solid #e5e5e5;transition:all .15s ease;border-left:3px solid #d4d4d8}.browse-card:hover{border-color:#d4d4d8;background:#fafafa}.browse-card.studied{border-left-color:#d97706}.browse-card.mastered{border-left-color:#059669}.browse-card-latin{font-size:1.125rem;font-weight:500;color:#171717;margin-bottom:8px;letter-spacing:-.01em}.browse-card-russian{font-size:.875rem;color:#737373;line-height:1.4}.browse-card-status{margin-top:12px;font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em}.browse-card-status.new{color:#737373}.browse-card-status.studied{color:#d97706}.browse-card-status.mastered{color:#059669}.keyboard-hints{margin-top:8px;font-size:.875rem;color:#737373}@media (max-width: 768px){.container{padding:15px}header h1{font-size:2.5rem}.stats{gap:20px;padding:20px}.stat-value{font-size:2rem}.controls{flex-wrap:wrap;gap:8px}.dataset-selector{width:100%;justify-content:center;margin-right:0;margin-bottom:8px}.primary-btn,.secondary-btn,.danger-btn{flex:1;min-width:0;padding:0 12px}.card{padding:30px 20px;min-height:250px}.card-text{font-size:1.5rem}.browse-controls{flex-direction:column}#searchInput{width:100%}.cards-list{grid-template-columns:1fr}}
