:root{--primary-color: #6366f1;--secondary-color: #8b5cf6;--bg-color: #f8fafc;--text-color: #1e293b;--font-family: "Inter", system-ui, -apple-system, sans-serif}body{margin:0;font-family:var(--font-family);background-color:var(--bg-color);color:var(--text-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app-container{max-width:800px;margin:0 auto;padding:2rem;text-align:center}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background-color:var(--bg-color)}.login-card{background:#fff;padding:2.5rem;border-radius:16px;box-shadow:0 10px 25px #0000000d;width:100%;max-width:400px}.login-card h2{margin-top:0;margin-bottom:1.5rem;color:var(--primary-color);text-align:center}.login-form{display:flex;flex-direction:column;gap:1rem}.login-form input{padding:.75rem 1rem;border:1px solid #e2e8f0;border-radius:8px;font-size:1rem;transition:border-color .2s}.login-form input:focus{outline:none;border-color:var(--primary-color)}.wordbook-selector-area{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1rem;margin-bottom:1.5rem}.selector-label{font-size:.9rem;font-weight:600;color:#475569;margin-bottom:.75rem}.wordbook-checkbox-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.5rem;max-height:150px;overflow-y:auto;padding:.5rem;background:#fff;border-radius:6px;border:1px solid #f1f5f9}.wordbook-checkbox-item{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#1e293b;cursor:pointer;padding:.25rem;transition:background .2s;border-radius:4px}.wordbook-checkbox-item:hover{background:#f1f5f9}.wordbook-checkbox-item input[type=checkbox]{cursor:pointer;width:16px;height:16px}.checkbox-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guide-stats-summary{background:#fff;border-left:4px solid var(--primary-color);padding:.75rem 1rem;margin-bottom:1.5rem;border-radius:4px;box-shadow:0 1px 3px #0000000d}.guide-stats-summary p{margin:0;color:#334155;font-size:1rem}.guide-stats-summary strong{color:var(--primary-color);font-size:1.2rem;margin:0 .2rem}.plan-comparison-box,.guide-info-box{border:1px solid #e2e8f0;border-radius:8px;padding:.75rem;margin:1rem 0;font-size:.85rem}.plan-comparison-box p,.guide-info-box p{margin-bottom:.25rem;color:#475569}.plan-comparison-box p:last-child,.guide-info-box p:last-child{margin-bottom:0}.stats-sub-detail{font-size:.8rem!important;color:#64748b!important;margin-top:.25rem!important}.study-plan-calculator{background:#f1f5f9;border-radius:12px;padding:1.5rem;margin:1.5rem 0}.calculator-label{font-weight:600;color:#1e293b;margin-bottom:1rem}.calculator-input-area{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem}.days-input{width:100px;padding:.5rem .75rem;border:2px solid #cbd5e1;border-radius:8px;font-size:1.1rem;font-weight:600;text-align:center}.days-input:focus{outline:none;border-color:var(--primary-color)}.calculator-result{background:#fff;border-radius:8px;padding:1rem;border:1px solid #e2e8f0}.calculator-result.warning{border-color:#ef4444;background:#fef2f2}.calculator-result p{margin-bottom:.5rem;font-size:.9rem}.calculator-result ul{list-style:none;padding:0;margin:0}.calculator-result li{margin-bottom:.25rem}.calculator-result strong{color:var(--primary-color);font-size:1.1rem}.estimated-time-label{font-size:.85rem;color:#64748b;margin-left:.5rem;font-weight:500}.limit-warning{margin-top:1rem;padding-top:1rem;border-top:1px dashed #fca5a5;color:#b91c1c}.limit-warning p{margin-bottom:.25rem;font-weight:500}.recommendation{color:#1e293b;font-weight:400}.guide-note{font-size:.8rem;color:#64748b;font-style:italic}.primary-btn{background:var(--primary-color);color:#fff;border:none;padding:.875rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .2s}.primary-btn:hover{background:var(--secondary-color)}.divider{text-align:center;margin:1.5rem 0;color:#94a3b8;font-size:.875rem;position:relative}.divider:before,.divider:after{content:"";position:absolute;top:50%;width:40%;height:1px;background:#e2e8f0}.divider:before{left:0}.divider:after{right:0}.google-btn{width:100%;background:#fff;color:#334155;border:1px solid #cbd5e1;padding:.875rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .2s}.google-btn:hover{background:#f8fafc}.toggle-mode{text-align:center;margin-top:1.5rem;color:var(--primary-color);cursor:pointer;font-size:.875rem}.toggle-mode:hover{text-decoration:underline}.error-text{color:#ef4444;font-size:.875rem;text-align:center;margin-bottom:1rem}.navbar{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:#fff;box-shadow:0 1px 3px #0000000d;position:sticky;top:0;z-index:1000}.navbar-brand{font-weight:700;font-size:1.25rem;color:var(--primary-color)}.nav-links{list-style:none;display:flex;gap:1.5rem;margin:0;padding:0;flex-wrap:wrap}.nav-links a{text-decoration:none;color:#475569;font-weight:500;transition:all .2s;white-space:nowrap;padding:.5rem .8rem;border-radius:6px}.nav-links a:hover{color:var(--primary-color);background:#f1f5f9}.nav-links a.active{color:var(--primary-color);background:#eef2ff;font-weight:600}.navbar-user{display:flex;align-items:center;gap:1rem}.plan-badge{background:#fef3c7;color:#d97706;padding:.25rem .75rem;border-radius:9999px;font-size:.75rem;font-weight:700}.logout-btn{background:none;border:1px solid #e2e8f0;padding:.5rem 1rem;border-radius:6px;cursor:pointer;color:#ef4444;font-size:.875rem;transition:background .2s}.logout-btn:hover{background:#fef2f2}.loading-screen{display:flex;justify-content:center;align-items:center;min-height:100vh;font-size:1.25rem;color:var(--primary-color)}.layout{display:flex;flex-direction:column;min-height:100vh}.content{flex:1;padding:2rem 2rem 6rem;max-width:1280px;margin:0 auto;width:100%;box-sizing:border-box}.import-container{max-width:600px;margin:0 auto;padding:1rem}.import-card{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 6px #0000000d;margin-bottom:2rem;text-align:left}.import-card h3{margin-top:0;color:var(--primary-color);font-size:1.2rem}.helper-text{color:#64748b;font-size:.9rem;margin-bottom:1.5rem}.input-group{margin-bottom:1.2rem;display:flex;flex-direction:column;gap:.5rem}.input-group label{font-weight:600;font-size:.9rem;color:#334155}.input-group input,.input-group textarea{padding:.75rem;border:1px solid #cbd5e1;border-radius:8px;font-family:inherit;font-size:1rem;transition:border-color .2s}.input-group input:focus,.input-group textarea:focus{outline:none;border-color:var(--primary-color)}.row-group{flex-direction:row;align-items:center}.row-group input{flex:1}.ai-btn{background:linear-gradient(135deg,#6366f1,#a855f7);white-space:nowrap}.ai-btn:hover{background:linear-gradient(135deg,#4f46e5,#9333ea)}.ai-btn:disabled,.save-btn:disabled{background:#cbd5e1;cursor:not-allowed}.edit-section{margin-top:2rem;padding-top:1.5rem;border-top:1px dashed #e2e8f0}.fade-in{animation:fadeIn .4s ease-out forwards}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.save-btn{width:100%;margin-top:1rem}.success-text{color:#10b981;font-weight:600;margin-top:1rem;text-align:center}.secondary-btn{background:#fff;color:#475569;border:1px solid #cbd5e1;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s}.secondary-btn:hover:not(:disabled){background:#f8fafc;color:var(--primary-color);border-color:var(--primary-color)}.csv-card{background:#f8fafc;border:1px dashed #cbd5e1;box-shadow:none}.memorize-container{max-width:700px;margin:0 auto;padding:1rem}.memorize-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.timer-badge{background:#fff;padding:.5rem 1rem;border-radius:9999px;font-weight:700;font-size:1.1rem;box-shadow:0 2px 4px #0000000d;transition:all .3s;color:var(--text-color)}.timer-badge.time-up{background:#fef2f2;color:#ef4444;animation:pulse 1s infinite alternate}@keyframes pulse{0%{transform:scale(1)}to{transform:scale(1.05)}}.word-list{display:flex;flex-direction:column;gap:1rem}.word-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 4px #0000000d;border-left:4px solid var(--primary-color);transition:all .3s}.word-card.hard-word{border-left-color:#ef4444;background:snow}.word-main{display:flex;justify-content:space-between;align-items:center}.word-en{display:flex;align-items:center;gap:1rem}.word-en .text{font-size:1.5rem;font-weight:700}.icon-btn{background:#f1f5f9;border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}.icon-btn:hover{background:#e2e8f0}.warning-icon{font-size:.8rem;color:#ef4444;background:#fef2f2;padding:.2rem .5rem;border-radius:4px;font-weight:700}.toggle-btn{background:#fff;color:var(--primary-color);border:1px solid var(--primary-color);padding:.5rem 1rem;border-radius:6px;font-weight:700;cursor:pointer;transition:all .2s}.toggle-btn:hover{background:var(--primary-color);color:#fff}.word-details{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #f1f5f9;text-align:left}.word-details p{margin:.5rem 0;line-height:1.5}.next-batch-btn{margin-top:2rem;padding:1rem;font-size:1.1rem;width:100%}.word-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000000d}.word-table th,.word-table td{padding:1rem;text-align:left;border-bottom:1px solid #e2e8f0}.word-table th{background:#f8fafc;font-weight:600;color:#475569;white-space:nowrap}.word-table tr:last-child td{border-bottom:none}.word-table input,.word-table textarea{padding:.5rem;border:1px solid #cbd5e1;border-radius:4px;font-family:inherit;font-size:.9rem;transition:border-color .2s}.word-table input:focus,.word-table textarea:focus{outline:none;border-color:var(--primary-color)}.tank-section{display:flex;flex-direction:column;align-items:center;margin:3rem 0;padding:2rem;background:#fff;border-radius:20px;box-shadow:0 4px 15px #0000000d}.tank-container{position:relative;width:100%;max-width:500px;height:300px;display:flex;justify-content:center;align-items:flex-end;gap:2rem}.tank-outer{width:220px;height:100%;background:linear-gradient(90deg,#e2e8f0,#f8fafc 20%,#f8fafc 80%,#e2e8f0);border:1px solid rgba(255,255,255,.5);border-radius:0 0 60px 60px;position:relative;overflow:hidden;box-shadow:inset 10px 0 15px -10px #0000001a,inset -10px 0 15px -10px #0000001a,0 10px 25px -5px #0000000d}.tank-glass-reflection{position:absolute;top:0;left:15%;width:15%;height:100%;background:linear-gradient(90deg,#fff0,#fff6,#fff0);z-index:10;pointer-events:none}.tank-top-rim{position:absolute;top:-10px;left:0;width:100%;height:20px;background:#e2e8f0;border-radius:50%;border:1px solid #cbd5e1;z-index:5}.tank-inner{position:absolute;bottom:0;left:0;width:100%;height:100%;perspective:400px}.water-layer{position:absolute;bottom:0;left:0;width:100%;transition:height 1s cubic-bezier(.4,0,.2,1)}.water-surface{position:absolute;top:-10px;left:0;width:100%;height:20px;border-radius:50%;z-index:1}.memorized-water{background:linear-gradient(90deg,#1e40af,#3b82f6 20%,#3b82f6 80%,#1e40af);z-index:3}.memorized-water .water-surface{background:#3b82f6;box-shadow:inset 0 0 10px #ffffff4d}.checked-water{background:linear-gradient(90deg,#3b82f6,#60a5fa 20%,#60a5fa 80%,#3b82f6);z-index:2;opacity:.85}.checked-water .water-surface{background:#60a5fa;box-shadow:inset 0 0 10px #ffffff4d}.registered-water{background:linear-gradient(90deg,#93c5fd,#bfdbfe 20%,#bfdbfe 80%,#93c5fd);z-index:1;opacity:.4}.registered-water .water-surface{background:#bfdbfe}.wave{position:absolute;top:-20px;left:0;width:200%;height:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff' fill-opacity='0.2'/%3E%3C/svg%3E");background-size:50% 100%;animation:waveMotion 4s linear infinite}.memorized-water .wave{animation-duration:3s;filter:brightness(.8)}.checked-water .wave{animation-duration:5s;filter:brightness(.9)}.registered-water .wave{animation-duration:7s}@keyframes waveMotion{0%{transform:translate(0)}to{transform:translate(-50%)}}.tank-labels-left,.tank-labels-right{position:relative;flex:1;height:100%}.tank-label-item{position:absolute;display:flex;align-items:center;gap:.5rem;white-space:nowrap;transition:bottom 1s cubic-bezier(.4,0,.2,1);transform:translateY(50%)}.label-content{display:flex;flex-direction:column;line-height:1.2}.label-subtext{font-size:.75rem;color:#64748b;font-weight:500}.tank-labels-left .tank-label-item{right:0;flex-direction:row-reverse}.label-dot{width:10px;height:10px;border-radius:50%}.label-dot.memorized{background:#1d4ed8}.label-dot.checked{background:#60a5fa}.label-dot.registered{background:#93c5fd}.label-text{font-size:.85rem;font-weight:600;color:#475569}.tank-caption{text-align:center;margin-top:1.5rem;font-size:.95rem;color:#64748b;font-weight:500;line-height:1.6}.guide-step-body{padding:.5rem 2rem 1.5rem 2.5rem;color:#64748b;font-size:.95rem;line-height:1.6}.learning-guide-container{margin-bottom:2.5rem}.guide-title{margin-top:0;margin-bottom:1.5rem;color:var(--primary-color);font-size:1.5rem;font-weight:700;text-align:center}.guide-steps-grid{display:grid;grid-template-columns:1fr;gap:1.25rem;max-width:800px;margin:0 auto}.guide-step-card{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000000d,0 2px 4px -1px #0000000f;border-left:5px solid var(--accent-color);cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden;display:flex;flex-direction:column}.guide-step-card:hover{transform:translateY(-4px);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.guide-step-card.active{background:#fbfcfe}.guide-step-header{padding:1.25rem;display:flex;align-items:center;gap:1rem}.guide-step-icon{font-size:1.5rem;background:#f1f5f9;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px}.guide-step-name{font-weight:700;color:#334155;flex:1;font-size:1rem}.guide-step-arrow{color:#94a3b8;font-size:.8rem;transition:transform .3s}.guide-step-card.active .guide-step-arrow{transform:rotate(180deg)}.guide-primary-button{display:inline-block;background:var(--accent-color);color:#fff;padding:.6rem 1.25rem;border-radius:999px;text-decoration:none;font-weight:700;font-size:.9rem;transition:all .2s;box-shadow:0 4px 6px -1px #0000001a}.guide-primary-button:hover{transform:scale(1.05);box-shadow:0 10px 15px -3px #00000026;filter:brightness(1.1)}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
