:root{color-scheme:light dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.4}*{box-sizing:border-box}body{margin:0;padding:0;background:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #1a1a1a)}.app{max-width:640px;margin:0 auto;padding:16px}.shell-centered{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:60vh;text-align:center}.app-header h1{margin:0 0 4px;font-size:1.5rem}.hello{margin:0 0 16px;color:var(--tg-theme-hint-color, #707579)}.check-section h2,.progress-section h2,.result-section h2{font-size:1.1rem;margin:16px 0 8px}.check-form{display:flex;flex-direction:column;gap:8px}.field-label{font-size:.875rem;color:var(--tg-theme-hint-color, #707579)}.check-form input[type=text]{padding:10px 12px;font-size:1rem;border-radius:8px;border:1px solid var(--tg-theme-section-separator-color, #d8d8d8);background:var(--tg-theme-secondary-bg-color, #f3f3f3);color:inherit}.check-form button[type=submit]{padding:10px 12px;font-size:1rem;font-weight:600;border-radius:8px;border:none;background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);cursor:pointer}.check-form button[type=submit]:disabled{opacity:.6;cursor:progress}.form-error{color:var(--tg-theme-destructive-text-color, #cc2929);margin:4px 0 0}.form-hint{color:var(--tg-theme-hint-color, #707579);font-size:.9em;margin:4px 0 0}.job-progress{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:8px;background:var(--tg-theme-secondary-bg-color, #f3f3f3)}.job-progress-label{display:flex;gap:8px;align-items:center}.status-badge{font-size:.75rem;text-transform:uppercase;padding:2px 6px;border-radius:4px;background:var(--tg-theme-section-separator-color, #d8d8d8)}.status-badge[data-status=succeeded]{background:#2e9d4a;color:#fff}.status-badge[data-status=failed]{background:#cc2929;color:#fff}.status-badge[data-status=canceled]{background:#8a8a8a;color:#fff}.mode-pill{font-size:.75rem;padding:2px 6px;border-radius:4px;background:var(--tg-theme-section-separator-color, #d8d8d8)}.job-progress-bar{height:6px;border-radius:3px;background:var(--tg-theme-section-separator-color, #d8d8d8);overflow:hidden}.job-progress-bar-fill{height:100%;background:var(--tg-theme-button-color, #2481cc);transition:width .24s ease-out}.result-card{padding:12px;border-radius:8px;background:var(--tg-theme-secondary-bg-color, #f3f3f3)}.result-card h3{margin:0 0 4px}.from-cache{font-size:.8rem;color:var(--tg-theme-hint-color, #707579);font-weight:400}.result-blurb{margin:0 0 12px;color:var(--tg-theme-hint-color, #707579)}.score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:0}.score-grid>div{background:var(--tg-theme-bg-color, #ffffff);border-radius:6px;padding:8px}.score-grid dt{font-size:.75rem;color:var(--tg-theme-hint-color, #707579);margin:0 0 2px}.score-grid dd{margin:0;font-size:1rem;font-weight:600}.word-list{margin:12px 0 0}.word-list h4{font-size:.9rem;margin:0 0 4px;color:var(--tg-theme-hint-color, #707579)}.word-list p{margin:0;font-size:.9rem}.nav-tabs{display:flex;gap:4px;margin:8px 0 16px}.nav-tab{flex:1;min-width:0;padding:8px 6px;font-size:.8rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;border:1px solid var(--tg-theme-section-separator-color, #d8d8d8);border-radius:8px;background:var(--tg-theme-secondary-bg-color, #f3f3f3);color:inherit;cursor:pointer}.nav-tab[data-active=true]{background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);border-color:transparent}.progress-screen{display:flex;flex-direction:column;gap:14px}.progress-level{display:flex;align-items:baseline;gap:10px}.progress-cefr{font-size:2rem;font-weight:700}.progress-provisional{font-size:.8rem;color:var(--tg-theme-hint-color, #8a8a8a)}.progress-counts{display:flex;gap:24px;margin:0}.progress-counts dt{font-size:.8rem;color:var(--tg-theme-hint-color, #8a8a8a)}.progress-counts dd{margin:2px 0 0;font-size:1.4rem;font-weight:600}.progress-skills ul,.progress-history ul{list-style:none;padding:0;margin:6px 0 0;display:flex;flex-direction:column;gap:6px}.progress-skills li{display:flex;justify-content:space-between;gap:12px}.progress-skill-status{color:var(--tg-theme-hint-color, #8a8a8a);font-size:.9rem}.progress-history li{display:flex;justify-content:space-between;gap:8px;font-size:.85rem}.progress-event-source,.progress-event-date{color:var(--tg-theme-hint-color, #8a8a8a)}.progress-event-date{white-space:nowrap}.progress-diagnostic{margin:4px 0 0;font-size:.75rem;color:var(--tg-theme-hint-color, #8a8a8a)}.progress-loading{color:var(--tg-theme-hint-color, #8a8a8a)}.find-form,.daily-panel{display:flex;flex-direction:column;gap:8px}.find-form input[type=text]{padding:10px 12px;font-size:1rem;border-radius:8px;border:1px solid var(--tg-theme-section-separator-color, #d8d8d8);background:var(--tg-theme-secondary-bg-color, #f3f3f3);color:inherit}.find-form button[type=submit],.daily-panel .daily-button{padding:10px 12px;font-size:1rem;font-weight:600;border-radius:8px;border:none;background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);cursor:pointer}.find-form button[type=submit]:disabled,.daily-panel .daily-button:disabled{opacity:.6;cursor:progress}.daily-blurb{margin:0;color:var(--tg-theme-hint-color, #707579)}.recommendations-list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}.recommendation-card{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:8px;background:var(--tg-theme-secondary-bg-color, #f3f3f3)}.recommendation-card-header{display:flex;gap:8px;align-items:center}.recommendation-rank{font-weight:700;color:var(--tg-theme-hint-color, #707579);min-width:28px}.recommendation-score{margin-left:auto;font-weight:600;color:var(--tg-theme-hint-color, #707579)}.verdict-badge{font-size:.75rem;text-transform:uppercase;padding:2px 8px;border-radius:4px;background:var(--tg-theme-section-separator-color, #d8d8d8)}.verdict-badge[data-verdict=I_PLUS_ONE]{background:#2e9d4a;color:#fff}.verdict-badge[data-verdict=STRETCH]{background:#f3a712;color:#fff}.verdict-badge[data-verdict=TOO_EASY]{background:#8a8a8a;color:#fff}.verdict-badge[data-verdict=TOO_HARD]{background:#cc2929;color:#fff}.recommendation-title{margin:0;font-size:1rem;font-weight:600}.recommendation-channel,.recommendation-duration{margin:0;font-size:.85rem;color:var(--tg-theme-hint-color, #707579)}.recommendation-blurb{margin:4px 0 0;font-size:.9rem;color:var(--tg-theme-hint-color, #707579)}.recommendation-start{padding:8px 12px;font-size:.95rem;font-weight:600;border-radius:8px;border:none;background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);cursor:pointer}.recommendation-start:disabled{opacity:.6;cursor:progress}.recommendation-started{margin:0;font-size:.9rem;color:#2e9d4a;font-weight:600}.recommendation-watching{display:flex;flex-direction:column;gap:8px}.mark-learned{display:flex;flex-direction:column;gap:6px}.mark-learned-label{font-size:.85rem;color:var(--tg-theme-hint-color, #8a8a8a)}.mark-learned-input{padding:8px 10px;font-size:.95rem;border:1px solid var(--tg-theme-section-separator-color, #d8d8d8);border-radius:8px;background:var(--tg-theme-bg-color, #ffffff);color:inherit}.mark-learned-submit{align-self:flex-start;padding:7px 12px;font-size:.9rem;font-weight:600;border-radius:8px;border:none;background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);cursor:pointer}.mark-learned-submit:disabled{opacity:.6;cursor:not-allowed}.mark-learned-done{margin:0;font-size:.9rem;color:#2e9d4a;font-weight:600}.watch-outcome{display:flex;flex-direction:column;gap:6px}.watch-outcome-label{margin:0;font-size:.85rem;color:var(--tg-theme-hint-color, #8a8a8a)}.watch-outcome-buttons{display:flex;flex-wrap:wrap;gap:6px}.watch-outcome-button{padding:7px 12px;font-size:.9rem;font-weight:600;border-radius:8px;border:1px solid var(--tg-theme-button-color, #2481cc);background:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-button-color, #2481cc);cursor:pointer}.watch-outcome-button:disabled{opacity:.6;cursor:not-allowed}.watch-outcome-done{margin:0;font-size:.9rem;color:#2e9d4a;font-weight:600}.quiz{display:flex;flex-direction:column;gap:12px}.quiz-intro,.quiz-generating{margin:0;font-size:.9rem;color:var(--tg-theme-hint-color, #8a8a8a)}.quiz-questions{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px}.quiz-prompt{margin:0 0 8px;font-weight:600}.quiz-options{display:flex;flex-direction:column;gap:6px}.quiz-option{display:flex;align-items:center;gap:8px}.quiz-start,.quiz-submit{align-self:flex-start;padding:8px 14px;font-size:.95rem;font-weight:600;border-radius:8px;border:none;background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);cursor:pointer}.quiz-submit:disabled{opacity:.6;cursor:not-allowed}.quiz-score{margin:0;font-size:1.05rem;font-weight:700}.recommendations-empty,.result-loading{margin:0;color:var(--tg-theme-hint-color, #707579)}.placement-screen{display:flex;flex-direction:column;gap:16px}.placement-status{margin:0;color:var(--tg-theme-hint-color, #707579);font-weight:600}.placement-card{display:flex;flex-direction:column;gap:14px}.placement-prompt{margin:0;font-size:1.05rem;font-weight:600}.placement-snippet{padding:12px;border-radius:10px;background:var(--tg-theme-secondary-bg-color, #f1f1f4)}.placement-snippet-line{margin:0 0 4px;font-size:.95rem}.placement-question{border:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.placement-options{display:flex;flex-direction:column;gap:8px}.placement-option{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:var(--tg-theme-secondary-bg-color, #f1f1f4);cursor:pointer}.placement-option input:disabled{cursor:not-allowed}.placement-option-idk{font-style:italic;color:var(--tg-theme-hint-color, #707579)}.placement-card button[type=submit]{padding:12px;font-size:1rem;font-weight:600;border:none;border-radius:10px;background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);cursor:pointer}.placement-card button[type=submit]:disabled{opacity:.6;cursor:progress}.placement-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.placement-controls button{padding:8px 12px;font-size:.9rem;border-radius:8px;border:1px solid var(--tg-theme-hint-color, #c4c9cc);background:transparent;cursor:pointer}.placement-controls button:disabled{opacity:.5;cursor:not-allowed}.placement-danger{color:#c0392b;border-color:#c0392b!important}.placement-result{display:flex;flex-direction:column;gap:8px}.placement-cefr{margin:0;font-size:1.1rem}.placement-theta{margin:0;font-size:.9rem;color:var(--tg-theme-hint-color, #707579)}
