/* Controle IMES — visual limpo (Inter, linhas finas, cantos arredondados, sombras suaves).
   Identidade própria: azul-marinho #123c5a com acento âmbar #f2a93b (marca tipográfica, sem o logo oficial da faculdade). */
:root {
  --ink: #18232e;
  --ink-soft: #5b6b7a;
  --ink-faint: #9aa7b3;
  --brand: #1d5a84;
  --brand-dark: #123c5a;
  --navy: #0f2f47;
  --accent: #f2a93b;
  --hairline: #e4eaf0;
  --surface: #f5f8fb;
  --tint: #eaf2f8;
  --radius: 14px;
  --bs-body-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--surface);
  --bs-link-color-rgb: 29, 90, 132;
  --bs-link-hover-color-rgb: 18, 60, 90;
}

body { -webkit-font-smoothing: antialiased; background: var(--surface); }
a { color: var(--brand); }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: #bcd2e3; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); }
.form-control, .form-select { border-radius: 10px; border: 1.5px solid #dbe3ea; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(29, 90, 132, .12); }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }

/* ==================== Marca ==================== */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); font-size: 1.08rem; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.brand strong { font-weight: 800; }
.brand-light { color: #fff; }

/* ==================== Entrada (página inicial) ==================== */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(620px circle at 10% 8%, rgba(29, 90, 132, .14), transparent 60%),
    radial-gradient(520px circle at 92% 92%, rgba(242, 169, 59, .16), transparent 60%),
    var(--surface);
}
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--hairline); border-radius: 22px; text-align: center;
  padding: 2.5rem 2rem 2.25rem; box-shadow: 0 30px 60px -38px rgba(15, 47, 71, .45); }
.login-icon { border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(15, 47, 71, .6); margin-bottom: 1.25rem; }
.login-card h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin: 0 0 .4rem; }
.login-card h1 span { color: var(--brand); }
#gsi-button { min-height: 44px; display: flex; justify-content: center; }
.login-links { margin-top: 1.25rem; color: var(--ink-soft); font-size: .85rem; }
.login-links a { color: var(--ink-soft); }

/* ==================== Área logada: menu lateral (como a Aurora) + barra fina com a foto ==================== */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { --side-w: 248px; width: var(--side-w); flex-shrink: 0; background: linear-gradient(180deg, var(--brand-dark), var(--navy));
  color: #fff; display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .app-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.app-sidebar.offcanvas-lg { --bs-offcanvas-width: 270px; --bs-offcanvas-bg: var(--navy); }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.1rem .75rem; }
.app-brand { text-decoration: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: .25rem .7rem 1rem; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 10px; color: rgba(255, 255, 255, .78);
  text-decoration: none; font-weight: 500; font-size: .93rem; }
.side-nav a i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav a.active { background: #fff; color: var(--navy); font-weight: 600; }
.side-nav a.active i { color: var(--brand); }
.side-section { margin: 1rem .75rem .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); }
.side-foot { margin-top: auto; padding: 1rem 1.25rem 1.25rem; font-size: .75rem; color: rgba(255, 255, 255, .4); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; min-height: 60px;
  padding: .5rem 1.5rem; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--hairline); }
.topbar-title { font-weight: 600; color: var(--ink-soft); }
.user-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--hairline); background: #fff; border-radius: 999px;
  padding: 3px 10px 3px 3px; transition: box-shadow .15s; }
.user-btn:hover, .user-btn[aria-expanded="true"] { box-shadow: 0 0 0 .2rem rgba(29, 90, 132, .12); }
.user-caret { font-size: .75rem; color: var(--ink-soft); }
.user-menu { min-width: 260px; border: 1px solid var(--hairline); border-radius: 14px; padding: .4rem; box-shadow: 0 18px 40px -22px rgba(15, 47, 71, .45); }
.user-menu .dropdown-item { border-radius: 9px; padding: .55rem .75rem; display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.user-menu .dropdown-item i { color: var(--ink-soft); }
.user-menu .dropdown-item.active, .user-menu .dropdown-item:active { background: var(--tint); color: var(--brand-dark); }
.user-menu-head { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem .3rem; }
.user-menu-head div { min-width: 0; }
.user-menu-head strong, .user-menu-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-head small { color: var(--ink-soft); }

.avatar { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--navy)); color: #fff; font-weight: 700; flex-shrink: 0; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 44px; height: 44px; font-size: 1.1rem; }

