/* praprova — folha de estilo única, sem camadas de correções sobre versões antigas. */
:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #242424;
  background: #fffaf3;
  --brand-orange: #ff8f00;
  --brand-red: #e53935;
  --brand-comet-trail: #f2641b;
  --brand-yellow: #ffd54f;
  --hover: #fff3c4;
  --hover-border: #f4c24d;
  --brand: var(--brand-orange);
  --ink: #332619;
  --border: #e4d8c9;
  --question-font: "Calibri", "Carlito", "Arial", sans-serif;
  --question-size: 18px;
  --question-leading: 1.25;
  --source-size: 14px;
  --paragraph-gap: 9px;
  --source-before: 4px;
  --source-after: 9px;
  --image-before: 7px;
  --image-after: 5px;
  --scrollbar-size: 4px;
  --scrollbar-thumb: #d8a16d;
  --scrollbar-thumb-hover: var(--brand-orange);
  --scrollbar-track: transparent;
}
* { box-sizing: border-box; scrollbar-width: auto; scrollbar-color: auto; }
*::-webkit-scrollbar { width: var(--scrollbar-size); height: var(--scrollbar-size); }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb { border-radius: 99px; background: var(--scrollbar-thumb); }
*::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) {
 * { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }
}
@media(max-width:580px) {
 :root { --scrollbar-size: 3px; }
}
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid var(--brand-red); border-radius: 8px; padding: 10px 16px; background: #fff; color: var(--brand-red); font-size: 14px; line-height: 1.25; font-weight: 650; min-height: 42px; transition: background-color .15s, border-color .15s, box-shadow .15s; }
button:hover:not(:disabled) { background: var(--hover); border-color: var(--brand-red); }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, input:focus-visible { outline: 2px solid rgba(229, 57, 53, .45); outline-offset: 2px; }
.primary { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.primary:hover:not(:disabled) { background: var(--hover); border-color: var(--brand-red); color: var(--brand-red); }
.small { font-size: 12px; min-height: 34px; padding: 7px 11px; }
[hidden] { display: none !important; }
.sr-only, .option input[type="radio"], .option input[type="checkbox"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
main { max-width: 740px; margin: auto; padding: 24px 18px 32px; }
header { margin-bottom: 18px; }
.topbar, .header-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar { flex-wrap: nowrap; min-width: 0; }
.header-actions { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.eyebrow { margin: 0 0 5px; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: #716253; font-weight: 700; }
h1 { margin: 0; font-size: clamp(23px, 4vw, 28px); letter-spacing: -.025em; }
.brand-logo { flex: 0 1 auto; min-width: 0; color: var(--brand-orange); font-size: clamp(30px, 5vw, 36px); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; white-space: nowrap; }
.brand-word, .brand-letter { display: inline-block; }
.brand-word { position: relative; }
.brand-letter { color: var(--brand-orange); }
.brand-logo .brand-accent { color: var(--brand-red); }
.brand-word::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; color: transparent; background: linear-gradient(105deg,transparent 0%,transparent 38%,var(--brand-comet-trail) 45%,var(--brand-red) 50%,#ffb300 55%,transparent 63%,transparent 100%); background-size: 260% 100%; background-position: 120% 0; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; }
body.is-loading .brand-word::after { opacity: 1; animation: brand-comet 1.45s linear infinite; }
@keyframes brand-comet {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
.transition-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
:where(#topActions,#identity,#globalNotice,#pwaInstall,#app,#appFooter) { opacity: 1; visibility: visible; transition: opacity .18s ease, visibility 0s linear 0s; }
body.is-app-transitioning { cursor: progress; }
body.is-app-transitioning :where(#topActions,#identity,#globalNotice,#pwaInstall,#app,#appFooter) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .14s ease, visibility 0s linear .14s; }
body.is-app-slow .transition-status { position: static; display: block; width: auto; height: auto; margin: 24px auto 0; padding: 10px 14px; overflow: visible; clip: auto; clip-path: none; white-space: normal; border: 1px solid var(--border); border-radius: 8px; color: #716253; background: #fffaf3; text-align: center; font-size: 13px; }
.admin-subtitle { margin: 7px 0 0; font-size: 14px; color: #716253; }
#subject { text-transform: none; letter-spacing: 0; font-size: 12px; }
.pill { font-size: 12px; font-weight: 650; white-space: nowrap; background: #fff; color: var(--brand-red); border: 1px solid var(--brand-red); border-radius: 99px; padding: 7px 11px; min-height: 34px; }
.pill:hover:not(:disabled) { background: var(--hover); border-color: var(--brand-red); }
.pill:disabled { opacity: .6; cursor: default; background: #fff; }
.pill[data-complete="true"] { opacity: .75; }
.pwa-install { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; margin: 0 0 16px; padding: 13px; border: 1px solid #e7c59d; border-left: 4px solid var(--brand-orange); border-radius: 10px; background: linear-gradient(105deg,#fff 0%,#fffaf3 64%,#fff3dc 100%); box-shadow: 0 7px 20px rgba(106,66,23,.08); }
.pwa-install > img { display: block; width: 48px; height: 48px; border-radius: 11px; box-shadow: 0 3px 10px rgba(174,87,0,.16); }
.pwa-install-copy { min-width: 0; }
.pwa-install-copy strong { display: block; color: var(--ink); font-size: 15px; }
.pwa-install-copy p { margin: 4px 0 0; color: #716253; font-size: 13px; line-height: 1.4; }
.pwa-install-actions { display: flex; align-items: center; gap: 7px; }
.pwa-install-actions button { display: inline-flex; align-items: center; justify-content: center; height: 42px; min-height: 42px; padding-block: 8px; white-space: nowrap; }
.progress { height: 10px; margin-bottom: 16px; position: relative; }
.progress svg { width: 100%; height: 100%; display: block; overflow: visible; }
.progress-wave-path, .progress-empty-line { fill: none; vector-effect: non-scaling-stroke; }
.progress-wave-path { stroke-width: 3.5px; stroke-linecap: round; stroke-linejoin: round; }
.progress-empty-line { stroke: #f7e7cd; stroke-width: 4px; }
article, .panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px 26px; }
#question { color: #242424; }
.question-title { display: flex; align-items: center; gap: 13px; font-family: var(--question-font); font-size: 19px; line-height: 1.2; margin: 3px 0 5px; }
.question-title::after { content: ""; flex: 1; min-width: 12px; height: 3px; background: var(--brand-red); }
.question-title:focus, #filtersTitle:focus { outline: none; }
.meta { font-size: 12px; line-height: 1.3; margin: 4px 0 10px; color: #716253; overflow-wrap: anywhere; }
.meta:empty { display: none; }
#details { margin-bottom: 7px; }
#questionMeta { margin-bottom: 13px; }
.active-filters { font-size: 12px; line-height: 1.35; color: #716253; overflow-wrap: anywhere; margin: -4px 0 12px; }

/* Enunciado, alternativas e explicação compartilham as mesmas métricas editoriais. */
.content { font-family: var(--question-font); font-size: var(--question-size); line-height: var(--question-leading); text-align: justify; text-justify: inter-word; text-indent: 0; white-space: normal; overflow-wrap: break-word; }
.statement { margin: 0 0 9px; }
.pp-flow { display: flow-root; min-width: 0; }
.pp-flow > * { margin: 0; }
.pp-flow > * + * { margin-top: var(--paragraph-gap); }
.pp-paragraph { text-indent: 0; white-space: normal; }
.pp-flow > [data-kind="source"] { margin-top: var(--source-before); }
.pp-flow > [data-kind="source"] + * { margin-top: var(--source-after); }
.pp-flow > [data-kind="image"] { margin-top: var(--image-before); }
.pp-flow > [data-kind="image"] + * { margin-top: var(--image-after); }
.pp-flow > [data-kind="detail"] { margin-top: 3px; }
.pp-flow > [data-kind="detail"] + * { margin-top: 7px; }
.pp-flow > [data-kind="title"] { margin-top: 9px; }
.pp-flow > [data-kind="title"] + * { margin-top: 5px; }
.pp-flow > :first-child { margin-top: 0; }
.pp-bold { font-weight: 700; }
.pp-italic { font-style: italic; }
.pp-underline { text-decoration: underline; text-underline-offset: .1em; }
.pp-title { font-size: 1em; font-weight: 700; line-height: 1.25; text-align: left; }
.pp-source, .pp-detail { font-size: var(--source-size); line-height: 1.25; color: #3c3c3c; text-indent: 0; }
.pp-source { text-align: right; }
.pp-detail { text-align: center; }
.pp-source .pp-paragraph + .pp-paragraph, .pp-detail .pp-paragraph + .pp-paragraph { margin-top: 0; }
.pp-left { text-align: left; }
.pp-center { text-align: center; }
.pp-right { text-align: right; }
.pp-justify { text-align: justify; }
.pp-poem { display: inline-block; width: max-content; max-width: 100%; white-space: pre-wrap; text-align: left; vertical-align: top; }
.pp-tab { display: inline-block; width: 2.5em; height: 0; vertical-align: baseline; }
.content table { border-collapse: collapse; display: block; max-width: 100%; overflow: auto; text-align: left; }
.content th, .content td { border: 1px solid #c8bda9; padding: 4px 6px; }
.content ul, .content ol { padding-left: 1.4em; }
.content blockquote { padding-left: 1em; }

/* KaTeX ocupa somente os delimitadores explícitos; fórmulas de bloco não alargam a página. */
.pp-math { position: relative; }
.pp-math-inline { display: inline; white-space: normal; }
.pp-math-display { display: block; max-width: 100%; padding: 3px 0; overflow-x: auto; overflow-y: hidden; text-align: center; }
.pp-flow > [data-kind="math"] { margin-top: 7px; }
.pp-flow > [data-kind="math"] + * { margin-top: 7px; }
.pp-math .katex { font-family: var(--question-font); font-size: 1em; }
.pp-math .katex .textrm,
.pp-math .katex .textsf,
.pp-math .katex .texttt,
.pp-math .katex .mainrm,
.pp-math .katex .mathrm,
.pp-math .katex .mathbf { font-family: var(--question-font); }
.pp-math .katex-display { margin: 0; min-width: max-content; }
.pp-math[data-math-state="loading"], .pp-math[data-math-state="error"] { font-family: ui-monospace, monospace; font-size: .85em; white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-math[data-math-state="error"] { color: #b91c1c; }

/* A própria imagem é o botão de ampliar; não há uma linha de link ocupando espaço. */
.image-wrap { display: block; padding: 0; }
.image-wrap[hidden] { display: none; }
.image-zoom { display: block; width: fit-content; max-width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; line-height: 0; cursor: zoom-in; }
.image-standalone > .image-zoom, .pp-center .image-zoom { margin-inline: auto; }
.pp-left .image-zoom { margin-left: 0; margin-right: auto; }
.pp-right .image-zoom { margin-left: auto; margin-right: 0; }
.option .image-zoom { margin-left: 0; margin-right: auto; }
.image-zoom:hover:not(:disabled) { background: transparent; box-shadow: 0 0 0 3px var(--brand-yellow); }
.image-zoom:disabled { opacity: 1; }
.question-image { display: block; max-width: 100%; height: auto; margin: 0; border-radius: 0; }
.image-error { color: #a13228; font: 13px/1.35 system-ui, sans-serif; margin-top: 4px; }

/* Alternativas compactas. O círculo substitui visualmente o rádio nativo. */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.option { position: relative; display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 2px 0; padding: 4px 5px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; transition: border-color .4s ease, background-color .4s ease, box-shadow .4s ease; }
.option:has(input:focus-visible) { outline: 2px solid rgba(255, 143, 0, .6); outline-offset: 1px; }
.option:hover:has(input:not(:disabled)) { background: var(--hover); }
.option:has(input:checked):not([data-option-managed]):not(.option-cut):not([data-result]), .question-tool-surface .option[data-option-active]:not([data-result]) { border-color: var(--brand-orange); background: #fff1d6; }
.option:has(input:disabled) { cursor: default; }
.letter { display: flex; align-items: center; justify-content: center; flex: 0 0 23px; width: 23px; height: 23px; border-radius: 50%; background: var(--brand-orange); color: #fff; font-family: var(--question-font); font-size: 17px; font-weight: 700; line-height: 1; transition: background-color .4s ease, color .4s ease, box-shadow .4s ease; }
.option:has(input:checked):not([data-option-managed]):not(.option-cut):not([data-result]) .letter, .question-tool-surface .option[data-option-active]:not([data-result]) .letter { background: var(--brand-orange); box-shadow: 0 0 0 2px var(--brand-yellow); }
.option[data-result="correct"] { border-color: #15803d; background: #f0fdf4; }
.option[data-result="incorrect"] { border-color: #b91c1c; background: #fef2f2; }
.option[data-result="missed"] { border-color: #1d4ed8; background: #eff6ff; }
.option[data-result="correct"] .letter { background: #15803d; }
.option[data-result="incorrect"] .letter { background: #b91c1c; }
.option[data-result="missed"] .letter { background: #1d4ed8; }
.option-body { min-width: 0; flex: 1; }
.option-content { padding-top: 0; }
.actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 15px; }
/* Navegação e ferramentas compactas, iconográficas e acessíveis. */
.question-actions { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; margin-inline: auto; gap: 9px; }
.quiz-question-actions { justify-content: center; }
.question-actions button { position: relative; z-index: 4; min-width: 0; padding: 10px 8px; line-height: 1.25; font-size: 14px; overflow-wrap: break-word; }
.question-tool-surface { position: relative; isolation: isolate; }
.question-tool-surface[data-drawing-tool-active], .question-tool-surface[data-drawing-tool-active] * { -webkit-user-select: none !important; user-select: none !important; }
.question-tool-surface[data-drawing-tool-active] .question-actions { z-index: auto; pointer-events: none; }
.question-tool-surface[data-drawing-tool-active] .question-actions button { pointer-events: auto; }
.question-annotation-layer { position: absolute; inset: 0; z-index: 3; overflow: hidden; overflow: clip; border-radius: inherit; pointer-events: none; }
.question-drawing-canvas { position: absolute; inset: 0; z-index: 1; touch-action: none; }
.question-note-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.question-note { position: absolute; width: calc(10ch + 6px); min-width: 0; height: calc(1.4em + 4px); min-height: 0; max-width: min(360px, calc(100% - 8px)); max-height: min(220px, calc(100% - 4px)); padding: 2px; border: 0; border-radius: 0; outline: 0; background: transparent; color: #332619; font-size: 15px; line-height: 1.4; white-space: pre; overflow-wrap: normal; word-break: normal; box-shadow: none; resize: none; overflow-x: hidden; overflow-y: hidden; cursor: default; caret-color: transparent; user-select: none; pointer-events: auto; touch-action: none; }
.question-note::placeholder { color: currentColor; opacity: .48; }
.question-note:focus-visible { outline: 0; text-decoration: none; }
.question-note.editing { cursor: text; caret-color: currentColor; user-select: text; touch-action: auto; }
.question-note.dragging { cursor: grabbing; user-select: none; }
.question-tool-button, .question-action-button { display: inline-grid; place-items: center; align-content: center; justify-content: center; flex: 0 0 44px !important; width: 44px; min-width: 44px !important; height: 44px; min-height: 44px !important; padding: 0 !important; border: 1px solid #e6a251; border-radius: 50%; background: #fffaf3; color: transparent; line-height: 0; box-shadow: 0 2px 7px #6a42171c; overflow: hidden; }
.question-tool-button:hover:not(:disabled), .question-tool-button.active, .question-action-button:hover:not(:disabled) { border-color: var(--brand-red); background: #fff3c4; box-shadow: 0 0 0 2px #ffd54f80; }
.question-tool-button:disabled, .question-action-button:disabled { opacity: .48; }
.question-actions button[data-drawing-tool-locked],.quiz-control-actions button[data-drawing-tool-locked] { opacity: .48; pointer-events: auto; cursor: not-allowed; }
.question-tool-button.has-label { border-color: #15803d; box-shadow: 0 0 0 2px #4ade8050; }
.question-tool-icon { display: block; flex: 0 0 28px; width: 28px; height: 28px; margin: 0; background-image: url('/icons/question-tools-v6.png'); background-repeat: no-repeat; background-size: 112px 112px; pointer-events: none; transform: none; }
[data-icon="drawing"] .question-tool-icon { background-position: 0 0; }
[data-icon="scissors"] .question-tool-icon { background-position: -28px 0; }
[data-icon="tag"] .question-tool-icon { background-position: -56px 0; }
[data-icon="previous"] .question-tool-icon { background-position: -84px 0; }
[data-icon="pen"] .question-tool-icon { background-position: 0 -28px; }
[data-icon="highlighter"] .question-tool-icon { background-position: -28px -28px; }
[data-icon="eraser"] .question-tool-icon { background-position: -56px -28px; }
[data-icon="answer"] .question-tool-icon { background-position: -84px -28px; }
[data-icon="text"] .question-tool-icon { background-position: 0 -56px; }
[data-icon="hand"] .question-tool-icon { background-position: -28px -56px; }
[data-icon="clear"] .question-tool-icon { background-position: -56px -56px; }
[data-icon="next"] .question-tool-icon { background-position: -84px -56px; }
[data-icon="stitch"] .question-tool-icon { background-position: 0 -84px; }
[data-icon="explanation"] .question-tool-icon { background-position: -28px -84px; }
[data-icon="explanation-show"] .question-tool-icon { background-position: -56px -84px; }
[data-icon="explanation-hide"] .question-tool-icon { background-position: -84px -84px; }
[data-icon="reload"] .question-tool-icon { background-image: url('/icons/reload-content.svg'); background-position: center; background-size: 28px 28px; }
.content-reload-placeholder { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.pp-math-display.content-reload-placeholder, .image-wrap[data-image-state="error"] { display: flex; justify-content: center; }
.pp-left .image-wrap[data-image-state="error"], .option .image-wrap[data-image-state="error"] { justify-content: flex-start; }
.pp-right .image-wrap[data-image-state="error"] { justify-content: flex-end; }
.option.option-cut .option-body { opacity: .38; text-decoration: line-through 3px var(--brand-red); text-decoration-skip-ink: none; }
.option.option-cut .letter, .truth-option.option-cut .truth-toggle { opacity: 1; filter: none; }
.question-tool-surface .option.option-cut:not([data-option-active]):not([data-result]) { border-color: transparent; background: transparent; box-shadow: none; }
.question-tool-surface .option.option-cut:not([data-option-active]):not([data-result]) .letter { box-shadow: none; }
.option.option-cut, .option.option-cut:has(input:disabled), .truth-option.option-cut:has(.truth-toggle:disabled) { cursor: pointer; }
.question-tools-picker { width: max-content; max-width: none; }
.question-label-picker { width: 100%; max-width: none; }
.question-tools-picker > h2, .question-label-picker > h2 { margin-top: 0; }
.question-tool-grid { display: grid; grid-template-columns: repeat(6, 88px); gap: 10px; }
.question-tool-grid .question-tool-button { position: relative; display: flex; flex-direction: column; width: 100%; height: auto; min-height: 84px !important; border-radius: 10px; gap: 5px; color: var(--ink); }
.question-tool-grid .question-tool-button[aria-pressed="true"] { border: 2px solid var(--brand-orange); background: #fff1d6; box-shadow: 0 0 0 3px #ff8f0038, inset 0 0 0 2px #fff; }
.question-tool-grid .question-tool-button[aria-pressed="true"]::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 2px #fff; }
.question-tool-name { font-size: 11px; line-height: 1.15; }
.question-tool-settings { display: grid; gap: 13px; }
.question-tool-settings h3 { margin: 0; }
.question-tool-setting-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); align-items: stretch; gap: 11px; }
.question-tool-setting-field { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.question-tool-setting-label { font-weight: 700; }
.question-tool-setting-fields input[type="color"] { width: 58px; height: 42px; min-height: 42px; padding: 3px; cursor: pointer; }
.question-tool-setting-fields input[type="range"] { width: 100%; }
.question-tool-setting-fields select { width: 100%; }
.question-tool-setting-preview { grid-column: 1 / -1; display: grid; place-items: center; min-height: 54px; padding: 10px 14px; border: 1px dashed #dfb27c; border-radius: 9px; background: #fffaf3; overflow: hidden; }
.question-tool-stroke-preview { display: block; width: min(260px, 88%); height: clamp(1px, var(--preview-size), 30px); border-radius: 99px; background: var(--preview-color); }
.question-tool-text-preview { max-width: 100%; font-size: 18px; overflow-wrap: anywhere; }
.question-tool-range { appearance: none; -webkit-appearance: none; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
.question-tool-range::-webkit-slider-runnable-track { width: 100%; height: 6px; border: 0; border-radius: 99px; background: var(--brand-orange); }
.question-tool-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 2px solid var(--brand-red); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #6a421733; }
.question-tool-range::-moz-range-track, .question-tool-range::-moz-range-progress { height: 6px; border: 0; border-radius: 99px; background: var(--brand-orange); }
.question-tool-range::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--brand-red); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #6a421733; }
.question-label-options { display: grid; gap: 7px; margin-top: 12px; }
.question-label-option { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.question-label-option:has(input:checked) { border-color: var(--brand-orange); background: var(--hover); }
#save { min-width: 0; }
.status { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: #71502b; white-space: pre-line; }
.status:empty { display: none; }
.error, .status.error { color: #a02f29; }
.notice { font-size: 13px; padding: 10px; background: var(--hover); border-radius: 7px; line-height: 1.4; }
footer { font-size: 11px; line-height: 1.4; color: #716253; margin: 16px 3px 0; text-align: justify; text-justify: inter-word; }
.site-footer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.site-footer-links { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; }
.site-dialog { width: min(680px, 94vw); max-width: 94vw; max-height: 94vh; padding: 0; border: 0; border-radius: 14px; overflow: visible; background: transparent; color: var(--ink); }
.site-dialog[data-variant="question-tools"] { width: fit-content; }
.site-dialog[data-variant="question-labels"] { width: min(440px, 94vw); }
.site-dialog::backdrop { background: #2b1d13c7; backdrop-filter: blur(2px); }
.modal-frame { position: relative; overflow: hidden; border: 1px solid #e7d6c3; border-radius: 14px; background: #fffaf3; box-shadow: 0 24px 64px #2b1d1355; }
.modal-frame::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--brand-orange), var(--brand-red)); }
.site-dialog[data-kind="confirm"] .modal-frame::before { background: var(--brand-red); }
.site-dialog[data-kind="notice"] .modal-frame::before { background: var(--brand-orange); }
.modal-body { max-height: calc(94vh - 86px); overflow: auto; padding: 23px 25px 12px; }
.modal-body .panel { border: 0; padding: 0; background: transparent; }
.modal-body .panel > h2 { margin-top: 0; color: var(--ink); }
.modal-message { margin: 8px 0 4px; color: #5f4b3b; line-height: 1.55; white-space: pre-line; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 14px 25px 20px; border-top: 1px solid #efdfcf; background: #fff; }
.modal-actions button { min-width: 110px; }
.site-dialog[data-kind="notice"] .modal-actions button { min-width: 90px; }
.modal-image { display: block; max-width: 100%; max-height: calc(94vh - 190px); width: auto; height: auto; margin: 10px auto 0; object-fit: contain; }
@media (max-width: 680px) {
  .site-dialog[data-variant="question-tools"] { width: min(360px, 94vw); }
  .site-dialog[data-variant="question-tools"] .question-tools-picker { width: 100%; }
  .site-dialog[data-variant="question-tools"] .question-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}

/* Filtros sempre em coluna. */
.filter-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.filter-grid > div { min-width: 0; }
label[for] { display: block; font-size: 13px; font-weight: 500; color: #374151; margin: 4px 0 6px; }
select, .select-trigger { display: flex; align-items: center; width: 100%; min-width: 0; height: 36px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--brand-orange); border-radius: 8px; background: #fff; color: var(--brand-orange); font-size: 13px; font-weight: 700; text-align: left; }
select:not([multiple]) { display: block; appearance: none; padding-right: 38px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23ff8f00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px; }
select:focus, .select-trigger:focus { outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 2px rgba(255, 143, 0, .13); }
select:focus-visible, .select-trigger:focus-visible { outline: 1px solid var(--brand-orange); outline-offset: 2px; }
select:hover:not(:disabled), .select-trigger:hover:not(:disabled) { border-color: var(--brand-orange); background-color: #fffaf0; color: var(--brand-orange); }
select:disabled, .select-trigger:disabled { opacity: .58; cursor: not-allowed; }
.select-shell { position: relative; min-width: 0; }
.select-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { flex: 0 0 7px; width: 7px; height: 7px; margin: -3px 3px 0 12px; border: solid var(--brand-orange); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.select-trigger[aria-expanded="true"] .select-chevron { transform: rotate(225deg); margin-top: 3px; }
.select-menu { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; max-height: 215px; overflow-y: auto; overscroll-behavior: contain; padding: 5px 3px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; box-shadow: 0 2px 7px #00000018; }
.select-menu:focus { outline: none; }
.select-choice[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.select-choice { display: flex; align-items: center; min-height: 38px; padding: 9px 10px; gap: 10px; color: #374151; font-size: 13px; line-height: 1.4; cursor: pointer; overflow-wrap: anywhere; }
.select-choice[aria-selected="true"] { background: #f3f4f6; }
.select-choice:hover, .select-choice[data-active="true"]:not([aria-selected="true"]) { background: var(--hover); }
.select-check { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid #9ca3af; border-radius: 2px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.select-choice[aria-selected="true"] .select-check { background: var(--brand-red); border-color: var(--brand-red); }
.filter-help { font-size: 14px; line-height: 1.5; color: #716253; margin-bottom: 18px; }
.filter-actions { display: flex; flex-direction: column; gap: 13px; align-items: stretch; margin-top: 20px; }
.filter-actions button { width: 100%; }
#filterCount { color: #716253; font-size: 13px; margin: 0; }
#filtersTitle { margin: 0; font-size: 24px; letter-spacing: -.02em; }
input[type="password"] { width: 100%; min-width: 0; border: 1px solid #d9c8ad; border-radius: 8px; padding: 11px; }
input[type="file"] { display: block; width: 100%; min-width: 0; padding: 8px 0; }
.upload-results { padding-left: 22px; line-height: 1.5; overflow-wrap: anywhere; }
.upload-results li { padding: 5px 0; }
@media (max-width: 580px) {
  :root { --question-size: 17px; --source-size: 13px; }
  main { padding: 18px 10px 26px; }
  .topbar { align-items: center; flex-direction: row; gap: 6px; }
  .brand-logo { font-size: clamp(25px, 9vw, 32px); }
  .header-actions { width: auto; gap: 5px; }
  .header-actions .pill { min-height: 32px; padding: 6px 9px; }
  .pwa-install { grid-template-columns: 42px minmax(0,1fr); gap: 10px; padding: 12px; }
  .pwa-install > img { width: 42px; height: 42px; border-radius: 9px; }
  .pwa-install-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pwa-install-actions button { width: 100%; }
  article, .panel { padding: 18px 14px; }
  .question-title { font-size: 18px; }
  .option { min-height: 36px; padding: 5px 3px; gap: 7px; }
  .letter { flex-basis: 22px; width: 22px; height: 22px; font-size: 16px; }
  .actions { width: 100%; }
  .actions button { flex: 1; }
  .question-actions button { min-height: 44px; padding-inline: 5px; }
}
input[type="password"]:hover:not(:disabled) { border-color: var(--hover-border); background: #fffaf0; }
input[type="file"]::file-selector-button { background: #fff; color: var(--brand-red); border: 1px solid var(--brand-red); border-radius: 7px; padding: 8px 12px; cursor: pointer; margin-right: 10px; }
input[type="file"]::file-selector-button:hover { background: var(--hover); border-color: var(--hover-border); }
@media (prefers-reduced-motion: reduce) {
  button { transition: none; animation: none; }
  :where(#topActions,#identity,#globalNotice,#pwaInstall,#app,#appFooter) { transition: none; }
  body.is-loading .brand-word::after { animation: none; background-position: 50% 0; opacity: .9; }
}

/* Texto comum independente da confirmação da resposta. */
.support-toolbar:has(button[hidden]) { display: none; }
.support-toolbar { margin: 0 0 10px; }
.support-panel { margin: 0 0 12px; padding: 12px; border: 1px solid var(--border); border-left: 3px solid var(--brand-orange); border-radius: 6px; }
.support-panel h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink); }
/* Estatísticas calculadas localmente, sem alterar a diagramação das questões. */
#statsTitle { margin: 0; font-size: 24px; }
#statsTitle:focus { outline: none; }
.stats-period { max-width: 250px; margin: 15px 0; }
.stats-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.stats-cards > div { border: 1px solid var(--border); border-radius: 9px; padding: 14px; min-width: 0; background: #fffaf3; }
.stats-cards span { display: block; font-size: 12px; color: #716253; line-height: 1.4; }
.stats-cards strong { display: block; margin: 5px 0; font-size: 26px; color: var(--brand-red); }
.stats-cards small { display: block; font-size: 11px; color: #716253; }
.stats-panel h3 { font-size: 16px; margin: 22px 0 10px; }
.stats-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.stats-actions button { flex: 1; }
.stats-tabs { display: flex; align-items: stretch; gap: 8px; margin: 18px 0; }
.stats-tabs .stats-tab { flex: 1 1 0; min-width: 0; }
.stats-refresh { display: flex; width: 100%; margin: 14px 0 10px; }
.stats-refresh button { width: 100%; min-width: 0; }
.stats-pending { display: grid; gap: 6px; }
.stats-charts { display: grid; gap: 14px; margin: 18px 0; }
.stats-temporal-highlights { margin: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
.stats-chart-card { min-width: 0; padding: 14px; border: 1px solid #edd9c6; border-radius: 10px; background: #fffaf3; }
.stats-chart-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.stats-chart-heading h3 { flex: 1 1 150px; margin: 0; font-size: 16px; color: var(--ink); }
.stats-chart-legend { display: flex; flex: 1 1 260px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; gap: 10px; color: #6d5b49; font-size: 11px; }
.stats-chart-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; background: rgba(255,143,0,.5); }
.stats-chart-legend .correct::before { background: var(--brand-red); }
.stats-chart-legend .accuracy-line::before, .stats-chart-legend .time-line::before { width: 18px; height: 0; border-radius: 0; border-top: 3px solid #8a4b08; background: transparent; vertical-align: middle; }
.stats-chart-legend .time-line::before { border-top-color: #70407a; border-top-style: dashed; }
.stats-chart-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 7px; }
.stats-column-chart { position: relative; isolation: isolate; display: grid; grid-auto-flow: column; gap: 7px; align-items: end; min-width: 100%; }
.stats-column-chart.hours { grid-auto-columns: minmax(25px,1fr); gap: clamp(3px,.55vw,7px); min-width: 760px; }
.stats-column-chart.weekdays { grid-auto-columns: minmax(34px,1fr); gap: clamp(3px,.55vw,7px); min-width: 280px; }
.stats-column-chart.labels { grid-auto-columns: minmax(92px,1fr); gap: clamp(5px,.7vw,9px); min-width: 620px; }
.stats-column { position: relative; z-index: 1; display: grid; grid-template-rows: 150px auto auto; gap: 4px; min-width: 0; border-radius: 5px; text-align: center; color: #6d5b49; font-size: 11px; }
.stats-column:hover { background: rgba(255,143,0,.06); }
.stats-column:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 1px; background: rgba(255,143,0,.08); }
.stats-column-track { position: relative; width: min(100%,30px); height: 150px; justify-self: center; border-bottom: 1px solid #d8c4ae; }
.stats-column-track > span { position: absolute; bottom: 0; left: 0; width: 100%; border-radius: 4px 4px 0 0; }
.stats-column-total { background: rgba(255,143,0,.48); }
.stats-column-correct { left: 22% !important; width: 56% !important; background: var(--brand-red); }
.stats-column strong { font-size: 10px; color: #664a31; }
.stats-column small { min-height: 14px; font-size: 10px; }
.stats-chart-lines { position: absolute; z-index: 2; top: 5px; left: 0; width: 100%; height: 140px; overflow: visible; pointer-events: none; }
.stats-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.stats-line-accuracy { stroke: #8a4b08; }
.stats-line-time { stroke: #70407a; stroke-dasharray: 7 5; }
.stats-chart-tooltip { position: absolute; z-index: 4; top: 8px; left: var(--stats-tooltip-left); display: grid; gap: 2px; width: max-content; max-width: min(210px,calc(100% - 12px)); padding: 8px 10px; border: 1px solid rgba(255,143,0,.7); border-radius: 8px; background: rgba(51,38,25,.9); box-shadow: 0 5px 16px rgba(73,45,18,.2); color: #fffaf3; font-size: 11px; line-height: 1.35; text-align: left; pointer-events: none; transform: translateX(-50%); backdrop-filter: blur(6px); }
.stats-chart-tooltip.align-start { transform: none; }
.stats-chart-tooltip.align-end { transform: translateX(-100%); }
.stats-chart-tooltip strong { color: #ffd89b; font-size: 12px; }
.stats-section-title { margin: 22px 0 0; color: var(--ink); }
.stats-tab, .response-filter { width: 100%; min-height: 42px; padding: 8px 10px; border-color: #e2c8ab; background: #fff; color: #6c4c29; }
.stats-tab:hover:not(:disabled), .response-filter:hover:not(:disabled) { border-color: var(--brand-orange); background: #fff7e8; color: #9a5700; }
.stats-tab.active, .stats-tab[aria-selected="true"], .response-filter.active, .response-filter[aria-pressed="true"] { border-color: var(--brand-orange); background: #fff; color: var(--brand-orange); font-weight: 700; box-shadow: 0 0 0 2px rgba(255, 143, 0, .16); }
.stats-tab.active:hover:not(:disabled), .stats-tab[aria-selected="true"]:hover:not(:disabled), .response-filter.active:hover:not(:disabled), .response-filter[aria-pressed="true"]:hover:not(:disabled) { border-color: var(--brand-orange); background: #fffaf0; color: var(--brand-orange); }
.stats-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); padding: 0; gap: 8px; list-style: none; }
.stats-days li { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; }
.day-track { height: 75px; width: 65%; display: flex; align-items: flex-end; border-bottom: 1px solid var(--border); }
.day-track > span { display: block; width: 100%; background: var(--brand-orange); border-radius: 3px 3px 0 0; }
.day-count { font-weight: 700; }
.stats-table-wrap { width: 100%; overflow: auto; margin-bottom: 16px; }
.stats-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.stats-table-wrap th { padding: 9px; background: #fff3c4; font-weight: 650; }
.stats-table-wrap td { padding: 10px 9px; border-bottom: 1px solid var(--border); }
.stats-table-wrap td:not(:first-child) { text-align: center; }
.stats-table-wrap td strong,.stats-table-wrap td span { display: block; }
.stats-table-wrap td span { color: #716253; margin-top: 4px; }
.stats-panel .meta { margin-top: 8px; }
@media(max-width:400px) { .stats-cards {gap: 6px;} .stats-cards>div {padding:10px;} .stats-cards strong {font-size:23px;} .header-actions {flex-wrap:nowrap;} .stats-table-wrap th,.stats-table-wrap td {padding:8px 5px;} }
@media(min-width:581px) {
 .stats-column-chart.hours { grid-template-columns: repeat(24,minmax(0,1fr)); grid-auto-flow: row; grid-auto-columns: auto; gap: clamp(2px,.35vw,6px); width: 100%; min-width: 620px; }
}
@media(max-width:580px) {
 .stats-tabs { flex-direction: column; }
 .stats-chart-legend { justify-content: flex-start; }
}

/* Fluxos autenticados, gestão e autoria. Métricas editoriais da questão preservadas. */
#identity { margin-top: -5px; margin-bottom: 18px; }
#app > .panel > h2 { margin-top: 0; }
.stack { display: grid; gap: 14px; }
.field { display: block; margin: 8px 0; min-width: 0; font-size: 14px; }
.field > span { display: block; margin-bottom: 6px; font-weight: 650; }
.field input:not([type="checkbox"]), .field textarea { width: 100%; }
.field-error { display: block; margin-top: 6px; color: #a02f29; font-size: 12px; line-height: 1.35; }
.field-error[hidden] { display: none; }
input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]):not([type="file"]) { border-color: #a02f29; box-shadow: 0 0 0 2px #a02f291a; }
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), textarea { font: 14px/1.45 system-ui, sans-serif; border: 1px solid #ff8f00; border-radius: 8px; padding: 10px 12px; max-width: 100%; background: #fff; color: #332619; }
textarea { display: block; resize: vertical; width: 100%; min-height: 64px; }
textarea:focus-visible { outline: 1px solid #ff8f00; outline-offset: 1px; box-shadow: 0 0 0 2px #ff8f001a; }
.token-editor { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 42px; padding: 5px 7px; border: 1px solid var(--brand-orange); border-radius: 8px; background: #fff; }
.token-editor:focus-within { box-shadow: 0 0 0 2px rgba(255, 143, 0, .13); }
.token-list { display: contents; }
.token-editor > input:not([type="radio"]):not([type="checkbox"]):not([type="file"]) { flex: 1 1 190px; min-width: 120px; min-height: 30px; padding: 5px 4px; border: 0; border-radius: 4px; outline: 0; box-shadow: none; background: transparent; color: var(--ink); }
.token-item { max-width: 100%; min-height: 30px; padding: 5px 9px; overflow: hidden; border-color: var(--brand-orange); border-radius: 99px; background: #fffaf0; color: var(--brand-orange); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.token-item:hover:not(:disabled) { border-color: var(--brand-red); background: var(--hover); color: var(--brand-red); }
.assignment-panel { padding: 17px; border: 1px solid #eadccd; border-left: 4px solid var(--brand-orange); border-radius: 10px; background: #fffaf3; }
.assignment-panel > h3 { margin: 0 0 14px; color: var(--ink); }
.assignment-selects { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 8px; }
.assignment-selects .field { margin: 0; }
.assignment-swap { width: 43px; min-width: 43px; height: 36px; min-height: 36px; padding: 5px; border-color: var(--brand-orange); color: var(--brand-orange); font-size: 18px; line-height: 1; }
.assignment-list, .class-students { margin-top: 14px; padding: 13px; border: 1px solid #eadccd; border-radius: 8px; background: #fff; }
.assignment-list > strong, .class-students > strong, .class-students > span { display: block; }
.assignment-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; margin-top: 10px; }
.assignment-choice { min-width: 0; padding: 7px 8px; border-radius: 7px; background: #fffaf3; overflow-wrap: anywhere; }
.class-students textarea { min-height: 42px; margin-top: 8px; resize: none; overflow: hidden; }
select { width: 100%; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 24px 0 8px; }
.menu-card { display: flex; flex-direction: column; text-align: left; padding: 20px; gap: 8px; align-items: flex-start; min-height: 115px; }
.menu-card strong { font-size: 17px; }
.menu-card span { font-size: 13px; line-height: 1.5; color: #66584a; font-weight: 400; }
.flashcard-discipline { min-height: 78px; justify-content: center; }
.location-fields { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 12px; }
.flashcard-study { margin-top: 14px; }
.flashcard-face { min-height: 180px; display: flex; flex-direction: column; justify-content: center; padding: 24px; border: 1px solid #eadccd; border-radius: 10px; background: #fffaf3; }
.flashcard-face + .flashcard-face { margin-top: 12px; }
.flashcard-back { background: #fff; border-color: var(--brand-orange); }
.flashcard-text { font-size: 19px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.flashcard-comment { margin-top: 20px; padding-top: 14px; border-top: 1px solid #eadccd; color: #66584a; }
.flashcard-comment p { margin: 6px 0 0; white-space: pre-wrap; }
.flashcard-answer-actions button { flex: 1; }
.flashcard-limit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 12px 0; }
.flashcard-preferences { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 16px; }

/* Quizclass: os animais permanecem privados e são revelados dentro do mesmo círculo visual. */
.quiz-live { display: grid; gap: 14px; }
.quiz-live-shell,.quiz-live-question { min-width: 0; }
.quiz-live-question { display: grid; gap: 0; }
.quiz-live-question > .progress { margin-bottom: 16px; }
.quiz-question-progress { margin-bottom: 12px; }
.quiz-animal { display: grid; justify-items: center; gap: 10px; margin: 12px auto 4px; }
.quiz-animal-frame { position: relative; isolation: isolate; width: 170px; aspect-ratio: 1; overflow: hidden; border: 3px solid var(--brand-orange); border-radius: 50%; background: #fff; box-shadow: 0 10px 28px #9d321a24; }
.quiz-animal-frame img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.quiz-animal-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-orange); font-size: 58px; background: #fffaf3; }
.quiz-animal figcaption { color: #55463a; font-size: 16px; text-align: center; }
.quiz-animal figcaption strong { color: var(--brand-red); }
.quiz-animal-small { margin: 0 auto; }
.quiz-animal-small .quiz-animal-frame { width: 46px; border-width: 1px; box-shadow: none; }
.quiz-animal-small .quiz-animal-fallback { font-size: 20px; }
.quiz-ranking .data-table th,.quiz-ranking .data-table td { vertical-align: middle; }
.quiz-ranking-animal-cell { text-align: center; vertical-align: middle; }
.quiz-ranking-animal-cell .quiz-animal { width: fit-content; margin: 0 auto; }
.quiz-animal-empty { color: #8b7a6c; }
.quiz-alias-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: stretch; }
.quiz-alias-control button { white-space: nowrap; }
.quizclass-choice-list { min-width: 0; padding: 0; margin: 0; border: 0; }
.quizclass-choice-list legend { margin-bottom: 7px; color: #374151; font-size: 13px; font-weight: 500; }
.quizclass-choice-items { display: grid; gap: 8px; }
.quizclass-choice { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.quizclass-choice:hover { border-color: var(--brand-orange); background: var(--hover); }
.quizclass-choice:focus-within { outline: 3px solid #ec481f33; outline-offset: 2px; }
.quizclass-choice:has(input:checked) { border-color: var(--brand-orange); background: #fff6e8; box-shadow: inset 4px 0 0 var(--brand-orange); }
.quizclass-choice input { margin: 0; accent-color: var(--brand-red); }
.quizclass-choice-copy { display: grid; gap: 3px; min-width: 0; }
.quizclass-choice-copy .meta { margin: 0; }
.quiz-animal-draw,.quiz-animal-reveal { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 18px; padding: 20px 12px; text-align: center; }
.quiz-animal-draw strong { color: var(--brand-red); font-size: clamp(21px,5vw,30px); }
.quiz-animal-mystery { box-shadow: none; }
.quiz-animal-mystery img { position: static; width: 100%; height: 100%; object-fit: cover; }
.quiz-animal-reveal { animation: quizAnimalReveal .32s ease-out both; }
@keyframes quizAnimalReveal { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.quiz-ranking h3 { margin-bottom: 10px; }
.quiz-ranking-moving { animation: quizRankingMove .9s cubic-bezier(.2,.75,.25,1) both; }
.quiz-ranking-score { display: inline-flex; justify-content: center; min-width: 4.5ch; color: var(--brand-red); font-variant-numeric: tabular-nums; font-weight: 750; }
.quiz-score-digit { display: inline-block; min-width: .62em; text-align: center; }
.quiz-score-digit.changing { color: var(--brand-orange); animation: quizScoreDigit .18s ease-in-out infinite alternate; }
@keyframes quizRankingMove { from { transform: translateY(var(--quiz-ranking-shift)); background: #fff0dc; } to { transform: translateY(0); background: transparent; } }
@keyframes quizScoreDigit { from { transform: translateY(-.12em); opacity: .58; } to { transform: translateY(.12em); opacity: 1; } }
.quiz-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 8px; margin: 12px 0 18px; }
.quiz-podium-place { display: grid; align-content: center; min-width: 0; padding: 14px 8px; border: 1px solid var(--brand-orange); border-radius: 9px 9px 4px 4px; background: #fffaf0; text-align: center; animation: quizPodiumReveal .38s cubic-bezier(.2,.8,.25,1) both; }
.quiz-podium-place[hidden] { display: none; }
.quiz-podium-place[data-position="1"] { grid-column: 2; min-height: 188px; background: #fff3c4; }
.quiz-podium-place[data-position="2"] { grid-column: 1; min-height: 160px; }
.quiz-podium-place[data-position="3"] { grid-column: 3; min-height: 136px; }
.quiz-podium-animal { display: grid; place-items: center; margin-bottom: 7px; }
.quiz-podium-animal .quiz-animal { margin: 0; }
.quiz-podium-place strong,.quiz-podium-place span { display: block; overflow-wrap: anywhere; }
.quiz-podium-place span { margin-top: 7px; color: #716253; font-size: 12px; }
@keyframes quizPodiumReveal { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.quiz-question { margin-top: 0; }
.quiz-control-actions { position: sticky; bottom: 8px; z-index: 5; display: grid; grid-template-columns: minmax(0,1fr); width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fffaf3ed; box-shadow: 0 8px 24px #2b1d1320; }
.quiz-control-actions:has(> button:nth-child(2):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.quiz-control-actions button { width: 100%; min-width: 0; }
.quiz-control-actions .quiz-board-tools-button, .quiz-control-actions .quiz-cut-tools-button { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto !important; width: 100%; min-width: 0 !important; height: auto; min-height: 36px !important; padding: 8px 12px !important; border-radius: 6px; color: var(--ink); line-height: 1.2; overflow: visible; }
.quiz-control-actions .quiz-board-tools-button.active { border-color: var(--brand-red); background: #fff3c4; box-shadow: inset 4px 0 0 var(--brand-red); }
.quiz-control-actions.quiz-question-control-actions:has(> button:nth-child(3):last-child) { grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); }
@media(max-width:580px) {
 .quiz-control-actions.quiz-question-control-actions:has(> button:nth-child(2):last-child) { grid-template-columns: minmax(0,1fr); }
 .quiz-alias-control { grid-template-columns: 1fr; }
 .quiz-podium { gap: 5px; }
 .quiz-podium-place { padding-inline: 4px; font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { .quiz-animal-reveal,.quiz-ranking-moving,.quiz-score-digit.changing,.quiz-podium-place { animation: none; } .option,.letter,.truth-toggle { transition: none; } }
.flashcard-preferences h3 { grid-column: 1 / -1; margin: 0; }
.flashcard-preferences > .meta { grid-column: 1 / -1; margin: 0; }
.flashcard-study-day { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 9px 10px; border-radius: 6px; color: #374151; font-size: 13px; line-height: 1.4; cursor: pointer; }
.flashcard-study-day:hover { background: var(--hover); }
.flashcard-study-day input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.flashcard-study-day input:checked + .select-check { border-color: var(--brand-red); background: var(--brand-red); }
.flashcard-study-day input:checked + .select-check::after { content: '✓'; }
.flashcard-study-day input:focus-visible + .select-check { outline: 2px solid rgba(229,57,53,.45); outline-offset: 2px; }
.flashcard-discipline-list { display: grid; gap: 10px; margin-top: 14px; }
.flashcard-discipline-row { border: 1px solid #eadccd; border-radius: 10px; background: #fffaf3; padding: 12px; }
.flashcard-discipline-head { display: grid; grid-template-columns: minmax(150px,1fr) auto; align-items: center; gap: 10px; }
.flashcard-discipline-choice { min-width: 0; display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink); font-weight: 700; }
.flashcard-discipline-choice:hover { color: var(--brand-orange); }
.flashcard-discipline-choice input,.flashcard-deck-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.flashcard-discipline-choice input:checked + .select-check,.flashcard-deck-choice input:checked + .select-check { border-color: var(--brand-red); background: var(--brand-red); }
.flashcard-discipline-choice input:checked + .select-check::after,.flashcard-deck-choice input:checked + .select-check::after { content: '✓'; }
.flashcard-discipline-choice input:focus-visible + .select-check,.flashcard-deck-choice input:focus-visible + .select-check { outline: 2px solid rgba(229,57,53,.45); outline-offset: 2px; }
.flashcard-discipline-content { min-width: 0; display: grid; gap: 3px; }
.flashcard-discipline-name { min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.flashcard-today-counts { display: flex; flex-wrap: wrap; gap: 3px 11px; color: #655b52; font-size: 12px; font-weight: 600; line-height: 1.35; }
.flashcard-new-count { color: #2563b8; }
.flashcard-review-count { color: #16834c; }
.flashcard-discipline-controls { padding-top: 0; flex-wrap: nowrap; justify-content: flex-end; }
.flashcard-discipline-controls button { flex: 0 0 auto; min-width: 0; min-height: 33px; padding: 6px 9px; font-size: 12px; }
.flashcard-discipline-head .field { margin: 0; }
.flashcard-discipline-head .field span { font-size: 12px; }
.flashcard-list-preview { margin: 8px 0 0 30px; display: grid; gap: 4px; }
.flashcard-deck-row { display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; min-height: 33px; color: var(--ink); cursor: pointer; }
.flashcard-deck-row:hover { color: var(--brand-orange); }
.flashcard-deck-row strong { min-width: 0; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.flashcard-discipline-list.flashcard-controls-below .flashcard-discipline-head { grid-template-columns: 14px minmax(72px,1fr) auto; align-items: start; gap: 7px 9px; }
.flashcard-discipline-list.flashcard-controls-below .flashcard-discipline-choice,.flashcard-discipline-list.flashcard-controls-below .flashcard-discipline-content { display: contents; }
.flashcard-discipline-list.flashcard-controls-below .flashcard-discipline-choice > .select-check { grid-column: 1; grid-row: 2; align-self: center; }
.flashcard-discipline-list.flashcard-controls-below .flashcard-discipline-name { grid-column: 1 / -1; grid-row: 1; text-align: center; }
.flashcard-discipline-list.flashcard-controls-below .flashcard-today-counts { grid-column: 2; grid-row: 2; display: grid; align-self: center; gap: 2px; }
.flashcard-discipline-list.flashcard-controls-below .flashcard-discipline-controls { grid-column: 3; grid-row: 2; align-self: center; width: auto; justify-self: end; justify-content: flex-end; }
.flashcard-overview-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
.flashcard-overview-actions button, .flashcard-reveal-actions button { width: 100%; min-width: 0; }
.subpanel { border: 1px solid #eadccd; border-radius: 8px; padding: 16px; margin: 16px 0; }
summary { cursor: pointer; color: #b62b28; font-size: 14px; font-weight: 650; padding: 5px 0; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; overflow-wrap: anywhere; }
.list-row:not(.flashcard-deck-row) { border-bottom: 1px solid #eee4d9; padding: 13px 0; }
.list-row .actions { padding-top: 0; justify-content: flex-end; gap: 6px; }
.list-row .actions button { padding: 6px 9px; min-height: 33px; font-size: 12px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.checkbox-row input { accent-color: #e53935; }
.question-add-alternative { width: 100%; margin-bottom: 16px; }
.question-editor { border-top: 2px solid #e53935; margin-top: 24px; padding-top: 10px; }
.question-editor-modal { border-top: 0; margin-top: 0; padding-top: 0; gap: 8px; }
.question-editor-modal > .draft-save-status { min-height: 0; margin: 0; }
.question-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.question-editor-header h3 { margin: 0; }
.question-editor-header .actions { padding-top: 0; }
.question-style-picker { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin: 8px 0 14px; }
.flashcard-order-picker { grid-column: 1 / -1; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }
.flashcard-order-picker .question-style-choice { width: 100%; }
.question-style-picker legend { grid-column: 1 / -1; margin-bottom: 6px; color: #374151; font-size: 13px; font-weight: 650; }
.question-style-choice { min-width: 0; min-height: 38px; padding: 7px 8px; border-color: #e2c8ab; background: #fff; color: #6c4c29; font-size: 12px; line-height: 1.25; }
.question-style-choice:hover:not(:disabled) { border-color: var(--brand-orange); background: #fff7e8; color: #9a5700; }
.question-style-choice.active, .question-style-choice[aria-pressed="true"] { border-color: var(--brand-orange); background: #fff; color: var(--brand-orange); box-shadow: 0 0 0 2px rgba(255,143,0,.16); font-weight: 700; }
.question-answer-key { padding: 12px; border: 1px solid #eadccd; border-radius: 8px; background: #fffaf3; }
.question-answer-key h4 { margin: 0 0 10px; }
.answer-key-preview { display: grid; gap: 2px; margin-top: 10px; }
.answer-key-preview .option { width: 100%; margin: 0; background: #fff; }
.answer-key-preview .option-content:empty::before { content: 'Alternativa sem conteúdo'; color: #8b7b6a; font-style: italic; }
.answer-power { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 25px; height: 25px; padding: 0 4px; border-radius: 6px; background: var(--brand-orange); color: #fff; font-size: 12px; font-weight: 750; line-height: 1; }
.letter.answer-power { flex: 0 0 auto; width: auto; min-width: 25px; height: 25px; }
.truth-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 0; border-color: #b9aa9a; border-radius: 50%; background: #fff; color: #6c6259; font-size: 14px; font-weight: 800; line-height: 1; transition: border-color .4s ease, background-color .4s ease, color .4s ease, box-shadow .4s ease; }
.truth-toggle[data-value="certo"] { border-color: #15803d; background: #f0fdf4; color: #15803d; }
.truth-toggle[data-value="errado"] { border-color: #b91c1c; background: #fef2f2; color: #b91c1c; }
.truth-toggle[data-result="correct"] { border-color: #15803d; background: #f0fdf4; color: #15803d; }
.truth-toggle[data-result="incorrect"] { border-color: #b91c1c; background: #fef2f2; color: #b91c1c; }
.truth-toggle[data-result="missed"] { border-color: #1d4ed8; background: #eff6ff; color: #1d4ed8; }
.truth-option { cursor: default; }
.truth-option:hover { background: transparent; }
.truth-option-interactive:not(:has(.truth-toggle:disabled)) { cursor: pointer; }
.truth-option-interactive:not(:has(.truth-toggle:disabled)):hover { background: var(--hover); }
.truth-option .truth-toggle { flex: 0 0 30px; align-self: center; }
.archive-control { margin: 10px 0 4px; padding: 11px 12px; border: 1px solid #e7b5b2; border-radius: 8px; background: #fff7f6; color: #8c2824; }
.archive-control:has(input:checked) { border-color: var(--brand-red); background: #fff0ef; font-weight: 650; }
.management-actions, .import-actions { justify-content: flex-start; }
.question-import-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; width: 100%; }
.question-import-actions button { width: 100%; min-width: 0; white-space: normal; }
.question-export-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: 100%; }
.question-export-actions button { width: 100%; min-width: 0; white-space: normal; }
.management-primary-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.management-primary-actions button { flex: 1 1 118px; width: auto; min-width: 0; white-space: normal; }
@media (max-width: 700px) {
  .management-primary-actions:has(> button:nth-child(5):last-child) > button { flex-basis: calc(33.333% - 7px); }
  .management-primary-actions:has(> button:nth-child(4):last-child) > button { flex-basis: calc(50% - 5px); }
}
@media (max-width: 500px) {
  .management-primary-actions > button { flex-basis: calc(50% - 5px); }
}
@media (max-width: 720px) {
  .question-import-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 440px) {
  .question-import-actions { grid-template-columns: 1fr; }
  .question-export-actions { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .management-primary-actions > button { flex-basis: 100%; }
}
.collection-management-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.collection-management-actions button { width: 100%; min-width: 0; }
@media (max-width: 580px) {
  .collection-management-actions { grid-template-columns: 1fr; }
}
.import-actions { padding-top: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 5px; }
.toolbar button { min-width: 33px; padding: 4px 8px; }
.question-draft-list { display: grid; gap: 22px; }
.question-draft-list .question-editor { padding: 16px; border: 1px solid #eadccd; border-top: 3px solid var(--brand-red); border-radius: 10px; background: #fffdf9; }
.question-add-more-actions { justify-content: flex-start; padding-top: 18px; }
.editor-final-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; padding-top: 20px; }
.editor-final-actions button { width: 100%; min-width: 0; white-space: normal; }
.rich-editor-field { padding: 10px; border: 1px solid #eadccd; border-radius: 8px; background: #fffaf3; }
.question-toolbar { margin: 7px 0 10px; }
.question-toolbar button:first-child { font-size: 17px; }
.question-field-preview { min-height: 46px; padding: 10px; border: 1px dashed #d8c4ae; border-radius: 7px; background: #fff; }
.question-field-preview .support-panel,.question-field-preview .explanation-panel { margin: 0; }
.draft-save-status { min-height: 20px; }
.draft-preview-sequence { display: grid; gap: 28px; }
.draft-question-preview { padding-bottom: 24px; border-bottom: 2px solid #eadccd; }
.draft-question-preview:last-child { padding-bottom: 0; border-bottom: 0; }
.asset-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.asset-list button { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.import-results { font-size: 13px; max-height: 250px; overflow: auto; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.metric { border: 1px solid #edd9c6; border-radius: 8px; padding: 15px 10px; display: flex; flex-direction: column; gap: 5px; }
.metric strong { color: #e53935; font-size: 25px; }
.metric span { color: #6d5b49; font-size: 12px; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 12px 0; }
.data-table th { text-align: left; background: #fff2d1; }
.data-table th,.data-table td { padding: 10px 8px; border-bottom: 1px solid #eadccd; vertical-align: top; }
.data-table th.stats-sortable { padding: 0; }
.data-table .stats-sort-button { display: flex; align-items: center; justify-content: flex-start; gap: 7px; width: 100%; min-height: 42px; padding: 9px 8px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; line-height: 1.25; text-align: left; white-space: normal; }
.data-table .stats-sort-button:hover:not(:disabled) { border: 0; background: #ffe7b5; color: var(--ink); }
.data-table .stats-sort-button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--brand-orange); outline-offset: -2px; }
.stats-sort-indicator { margin-left: auto; color: var(--brand-red); font-size: 12px; line-height: 1; }
.data-table .stats-selectable-row { cursor: pointer; }
.data-table .stats-selectable-row:hover > td { background: #fffaf1; }
.data-table .stats-selectable-row[aria-selected="true"] > td { background: #fff0dc; box-shadow: inset 0 1px rgba(255,143,0,.2),inset 0 -1px rgba(255,143,0,.2); }
.data-table .stats-selectable-row[aria-selected="true"] > td:first-child { box-shadow: inset 3px 0 var(--brand-orange),inset 0 1px rgba(255,143,0,.2),inset 0 -1px rgba(255,143,0,.2); }
.data-table .stats-selectable-row:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: -2px; }
.data-table small { display: block; margin-top: 4px; font-size: 11px; color: #766556; }
.data-table button { padding: 4px 8px; font-size: 12px; min-height: 30px; }
.data-table .stats-detail-column { text-align: center; }
.data-table td.stats-detail-column button { display: block; margin-inline: auto; }
.activity { display: grid; gap: 6px; max-height: 250px; overflow: auto; }
.activity-day { display: grid; grid-template-columns: 95px 1fr 40px; gap: 10px; font-size: 12px; align-items: center; }
meter { width: 100%; height: 15px; }
meter::-webkit-meter-optimum-value { background: #ff8f00; }
.separator { display: flex; justify-content: center; margin: 15px 0; color: #85705c; font-size: 12px; }
.google-login { display: flex; align-items: center; justify-content: center; width: 100%; }
.google-login-content { display: inline-flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.google-login-content img { display: block; flex: 0 0 20px; width: 20px; height: auto; }
.auth-secondary-actions { display: grid; justify-items: center; gap: 1px; margin-top: -5px; }
.authenticator-qr { display: grid; width: 100%; justify-items: center; }
.authenticator-qr svg { display: block; width: min(256px,100%); height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.authenticator-qr-fallback { max-width: 430px; margin: 8px auto; text-align: center; }
.auth-text-action { min-height: 32px; padding: 4px 9px; border: 0; background: transparent; color: var(--brand-red); font-size: 14px; font-weight: 600; line-height: 1.35; }
.auth-text-action:hover:not(:disabled) { border-color: transparent; background: transparent; color: #a82e2a; text-decoration: underline; text-underline-offset: 3px; }
.privacy-back { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 11px; border: 1px solid var(--brand-red); border-radius: 99px; background: #fff; color: var(--brand-red); font-size: 12px; font-weight: 650; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.privacy-back:hover { background: var(--hover); }
.privacy-back:focus-visible { outline: 2px solid rgba(229,57,53,.45); outline-offset: 2px; }
.privacy-page { padding: clamp(20px,5vw,34px); }
.privacy-intro { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #eadccd; }
.privacy-intro h2 { margin: 0; color: var(--ink); font-size: clamp(24px,5vw,32px); letter-spacing: -.025em; }
.privacy-lead { max-width: 62ch; margin: 10px 0 0; color: #66584a; font-size: 15px; line-height: 1.6; }
.privacy-sections { display: grid; gap: 20px; }
.privacy-section { padding-left: 15px; border-left: 3px solid var(--brand-orange); }
.privacy-section h3, .privacy-contact h3 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }
.privacy-section p, .privacy-contact p { margin: 0; color: #4f4338; font-size: 14px; line-height: 1.65; }
.privacy-lead, .privacy-section p, .privacy-contact p, .privacy-note { text-align: justify; text-justify: inter-word; }
.privacy-contact { margin-top: 24px; padding: 16px 18px; border: 1px solid #e7c59d; border-radius: 9px; background: #fff8e9; }
.privacy-section a, .privacy-contact a { color: #a82e2a; font-weight: 650; overflow-wrap: anywhere; }
.privacy-note { margin: 20px 0 0; color: #716253; font-size: 12px; line-height: 1.55; }
.support-controls { margin: 10px 0; }
.support-panel { margin: 10px 0 14px; padding: 12px; border: 1px solid #eadccd; border-radius: 8px; }
footer a { color: #a82e2a; }
@media(max-width:580px) {
 .question-style-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .flashcard-order-picker { grid-template-columns: 1fr; }
 .menu-grid { grid-template-columns: 1fr; }
 .location-fields { grid-template-columns: 1fr; gap: 0; }
 .flashcard-limit-grid,.flashcard-preferences { grid-template-columns: 1fr; }
 .flashcard-preferences h3,.flashcard-preferences > .meta { grid-column: auto; }
 .flashcard-discipline-head { grid-template-columns: 14px minmax(72px,1fr) auto; align-items: start; gap: 7px 9px; }
 .flashcard-discipline-choice,.flashcard-discipline-content { display: contents; }
 .flashcard-discipline-choice > .select-check { grid-column: 1; grid-row: 2; align-self: center; }
 .flashcard-discipline-name { grid-column: 1 / -1; grid-row: 1; text-align: center; }
 .flashcard-today-counts { grid-column: 2; grid-row: 2; display: grid; align-self: center; gap: 2px; }
 .flashcard-discipline-controls { grid-column: 3; grid-row: 2; align-self: center; flex-direction: row; width: auto; justify-self: end; }
 .flashcard-overview-actions { grid-template-columns: 1fr; }
 .flashcard-list-preview { margin-left: 0; }
 .two-columns { grid-template-columns: 1fr; }
 .metrics { grid-template-columns: 1fr 1fr; }
 .list-row { flex-wrap: wrap; }
 .header-actions { justify-content: flex-end; }
 .assignment-selects { grid-template-columns: minmax(0,1fr) auto; }
 .assignment-selects .field { grid-column: 1; }
 .assignment-selects .assignment-swap { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
 .assignment-checks { grid-template-columns: 1fr; }
}

/* Situação da resposta: seleção única sem interferir nos rádios das alternativas. */
.response-filters { border: 1px solid #eadccd; border-radius: 8px; padding: 12px; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.response-filters legend { font-size: 13px; color: #66584a; padding-inline: 5px; }
.essay-response-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
.simulation-filter-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.explanation-panel { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.explanation-panel.is-transitioning { box-sizing: border-box; overflow: hidden; }
.explanation-panel h3 { font-size: 17px; margin: 0 0 10px; }
.explanation-panel .meta:empty { display: none; }
@media(max-width: 400px) { .response-filters { grid-template-columns: 1fr; } }
@media(max-width: 580px) { .essay-response-filters, .simulation-filter-grid { grid-template-columns: 1fr; } }
.discursive-response-entry{margin-top:1rem}.discursive-response-body{margin-top:.75rem}.discursive-response-body textarea{width:100%}.discursive-response-card h3{margin-bottom:.35rem}.discursive-response-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}
.correction-filter-grid { display: flex; flex-wrap: wrap; width: 100%; gap: 12px; align-items: end; }
.correction-filter-grid > .field { flex: 1 1 220px; min-width: 0; margin: 0; }
.correction-card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.correction-card-heading h3 { margin: 0; }
.correction-status { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; padding: 4px 10px; border: 1px solid; border-radius: 99px; font-size: 12px; font-weight: 700; }
.correction-status.is-pending { border-color: #d79a34; background: #fff4d5; color: #714700; }
.correction-status.is-corrected { border-color: #68a978; background: #e5f6e9; color: #245f32; }
.correction-response-preview { display: -webkit-box; max-height: 6.6em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.correction-history-group > summary { cursor: pointer; font-weight: 700; }
.correction-history-group > .stack { margin-top: 14px; }
.correction-history-group .discursive-response-card { margin: 0; background: #fff; }
.correction-prompt h4 { margin: 18px 0 8px; }
.corrected-response { min-height: 80px; padding: 14px; border: 1px solid #eadccd; border-radius: 8px; background: #fffdf9; line-height: 1.7; }
.correction-highlight { border-radius: 3px; padding: 1px 2px; color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.correction-highlight.color-yellow,.correction-color-key.color-yellow { background: #fff1a8; }
.correction-highlight.color-green,.correction-color-key.color-green { background: #d7f2dd; }
.correction-highlight.color-blue,.correction-color-key.color-blue { background: #d9eaff; }
.correction-highlight.color-red,.correction-color-key.color-red { background: #ffd8d5; }
.correction-color-key { display: inline-flex; align-items: center; min-height: 24px; margin-right: 8px; padding: 2px 8px; border: 1px solid rgba(58,45,32,.24); border-radius: 99px; font-size: 11px; font-weight: 700; }
.correction-annotation-summary { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 24px; }
.correction-annotation-summary li { padding-left: 4px; }
.correction-annotation-summary q { font-weight: 650; }
.correction-annotation-summary p { margin: 6px 0 0; white-space: pre-wrap; }
.correction-general-comment { padding: 12px; border-left: 3px solid var(--brand-orange); background: #fff8e9; white-space: pre-wrap; }
.correction-grade-grid { display: grid; grid-template-columns: minmax(140px,.6fr) minmax(180px,1fr); gap: 12px; }
.correction-editor textarea[readonly] { min-height: 180px; background: #fffdf9; cursor: text; }
.correction-annotation-editor-list { margin-top: 4px; }
.correction-annotation-editor-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #eadccd; border-radius: 8px; background: #fffdf9; }
.correction-annotation-editor-item q { font-weight: 650; overflow-wrap: anywhere; }
.correction-annotation-editor-item p { margin: 6px 0 0; white-space: pre-wrap; }
.empty-state { padding: 18px; border: 1px dashed #d8c4ae; border-radius: 8px; color: #66584a; text-align: center; }
.login-attempt-list { display: grid; gap: 8px; }
.login-attempt-row { align-items: center; }
.login-attempt-success { color: #245f32; }
.login-attempt-failure { color: #a02f29; }
@media(max-width:580px) {
 .correction-grade-grid { grid-template-columns: 1fr; }
 .correction-annotation-editor-item { flex-direction: column; }
 .correction-annotation-editor-item button { align-self: flex-end; }
}

/* Tema escuro preparado para um futuro controle: basta definir data-theme="dark" em <html>. */
:root[data-theme="dark"] {
  color-scheme: dark;
  color: #f5ede5;
  background: #16120f;
  --brand-orange: #ffad33;
  --brand-red: #ff746e;
  --brand-comet-trail: #ff8752;
  --brand-yellow: #ffd85c;
  --hover: #3a291c;
  --hover-border: #c47a24;
  --ink: #f8efe6;
  --border: #514237;
  --scrollbar-thumb: #8d6745;
  --scrollbar-track: transparent;
}
:root[data-theme="dark"] .brand-logo,
:root[data-theme="dark"] .brand-letter { color: #ff8f00; }
:root[data-theme="dark"] .brand-logo .brand-accent { color: #e53935; }
:root[data-theme="dark"] button,
:root[data-theme="dark"] .pill,
:root[data-theme="dark"] article,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .select-trigger,
:root[data-theme="dark"] .select-menu,
:root[data-theme="dark"] input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .token-editor,
:root[data-theme="dark"] .assignment-list,
:root[data-theme="dark"] .class-students,
:root[data-theme="dark"] .flashcard-back,
:root[data-theme="dark"] .quizclass-choice,
:root[data-theme="dark"] .stats-tab,
:root[data-theme="dark"] .response-filter,
:root[data-theme="dark"] .question-style-choice,
:root[data-theme="dark"] .answer-key-preview .option,
:root[data-theme="dark"] .question-tool-button,
:root[data-theme="dark"] .question-label-option,
:root[data-theme="dark"] .truth-toggle,
:root[data-theme="dark"] .privacy-back,
:root[data-theme="dark"] .correction-history-group .discursive-response-card { background: #241e19; color: #f5ede5; }
:root[data-theme="dark"] .question-note { border-color: transparent; background: transparent; color: #f8efe6; box-shadow: none; }
:root[data-theme="dark"] .question-tool-grid .question-tool-button[aria-pressed="true"] { border-color: var(--brand-orange); background: #49301c; box-shadow: 0 0 0 3px #ff8f0045, inset 0 0 0 2px #211b17; }
:root[data-theme="dark"] .question-tool-grid .question-tool-button[aria-pressed="true"]::after { box-shadow: 0 0 0 2px #211b17; }
:root[data-theme="dark"] .quiz-control-actions .quiz-board-tools-button.active { border-color: var(--brand-orange); background: #49301c; box-shadow: inset 4px 0 0 var(--brand-orange); }
:root[data-theme="dark"] .question-tool-setting-field { border-color: #58483d; background: #241e19; }
:root[data-theme="dark"] .question-tool-setting-preview { border-color: #765537; background: #211b17; }
:root[data-theme="dark"] .question-tool-range::-webkit-slider-thumb { background: #f5ede5; }
:root[data-theme="dark"] .question-tool-range::-moz-range-thumb { background: #f5ede5; }
:root[data-theme="dark"] article,
:root[data-theme="dark"] .panel { box-shadow: 0 12px 34px rgba(0,0,0,.18); }
:root[data-theme="dark"] .primary { border-color: var(--brand-red); background: var(--brand-red); color: #1b1210; }
:root[data-theme="dark"] .pwa-install { border-color: #624832; background: linear-gradient(105deg,#241e19 0%,#211a15 64%,#302116 100%); box-shadow: 0 7px 20px rgba(0,0,0,.22); }
:root[data-theme="dark"] .progress-empty-line { stroke: #4e3d2e; }
:root[data-theme="dark"] body.is-app-slow .transition-status { background: #241e19; color: #d8c9bc; }
:root[data-theme="dark"] #question,
:root[data-theme="dark"] .select-choice,
:root[data-theme="dark"] label[for],
:root[data-theme="dark"] .quizclass-choice-list legend,
:root[data-theme="dark"] .question-style-picker legend { color: #f5ede5; }
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .admin-subtitle,
:root[data-theme="dark"] .pwa-install-copy p,
:root[data-theme="dark"] .meta,
:root[data-theme="dark"] .active-filters,
:root[data-theme="dark"] footer,
:root[data-theme="dark"] .filter-help,
:root[data-theme="dark"] #filterCount,
:root[data-theme="dark"] .stats-cards span,
:root[data-theme="dark"] .stats-cards small,
:root[data-theme="dark"] .stats-chart-legend,
:root[data-theme="dark"] .stats-column,
:root[data-theme="dark"] .stats-table-wrap td span,
:root[data-theme="dark"] .menu-card span,
:root[data-theme="dark"] .flashcard-comment,
:root[data-theme="dark"] .quiz-animal figcaption,
:root[data-theme="dark"] .quiz-podium-place span,
:root[data-theme="dark"] .metric span,
:root[data-theme="dark"] .data-table small,
:root[data-theme="dark"] .privacy-lead,
:root[data-theme="dark"] .privacy-note,
:root[data-theme="dark"] .response-filters legend,
:root[data-theme="dark"] .empty-state { color: #cdbdad; }
:root[data-theme="dark"] .pp-source,
:root[data-theme="dark"] .pp-detail,
:root[data-theme="dark"] .modal-message,
:root[data-theme="dark"] .privacy-section p,
:root[data-theme="dark"] .privacy-contact p { color: #ded1c4; }
:root[data-theme="dark"] .modal-frame { border-color: #58483d; background: #211b17; box-shadow: 0 24px 64px #0009; }
:root[data-theme="dark"] .modal-actions { border-color: #514237; background: #1c1713; }
:root[data-theme="dark"] .select-menu { border-color: #625246; box-shadow: 0 8px 24px #0008; }
:root[data-theme="dark"] .select-choice[aria-selected="true"] { background: #3b3028; }
:root[data-theme="dark"] select:not([multiple]) { background-color: #241e19; }
:root[data-theme="dark"] select:hover:not(:disabled),
:root[data-theme="dark"] .select-trigger:hover:not(:disabled),
:root[data-theme="dark"] input[type="password"]:hover:not(:disabled),
:root[data-theme="dark"] .token-item { background-color: #30251d; }
:root[data-theme="dark"] input[type="file"]::file-selector-button { background: #241e19; color: var(--brand-red); }
:root[data-theme="dark"] .option:has(input:checked):not([data-option-managed]):not(.option-cut):not([data-result]),
:root[data-theme="dark"] .question-tool-surface .option[data-option-active]:not([data-result]),
:root[data-theme="dark"] .quizclass-choice:has(input:checked),
:root[data-theme="dark"] .stats-tab.active,
:root[data-theme="dark"] .stats-tab[aria-selected="true"],
:root[data-theme="dark"] .response-filter.active,
:root[data-theme="dark"] .response-filter[aria-pressed="true"],
:root[data-theme="dark"] .question-style-choice.active,
:root[data-theme="dark"] .question-style-choice[aria-pressed="true"] { background: #39281d; }
:root[data-theme="dark"] .option[data-result="correct"],
:root[data-theme="dark"] .truth-toggle[data-value="certo"],
:root[data-theme="dark"] .truth-toggle[data-result="correct"] { border-color: #48b875; background: #173526; color: #7de3a5; }
:root[data-theme="dark"] .option[data-result="incorrect"],
:root[data-theme="dark"] .truth-toggle[data-value="errado"],
:root[data-theme="dark"] .truth-toggle[data-result="incorrect"] { border-color: #ef706b; background: #3a1d1c; color: #ffaaa5; }
:root[data-theme="dark"] .option[data-result="missed"],
:root[data-theme="dark"] .truth-toggle[data-result="missed"] { border-color: #69a1f4; background: #182b48; color: #a9c9ff; }
:root[data-theme="dark"] .stats-cards > div,
:root[data-theme="dark"] .stats-chart-card,
:root[data-theme="dark"] .assignment-panel,
:root[data-theme="dark"] .assignment-choice,
:root[data-theme="dark"] .flashcard-face,
:root[data-theme="dark"] .quiz-podium-place,
:root[data-theme="dark"] .quiz-control-actions,
:root[data-theme="dark"] .question-answer-key,
:root[data-theme="dark"] .rich-editor-field,
:root[data-theme="dark"] .question-draft-list .question-editor,
:root[data-theme="dark"] .question-field-preview,
:root[data-theme="dark"] .corrected-response,
:root[data-theme="dark"] .correction-annotation-editor-item,
:root[data-theme="dark"] .correction-editor textarea[readonly] { border-color: #514237; background: #211b17; }
:root[data-theme="dark"] .subpanel,
:root[data-theme="dark"] .response-filters,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .content th,
:root[data-theme="dark"] .content td,
:root[data-theme="dark"] .list-row:not(.flashcard-deck-row),
:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .data-table td,
:root[data-theme="dark"] .privacy-intro,
:root[data-theme="dark"] .support-panel { border-color: #514237; }
:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .stats-table-wrap th { background: #3a2b1e; }
:root[data-theme="dark"] .data-table .stats-sort-button:hover:not(:disabled),
:root[data-theme="dark"] .data-table .stats-selectable-row:hover > td { background: #30251d; }
:root[data-theme="dark"] .data-table .stats-selectable-row[aria-selected="true"] > td { background: #3a291c; }
:root[data-theme="dark"] .privacy-contact,
:root[data-theme="dark"] .correction-general-comment { border-color: #624832; background: #302416; }
:root[data-theme="dark"] .archive-control { border-color: #70423f; background: #321d1c; color: #ffaaa5; }
:root[data-theme="dark"] .archive-control:has(input:checked) { background: #401f1e; }
:root[data-theme="dark"] .correction-status.is-pending { border-color: #c89338; background: #3a2b12; color: #ffd988; }
:root[data-theme="dark"] .correction-status.is-corrected { border-color: #4c9c67; background: #173526; color: #91deb0; }
:root[data-theme="dark"] .correction-highlight,
:root[data-theme="dark"] .correction-color-key { color: #241c16; }
:root[data-theme="dark"] .authenticator-qr svg { background: #fff; }
