/* CURSOS — identidade visual base.
   Seções: 1 tokens · 2 base · 3 componentes · 4 site público · 5 login · 6 app (aluno/admin) */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* Identidade do instituto: VERDE-ÁGUA (principal), BRANCO e PRETO. Todas as cores vivem aqui. */
  --ink-950: #060909;          /* preto */
  --ink-900: #0b0f0f;
  --ink-800: #151c1c;
  --brand-700: #0b6e63;        /* verde-água escuro: links, hero, texto sobre fundo claro */
  --brand-600: #0f9384;        /* bordas de foco */
  --brand-500: #19b8a6;        /* VERDE-ÁGUA principal: botões, destaques */
  --brand-400: #3ccbba;        /* verde-água claro: ícones/detalhes sobre preto */
  --brand-100: #d5f2ee;
  --brand-50: #eef9f7;
  --white: #fff;
  --on-dark: #cfd8d6;          /* texto secundário sobre preto/verde escuro */
  --gray-50: #f4f7f6;
  --gray-100: #ebf0ef;
  --gray-200: #dae2e0;
  --gray-400: #9aa8a5;
  --gray-600: #566362;
  --gray-800: #1e2827;
  /* Cores de estado (não são da marca) */
  --ok: #237a3b;       --ok-bg: #e4f4e8;      --ok-line: #b9e0c3;
  --warn: #9a6a12;     --warn-bg: var(--warn-bg);
  --danger: #b42318;   --danger-bg: var(--danger-bg);  --danger-line: var(--danger-line);
  --scrim: rgba(6, 9, 9, .55);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 15, 15, .06), 0 4px 16px rgba(11, 15, 15, .06);
  --sidebar-w: 264px;
}

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gray-800);
  background: var(--gray-50);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink-900); }
p { margin: 0 0 1em; }
a { color: var(--brand-700); }
a:hover { color: var(--ink-900); }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--gray-600); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.icon { flex: none; }

/* 3. COMPONENTES -------------------------------------------------------- */
.wordmark { display: inline-flex; flex-direction: column; gap: 4px; line-height: 1; }
.wordmark__text { font-weight: 800; letter-spacing: .28em; font-size: 1.15rem; color: currentColor; }
.wordmark__bar { display: block; height: 3px; width: 34px; background: var(--brand-500); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--brand-500); color: var(--ink-950); }
.btn--accent:hover { background: var(--brand-400); color: var(--ink-950); }
.btn--primary { background: var(--ink-900); color: var(--white); }
.btn--primary:hover { background: var(--brand-700); color: var(--white); }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-900); }
.field input {
  width: 100%; min-height: 46px; padding: 0 14px; font: inherit; color: var(--gray-800);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
}
.field input:focus { border-color: var(--brand-700); outline: 3px solid var(--brand-100); }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .92rem; }
.alert--error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }

.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card__title { font-size: 1.05rem; margin-bottom: 14px; }
.section-heading { font-size: 1.05rem; margin: 8px 0 14px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--gray-100); color: var(--gray-600); white-space: nowrap; }
.badge--active { background: var(--ok-bg); color: var(--ok); }
.badge--pending { background: var(--warn-bg); color: var(--warn); }
.badge--completed { background: var(--brand-100); color: var(--brand-700); }
.badge--suspended, .badge--cancelled, .badge--blocked { background: var(--danger-bg); color: var(--danger); }
.badge--new { background: var(--brand-500); color: var(--ink-950); }
.badge--soon { background: var(--brand-50); color: var(--brand-700); }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--gray-200); border-top: 3px solid var(--brand-500); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat__value { font-size: 1.9rem; font-weight: 700; color: var(--ink-900); line-height: 1.1; }
.stat__label { color: var(--gray-600); font-size: .88rem; margin-top: 4px; }

.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2 > .card { margin-bottom: 0; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-600); padding: 8px 12px; border-bottom: 1px solid var(--gray-200); }
.table td { padding: 12px; border-bottom: 1px solid var(--gray-100); }
.table tr:last-child td { border-bottom: 0; }

