button.modal-icon-close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;line-height:1}button.modal-icon-close>.modal-close-icon{display:block;width:var(--modal-close-icon-size, 20px);height:var(--modal-close-icon-size, 20px);flex:none;margin:0;pointer-events:none}.flashcards-deck-close-btn{--modal-close-icon-size: 24px}.vocabulary-image{position:relative;display:block;background:transparent}.vocabulary-image:not(.is-loaded){background:transparent}.vocabulary-image img{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .28s ease}.vocabulary-image.is-loaded img{opacity:1}.vocabulary-image-spinner{position:absolute;top:calc(50% - 15px);left:calc(50% - 15px);width:30px;height:30px;box-sizing:border-box;border:3px solid color-mix(in srgb,var(--accent-primary) 18%,transparent);border-top-color:var(--accent-primary);border-radius:50%;animation:vocabularyImageSpin .8s linear infinite}@keyframes vocabularyImageSpin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.vocabulary-image img{transition:none}.vocabulary-image-spinner{animation:none}}.flashcards-deck-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#0000004d;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:10000;display:flex;flex-direction:column;opacity:0;pointer-events:none;transition:opacity .3s ease}.flashcards-deck-overlay.active{opacity:1;pointer-events:all}.flashcards-deck-top-bar{width:100%;padding:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;z-index:10}.flashcards-deck-top-spacer{width:44px;height:44px;flex:0 0 auto}.flashcards-deck-preferences{display:inline-flex;align-items:center;gap:8px;min-width:0}.flashcards-deck-toggle{width:36px;height:36px;border:1.5px solid rgba(255,255,255,.55);border-radius:50%;padding:0;background:#ffffff1a;color:#fff;font-size:13px;font-weight:800;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .12s ease}.flashcards-deck-toggle.is-on{background:var(--accent-primary);color:#fff;border-color:var(--accent-primary);box-shadow:0 6px 14px color-mix(in srgb,var(--accent-primary) 32%,transparent)}.flashcards-deck-toggle:active{transform:scale(.95)}.flashcards-deck-toggle:disabled{cursor:default;opacity:.58;filter:grayscale(.25);transform:scale(.94);box-shadow:none}.flashcards-deck-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.flashcards-deck-toggle .flashcards-autoplay-toggle-icon{width:25px;height:25px}.flashcards-autoplay-play-mark{fill:currentColor;stroke:none}.flashcards-deck-close-btn{background:#fff3;border:none;color:#fff;font-size:28px;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.flashcards-deck-card-container{flex:1;display:flex;align-items:center;justify-content:center;perspective:1200px;padding:0 20px;position:relative}.flashcards-deck-fly-wrapper{width:100%;max-width:340px;height:65vh;max-height:450px;will-change:transform;transition:none;transform-style:preserve-3d}.flashcards-deck-fly-wrapper.is-hidden{visibility:hidden;pointer-events:none}.flashcards-deck-fly-wrapper.animate-in{animation:flashcardDeckEnter .42s cubic-bezier(.22,.9,.3,1) both}@keyframes flashcardDeckEnter{0%{transform:translateY(14px) scale(.96)}to{transform:translateY(0) scale(1)}}.flashcards-deck-flashcard{width:100%;height:100%;position:relative;transform-style:preserve-3d;cursor:grab;touch-action:none}.flashcards-deck-flashcard:active{cursor:grabbing}.flashcards-deck-card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:20px;box-shadow:0 15px 35px #00000026;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;overflow:hidden}.flashcards-deck-card-front{transform:rotateY(0) translateZ(1px)}.flashcards-deck-card-back{transform:rotateY(180deg) translateZ(1px);background-color:#e2e8f0}.flashcards-deck-card-face.is-word-side{background:#fff}.flashcards-deck-card-face.is-definition-side{background:#e2e8f0}.flashcards-deck-explosion{position:absolute;top:50%;left:50%;width:800px;height:800px;border-radius:50%;background-color:transparent;transform:translate(-50%,-50%) scale(0);transition:transform .4s cubic-bezier(.4,0,.2,1);z-index:1;pointer-events:none}.flashcards-deck-flashcard.is-correct .flashcards-deck-explosion{background-color:#22c55e;transform:translate(-50%,-50%) scale(1)}.flashcards-deck-flashcard.is-incorrect .flashcards-deck-explosion{background-color:#ef4444;transform:translate(-50%,-50%) scale(1)}.flashcards-deck-card-content{position:relative;z-index:2;width:100%;transition:color .2s ease}.flashcards-deck-audio-btn{position:absolute;inset:auto auto 14px 50%;transform:translate(-50%);z-index:4;width:58px;height:58px;border:1.5px solid rgba(49,27,146,.2);border-radius:50%;color:var(--accent-primary);background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:none}.flashcards-deck-audio-btn.is-playing{background:#fff;border-color:var(--accent-primary)}.flashcards-deck-audio-btn.is-muted{color:#64748b;border-color:#64748b61;background:#f8fafc}.flashcards-deck-audio-btn .flashcards-audio-muted-slash{stroke-width:1.9}.flashcards-deck-audio-btn:disabled{opacity:.92;cursor:not-allowed}.flashcards-deck-audio-btn:hover:not(:disabled){border-color:var(--accent-primary);background:#fff}.flashcards-deck-audio-btn svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}.flashcards-audio-activity{width:40px;height:24px;position:relative;display:inline-flex;align-items:center;justify-content:center}.flashcards-audio-activity .wave{position:absolute;left:3px;right:3px;top:50%;transform:translateY(-50%);height:18px;display:inline-flex;align-items:center;justify-content:center;gap:2px}.flashcards-audio-activity .wave span{width:4px;height:2px;border-radius:999px;background:var(--accent-primary);animation:flashcardsAudioWave .9s ease-in-out infinite}.flashcards-audio-activity .wave span:nth-child(2){animation-delay:.12s}.flashcards-audio-activity .wave span:nth-child(3){animation-delay:.24s}.flashcards-audio-activity .wave span:nth-child(4){animation-delay:.36s}@keyframes flashcardsAudioWave{0%,to{height:2px}50%{height:16px}}.flashcards-deck-flashcard.skip-color-transition .flashcards-deck-explosion{transition:none!important}.flashcards-deck-card-front h2,.flashcards-deck-card-face.is-word-side h2{font-size:36px;font-weight:700;color:#1f2937;margin:0;transition:color .2s ease}.flashcards-deck-card-front .flashcards-deck-card-content,.flashcards-word-content{width:100%}.flashcards-deck-card-front .flashcards-deck-card-content.no-front-example,.flashcards-word-content.no-front-example{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%}.flashcards-deck-card-front .flashcards-deck-card-content.has-front-example,.flashcards-word-content.has-front-example{display:flex;flex-direction:column;align-items:center;justify-content:center}.flashcards-front-image{display:block;width:min(220px,100%);max-height:210px;aspect-ratio:1;border-radius:16px;margin:0 auto 16px;overflow:hidden;background:transparent}.flashcards-word-content.has-front-example .flashcards-front-image{width:min(190px,100%);max-height:170px}.flashcards-front-example{margin-top:10px;font-size:16px;line-height:1.45;color:#374151;max-width:260px}.flashcards-front-example-highlight{color:var(--accent-primary);font-weight:700}.flashcards-deck-card-back h3,.flashcards-definition-content h3{font-size:28px;color:var(--accent-primary);margin-bottom:16px;transition:color .2s ease}.flashcards-translation-slot{width:100%;min-height:34px;display:flex;align-items:center;justify-content:center}.flashcards-translation-slot.is-loading{color:transparent}.flashcards-deck-card-back p,.flashcards-definition-text{font-size:18px;color:#4b5563;line-height:1.5;transition:color .2s ease}.flashcards-shimmer-loader{display:inline-block;width:min(70%,240px);height:34px;border-radius:8px;margin:0;background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6,#e5e7eb 75%);background-size:200% 100%;animation:flashcardsShimmer 1.1s linear infinite}@keyframes flashcardsShimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.flashcards-deck-flashcard.is-correct .flashcards-deck-card-content *,.flashcards-deck-flashcard.is-incorrect .flashcards-deck-card-content *{color:#fff!important}.flashcards-deck-controls{padding:30px 20px 50px;display:flex;justify-content:center;align-items:center;gap:24px;z-index:10}.flashcards-deck-action-btn{width:64px;height:64px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 10px #00000026;transition:transform .1s,filter .2s ease}.flashcards-deck-action-btn:active{transform:scale(.9)}.flashcards-deck-action-btn:disabled{filter:grayscale(.7);opacity:.5;cursor:not-allowed}.flashcards-deck-btn-cross{background-color:#ef4444}.flashcards-deck-btn-tick{background-color:#22c55e}.flashcards-deck-btn-nav{background-color:var(--accent-primary)}.flashcards-deck-btn-nav:hover:not(:disabled){filter:brightness(1.04)}.flashcards-deck-btn-delete{background:color-mix(in srgb,var(--danger-color, #ef4444) 12%,white);border:2px solid var(--danger-color, #ef4444);color:var(--danger-color, #ef4444);box-shadow:0 4px 10px #0000001f}.flashcards-deck-btn-delete:hover:not(:disabled){background:color-mix(in srgb,var(--danger-color, #ef4444) 18%,white);filter:none}.flashcards-deck-btn-delete svg{stroke:currentColor}.flashcards-deck-btn-plus{background:color-mix(in srgb,var(--accent-primary) 12%,white);border:2px solid var(--accent-primary);color:var(--accent-primary);box-shadow:0 4px 10px #0000001f;position:relative}.flashcards-deck-btn-plus .wordlist-icon{position:absolute;width:28px;height:28px;opacity:0;transform:scale(.82);transition:opacity .22s ease,transform .22s ease}.flashcards-deck-btn-plus .wordlist-icon path,.flashcards-deck-btn-plus .wordlist-icon circle{stroke:currentColor;stroke-width:2.2}.flashcards-deck-btn-plus.state-plus .plus-icon,.flashcards-deck-btn-plus.state-loading .loading-icon,.flashcards-deck-btn-plus.state-added .tick-icon,.flashcards-deck-btn-plus.state-error .error-icon{opacity:1;transform:scale(1)}.flashcards-deck-btn-plus.state-added{color:var(--accent-primary);border-color:var(--accent-primary);background:color-mix(in srgb,var(--accent-primary) 12%,white)}.flashcards-deck-btn-plus.state-loading .loading-icon{animation:tooltip-wordlist-spin 1s linear infinite}.flashcards-deck-btn-plus.state-loading .loading-icon circle{stroke-dasharray:44 100;stroke-dashoffset:8}@keyframes tooltip-wordlist-spin{0%{transform:scale(1) rotate(0)}to{transform:scale(1) rotate(360deg)}}.flashcards-deck-action-btn svg{width:32px;height:32px;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;fill:none}.flashcards-deck-action-btn.flashcards-deck-btn-delete svg{stroke:currentColor}.flashcards-deck-flashcard.is-crumbling{cursor:default}.flashcards-deck-flashcard.is-crumbling .flashcards-deck-card-face{animation:flashcardsCardDustFade .42s ease-out .22s forwards}.flashcards-crumble-layer{position:absolute;inset:0;z-index:8;border-radius:20px;overflow:visible;pointer-events:none;transform:translateZ(8px)}.flashcards-crumble-piece{position:absolute;display:block;border-radius:2px;box-shadow:inset 0 0 0 .5px #1118270d;opacity:0;transform:translateZ(0) rotate(0) scale(1);animation:flashcardsCrumbleFall var(--crumble-duration) cubic-bezier(.28,.02,.22,1) var(--crumble-delay) forwards;will-change:transform,opacity}.flashcards-crumble-piece:after{content:"";position:absolute;inset:18%;border-radius:inherit;background:#ffffff57;opacity:.55}@keyframes flashcardsCardDustFade{to{opacity:0;filter:blur(8px)}}@keyframes flashcardsCrumbleFall{0%{opacity:1;transform:translateZ(0) rotate(0) scale(1)}26%{opacity:1;transform:translate3d(calc(var(--crumble-drift-x) * .16),10px,0) rotate(calc(var(--crumble-rotate) * .12)) scale(.98)}to{opacity:0;transform:translate3d(var(--crumble-drift-x),var(--crumble-fall-y),0) rotate(var(--crumble-rotate)) scale(.24)}}.flashcards-delete-modal-overlay{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:24px;background:#0f172a5c;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.flashcards-delete-modal{width:min(92vw,360px);border-radius:14px;background:#fff;color:#111827;padding:22px;box-shadow:0 24px 70px #0f172a47;transform-origin:center;animation:flashcardsDeleteModalEnter .18s ease-out both}.flashcards-delete-modal h3{margin:0 0 10px;font-size:1.25rem;line-height:1.2}.flashcards-delete-modal p{margin:0;color:#4b5563;line-height:1.45;font-size:.98rem}.flashcards-delete-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.flashcards-delete-modal-btn{border:none;border-radius:10px;padding:10px 14px;font-size:.95rem;font-weight:800;cursor:pointer}.flashcards-delete-modal-btn.secondary{color:#111827;background:#e5e7eb}.flashcards-delete-modal-btn.danger{color:#fff;background:#dc2626}@keyframes flashcardsDeleteModalEnter{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.flashcards-deck-prompt{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:20px;z-index:20;color:#fff;background:#00000073;border-radius:16px}.flashcards-deck-prompt h3{margin:0;font-size:1.6rem}.flashcards-deck-prompt p{margin:0;font-size:1rem;opacity:.9}.flashcards-deck-prompt-btn{background:#22c55e;color:#fff;border:none;border-radius:10px;padding:12px 20px;font-size:1rem;font-weight:700;cursor:pointer}.flashcards-deck-prompt-btn.secondary{background:#ffffff38}.flashcards-deck-inline-actions{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;gap:10px;z-index:25}.flashcards-deck-inline-actions .flashcards-deck-prompt-btn{padding:14px 24px;font-size:1.05rem;font-weight:800;border-radius:12px}.study-modal-overlay *,.study-modal-overlay *:before,.study-modal-overlay *:after{box-sizing:border-box}.study-modal-overlay{position:fixed;inset:0;z-index:2100;display:flex;align-items:flex-end;justify-content:center;background:#0009;opacity:0;pointer-events:none;transition:opacity .3s ease}.study-modal-overlay.is-open{opacity:1;pointer-events:auto}.study-modal-shell{width:100%;height:calc(100% - 12px);display:flex;flex-direction:column;overflow:hidden;background:var(--bg-secondary);border-top-left-radius:18px;border-top-right-radius:18px;box-shadow:0 -10px 40px #0003;transform:translateY(100%);opacity:0;transition:transform .4s cubic-bezier(.32,.72,0,1),opacity .3s ease}.study-modal-overlay.is-open .study-modal-shell{transform:translateY(0);opacity:1}@media(min-width:768px){.study-modal-overlay{align-items:flex-end;padding:0 24px}.study-modal-shell{width:min(calc(100vw - 48px),960px);height:95vh;height:95dvh;max-height:95vh;max-height:95dvh;border-radius:22px 22px 0 0;transform:translateY(100%);box-shadow:0 24px 70px #00000047}.study-modal-overlay.is-open .study-modal-shell{transform:translateY(0)}}@media(min-width:768px)and (max-width:1199px){.study-modal-shell{width:min(calc(100vw - 140px),680px)}}.study-modal-header{flex-shrink:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:20px 30px;border-bottom:1px solid var(--border-color);background:var(--bg-secondary);z-index:1}.study-header-left,.study-header-center{color:var(--accent-primary);font-weight:700}.study-header-left{font-size:1.5rem}.study-header-center{font-size:1.25rem;text-align:center}.study-header-right{display:flex;align-items:center;justify-self:end;gap:14px}.study-session-progress{width:min(260px,36vw);min-width:170px;display:flex;flex-direction:column;gap:0}.study-session-progress-track{--progress-percent: 0%;position:relative;width:100%;height:8px;border-radius:999px;background:color-mix(in srgb,var(--border-color) 82%,transparent);overflow:visible}.study-session-progress-value{position:absolute;left:clamp(22px,var(--progress-percent),calc(100% - 22px));top:-18px;transform:translate(-50%);color:var(--text-secondary);font-size:.74rem;font-weight:700;line-height:1;white-space:nowrap}.study-session-progress-fill{height:100%;border-radius:inherit;background:var(--accent-primary);width:0;transition:width .28s ease}.study-close{border:none;background:transparent;color:#aaa;cursor:pointer;font-size:2rem;line-height:1;padding:0}.study-close:hover{color:var(--text-primary)}.study-modal-body-scroll{flex:1;overflow-y:auto;padding:30px;overflow-x:hidden}.study-options-container{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;padding:20px 0}.study-option-box,.study-option-btn,.study-check-btn,.study-next-btn,.study-quit-cancel,.study-quit-confirm{font-family:var(--font-main);-webkit-tap-highlight-color:transparent}.study-option-box{width:100px;height:100px;border-radius:12px;border:2px solid var(--accent-primary);background:var(--bg-lightest);color:var(--accent-primary);font-size:24px;font-weight:700;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #0000000d}.study-option-box:hover{background:var(--accent-primary);color:var(--text-on-accent);transform:translateY(-2px)}.study-option-box:disabled,.study-option-box.is-disabled{opacity:.42;cursor:not-allowed;background:var(--bg-secondary);color:var(--text-secondary);border-color:var(--border-color);box-shadow:none}.study-option-box:disabled:hover,.study-option-box.is-disabled:hover{background:var(--bg-secondary);color:var(--text-secondary);transform:none}.study-loader{opacity:0;transition:opacity .5s ease-in-out}.study-loader.is-visible{opacity:1}.study-loader-graphic{width:140px;height:120px;margin:40px auto 20px;perspective:600px}.study-loader-graphic svg{width:100%;height:100%;overflow:visible;transform:rotateX(30deg)}.loader-card{fill:#fff;stroke:var(--accent-primary);stroke-width:1.5;rx:4;filter:drop-shadow(0 3px 0 color-mix(in srgb,var(--accent-primary) 20%,transparent))}.loader-card-soft{fill:color-mix(in srgb,var(--accent-primary) 12%,white)}.loader-card-decor{stroke:var(--accent-primary);stroke-width:2;stroke-linecap:round}.loader-card-decor-soft{opacity:.6}.stack-group{animation:study-stack-slide 1s ease-in-out infinite}.flier-left{opacity:0;animation:study-fly-left 2s cubic-bezier(.1,.8,.2,1) infinite}.flier-right{opacity:0;animation:study-fly-right 2s cubic-bezier(.1,.8,.2,1) infinite 1s}.card-fade{animation:study-card-fade 1s linear infinite}.study-loader-text{color:var(--accent-primary);text-align:center;font-size:1.2rem;font-weight:600;animation:study-text-pulse 2s ease-in-out infinite}.study-match-stage{display:flex;flex-direction:column;gap:18px;width:100%}.study-match-prompt{color:var(--text-secondary);text-align:center;font-size:1rem;line-height:1.5}.study-match-board{display:flex;flex-direction:column;gap:14px;align-items:stretch}.study-review-grid{max-width:1120px;width:100%;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:28px}.study-match-row{display:grid;gap:14px}.study-match-board.is-definition-mode .study-match-row{grid-template-columns:minmax(0,250px) minmax(0,1fr)}.study-match-board.is-translation-mode .study-match-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.study-match-card{border-radius:10px;border:2px solid color-mix(in srgb,var(--border-color) 86%,transparent);background:var(--bg-secondary);color:var(--text-primary);box-shadow:0 8px 18px #0000000d;cursor:pointer;transition:border-color .18s ease,background-color .18s ease,box-shadow .22s ease,transform .22s ease,min-height .35s ease,padding .35s ease;outline:none;position:relative;z-index:1;-webkit-tap-highlight-color:transparent}@media(hover:hover){.study-match-card:hover{border-color:color-mix(in srgb,var(--accent-primary) 34%,var(--border-color));transform:scale(1.015);z-index:2}}.study-match-card.is-selected{border-color:var(--accent-primary);background:color-mix(in srgb,var(--accent-primary) 10%,var(--bg-secondary));box-shadow:0 10px 20px color-mix(in srgb,var(--accent-primary) 14%,transparent);transform:scale(1.04);z-index:3}.study-match-card.is-matched{background:color-mix(in srgb,#2ecc71 14%,var(--bg-secondary))!important;border-color:#2f9246!important;color:color-mix(in srgb,#2f9246 86%,var(--text-primary));box-shadow:0 10px 18px #2f92461f;z-index:1}.study-match-card.is-mistake{border-color:var(--accent-primary);background:color-mix(in srgb,var(--accent-primary) 12%,var(--bg-secondary));animation:study-match-shake .4s}.study-match-word-card{opacity:0;transform:translateY(24px) scale(.97);display:flex;align-items:center;justify-content:center;text-align:center;align-self:stretch;height:100%;transition:opacity .42s ease var(--card-delay),transform .56s cubic-bezier(.18,.9,.22,1.08) var(--card-delay),border-color .2s ease,background-color .2s ease,box-shadow .25s ease,min-height .35s ease,padding .35s ease}.study-match-word-card.is-visible{opacity:1;transform:translateY(0) scale(1)}.study-flashcard-container{height:260px;perspective:1000px;opacity:0;transform:translateY(34px);transition:opacity .42s ease var(--card-delay),transform .52s cubic-bezier(.18,.9,.22,1.08) var(--card-delay);will-change:transform,opacity}.study-flashcard-container.is-visible{opacity:1;transform:translateY(0)}.study-flashcard{background-color:transparent;position:relative;width:100%;height:100%;cursor:pointer;display:flex;flex-direction:column;perspective:1000px}.study-flashcard.is-locked{cursor:default}.study-flashcard-inner{position:relative;width:100%;height:100%;transition:transform .82s cubic-bezier(.34,1.56,.64,1),box-shadow .3s ease;transform-style:preserve-3d;transform-origin:center center;box-shadow:0 12px 28px #0000001f;border-radius:15px;will-change:transform}.study-flashcard.is-flipped .study-flashcard-inner{transform:rotateY(180deg)}.study-flashcard-front,.study-flashcard-back{position:absolute;inset:0;width:100%;height:100%;border-radius:15px;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px 16px;transform-style:preserve-3d}.study-flashcard-front{background:var(--accent-primary);border:2px solid var(--accent-primary);color:var(--text-on-accent);position:relative;font-weight:800;text-shadow:0 2px 4px rgba(0,0,0,.28)}.study-flashcard-front h3{margin:0;font-size:1.5rem;line-height:1.18;color:inherit}.study-flashcard-back{background:color-mix(in srgb,var(--accent-primary) 82%,black 8%);border:2px solid color-mix(in srgb,var(--accent-primary) 88%,black 12%);color:#fff;transform:rotateY(180deg);box-shadow:inset 0 0 20px #0000001f}.study-flashcard-back p{margin:0;font-size:1rem;line-height:1.38;font-weight:500;width:100%;max-height:100%;overflow:hidden;overflow-wrap:anywhere}.study-flashcard-translation{margin:0;font-size:.92rem;line-height:1.32;color:#ffffffe6;transition:opacity .24s ease,transform .24s ease}.study-flashcard-translation.hidden{opacity:0;transform:translateY(-6px)}.study-match-stage.is-board-active .study-match-word-card{height:92px;min-height:92px;padding:16px 18px;align-items:center;justify-content:center;opacity:1;transform:translateY(0) scale(1)}.study-match-board.is-definition-mode .study-match-word-card{min-height:108px;padding:18px}.study-match-definition-card{padding:18px 20px;height:92px;min-height:92px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;overflow:hidden;opacity:0;transform:translate(26px) scale(.985);transition:opacity .35s ease var(--card-delay),transform .48s cubic-bezier(.22,1,.36,1) var(--card-delay),border-color .2s ease,background-color .2s ease,box-shadow .25s ease}.study-match-definition-card.is-visible{opacity:1;transform:translate(0) scale(1)}.study-match-board.is-definition-mode .study-match-definition-card{height:auto;min-height:116px;padding:18px 20px;overflow:visible}.study-match-card-main{font-size:1.18rem;font-weight:700;line-height:1.4;width:100%;overflow-wrap:anywhere}.study-match-word-card .study-match-card-main{font-size:1rem;line-height:1.22}.study-match-definition-card .study-match-card-main{font-size:.92rem;line-height:1.28}.study-match-board.is-definition-mode .study-match-definition-card .study-match-card-main{font-size:.96rem;line-height:1.34}.study-match-card.is-unavailable{opacity:.38;filter:saturate(.4);cursor:default;pointer-events:none}.study-next-btn-container{display:flex;justify-content:center;width:100%;margin:0;padding:0}.study-next-sticky-footer{flex-shrink:0;width:100%;margin:0;padding:8px 16px 10px;background:var(--bg-secondary);border-top:1px solid var(--border-color)}.study-next-btn{position:relative;padding:12px 40px;border:none;border-radius:999px;background:var(--accent-primary);color:var(--text-on-accent);font-size:18px;font-weight:700;cursor:pointer;box-shadow:0 4px 10px color-mix(in srgb,var(--accent-primary) 30%,transparent);transition:all .3s ease}.study-next-btn:hover{transform:translateY(-2px)}.study-next-btn:disabled,.study-next-btn.is-disabled{background:#ccc;box-shadow:none;cursor:not-allowed;transform:none}.study-flashcard-container.is-attention-shake .study-flashcard{animation:study-flashcard-shake .5s ease}.study-quiz-container{width:100%;max-width:600px;margin:0 auto;padding:20px;text-align:center}.study-complete-view{width:100%;max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:14px;padding:8px 2px 16px}.study-complete-header{text-align:center}.study-complete-header h2{margin:0;color:var(--text-primary)}.study-complete-header p{margin:8px 0 0;color:var(--text-secondary)}.study-complete-list{display:flex;flex-direction:column;gap:10px}.study-complete-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-radius:12px;border:1px solid var(--border-color);background:color-mix(in srgb,var(--bg-lightest) 62%,transparent);opacity:0;transform:translateY(10px);transition:opacity .24s ease var(--row-delay),transform .3s cubic-bezier(.22,1,.36,1) var(--row-delay)}.study-complete-row.is-visible{opacity:1;transform:translateY(0)}.study-complete-term{color:var(--text-primary);font-size:1.02rem;font-weight:600;overflow-wrap:anywhere}.study-complete-delta{min-width:44px;text-align:right;font-size:1.05rem;font-weight:800}.study-complete-delta.is-up{color:#16a34a}.study-complete-delta.is-down{color:#dc2626}.study-complete-delta.is-neutral{color:var(--text-secondary)}.study-question-card{width:100%;margin-bottom:30px;padding:34px 32px;border:1px solid var(--border-color);border-radius:16px;background:var(--bg-secondary);box-shadow:0 10px 26px #0000000f;overflow-wrap:anywhere}.study-question-card.has-image{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,34%);align-items:center;gap:26px;text-align:left}.study-question-copy{min-width:0}.study-question-label{display:block;margin-bottom:5px;color:var(--text-secondary);font-size:.8rem}.study-question-image-wrap{width:100%;aspect-ratio:1;margin:0;border-radius:14px;overflow:hidden;background:color-mix(in srgb,var(--bg-lightest) 76%,var(--border-color))}.study-question-image{display:block;width:100%;height:100%;object-fit:contain}.study-question-text,.study-example-box{color:var(--text-primary);font-size:1.38rem;line-height:1.65;overflow-wrap:anywhere}.study-example-help{display:flex;flex-direction:column;align-items:center;gap:12px;margin:14px 0 18px}.study-example-help-btn{min-height:40px;padding:8px 16px;border:1px solid color-mix(in srgb,var(--accent-primary) 38%,var(--border-color));border-radius:999px;background:color-mix(in srgb,var(--accent-primary) 8%,var(--bg-secondary));color:var(--accent-primary);cursor:pointer;font:inherit;font-size:.88rem;font-weight:750}.study-example-help-btn:disabled{opacity:.7;cursor:default}.study-example-help-choices{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;animation:study-help-choices-in .3s ease-out both}.study-example-help-choices span{min-width:0;padding:9px 10px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-lightest);color:var(--text-primary);font-size:.94rem;font-weight:650;overflow-wrap:anywhere;user-select:text}@keyframes study-help-choices-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.study-options-grid{display:grid;gap:15px;width:100%}.study-option-btn{width:100%;padding:15px 20px;border:2px solid color-mix(in srgb,var(--border-color) 80%,transparent);border-radius:10px;background:var(--bg-lightest);color:var(--text-primary);font-size:1.1rem;font-weight:600;text-transform:capitalize;cursor:pointer;transition:all .2s ease;white-space:normal;line-height:1.35;user-select:none}.study-option-btn:hover{border-color:var(--accent-primary);color:var(--accent-primary)}.study-option-btn.correct{background:#d4edda;border-color:#28a745;color:#155724}.study-option-btn.incorrect{background:#f8d7da;border-color:#dc3545;color:#721c24}.study-audio-card{display:flex;flex-direction:column;align-items:center;gap:20px}.study-audio-card p{margin:0;color:var(--text-secondary);font-style:italic}.study-big-audio-btn{width:100px;height:100px;border:none;border-radius:50%;background:var(--accent-primary);color:var(--text-on-accent);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 15px #0003;-webkit-tap-highlight-color:transparent}.study-big-audio-btn:hover{background:var(--accent-primary-hover);transform:scale(1.05)}.study-input-container{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:26px;padding-top:4px}.study-input{width:min(320px,100%);min-height:52px;padding:12px 18px;border:2px solid #ddd;border-radius:12px;font-size:1.1rem;font-weight:600;text-align:center;transition:border-color .2s ease,box-shadow .2s ease;background:var(--bg-secondary);color:var(--text-primary)}.study-input:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent-primary) 14%,transparent)}.study-input::placeholder{color:var(--text-secondary);text-align:center}.study-input.is-success{border-color:#28a745}.study-input.is-error{border-color:#dc3545}.study-check-btn,.study-close-session-btn,.study-quit-confirm{border:none;background:var(--accent-primary);color:var(--text-on-accent);font-weight:700;cursor:pointer}.study-check-btn{min-height:52px;padding:12px 28px;border-radius:12px;font-size:1.05rem;box-shadow:0 10px 22px color-mix(in srgb,var(--accent-primary) 20%,transparent);transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}.study-check-btn:hover:not(:disabled){background:var(--accent-primary-hover);transform:translateY(-1px)}.study-check-btn:disabled{opacity:.72;box-shadow:none;cursor:default}.study-feedback{min-height:28px;margin-top:18px;font-weight:700;line-height:1.5}.study-feedback.success{color:#28a745}.study-feedback.error,.study-inline-error{color:#dc3545}.study-gap{display:inline-block;padding:0 2px;font-weight:700;color:var(--accent-primary)}.study-final-card{text-align:center}.study-final-card h2{margin-top:0}.study-saving-spinner{width:42px;height:42px;margin:20px auto 0;border:4px solid color-mix(in srgb,var(--accent-primary) 16%,transparent);border-top-color:var(--accent-primary);border-radius:50%;animation:study-spin .8s linear infinite}.study-quit-overlay{position:fixed;inset:0;z-index:2101;display:flex;align-items:center;justify-content:center;background:#00000073;opacity:0;pointer-events:none;transition:opacity .25s ease}.study-quit-overlay.is-open{opacity:1;pointer-events:auto}.study-quit-modal{width:min(92vw,360px);padding:24px;border-radius:16px;background:var(--bg-secondary);box-shadow:var(--card-shadow)}.study-quit-modal h3{margin-top:0}.study-quit-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}.study-quit-cancel,.study-quit-confirm{padding:10px 16px;border-radius:10px}.study-quit-cancel{border:1px solid var(--border-color);background:var(--bg-lightest);color:var(--text-primary);cursor:pointer}.fade-in{opacity:0;transform:translateY(12px) scale(.985);animation:study-slide-in .38s cubic-bezier(.22,1,.36,1) forwards}.fade-out{opacity:0;transform:translateY(-10px) scale(.985);transition:opacity .28s ease,transform .28s cubic-bezier(.4,0,1,1)}.study-quiz-container .fade-in{will-change:opacity,transform}.transition-primary{animation-delay:0ms;transition-delay:0ms}.transition-secondary{animation-delay:70ms;transition-delay:40ms}.transition-tertiary{animation-delay:.13s;transition-delay:80ms}.pulse{animation:study-btn-pulse 1.5s infinite}@keyframes study-stack-slide{0%{transform:translate(0)}to{transform:translateY(8px)}}@keyframes study-fly-left{0%{transform:translate(-80px,-60px) rotate(-15deg) scale(1.1);opacity:0}35%{opacity:1}50%{transform:translate(0) rotate(0) scale(1);opacity:1}50.1%,to{opacity:0}}@keyframes study-fly-right{0%{transform:translate(80px,-60px) rotate(15deg) scale(1.1);opacity:0}35%{opacity:1}50%{transform:translate(0) rotate(0) scale(1);opacity:1}50.1%,to{opacity:0}}@keyframes study-card-fade{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translateY(6px)}}@keyframes study-text-pulse{0%,to{opacity:.7}50%{opacity:1}}@keyframes study-fly-up{to{opacity:1;transform:translateY(0)}}@keyframes study-spin{to{transform:rotate(360deg)}}@keyframes study-match-shake{0%,to{transform:translate(0)}20%{transform:translate(-4px)}40%{transform:translate(4px)}60%{transform:translate(-3px)}80%{transform:translate(3px)}}@keyframes study-flashcard-shake{0%,to{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}}@keyframes study-slide-in{to{opacity:1;transform:translateY(0) scale(1)}}@keyframes study-btn-pulse{0%{box-shadow:0 0 color-mix(in srgb,var(--accent-primary) 70%,transparent)}to{box-shadow:0 0 0 0 transparent}}@media(max-width:600px){.study-modal-shell{width:100%;height:calc(100% - 12px);border-top-left-radius:18px;border-top-right-radius:18px;transform:translateY(100%)}.study-modal-overlay.is-open .study-modal-shell{transform:translateY(0)}.study-modal-header{display:flex;flex-direction:column;gap:10px;padding:10px 15px}.study-header-left{display:none}.study-header-right{width:100%;justify-content:space-between;gap:12px}.study-session-progress{min-width:0;width:auto;flex:1}.study-modal-body-scroll{padding:18px 16px 24px}.study-next-sticky-footer{padding:8px 12px 10px}.study-quiz-container{padding:4px 0 12px}.study-complete-view{gap:12px;padding:4px 0 12px}.study-complete-row{padding:12px 10px}.study-complete-term{font-size:.94rem}.study-complete-delta{font-size:.98rem}.study-question-card{padding:26px 18px;margin-bottom:20px}.study-question-card.has-image{grid-template-columns:minmax(0,1fr) minmax(96px,34%);gap:14px}.study-question-text,.study-example-box{font-size:1.12rem;line-height:1.6}.study-input{width:100%;min-width:0}.study-check-btn{width:100%}.study-input-container{margin-top:22px}.study-review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.study-review-grid.has-odd-tail .study-flashcard-container:last-child{grid-column:1 / -1;justify-self:center;width:calc(50% - 6px)}.study-flashcard-container{width:100%;height:auto;aspect-ratio:.96 / 1}.study-flashcard-front,.study-flashcard-back{padding:14px 10px}.study-flashcard-front h3{font-size:.94rem;line-height:1.14}.study-flashcard-translation{font-size:.74rem;line-height:1.18}.study-flashcard-back p{font-size:.84rem;line-height:1.24}.study-match-board.is-definition-mode .study-match-row{grid-template-columns:minmax(0,138px) minmax(0,1fr);gap:12px}.study-match-board.is-translation-mode .study-match-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.study-match-card-main{font-size:.98rem}.study-match-definition-card{min-height:88px;padding:14px}.study-match-stage.is-board-active .study-match-word-card{height:82px;min-height:82px;padding:14px 12px}.study-match-board.is-definition-mode .study-match-word-card{height:auto;min-height:96px;padding:14px 12px}.study-match-definition-card{height:82px;min-height:82px;padding:12px 10px}.study-match-board.is-definition-mode .study-match-definition-card{height:auto;min-height:110px;padding:14px 12px}.study-match-definition-card .study-match-card-main{font-size:.8rem;line-height:1.22}.study-match-board.is-definition-mode .study-match-definition-card .study-match-card-main{font-size:.84rem;line-height:1.26}.study-match-word-card .study-match-card-main{font-size:.82rem;line-height:1.14}}body.index-account-screen .vocab-detail-sheet-overlay .vocab-item-card{background-color:var(--bg-secondary);border-radius:12px;box-shadow:var(--card-shadow);cursor:pointer;overflow:hidden;transition:background-color .3s ease-in-out,border-left-color .3s ease-in-out,box-shadow .3s ease-in-out,opacity .3s ease-in-out;-webkit-tap-highlight-color:transparent;border-left:5px solid transparent}body.index-account-screen:not(.light-mode) .vocab-detail-sheet-overlay .vocab-item-card{box-shadow:0 8px 24px #00000047}body.index-account-screen .vocab-detail-sheet-overlay .theme-dark .vocab-item-card{box-shadow:0 8px 24px #00000047}body.index-account-screen .vocab-detail-sheet-overlay .vocab-grid-mounted .vocab-item-card{transition:background-color .3s ease-in-out,border-left-color .3s ease-in-out,box-shadow .3s ease-in-out,opacity .3s ease-in-out,transform 1s}body.index-account-screen .vocab-detail-sheet-overlay .vocab-item-card.is-deleting{opacity:0;transform:scale(.9);transition:opacity .5s ease,transform .5s ease;pointer-events:none}body.index-account-screen .vocab-detail-sheet-overlay .vocab-item-card.familiarity--new{border-left-color:#ef4444}body.index-account-screen .vocab-detail-sheet-overlay .vocab-item-card.familiarity--learning{border-left-color:#f59e0b}body.index-account-screen .vocab-detail-sheet-overlay .vocab-item-card.familiarity--known{border-left-color:#22c55e}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-header{padding:16px;font-size:1.125rem;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:8px}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-header-main{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;flex:1 1 auto}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-word{min-width:0;overflow-wrap:anywhere}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-audio-btn{margin-left:auto;flex-shrink:0;width:32px;height:32px;border:1.5px solid rgba(49,27,146,.2);background:#ffffffeb;box-shadow:0 1px 3px #0f172a14}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-audio-btn svg circle{fill:transparent}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-audio-btn:hover:not(:disabled){border-color:#311b9257;background:#fff}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-audio-btn.is-playing{background:#fff;border-color:#311b9257}body.index-account-screen .vocab-detail-sheet-overlay .audio-btn.vocab-inline-audio-btn.is-loading,body.index-account-screen .vocab-detail-sheet-overlay .flashcards-deck-audio-btn.is-loading{background:#fffffff0;border-color:color-mix(in srgb,var(--accent-primary) 38%,white);box-shadow:0 4px 10px #0f172a1f}body.index-account-screen .vocab-detail-sheet-overlay .audio-btn.vocab-inline-audio-btn.is-loading:before,body.index-account-screen .vocab-detail-sheet-overlay .flashcards-deck-audio-btn.is-loading:before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at center,color-mix(in srgb,var(--accent-primary) 14%,white),transparent 72%);animation:tooltip-audio-pulse 1.2s ease-in-out infinite}body.index-account-screen .vocab-detail-sheet-overlay .audio-btn.vocab-inline-audio-btn.is-loading:after,body.index-account-screen .vocab-detail-sheet-overlay .flashcards-deck-audio-btn.is-loading:after{content:"";position:absolute;top:0;left:-35%;width:58%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.98),color-mix(in srgb,var(--accent-primary) 14%,white),rgba(255,255,255,.98),transparent);transform:skew(-18deg) translate(0);animation:dre-shimmer 1.15s ease-in-out infinite;border-radius:50%}body.index-account-screen:not(.light-mode) .vocab-detail-sheet-overlay .audio-btn.vocab-inline-audio-btn.is-loading,body.index-account-screen:not(.light-mode) .vocab-detail-sheet-overlay .flashcards-deck-audio-btn.is-loading{background:#080808f5;border-color:#ffffff24;box-shadow:0 4px 14px #00000057}body.index-account-screen:not(.light-mode) .vocab-detail-sheet-overlay .audio-btn.vocab-inline-audio-btn.is-loading:before,body.index-account-screen:not(.light-mode) .vocab-detail-sheet-overlay .flashcards-deck-audio-btn.is-loading:before{background:radial-gradient(circle at center,rgba(255,255,255,.1),transparent 72%)}body.index-account-screen:not(.light-mode) .vocab-detail-sheet-overlay .audio-btn.vocab-inline-audio-btn.is-loading:after,body.index-account-screen:not(.light-mode) .vocab-detail-sheet-overlay .flashcards-deck-audio-btn.is-loading:after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.94),rgba(255,255,255,.72),rgba(255,255,255,.94),transparent)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-audio-btn:disabled:not(.is-loading):not(.is-playing){opacity:.45}body.index-account-screen .vocab-detail-sheet-overlay .new-tag{background-color:var(--accent-primary);color:#fff;font-size:.75rem;font-weight:700;padding:2px 6px;border-radius:4px;vertical-align:middle;animation:new-tag-pulse .9s ease-in-out 3,new-tag-exit .5s ease forwards;animation-delay:0s,5s}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-audio-btn--left{margin-left:0;margin-right:8px}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-wordlist-btn{margin-left:8px;color:var(--accent-primary)!important;border-color:var(--accent-primary)!important;background:color-mix(in srgb,var(--accent-primary) 6%,white)!important}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-wordlist-btn:hover:not(:disabled){background:color-mix(in srgb,var(--accent-primary) 12%,white)!important;border-color:var(--accent-primary)!important}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-wordlist-btn.state-added{background:color-mix(in srgb,var(--accent-primary) 12%,white)!important;border-color:var(--accent-primary)!important;color:var(--accent-primary)!important}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-wordlist-btn.state-error{color:#b91c1c}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-wordlist-btn .wordlist-icon path,body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-wordlist-btn .wordlist-icon circle{stroke:var(--accent-primary)!important}body.index-account-screen .vocab-detail-sheet-overlay .vocab-inline-wordlist-btn.state-loading .loading-icon circle{stroke:var(--accent-primary)!important}body.index-account-screen .vocab-detail-sheet-overlay body.light-mode .vocab-inline-wordlist-btn{color:var(--accent-primary)!important;border-color:var(--accent-primary)!important;background:color-mix(in srgb,var(--accent-primary) 6%,white)!important}@keyframes new-tag-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.65;transform:scale(1.06)}}@keyframes new-tag-exit{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.9);visibility:hidden}}body.index-account-screen .vocab-detail-sheet-overlay .word-type{font-style:italic;font-weight:400;color:var(--text-secondary);font-size:.875rem}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s cubic-bezier(.25,.8,.25,1)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-item-card.is-expanded .vocab-card-body{grid-template-rows:1fr}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-content{overflow:hidden;padding:0 16px;opacity:0;transition:opacity .5s cubic-bezier(.25,.8,.25,1)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-item-card.is-expanded .vocab-card-content{padding-bottom:16px;opacity:1}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-body p{margin:0 0 8px;font-size:.875rem;color:var(--text-secondary)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-body p:last-child{margin-bottom:0}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-body strong{color:var(--text-primary)}body.index-account-screen .vocab-detail-sheet-overlay,body.index-account-screen .vocab-detail-sheet-overlay *,body.index-account-screen .vocab-detail-sheet-overlay *:before,body.index-account-screen .vocab-detail-sheet-overlay *:after{box-sizing:border-box}body.index-account-screen .vocab-detail-sheet-overlay{position:fixed;inset:0;z-index:99990;display:flex;align-items:flex-end;justify-content:center;background:#080c1694;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);opacity:0;pointer-events:none;transition:opacity .28s ease}body.index-account-screen .vocab-detail-sheet-overlay.is-open{opacity:1;pointer-events:auto}body.index-account-screen .vocab-detail-sheet-overlay:after{content:"";position:absolute;bottom:0;left:50%;z-index:0;width:min(100%,680px);height:var(--vocab-sheet-lift, 0px);background:var(--bg-secondary);transform:translate(-50%);transition:height .4s cubic-bezier(.32,.72,0,1);pointer-events:none}body.index-account-screen .vocab-detail-sheet-overlay.is-dragging:after{transition:none}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet{--vocab-familiarity-color: #f59e0b;--vocab-familiarity-soft: color-mix(in srgb, var(--vocab-familiarity-color) 14%, var(--bg-secondary));width:min(100%,680px);max-height:85vh;max-height:85dvh;display:flex;flex-direction:column;position:relative;z-index:1;overflow:hidden;border-top:4px solid var(--vocab-familiarity-color);border-radius:22px 22px 0 0;background:var(--bg-secondary);box-shadow:0 -18px 60px #0000004d;opacity:0;transform:translateY(100%);will-change:transform;transition:transform .4s cubic-bezier(.32,.72,0,1),opacity .28s ease,max-height .25s ease}body.index-account-screen .vocab-detail-sheet-overlay ::view-transition-old(root),body.index-account-screen .vocab-detail-sheet-overlay ::view-transition-new(root){animation:none;mix-blend-mode:normal}body.index-account-screen .vocab-detail-sheet-overlay ::view-transition-old(root){z-index:1}body.index-account-screen .vocab-detail-sheet-overlay ::view-transition-new(root){z-index:2}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.familiarity--new{--vocab-familiarity-color: #ef4444}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.familiarity--known{--vocab-familiarity-color: #22c55e}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.is-themed .vocab-detail-sheet-topbar{background:var(--vocab-familiarity-color)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.is-themed .vocab-detail-sheet-topbar button{color:#fff;background:#ffffff29}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.is-themed .vocab-detail-sheet-handle:after{background:#ffffffa6}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-exercise-actions>button{width:42px;height:42px;margin:0;flex-shrink:0}body.index-account-screen .vocab-detail-sheet-overlay.is-open .vocab-detail-sheet{opacity:1;transform:translateY(var(--vocab-sheet-drag-y, 0))}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.is-dragging{transition:none;user-select:none}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.is-crumbling{overflow:visible;pointer-events:none;animation:vocabularySheetShellDustFade .42s ease-out .22s forwards}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.is-crumbling>.vocab-detail-sheet-topbar,body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.is-crumbling>.vocab-detail-sheet-body{animation:flashcardsCardDustFade .42s ease-out .22s forwards}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-crumble-layer{border-radius:22px 22px 0 0}@keyframes vocabularySheetShellDustFade{to{border-top-color:transparent;background-color:transparent;box-shadow:none}}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-no-image{height:auto}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-topbar{position:relative;min-height:46px;flex:0 0 46px;display:flex;align-items:center;justify-content:flex-end;padding:7px 14px;border-radius:18px 18px 0 0;background:color-mix(in srgb,var(--vocab-familiarity-soft) 55%,var(--bg-secondary))}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-handle{position:absolute;top:0;left:50%;z-index:2;width:72px;height:32px;transform:translate(-50%);cursor:grab;touch-action:none}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-handle:after{content:"";position:absolute;top:8px;left:50%;width:42px;height:5px;border-radius:999px;background:color-mix(in srgb,var(--text-secondary) 28%,transparent);transform:translate(-50%)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.is-dragging .vocab-detail-sheet-handle{cursor:grabbing}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-meta{margin-right:auto;display:flex;align-items:center;gap:7px;min-width:0}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-status,body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-score{padding:5px 10px;border-radius:999px;font-size:.69rem;font-weight:850;letter-spacing:.04em;line-height:1;white-space:nowrap;text-transform:uppercase}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-status{border:1px solid color-mix(in srgb,var(--vocab-familiarity-color) 42%,transparent);background:var(--vocab-familiarity-soft);color:color-mix(in srgb,var(--vocab-familiarity-color) 76%,var(--text-primary))}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-score{border:1px solid var(--border-color);background:var(--bg-primary);color:var(--text-secondary)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-topbar button{width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px;padding:0;border:1px solid var(--border-color);border-radius:50%;background:var(--bg-primary);color:var(--text-secondary);cursor:pointer;font-size:1.3rem;line-height:1}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-topbar button:hover{border-color:var(--vocab-familiarity-color);color:var(--text-primary)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-body{min-height:0;flex:0 1 auto;display:flex;overflow:hidden;overscroll-behavior:contain;background:var(--bg-secondary);padding-bottom:8px;padding-bottom:clamp(8px,env(safe-area-inset-bottom),18px);-webkit-overflow-scrolling:touch}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-item-card{min-height:0;flex:1 1 auto;display:flex;flex-direction:column;border-left:0;border-radius:0;background:transparent;box-shadow:none;cursor:default}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-card-header{display:grid;grid-template-columns:minmax(0,1fr);padding:18px clamp(24px,6vw,40px) 14px;font-size:clamp(1.35rem,5vw,1.7rem)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-image .vocab-card-header{--vocab-header-left-inset: clamp(30px, 9vw, 56px);grid-template-columns:minmax(0,1fr) 45%;align-items:stretch;gap:clamp(26px,7vw,38px);padding:0;background:color-mix(in srgb,var(--vocab-familiarity-color) 7%,var(--bg-primary))}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-image .vocab-card-header-main.is-stacked{width:calc(100% - var(--vocab-header-left-inset));margin-left:var(--vocab-header-left-inset)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-card-header-main.is-stacked{width:100%;max-width:100%;min-width:0;display:flex;flex-direction:column;align-items:flex-start;align-self:center;justify-self:stretch;gap:5px}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-card-word{max-width:100%;display:inline-block;color:var(--text-primary);font-size:clamp(1.45rem,6vw,2rem);font-weight:800;line-height:1.1;overflow-wrap:normal;transform-origin:left center;white-space:nowrap}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-detail-image{width:100%;aspect-ratio:1;display:block;overflow:hidden;border:1px solid color-mix(in srgb,var(--vocab-familiarity-color) 22%,var(--border-color));border-radius:16px;background:color-mix(in srgb,var(--vocab-familiarity-soft) 35%,var(--bg-primary))}body.index-account-screen .vocab-detail-sheet-overlay .vocab-card-detail-image img{width:100%;height:100%;display:block;object-fit:contain}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-image .vocab-card-detail-image{border:0;border-radius:16px 0 0 16px}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-image .vocab-card-detail-image img{object-fit:cover;transform:scale(1.06)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .word-type{color:var(--text-secondary);font-size:.82rem;line-height:1.25}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-card-content{min-height:0;flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden;padding-top:18px;padding-inline:clamp(24px,6vw,40px)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-item-card.is-expanded .vocab-card-content{padding-bottom:0}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-card-body{min-height:0;flex:1 1 auto;display:flex;overflow:hidden}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-card-details{min-height:0;flex:0 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-card-body p{margin-bottom:12px;font-size:.95rem;line-height:1.5}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-card-body strong{color:var(--text-primary);font-weight:750}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-actions-row{flex:0 0 auto;display:flex;justify-content:flex-end;gap:9px;margin-top:18px;padding-top:12px;padding-bottom:2px;background:var(--bg-secondary)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-action-btn{width:42px;height:42px;padding:0;border-radius:10px;background:var(--bg-primary)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-action-btn svg{width:19px;height:19px}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-action-btn:focus-visible,body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-topbar button:focus-visible{outline:3px solid color-mix(in srgb,var(--accent-primary) 34%,transparent);outline-offset:2px}@media(max-width:390px){body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-actions-row{gap:7px}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet .vocab-action-btn{width:40px;height:40px}}@media(min-width:700px){body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-image .vocab-card-header{grid-template-columns:minmax(0,1fr) 45%}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-image .vocab-card-header-main.is-stacked{width:max-content;max-width:100%;margin-left:0;justify-self:center}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-image .vocab-card-detail-image{height:220px;aspect-ratio:auto}}@media(min-width:768px){body.index-account-screen .vocab-detail-sheet-overlay{align-items:center;padding:24px}body.index-account-screen .vocab-detail-sheet-overlay:after,body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet-handle{display:none}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet{max-height:85vh;max-height:85dvh;border-radius:22px;box-shadow:0 24px 70px #0000004d;transform:scale(.96)}body.index-account-screen .vocab-detail-sheet-overlay.is-open .vocab-detail-sheet{transform:scale(1)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-image .vocab-card-detail-image{height:auto;aspect-ratio:1}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet.has-image .vocab-card-detail-image img{object-fit:contain;transform:none}body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-crumble-layer{border-radius:22px}}@media(prefers-reduced-motion:reduce){body.index-account-screen .vocab-detail-sheet-overlay,body.index-account-screen .vocab-detail-sheet-overlay .vocab-detail-sheet{transition-duration:.08s}}body.index-account-screen .vocab-detail-sheet-overlay .highlighted-word{color:var(--accent-primary);font-weight:700}body.index-account-screen:not(.light-mode) .vocab-detail-sheet-overlay .highlighted-word{color:#e6d8ff}body.index-account-screen .vocab-detail-sheet-overlay .complete-btn{background-color:var(--accent-primary);color:#fff;border:none;padding:10px 20px;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:background-color .2s;width:100%;margin-top:16px}body.index-account-screen .vocab-detail-sheet-overlay .complete-btn:hover,body.index-account-screen .vocab-detail-sheet-overlay .complete-btn:active{background-color:var(--accent-primary-hover)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-actions-row{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid var(--border-color)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-action-btn{background:none;border:1px solid var(--border-color);border-radius:4px;padding:6px;cursor:pointer;color:var(--text-secondary);display:flex;align-items:center;justify-content:center;transition:all .2s ease}body.index-account-screen .vocab-detail-sheet-overlay .vocab-action-btn:hover{background-color:var(--bg-primary);color:var(--accent-primary);border-color:var(--accent-primary)}body.index-account-screen .vocab-detail-sheet-overlay .vocab-action-btn svg{width:16px;height:16px}body.index-account-screen .vocab-detail-sheet-overlay .btn-thumbs-down:hover{color:#ef4444;border-color:#ef4444}body.index-account-screen .vocab-detail-sheet-overlay .btn-thumbs-up:hover{color:#22c55e;border-color:#22c55e}body.index-account-screen .vocab-detail-sheet-overlay .btn-delete:hover{color:#ef4444;border-color:#ef4444}body.index-account-screen .vocab-detail-sheet-overlay .btn-audio:hover{color:var(--accent-primary);border-color:var(--accent-primary);background-color:var(--bg-primary)}@keyframes spin{to{transform:rotate(360deg)}}body.index-account-screen .vocab-detail-sheet-overlay .egh-spinner{animation:spin 1s linear infinite}body.index-account-screen .vocab-detail-sheet-overlay .shimmer-loader{display:inline-block;width:96px;max-width:100%;height:.85em;margin-left:5px;border-radius:999px;vertical-align:middle;background:linear-gradient(90deg,color-mix(in srgb,var(--bg-lightest) 88%,var(--border-color) 12%),color-mix(in srgb,var(--bg-lightest) 55%,var(--border-color) 45%) 24%,color-mix(in srgb,var(--bg-lightest) 88%,var(--border-color) 12%) 48% 100%);background-size:200% 100%;animation:tooltip-translation-shimmer 1.1s linear infinite}body.index-account-screen .vocab-detail-sheet-overlay .vocab-translation-text{display:inline-block;margin-left:5px;animation:vocab-translation-fade-in .28s ease-out}@keyframes tooltip-translation-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes vocab-translation-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}.ai-word-input-wrap{position:relative}.ai-word-input{padding-right:64px!important}.ai-fill-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);height:32px;min-width:46px;border:1px solid #b45309;border-radius:8px;background:linear-gradient(135deg,#a16207,#facc15);color:#1f2937;font-size:.75rem;font-weight:700;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 14px #eab3084d;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;overflow:hidden;isolation:isolate}.ai-fill-btn:after{content:"";position:absolute;top:-140%;left:-50%;width:34%;height:280%;background:linear-gradient(90deg,#fff0,#ffffff85,#fff0);transform:skew(-22deg) translate(-220%);animation:premium-gold-sheen 2.8s ease-in-out infinite;pointer-events:none;z-index:2}.ai-fill-btn:not(:disabled):not(.ai-fill-btn--inline):hover{transform:translateY(calc(-50% - 1px));filter:brightness(1.02);box-shadow:0 8px 18px #eab30857}.ai-fill-btn:disabled{opacity:.8;cursor:wait}.flashcards-deck-overlay{--accent-primary: var(--primary-color, #e50914);color:#fff}.flashcards-deck-overlay,.flashcards-deck-overlay *{box-sizing:border-box}.flashcards-deck-overlay .flashcards-word-content h2{border:0;padding:0;text-decoration:none}@media(max-width:768px){body.index-account-screen .account-home{margin-top:16px;margin-left:0;margin-right:0}}@keyframes premium-gold-sheen{0%,55%{transform:skew(-22deg) translate(-220%)}to{transform:skew(-22deg) translate(650%)}}@media(prefers-reduced-motion:reduce){.ai-fill-btn:after{animation:none}}.account-vocab-form .ai-fill-btn{gap:5px}.account-vocab-form .ai-word-input{padding-right:98px!important}.ai-fill-btn.is-loading svg{animation:account-spinner 1s linear infinite}.account-vocab-heading-actions .flashcards-btn,body.light-mode .account-vocab-heading-actions .flashcards-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:0;min-height:44px;border:none;padding:10px 12px;border-radius:8px;background-color:var(--primary-color);color:#fff;font-size:16px;font-weight:600;user-select:none;-webkit-tap-highlight-color:transparent}.account-vocab-heading-actions .flashcards-btn svg{width:24px;height:24px;stroke-width:2}.account-ai-fill-help{display:block;margin-top:8px;font-size:.75rem;line-height:1.5;opacity:.75}.account-study-message[hidden]{display:none}.account-study-message{font-size:.9rem}.account-upgrade-modal .account-modal-dialog{width:min(560px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;border-radius:18px}.account-upgrade-modal .account-modal-dialog>p{line-height:1.6}.account-premium-benefits,.account-premium-desktop{margin:18px 0;padding:18px;border:1px solid rgba(148,163,184,.25);border-radius:12px}.account-premium-benefits{background:#eab3080f}.account-upgrade-modal h4{margin:0 0 12px;font-size:.94rem}.account-premium-benefits ul{display:grid;gap:10px;padding:0;margin:0 0 16px;list-style:none}.account-premium-benefits li{display:flex;align-items:center;gap:10px;font-size:.92rem}.account-premium-benefits li:before{content:"\2713";color:#eab308;font-weight:800}.account-premium-benefits p,.account-premium-desktop p{margin:8px 0 0;font-size:.82rem;line-height:1.6}.account-upgrade-modal .account-premium-usage-note,.account-upgrade-modal .account-premium-billing-note{font-size:.78rem}.account-premium-app-link{display:block;margin-top:16px;text-align:center;color:inherit;font-weight:700;font-size:.86rem}.account-upgrade-modal .form-actions{margin-top:18px}.account-upgrade-modal .btn-save{width:100%;min-height:46px}.study-modal-overlay,.vocab-detail-sheet-overlay,.app-hint-toast{--font-main: "ESLFLIX Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--accent-primary: #e50914;--accent-primary-hover: #b20710;--bg-primary: #121212;--bg-secondary: #1e1e1e;--bg-lightest: #2a2a2a;--text-primary: #ffffff;--text-secondary: #a9a9b3;--border-color: #333;--card-shadow: 0 6px 24px rgba(0, 0, 0, .3);--text-on-accent: #ffffff;font-family:var(--font-main);-webkit-font-smoothing:antialiased}body.light-mode .study-modal-overlay,body.light-mode .vocab-detail-sheet-overlay,body.light-mode .app-hint-toast{--bg-primary: #f0f2f5;--bg-secondary: #ffffff;--bg-lightest: #f9f9f9;--text-primary: #1c1e21;--text-secondary: #4a4f56;--border-color: #dddfe2;--card-shadow: 0 6px 24px rgba(0, 0, 0, .1)}.study-modal-overlay{color:var(--text-primary)}body:not(.light-mode) .study-modal-overlay .study-option-btn.correct{color:#f0fdf4}body:not(.light-mode) .study-modal-overlay .study-option-btn.incorrect{color:#fff1f2}.vocabulary-audio-spinner{display:inline-block;flex-shrink:0;width:18px;height:18px;box-sizing:border-box;border:2px solid rgba(128,128,128,.3);border-top-color:var(--accent-primary, #e50914);border-radius:50%;animation:vocabulary-audio-spin .8s linear infinite}@keyframes vocabulary-audio-spin{to{transform:rotate(360deg)}}.app-hint-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%) translateY(10px);background:color-mix(in srgb,var(--accent-primary) 88%,black 12%);color:#fff;padding:10px 16px;border-radius:999px;font-size:14px;font-weight:600;box-shadow:0 10px 24px color-mix(in srgb,var(--accent-primary) 30%,transparent);opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease;z-index:100100;width:max-content;max-width:min(calc(100vw - 24px),540px);white-space:nowrap}.app-hint-toast.show{opacity:1;transform:translate(-50%) translateY(0)}body.account-word-sheet-open .account-home .account-modal{z-index:100000}
