@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#F7F4FC;--surface:#FFFFFF;--surface-2:#FBF9FE;--sidebar:#FFFFFF;--text:#231D2E;--muted:#777084;--border:#EAE4F2;--primary:#6D35E8;--primary-strong:#5A24D6;--primary-soft:#F0E9FF;--coral:#FF7657;--coral-soft:#FFF0EB;--success:#168A5B;--success-soft:#E7F7EF;--warning:#A75B13;--shadow:0 12px 34px rgba(47,28,77,.055);--radius:18px;font-family:'DM Sans',Arial,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}
:root[data-theme="dark"]{--bg:#17131F;--surface:#211B2B;--surface-2:#292133;--sidebar:#1C1725;--text:#F4EFFB;--muted:#B2A9C0;--border:#393044;--primary:#A988FF;--primary-strong:#C0A9FF;--primary-soft:#33254E;--coral:#FF8D72;--coral-soft:#3A2727;--success:#66D7A5;--success-soft:#20382F;--warning:#F1B46F;--shadow:0 12px 34px rgba(0,0,0,.2)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:'DM Sans',Arial,sans-serif;font-size:14px}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,strong{font-family:'Manrope','DM Sans',Arial,sans-serif}h1{font-size:clamp(27px,3vw,37px);letter-spacing:-1.25px;line-height:1.18;margin:0 0 10px}h2{font-size:22px;letter-spacing:-.5px;margin:0}h3{font-size:16px;letter-spacing:-.2px;margin:0}.muted{color:var(--muted)}.lead{font-size:15px;line-height:1.65;max-width:710px}.small{font-size:12px}.small-note{font-size:11px;color:var(--muted);line-height:1.55}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--primary);margin:0 0 12px}.app-shell{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:28px 16px 18px;background:var(--sidebar);border-right:1px solid var(--border);z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 10px;margin-bottom:46px;color:var(--text)}.brand:hover{text-decoration:none}.brand-icon{width:43px;height:43px;border-radius:13px;overflow:hidden;display:grid;place-items:center;flex-shrink:0}.brand-icon img{width:100%;height:100%}.brand-wordmark strong{display:block;font-size:19px;letter-spacing:-.9px}.brand-wordmark small{display:block;color:var(--primary);font-size:9px;letter-spacing:2.7px;font-weight:800;margin-top:2px}.sidebar-caption{padding:0 12px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:1.4px;margin:0 0 12px}.main-nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:var(--muted);display:flex;align-items:center;gap:13px;width:100%;padding:12px;border-radius:11px;text-align:left;font-weight:600;font-size:13px;transition:background .15s,color .15s}.nav-item:hover{background:var(--surface-2);color:var(--text)}.nav-item.active{background:var(--primary-soft);color:var(--primary);font-weight:700}.nav-glyph{width:21px;display:inline-grid;place-items:center;font-size:20px;font-weight:600}.lower-caption{margin-top:35px}.sidebar-bottom{margin-top:auto;padding:16px 12px;display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}.support-mark{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--primary);color:#fff;font-family:'Manrope',sans-serif;font-weight:800;font-size:11px;flex-shrink:0}.sidebar-bottom strong{display:block;font-size:11px;margin-bottom:4px}.sidebar-bottom span{display:block;color:var(--muted);font-size:10px;line-height:1.4}.sidebar-credit{font-size:9px;color:var(--muted);text-align:center;margin-top:13px}.main-area{min-width:0;min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.2vw,48px);background:var(--surface);border-bottom:1px solid var(--border)}.breadcrumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:10px}.breadcrumb strong{color:var(--text);font-weight:700}.topbar-actions{display:flex;align-items:center;gap:14px}.account-label{font-size:12px;font-weight:600}.theme-toggle,.avatar-button,.mobile-menu{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px}.theme-toggle{display:flex;align-items:center;gap:8px;padding:9px 11px;font-size:11px;font-weight:600}.theme-toggle span:first-child{font-size:17px}.avatar-button{width:34px;height:34px;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-weight:800;border-color:transparent}.mobile-menu{display:none}.view-container{width:100%;max-width:1460px;margin:0 auto;padding:34px clamp(20px,3.2vw,48px) 30px;flex:1}.app-footer{display:flex;justify-content:space-between;gap:15px;padding:18px clamp(20px,3.2vw,48px);border-top:1px solid var(--border);color:var(--muted);font-size:10px}.app-footer>span:last-child{display:flex;gap:18px}.app-footer a{color:var(--muted)}.welcome-row{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:28px}.status-chip{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--border);background:var(--surface);border-radius:99px;color:var(--muted);font-size:10px;white-space:nowrap}.status-dot{width:7px;height:7px;border-radius:50%;background:#35B982;box-shadow:0 0 0 3px rgba(53,185,130,.12)}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:25px}.metric-card{background:var(--surface);border:1px solid var(--border);border-radius:15px;padding:19px 20px;min-height:117px;box-shadow:var(--shadow)}.metric-label,.metric-note{display:block;color:var(--muted);font-size:11px}.metric-card>strong{display:block;font-size:29px;letter-spacing:-1px;margin:9px 0 5px}.metric-card .metric-category{font-size:20px}.metric-note{font-size:10px}.setup-banner{display:flex;align-items:center;gap:16px;padding:18px 20px;margin:0 0 31px;border-radius:16px;border:1px solid #E3D8FA;background:linear-gradient(110deg,var(--primary-soft),var(--surface));}.banner-mark{width:45px;height:45px;border-radius:12px;background:var(--primary);display:grid;place-items:center;color:white;font-family:'Manrope';font-size:12px;font-weight:800;flex-shrink:0}.banner-copy{flex:1}.banner-copy h2{font-size:16px;margin-bottom:5px}.banner-copy p{font-size:12px;color:var(--muted);line-height:1.5;margin:0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:24px 0 15px}.section-head h2{font-size:21px}.text-button{padding:5px 0;color:var(--primary);background:transparent;border:0;font-size:11px;font-weight:700}.text-button:hover{text-decoration:underline}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.feature-card{position:relative;overflow:hidden;min-height:242px;border-radius:17px;padding:22px 23px;border:1px solid var(--border);background:var(--surface)}.feature-primary{background:linear-gradient(145deg,var(--primary-soft),var(--surface));border-color:#E4D9FA}.feature-secondary{background:linear-gradient(145deg,var(--coral-soft),var(--surface));border-color:#F7DCD4}.feature-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.subject-icon{width:39px;height:39px;display:grid;place-items:center;background:var(--primary);color:white;border-radius:11px;font-weight:800;font-family:'Manrope';font-size:17px}.subject-icon.coral{background:var(--coral)}.pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:99px;background:var(--surface-2);border:1px solid var(--border);color:var(--muted);font-size:9px;white-space:nowrap}.pill-live{background:var(--success-soft);border-color:transparent;color:var(--success)}.feature-card h3{font-size:20px;margin-bottom:7px}.feature-card p{font-size:12px;color:var(--muted);line-height:1.6;max-width:420px;min-height:39px;margin:0 0 13px}.feature-meta{display:flex;align-items:center;gap:9px;font-size:10px;color:var(--muted);margin-bottom:19px}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;border:1px solid transparent;border-radius:10px;padding:11px 15px;font-size:12px;font-weight:700;transition:transform .12s,background .12s,border-color .12s}.button:hover:not(:disabled){transform:translateY(-1px)}.button-primary{background:var(--primary);color:white}.button-primary:hover{background:var(--primary-strong)}.button-light{background:var(--text);color:var(--surface)}.button-outline{background:var(--surface);border-color:var(--border);color:var(--text)}.button-outline:hover{border-color:var(--primary);color:var(--primary)}.button-danger{color:#B64242;background:transparent;border-color:#E8C9C9}.button-wide{width:100%;margin-top:20px}.spaced{margin-top:34px}.recent-card{display:flex;align-items:center;gap:13px;padding:15px 17px;margin-bottom:9px;background:var(--surface);border:1px solid var(--border);border-radius:13px}.recent-icon{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:var(--success-soft);color:var(--success);font-size:17px}.recent-copy{flex:1;min-width:0}.recent-copy strong,.recent-copy span,.recent-score strong,.recent-score span{display:block}.recent-copy strong{font-size:12px}.recent-copy span{font-size:10px;color:var(--muted);margin-top:4px}.recent-score{text-align:right}.recent-score strong{font-size:15px}.recent-score span{font-size:10px;color:var(--muted);margin-top:3px}.page-intro{margin-bottom:28px}.subject-group{margin-bottom:30px}.group-heading{display:flex;align-items:center;gap:12px;margin-bottom:13px}.group-heading h2{font-size:16px}.count-pill{font-size:10px;color:var(--muted);padding:5px 8px;border-radius:20px;background:var(--surface-2);border:1px solid var(--border)}.subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.subject-card{display:flex;align-items:center;gap:12px;min-width:0;padding:13px;background:var(--surface);border:1px solid var(--border);border-radius:13px}.subject-card .subject-icon{width:37px;height:37px;flex-shrink:0;background:var(--primary-soft);color:var(--primary);font-size:15px}.subject-card.is-available .subject-icon{background:var(--primary);color:white}.subject-info{flex:1;min-width:0}.subject-info h3{font-size:12px;overflow-wrap:anywhere}.subject-info p{color:var(--muted);font-size:10px;line-height:1.45;margin:4px 0 0}.subject-card .pill{font-size:8px}.icon-button{width:31px;height:31px;border-radius:9px;background:var(--primary-soft);color:var(--primary);border:0;font-size:18px;font-weight:700;flex-shrink:0}.setup-layout,.profile-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,.65fr);gap:18px;align-items:start}.form-card{padding:25px;background:var(--surface);border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow)}.form-card>label,.modal-card form>label,.modal-card form>div>label{display:block;margin-bottom:8px;font-size:12px;font-weight:700}.field{width:100%;padding:12px 13px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:20px;outline:none}.field:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}select.field{appearance:auto}.choice-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.choice{position:relative}.choice input{position:absolute;opacity:0;pointer-events:none}.choice span{min-width:68px;display:inline-flex;justify-content:center;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--muted);font-weight:600;font-size:11px}.choice input:checked+span{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}.check-row{display:flex;align-items:flex-start;gap:10px;padding:13px 0;border-top:1px solid var(--border);margin-top:4px}.check-row input{margin-top:3px;accent-color:var(--primary)}.check-row strong,.check-row small{display:block}.check-row strong{font-size:12px}.check-row small{font-size:10px;color:var(--muted);margin-top:5px;line-height:1.45}.setup-aside{background:var(--surface-2);border:1px solid var(--border);padding:22px;border-radius:16px}.aside-mark{width:48px;height:48px;display:grid;place-items:center;background:var(--primary);border-radius:13px;color:white;font-family:'Manrope';font-weight:800;font-size:13px;margin-bottom:21px}.setup-aside h3{font-size:17px;margin-bottom:8px}.setup-aside>p{font-size:12px;color:var(--muted);line-height:1.65}.mini-rule{width:38px;height:3px;background:var(--coral);border-radius:5px;margin:17px 0}.cbt-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:19px}.cbt-top h1{font-size:26px;margin:0 0 5px}.cbt-top-right{display:flex;align-items:center;gap:13px}.timer{padding:9px 13px;border:1px solid var(--border);border-radius:10px;background:var(--surface);min-width:93px}.timer span,.timer strong{display:block}.timer span{font-size:9px;color:var(--muted)}.timer strong{font-size:16px;margin-top:2px;font-family:'Manrope';font-variant-numeric:tabular-nums}.timer-warning{border-color:var(--coral);background:var(--coral-soft)}.cbt-progress{height:5px;border-radius:99px;background:var(--border);overflow:hidden;margin-bottom:21px}.cbt-progress span{height:100%;display:block;background:var(--primary);transition:width .2s}.cbt-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:17px;align-items:start}.question-panel,.question-map{background:var(--surface);border:1px solid var(--border);border-radius:16px}.question-panel{padding:clamp(18px,3vw,30px);min-height:430px;display:flex;flex-direction:column}.question-meta{display:flex;justify-content:space-between;align-items:center;gap:12px}.question-number{font-size:10px;color:var(--primary);font-weight:800;letter-spacing:1.2px}.flag-button{background:transparent;border:0;color:var(--muted);font-size:10px;font-weight:600}.flag-button.flagged{color:var(--coral)}.question-text{font-size:clamp(18px,2vw,23px);font-weight:700;line-height:1.5;margin:26px 0}.options-list{display:grid;gap:10px}.answer-option{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid var(--border);border-radius:11px;cursor:pointer;transition:border-color .1s,background .1s}.answer-option:hover{border-color:var(--primary)}.answer-option.selected{background:var(--primary-soft);border-color:var(--primary)}.answer-option input{position:absolute;opacity:0}.option-key{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;border:1px solid var(--border);background:var(--surface);font-size:11px;font-weight:800;color:var(--muted);flex-shrink:0}.selected .option-key{background:var(--primary);color:white;border-color:var(--primary)}.option-text{font-size:13px;line-height:1.45}.question-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:25px}.answered-count{font-size:10px;color:var(--muted)}.question-map{padding:19px;position:sticky;top:20px}.map-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.map-heading h3{font-size:14px}.map-heading span{font-size:10px;color:var(--muted)}.number-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:17px 0}.number-button{aspect-ratio:1;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:700}.number-button.current{outline:2px solid var(--primary);outline-offset:1px;color:var(--primary)}.number-button.answered{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}.number-button.flagged{box-shadow:inset 0 -3px var(--coral)}.legend{display:grid;gap:7px;margin-bottom:17px;font-size:9px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:7px}.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;border:1px solid var(--border)}.legend-current{outline:1px solid var(--primary)}.legend-answered{background:var(--primary-soft);border-color:var(--primary)!important}.legend-flagged{background:var(--coral-soft);border-color:var(--coral)!important}.results-hero{max-width:690px;margin:0 auto 28px;padding:35px 25px;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}.result-symbol{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 18px;background:var(--primary-soft);color:var(--primary);border-radius:17px;font-size:21px;font-weight:800}.results-hero h1{font-size:55px;margin:0}.results-hero h1 span{font-size:21px;color:var(--muted);font-weight:500}.result-pct{font-size:13px;color:var(--primary);font-weight:800;margin:4px 0 13px}.result-message{font-size:13px;color:var(--muted);line-height:1.6;max-width:460px;margin:0 auto}.result-stats{display:flex;justify-content:center;gap:35px;margin:27px 0;padding:18px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.result-stats strong,.result-stats span{display:block}.result-stats strong{font-size:22px}.result-stats span{font-size:10px;color:var(--muted);margin-top:4px}.result-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px}.answer-review{max-width:860px;margin:0 auto}.review-card{padding:19px;margin-bottom:10px;background:var(--surface);border:1px solid var(--border);border-radius:14px}.review-title{display:flex;align-items:center;gap:10px;font-size:10px;color:var(--muted);margin-bottom:12px}.review-badge{padding:5px 8px;border-radius:6px;font-size:9px;font-weight:800}.review-badge.correct{background:var(--success-soft);color:var(--success)}.review-badge.incorrect{background:var(--coral-soft);color:var(--coral)}.review-card h3{font-size:14px;line-height:1.6}.review-card p{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 0}.review-card .correct-answer strong{color:var(--success)}.explanation{background:var(--surface-2);border-radius:9px;padding:11px}.empty-state{padding:42px 20px;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:15px}.empty-state h2{font-size:17px;margin-bottom:8px}.empty-state p{color:var(--muted);font-size:12px;line-height:1.6}.empty-state.compact{padding:24px}.empty-symbol{width:36px;height:36px;border-radius:10px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;margin:0 auto 12px;font-weight:800}.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:28px;padding:17px;border:1px solid #E8C9C9;border-radius:14px;background:var(--surface)}.danger-zone h3{font-size:13px}.danger-zone p{color:var(--muted);font-size:10px;margin:5px 0 0}.category-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 24px}.category-card{position:relative;padding:14px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);cursor:pointer}.category-card input{position:absolute;opacity:0}.category-card.selected{background:var(--primary-soft);border-color:var(--primary)}.category-symbol{display:grid;place-items:center;width:29px;height:29px;background:var(--surface-2);border-radius:8px;color:var(--primary);font-weight:800;margin-bottom:12px}.category-card strong,.category-card small{display:block}.category-card strong{font-size:11px;line-height:1.4}.category-card small{font-size:9px;color:var(--muted);line-height:1.45;margin-top:5px}.subject-pick-heading{align-items:center;margin:27px 0 12px}.subject-pick-heading h2{font-size:16px}.subject-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:10px}.subject-check{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid var(--border);border-radius:8px;font-size:10px;cursor:pointer}.subject-check input{accent-color:var(--primary);flex-shrink:0}.subject-check span{flex:1}.subject-check small{font-size:8px;color:var(--success)}.account-card{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;padding:19px;background:var(--surface);border:1px solid var(--border);border-radius:14px}.account-card h2{font-size:16px}.account-card .eyebrow{margin-bottom:7px}.account-card p{font-size:11px;line-height:1.5}.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.modal.hidden{display:none}.modal-backdrop{position:absolute;inset:0;background:rgba(21,13,33,.6);backdrop-filter:blur(5px)}.modal-card{position:relative;width:min(100%,440px);max-height:min(90vh,760px);overflow:auto;padding:30px;background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:0 28px 90px rgba(0,0,0,.25)}.modal-close{position:absolute;right:18px;top:14px;background:transparent;border:0;font-size:25px;color:var(--muted)}.modal-brand{display:flex;align-items:center;gap:9px;font-family:'Manrope';font-weight:800;font-size:16px;margin-bottom:24px}.modal-brand img{width:34px;height:34px;border-radius:9px}.modal-card h2{font-size:25px;margin-bottom:8px}.modal-card form{margin-top:19px}.modal-card form>div[id="authNameField"]:not(.hidden){margin-bottom:19px}.modal-card form>label{margin-top:18px}.modal-card .field{margin:8px 0 0}.modal-card form>div>label{margin-bottom:0}.modal-card .button-wide{margin-top:15px}.auth-links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:13px}.auth-links .text-button{font-size:10px}.form-message{min-height:18px;font-size:11px;line-height:1.5;color:var(--coral);margin:8px 0 0}.legal-note{font-size:9px;color:var(--muted);line-height:1.6;margin:18px 0 0}.hidden{display:none!important}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;z-index:200;background:var(--text);color:var(--surface);padding:12px 17px;border-radius:11px;max-width:min(90vw,520px);font-size:12px;line-height:1.45;box-shadow:var(--shadow);transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.loading-state{text-align:center;padding:70px 20px;color:var(--muted)}
@media(max-width:1100px){.app-shell{grid-template-columns:218px minmax(0,1fr)}.cbt-layout{grid-template-columns:minmax(0,1fr) 230px}.subject-grid{grid-template-columns:1fr}.setup-layout,.profile-layout{grid-template-columns:minmax(0,1fr) 240px}}
@media(max-width:820px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;bottom:0;width:255px;transform:translateX(-105%);transition:transform .2s;box-shadow:var(--shadow)}.sidebar.mobile-open{transform:translateX(0)}.mobile-menu{display:block;padding:7px 10px;font-size:17px;margin-right:10px}.topbar{padding:0 17px;height:66px}.breadcrumb{margin-right:auto}.account-label{display:none}.topbar-actions{gap:8px}.theme-toggle{padding:8px 9px}.view-container{padding:26px 18px}.app-footer{padding:16px 18px}.welcome-row{display:block}.welcome-row .status-chip{display:inline-flex;margin-top:10px}.metric-grid{gap:9px}.metric-card{padding:14px;min-height:100px}.metric-card>strong{font-size:24px}.metric-card .metric-category{font-size:14px}.feature-grid{gap:10px}.feature-card{padding:17px;min-height:260px}.cbt-layout{grid-template-columns:1fr}.question-map{position:static;order:-1}.number-grid{grid-template-columns:repeat(10,minmax(0,1fr))}.setup-layout,.profile-layout{grid-template-columns:1fr}.setup-aside{order:2}.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-card{padding:11px}.subject-card .pill{display:none}}
@media(max-width:560px){h1{font-size:29px}.lead{font-size:13px}.topbar{gap:6px}.breadcrumb{font-size:10px;gap:5px}.theme-toggle span:last-child{display:none}.theme-toggle{width:34px;height:34px;justify-content:center;padding:0}.feature-grid{grid-template-columns:1fr}.feature-card{min-height:0}.feature-card p{min-height:0}.metric-grid{grid-template-columns:1fr 1fr}.metric-card:first-child{grid-column:span 2}.metric-card{min-height:89px}.metric-card>strong{margin:6px 0 3px}.metric-card .metric-category{font-size:15px}.setup-banner{align-items:flex-start;flex-wrap:wrap}.banner-copy{min-width:calc(100% - 70px)}.setup-banner .button{width:100%}.section-head{align-items:center}.subject-grid{grid-template-columns:1fr}.subject-card .pill{display:inline-flex}.category-cards{grid-template-columns:1fr}.category-card{display:flex;align-items:center;gap:10px}.category-symbol{margin:0;flex-shrink:0}.category-card small{margin-left:auto;text-align:right;max-width:38%}.subject-check-grid{grid-template-columns:1fr}.form-card{padding:17px}.cbt-top{align-items:flex-start;flex-direction:column}.cbt-top-right{width:100%;justify-content:space-between}.question-panel{padding:16px}.question-nav{flex-wrap:wrap}.question-nav .button{flex:1}.answered-count{order:3;width:100%;text-align:center}.number-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.result-stats{gap:20px}.results-hero{padding:28px 16px}.results-hero h1{font-size:46px}.account-card{align-items:flex-start;flex-direction:column}.account-card .button{width:100%}.app-footer{font-size:9px}.modal-card{padding:24px 19px}.auth-links{flex-direction:column;align-items:flex-start}.danger-zone{align-items:flex-start;flex-direction:column}.danger-zone .button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.legal-page{max-width:820px;margin:0 auto;padding:44px 24px 80px;background:var(--surface);min-height:100vh}.legal-page h1{margin:18px 0 10px}.legal-page h2{font-size:17px;margin:28px 0 8px}.legal-page p{line-height:1.8;color:var(--muted);font-size:13px}.legal-page .back-link{font-weight:700;font-size:12px}

/* Google identity option: quiet, accessible, and consistent with the product UI. */
.button-google{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:none;margin:20px 0 0}.button-google:hover{background:var(--surface-2);border-color:var(--primary)}.button-google:disabled{opacity:.65;cursor:wait}.auth-divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:10px;margin:16px 0 2px}.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:var(--border)}
