/* Simulado e regras por edição, seguindo os cartões brancos do estúdio. */
#redacaoArea .studio-simulado { width: 100%; max-width: 1280px; margin-inline: auto; }
#redacaoArea :is(.studio-sim-grid, .studio-official-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#redacaoArea :is(.studio-sim-card, .studio-sim-setup, .studio-sim-summary, .studio-official-grid > article) {
  min-width: 0; padding: clamp(20px, 3vw, 32px); background: #fff; color: #171717;
  border: 1px solid #e2e2e2; border-radius: 7px; box-shadow: none;
}
#redacaoArea :is(.studio-sim-card, .studio-sim-summary, .studio-sim-setup) :is(h3, h4) { color: #171717; margin: 0 0 12px; letter-spacing: -.02em; line-height: 1.2; }
#redacaoArea .studio-sim-card h3 { font: 600 1.65rem var(--font-display); }
#redacaoArea .studio-sim-card header > span { display: block; color: #606060; font-size: .8rem; margin-bottom: 8px; }
#redacaoArea .studio-sim-card > strong { display: block; font: 500 clamp(2.5rem, 4vw, 4rem)/1.1 var(--font-display); color: #171717; margin: 20px 0 6px; }
#redacaoArea :is(.studio-sim-card, .studio-sim-setup, .studio-sim-summary, .studio-official-library, .studio-exam-rules) p { color: #555; font: 400 .9rem/1.65 var(--font-sans); margin: 8px 0 16px; overflow-wrap: anywhere; }
#redacaoArea .studio-sim-plan { padding-block: 16px; margin-block: 18px; border-block: 1px solid #e8e8e8; }
#redacaoArea .studio-sim-plan p { margin-bottom: 0; }
#redacaoArea .studio-sim-card details { margin-top: 20px; }
#redacaoArea :is(.studio-sim-card, .studio-exam-rules) summary { color: #333; cursor: pointer; font: 500 .8rem/1.6 var(--font-sans); }
#redacaoArea :is(.studio-exam-rules, .studio-result-sources) a { display: block; margin-top: 10px; color: #333; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; overflow-wrap: anywhere; }
#redacaoArea .studio-exam-rules { padding-block: 16px; }
#redacaoArea .studio-sim-active { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 28px; background: #171717; color: #fff; border-radius: 7px; }
#redacaoArea .studio-sim-active :is(h3, p, span, output) { color: #fff; }
#redacaoArea .studio-sim-active h3 { font: 500 1.7rem var(--font-display); margin-block: 12px; }
#redacaoArea .studio-sim-active p { max-width: 50ch; font-size: .85rem; line-height: 1.6; color: #d5d5d5; }
#redacaoArea .studio-sim-active .redacao-btn { background: #fff !important; border-color: #fff !important; color: #171717 !important; }
#redacaoArea :is(.studio-sim-active output, .studio-sim-timer output) { display: block; font: 500 clamp(1.8rem, 4vw, 3rem)/1.3 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
#redacaoArea .studio-sim-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#redacaoArea .studio-sim-setup { margin-top: 28px; scroll-margin-top: 20px; }
#redacaoArea .studio-sim-setup label { display: block; max-width: 660px; margin: 18px 0; color: #333; font: 500 .85rem/1.7 var(--font-sans); }
#redacaoArea .studio-sim-setup .redacao-input { display: block; width: 100%; margin-top: 7px; min-height: 46px; color: #171717 !important; background: #fff !important; border: 1px solid #cfcfcf; border-radius: 5px; padding: 10px 12px; }
#redacaoArea .studio-sim-summary { margin-bottom: 28px; }
#redacaoArea .studio-sim-task { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid #e5e5e5; }
#redacaoArea .studio-sim-task p { margin-block: 5px; }
#redacaoArea .studio-sim-task .redacao-btn { flex-shrink: 0; }
#redacaoArea .studio-sim-timer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 20px 24px; margin-bottom: 24px; border: 1px solid #dcdcdc; border-radius: 7px; background: #fff; color: #171717; }
#redacaoArea .studio-sim-timer[hidden] { display: none !important; }
#redacaoArea .studio-sim-timer :is(span, small) { display: block; color: #555; font-size: .8rem; }
#redacaoArea :is(#simAlert, #simStorage) { flex-basis: 100%; color: #333; font-size: .85rem; margin: 0; }
#redacaoArea :is(#simAlert, #simStorage):empty { display: none; }
#redacaoArea :is(.studio-line-note, .studio-assessment-note) { color: #555; font: 400 .8rem/1.6 var(--font-sans); }
#redacaoArea .studio-assessment-note { padding: 18px 24px; margin: 0; background: #f4f4f4; color: #333; border-bottom: 1px solid #dedede; }
#redacaoArea .studio-official-library { margin-top: 36px; }
#redacaoArea .studio-official-library h3 { color: #171717; font: 500 1.6rem/1.2 var(--font-display); }
#redacaoArea .studio-official-library h4 { color: #171717; margin: 0 0 12px; }
#redacaoArea .studio-official-library a { color: #333; }
#redacaoArea .studio-result-sources { padding: 24px; color: #333; border-top: 1px solid #e5e5e5; }
#redacaoArea .studio-sim-history { margin-top: 28px; color: #333; }
#redacaoArea .studio-sim-history > details { margin-block: 16px; }
#redacaoArea .studio-sim-history summary { cursor: pointer; padding-block: 10px; }
#redacaoArea :is(.studio-simulado, .studio-sim-timer) :is(button, select, summary, input):focus-visible { outline: 2px solid #171717; outline-offset: 4px; }
#redacaoArea .studio-sim-active button:focus-visible { outline-color: #fff; }
#redacaoArea .studio-simulado button:disabled { opacity: .45; cursor: not-allowed; }
#redacaoArea .redacao-sheet__text:read-only { background: #f7f7f7; color: #555; }
@media (max-width: 900px) {
  #redacaoArea :is(.studio-sim-grid, .studio-official-grid) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #redacaoArea :is(.studio-sim-active, .studio-sim-task) { flex-direction: column; align-items: stretch; }
  #redacaoArea .studio-sim-timer { padding: 16px; }
}
@media (max-width: 860px) {
  #redacaoArea .redacao-side__nav { min-width: 0; flex: 1; gap: 3px !important; justify-content: space-between; }
  #redacaoArea .redacao-side__item { min-width: 30px; }
}