.app-content { padding: 1.75rem 1.5rem 2rem; flex: 1; width: 100%; max-width: 1320px; }
.app-footer { padding: 1.1rem 1.5rem 1.4rem; color: var(--ink-faint); font-size: .82rem; border-top: 1px solid var(--hairline); }
.app-footer a { color: var(--ink-soft); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--navy); }
.page-head p { margin: .25rem 0 0; color: var(--ink-soft); }
.card-soft { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 10px 30px -26px rgba(15, 47, 71, .4); }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }
.empty-state > i { font-size: 2.6rem; color: var(--brand); display: block; margin-bottom: .75rem; }
.empty-state h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.empty-state p { max-width: 460px; margin: 0 auto 1rem; }

/* Atualizações */
.versions { display: grid; gap: 1rem; max-width: 860px; }
.version-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .75rem; }
.version-head h2 { font-size: 1.08rem; font-weight: 700; margin: 0; }
.version-num { display: inline-grid; place-items: center; min-width: 52px; height: 36px; padding: 0 .6rem; border-radius: 10px; background: var(--tint);
  color: var(--brand-dark); font-weight: 800; }
.version.is-current .version-num { background: var(--brand); color: #fff; }
.version ul { margin: 0; padding-left: 1.2rem; color: var(--ink); }
.version li { margin-bottom: .35rem; }


/* ==================== Controle das aulas ==================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.stat { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: .9rem 1.1rem; color: var(--ink-soft); text-decoration: none; font-size: .88rem; }
a.stat:hover { border-color: #bcd2e3; }
.stat-n { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-alerta { border-color: #f4c98a; background: #fff8ec; }
.stat-alerta .stat-n { color: #b06a00; }
.stat-l { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stat-v { font-weight: 700; color: var(--ink); }
.sec-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
summary.sec-title { cursor: pointer; }
.sec-title i { color: var(--brand); }
.sec-sub { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin: 1.1rem 0 .5rem; }

.of-list { list-style: none; margin: 0; padding: 0; }
.of-item { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--hairline); }
.of-item:first-child { border-top: 0; }
.of-main { flex: 1; min-width: 0; }
.of-meta { font-size: .84rem; margin-top: .15rem; }
.of-side { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.of-compact .of-item { padding: .45rem 0; }
.of-compact strong { font-weight: 600; font-size: .92rem; }

.fase { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.fase-aulas { background: #e3f0fa; color: #134a70; }
.fase-avaliacao { background: #fff1d6; color: #8a5200; }
.fase-correcao { background: #fde4dc; color: #9a3412; }
.fase-proxima { background: #eef0ff; color: #3d3fa8; }
.fase-concluida { background: #eef2f5; color: #5b6b7a; }
.fase-cinza { background: #f1f3f5; color: #868e96; }

.turma-chip { display: inline-flex; align-items: center; padding: .08rem .45rem; border-radius: 6px; font-size: .74rem; font-weight: 600;
  background: color-mix(in srgb, var(--cor) 12%, #fff); color: color-mix(in srgb, var(--cor) 80%, #000); text-decoration: none; white-space: nowrap; }
.turma-chip:hover { background: color-mix(in srgb, var(--cor) 20%, #fff); }
.curso-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 6px; font-size: .78rem; font-weight: 600;
  background: color-mix(in srgb, var(--cor) 12%, #fff); color: color-mix(in srgb, var(--cor) 80%, #000); }
.curso-tag.is-falta { background: #fff; border: 1px dashed color-mix(in srgb, var(--cor) 50%, #fff); }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--hairline);
  background: #fff; color: var(--ink-soft); text-decoration: none; font-size: .86rem; font-weight: 500; }
.chip:hover { border-color: #bcd2e3; color: var(--brand-dark); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--cor, var(--brand)); }
.chip.on .dot { box-shadow: 0 0 0 2px #fff; }

.timeline { display: grid; gap: .75rem; }
.tl-week { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: .85rem 1.1rem; }
.tl-week.is-now { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(29, 90, 132, .1); }
.tl-week.is-past { opacity: .72; }
.tl-head { display: flex; align-items: center; gap: .5rem; }
.tl-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.tl-ev { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: .75rem; padding: .35rem .5rem; border-radius: 8px; }
.tl-ev.is-mine { background: #fffaf0; }
.tl-tag { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tl-abre .tl-tag { color: #3d3fa8; }
.tl-avaliacao .tl-tag { color: #8a5200; }
.tl-correcao .tl-tag { color: #9a3412; }
.tl-aulas .tl-tag { color: #134a70; }
.tl-empty { margin: .5rem 0 0; color: var(--ink-faint); font-size: .88rem; }

.tbl { margin-bottom: 0; }
.tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; border-bottom-color: var(--hairline); }
.tbl td { border-bottom-color: var(--hairline); }
.tbl tr.is-mine td { background: #fffaf0; }
.card-soft.p-0 .tbl th:first-child, .card-soft.p-0 .tbl td:first-child { padding-left: 1.25rem; }

.curso-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: .5rem 0 .75rem; padding-left: .75rem; border-left: 4px solid var(--cor); }
.turma-card { display: block; height: 100%; background: #fff; border: 1px solid var(--hairline); border-top: 3px solid var(--cor); border-radius: var(--radius);
  padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; }
.turma-card:hover { box-shadow: 0 12px 30px -24px rgba(15, 47, 71, .5); border-color: #bcd2e3; border-top-color: var(--cor); }
.turma-now { margin-top: .7rem; display: grid; gap: .3rem; font-size: .9rem; }

.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.grade-col { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.grade-col header { display: flex; justify-content: space-between; padding: .7rem 1rem; background: color-mix(in srgb, var(--cor) 10%, #fff);
  color: color-mix(in srgb, var(--cor) 85%, #000); }
.grade-item { padding: .6rem 1rem; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; }
.grade-item.is-mine { background: #fffaf0; }
.gi-nome { font-weight: 600; font-size: .9rem; }
.gi-meta { font-size: .78rem; color: var(--ink-soft); }

.notas { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; align-items: start; }
.notas-lista { padding: 1rem; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow-y: auto; }
.nota-links { display: grid; gap: 2px; }
.nota-links a { display: flex; flex-direction: column; padding: .5rem .6rem; border-radius: 9px; color: var(--ink); text-decoration: none; }
.nota-links a:hover { background: var(--tint); }
.nota-links a.active { background: var(--tint); color: var(--brand-dark); font-weight: 600; }
.nota-links small { color: var(--ink-faint); font-weight: 400; }
.nota-titulo { flex: 1; min-width: 200px; font-size: 1.15rem; font-weight: 700; border: 0; padding-left: 0; }
.nota-titulo:focus { box-shadow: none; }
textarea.nota-texto { min-height: 62vh; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.6; resize: vertical; }
.prose-nota { min-height: 60vh; line-height: 1.7; }
.prose-nota h1, .prose-nota h2, .prose-nota h3 { color: var(--navy); font-weight: 700; margin-top: 1.2rem; }
.prose-nota h1 { font-size: 1.5rem; } .prose-nota h2 { font-size: 1.25rem; } .prose-nota h3 { font-size: 1.08rem; }
.prose-nota pre, .prose-nota code { background: var(--surface); border-radius: 6px; }
.prose-nota pre { padding: .75rem; }
.prose-nota blockquote { border-left: 3px solid var(--hairline); padding-left: .9rem; color: var(--ink-soft); }
.prose-nota table { width: 100%; border-collapse: collapse; } .prose-nota td, .prose-nota th { border: 1px solid var(--hairline); padding: .35rem .6rem; }

@media (max-width: 991.98px) {
  .notas { grid-template-columns: 1fr; }
  .notas-lista { position: static; max-height: 260px; }
}
@media (max-width: 767.98px) {
  .tl-ev { grid-template-columns: 1fr; gap: .1rem; }
  /* tabelas viram cartões no celular */
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: .6rem .25rem; border-bottom: 1px solid var(--hairline); }
  .tbl td { display: flex; gap: .75rem; justify-content: space-between; border: 0; padding: .2rem .5rem; text-align: right; }
  .tbl td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--ink-faint); text-align: left; }
  .tbl td[data-label=""]::before { content: none; }
  .of-item { flex-wrap: wrap; }
  .of-side { width: 100%; justify-content: space-between; }
}

