.module .flashcard-words-open{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-solid);color:var(--text);font:600 13px/1.4 Inter,system-ui,sans-serif;box-shadow:0 1px 3px #1720330c;cursor:pointer}
.flashcard-words-open svg{width:16px;height:16px;flex:none}
.module .flashcard-word-drawer{position:fixed;inset:12px 12px 12px auto;margin:0;box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-width:none;height:calc(100dvh - 24px);max-height:none;min-height:0;padding:0;display:flex;border:1px solid var(--border,#dce2e9);border-radius:18px;background:var(--surface-solid,#fff);color:var(--text,#202938);box-shadow:0 14px 48px #14233a30;backdrop-filter:none;overflow:hidden;font-family:Inter,system-ui,sans-serif;pointer-events:auto;visibility:visible;opacity:1;transform:none;text-align:left}
.module .flashcard-word-drawer:popover-open{animation:flashcardWordDrawerIn .2s ease-out}
.flashcard-word-drawer::backdrop{background:transparent;pointer-events:none}
.module .flashcard-word-drawer[hidden]{display:none!important}
.module .flashcard-word-drawer>.flashcard-word-drawer__content{display:flex;flex-direction:column;gap:14px;width:100%;height:100%;max-height:none;min-height:0;box-sizing:border-box;padding:20px;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:hidden}
.module .flashcard-word-drawer__header{display:flex;align-items:center;gap:10px;flex:none}
.module .flashcard-word-drawer__header>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.module .flashcard-word-drawer__header span{font-size:12px;font-weight:600;letter-spacing:0;opacity:.65}
.module .flashcard-word-drawer__header strong{font-size:21px;font-weight:750;line-height:1.2}
.module .flashcard-word-drawer__header :is(.flashcard-word-drawer__close,.flashcard-word-drawer__back){width:32px;height:32px;min-width:32px;padding:0;display:grid;place-items:center;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft,#f1f3f5);color:inherit;font:22px/1 Inter,system-ui,sans-serif;box-shadow:0 1px 3px #1720330c;cursor:pointer}
.flashcard-word-drawer__back svg{width:18px;height:18px}
.module .flashcard-word-drawer__content>p{margin:0;font-size:13px;font-weight:400;line-height:1.5;opacity:.75;flex:none}
.module .flashcard-word-drawer__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none}
.module .flashcard-word-drawer__actions button{min-height:34px;padding:7px 11px;border:1px solid var(--border);border-radius:9px;background:var(--surface-solid);color:inherit;font:600 12px/1.4 Inter,system-ui,sans-serif;box-shadow:0 1px 3px #1720330c;cursor:pointer}
.module .flashcard-word-drawer__actions>span{margin-left:auto;font-size:12px;font-weight:500;opacity:.65}
.module .flashcard-word-drawer__search{box-sizing:border-box;flex:none;width:100%;height:40px;min-height:40px;padding:9px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-solid);color:inherit;font:400 14px/1.4 Inter,system-ui,sans-serif}
.module .flashcard-word-drawer__options{flex:1;min-height:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));grid-auto-rows:minmax(40px,max-content);align-content:start;gap:8px;padding:3px;overflow:auto;overscroll-behavior:contain}
.module .flashcard-word-drawer__options button{box-sizing:border-box;min-width:0;min-height:40px;padding:8px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft);color:var(--muted);font:600 15px/1.3 Inter,system-ui,sans-serif;overflow-wrap:anywhere;text-align:center;cursor:pointer;box-shadow:none;transition:background .15s,border-color .15s;opacity:1}
.module .flashcard-word-drawer__options button.is-enabled{background:color-mix(in srgb,#93c5fd 23%,var(--surface-solid));border-color:#83addb;color:var(--text)}
.module .flashcard-word-drawer__options button:hover,.module .flashcard-words-open:hover{border-color:#7299d4}
.module .flashcard-word-drawer [hidden]{display:none!important}
.module .flashcard-word-drawer :is(button,input):focus-visible{outline:2px solid #7299d4;outline-offset:1px}
@keyframes flashcardWordDrawerIn{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.module .flashcard-word-drawer:popover-open{animation:none}.module .flashcard-word-drawer button{transition:none}}
