.activity-question{--aq-ink:#17233A;--aq-muted:#5B6D86;--aq-accent:#1268D7;--aq-line:#D9E4F2;--aq-surface:#fff;--aq-selected:#DCECFF;--aq-good:#087A59;--aq-good-bg:#E8F7F1;--aq-bad:#B83232;--aq-bad-bg:#FFF0F0;color:var(--aq-ink);border:0;min-width:0;margin:0 0 1.5rem;padding:0}
html[data-theme=dark] .activity-question{--aq-ink:#edf3ff;--aq-muted:#b4c5d9;--aq-accent:#84b7ff;--aq-line:#485b74;--aq-surface:#172336;--aq-selected:#223e60;--aq-good:#83e2bf;--aq-good-bg:#163b32;--aq-bad:#ffb1ae;--aq-bad-bg:#452b32}
.activity-question legend{max-width:100%;padding:0 0 .65rem;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}
.activity-question .question-number{display:block;font-size:.78rem;font-weight:700;color:var(--aq-accent);margin-bottom:.35rem}
.activity-question .option{display:flex;align-items:center;gap:.65rem;min-height:44px;margin:.4rem 0;padding:.55rem .75rem;border:1px solid var(--aq-line);border-radius:7px;color:var(--aq-ink);background:var(--aq-surface);position:relative}
.activity-question .option input{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.activity-question .option:focus-within{outline:2px solid var(--aq-accent);outline-offset:2px}
.activity-question .option:has(:checked){background:var(--aq-selected);border-color:var(--aq-accent)}
.activity-question .letter{border:1px solid var(--aq-line);border-radius:4px;flex:0 0 1.7rem;height:1.7rem;display:grid;place-content:center;color:var(--aq-ink);background:var(--aq-surface)}
.activity-question .option:has(:checked) .letter{background:var(--aq-accent);color:var(--aq-surface)}
.activity-question .option.correct{background:var(--aq-good-bg);border-color:var(--aq-good)}
.activity-question .option.incorrect{background:var(--aq-bad-bg);border-color:var(--aq-bad)}
.activity-question .answer-text{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.activity-question .answer-label{max-width:35%;overflow-wrap:anywhere;font-weight:600}
.activity-question .correct .answer-label{color:var(--aq-good)}.activity-question .incorrect .answer-label{color:var(--aq-bad)}
.activity-question .option-translation:not([hidden]){display:block;color:var(--aq-muted)}

#quiz-dialog .dialog-top{position:sticky;inset-block-start:0;z-index:4;background:var(--card);padding-block:.3rem}
#quiz-dialog #quiz-close{min-width:44px;min-height:44px;color:#fff;background:#B83232;border-color:#B83232}
.attempt-clock{display:block;text-align:end;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
#quiz-content .retry-official{background:#087A59;color:white;min-height:44px}
html:has(#quiz-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
#quiz-dialog{overscroll-behavior:contain;max-height:calc(100dvh - 2rem);padding-bottom:max(1rem,env(safe-area-inset-bottom))}

/* The original slot stays in the flow while the same player floats. */
#quiz-dialog [data-external-media-state=allowed] .activity-player{min-height:200px}
#quiz-dialog .activity-player.is-floating{position:fixed;inset-block-start:max(6rem,calc((100dvh - 810px)/2 + 5rem));inset-inline-end:max(1.25rem,calc((100vw - 760px)/2));z-index:3;display:flex;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:8px}
#quiz-dialog .is-floating iframe.video{width:clamp(200px,26vw,355px);height:200px;max-width:none;margin:0}
#quiz-dialog .floating-return{flex:none;width:44px;height:44px;color:#B83232;font-size:1.4rem}
#quiz-dialog .floating-return[hidden]{display:none}
#quiz-dialog [data-external-media-gate]:has(.is-floating){padding-bottom:200px}

#quiz-dialog #quiz-title{color:#2b68d9}
html[data-theme=dark] #quiz-dialog #quiz-title{color:#94bdff}
#quiz-content.academic-summary{max-width:33rem;margin-inline:auto;display:grid;justify-items:center;text-align:center;gap:.65rem;padding:1rem}
#quiz-content.academic-summary p{margin:.2rem 0}
#quiz-content.academic-summary button{min-height:44px;width:min(100%,24rem)}
.score-ring{display:grid;place-items:center;border:6px solid #1268d7;border-radius:50%;height:6rem;width:6rem;color:var(--text);font-variant-numeric:tabular-nums;font-size:1.6rem}
.score-ring.perfect{border-color:#087A59}
.perfect-announcement{position:relative;color:var(--aq-good,currentColor);font-weight:700}
.celebration-pieces{display:flex;justify-content:space-around;gap:.3rem;position:absolute;inset:0;pointer-events:none}
.celebration-pieces i{width:5px;height:8px;background:#1268d7;animation:ms-confetti 1.4s ease-out both}
.celebration-pieces i:nth-child(3n){background:#087A59;animation-delay:.12s}
.celebration-pieces i:nth-child(3n+1){background:#edb43b;animation-delay:.19s}
@keyframes ms-confetti{from{opacity:1;transform:translateY(-2rem) rotate(0)}to{opacity:0;transform:translateY(2rem) rotate(260deg)}}
@media(prefers-reduced-motion:reduce){.celebration-pieces{display:none}}

.menu-mobile-logout,.mobile-account-dialog:not([open]){display:none}
@media(max-width:700px){
 body[data-context] .topbar .topbar-inner{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-areas:"bell brand account" "prefs prefs prefs" "search search search";align-items:center;gap:.25rem;padding:.35rem .75rem}
 body[data-context] .topbar .brand{grid-area:brand;justify-self:center}
 body[data-context] .topbar .brand img{max-width:105px;height:48px;object-fit:contain}
 body[data-context] .topbar .header-actions{display:contents}
 body[data-context] .topbar .header-actions>.notifications-menu{grid-area:bell;justify-self:start}
 body[data-context] .topbar .account-menu{grid-area:account;justify-self:end}
 body[data-context] .topbar .account-menu summary{min-width:44px;min-height:44px}
 body[data-context] .topbar .account-menu-label,body[data-context] .topbar .chevron{display:none}
 body[data-context] .topbar .header-search{grid-area:search;width:100%;margin:0}
 body[data-context] .topbar .preferences{grid-area:prefs;justify-content:center;display:flex;align-items:center}
 body[data-context=student] .preferences :is(select,button){height:44px}
 body[data-context] .header-actions:has(.mobile-account-dialog[data-ready]) > form{display:none}
 body[data-context] .notifications-menu .popover-content{max-width:calc(100vw - 1.75rem);left:0;right:auto;overflow:auto;max-height:70dvh}
}
html:has(.mobile-account-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
.mobile-account-dialog[open]{display:flex;flex-direction:column;width:min(24rem,calc(100vw - 1.5rem));max-height:calc(100dvh - 2rem);padding:0;color:var(--text);background:var(--card);overflow:hidden}
.mobile-account-dialog header{padding:.5rem 1rem;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;border-bottom:1px solid var(--line)}
.mobile-account-dialog h2{grid-column:2;margin:0;text-align:center}
.mobile-account-dialog header button{width:44px;height:44px;background:#B83232;color:#fff}
.mobile-account-dialog [data-mobile-navigation]{overflow:auto;overscroll-behavior:contain;padding:1rem 1rem max(1rem,env(safe-area-inset-bottom))}
.mobile-account-dialog .popover-content{position:static;display:grid;width:auto;max-width:100%;border:none;box-shadow:none}
.mobile-account-dialog .menu-mobile-logout{display:block}

[data-spacing=compact]{--ms-choice-gap:.25rem}[data-spacing=regular]{--ms-choice-gap:.4rem}[data-spacing=spacious]{--ms-choice-gap:.75rem}
[data-edge=square]{--ms-choice-radius:2px}[data-edge=rounded]{--ms-choice-radius:7px}
.activity-question .option{margin-block:var(--ms-choice-gap,.4rem);border-radius:var(--ms-choice-radius,7px)}

.family-card-details>summary{cursor:pointer;list-style:revert;min-height:44px}
.family-card-details>summary:focus-visible{outline:2px solid #1268d7}

.notifications-menu .notices-content{max-height:min(72vh,35rem);overflow:auto;overscroll-behavior:contain}
.notifications-menu .notification{align-items:center;gap:.75rem;overflow-wrap:anywhere}
@media(max-width:700px){.notifications-menu .notices-content{position:fixed;inset:auto max(8px,env(safe-area-inset-right)) auto max(8px,env(safe-area-inset-left));width:auto;max-width:none}.notices-content button{min-height:44px}}

/* A letra acompanha o estado final mesmo quando a alternativa está selecionada. */
.activity-question .option:is(.correct, .incorrect) .letter {
  background: var(--answer-tone);
  border-color: var(--answer-tone);
  color: var(--aq-surface);
}
.activity-question .option.correct { --answer-tone: var(--aq-good); }
.activity-question .option.incorrect { --answer-tone: var(--aq-bad); }
.activity-question .option:is(.correct, .incorrect) {
  border-inline-start: 3px solid var(--answer-tone);
}
.activity-question .letter {
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  flex-basis: 2rem;
  border-radius: .5rem;
  font-weight: 700;
}
.activity-question .answer-label { text-align: end; }
@media (max-width: 440px) {
  .activity-question .option:has(.answer-label) {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: .65rem;
    row-gap: .15rem;
  }
  .activity-question .option:has(.answer-label) .letter { grid-row: 1 / 3; }
  .activity-question .answer-label {
    grid-column: 2;
    text-align: start;
    max-width: none;
  }
}
#quiz-dialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:0;max-width:calc(100vw - 1rem);border:0}
#quiz-dialog>.dialog-top{position:relative;inset:auto;flex:none;background:#fff;border-bottom:1px solid var(--line);margin:0;padding:.55rem 1rem;display:grid;grid-template-columns:1fr auto;align-items:center}
html[data-theme=dark] #quiz-dialog>.dialog-top{background:#172336}
#quiz-dialog .attempt-clock{grid-column:1/-1}
.quiz-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:.7rem clamp(.75rem,3vw,1.5rem) 1.2rem;scroll-padding:1rem}
.media-gate{margin:.5rem 0 1rem}
.media-gate .activity-player:not(.is-floating){display:grid;place-items:stretch;aspect-ratio:16/9;min-height:200px;overflow:hidden;border-radius:.6rem;background:#142d4e}
.media-gate .video{width:100%;height:100%;min-height:200px;margin:0;border:0}
.media-cover{background:#173859;color:white;display:grid;place-content:center;justify-items:center;gap:.75rem;font-size:1.12rem;font-weight:650}
.media-cover::before{content:'▶';display:grid;place-content:center;padding-left:.2rem;border-radius:50%;width:3.8rem;height:3.8rem;background:#fff;color:#185292}
.media-gate .muted{font-size:.9rem;margin:.5rem 0}.media-gate [hidden]{display:none!important}.media-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.activity-question legend>span{font-weight:400}.activity-question legend strong{font-weight:750}
@media(max-width:700px){
 body[data-context] .topbar .topbar-inner{width:100%;max-width:none;box-sizing:border-box;margin-inline:0;grid-template-columns:minmax(44px,1fr) auto minmax(44px,1fr)}
 body[data-context] .topbar .brand img{display:block;width:128px;height:76px;max-width:none;object-fit:cover;object-position:center}
 .mobile-account-dialog .sidebar a[aria-current=page]{background:#dcecff;color:#124881;border-inline-start:4px solid #1268d7;font-weight:700}
 .mobile-account-dialog .menu-mobile-logout button.logout{width:100%;min-height:44px;background:#a72931;color:white;border-color:#a72931;text-align:center}
}
#quiz-content.academic-summary.final-result{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:stretch;max-width:none;padding:0;gap:0;border:1px solid var(--line);border-radius:.85rem;overflow:hidden;margin-block:1rem}
.final-result .result-hero{background:#e8f7f1;color:#183831;position:relative;overflow:hidden;padding:clamp(1rem,3vw,2rem);display:grid;align-content:center;justify-items:center;text-align:center;gap:.6rem}
.final-result .result-hero h3{margin:.25rem 0;font-weight:750}.final-result .score-ring{background:var(--card);border-width:5px;font-size:2rem;width:6.9rem;height:6.9rem}
.final-result .result-details{width:100%;box-sizing:border-box;padding:clamp(1rem,3vw,2rem);text-align:start}
.result-details dl{display:grid;grid-template-columns:1fr auto;margin:0 0 1rem}.result-details :is(dt,dd){padding:.6rem 0;border-bottom:1px solid var(--line);margin:0}.result-details dd{text-align:end;font-weight:700}
.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.result-actions>*{height:auto;min-height:44px;display:grid;place-items:center;text-align:center;white-space:normal}.result-actions>:first-child{grid-column:1/-1}.result-actions a{color:#076449}
.final-result .celebration-pieces{top:35%}.final-result .celebration-pieces i{width:7px;height:11px}
html[data-theme=dark] .final-result .result-hero{background:#1b342f;color:#edf4ff}html[data-theme=dark] .final-result .score-ring.perfect{border-color:#81ddbc}html[data-theme=dark] .result-actions a{color:#83e2bf}
@media(max-width:650px){#quiz-content.academic-summary.final-result{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){body[data-context] .topbar .brand{width:128px;height:76px;justify-content:center}body[data-context] .topbar .brand img{box-sizing:border-box}}
.avatar-thumb{width:100%;height:100%;border-radius:50%;object-fit:cover}.avatar-gallery{display:flex;flex-wrap:wrap;gap:.5rem;margin:.6rem 0 1rem}.avatar-gallery label{position:relative;cursor:pointer}.avatar-gallery img{width:54px;height:54px;border-radius:50%;padding:2px;border:2px solid transparent}.avatar-gallery input{position:absolute;opacity:0}.avatar-gallery input:checked+img,.avatar-gallery input:focus-visible+img{border-color:#1268d7}.avatar-picker canvas{width:120px;height:120px;border-radius:50%}
#quiz-content.final-result{justify-items:stretch}.result-hero{box-sizing:border-box;width:100%}
.result-actions .quiet{padding-inline:.4rem;font-size:.94rem}

.avatar-picker [hidden]{display:none!important}
/* O menu compacto mantém uma única área rolável sob o cabeçalho. */
.mobile-account-dialog [data-mobile-navigation] > nav.popover-content{max-height:none;overflow:visible}

/* O espaço de leitura limita a largura inclusive quando o provedor exige 200px de altura. */
.media-gate .activity-player:not(.is-floating) {
  width: min(100%, 35rem);
  min-width: 0;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
}
.media-gate iframe.video { min-width: 0; max-width: 100%; }

.official-confetti{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:30}

@media(max-width:700px){body[data-context] .topbar .brand,body[data-context] .topbar .brand img{height:72px;width:clamp(148px,40vw,172px);max-width:100%;object-fit:cover;object-position:50% 54%}body[data-context] .header-actions:has(.mobile-account-dialog[data-ready])>form{display:none!important}.mobile-account-dialog[open] .menu-mobile-logout{display:block;position:sticky;bottom:0;background:var(--surface,#fff);padding-block:4px}.mobile-account-dialog[open] .menu-mobile-logout button.logout{width:100%;min-height:44px;color:white;background:#a72931;border-color:#a72931}}
html.ms-dialog-lock{overflow:hidden;overscroll-behavior:none}html.ms-dialog-lock body{position:fixed!important;inset-inline:0;top:var(--ms-locked-top);width:100%;overflow:hidden}dialog[open]{overscroll-behavior:contain}

/* Atividades. Layout aprovado no Figma e opções de aparência do SuperAdmin. */
@font-face {
    font-family: MaxStudents Activity;
    src: url("ms-activity-regular.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: MaxStudents Activity;
    src: url("ms-activity-bold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}
:root {
    --ms-activity-ink: #1c2d46;
    --ms-activity-muted: #526681;
    --ms-activity-surface: #fff;
    --ms-activity-option: #f8fafd;
    --ms-activity-line: #dae3ef;
    --ms-activity-accent: #2356cb;
    --ms-activity-selected: #ecf3ff;
    --ms-activity-good: #147053;
    --ms-activity-good-bg: #e9f6f0;
    --ms-activity-bad: #b83232;
    --ms-activity-bad-bg: #fff0f0;
    --ms-choice-radius: 11px;
    --ms-choice-gap: 9px;
}
html[data-theme="dark"] {
    --ms-activity-ink: #e4eaf5;
    --ms-activity-muted: #afbdd1;
    --ms-activity-surface: #171d2e;
    --ms-activity-option: #1d283d;
    --ms-activity-line: #35415a;
    --ms-activity-accent: #a0bfff;
    --ms-activity-selected: #233757;
    --ms-activity-good: #96e0c0;
    --ms-activity-good-bg: #1c3b36;
    --ms-activity-bad: #ffb1ae;
    --ms-activity-bad-bg: #452b32;
}
[data-spacing="compact"] { --ms-choice-gap: 5px; }
[data-spacing="regular"] { --ms-choice-gap: 9px; }
[data-spacing="spacious"] { --ms-choice-gap: 14px; }
[data-edge="square"] { --ms-choice-radius: 2px; }
[data-edge="rounded"] { --ms-choice-radius: 11px; }

:is(.week-section, #quiz-dialog, #activity-page, .activity-question) {
    font-family: "MaxStudents Activity", Arimo, system-ui, sans-serif;
    color: var(--ms-activity-ink);
}

.week-section .section-heading {
    align-items: center;
    gap: 12px;
    margin-block-end: 16px;
}
.week-section .section-heading h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    line-height: 1.25;
    letter-spacing: normal;
}
.week-section .week-nav {
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--ms-activity-line);
    border-radius: 11px;
    background: var(--ms-activity-surface);
}
.week-section .week-nav .button {
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    border: 0;
    color: var(--ms-activity-accent);
    background: transparent;
}
.week-section .week-nav .muted {
    padding-inline: 6px;
    color: var(--ms-activity-ink);
    font-size: .875rem;
    font-weight: 700;
    text-align: center;
}
.week-section .week-grid {
    align-items: start;
    gap: 14px;
}
.week-section .day-column {
    min-width: 0;
    min-height: 0;
    padding: 14px;
    border: 1px solid var(--ms-activity-line);
    border-radius: 13px;
    background: var(--ms-activity-surface);
    box-shadow: none;
}
.week-section .day-column > .eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 2px 9px;
    border-radius: 8px;
    color: var(--ms-activity-accent);
    background: var(--ms-activity-selected);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
}
.week-section .day-column > h3 {
    margin: 4px 0 9px;
    padding: 0 0 9px;
    border-bottom: 1px solid var(--ms-activity-line);
    color: var(--ms-activity-muted);
    font-size: .8125rem;
    font-weight: 400;
}
.week-section .day-column > p {
    margin: 4px 0 0;
    color: var(--ms-activity-muted);
    font-size: .8125rem;
}
.week-section .calendar-event {
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.week-section .calendar-event + .calendar-event {
    margin-block-start: 12px;
    padding-block-start: 10px;
    border-block-start: 1px solid var(--ms-activity-line);
}
.week-section .calendar-event > strong {
    color: var(--ms-activity-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}
.week-section .calendar-event .activity-state,
.week-section .calendar-event .activity-grade {
    color: var(--ms-activity-muted);
    font-size: .8125rem;
    line-height: 1.4;
}
.week-section .calendar-event[data-state="completed"] .activity-state,
.week-section .calendar-event[data-state="done"] .activity-state {
    color: var(--ms-activity-good);
    font-weight: 700;
}
.week-section .calendar-event .activity-actions {
    gap: 6px;
    margin-block-start: 4px;
}
.week-section .calendar-event .activity-actions :is(.button, button) {
    box-sizing: border-box;
    min-height: 44px;
    height: auto;
    max-width: 100%;
    padding: 6px 8px;
    border-radius: 10px;
    font-family: inherit;
    font-size: .8125rem;
    line-height: 1.25;
    white-space: normal;
}
.week-section .calendar-event .activity-actions .quiet {
    color: var(--ms-activity-accent);
    border-color: var(--ms-activity-line);
}

#quiz-dialog[open] {
    width: min(918px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(88dvh, calc(100dvh - 24px));
    border: 1px solid var(--ms-activity-line);
    border-radius: 20px;
    color: var(--ms-activity-ink);
    background: var(--ms-activity-surface);
}
#quiz-dialog > .dialog-top {
    gap: 10px 12px;
    margin: 0;
    padding: 12px clamp(16px, 2.5vw, 30px);
    border-color: var(--ms-activity-line);
    background: var(--ms-activity-surface);
}
#quiz-dialog > .dialog-top > .pill {
    justify-self: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--ms-activity-muted);
    background: transparent;
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.4;
}
#quiz-dialog #quiz-close {
    display: grid;
    place-items: center;
    position: relative;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #b83232;
    font-size: 0;
}
#quiz-dialog #quiz-close::before,
#quiz-dialog #quiz-close::after {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 21px;
    height: 2.3px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
    pointer-events: none;
    content: "";
}
#quiz-dialog #quiz-close::after { transform: rotate(-45deg); }
#quiz-dialog #quiz-close:focus-visible {
    outline: 2px solid var(--ms-activity-accent);
    outline-offset: 2px;
}

#quiz-dialog .quiz-scroll {
    padding: 19px clamp(16px, 3vw, 32px) max(22px, env(safe-area-inset-bottom));
}
:is(#quiz-dialog, #activity-page) #quiz-title {
    margin: 0 0 14px;
    color: var(--ms-activity-ink);
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 1.26;
    letter-spacing: normal;
}
:is(#quiz-dialog, #activity-page) #quiz-status:empty { margin: 0; }
:is(#quiz-dialog, #activity-page) #quiz-content > .studio-block {
    margin-block: 12px;
}
:is(#quiz-dialog, #activity-page) #quiz-content > .studio-block > h3 {
    margin-block: 4px 8px;
    color: var(--ms-activity-ink);
    font-size: 1rem;
    line-height: 1.4;
}
:is(#quiz-dialog, #activity-page) .studio-block > p {
    margin-block: 8px;
}
:is(#quiz-dialog, #activity-page) #quiz-content > button.primary {
    min-height: 44px;
    border-radius: 10px;
    font-family: inherit;
}

.activity-question {
    --aq-ink: var(--ms-activity-ink);
    --aq-muted: var(--ms-activity-muted);
    --aq-accent: var(--ms-activity-accent);
    --aq-line: var(--ms-activity-line);
    --aq-surface: var(--ms-activity-surface);
    --aq-selected: var(--ms-activity-selected);
    --aq-good: var(--ms-activity-good);
    --aq-good-bg: var(--ms-activity-good-bg);
    --aq-bad: var(--ms-activity-bad);
    --aq-bad-bg: var(--ms-activity-bad-bg);
    min-inline-size: 0;
    padding: 0;
}
html[data-theme="dark"] .activity-question {
    --aq-ink: var(--ms-activity-ink);
    --aq-muted: var(--ms-activity-muted);
    --aq-accent: var(--ms-activity-accent);
    --aq-line: var(--ms-activity-line);
    --aq-surface: var(--ms-activity-surface);
    --aq-selected: var(--ms-activity-selected);
    --aq-good: var(--ms-activity-good);
    --aq-good-bg: var(--ms-activity-good-bg);
    --aq-bad: var(--ms-activity-bad);
    --aq-bad-bg: var(--ms-activity-bad-bg);
}
.activity-question legend {
    box-sizing: border-box;
    width: 100%;
    border-top: 1px solid var(--ms-activity-line);
    padding-block: 12px 4px;
    line-height: 1.35;
}
.activity-question legend > span {
    font-size: clamp(1.1rem, 2.1vw, 1.42rem);
    font-weight: 700;
}
.activity-question .question-number {
    margin-block-end: 5px;
    font-size: .8125rem;
}
.activity-question .option {
    box-sizing: border-box;
    min-inline-size: 0;
    min-height: 52px;
    margin-block: var(--ms-choice-gap);
    padding: 11px 12px;
    border-radius: var(--ms-choice-radius);
    background: var(--ms-activity-option);
}
.activity-question .option:has(:checked):not(.correct, .incorrect) {
    background: var(--aq-selected);
    border-color: var(--aq-accent);
    box-shadow: inset 0 0 0 1px var(--aq-accent);
}
.activity-question .option .letter {
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    border-radius: 8px;
    font-size: .8125rem;
}
.activity-question .option:has(:checked):not(.correct, .incorrect) .letter {
    border-color: #2356cb;
    background: #2356cb;
    color: #fff;
}
.activity-question .answer-text { font-size: .9375rem; line-height: 1.47; }
.activity-question .answer-status:empty { margin: 0; }
.activity-question > .answer-status + button.quiet {
    min-height: 44px;
    margin-block: 8px 0;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    color: #fff;
    background: #2356cb;
    border-color: #2356cb;
}
.activity-question > .answer-status + button.quiet:disabled {
    color: var(--ms-activity-muted);
    background: var(--ms-activity-option);
    border-color: var(--ms-activity-line);
}

:is(.quiz-scroll, #activity-page, section[data-spacing][data-edge]) {
    container-type: inline-size;
}
@container (min-width: 660px) {
    .activity-question.short-activity-options:not(:has(.option-translation:not([hidden]))) {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 12px;
    }
    .activity-question.short-activity-options > :not(.option) { grid-column: 1 / -1; }
    .activity-question.short-activity-options > .answer-status + button.quiet { justify-self: start; }
}
@media (max-width: 700px) {
    .week-section .section-heading { align-items: stretch; }
    .week-section .week-nav { justify-content: space-between; }
    .week-section .day-column > .eyebrow { vertical-align: middle; }
    .week-section .day-column > h3 {
        display: inline-block;
        margin: 0 0 0 10px;
        padding: 0;
        border: 0;
        vertical-align: middle;
    }
    .week-section .day-column > :is(.calendar-event, p):nth-child(3) {
        margin-block-start: 10px;
        padding-block-start: 10px;
        border-block-start: 1px solid var(--ms-activity-line);
    }
    .week-section .calendar-event .activity-actions:has(.primary):has(.quiet) {
        display: grid;
        grid-template-columns: minmax(78px, .7fr) minmax(0, 1.6fr);
    }
    .activity-question > .answer-status + button.quiet { width: 100%; }
}
html[data-theme="dark"] #quiz-dialog > .dialog-top {
    background: var(--ms-activity-surface);
}
html[data-theme="dark"] #quiz-dialog #quiz-title {
    color: var(--ms-activity-ink);
}

/*
Noto Sans (Latin subset). Copyright 2010, 2012–2020 Google Inc. and 2015–2020 Google LLC.
License: OFL-1.1
 PREAMBLE

 The goals of the Open Font License (OFL) are to stimulate
 worldwide development of collaborative font projects,
 to support the font creation efforts
 of academic and linguistic communities,
 and to provide a free and open framework
 in which fonts may be shared and improved
 in partnership with others.

 The OFL allows the licensed fonts to be used, studied,
 modified and redistributed freely
 as long as they are not sold by themselves.
 The fonts, including any derivative works,
 can be bundled, embedded,
 redistributed and/or sold with any software
 provided that any reserved names are not used
 by derivative works.
 The fonts and derivatives, however,
 cannot be released under any other type of license.
 The requirement for fonts to remain under this license
 does not apply to any document
 created using the fonts or their derivatives.

 DEFINITIONS

 "Font Software" refers to the set of files
 released by the Copyright Holder(s) under this license
 and clearly marked as such.
 This may include source files, build scripts and documentation.

 "Reserved Font Name" refers to any names specified as such
 after the copyright statement(s).

 "Original Version" refers to the collection
 of Font Software components
 as distributed by the Copyright Holder(s).

 "Modified Version" refers to any derivative
 made by adding to, deleting, or substituting --
 in part or in whole --
 any of the components of the Original Version,
 by changing formats
 or by porting the Font Software to a new environment.

 "Author" refers to any designer, engineer, programmer,
 technical writer or other person
 who contributed to the Font Software.

 PERMISSION & CONDITIONS

 Permission is hereby granted, free of charge,
 to any person obtaining a copy of the Font Software,
 to use, study, copy, merge, embed, modify, redistribute,
 and sell modified and unmodified copies of the Font Software,
 subject to the following conditions:

 1) Neither the Font Software nor any of its individual components,
 in Original or Modified Versions,
 may be sold by itself.

 2) Original or Modified Versions of the Font Software
 may be bundled, redistributed and/or sold with any software,
 provided that each copy contains the above copyright notice
 and this license.
 These can be included either as stand-alone text files,
 human-readable headers or in the appropriate
 machine-readable metadata fields within text or binary files
 as long as those fields can be easily viewed by the user.

 3) No Modified Version of the Font Software may use
 the Reserved Font Name(s)
 unless explicit written permission is granted
 by the corresponding Copyright Holder.
 This restriction only applies to the primary font name
 as presented to the users.

 4) The name(s) of the Copyright Holder(s)
 or the Author(s) of the Font Software
 shall not be used to promote,
 endorse or advertise any Modified Version,
 except to acknowledge the contribution(s)
 of the Copyright Holder(s) and the Author(s)
 or with their explicit written permission.

 5) The Font Software,
 modified or unmodified, in part or in whole,
 must be distributed entirely under this license,
 and must not be distributed under any other license.
 The requirement for fonts to remain under this license
 does not apply to any document
 created using the Font Software.

 TERMINATION

 This license becomes null and void
 if any of the above conditions are not met.

 DISCLAIMER

 THE FONT SOFTWARE IS PROVIDED "AS IS",
 WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 INCLUDING BUT NOT LIMITED TO
 ANY WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
 OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT.
 IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE
 FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 INCLUDING ANY GENERAL, SPECIAL, INDIRECT,
 INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 ARISING FROM, OUT OF THE USE OR INABILITY TO USE
 THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
*/

/* Detalhes de alinhamento conferidos com o protótipo de atividades. */
#quiz-dialog > .dialog-top > .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#quiz-dialog > .dialog-top > .pill::before {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    color: var(--ms-activity-accent);
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2 8V7a6 6 0 0 1 12 0v1M2 8h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1zm11 0h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(#quiz-dialog, #activity-page) #quiz-content > button.primary {
    min-inline-size: min(186px, 100%);
    padding-inline: 18px;
    font-size: .875rem;
    font-weight: 700;
}
.activity-question > .answer-status + button.quiet {
    min-inline-size: min(264px, 100%);
}
.week-section .calendar-event:is([data-state="completed"], [data-state="done"]) .activity-state::before {
    content: "";
    display: inline-block;
    inline-size: 7px;
    block-size: 4px;
    margin-inline: 2px 8px;
    border-inline-start: 1px solid currentColor;
    border-block-end: 1px solid currentColor;
    vertical-align: .22em;
    transform: rotate(-45deg);
}
.week-section .calendar-event .activity-actions .primary {
    font-weight: 700;
}

@media (max-width: 700px) {
    :is(#quiz-dialog, #activity-page) #quiz-content > button.primary {
        inline-size: 100%;
    }
    .week-section .calendar-event:has(> .activity-grade) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .week-section .calendar-event:has(> .activity-grade) > :is(strong, .activity-actions) {
        grid-column: 1 / -1;
    }
    .week-section .calendar-event > .activity-grade {
        justify-self: end;
        text-align: end;
    }
}

/* MaxStudents activity result and confirmation, shared with the Studio preview. */
.activity-submit-panel,
.activity-result {
  --flow-ink: #172941;
  --flow-muted: #526781;
  --flow-outline: #d9e3ef;
  --flow-soft: #f7f9fc;
  --flow-blue: #2356cb;
  --flow-blue-wash: #edf3ff;
  --flow-blue-border: #cfddf6;
  --flow-blue-ink: #1f50bd;
  --flow-blue-icon: #dfe9fc;
  --flow-green-wash: #eef8f1;
  --flow-green-border: #bedfd0;
  --flow-green-ink: #145c49;
  --flow-green-icon: #ddf2e7;
  --flow-warn: #84500f;
  color: var(--flow-ink);
}

html[data-theme="dark"] :is(.activity-submit-panel, .activity-result) {
  --flow-ink: #e8eff9;
  --flow-muted: #b1c1d8;
  --flow-outline: #354760;
  --flow-soft: #1d2a3d;
  --flow-blue-wash: #1b2c48;
  --flow-blue-border: #38537e;
  --flow-blue-ink: #b5cdff;
  --flow-blue-icon: #294369;
  --flow-green-wash: #16332f;
  --flow-green-border: #356358;
  --flow-green-ink: #a4e6cb;
  --flow-green-icon: #25493f;
  --flow-warn: #ffd497;
}

.activity-submit-panel {
  display: grid;
  gap: .625rem;
  margin-block: 1.25rem .25rem;
  padding-block: 1rem 0;
  border-top: 1px solid var(--flow-outline);
}
.activity-submit-panel [hidden] { display: none; }
.activity-submit-panel :is(p, button) { margin: 0; }
.activity-response-count { font-weight: 700; }
.activity-confirm-notice { color: var(--flow-green-ink); }
.activity-confirm-warning { color: var(--flow-warn); }
.activity-submit-panel .activity-jump { justify-self: start; }
.activity-submit-panel :is(.activity-confirm-all, .activity-submit) {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  padding: .75rem 1rem;
  font: inherit;
  font-weight: 700;
}
.activity-submit-panel .activity-confirm-all {
  border: 1px solid transparent;
  background: #126b51;
  color: #fff;
}
.activity-submit-panel .activity-submit {
  border: 1px solid transparent;
  background: var(--flow-blue);
  color: #fff;
}
.activity-submit-panel :is(.activity-confirm-all, .activity-submit):disabled {
  border-color: var(--flow-outline);
  background: var(--flow-soft);
  color: var(--flow-muted);
  opacity: 1;
}
.activity-submit-panel button:focus-visible,
.activity-result button:focus-visible,
.activity-result a:focus-visible {
  outline: 2px solid var(--flow-blue-ink);
  outline-offset: 3px;
}

.activity-result {
  display: grid;
  gap: 1.125rem;
  width: 100%;
}
.activity-result-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5rem;
  min-height: clamp(17.5rem, 31vw, 20.9rem);
  padding: 1.25rem 1rem;
  border: 1px solid var(--flow-blue-border);
  border-radius: 19px;
  background: var(--flow-blue-wash);
  text-align: center;
}
.activity-result-perfect .activity-result-hero {
  border-color: var(--flow-green-border);
  background: var(--flow-green-wash);
}
.activity-result-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--flow-blue-icon);
  color: var(--flow-blue-ink);
}
.activity-result-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.activity-result-perfect .activity-result-icon {
  background: var(--flow-green-icon);
  color: var(--flow-green-ink);
}
.activity-result-score {
  color: var(--flow-blue-ink);
  font-size: clamp(3.25rem, 8vw, 4.125rem);
  font-weight: 700;
  line-height: 1.08;
}
.activity-result-perfect .activity-result-score { color: var(--flow-green-ink); }
.activity-result .activity-result-hero h2 {
  margin: 0;
  color: var(--flow-ink);
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  line-height: 1.25;
}
.activity-result .activity-result-hero p { margin: 0; color: var(--flow-muted); }
.activity-result-ornaments { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.activity-result-ornaments i {
  position: absolute;
  inset: var(--y) auto auto var(--x);
  width: 7px;
  height: 11px;
  border-radius: 2px;
  background: var(--confetti);
  transform: rotate(24deg);
}
.activity-result-ornaments i:nth-child(1) { --x: 12%; --y: 25%; --confetti: #87cbaf; }
.activity-result-ornaments i:nth-child(2) { --x: 9%; --y: 62%; --confetti: #6793e5; }
.activity-result-ornaments i:nth-child(3) { --x: 19%; --y: 71%; --confetti: #f5b76e; }
.activity-result-ornaments i:nth-child(4) { --x: 24%; --y: 33%; --confetti: #ad99e1; }
.activity-result-ornaments i:nth-child(5) { --x: 72%; --y: 20%; --confetti: #f5b76e; }
.activity-result-ornaments i:nth-child(6) { --x: 86%; --y: 28%; --confetti: #6793e5; }
.activity-result-ornaments i:nth-child(7) { --x: 84%; --y: 66%; --confetti: #87cbaf; }
.activity-result-ornaments i:nth-child(8) { --x: 91%; --y: 48%; --confetti: #ad99e1; }
.activity-result-ornaments i:nth-child(9) { --x: 77%; --y: 76%; --confetti: #f5b76e; }
.activity-result-ornaments i:nth-child(10) { --x: 32%; --y: 15%; --confetti: #6793e5; }
.activity-result-ornaments i:nth-child(11) { --x: 16%; --y: 51%; --confetti: #87cbaf; }
.activity-result-ornaments i:nth-child(12) { --x: 89%; --y: 78%; --confetti: #6793e5; }
.activity-result .activity-result-facts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 0;
  padding: .75rem 0;
  background: var(--flow-soft);
  border: 1px solid var(--flow-outline);
  border-radius: 13px;
  text-align: center;
}
.activity-result-facts div { min-width: 0; padding-inline: .2rem; }
.activity-result-facts div + div { border-inline-start: 1px solid var(--flow-outline); }
.activity-result-facts dt { color: var(--flow-muted); font-size: clamp(.75rem, 2vw, .9rem); }
.activity-result-facts dd { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 700; }
.activity-result .activity-result-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .5rem;
}
.activity-result .activity-result-actions :is(button,a) {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin: 0;
  padding: .625rem .5rem;
  border: 1px solid var(--flow-outline);
  border-radius: 10px;
  color: var(--flow-ink);
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: normal;
}
.activity-result .activity-result-actions :is(.primary, .retry-official) {
  min-height: 48px;
  border-color: var(--flow-blue);
  background: var(--flow-blue);
  color: #fff;
}
.activity-result-actions:has(> .primary):not(:has(> :is(.primary,.retry-official) ~ :is(.primary,.retry-official))) > .primary,
.activity-result-actions textarea { grid-column: 1/-1; }
.activity-result-actions .primary + .quiet:last-child { grid-column: 1/-1; }
@media (max-width: 480px) {
  .activity-result .activity-result-actions :is(.primary,.retry-official) { grid-column: 1/-1; }
  .activity-result .activity-result-ornaments i:nth-child(n+9) { display: none; }
  .activity-result .activity-result-actions :is(button,a) { font-size: .8125rem; }
}