/* ==================== Documentos (termos, privacidade) ==================== */
.doc-top { background: linear-gradient(135deg, var(--brand-dark), var(--navy)); border-bottom: 4px solid var(--accent); }
.doc-wrap { max-width: 820px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.doc-top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1rem; padding-bottom: 1rem; }
.doc-top a { text-decoration: none; }
.doc-top nav { display: flex; gap: 1rem; }
.doc-top nav a { color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .92rem; }
.doc-top nav a[aria-current="page"], .doc-top nav a:hover { color: #fff; }
.doc-head { padding: 2.5rem 0 1rem; }
.doc-head h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin: .3rem 0; }
.doc-head p { color: var(--ink-soft); margin: 0; }
.prose { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 2rem; margin-bottom: 2.5rem; line-height: 1.7; }
.prose h2 { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin: 1.6rem 0 .5rem; }
.prose h2:first-of-type { margin-top: 1.2rem; }
.prose li { margin-bottom: .3rem; }
.doc-footer { border-top: 1px solid var(--hairline); padding: 1.25rem 0 2rem; color: var(--ink-faint); font-size: .85rem; }
.doc-footer a { color: var(--ink-soft); }

@media (max-width: 575.98px) {
  .app-topbar { padding: .5rem 1rem; }
  .app-topbar .app-brand .brand > span { display: none; }
  .app-content { padding: 1.25rem 1rem 1.5rem; }
  .page-head h1 { font-size: 1.35rem; }
  .card-soft { padding: 1.1rem; }
  .prose { padding: 1.25rem; }
  .doc-head h1 { font-size: 1.6rem; }
}

