.search-form{width:100%;max-width:42rem;margin:0 auto}.search-container{position:relative;display:flex;gap:.5rem}.search-input{flex:1;padding:.75rem 1rem;font-size:1.125rem;background-color:#374151;border:1px solid #4b5563;border-radius:.5rem;outline:none;color:#fff}html[data-theme=light] .search-input{background-color:#fff;border:1px solid #d1d5db;color:#1f2937}html[data-theme=dark] .search-input{background-color:#374151;border:1px solid #4b5563;color:#fff}.search-input:focus{border-color:transparent;box-shadow:0 0 0 2px #3b82f6}.search-input:disabled{opacity:.6;cursor:not-allowed}html[data-theme=light] .search-input::placeholder{color:#d1d5db;opacity:1}html[data-theme=dark] .search-input::placeholder{color:#9ca3af;opacity:1}.search-button{padding:.75rem;min-width:3.5rem;min-height:3.5rem;font-size:1.5rem;color:#fff;background-color:#2563eb;border:none;border-radius:.5rem;cursor:pointer;transition:background-color .2s;display:flex;align-items:center;justify-content:center}html[data-theme=light] .search-button{background-color:#3b82f6;color:#fff}html[data-theme=dark] .search-button{background-color:#2563eb;color:#fff}.search-button:hover:not(:disabled){background-color:#1d4ed8}html[data-theme=light] .search-button:hover:not(:disabled){background-color:#2563eb}html[data-theme=dark] .search-button:hover:not(:disabled){background-color:#1d4ed8}.search-button:disabled{background-color:#9ca3af;cursor:not-allowed}.suggestions-dropdown{position:absolute;top:100%;left:0;right:3.5rem;margin-top:.25rem;background-color:#374151;border:1px solid #4b5563;border-radius:.5rem;max-height:300px;overflow-y:auto;z-index:1000;box-shadow:0 4px 6px #0000001a;animation:fadeInDropdown .15s ease-in}@keyframes fadeInDropdown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.suggestions-dropdown.fade-out{animation:fadeOutDropdown .15s ease-out forwards}@keyframes fadeOutDropdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-8px)}}html[data-theme=light] .suggestions-dropdown{background-color:#fff;border:1px solid #d1d5db}html[data-theme=dark] .suggestions-dropdown{background-color:#374151;border:1px solid #4b5563}.suggestion-item{padding:.75rem 1rem;cursor:pointer;transition:background-color .15s;color:#fff}html[data-theme=light] .suggestion-item{color:#1f2937}html[data-theme=dark] .suggestion-item{color:#fff}.suggestion-item:hover,.suggestion-item.selected{background-color:#4b5563}html[data-theme=light] .suggestion-item:hover,html[data-theme=light] .suggestion-item.selected{background-color:#f3f4f6}html[data-theme=dark] .suggestion-item:hover,html[data-theme=dark] .suggestion-item.selected{background-color:#4b5563}.suggestion-item:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.suggestion-item:last-child{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.result-card{width:100%;max-width:42rem;margin:2rem auto 0;padding:1.5rem;background-color:#fff;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;animation:fadeInResult .2s ease-in}@keyframes fadeInResult{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}html[data-theme=light] .result-card{background-color:#fff;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}html[data-theme=dark] .result-card{background-color:#1f2937;box-shadow:0 10px 15px -3px #0000004d,0 4px 6px -2px #0003}@media(max-width:768px){.result-card{margin:1.5rem auto 0;padding:1rem}}.correction-notice{background:linear-gradient(135deg,#fef3c7,#fde68a);border:2px solid #f59e0b;border-radius:.5rem;padding:1rem;margin-bottom:1.5rem;display:flex;gap:.75rem;align-items:center}.correction-icon{font-size:1.5rem;flex-shrink:0;line-height:1}.correction-content{flex:1;display:flex;flex-direction:column;gap:.25rem}.correction-content strong{color:#92400e;font-size:.875rem}.corrected-word{color:#b45309;font-size:1.125rem;font-weight:600}.ai-suggestion{background:linear-gradient(135deg,#dbeafe,#bfdbfe);border:2px solid #3b82f6;border-radius:.5rem;padding:1rem;margin-bottom:1.5rem;display:flex;gap:.75rem;align-items:flex-start}.ai-suggestion-icon{font-size:1.5rem;flex-shrink:0;line-height:1}.ai-suggestion-content{flex:1}.ai-suggestion-content strong{display:block;color:#1e40af;font-size:1rem;margin-bottom:.5rem}.ai-suggestion-content p{color:#1e3a8a;margin:.5rem 0;font-size:.875rem}.switch-to-ai-button{margin-top:.75rem;padding:.5rem 1rem;background-color:#3b82f6;color:#fff;border:none;border-radius:.375rem;font-weight:600;font-size:.875rem;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #3b82f633}.switch-to-ai-button:hover{background-color:#2563eb;transform:translateY(-1px);box-shadow:0 4px 8px #3b82f64d}.switch-to-ai-button:active{transform:translateY(0)}.cache-warning{background:#fef3c7;border:2px solid #f59e0b;border-radius:.5rem;padding:1rem;margin-bottom:1.5rem;display:flex;gap:.75rem;align-items:flex-start}.cache-warning-icon{font-size:1.5rem;flex-shrink:0;line-height:1}.cache-warning-content{flex:1}.cache-warning-content strong{display:block;color:#92400e;font-size:1rem;margin-bottom:.5rem}.cache-warning-content p{color:#78350f;margin:.5rem 0;font-size:.875rem}.cache-warning-content ol{margin:.5rem 0 0;padding-left:1.25rem;color:#78350f;font-size:.8125rem}.cache-warning-content ol li{margin:.25rem 0}.cache-warning-content code{background:#fff;border:1px solid #f59e0b;border-radius:.25rem;padding:.125rem .375rem;font-family:monospace;font-size:.75rem;color:#92400e}@media(prefers-color-scheme:dark){.result-card{background-color:#1f2937}}.result-content{text-align:center}.variants-container{display:flex;flex-direction:column;gap:1rem}.variant-item{border-bottom:1px solid #e5e7eb;padding-bottom:1rem}.variant-item:last-child{border-bottom:none;padding-bottom:0}@media(prefers-color-scheme:dark){.variant-item{border-color:#374151}}.variant-header{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:.5rem;flex-wrap:wrap}.article-text{font-size:3rem;font-weight:700;color:#16a34a}html[data-theme=light] .article-text{color:#16a34a}html[data-theme=dark] .article-text{color:#4ade80}@media(max-width:768px){.article-text{font-size:2.5rem}}.word-text{font-size:1.875rem;color:#374151}html[data-theme=light] .word-text{color:#374151}html[data-theme=dark] .word-text{color:#e5e7eb}@media(max-width:768px){.word-text{font-size:1.5rem}}.plural-text{font-size:1.125rem;color:#6b7280}html[data-theme=light] .plural-text{color:#6b7280}html[data-theme=dark] .plural-text{color:#9ca3af}.primary-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#78350f;font-size:.75rem;font-weight:600;border-radius:9999px;box-shadow:0 2px 4px #f59e0b4d;animation:fadeIn .3s ease-in}@media(prefers-color-scheme:dark){.primary-badge{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#78350f;box-shadow:0 2px 4px #f59e0b66}}.meaning-container{margin-top:.75rem}.meaning-label{font-size:.75rem;color:#6b7280;font-weight:600;margin-bottom:.25rem;animation:fadeIn .3s ease-in}html[data-theme=light] .meaning-label{color:#6b7280}html[data-theme=dark] .meaning-label{color:#9ca3af}.meaning-text{font-size:1rem;color:#374151;font-style:italic;animation:fadeInDelayed .5s ease-in}html[data-theme=light] .meaning-text{color:#374151}html[data-theme=dark] .meaning-text{color:#e5e7eb}.fallback-text{margin-top:.75rem;font-size:1rem;color:#6b7280;font-style:italic;animation:fadeInDelayed .5s ease-in}@media(prefers-color-scheme:dark){.fallback-text{color:#9ca3af}}.no-article-text{color:#6b7280}@media(prefers-color-scheme:dark){.no-article-text{color:#9ca3af}}.ambiguous-warning{margin-top:1rem;padding:.75rem;background-color:#fef3c7;border-radius:.5rem}@media(prefers-color-scheme:dark){.ambiguous-warning{background-color:#78350f}}.ambiguous-text{font-size:.875rem;color:#92400e}@media(prefers-color-scheme:dark){.ambiguous-text{color:#fef08a}}.foreign-word-badge{margin-top:.5rem;padding:.5rem;background-color:#dbeafe;border-radius:.5rem}@media(prefers-color-scheme:dark){.foreign-word-badge{background-color:#1e3a8a}}.foreign-word-text{font-size:.75rem;color:#1e40af}@media(prefers-color-scheme:dark){.foreign-word-text{color:#93c5fd}}.source-badge{margin-top:1rem;padding:.25rem .5rem;border-radius:.25rem;display:inline-block}.source-badge-ai{background-color:#eff6ff}.source-badge-wiktionary{background-color:#f9fafb}.source-badge-rules{background-color:#f0fdf4}html[data-theme=dark] .source-badge-ai{background-color:#1e293b}html[data-theme=dark] .source-badge-wiktionary{background-color:#1f2937}html[data-theme=dark] .source-badge-rules{background-color:#064e3b}.source-badge-text{font-size:.7rem;color:#6b7280;margin:0}.source-badge-ai .source-badge-text{color:#1d4ed8}.source-badge-rules .source-badge-text{color:#10b981}html[data-theme=dark] .source-badge-text{color:#9ca3af}html[data-theme=dark] .source-badge-ai .source-badge-text{color:#60a5fa}html[data-theme=dark] .source-badge-rules .source-badge-text{color:#34d399}.response-time{font-size:.75rem;color:#6b7280;margin-top:1rem}@media(prefers-color-scheme:dark){.response-time{color:#9ca3af}}@keyframes fadeInDelayed{0%{opacity:0}to{opacity:1}}.quiz-container{width:100%;max-width:800px;margin:0 auto;padding:.75rem}.quiz-progress{background:#fff;border-radius:.5rem;padding:.75rem 1rem;margin-bottom:1rem;box-shadow:0 2px 4px #0000001a}.quiz-progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.quiz-progress-text{font-size:.875rem;font-weight:600;color:#1f2937}.quiz-stats-inline{font-size:.875rem;font-weight:600;display:flex;align-items:center}.quiz-stat{font-weight:600}.quiz-stat.quiz-correct{color:#16a34a}.quiz-stat.quiz-incorrect{color:#dc2626}.quiz-timer{font-size:.875rem;font-weight:600;color:#3b82f6;display:flex;align-items:center;gap:.25rem}.quiz-exit-button{background:transparent;border:none;font-size:1.5rem;color:#6b7280;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:.375rem;transition:all .2s ease;line-height:1}.quiz-exit-button:hover{background:#f3f4f6;color:#1f2937}.quiz-exit-button:active{background:#e5e7eb;transform:scale(.95)}.quiz-progress-bar{width:100%;height:8px;background:#e5e7eb;border-radius:1rem;overflow:hidden}.quiz-progress-bar-fill{height:100%;background:linear-gradient(90deg,#16a34a,#15803d);border-radius:1rem;transition:width .5s ease}.quiz-loading{text-align:center;font-size:1.25rem;color:#6b7280;padding:3rem}.quiz-start-screen{text-align:center;padding:3rem 2rem;background:#fff;border-radius:1rem;box-shadow:0 10px 25px #0000001a;animation:slideUpFade .5s ease-out}.quiz-start-icon{font-size:5rem;margin-bottom:1rem}.quiz-start-title{font-size:2rem;font-weight:700;color:#1f2937;margin-bottom:1rem}.quiz-start-description{font-size:1.125rem;color:#4b5563;margin-bottom:1rem;line-height:1.6}.quiz-start-info{font-size:1rem;color:#6b7280;margin-bottom:2rem;font-weight:500}.quiz-start-button{padding:1rem 3rem;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;border-radius:.75rem;font-size:1.125rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #3b82f64d}.quiz-start-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #3b82f666}.quiz-start-button:active{transform:translateY(0)}.quiz-completed{text-align:center;padding:1.5rem 1rem;background:#fff;border-radius:.75rem;box-shadow:0 4px 12px #0000001a;animation:slideUpFade .5s ease-out}.quiz-completed-icon{font-size:3rem;margin-bottom:.5rem}.quiz-completed-title{font-size:2rem;font-weight:700;color:#16a34a;margin-bottom:1rem}.quiz-completed-text{font-size:1rem;color:#4b5563;margin-bottom:1rem;font-weight:500}.quiz-stats-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin:1rem 0;padding:1rem;background:#f9fafb;border-radius:.5rem}.quiz-stat-item{display:flex;flex-direction:column;align-items:center;gap:.25rem}.quiz-stat-item.percentage{grid-column:1 / -1;padding-top:.75rem;border-top:2px solid #e5e7eb;margin-top:.25rem}.quiz-stat-label{font-size:.75rem;color:#6b7280;font-weight:500}.quiz-stat-value{font-size:1.25rem;font-weight:700;color:#1f2937}.quiz-stat-value.correct{color:#16a34a}.quiz-stat-value.incorrect{color:#dc2626}.quiz-stat-item.percentage .quiz-stat-value{font-size:2rem;color:#3b82f6}.quiz-results-buttons{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.quiz-restart-button,.quiz-random-button,.quiz-retry-button{padding:.75rem 2rem;background:#16a34a;color:#fff;border:none;border-radius:.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 4px 6px #0000001a}.quiz-random-button{background:#2563eb}.quiz-retry-button{background:#dc2626}.quiz-restart-button:hover,.quiz-random-button:hover,.quiz-retry-button:hover{transform:translateY(-2px);box-shadow:0 6px 8px #00000026}.quiz-restart-button:hover{background:#15803d}.quiz-random-button:hover{background:#1d4ed8}.quiz-retry-button:hover{background:#b91c1c}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.quiz-instructions{text-align:center;font-size:1.25rem;margin-bottom:2rem;color:#374151;font-weight:500}.quiz-word-card{background:#1f2937;border:2px solid #4b5563;border-radius:.75rem;padding:1.5rem 2rem;margin:1rem auto;max-width:280px;text-align:center;cursor:move;transition:all .2s;box-shadow:0 4px 6px -1px #0000004d}html[data-theme=light] .quiz-word-card{background:#fff;border:2px solid #e5e7eb;box-shadow:0 4px 6px -1px #0000001a}html[data-theme=dark] .quiz-word-card{background:#1f2937;border:2px solid #4b5563;box-shadow:0 4px 6px -1px #0000004d}.quiz-word-card:hover{box-shadow:0 10px 15px -3px #0003;transform:translateY(-2px)}html[data-theme=light] .quiz-word-card:hover{box-shadow:0 10px 15px -3px #0000001a}.quiz-word-card.dragging{opacity:.5;cursor:grabbing}.quiz-word-card.quiz-word-hidden{opacity:0;transform:scale(.8);pointer-events:none}.quiz-word-text{font-size:1.75rem;font-weight:700;color:#fff;margin-bottom:.25rem}html[data-theme=light] .quiz-word-text{color:#1f2937}html[data-theme=dark] .quiz-word-text{color:#fff}.quiz-drag-hint{font-size:.75rem;color:#9ca3af}html[data-theme=light] .quiz-drag-hint{color:#6b7280}html[data-theme=dark] .quiz-drag-hint{color:#9ca3af}.quiz-drop-zones{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin:1rem 0}.quiz-drop-zone{border:3px dashed #d1d5db;border-radius:.75rem;padding:1.5rem .75rem;text-align:center;transition:all .3s;min-height:120px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#f9fafb;position:relative}.quiz-drop-zone:before{content:"";position:absolute;inset:-50px;pointer-events:auto}.quiz-drop-zone.active{border-style:solid;border-width:3px;background:#fff;transform:scale(1.05)}.quiz-drop-zone.wobbling{animation:wobble .5s ease-in-out infinite}.quiz-drop-zone-der.wobbling{border-color:#3b82f6;border-style:solid;background:#eff6ff}.quiz-drop-zone-die.wobbling{border-color:#ef4444;border-style:solid;background:#fef2f2}.quiz-drop-zone-das.wobbling{border-color:#eab308;border-style:solid;background:#fefce8}.quiz-drop-zone-der{border-color:#93c5fd}.quiz-drop-zone-die{border-color:#fca5a5}.quiz-drop-zone-das{border-color:#fde047}.quiz-zone-icon{font-size:1.5rem;margin-bottom:.25rem;opacity:.5;font-weight:700}.quiz-drop-zone-der .quiz-zone-icon{color:#3b82f6}.quiz-drop-zone-die .quiz-zone-icon{color:#ef4444}.quiz-drop-zone-das .quiz-zone-icon{color:#eab308}.quiz-article-label{font-size:1.5rem;font-weight:700;margin-bottom:.25rem}.quiz-drop-zone-der .quiz-article-label{color:#3b82f6}.quiz-drop-zone-die .quiz-article-label{color:#ef4444}.quiz-drop-zone-das .quiz-article-label{color:#eab308}.quiz-dropped-word{font-size:1.25rem;font-weight:600;margin-top:.5rem;color:#fff}.quiz-drop-zone.correct{background:#dcfce7;border-color:#22c55e;border-style:solid;animation:successPulse .5s ease-in-out}.quiz-drop-zone.correct .quiz-dropped-word{animation:fadeOut .5s ease-in-out 1s forwards}.quiz-drop-zone.incorrect{background:#fee2e2;border-color:#ef4444;border-style:solid;animation:errorShake .5s ease-in-out}.quiz-drop-zone.incorrect .quiz-dropped-word{animation:fadeOut .5s ease-in-out 1s forwards}.quiz-feedback-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-out}.quiz-feedback-modal{background:#fff;padding:3rem 2rem;border-radius:1rem;box-shadow:0 20px 50px #0000004d;text-align:center;min-width:300px;max-width:90%;animation:scaleIn .3s ease-out;position:relative}.quiz-feedback-modal.correct{border:4px solid #22c55e}.quiz-feedback-modal.incorrect{border:4px solid #ef4444}.quiz-feedback-icon-large{font-size:5rem;margin-bottom:1rem;animation:bounce .6s ease-in-out}.quiz-feedback-modal.correct .quiz-feedback-icon-large{color:#22c55e}.quiz-feedback-modal.incorrect .quiz-feedback-icon-large{color:#ef4444}.quiz-feedback-title{font-size:2rem;font-weight:700;margin-bottom:1rem}.quiz-feedback-modal.correct .quiz-feedback-title{color:#166534}.quiz-feedback-modal.incorrect .quiz-feedback-title{color:#991b1b}.quiz-feedback-message{font-size:1.25rem;color:#4b5563}.quiz-feedback-message strong{font-size:1.5rem;font-weight:700}.quiz-feedback-modal.correct .quiz-feedback-message strong{color:#22c55e}.quiz-feedback-modal.incorrect .quiz-feedback-message strong{color:#ef4444}@keyframes scaleIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.quiz-feedback{margin-top:2rem;padding:1rem 1.5rem;border-radius:.5rem;text-align:center;font-size:1.125rem;font-weight:500;display:flex;align-items:center;justify-content:center;gap:.5rem;flex-wrap:wrap}.quiz-feedback-enter{animation:slideUpFade .3s ease-out,fadeOut .5s ease-in-out 1s forwards}.quiz-feedback.correct{background:#dcfce7;color:#166534;border:2px solid #22c55e}.quiz-feedback.incorrect{background:#fee2e2;color:#991b1b;border:2px solid #ef4444}.quiz-feedback-icon{font-size:1.5rem;font-weight:700}@keyframes successPulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes errorShake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}@keyframes wobble{0%,to{transform:rotate(0) scale(1.05)}25%{transform:rotate(-3deg) scale(1.08)}50%{transform:rotate(0) scale(1.05)}75%{transform:rotate(3deg) scale(1.08)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@media(max-width:768px){.quiz-drop-zones{grid-template-columns:1fr;gap:1rem}.quiz-word-card{max-width:250px}.quiz-word-text{font-size:1.5rem}}@media(prefers-color-scheme:dark){.quiz-progress{background:#1f2937}.quiz-progress-text{color:#f9fafb}.quiz-progress-bar{background:#374151}}.quiz-loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;min-height:300px}.quiz-loading-spinner{display:flex;gap:.75rem;margin-bottom:2rem}.quiz-loading-spinner div{width:12px;height:12px;border-radius:50%;background:#3b82f6;animation:pulse 1.4s infinite}.quiz-loading-spinner div:nth-child(2){animation-delay:.2s}.quiz-loading-spinner div:nth-child(3){animation-delay:.4s}@keyframes pulse{0%,80%,to{opacity:.3;transform:scale(1)}40%{opacity:1;transform:scale(1.2)}}.quiz-loading-text{font-size:1rem;color:#6b7280;margin:0;font-weight:500}@media(prefers-color-scheme:dark){.quiz-loading-text{color:#d1d5db}}.quiz-error-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;min-height:300px}.quiz-error-text{font-size:1.125rem;color:#dc2626;margin:0 0 2rem;text-align:center}@media(prefers-color-scheme:dark){.quiz-error-text{color:#fca5a5}}.quiz-article-buttons{display:flex;gap:1rem;justify-content:center;margin:2rem 0}.quiz-article-button{min-width:90px;min-height:60px;padding:1rem;font-size:1.25rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;transition:all .2s;text-transform:uppercase;box-shadow:0 2px 4px #0000001a}.quiz-article-button-der{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff}.quiz-article-button-die{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.quiz-article-button-das{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.quiz-article-button:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0003}.quiz-article-button:active{transform:translateY(0);box-shadow:0 2px 4px #0000001a}.quiz-mobile-answer{text-align:center;margin:1.5rem 0;font-size:1.125rem;color:#6b7280}.quiz-mobile-answer strong{font-size:1.5rem;font-weight:700}@media(prefers-color-scheme:dark){.quiz-article-button{box-shadow:0 2px 4px #0000004d}.quiz-article-button:hover{box-shadow:0 4px 8px #0006}.quiz-mobile-answer{color:#9ca3af}}@media(max-width:768px){.quiz-container{padding:1rem}.quiz-word-card{font-size:1.5rem;padding:1.5rem;min-height:80px}.quiz-drop-zones{gap:.75rem;margin:1.5rem 0}.quiz-drop-zone{min-height:80px;padding:1rem;font-size:1.125rem}.quiz-article-buttons{gap:.75rem;margin:1.5rem 0}.quiz-article-button{min-width:80px;min-height:56px;padding:.875rem;font-size:1.125rem}.quiz-controls{flex-direction:column;gap:.75rem}.quiz-controls button{width:100%}.quiz-keyboard-shortcuts{font-size:.75rem;margin:1rem 0 0}}.mode-toggle-container{position:absolute;top:1.5rem;left:1.5rem;z-index:100}.mode-toggle{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:2px solid #e5e7eb;border-radius:.5rem;padding:.5rem 1.25rem;cursor:pointer;font-size:.95rem;font-weight:600;transition:all .2s;box-shadow:0 2px 4px #0000001a;color:#1f2937;white-space:nowrap}.mode-toggle:hover{box-shadow:0 4px 6px #00000026;transform:translateY(-1px)}.mode-toggle.learn{border-color:#3b82f6;color:#3b82f6}.mode-toggle.learn:hover{background:#eff6ff}.mode-toggle.quiz{border-color:#16a34a;color:#16a34a}.mode-toggle.quiz:hover{background:#f0fdf4}html[data-theme=dark] .mode-toggle{background:#1f2937;border-color:#374151;color:#d1d5db}html[data-theme=dark] .mode-toggle.learn{border-color:#3b82f6;color:#60a5fa}html[data-theme=dark] .mode-toggle.learn:hover{background:#1e3a8a}html[data-theme=dark] .mode-toggle.quiz{border-color:#16a34a;color:#4ade80}html[data-theme=dark] .mode-toggle.quiz:hover{background:#14532d}@media(max-width:768px){.mode-toggle-container{top:1rem;left:1rem}.mode-toggle{font-size:.875rem;padding:.375rem .75rem}}.spinner-container{display:flex;justify-content:center;align-items:center;margin-top:2rem}.spinner{width:3rem;height:3rem;border-radius:9999px;border-bottom:2px solid #2563eb;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pwa-install-prompt{position:fixed;bottom:1rem;left:50%;transform:translate(-50%);background:#fff;border-radius:.75rem;box-shadow:0 10px 25px #00000026;padding:.75rem 1rem;display:flex;align-items:center;gap:1rem;z-index:1000;animation:slideUp .3s ease-out;max-width:90%}@keyframes slideUp{0%{opacity:0;transform:translate(-50%,20px)}to{opacity:1;transform:translate(-50%)}}@media(prefers-color-scheme:dark){.pwa-install-prompt{background:#1f2937;box-shadow:0 10px 25px #00000080}}.pwa-install-content{display:flex;align-items:center;gap:.5rem}.pwa-install-icon{font-size:1.25rem;line-height:1}.pwa-install-text{font-size:.875rem;font-weight:500;color:#1f2937;white-space:nowrap}@media(prefers-color-scheme:dark){.pwa-install-text{color:#fff}}.pwa-install-buttons{display:flex;gap:.5rem;align-items:center}.pwa-install-ios-hint{font-size:.8125rem;color:#1f2937;line-height:1.4;padding:.5rem .75rem;background:#f0f9ff;border-radius:.375rem;border:1px solid #bae6fd;white-space:normal;text-align:center}@media(prefers-color-scheme:dark){.pwa-install-ios-hint{color:#e0f2fe;background:#0c4a6e;border-color:#075985}}.pwa-install-button{border:none;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;padding:.5rem .75rem;min-width:44px;min-height:44px}.pwa-install-button.install{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff}.pwa-install-button.install:hover{transform:translateY(-1px);box-shadow:0 4px 8px #3b82f64d}.pwa-install-button.dismiss{background:transparent;color:#6b7280;padding:.5rem;font-size:1rem;line-height:1}.pwa-install-button.dismiss:hover{background:#f3f4f6;color:#1f2937}@media(prefers-color-scheme:dark){.pwa-install-button.dismiss{color:#9ca3af}.pwa-install-button.dismiss:hover{background:#374151;color:#fff}}@media(max-width:768px){.pwa-install-prompt{bottom:.75rem;padding:.625rem .875rem;border-radius:.5rem;flex-direction:column;align-items:stretch}.pwa-install-content{justify-content:center}.pwa-install-icon{font-size:1.125rem}.pwa-install-text{font-size:.8125rem}.pwa-install-buttons{width:100%;justify-content:space-between}.pwa-install-ios-hint{font-size:.75rem;padding:.375rem .5rem;flex:1}.pwa-install-button.install{padding:.5rem .625rem;font-size:.8125rem}}.confirm-dialog-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000;padding:1rem;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.confirm-dialog{background:#fff;border-radius:1rem;box-shadow:0 20px 25px -5px #0000001a;max-width:400px;width:100%;animation:slideUp .3s ease-out}@media(prefers-color-scheme:dark){.confirm-dialog{background:#1f2937}}.confirm-dialog-header{padding:1.5rem 1.5rem 1rem;border-bottom:1px solid #e5e7eb}@media(prefers-color-scheme:dark){.confirm-dialog-header{border-bottom-color:#374151}}.confirm-dialog-title{font-size:1.25rem;font-weight:700;color:#1f2937;margin:0}@media(prefers-color-scheme:dark){.confirm-dialog-title{color:#fff}}.confirm-dialog-body{padding:1.5rem}.confirm-dialog-message{font-size:1rem;color:#4b5563;margin:0;line-height:1.6}@media(prefers-color-scheme:dark){.confirm-dialog-message{color:#d1d5db}}.confirm-dialog-footer{padding:1rem 1.5rem 1.5rem;display:flex;gap:.75rem;justify-content:flex-end}.confirm-dialog-button{padding:.625rem 1.25rem;border-radius:.5rem;font-size:.9375rem;font-weight:600;cursor:pointer;transition:all .2s;border:none;min-width:100px}.confirm-dialog-button.cancel{background:#f3f4f6;color:#374151}.confirm-dialog-button.cancel:hover{background:#e5e7eb}.confirm-dialog-button.confirm{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.confirm-dialog-button.confirm:hover{transform:translateY(-1px);box-shadow:0 4px 8px #ef44444d}@media(prefers-color-scheme:dark){.confirm-dialog-button.cancel{background:#374151;color:#d1d5db}.confirm-dialog-button.cancel:hover{background:#4b5563}}@media(max-width:768px){.confirm-dialog{max-width:90%}.confirm-dialog-header{padding:1.25rem 1.25rem .875rem}.confirm-dialog-title{font-size:1.125rem}.confirm-dialog-body{padding:1.25rem}.confirm-dialog-message{font-size:.9375rem}.confirm-dialog-footer{padding:.875rem 1.25rem 1.25rem;flex-direction:column-reverse}.confirm-dialog-button{width:100%;min-width:auto}}.update-banner{position:fixed;top:0;left:0;right:0;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;padding:1rem;z-index:9999;box-shadow:0 4px 12px #00000026;animation:slideDownBanner .3s ease-out}@keyframes slideDownBanner{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}.update-banner-content{max-width:800px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.update-banner-text{font-weight:600;font-size:1rem;flex:1;min-width:150px}.update-banner-buttons{display:flex;gap:.75rem}.update-btn-update,.update-btn-dismiss{padding:.5rem 1rem;border:none;border-radius:.375rem;font-weight:600;cursor:pointer;transition:all .2s;font-size:.875rem}.update-btn-update{background:#fff;color:#2563eb}.update-btn-update:hover{background:#f0f9ff;transform:translateY(-1px)}.update-btn-dismiss{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3)}.update-btn-dismiss:hover{background:#ffffff4d}@media(max-width:640px){.update-banner{padding:.75rem}.update-banner-content{flex-direction:column;align-items:stretch}.update-banner-text{text-align:center;min-width:auto}.update-banner-buttons{width:100%}.update-btn-update,.update-btn-dismiss{flex:1}}.theme-toggle{position:absolute;top:1.5rem;right:1.5rem;width:2.5rem;height:2.5rem;background:transparent;border:2px solid #3b82f6;border-radius:.5rem;font-size:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;z-index:99}.theme-toggle:hover{background:#3b82f61a;transform:translateY(-1px)}.theme-toggle:active{transform:translateY(0)}html[data-theme=dark] .theme-toggle{border-color:#3b82f6;color:#fff}html[data-theme=dark] .theme-toggle:hover{background:#3b82f61a}html[data-theme=light] .theme-toggle{border-color:#1f2937;color:#1f2937}html[data-theme=light] .theme-toggle:hover{background:#1f29370d}@media(max-width:768px){.theme-toggle{top:1rem;right:1rem;width:2.25rem;height:2.25rem;font-size:1.125rem}}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;--bg-primary: #111827;--bg-secondary: #1f2937;--bg-tertiary: #374151;--text-primary: #ffffff;--text-secondary: #d1d5db;--text-tertiary: #9ca3af;--border-color: #374151;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html[data-theme=light]{--bg-primary: #ffffff;--bg-secondary: #f9fafb;--bg-tertiary: #f3f4f6;--text-primary: #1f2937;--text-secondary: #374151;--text-tertiary: #6b7280;--border-color: #e5e7eb;color-scheme:light}html[data-theme=dark]{color-scheme:dark}*{box-sizing:border-box;margin:0;padding:0}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh;background-color:var(--bg-primary);color:var(--text-primary)}#root{width:100%;margin:0 auto}.app-container{min-height:100vh;background-color:var(--bg-primary);padding:3rem 1rem;position:relative}@media(max-width:768px){.app-container{padding:1rem}}.app-content{max-width:56rem;margin:0 auto}.app-header{text-align:center;margin-bottom:3rem;position:relative}@media(max-width:768px){.app-header{margin-bottom:1rem}}.app-title{font-size:3rem;font-weight:700;color:var(--text-primary);margin-bottom:1rem;cursor:default;display:inline-block;transition:transform .3s ease}@media(max-width:1024px)and (min-width:769px){.app-title{font-size:2.25rem}}@media(max-width:768px){.app-title{font-size:1.75rem}}@keyframes santaWave{0%,to{transform:rotate(0)}25%{transform:rotate(-15deg)}75%{transform:rotate(15deg)}}.app-title:hover{animation:wobble .5s ease-in-out}@keyframes wobble{0%,to{transform:rotate(0)}15%{transform:rotate(-5deg)}30%{transform:rotate(5deg)}45%{transform:rotate(-3deg)}60%{transform:rotate(3deg)}75%{transform:rotate(-1deg)}90%{transform:rotate(1deg)}}.app-subtitle{font-size:1.125rem;color:var(--text-secondary)}@media(max-width:768px){.app-subtitle{font-size:1rem}}.quiz-stats{display:flex;justify-content:center;gap:2rem;margin-top:1rem}@media(max-width:768px){.quiz-stats{gap:1rem;margin-top:.75rem}}.quiz-stat{font-size:1rem;font-weight:600;padding:.5rem 1rem;border-radius:.5rem}.quiz-correct{background:#dcfce7;color:#166534}.quiz-incorrect{background:#fee2e2;color:#991b1b}.quiz-no-history{text-align:center;padding:3rem 2rem;background:var(--bg-secondary);border-radius:1rem;margin:2rem auto;max-width:42rem;box-shadow:0 10px 25px #0000001a;animation:slideUpFade .5s ease-out}.quiz-no-history-icon{font-size:5rem;margin-bottom:1rem}.quiz-no-history-title{font-size:2rem;font-weight:700;color:var(--text-primary);margin-bottom:1rem}.quiz-no-history-description{font-size:1.125rem;color:var(--text-secondary);margin-bottom:2rem;line-height:1.6}.quiz-no-history-progress{margin-bottom:2rem}.quiz-no-history-count{font-size:1.25rem;font-weight:600;color:#3b82f6;margin-bottom:1rem}.quiz-no-history-bar{width:100%;max-width:300px;height:12px;background:var(--bg-tertiary);border-radius:1rem;margin:0 auto;overflow:hidden}.quiz-no-history-bar-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#2563eb);border-radius:1rem;transition:width .5s ease}.quiz-no-history-button{padding:.875rem 2.5rem;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;border-radius:.75rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #3b82f64d}.quiz-no-history-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #3b82f666}.quiz-no-history-button:active{transform:translateY(0)}@keyframes slideUpFade{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media(prefers-color-scheme:dark){.quiz-no-history{background:#1f2937}.quiz-no-history-title{color:#f9fafb}.quiz-no-history-description{color:#d1d5db}.quiz-no-history-bar{background:#374151}}@media(prefers-color-scheme:dark){.app-subtitle{color:#9ca3af}}.history-section{position:relative;width:100%;max-width:42rem;margin:1.5rem auto 0;padding:1rem;background-color:#f9fafb;border-radius:.5rem}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.history-title{font-size:.875rem;font-weight:600;color:#4b5563;margin:0}.history-clear-button{position:relative;display:flex;align-items:center;gap:.5rem;padding:.5rem .875rem;margin-top:.75rem;margin-bottom:.75rem;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;border-radius:2rem;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 12px #ef44444d}.history-clear-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #ef444466;background:linear-gradient(135deg,#dc2626,#b91c1c)}.history-clear-button:active{transform:translateY(0);box-shadow:0 2px 8px #ef44444d}.trash-icon{font-size:1.125rem;line-height:1}.clear-text{font-size:.875rem;letter-spacing:.025em}@media(prefers-color-scheme:dark){.history-title{color:#9ca3af}.history-clear-button{background:linear-gradient(135deg,#dc2626,#b91c1c);box-shadow:0 4px 12px #dc262666}.history-clear-button:hover{background:linear-gradient(135deg,#b91c1c,#991b1b);box-shadow:0 6px 20px #dc262680}}.history-more-indicator{font-weight:400;color:#6b7280;font-size:.8rem}@media(prefers-color-scheme:dark){.history-more-indicator{color:#9ca3af}}.history-buttons-wrapper{position:relative}.history-scroll-indicator{position:absolute;bottom:8px;right:8px;width:32px;height:32px;background:#3b82f6e6;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;pointer-events:none;animation:bounce 2s infinite;box-shadow:0 2px 8px #0003;z-index:10}html[data-theme=light] .history-scroll-indicator{background:#3b82f6e6}html[data-theme=dark] .history-scroll-indicator{background:#2563ebe6}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}.history-buttons{display:flex;flex-wrap:wrap;gap:.5rem;max-height:250px;overflow-y:auto;padding-right:.5rem;scrollbar-width:thin;scrollbar-color:#9ca3af #e5e7eb;overflow-y:scroll}html[data-theme=dark] .history-buttons{scrollbar-color:#6b7280 #374151}.history-buttons::-webkit-scrollbar{width:10px;display:block}.history-buttons::-webkit-scrollbar-track{background:#e5e7eb;border-radius:4px}html[data-theme=dark] .history-buttons::-webkit-scrollbar-track{background:#374151}.history-buttons::-webkit-scrollbar-thumb{background:#9ca3af;border-radius:4px;border:2px solid #e5e7eb}html[data-theme=dark] .history-buttons::-webkit-scrollbar-thumb{background:#6b7280;border-color:#374151}.history-buttons::-webkit-scrollbar-thumb:hover{background:#6b7280}html[data-theme=dark] .history-buttons::-webkit-scrollbar-thumb:hover{background:#9ca3af}.history-button{padding:.5rem .75rem;background-color:#1f2937;border:1px solid #4b5563;border-radius:.5rem;transition:background-color .2s,opacity .2s;display:flex;align-items:center;gap:.5rem;cursor:pointer}html[data-theme=light] .history-button{background-color:#fff;border:1px solid #d1d5db}html[data-theme=light] .history-button:hover{background-color:#f9fafb}html[data-theme=dark] .history-button{background-color:#1f2937;border:1px solid #4b5563}html[data-theme=dark] .history-button:hover,.history-button:hover{background-color:#374151}.history-button:disabled{opacity:.5;cursor:not-allowed}html[data-theme=light] .history-button:disabled:hover{background-color:#fff}html[data-theme=dark] .history-button:disabled:hover{background-color:#1f2937}.history-number{color:#9ca3af;font-weight:600;font-size:.875rem;min-width:1.5rem}html[data-theme=light] .history-number{color:#6b7280}html[data-theme=dark] .history-number{color:#9ca3af}.history-word{color:#e5e7eb}html[data-theme=light] .history-word{color:#1f2937}html[data-theme=dark] .history-word{color:#e5e7eb}.history-count{padding:.125rem .5rem;background-color:#1e3a8a;color:#93c5fd;font-size:.75rem;border-radius:9999px;font-weight:600}html[data-theme=light] .history-count{background-color:#dbeafe;color:#1e40af}html[data-theme=dark] .history-count{background-color:#1e3a8a;color:#93c5fd}.error-message{width:100%;max-width:42rem;margin:2rem auto 0;padding:1rem;background-color:#fee2e2;border-radius:.5rem;color:#991b1b}html[data-theme=light] .error-message{background-color:#fee2e2;color:#991b1b}html[data-theme=dark] .error-message{background-color:#7f1d1d;color:#fecaca}.quick-quiz-button{margin-top:1rem;padding:.75rem 1.5rem;background-color:#3b82f6;color:#fff;border-radius:.5rem;border:none;cursor:pointer;font-weight:600;font-size:1rem;transition:all .2s ease;box-shadow:0 2px 4px #3b82f633}.quick-quiz-button:hover{background-color:#2563eb;transform:translateY(-1px);box-shadow:0 4px 8px #3b82f64d}.quick-quiz-button:active{transform:translateY(0);box-shadow:0 2px 4px #3b82f633}.quiz-setup-modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.quiz-setup-modal{background:#fff;border-radius:1rem;box-shadow:0 20px 25px -5px #0000001a;max-width:800px;width:100%;animation:slideUp .3s ease-out}@media(max-width:768px){.quiz-setup-modal{max-width:100%;border-radius:.5rem}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media(prefers-color-scheme:dark){.quiz-setup-modal{background:#1f2937}}.quiz-setup-header{padding:2rem;border-bottom:1px solid #e5e7eb;text-align:center;position:relative}.modal-close-button{position:absolute;top:1.5rem;right:1.5rem;background:transparent;border:none;font-size:2rem;color:#6b7280;cursor:pointer;padding:.25rem .5rem;line-height:1;transition:all .2s ease;border-radius:.375rem;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem}.modal-close-button:hover{background-color:#f3f4f6;color:#1f2937}.modal-close-button:active{transform:scale(.95)}html[data-theme=dark] .modal-close-button{color:#9ca3af}html[data-theme=dark] .modal-close-button:hover{background-color:#374151;color:#fff}@media(max-width:768px){.quiz-setup-header{padding:1.25rem}.modal-close-button{top:1rem;right:1rem;font-size:1.75rem;width:2.25rem;height:2.25rem}}@media(prefers-color-scheme:dark){.quiz-setup-header{border-bottom-color:#374151}}.quiz-setup-header h2{font-size:1.875rem;font-weight:700;color:#1f2937;margin:0}@media(max-width:768px){.quiz-setup-header h2{font-size:1.5rem}}@media(prefers-color-scheme:dark){.quiz-setup-header h2{color:#fff}}.quiz-setup-content{padding:2rem}@media(max-width:768px){.quiz-setup-content{padding:1.25rem}}.quiz-setup-options{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-bottom:2rem}@media(max-width:600px){.quiz-setup-options{grid-template-columns:1fr}}.quiz-option{padding:1.5rem;border:2px solid #e5e7eb;border-radius:.75rem;transition:all .3s ease;cursor:pointer}@media(prefers-color-scheme:dark){.quiz-option{border-color:#374151}}.quiz-option:hover{border-color:#3b82f6;background:#f0f9ff;transform:translateY(-2px)}@media(prefers-color-scheme:dark){.quiz-option:hover{background:#3b82f61a}}.quiz-option h3{font-size:1.25rem;font-weight:700;color:#1f2937;margin:0 0 .5rem}@media(prefers-color-scheme:dark){.quiz-option h3{color:#fff}}.quiz-option p{color:#6b7280;margin:0 0 1rem;font-size:.875rem}@media(prefers-color-scheme:dark){.quiz-option p{color:#d1d5db}}.quiz-setup-form{display:flex;flex-direction:column;gap:1rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:600;color:#1f2937;font-size:.875rem}@media(prefers-color-scheme:dark){.form-group label{color:#e5e7eb}}.form-group select{padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.375rem;background:#fff;color:#1f2937;font-size:.875rem;cursor:pointer;transition:border-color .2s ease}@media(prefers-color-scheme:dark){.form-group select{background:#111827;border-color:#4b5563;color:#fff}}.form-group select:hover{border-color:#3b82f6}.form-group select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.quiz-option-button{width:100%;padding:.75rem 1rem;background:#3b82f6;color:#fff;border:none;border-radius:.5rem;font-weight:600;cursor:pointer;transition:all .2s ease;margin-top:.5rem}.quiz-option-button:hover{background:#2563eb;transform:translateY(-1px)}.quiz-option-button:active{transform:translateY(0)}.version-info{text-align:right;padding:1rem 1.5rem;margin-top:2rem;font-size:.75rem;color:#9ca3af;opacity:.6;-webkit-user-select:none;user-select:none}html[data-theme=light] .version-info{color:#6b7280}html[data-theme=dark] .version-info{color:#9ca3af}@media(max-width:768px){.version-info{font-size:.65rem;padding:.75rem 1rem;margin-top:1.5rem}}.history-edit-button{padding:.4rem .8rem;background:#3b82f6;color:#fff;border:none;border-radius:.5rem;font-size:.8rem;cursor:pointer;transition:all .2s;font-weight:500}.history-edit-button:hover:not(:disabled){background:#2563eb;transform:translateY(-1px)}.history-edit-button:disabled{opacity:.5;cursor:not-allowed}html[data-theme=dark] .history-edit-button{background:#2563eb}html[data-theme=dark] .history-edit-button:hover:not(:disabled){background:#1d4ed8}.history-button.edit-mode{background:#fef2f2;border-color:#ef4444;cursor:pointer}html[data-theme=dark] .history-button.edit-mode{background:#7f1d1d;border-color:#dc2626}.history-button.edit-mode:hover{background:#fee2e2;border-color:#dc2626}html[data-theme=dark] .history-button.edit-mode:hover{background:#991b1b;border-color:#ef4444}.delete-icon-left{color:#dc2626;font-size:1.1rem;margin-right:.25rem;animation:slideInLeft .3s ease-out}html[data-theme=dark] .delete-icon-left{color:#f87171}@keyframes slideInLeft{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}.history-button{position:relative}.history-count{transition:opacity .2s ease;display:inline-block}.history-delete-hover{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:#dc2626;font-size:1.1rem;opacity:0;transition:opacity .2s ease;pointer-events:none;z-index:1}html[data-theme=dark] .history-delete-hover{color:#f87171}@media(min-width:769px){.history-button:hover .history-count{opacity:0}.history-button:hover .history-delete-hover{opacity:1;pointer-events:auto}}.history-button.deleting{animation:slideOutRight .3s ease-out forwards}@keyframes slideOutRight{to{opacity:0;transform:translate(100%)}}