.module-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.module-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); text-decoration: none; color: var(--gray-800); }
.module-card:hover { border-color: var(--brand-500); box-shadow: var(--shadow); }
.module-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink-900); color: var(--brand-400); flex: none; }
.module-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.module-card__body strong { color: var(--ink-900); }
.module-card__body small { color: var(--gray-600); line-height: 1.35; }

.empty { max-width: 520px; margin: 48px auto; text-align: center; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 36px 24px; box-shadow: var(--shadow); }
.empty__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--ink-900); color: var(--brand-400); margin-bottom: 14px; }
.empty h2 { font-size: 1.25rem; }
.empty p:last-child { margin-bottom: 0; }

.progress { margin-top: 12px; }
.progress progress { width: 100%; height: 10px; border: 0; border-radius: 6px; overflow: hidden; background: var(--gray-100); appearance: none; -webkit-appearance: none; }
.progress progress::-webkit-progress-bar { background: var(--gray-100); border-radius: 6px; }
.progress progress::-webkit-progress-value { background: var(--brand-500); border-radius: 6px; }
.progress progress::-moz-progress-bar { background: var(--brand-500); border-radius: 6px; }
.progress span { display: block; margin-top: 6px; font-size: .82rem; color: var(--gray-600); }

.enrollment + .enrollment { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--gray-100); }
.enrollment__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.data-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.data-list dt { color: var(--gray-600); font-size: .88rem; }
.data-list dd { margin: 0; overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.list li:last-child { border-bottom: 0; }
.greeting { font-size: 1.1rem; margin-bottom: 18px; }

/* 4. SITE PÚBLICO ------------------------------------------------------- */
.site-header { background: var(--ink-900); color: var(--white); border-bottom: 3px solid var(--brand-500); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.site-header__brand { color: var(--white); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav__link { color: var(--on-dark); text-decoration: none; font-weight: 500; }
.site-nav__link:hover, .site-nav__link.is-active { color: var(--white); }

.hero { background: linear-gradient(135deg, var(--ink-950), var(--brand-700)); color: var(--white); padding: 88px 0 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--brand-400); margin-bottom: 14px; }
.hero__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.9rem, 5vw, 3.1rem); color: var(--white); margin-bottom: 18px; }
.hero__lead { max-width: 560px; font-size: 1.1rem; color: var(--on-dark); margin-bottom: 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 56px 0; }
.section__title { font-size: 1.5rem; margin-bottom: 24px; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
.journey__step { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 8px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); font-weight: 600; color: var(--ink-900); }
.journey__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-900); color: var(--brand-400); font-weight: 700; }
.error-box { text-align: center; max-width: 520px; }

.site-footer { border-top: 1px solid var(--gray-200); background: var(--white); color: var(--gray-600); font-size: .88rem; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
body.site { display: flex; flex-direction: column; min-height: 100vh; }
body.site main { flex: 1; }

/* 5. LOGIN -------------------------------------------------------------- */
body.auth { min-height: 100vh; background: linear-gradient(135deg, var(--ink-950), var(--brand-700)); }
.auth__box { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--white); border-radius: 14px; padding: 32px 28px; border-top: 4px solid var(--brand-500); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.auth-card__brand { display: inline-block; color: var(--ink-900); text-decoration: none; margin-bottom: 22px; }
.auth-card__title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 4px; }
.auth-card__subtitle { color: var(--gray-600); margin-bottom: 22px; }
.auth-card__links { display: flex; justify-content: space-between; margin: 20px 0 0; font-size: .88rem; }

/* 6. APP (aluno e admin) ------------------------------------------------ */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.app__main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.topbar__title { font-size: 1.25rem; margin: 0; flex: 1; }
.topbar__user { color: var(--gray-600); font-size: .9rem; }
.icon-btn { display: none; place-items: center; width: 44px; height: 44px; margin-left: -10px; border: 0; background: transparent; color: var(--ink-900); border-radius: 8px; cursor: pointer; }
.icon-btn:hover { background: var(--gray-100); }
.content { padding: 24px; width: 100%; max-width: 1200px; }

.sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sidebar__brand { flex: none; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.sidebar__area { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.sidebar__nav { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 8px; border-left: 3px solid transparent; color: inherit; text-decoration: none; font-weight: 500; font-size: .93rem; }
.nav-link--button { width: 100%; background: none; border-top: 0; border-right: 0; border-bottom: 0; font-family: inherit; cursor: pointer; }
.sidebar__foot { flex: none; padding: 12px; border-top: 1px solid var(--sb-line); }
.sidebar__user { padding: 8px 12px 10px; display: flex; flex-direction: column; font-size: .9rem; }
.sidebar__user span { font-size: .78rem; opacity: .7; }
.scrim { display: none; }

/* Admin: barra lateral azul-marinho */
.app--admin .sidebar { --sb-line: rgba(255, 255, 255, .12); background: var(--ink-900); color: var(--on-dark); }
.app--admin .sidebar__brand .wordmark { color: var(--white); }
.app--admin .nav-link:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.app--admin .nav-link.is-active { background: rgba(255, 255, 255, .1); color: var(--white); border-left-color: var(--brand-500); }
.app--admin .sidebar__user strong { color: var(--white); }

/* Aluno: barra lateral clara, mesmo vocabulário visual */
.app--student .sidebar { --sb-line: var(--gray-200); background: var(--white); color: var(--gray-800); border-right: 1px solid var(--gray-200); }
.app--student .sidebar__brand .wordmark { color: var(--ink-900); }
.app--student .nav-link:hover { background: var(--gray-100); }
.app--student .nav-link.is-active { background: var(--brand-50); color: var(--ink-900); border-left-color: var(--brand-500); font-weight: 600; }
.app--student .topbar { border-top: 3px solid var(--brand-500); }

/* Tablet e celular */
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .icon-btn { display: grid; }
  .sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(300px, 85vw); transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .sidebar-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: var(--scrim); }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .topbar__user { display: none; }
}
@media (max-width: 800px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hero { padding: 56px 0 64px; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .module-card { flex-wrap: wrap; }
  .site-footer__inner { flex-direction: column; }
  .auth-card { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 7. ADMIN: formulários, tabelas de gestão, abas e regras (etapa 2) ------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.block { display: block; }
.pre { white-space: pre-line; }

.field select, .field textarea, .toolbar select, .toolbar input[type="search"], .inline-form select {
  width: 100%; min-height: 46px; padding: 0 14px; font: inherit; color: var(--gray-800);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
}
.field textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field select:focus, .field textarea:focus, .toolbar select:focus, .toolbar input:focus, .inline-form select:focus { border-color: var(--brand-700); outline: 3px solid var(--brand-100); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.field__hint { color: var(--gray-600); font-size: .82rem; margin: 6px 0 0; }
.alert--ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }

.badge--archived { background: var(--gray-200); color: var(--gray-800); }
.btn--outline { background: var(--white); color: var(--ink-900); border-color: var(--gray-200); }
.btn--outline:hover { border-color: var(--brand-700); color: var(--ink-900); }
.btn--danger { background: var(--white); color: var(--danger); border-color: var(--danger-line); }
.btn--danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn--icon { min-width: 38px; padding: 0 10px; font-size: 1.1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.toolbar__search { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.toolbar__search input[type="search"] { flex: 1 1 220px; width: auto; }
.toolbar__search select { width: auto; flex: 0 1 190px; }

.card--flush { padding: 0; }
.card--flush .table th:first-child, .card--flush .table td:first-child { padding-left: 20px; }
.card--flush .table th:last-child, .card--flush .table td:last-child { padding-right: 20px; }
.row-link { font-weight: 600; color: var(--ink-900); text-decoration: none; }
.row-link:hover { text-decoration: underline; color: var(--brand-700); }
.table__actions { text-align: right; white-space: nowrap; }

.page-head { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.page-head__meta { display: flex; align-items: center; gap: 10px; margin: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-head__actions form { margin: 0; }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--gray-200); margin-bottom: 20px; }
.tabs__link { flex: none; padding: 12px 16px; text-decoration: none; color: var(--gray-600); font-weight: 600; font-size: .93rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs__link:hover { color: var(--ink-900); }
.tabs__link.is-active { color: var(--ink-900); border-bottom-color: var(--brand-500); }

.form { max-width: 860px; }
.form-grid { display: grid; gap: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions form { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form select { flex: 1 1 260px; width: auto; }

.list--numbered { counter-reset: n; }
.list--numbered li { flex-direction: row; gap: 12px; align-items: baseline; }
.list--numbered li::before { counter-increment: n; content: counter(n); flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: .78rem; font-weight: 700; }

.reorder { list-style: none; margin: 0; padding: 0; }
.reorder__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.reorder__item:last-child { border-bottom: 0; }
.reorder__num { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-900); color: var(--brand-400); font-weight: 700; font-size: .85rem; }
.reorder__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reorder__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.reorder__actions form { margin: 0; }

.notice { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 14px; border: 1px solid var(--gray-200); border-left: 4px solid var(--brand-700); background: var(--brand-50); }
.notice p { margin: 4px 0 0; font-size: .92rem; color: var(--gray-800); }
.notice--custom { border-left-color: var(--brand-500); background: var(--brand-50); }
.notice form { margin: 0; }

.rules { max-width: 860px; padding: 8px 20px 20px; }
.rule { padding: 16px 0 16px 14px; border-bottom: 1px solid var(--gray-100); border-left: 3px solid transparent; }
.rule--custom { border-left-color: var(--brand-500); }
.rule--error { border-left-color: var(--danger); }
.rule__head { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; }
.rule__title { display: flex; flex-direction: column; }
.rule__title small { font-size: .82rem; }
.rule__inputs { border: 0; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; min-width: 0; }
.rule__inputs:disabled { opacity: .55; }
.rule__number { width: 120px; min-height: 42px; padding: 0 12px; font: inherit; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); }
.rule__number:focus { border-color: var(--brand-700); outline: 3px solid var(--brand-100); }
.rule__default { margin: 8px 0 0; font-size: .82rem; color: var(--gray-600); }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-700); }
.rules .form-actions { margin-top: 20px; }

@media (max-width: 800px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .reorder__item { flex-wrap: wrap; }
  .reorder__actions { flex-basis: 100%; justify-content: flex-start; padding-left: 42px; }
  .toolbar__search select { flex: 1 1 100%; }
  /* Tabelas viram cartões no celular */
  .table--stack thead { display: none; }
  .table--stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .table--stack td::before { content: attr(data-label); color: var(--gray-600); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; text-align: left; }
  .table--stack td.table__actions { justify-content: flex-end; padding-top: 10px; }
  .table--stack td.table__actions::before { content: none; }
  .card--flush .table th:first-child, .card--flush .table td:first-child, .card--flush .table td:last-child { padding-left: 0; padding-right: 0; }
}

/* 8. ADMIN: paginação e ficha (etapa 3) ---------------------------------- */
.pager { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .9rem; color: var(--gray-600); }
.pager__nav { display: flex; gap: 8px; }
.pager .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .85rem; }
.inline-form input[type="date"] { flex: 0 1 170px; min-height: 46px; padding: 0 12px; font: inherit; color: var(--gray-800); background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; }
.inline-form input[type="date"]:focus { border-color: var(--brand-700); outline: 3px solid var(--brand-100); }

/* 9. Tipo do curso (etapa: tipos) ---------------------------------------- */
.badge--type { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.radio-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.radio-group legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; color: var(--ink-900); }
.radio-group__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); cursor: pointer; font-size: .95rem; }
.radio:hover { border-color: var(--brand-600); }
.radio-group .radio { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .95rem; font-weight: 400; color: var(--gray-800); }
.radio-group .radio:has(input:checked) { font-weight: 600; color: var(--ink-900); }
.radio-group .radio input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border: 0; accent-color: var(--brand-700); }
.radio:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); font-weight: 600; }
.radio:has(input:focus-visible) { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.field--error .radio { border-color: var(--danger); }

/* 10. Supletivo (aluno) --------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-size: .9rem; color: var(--gray-600); }
.breadcrumb a { color: var(--brand-700); }
.breadcrumb strong { color: var(--ink-900); }
.enrollment__action { margin: 12px 0 0; }
