*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#18233b;font:16px system-ui,sans-serif}main{max-width:720px;margin:auto;padding:calc(20px + env(safe-area-inset-top,0px)) 20px calc(20px + env(safe-area-inset-bottom,0px))}header p,.hint{color:#59667b}section{background:#fff;padding:22px;margin:18px 0;border:1px solid #e0e6f0;border-radius:16px}h1{margin-bottom:4px}h2{margin-top:0}.deck-overview h2{margin-bottom:14px;overflow-wrap:anywhere}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.stats span{color:#59667b;font-size:.85rem;min-width:0}.stats strong{display:block;color:#18233b;font-size:1.2rem;line-height:1.35}.deck-progress{display:flex;width:100%;height:12px;overflow:hidden;border-radius:999px;background:#e0e6f0;margin-top:18px}.deck-progress-mastered{background:#2563eb}.deck-progress-learned{background:#93c5fd}.deck-progress-learning{background:#cbd5e1}@media (max-width: 420px){.stats span{font-size:.72rem}}label{display:block;margin:12px 0}input,textarea,select{display:block;width:100%;margin-top:6px;padding:11px;border:1px solid #bbc5d4;border-radius:8px;font:inherit}textarea{min-height:85px}button,.import{background:#284ac9;color:#fff;border:0;border-radius:9px;padding:12px 16px;font:inherit;cursor:pointer}.flashcard{width:100%;min-height:210px;background:#eef2ff;color:#18233b;display:flex;flex-direction:column;align-items:center;justify-content:space-around;gap:20px;margin:16px 0;padding:24px}.flashcard strong{font-family:system-ui,sans-serif;font-size:clamp(23px,5vw,34px);overflow-wrap:anywhere}.flashcard small{color:#586581}.actions{display:flex;flex-wrap:wrap;gap:8px}.actions button{flex:1}.import{margin:0;display:inline-block}.import input{display:none}.hint{font-size:14px}.check{display:flex;align-items:center;gap:8px;margin:12px 0}.check input{width:auto}.add-card-success{margin:12px 0;padding:11px 12px;background:#f0fdf4;color:#166534;border:1px solid #bbf7d0;border-radius:8px}.add-card-error{margin:12px 0;padding:11px 12px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;border-radius:8px}.learning-pool-list{display:grid;gap:8px;margin:10px 0 18px}.learning-pool-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px}.learning-pool-card span{color:#6b7280;font-size:.9rem;white-space:nowrap}.show-more{margin-top:12px}.typed-answer-error{margin:12px 0;padding:11px 12px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;border-radius:8px}.study-selector:disabled{opacity:1;color:#18233b;-webkit-text-fill-color:#18233b;background-color:#fff}.card-entry-switcher{position:relative;display:flex;width:100%;max-width:360px;padding:4px;gap:4px;margin:.75rem 0 1rem;border-radius:999px;background:#eef2ff;isolation:isolate}.card-entry-switcher:before{content:"";position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc((100% - 12px)/2);border-radius:999px;background:#284ac9;box-shadow:0 2px 6px #284ac933;transform:translate(0);transition:transform .2s ease}.card-entry-switcher--bulk:before{transform:translate(calc(100% + 4px))}.card-entry-switcher button{flex:1;min-width:0;padding:10px 16px;border:0;border-radius:999px;background:transparent;color:#40558f;font-weight:600;transition:color .2s ease}.card-entry-switcher button[aria-pressed=true]{color:#fff}.card-entry-switcher button:focus-visible{outline:2px solid #18233b;outline-offset:2px}@media (prefers-reduced-motion: reduce){.card-entry-switcher:before,.card-entry-switcher button{transition:none}}.deck-library-heading,.deck-screen-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}.deck-library-heading h2{margin:0}.deck-create-toggle,.deck-screen-nav button{padding:8px 12px;font-size:.9rem}.deck-create-form{margin:16px 0}.deck-library-list{display:grid;gap:10px;margin-top:18px}.deck-library-item{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:18px;text-align:left;background:#eef2ff;color:#18233b;border:1px solid #dbe3ff;border-radius:12px}.deck-library-item:hover{background:#dfe7ff}.deck-library-item:focus-visible{outline:2px solid #284ac9;outline-offset:2px}.deck-library-name{font-weight:700;overflow-wrap:anywhere}.deck-library-count{flex-shrink:0;color:#40558f;font-size:.9rem}.deck-screen-nav{margin:16px 0}.deck-screen-nav strong{overflow-wrap:anywhere;text-align:right}.manage-cards-section .managed-card .actions button,.manage-cards-section .show-more{padding:6px 12px;font-size:.9rem;line-height:1.25}.study-error-details{margin-top:8px}.study-error-details summary{cursor:pointer}.study-error-details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow-y:auto;font:.8rem/1.45 ui-monospace,monospace}.app-header{display:block}.app-header-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.app-header-title-row h1{margin:0}.app-header p{margin:6px 0 0}.header-sign-out{flex-shrink:0;background:transparent;color:#40558f;padding:8px 0;border-radius:0;font-size:.9rem;text-decoration:underline;text-underline-offset:3px}.header-sign-out:hover{color:#284ac9}.header-sign-out:focus-visible{outline:2px solid #284ac9;outline-offset:3px}.recently-deleted{margin-top:24px;padding:14px 16px;border:1px solid #dbe3ff;border-radius:12px;background:#f8faff}.recently-deleted summary{cursor:pointer;font-weight:600;font-size:.95rem;line-height:1.5}.recently-deleted[open] summary{margin-bottom:12px}.recently-deleted p{margin:0 0 12px;color:#40558f;font-size:.9rem}.recently-deleted .learning-pool-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.recently-deleted .learning-pool-card button{flex-shrink:0}.recently-deleted .learning-pool-card small{color:#40558f;font-size:.85rem;font-weight:400}.recently-deleted .learning-pool-card button{padding:5px 10px;font-size:.85rem;line-height:1.2}.delete-deck-section{border:1px solid #fecaca;background:#fff7f7}.delete-deck-section button[type=submit]{background:#dc2626;border-color:#dc2626;color:#fff}.delete-deck-section button[type=submit]:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c}.delete-deck-section button[type=submit]:disabled{background:#fca5a5;border-color:#fca5a5;color:#fff;cursor:not-allowed}.auth-reset-submit{display:block;width:100%}.auth-text-link{display:block;width:fit-content;max-width:100%;margin:12px auto 0;text-align:center;border:0;background:transparent;box-shadow:none}.auth-form-busy input:disabled{background:#eef0f4;color:#788294;cursor:not-allowed}.auth-form-busy .auth-reset-submit:disabled{background:#aab2c0;border-color:#aab2c0;color:#fff;cursor:not-allowed}.auth-form-busy .actions button:disabled{background:#aab2c0;border-color:#aab2c0;color:#fff;opacity:1;cursor:not-allowed}.deck-empty-state{margin-top:18px;text-align:center}.deck-empty-create{display:block;width:100%;min-height:92px;padding:18px;border:2px dashed #aab9e8;border-radius:16px;background:#f6f8ff;color:#40558f;font-size:1.15rem;font-weight:600;cursor:pointer}.deck-empty-create:hover{background:#edf1ff;border-color:#2949cf}.deck-empty-create:focus-visible{outline:2px solid #284ac9;outline-offset:3px}.deck-empty-or{margin:24px 0 10px;color:#7b8498;font-size:.85rem;font-weight:700;letter-spacing:.12em}.deck-empty-demo-label{margin:0;color:#40558f;font-size:1rem;font-weight:600}.manage-cards-section .show-more{display:block;width:100%;background:#fff;color:#374151;border:1px solid #9ca3af;border-radius:8px;text-align:center;cursor:pointer}.manage-cards-section .show-more:hover{background:#f3f4f6}.card-save-submit:disabled{background:#aab2c0;border-color:#aab2c0;color:#fff;opacity:1;cursor:not-allowed}.deck-count-loading{display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap}.deck-count-spinner{display:inline-block;width:.75rem;height:.75rem;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:deck-count-spin .8s linear infinite}@keyframes deck-count-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.deck-count-spinner{animation:none}}.bulk-import-editor{position:relative}.bulk-import-editor textarea{display:block;width:100%;margin:0;padding:11px;font:inherit;line-height:1.5;letter-spacing:normal;-moz-tab-size:8;tab-size:8;white-space:pre-wrap;overflow-wrap:break-word}.bulk-import-highlights{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;white-space:pre-wrap;overflow-wrap:break-word;font:inherit;line-height:1.5;letter-spacing:normal;-moz-tab-size:8;tab-size:8;padding:11px;border:1px solid transparent;color:#18233b}.bulk-import-transparent{position:relative;background:transparent!important;color:transparent!important;caret-color:#18233b}.bulk-import-transparent::selection{background:#b9d6ff}.bulk-duplicate-line{background:#ffd4d4;box-decoration-break:clone;-webkit-box-decoration-break:clone}.guest-learning-reveal{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .32s ease,opacity .18s ease}.guest-learning-reveal.is-visible{grid-template-rows:1fr;opacity:1}.guest-learning-reveal-inner{min-height:0;overflow:hidden}.guest-learning-explanation{padding-top:12px}.guest-learning-explanation p{margin:0 0 8px}.guest-learning-caption{opacity:0}.guest-learning-reveal.is-visible .guest-learning-caption{animation:guest-caption-fade .35s ease .85s both}@keyframes guest-caption-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion: reduce){.guest-learning-reveal{transition:none}.guest-learning-reveal.is-visible .guest-learning-caption{animation:none;opacity:1}}.guest-demo-progress{background:transparent;border:1px solid #cbd5e1;box-sizing:border-box}.guest-typewriter{white-space:pre-wrap;overflow-wrap:anywhere}.font-japanese{font-family:Hiragino Sans,sans-serif}.font-korean{font-family:Apple SD Gothic Neo,sans-serif}.loading-indicator{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:2rem 1rem;color:#52617a}.loading-indicator--compact{flex-direction:row;justify-content:center;min-height:0;padding:1rem 0}.loading-indicator__spinner{width:2.4rem;height:2.4rem;flex:none;border:4px solid #dbe3f5;border-top-color:#5269c9;border-radius:50%;animation:loading-indicator-spin .75s linear infinite}@keyframes loading-indicator-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.loading-indicator__spinner{animation-duration:2s}}.learning-pool-card strong{color:#1f2937}.deck-loading-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding-bottom:12vh;box-sizing:border-box}.guest-flashcard-nudge{animation:guest-flashcard-nudge 9s ease-in-out 2s infinite}@keyframes guest-flashcard-nudge{0%,4%,10%,to{transform:translate(0)}6%{transform:translate(-6px)}8%{transform:translate(6px)}}@media (prefers-reduced-motion: reduce){.guest-flashcard-nudge{animation:none}}.typed-answer-form{margin:12px 0}.typed-answer-form label{margin:0 0 6px}.typed-answer-controls{display:flex;align-items:stretch;gap:8px}.typed-answer-input{position:relative;flex:1;min-width:0}.typed-answer-controls input{box-sizing:border-box;width:100%;padding-right:44px;margin:0;font-size:16px}.typed-answer-controls button{flex:0 0 44px;padding:8px;font-size:1.35rem;font-weight:700}.typed-answer-controls .typed-answer-check{flex:0 0 auto;background:#15803d;color:#fff;font:inherit}.typed-answer-controls .typed-answer-clear{position:absolute;right:0;top:0;bottom:0;width:44px;padding:0;background:transparent;color:#64748b;border:0}.typed-answer-controls button:disabled{opacity:.45;cursor:not-allowed}.typed-retry-feedback{margin:8px 0;font-size:.9rem;color:#40558f}