/* Anotações em tela cheia (pedido do dono, 01/11/2026): some o menu do sistema; índice estreito e discreto + editor grande */
body.anot-cheia .app-sidebar, body.anot-cheia .app-topbar, body.anot-cheia .app-footer { display: none !important; }
body.anot-cheia .app-content { max-width: none; padding: .75rem; }
body.anot-cheia .notas { grid-template-columns: 210px 1fr; gap: .75rem; }
body.anot-cheia .notas-lista { top: .75rem; max-height: calc(100vh - 1.5rem); padding: .6rem; background: transparent; border-color: transparent; box-shadow: none; }
body.anot-cheia .nota-links a { padding: .35rem .5rem; font-size: .86rem; }
body.anot-cheia .nota-links small { display: none; }
body.anot-cheia .notas-editor { min-height: calc(100vh - 1.5rem); display: flex; flex-direction: column; }
body.anot-cheia textarea.nota-texto, body.anot-cheia .prose-nota { min-height: calc(100vh - 9rem); }
@media (max-width: 991.98px) { body.anot-cheia .notas { grid-template-columns: 1fr; } }

/* Fase 2: tarefas, mensagens, alunos, coordenação */
.of-link { color: inherit; text-decoration: none; }
.of-link:hover { color: var(--brand); text-decoration: underline; }
.tarefas { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.tarefa { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; }
.tarefa .form-check-input { width: 1.25rem; height: 1.25rem; margin: 0; flex-shrink: 0; cursor: pointer; }
.tarefa .form-check-input:checked { background-color: #1f8a5b; border-color: #1f8a5b; }
.tarefa label { display: flex; flex-direction: column; cursor: pointer; font-weight: 500; }
.tarefa label small { color: var(--ink-soft); font-weight: 400; }
.tarefa-atrasada { background: #fdecec; }
.tarefa-atrasada label small { color: #b42318; font-weight: 600; }
.tarefa-hoje { background: #fff4dc; }
.tarefa-feita label { color: var(--ink-faint); text-decoration: line-through; }
.tarefa-futura { opacity: .7; }
.tarefas-inicio .tarefa label { min-width: 230px; }
.tarefa-disc { font-weight: 600; color: var(--ink); text-decoration: none; }
.tarefa-disc:hover { color: var(--brand); }
.msg { border: 1px solid var(--hairline); border-radius: 12px; padding: .6rem .9rem; margin-bottom: .5rem; }
.msg summary { font-weight: 600; cursor: pointer; }
.msg-body { margin-top: .6rem; }
.msg-txt { font-size: .88rem; line-height: 1.55; background: var(--surface); }
.alunos-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .1rem 1rem; max-height: 420px; overflow-y: auto; }
.alunos-lista div { display: flex; flex-direction: column; padding: .3rem 0; border-bottom: 1px solid var(--hairline); }
.alunos-lista small { color: var(--ink-soft); word-break: break-all; }
.coord-item { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--hairline); }
.coord-item:first-of-type { border-top: 0; }
.tarefa-antes { opacity: .55; }
.tgrupos { display: grid; gap: .1rem; }
.tgrupo { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: .75rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--hairline); }
.tgrupo:first-child { border-top: 0; }
.tgrupo-itens { display: flex; flex-wrap: wrap; gap: .4rem; }
.tpill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--hairline);
  background: #fff; font-size: .85rem; font-weight: 500; cursor: pointer; }
.tpill .form-check-input { width: 1rem; height: 1rem; margin: 0; }
.tpill .form-check-input:checked { background-color: #1f8a5b; border-color: #1f8a5b; }
.tpill small { color: var(--ink-soft); }
.tpill.tarefa-atrasada { background: #fdecec; border-color: #f6c6c3; }
.tpill.tarefa-atrasada small { color: #b42318; font-weight: 600; }
.tpill.tarefa-hoje { background: #fff4dc; border-color: #f4d79a; }
.tpill.tarefa-feita { text-decoration: line-through; color: var(--ink-faint); }
@media (max-width: 767.98px) { .tgrupo { grid-template-columns: 1fr; gap: .35rem; } }
