.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap;padding:.75rem 1.75rem;background:#fff;border-bottom:1px solid rgba(15,23,42,.08);box-shadow:0 4px 16px #0f172a0d;position:sticky;top:0;z-index:10}.app-header__title{display:flex;align-items:center;gap:1.25rem;flex:1 1 320px;min-width:0;flex-wrap:nowrap}.app-header__title .app-nav{margin-left:auto}.app-header .brand{font-size:1.35rem;font-weight:700;color:var(--primary);text-decoration:none;line-height:1}.app-nav{display:flex;gap:1.5rem;font-weight:600;align-items:center}.app-nav a{position:relative;display:inline-flex;align-items:center;padding-bottom:.15rem;text-decoration:none}.app-nav a:after{content:"";position:absolute;inset:auto 0 0;height:2px;border-radius:999px;background-color:currentColor;opacity:.35}.app-nav a:hover:after,.app-nav a:focus-visible:after{opacity:.85}.app-header__right{display:flex;align-items:center;justify-content:flex-end;gap:1.25rem;flex-wrap:wrap}.account-menu{position:relative}.account-panel{position:absolute;right:0;top:calc(100% + .5rem);width:min(320px,80vw);background:#fff;border-radius:1rem;box-shadow:0 30px 80px #0f172a2e;padding:1.25rem;border:1px solid rgba(15,23,42,.08);z-index:20}.account-panel__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.account-panel__title{margin:0;font-weight:600;color:var(--primary)}.account-panel__subtitle{margin:.25rem 0 0;color:var(--muted);font-size:.95rem}.account-form{display:flex;flex-direction:column;gap:.75rem}.account-form__field{display:flex;flex-direction:column;gap:.35rem;font-size:.95rem;font-weight:600;color:var(--muted)}.account-form__field input{border-radius:.65rem;border:1px solid var(--border);padding:.65rem .75rem;font-size:1rem}.account-panel__footer{margin:.8rem 0 0;font-size:.95rem;color:var(--muted)}.link-button{background:none;border:none;color:var(--primary);font-weight:600;cursor:pointer;padding:0}.link-button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.cloud-toast{position:fixed;top:72px;right:1.5rem;display:flex;align-items:center;gap:.75rem;padding:.9rem 1.2rem;border-radius:.9rem;background-color:#4f46e51a;border:1px solid rgba(79,70,229,.2);box-shadow:0 10px 40px #0f172a26;z-index:30}.account-pill{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1.2rem;padding:.45rem .9rem;border-radius:999px;background-color:#4f46e514;border:1px solid rgba(79,70,229,.2)}.account-pill__line{display:flex;align-items:center;gap:.75rem;width:auto;justify-content:flex-start}.account-pill__status{font-size:.85rem;font-weight:600;color:var(--primary)}.account-pill__email{font-size:.9rem}.cloud-status{display:inline-flex;align-items:center;gap:.3rem;font-size:.8rem;font-weight:600;color:var(--muted)}.cloud-status:before{content:"";width:.55rem;height:.55rem;border-radius:999px;background-color:currentColor}.cloud-status--success{color:#16a34a}.cloud-status--syncing{color:#f59e0b}.cloud-status--error{color:#dc2626}.cloud-status--disabled{color:var(--muted)}.app-main{flex:1;width:min(1200px,100%);margin:0 auto;padding:2rem 1.5rem 3rem}.app-footer{padding:1.2rem 2rem;text-align:center;color:var(--muted);font-size:.95rem;border-top:1px solid var(--border);background-color:#fffc;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.quiz-grid{display:grid;gap:2rem;grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-grid--grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-grid--stack{grid-template-columns:1fr}.card{background:var(--surface);border-radius:1.2rem;padding:1.5rem;box-shadow:0 20px 60px #0f172a0d;border:1px solid rgba(255,255,255,.6)}.card__title{margin-top:0;margin-bottom:.6rem}.card__content{color:#0f172a;display:flex;flex-direction:column;gap:.5rem}.card__footer{margin-top:1.2rem}.card-stack{display:flex;flex-direction:column;gap:1rem}.section-heading h2{margin:0}.section-heading p{color:var(--muted);margin-top:.3rem}.status-message{padding:1.2rem 1.5rem}.status-message--error{border-left:4px solid var(--error);background-color:#dc262614}.status-message--info{border-left:4px solid var(--primary);background-color:#4f46e514}.status-message h3{margin:0 0 .3rem}.status-message p{margin:0;color:var(--muted)}.meta{font-size:.95rem;color:var(--muted)}.score{margin:0;font-size:2.4rem;font-weight:700}.score small{display:block;font-size:1rem;font-weight:500;color:var(--muted)}.export-tools{margin-top:2.5rem;display:flex;flex-direction:column;gap:1rem}.export-page{display:flex;flex-direction:column;gap:1.5rem}.export-page__card{width:100%}.export-page__summary{margin:0;font-weight:600;color:var(--muted)}.export-page__actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1rem}.export-page__status{margin:.5rem 0 0;font-weight:600;color:var(--muted)}.export-page__status--success{color:var(--success)}.export-page__status--error{color:var(--error)}.export-page__preview{width:100%;min-height:280px;border-radius:.9rem;border:1px solid var(--border);padding:1rem;background:#0f172a;color:#f8fafc;font-family:JetBrains Mono,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem;resize:vertical}.export-actions{display:flex;flex-wrap:wrap;gap:1rem}.export-footer{display:flex;flex-direction:column;gap:1rem}.import-actions{display:flex;flex-direction:column;gap:.5rem}.import-actions__controls{display:flex;flex-direction:column;gap:.25rem}.import-actions__controls button{align-self:flex-start}.import-actions__hint{margin:0;color:var(--muted);font-size:.9rem}.import-actions__status{margin:0;font-weight:500}.import-actions__status--error{color:var(--error)}.import-actions__status--success{color:var(--success)}.attempts-table-wrapper{margin-top:1.25rem;overflow-x:auto}.attempts-table{width:100%;border-collapse:collapse;font-size:.95rem}.attempts-table th,.attempts-table td{padding:.65rem .5rem;border-bottom:1px solid var(--border);text-align:left}.attempts-table th{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.attempts-table td:last-child{text-align:right}.quiz-detail-page{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}.back-link{color:var(--primary);text-decoration:none;font-weight:600}.quiz-description{color:var(--muted)}.progress-indicator{font-weight:600;margin-bottom:1rem}.question-card{display:flex;flex-direction:column;gap:1rem}.question-card--review{border:1px solid rgba(79,70,229,.25);border-radius:1rem;padding:1rem 1.25rem;background-color:#4f46e504}.options-list{display:flex;flex-direction:column;gap:.7rem}.option{display:flex;align-items:center;gap:.6rem;padding:.9rem 1rem;border:1px solid var(--border);border-radius:.8rem;background-color:#4f46e505;cursor:pointer;transition:border-color .2s ease}.option input{margin-right:.3rem}.option--selected{border-color:var(--primary);background-color:#4f46e51a}.options-list--review .option{cursor:default}.option--review{border-style:dashed}.option--correct{border-color:#16a34a99;background-color:#16a34a14}.option--selected.option--correct{box-shadow:inset 0 0 0 2px #16a34a4d}.option--selected:not(.option--correct){box-shadow:inset 0 0 0 2px #4f46e566}.option--disabled{opacity:.75}.option-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-left:auto}.badge{font-weight:700;background-color:#0f172a14;padding:.2rem .5rem;border-radius:999px}.pill{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;border-radius:999px;padding:.1rem .6rem;border:1px solid currentColor}.pill--correct{color:var(--success);background-color:#16a34a1a;border-color:#16a34a66}.pill--selected{color:var(--primary);background-color:#4f46e514;border-color:#4f46e566}.review-explanation{border-radius:.9rem;padding:.9rem 1rem;background-color:#0f172a0a}.review-explanation h4{margin:0 0 .4rem}.review-navigation{display:flex;justify-content:space-between;gap:.75rem}.review-navigation button{min-width:120px}.form-error{margin:0;color:var(--error);font-weight:600}.feedback{border-radius:1rem;padding:.9rem 1.1rem;font-weight:500}.feedback--correct{background-color:#16a34a1a;border:1px solid rgba(22,163,74,.4)}.feedback--incorrect{background-color:#dc262614;border:1px solid rgba(220,38,38,.4)}.question-actions{display:flex;justify-content:flex-end}.summary-score{text-align:center;margin:1rem 0 2rem}.summary-score__value{font-size:3.5rem;margin:0}.summary-score__meta{margin:0;color:var(--muted)}.summary-actions{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}.not-found{display:flex;flex-direction:column;gap:1rem;align-items:flex-start}@media(max-width:720px){.app-header,.app-footer{padding:1rem}.app-header__title{width:100%}.app-main{padding:1.5rem 1rem 2.5rem}.app-nav{font-size:.95rem}.app-header__right{flex-direction:column;align-items:flex-end;gap:.75rem}.account-panel{position:fixed;top:auto;bottom:1rem;right:1rem;width:calc(100% - 2rem);max-width:none}.cloud-toast{left:1rem;right:1rem;top:auto;bottom:1rem}.question-actions{justify-content:center}.attempts-table thead{display:none}.attempts-table tr{display:grid;grid-template-columns:1fr;padding:.4rem 0}.attempts-table td{border:none;padding:.3rem 0;display:flex;justify-content:space-between;gap:.75rem}.attempts-table td:before{content:attr(data-label);font-weight:600;color:var(--muted)}.export-page__actions{flex-direction:column;align-items:stretch}}:root{font-family:Inter,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.5;font-weight:400;color:#0f172a;background-color:#eef2ff;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--primary: #4f46e5;--primary-dark: #4338ca;--accent: #f97316;--surface: #ffffff;--muted: #64748b;--border: #e2e8f0;--error: #dc2626;--success: #16a34a}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#eef2ff,#f8fafc 80%);color:#0f172a}a{color:inherit}button,.button{border-radius:999px;border:none;padding:.7rem 1.6rem;font-size:1rem;font-weight:600;font-family:inherit;background-color:var(--primary);color:#fff;cursor:pointer;transition:background-color .2s ease,transform .2s ease;text-align:center;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:.4rem}button:hover,.button:hover{background-color:var(--primary-dark)}button:disabled{opacity:.5;cursor:not-allowed}.button--secondary{background-color:#4f46e51a;color:var(--primary)}.button--secondary:hover{background-color:#4f46e533}.button--ghost{background-color:transparent;color:var(--primary);border:1px solid rgba(79,70,229,.4)}.button--ghost:hover{background-color:#4f46e514}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.quiz-controls{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;margin-bottom:2rem}.quiz-search{flex:1 1 320px;display:flex;align-items:center;gap:.5rem;padding:.45rem .85rem;border-radius:1rem;border:1px solid var(--border);background-color:var(--surface);box-shadow:0 16px 40px #0f172a14}.quiz-search input{flex:1;border:none;font-size:1rem;font-family:inherit;background:transparent;outline:none}.quiz-search__clear{border:none;border-radius:999px;background-color:#4f46e51a;color:var(--primary);font-weight:600;font-size:.85rem;padding:.35rem .9rem;cursor:pointer}.quiz-search__clear:hover{background-color:#4f46e533}.group-filter{flex:1 1 260px;display:flex;flex-direction:column;gap:.5rem;position:relative}.group-filter__label-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.group-filter__heading{margin:0;font-size:.95rem;font-weight:600}.group-filter__hint{font-size:.85rem;color:var(--muted)}.group-filter__pills{display:flex;flex-wrap:wrap;gap:.5rem}.group-filter__button{border:1px solid var(--border);border-radius:999px;background-color:#fff;color:#0f172a;padding:.35rem 1rem;font-size:.9rem;font-weight:600;display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.group-filter__button--active{border-color:var(--primary);color:var(--primary);background-color:#4f46e51f}.group-filter__status{width:1.2rem;height:1.2rem;border-radius:999px;font-size:.75rem;font-weight:700;color:var(--success);background-color:#16a34a26;border:1px solid rgba(22,163,74,.4);display:inline-flex;align-items:center;justify-content:center}.group-filter__hamburger{display:inline-flex;align-items:center;gap:.6rem;border:1px solid var(--border);border-radius:999px;padding:.45rem 1.1rem;background-color:#fff;color:#0f172a;font-weight:600;cursor:pointer}.group-filter__icon{width:18px;height:2px;position:relative;background-color:currentColor;border-radius:999px}.group-filter__icon:before,.group-filter__icon:after{content:"";position:absolute;left:0;width:18px;height:2px;background-color:currentColor;border-radius:999px}.group-filter__icon:before{top:-6px}.group-filter__icon:after{top:6px}.group-filter__menu{position:absolute;top:4.5rem;left:0;right:0;background-color:var(--surface);border:1px solid var(--border);border-radius:1rem;padding:.75rem;box-shadow:0 20px 60px #0f172a1f;display:flex;flex-direction:column;gap:.5rem;z-index:5}.group-section{margin-top:1.5rem}.group-section__heading{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.6rem}.group-section__heading h3{margin:0}.group-section__count{font-size:.85rem;color:var(--muted)}@media(max-width:720px){.quiz-controls{flex-direction:column;align-items:stretch;gap:.75rem}.quiz-search,.group-filter{flex:initial;width:100%}.group-filter__menu{position:static;margin-top:.5rem}}
