/* Experimento visual Qfolha. Remover este stylesheet restaura os componentes anteriores. */
:root{--blue:#2865bb;--green:#2865bb;--ink:#24344d;--muted:#66758b;--line:#e3e8f0}
html,body{background:#f7f9fc;color:var(--ink)}
body{--sidebar-width:256px}
.app-sidebar{background:#f8faff;border-right:1px solid #e5eaf3;padding:28px 16px}
.sidebar-heading{padding:0 5px;margin-bottom:32px}.sidebar-brand .sidebar-label,.header-context,.journey-mode .header-context{color:#233e64}
.sidebar-brand{font-size:27px}.sidebar-logo{width:37px;height:37px}
.sidebar-link{color:#586980;min-height:46px;border-radius:11px;padding:12px 13px;font-weight:600}
.sidebar-link:hover{background:#edf2fa;color:#2865bb}.sidebar-link[aria-current=page]{background:#e5edfb;color:#245da9;font-weight:750}
.sidebar-section{font-size:10px;letter-spacing:1.8px;color:#7b889b;padding-top:26px}
.sidebar-subject{background:transparent;color:#65758a}.sidebar-subject[aria-current=page]{background:#e5edfb;color:#245da9}
.sidebar-subjects{border-left-color:#dce5f3}.sidebar-bottom{padding-top:22px;border-top:1px solid #e4eaf3;margin-top:auto}
.sidebar-collapse,.menu-toggle{border-color:#dfe6f0;color:#5c6e86;background:#fff;border-radius:10px}
body>header{height:82px;background:#ffffffed;border-bottom:1px solid #e7ecf3;padding:0 40px}
.header-context{font-size:25px;letter-spacing:-.9px}.header-leaf{width:30px;height:30px}
.topnav .account-btn,.primary,.answer-btn{background:#2865bb;border:1px solid #2865bb;color:#fff;border-radius:10px;font-weight:700;box-shadow:0 3px 8px #2865bb12}
.topnav .account-btn:hover,.primary:hover,.answer-btn:hover{background:#2057a4}
.topnav .nav-btn{color:#52657f;background:transparent}
body>main{padding:34px 40px 56px}.metrics{border:1px solid #e4eaf3;background:#fff;border-radius:16px;padding:22px 26px;margin-bottom:30px;gap:32px;box-shadow:0 4px 20px #25385804}
.metrics strong{color:#294a78;font-weight:750;font-size:27px}.metrics span,.metrics>p{color:#66758b}.metrics span{font-size:12px}
.subjects-heading h1,.exams-heading h1{font-size:clamp(27px,2.4vw,34px);color:#24344d;letter-spacing:-1.1px}.subjects-heading p,.exams-heading p{color:#66758b}
.subject-card{border-color:#e1e8f2;border-radius:16px;padding:26px;background:#fff;box-shadow:0 5px 20px #263b5805;transition:transform .18s,box-shadow .18s,border-color .18s}
.subject-card:hover{transform:translateY(-3px);border-color:#a4bde0;background:#fff;box-shadow:0 10px 25px #284e8c0d}.subject-card strong{color:#2b405e}.subject-card small{color:#687b92}.subject-card-arrow{color:#2865bb}
.subject-card-icon{background:#edf3fc;border-radius:14px}.subject-card-icon img{width:100%;height:100%;object-fit:cover}
.journey-welcome{display:none}.journey-mode .journey-welcome{display:block;padding:22px 0 34px;max-width:720px}
.journey-kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:#4d608a;margin:0 0 17px}
.journey-welcome h1{font-family:var(--qfolha-font);font-size:clamp(34px,4vw,54px);font-weight:800;line-height:1.13;letter-spacing:-2px;color:#243c66;margin:0 0 18px}
.journey-welcome>p:last-of-type{font-size:16px;color:#516489;line-height:1.7;margin:0 0 23px}
.journey-start{display:inline-flex;gap:24px;align-items:center;background:#2865bb;color:#fff;border-radius:11px;padding:12px 20px;font-size:14px;font-weight:750;text-decoration:none;box-shadow:0 5px 15px #2865bb18}
.journey-start:hover{background:#2057a4}.journey-mode>header{background:transparent;border:0}
.journey-mode .metrics{background:#ffffffdb;border-color:#ffffffb3;box-shadow:0 5px 24px #37467708}
.journey-mode #subject-catalog{background:#ffffffed;border:1px solid #ffffffc9;box-shadow:0 12px 35px #3d4c7a0a;border-radius:20px;padding:30px}
.journey-invite{border-color:#e0e8f6;background:#f6f9ff;border-radius:12px}.journey-invite p{color:#64758d}.journey-invite strong{color:#365f98}.journey-register{color:#245da9;border-color:#d1def3;background:#eaf1fc}.journey-continue{color:#5e7088}
.layout{grid-template-columns:220px minmax(0,1fr);gap:30px}aside{padding:20px;background:#fff;border:1px solid #e4eaf3;border-radius:16px}aside .eyebrow{color:#586e8c;font-size:10px;letter-spacing:1.2px;margin:0}aside label{color:#546780;font-size:12px;margin-top:18px}.aside-title{gap:10px}.aside-title .text-button{color:#2865bb}
input,select,textarea{border-color:#dce4ef;color:#344864;border-radius:9px;background:#fff}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #9bbdec;outline-offset:3px}
.filter-pair{grid-template-columns:1fr;gap:0}.subject-breadcrumb{margin-bottom:22px}.subject-breadcrumb button{color:#2865bb;font-weight:650}.results .list-header{margin-bottom:20px}.list-header h2{color:#24344d;font-weight:750;font-family:var(--qfolha-font)}#count{color:#687b92}
.question{border:1px solid #e0e7f1;border-radius:18px;box-shadow:0 5px 20px #263b5805;margin-bottom:26px}
.qhead{background:#fcfdff;padding:21px 26px;border-bottom:1px solid #edf0f5}.number{color:#71829a;font-size:10px;letter-spacing:1.3px}.topic{color:#314966;font-weight:750;margin:4px 0}.meta{color:#708096;line-height:1.6}
.qbody{padding:28px}.statement{color:#2b3b51;font-size:18px;line-height:1.85;margin-bottom:28px}.star{border-color:#e0e7f1;color:#7e8da5;border-radius:10px;background:#fff}.star[aria-pressed=true]{background:#edf3fc;color:#2865bb}
.option{border:1px solid #e0e6ef;border-radius:11px;padding:14px 16px;color:#34455d;background:#fff;gap:14px;margin:10px 0}.option:hover{background:#f6f9fe;border-color:#a8bfdf}.option.selected,.option[aria-pressed=true]{background:#f0f5fd;border:2px solid #7da2d4;padding:13px 15px}
.letter{background:#edf1f7;color:#61728b;border-radius:7px;min-width:30px;line-height:30px;font-size:13px;font-weight:750}
.qfoot{padding:16px 26px;background:#fcfdff;border-top:1px solid #edf0f5}.qfoot>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.answer-btn{padding:10px 18px;min-height:42px}.solution-btn,.edit-btn{color:#5e7392;font-weight:600}.saved-label{color:#6b7d96}
.question.answered-correct{border-color:#a2bcdf}.question.answered-wrong{border-color:#dba4a4}.question.answered-correct .qhead,.question.answered-correct .qfoot,.question.answered-wrong .qhead,.question.answered-wrong .qfoot{background:#fcfdff}
.option.correct,.option.correct:hover,.option.correct[aria-pressed=true]{background:#edf4ff;border-color:#6998d4;color:#285780}.option.wrong,.option.wrong:hover,.option.wrong[aria-pressed=true]{background:#fff5f5;border-color:#dfa9a9;color:#8b3c3c}
.option.correct{box-shadow:inset 3px 0 #2865bb}.option.correct .letter{background:#2366b5;color:#fff}.option.wrong .letter{background:#bc3434;color:#fff}
.feedback{border-radius:12px;padding:18px;font-size:14px}.answered-correct .feedback{background:#edf4ff;color:#285780}.answered-wrong .feedback{background:#fff2f2;color:#8b3c3c}
.secondary{color:#42648d;border-color:#d9e3ef;border-radius:10px}.pagination .secondary{background:#fff}.exams-step{color:#5c708d}.university-card,.exam-type{border-radius:12px}.university-card strong{color:#304965}dialog{border-color:#e1e7f1;box-shadow:0 25px 90px #243b642b}dialog h2{color:#24344d}.muted{color:#66758b}.text-button{color:#526f98}
@media(min-width:1600px){body>main{padding:42px 60px 64px}}
@media(max-width:1150px) and (min-width:1001px){body{--sidebar-width:232px}body>main{padding:28px}.layout{grid-template-columns:190px minmax(0,1fr);gap:20px}}
@media(max-width:1000px){body,body.sidebar-compact{--sidebar-width:0px}body>header{height:74px;padding:0 20px}body>main{padding:26px 22px 40px}.app-sidebar{width:min(292px,calc(100vw - 48px))}.journey-mode>main{min-height:calc(100dvh - 74px)}}
@media(max-width:760px){body>header{padding:0 16px}.header-context{font-size:24px}.metrics{padding:19px 17px;gap:12px;margin-bottom:24px}.metrics strong{font-size:24px}.metrics span{font-size:10px}.metrics>p{font-size:12px}.journey-mode .journey-welcome{padding:12px 0 28px}.journey-welcome h1{font-size:36px;letter-spacing:-1.3px}.journey-welcome>p:last-of-type{font-size:14px}.journey-mode #subject-catalog{padding:24px 19px}.subject-card{padding:20px}.layout{display:block}aside{margin-bottom:22px}#filter-toggle{background:#edf3fc;border-color:#dae5f6;color:#2865bb;border-radius:10px}.qhead{padding:18px}.qbody{padding:22px 17px}.qfoot{padding:15px 17px}.statement{font-size:17px}.option{padding:13px 12px;gap:11px;font-size:15px}.option.selected,.option[aria-pressed=true]{padding:12px 11px}.topic{font-size:15px}.meta{font-size:12px}.saved-label{font-size:12px}.list-header{gap:10px}#count{white-space:normal;text-align:right}.subject-cards{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.subject-card{transition:none}}

/* Fundo branco e tipografia neutra. */
:root{--ink:#202020;--muted:#626262}
html,body{background:#fff;color:#202020}
.journey-background{display:none!important}
.app-sidebar{background:#fff;border-right-color:#ebebeb}
.sidebar-brand .sidebar-label,.header-context,.journey-mode .header-context{color:#202020}
.sidebar-link{color:#454545}.sidebar-section{color:#777}.sidebar-subject{color:#5b5b5b}
body>header,.journey-mode>header{background:#fff;border-bottom:1px solid #ededed}
.journey-welcome h1,.journey-kicker{color:#202020}.journey-welcome>p:last-of-type{color:#555}
.metrics,.journey-mode .metrics{background:#fff;border-color:#e9e9e9;box-shadow:none}
.metrics strong{color:#181818}.metrics span,.metrics>p{color:#606060}
.subjects-heading h1,.exams-heading h1,.list-header h2,dialog h2{color:#202020}
.subjects-heading p,.exams-heading p,.muted{color:#626262}
.journey-mode #subject-catalog{background:#fff;border-color:#e9e9e9;box-shadow:none}
.subject-card strong,.university-card strong{color:#252525}.subject-card small{color:#666}
.journey-invite{background:#fafafa;border-color:#e8e8e8}.journey-invite p{color:#626262}.journey-invite strong{color:#292929}
.topic,.statement{color:#252525}.meta,.number,#count,.saved-label{color:#666}
.option{color:#303030}.qhead,.qfoot{background:#fff}
aside label,aside .eyebrow{color:#4f4f4f}.subject-breadcrumb #selected-subject-label{color:#454545}

/* Antes da correcao, a selecao usa somente um contorno neutro. */
.option.selected:not(.correct):not(.wrong),.option[aria-pressed=true]:not(.correct):not(.wrong){background:#fff;border-color:#626b77;color:#303030;box-shadow:none}
.option:not(.correct):not(.wrong):hover{background:#fff;border-color:#8b939d}
.option.selected:not(.correct):not(.wrong):hover,.option[aria-pressed=true]:not(.correct):not(.wrong):hover{border-color:#626b77}

/* Selecao conforme referencia: apenas o circulo da letra recebe preenchimento. */
.option:not(.correct):not(.wrong),.option.selected:not(.correct):not(.wrong),.option[aria-pressed=true]:not(.correct):not(.wrong){background:#fff;border-color:transparent;border-width:1px;box-shadow:none;padding:14px 16px}
.option:not(.correct):not(.wrong):hover,.option.selected:not(.correct):not(.wrong):hover,.option[aria-pressed=true]:not(.correct):not(.wrong):hover{border-color:transparent;background:#fff}
.option .letter{display:grid;place-items:center;width:30px;height:30px;min-width:30px;flex-shrink:0;border-radius:50%;line-height:1;border:1px solid transparent}
.option:not(.correct):not(.wrong) .letter{background:#fff;border-color:#f58220;color:#e77916;font-weight:600}
.option.selected:not(.correct):not(.wrong) .letter,.option[aria-pressed=true]:not(.correct):not(.wrong) .letter{background:#f58220;border-color:#f58220;color:#fff;font-weight:750}
.option.correct .letter{background:#2366b5;border-color:#2366b5;color:#fff}.option.wrong .letter{background:#bc3434;border-color:#bc3434;color:#fff}
@media(max-width:760px){.option:not(.correct):not(.wrong),.option.selected:not(.correct):not(.wrong),.option[aria-pressed=true]:not(.correct):not(.wrong){padding:13px 12px}}

/* Correcao apenas nas letras; texto e fundo permanecem neutros. */
.option.correct,.option.correct:hover,.option.correct[aria-pressed=true],.option.wrong,.option.wrong:hover,.option.wrong[aria-pressed=true]{background:#fff;border:1px solid transparent;color:#303030;box-shadow:none;padding:14px 16px}
.option.correct .letter{background:#234b7a;border-color:#234b7a;color:#fff}
.option.wrong .letter{background:#bc3434;border-color:#bc3434;color:#fff}
.question.answered-correct,.question.answered-wrong{border-color:#e0e7f1}
.answered-correct .feedback,.answered-wrong .feedback{background:#f7f7f7;color:#303030}
@media(max-width:760px){.option.correct,.option.correct:hover,.option.correct[aria-pressed=true],.option.wrong,.option.wrong:hover,.option.wrong[aria-pressed=true]{padding:13px 12px}}

/* Descarte visual independente da resposta. */
.alternative-row{display:flex;align-items:flex-start;gap:5px;min-width:0}
.alternative-row .option{flex:1;min-width:0}
.eliminate-option{display:grid;place-items:center;flex-shrink:0;width:32px;height:36px;margin-top:22px;padding:6px;border:1px solid transparent;border-radius:50%;background:transparent;color:#8b9aa6}
.eliminate-option svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.eliminate-option:hover,.eliminate-option[aria-pressed=true]{background:#edf3f6;color:#43849a;border-color:#dce7ec}
.is-eliminated .option-content{opacity:.42;text-decoration:line-through;text-decoration-color:#8b939d}
.is-eliminated .option-content img{filter:grayscale(1);opacity:.5}
.is-eliminated .option:not(.correct):not(.wrong) .letter{opacity:.45}
@media(max-width:760px){.alternative-row{gap:0}.eliminate-option{width:30px;min-height:44px;margin-top:15px;padding:5px}.alternative-row .option{gap:10px}}

/* Gabaritos comentados: leitura continua e alternativas separadas. */
.resolution{font-family:var(--qfolha-font);font-size:15px;line-height:1.8;color:#303030;overflow-wrap:anywhere}
.resolution h3{font-family:var(--qfolha-font);font-size:16px;line-height:1.4;font-weight:750;color:#252525;margin:24px 0 12px}
.resolution h3:first-child{margin-top:0}.resolution p{margin:0 0 14px}.resolution p:last-child{margin-bottom:0}
.commentary-alternatives{display:flex;flex-direction:column;gap:0}.commentary-alternative{padding:16px 0;border-bottom:1px solid #e4e7eb}.commentary-alternative:first-child{padding-top:0}.commentary-alternative:last-child{border-bottom:0;padding-bottom:0}.commentary-alternative p{margin:0}.commentary-alternative strong{font-weight:750;color:#252525}
.resolution ol,.resolution ul{margin:12px 0 22px;padding-left:23px}.resolution li{margin:10px 0;padding-left:3px}
.commentary-note{margin-top:22px;padding:15px 17px;background:#fff;border:1px solid #dfe4eb;border-left:3px solid #8a9bb1;border-radius:8px;color:#455063}
.resolution table{display:block;max-width:100%;overflow-x:auto}.resolution img{max-width:100%;height:auto}
@media(max-width:760px){.resolution{font-size:14px;line-height:1.8}.resolution h3{font-size:15px;margin-top:22px}.commentary-alternative{padding:14px 0}.commentary-note{padding:13px 14px}}
