:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3f8;
    --text: #172033;
    --muted: #667085;
    --border: #dfe5ec;
    --brand: #1f4d78;
    --brand-dark: #173a5c;
    --brand-soft: #e9f1f8;
    --success-soft: #eaf6ef;
    --success: #287a4b;
    --shadow: 0 10px 30px rgba(23, 32, 51, .07);
    --radius: 16px;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.topbar-inner { min-height: 70px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; color: white; background: var(--brand); font-size: 13px; letter-spacing: .04em; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { padding: 9px 12px; border-radius: 9px; color: #465267; font-weight: 600; font-size: 14px; }
.main-nav a:hover { background: var(--surface-soft); color: var(--brand); }
.user-menu { display: flex; align-items: center; gap: 14px; border-left: 1px solid var(--border); padding-left: 20px; }
.user-label { font-size: 14px; font-weight: 650; }
.link-button { border: 0; background: transparent; color: var(--brand); padding: 0; cursor: pointer; font-weight: 650; }
.page { min-height: calc(100vh - 150px); padding-top: 40px; padding-bottom: 64px; }
.footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 13px; background: var(--surface); }
.hero { background: linear-gradient(120deg, #173a5c, #285f8f); color: white; padding: 48px; border-radius: 22px; box-shadow: var(--shadow); }
.hero.compact { padding: 36px 40px; }
.hero h1, .page-heading h1 { margin: 6px 0 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.hero p { margin: 0; color: rgba(255,255,255,.82); max-width: 720px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: var(--brand); }
.hero .eyebrow { color: #b9d9f2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0 42px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 4px 14px rgba(23,32,51,.03); }
.stat-card span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.stat-card strong { font-size: 23px; letter-spacing: -.025em; }
.stat-card.muted strong { color: var(--muted); font-size: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 34px 0 16px; }
.section-head h2 { margin: 4px 0 0; font-size: 23px; letter-spacing: -.025em; }
.text-link, .card-action { color: var(--brand); font-weight: 700; font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card { display: flex; flex-direction: column; min-height: 195px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: .18s ease; }
.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c6d4e1; }
.course-kicker, .module-code { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.course-card h3 { margin: 10px 0 18px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
.card-action { margin-top: auto; padding-top: 20px; }
.page-heading { margin-bottom: 28px; }
.page-heading p { color: var(--muted); margin: 0; max-width: 700px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.breadcrumbs a { color: var(--brand); font-weight: 650; }
.module-list, .stack { display: grid; gap: 10px; }
.stack-separator { margin: 22px 0 2px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stack-separator:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.stack-separator a { color: inherit; text-decoration: none; }
.stack-separator a:hover { color: var(--brand); text-decoration: underline; }
.search-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(23,32,51,.03); padding: 22px; margin: 0 0 26px; }
.search-bar-label { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.01em; color: var(--text); margin: 0 0 16px; }
.search-input-row { display: flex; gap: 20px; align-items: stretch; }
.search-input-wrap { position: relative; flex: 1; min-width: 0; }
.search-input-row input[type="text"] { width: 100%; height: 100%; border: 1px solid #cfd8e3; border-radius: 14px; padding: 14px 18px; background: white; font-size: 15px; }
.search-input-row input[type="text"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,77,120,.1); }
.search-input-row .button { white-space: nowrap; border-radius: 14px; padding: 0 24px; }
.search-suggestions { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; z-index: 5; }
.search-suggestion-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 11px 18px; cursor: pointer; color: var(--text); }
.search-suggestion-item:hover { background: var(--surface-soft); }
.search-suggestion-item + .search-suggestion-item { border-top: 1px solid var(--border); }
@media (max-width: 680px) { .search-input-row { flex-direction: column; } .search-input-row .button { width: 100%; padding: 13px; } }
.module-row { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 17px 20px; transition: .18s ease; }
.module-row:hover { border-color: #c2d2e1; box-shadow: 0 8px 20px rgba(23,32,51,.05); }
.module-order { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.module-main { flex: 1; min-width: 0; }
.module-main h3 { margin: 3px 0 0; font-size: 17px; }
.module-hours { color: var(--muted); white-space: nowrap; font-size: 13px; }
.module-arrow { color: var(--brand); font-size: 20px; }
.hero-meta { color: rgba(255,255,255,.8); margin-top: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 25px; min-height: 220px; }
.feature-grid-4 .feature-card { padding: 18px; min-height: 170px; }
.feature-card.disabled { background: #f2f4f7; }
.feature-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 12px; }
.feature-grid-4 .feature-icon { width: 30px; height: 30px; font-size: 11px; }
.feature-card h2 { margin: 18px 0 8px; font-size: 20px; }
.feature-grid-4 .feature-card h2 { margin: 14px 0 6px; font-size: 17px; }
.feature-card p { color: var(--muted); font-size: 14px; }
.feature-grid-4 .feature-card p { font-size: 13px; }
.status-badge { display: inline-block; margin-top: 12px; padding: 6px 9px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 800; }
.status-badge.future { background: #e9ecf1; color: #667085; }
.empty-state { padding: 46px 30px; text-align: center; border: 1px dashed #c7d0da; border-radius: var(--radius); background: rgba(255,255,255,.6); color: var(--muted); }
.empty-state h1, .empty-state h3 { color: var(--text); margin-top: 0; }
.empty-state.small { padding: 22px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 30px; }
.people-list { display: grid; gap: 8px; max-height: 520px; overflow: auto; }
.person { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); padding: 11px; border-radius: 12px; }
.person strong, .person small { display: block; }
.person strong { font-size: 14px; }
.person small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.muted-text { color: var(--muted); }
.messages { margin-bottom: 18px; }.message, .alert { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); font-size: 14px; }.alert-error { background: #fff0f0; color: #9b2c2c; }
.login-page { display: grid; place-items: center; background: radial-gradient(circle at top left, #eaf1f7, transparent 42%), var(--bg); }
.login-shell { width: min(460px, calc(100% - 32px)); padding: 50px 0; }
.login-card { background: var(--surface); padding: 36px; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.login-brand { margin-bottom: 42px; }
.login-heading h1 { margin: 6px 0 8px; font-size: 36px; letter-spacing: -.035em; }
.login-heading p, .login-note { color: var(--muted); }
.login-form { display: grid; gap: 9px; margin-top: 26px; }
.login-form label { font-size: 13px; font-weight: 700; margin-top: 5px; }
.login-form input { width: 100%; border: 1px solid #cfd8e3; border-radius: 10px; padding: 12px 13px; outline: none; }
.login-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,77,120,.1); }
.button { border: 0; border-radius: 10px; padding: 12px 16px; cursor: pointer; font-weight: 750; }
.button-primary { background: var(--brand); color: white; }.button-primary:hover { background: var(--brand-dark); }.button-full { width: 100%; margin-top: 12px; }
.login-note { font-size: 12px; margin: 22px 0 0; border-top: 1px solid var(--border); padding-top: 18px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2,1fr); }.card-grid, .feature-grid, .feature-grid-4 { grid-template-columns: repeat(2,1fr); }.two-column { grid-template-columns: 1fr; }.user-label { display:none; } }
@media (max-width: 680px) { .shell { width: min(100% - 24px,1180px); }.topbar-inner { flex-wrap: wrap; padding: 12px 0; gap: 10px; }.brand > span:last-child { display:none; }.main-nav { order: 3; width: 100%; overflow-x:auto; margin-left:0; }.user-menu { margin-left:auto; border-left:0; padding-left:0; }.page { padding-top: 24px; }.hero.compact { padding: 28px 24px; }.stats-grid, .card-grid, .feature-grid, .feature-grid-4 { grid-template-columns: 1fr; }.module-row { gap: 11px; padding: 14px; }.module-hours { display:none; }.login-card { padding: 26px; } }

/* Atividades progressivas */
.activity-panel { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 14px rgba(23,32,51,.03); }
.activity-panel h2 { margin: 0 0 14px; font-size: 21px; }
.activity-panel h3 { margin: 22px 0 9px; font-size: 16px; }
.preserve-lines { white-space: pre-line; }
.prose { color: #344054; line-height: 1.7; }
.progress-card { margin: 22px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.progress-card > div:first-child { display: flex; justify-content: space-between; gap: 20px; }
.progress-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.progress-track { height: 9px; background: var(--surface-soft); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress-track span { display: block; height: 100%; background: var(--success); border-radius: inherit; }
.stage-list { display: grid; gap: 10px; margin-top: 18px; }
.stage-row { display: flex; align-items: flex-start; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 17px 19px; }
a.stage-row:hover { border-color: #b7c9da; box-shadow: 0 7px 18px rgba(23,32,51,.05); }
.stage-row.locked { opacity: .62; background: #f3f5f7; }
.stage-row.done { border-left: 4px solid var(--success); }
.stage-row.waiting { border-left: 4px solid #c58a20; }
.stage-row.review { border-left: 4px solid #b54747; }
.stage-number { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.stage-main { flex: 1; min-width: 0; }
.stage-main strong, .stage-main small { display: block; }
.stage-main small { color: var(--muted); margin-top: 4px; }
.stage-main details { margin-top: 10px; color: var(--muted); font-size: 13px; }
.stage-main summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.stage-status { margin-left: auto; font-weight: 800; color: var(--brand); }
.activity-columns { align-items: start; }
.answer-type { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 14px; color: var(--muted); font-size: 13px; }
.state-pill { display: inline-block; padding: 7px 10px; border-radius: 999px; background: var(--surface-soft); font-size: 12px; font-weight: 800; }
.state-aprovada, .state-realizada { background: var(--success-soft); color: var(--success); }
.state-submetida { background: #fff6df; color: #8a6116; }
.state-rejeitada { background: #fff0f0; color: #9b2c2c; }
.feedback-box, .criteria-box { padding: 13px; border-radius: 10px; background: var(--surface-soft); color: #344054; font-size: 13px; }
.submission-panel textarea, .stack-form textarea { width: 100%; border: 1px solid #cfd8e3; border-radius: 10px; padding: 13px; font: inherit; resize: vertical; }
.stack-form p { display: grid; gap: 7px; }
.stack-form label { font-weight: 700; font-size: 13px; }
.stack-form ul { list-style: none; padding: 0; }
.stack-form input[type="radio"] { margin-right: 7px; }
.submission-view { white-space: pre-wrap; overflow-wrap: anywhere; background: #111827; color: #e5e7eb; padding: 18px; border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.success-text { color: var(--success); font-weight: 700; }
@media (max-width: 680px) { .activity-panel { padding: 20px; }.stage-row { padding: 14px; }.progress-card { padding: 18px; } }

/* Gestão flexível de atividades */
.action-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:20px 0; }
.action-row form { margin:0; }
.button:not(.button-primary) { background:var(--surface); border:1px solid var(--border); color:var(--brand); }
.stack-form select, .stack-form input[type="text"], .stack-form input[type="number"] { width:100%; border:1px solid #cfd8e3; border-radius:10px; padding:11px 12px; background:white; }
.stack-form select:focus, .stack-form input:focus, .stack-form textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(31,77,120,.1); }
.stack-form .helptext { color:var(--muted); font-size:12px; }
.stack-form .errorlist { color:#9b2c2c; margin:0; padding-left:18px; }
.stack-form input[type="checkbox"] { margin-right:8px; }

.submission-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.test-validation-form { margin-top: 18px; }

/* Laboratório virtual no navegador */
.statement-repeat { border-left: 4px solid var(--brand); }
.browser-lab-panel { padding: 0; overflow: hidden; }
.browser-lab-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 26px; border-bottom: 1px solid var(--border); }
.browser-lab-heading h2 { margin: 4px 0 7px; }
.browser-lab-heading p { max-width: 760px; margin: 0; font-size: 13px; }
.browser-lab-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.browser-lab-actions .button:disabled { opacity: .5; cursor: not-allowed; }
.browser-lab { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.8fr); min-height: 430px; background: #0f172a; color: #dbeafe; }
.browser-lab-tree-pane { min-width: 0; border-right: 1px solid #334155; background: #111827; }
.browser-lab-terminal-pane { display: flex; flex-direction: column; min-width: 0; background: #0b1220; }
.browser-lab-pane-title { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border-bottom: 1px solid #334155; color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.browser-lab-local-badge { padding: 3px 7px; border: 1px solid #475569; border-radius: 999px; color: #bfdbfe; letter-spacing: .02em; text-transform: none; }
.browser-lab-tree { padding: 16px; overflow: auto; height: 388px; }
.browser-lab-tree pre { margin: 0; white-space: pre; color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; }
.browser-lab-terminal { flex: 1; min-height: 330px; max-height: 430px; overflow: auto; padding: 16px 18px; color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.browser-lab-command { color: #93c5fd; margin-top: 6px; }
.browser-lab-error { color: #fca5a5; }
.browser-lab-command-row { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-top: 1px solid #334155; background: #111827; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.browser-lab-prompt { flex: 0 0 auto; color: #86efac; font-size: 13px; }
.browser-lab-command-row input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #f8fafc; font: inherit; }
.browser-lab-command-row input::placeholder { color: #64748b; }
.browser-lab-command-row input:disabled { cursor: not-allowed; color: #94a3b8; }
.browser-lab-help { padding: 14px 26px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.browser-lab-help summary { cursor: pointer; color: var(--brand); font-weight: 750; }
.browser-lab-help code { border-radius: 5px; padding: 2px 5px; background: var(--surface-soft); }
@media (max-width: 820px) {
    .browser-lab-heading { flex-direction: column; }
    .browser-lab-actions { justify-content: flex-start; }
    .browser-lab { grid-template-columns: 1fr; }
    .browser-lab-tree-pane { border-right: 0; border-bottom: 1px solid #334155; }
    .browser-lab-tree { height: 220px; }
}

/* Tutor socrático e critérios de sucesso */
.success-criteria-panel { border-left: 4px solid #356ae6; }
.success-criteria-list { line-height: 1.8; }
.ai-tutor-panel { border: 1px solid #b7c7ee; background: #f8faff; }
.ai-tutor-panel.ai-tutor-approved { border-color: #70ad84; background: #f5fbf7; }
.ai-tutor-heading { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.ai-tutor-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: .6rem; background: rgba(53, 106, 230, .08); }
.ai-tutor-feedback { margin-top: 1rem; }
.ai-tutor-feedback h3 { margin-bottom: .35rem; }
.ai-tutor-feedback ul, .ai-tutor-feedback ol { margin-top: .25rem; padding-left: 1.4rem; }
.ai-tutor-message { font-weight: 600; }
@media (max-width: 720px) { .ai-tutor-heading { flex-direction: column; } }

/* Exercícios guiados de pseudocódigo */
.pseudocode-panel { border-top: 4px solid #6d4aff; }
.pseudocode-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.pseudocode-heading h2 { margin:4px 0 6px; }
.interactive-save-status { flex:0 0 auto; padding:7px 10px; border-radius:999px; background:var(--surface-soft); color:var(--muted); font-size:12px; font-weight:750; }
.interactive-save-status.save-error { background:#fff0f0; color:#9b2c2c; }
.pseudocode-progress { margin:20px 0; display:grid; gap:8px; color:var(--brand); font-size:13px; }
.pseudocode-progress > span { height:8px; overflow:hidden; background:var(--surface-soft); border-radius:999px; }
.pseudocode-progress i { display:block; height:100%; background:#6d4aff; border-radius:inherit; transition:width .2s ease; }
.pseudocode-sections { display:grid; gap:13px; }
.pseudocode-step { border:1px solid var(--border); border-radius:12px; padding:18px; background:#fbfcfe; }
.pseudocode-step.filled { border-left:4px solid #6d4aff; }
.pseudocode-step-heading { display:flex; justify-content:space-between; gap:18px; align-items:center; }
.pseudocode-step-heading h3 { margin:0; }
.pseudocode-step-heading span { color:var(--muted); font-size:12px; font-weight:700; }
.pseudocode-step > p { margin:7px 0 12px; color:var(--muted); font-size:13px; }
.pseudocode-step textarea, .code-input { width:100%; box-sizing:border-box; border:1px solid #cfd8e3; border-radius:9px; padding:12px; resize:vertical; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height:1.55; }
.pseudocode-step textarea:focus { outline:0; border-color:#6d4aff; box-shadow:0 0 0 3px rgba(109,74,255,.1); }
.pseudocode-step textarea:disabled { background:#eef1f5; color:#475467; }
.pseudocode-toolbar { display:flex; flex-wrap:wrap; gap:9px; margin-top:16px; }
.pseudocode-results ul { list-style:none; padding:0; margin:15px 0 0; display:grid; gap:7px; }
.pseudocode-results li { padding:9px 11px; border-radius:8px; font-size:13px; }
.pseudocode-results .check-ok { background:var(--success-soft); color:var(--success); }
.pseudocode-results .check-fail { background:#fff0f0; color:#9b2c2c; }
@media (max-width:680px) { .pseudocode-heading { flex-direction:column; }.interactive-save-status { align-self:flex-start; } }

/* Cumprimento do planeado (aulas) */
.cumprimento-opcoes { display: flex; flex-direction: column; gap: 10px; }
.cumprimento-opcao { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 650; cursor: pointer; background: var(--surface); }
.cumprimento-opcao:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.cumprimento-opcao input[type="radio"] { appearance: none; width: 16px; height: 16px; margin: 0; border: 2px solid #b3bfcf; border-radius: 4px; flex: 0 0 16px; display: grid; place-items: center; }
.cumprimento-opcao input[type="radio"]:checked { border-color: var(--brand); background: var(--brand); }
.cumprimento-opcao input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: white; }
.cumprimento-justificacao { margin-top: 12px; display: grid; gap: 7px; }
.cumprimento-justificacao label { font-weight: 700; font-size: 13px; }
.cumprimento-justificacao textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfd8e3; border-radius: 10px; padding: 11px 12px; resize: vertical; font: inherit; }
.cumprimento-leitura { font-size: 13px; color: var(--muted); }
.cumprimento-leitura strong { color: var(--text); }

/* Calendário escolar */
.horario-cabecalho-secao { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.horario-navegacao { display: flex; gap: 6px; }
.horario-seta { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--brand-dark); font-size: 16px; text-decoration: none; }
.horario-seta:hover { background: var(--brand-soft); }
.horario-seta-desativada { color: var(--border); cursor: default; }
.horario-tabela-wrap { overflow-x: auto; margin-top: 10px; }
.horario-tabela { width: 100%; min-width: 620px; border-collapse: collapse; }
.horario-tabela th, .horario-tabela td { border: 1px solid var(--border); }
.horario-tabela thead th { background: var(--surface-soft); padding: 10px 6px; font-size: 13px; font-weight: 750; color: var(--text); }
.horario-dia-mes { font-weight: 500; color: var(--muted); }
.horario-hora { background: var(--surface-soft); padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; text-align: center; line-height: 1.5; }
.horario-celula { height: 58px; min-width: 110px; background: var(--surface); padding: 0; }
.horario-celula-vazia { background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 7px, var(--surface-soft) 7px, var(--surface-soft) 14px); }
.horario-celula-link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 6px 8px; font-size: 12px; line-height: 1.35; color: var(--muted); text-align: center; }
.horario-celula-link:hover { background: var(--brand-soft); color: var(--brand-dark); }
.horario-celula-ocupada { background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; cursor: grab; }
.horario-celula-ocupada:hover { background: var(--surface-soft); }
.horario-celula-ocupada:active { cursor: grabbing; }
.horario-celula-movida { box-shadow: inset 0 0 0 2px var(--brand); }
.horario-celula-drop-alvo { background: var(--success-soft) !important; box-shadow: inset 0 0 0 2px var(--success); }
.horario-celula-feriado { background: #fde2e1; color: #9b2c2c; font-weight: 650; cursor: default; }
.horario-celula-feriado-municipal { background: #fde4c8; color: #9a5b0a; font-weight: 650; cursor: default; }
.calendario-legenda { display: flex; gap: 22px; flex-wrap: wrap; margin: 24px 0 10px; font-size: 13px; color: var(--muted); }
.legenda-item { display: inline-flex; align-items: center; gap: 8px; }
.legenda-cor { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legenda-aula { background: var(--surface); border: 1px solid var(--border); }
.legenda-feriado { background: #fde2e1; border: 1px solid #f0b4b1; }
.legenda-feriado-municipal { background: #fde4c8; border: 1px solid #f0c48a; }
.legenda-fds { background: #fff3c4; border: 1px solid #ecda8e; }
.calendario-mes { margin: 28px 0; }
.calendario-mes h2 { font-size: 18px; margin: 0 0 12px; text-transform: capitalize; }
.calendario-cabecalho, .calendario-semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendario-cabecalho { margin-bottom: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; }
.calendario-semana { margin-bottom: 6px; }
.calendario-dia { min-height: 46px; border-radius: 8px; display: flex; flex-direction: column; align-items: flex-end; padding: 6px 8px; font-size: 12px; font-weight: 700; }
.dia-aula { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.dia-feriado { background: #fde2e1; border: 1px solid #f0b4b1; color: #9b2c2c; }
.dia-feriado-municipal { background: #fde4c8; border: 1px solid #f0c48a; color: #9a5b0a; }
.dia-fds { background: #fff3c4; border: 1px solid #ecda8e; color: #7a6006; }
.dia-fora { background: transparent; border: 1px dashed var(--border); color: var(--muted); opacity: .35; min-height: 30px; }
.calendario-numero { align-self: flex-end; }
.calendario-horario { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 2px; }
.calendario-horario li { font-size: 10px; font-weight: 600; letter-spacing: -.02em; color: var(--muted); background: var(--surface-soft); border-radius: 4px; padding: 1px 4px; text-align: center; white-space: nowrap; }
@media (max-width: 680px) {
  .calendario-cabecalho, .calendario-semana { gap: 3px; }
  .calendario-dia { font-size: 10px; padding: 4px 5px; }
  .calendario-horario { display: none; }
}
