@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Identidade Notta: fundo claro + roxo/lavanda (cores de marca), com
       roxo para estrutura/títulos e grafite para texto. Paleta clara,
       minimalista, sem tons agressivos. */
    --rose: #B7A5D8;
    --rose-dark: #9678C4;
    --rose-tint: rgba(183, 165, 216, 0.18);
    --rose-deep: #7357A5;
    --rose-deep-dark: #5A4481;
    --rose-deep-tint: rgba(115, 87, 165, 0.08);
    --ivory: #F8F6FB;
    --gold: #CBA36E;
    --gold-dark: #A87F4E;
    --gold-tint: rgba(203, 163, 110, 0.16);
    --ink: #29262E;
    --muted: #6E6478;
    --blush: #E2DBEF;
    --blush-tint: rgba(226, 219, 239, 0.40);
    --white: #FFFFFF;
    --success: #3F7D5C;
    --success-tint: rgba(63, 125, 92, 0.14);
    --danger: #B5533C;
    --danger-tint: rgba(181, 83, 60, 0.13);
    --border: rgba(115, 87, 165, 0.12);
    --shadow-sm: 0 1px 2px rgba(41, 38, 46, 0.05);
    --shadow-md: 0 10px 28px -12px rgba(41, 38, 46, 0.20);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    /* Altura da topbar fixa no desktop (padding 12px 28px + conteudo ~36px) -
       usada pra encaixar o menu lateral e o conteudo logo abaixo dela. */
    --topbar-height: 60px;
}

* { box-sizing: border-box; }

html, body {
    background: var(--ivory);
}

body {
    color: var(--ink);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    padding-bottom: 88px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--rose-deep); text-decoration: none; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Top bar ---------- */

.notta-topbar {
    /* --rose-deep = #7357A5, mesmo roxo do sidebar no desktop. */
    background: var(--rose-deep);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: var(--shadow-md);
}

.notta-topbar .brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.notta-topbar .brand .logo-chip {
    display: flex;
    align-items: center;
}

/* brand-logo-icon (so o icone, sem texto) e usado no favicon e no menu
   lateral recolhido - altura em "em" pra acompanhar o font-size de cada
   contexto (cada selecao de .brand-mark abaixo so muda o font-size). O logo
   completo agora e texto de verdade (.brand-wordmark, ver abaixo) em vez de
   imagem, pra nao depender de gerar uma nova arte a cada mudanca de nome. */
.brand-mark {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.brand-logo-full {
    height: 1.6em;
    width: auto;
    display: block;
}
.brand-logo-icon {
    height: 1em;
    width: auto;
    display: block;
}

/* Logotipo em texto ("AgeNota"). Todo lugar onde ele aparece no site
   (topbar, sidebar, paineis de login, marketing) o fundo por tras e sempre
   escuro - roxo direto ou o chip .brand-mark (var(--rose-deep)) por cima de
   fundo claro - entao o texto fica branco fixo, sem precisar de uma segunda
   versao pra fundo claro. Ver .brand-mark acima e os chips que adicionam
   background:var(--rose-deep) em fundo claro (login mobile, nav de
   marketing rolado). */
.brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1;
}
.brand-wordmark .accent { color: var(--gold); }
.brand-wordmark-icon {
    height: 1.7em;
    width: auto;
    display: block;
}

.notta-topbar .brand .logo-chip .brand-mark { font-size: 1.4rem; }

.notta-topbar-actions { display: flex; align-items: center; gap: 8px; }
.notta-topbar form { margin: 0; }

.btn-topbar-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 14px -6px rgba(168, 127, 78, 0.6);
    transition: filter 0.15s ease;
}
.btn-topbar-upgrade:hover { filter: brightness(1.06); color: #fff; }
.btn-topbar-upgrade i { font-size: 0.72rem; }

.btn-topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: var(--radius-pill);
    padding: 7px 11px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.btn-topbar-contact:hover { background: rgba(255,255,255,0.24); color: #fff; }
.btn-topbar-contact i { font-size: 0.85rem; }

/* Telas de celular: reduz o respiro lateral da topbar pra sobrar espaco pro
   pill de "Falar com o professor" por extenso - o "Sair" ja e so icone (ver
   .btn-logout), entao normalmente cabe sem precisar esconder texto. */
@media (max-width: 480px) {
    .notta-topbar { padding: 12px 14px; }
    .notta-topbar-actions { gap: 6px; }
    .notta-topbar .brand .logo-chip .brand-mark { font-size: 1.2rem; }
}

/* Tela bem estreita mesmo assim: pill vira so o icone. */
@media (max-width: 340px) {
    .btn-topbar-upgrade { padding: 7px 10px; }
    .btn-topbar-upgrade-text { display: none; }
    .btn-topbar-contact { padding: 7px 10px; }
    .btn-topbar-contact-text { display: none; }
}

.notta-topbar .btn-logout {
    /* So o icone (sem texto "Sair") - da mais espaco na topbar pro botao de
       WhatsApp do aluno ficar por extenso. Fundo roxo escuro (--rose-deep)
       por tras, entao o icone usa branco translucido, igual antes. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.26);
    border-radius: 50%;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.notta-topbar .btn-logout:hover { background: rgba(255,255,255,0.22); }

/* ---------- Sidebar (desktop) ---------- */

.notta-sidebar { display: none; }

/* ---------- Layout ---------- */

.notta-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 8px;
}

/* A partir daqui o app deixa de ser "mobile esticado": topbar e bottom nav
   somem, entra um menu lateral fixo (recolhivel, estado salvo em
   localStorage) e o conteudo ganha largura e respiro condizentes com uma
   tela grande. */
@media (min-width: 992px) {
    body { padding-bottom: 0; }

    .notta-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 248px;
        /* --rose-deep = #7357A5, roxo cheio da marca. Fundo mais escuro que
           o topbar mobile - os elementos abaixo usam tons claros/dourados
           para manter contraste e harmonizar com esse roxo. */
        background: var(--rose-deep);
        z-index: 40;
        transition: width 0.18s ease;
        overflow: visible;
    }
    html.sidebar-collapsed .notta-sidebar { width: 78px; }

    /* Marca ja aparece na topbar fixa acima - sem repetir aqui, o menu
       lateral comeca direto no botao de recolher + nav. */
    .notta-sidebar-toggle {
        position: absolute;
        top: 16px;
        right: -13px;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--white);
        color: var(--rose-deep-dark);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.72rem;
        cursor: pointer;
        transition: transform 0.18s ease;
    }
    html.sidebar-collapsed .notta-sidebar-toggle { transform: rotate(180deg); }

    .notta-sidebar .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px 12px 4px;
        display: flex;
        flex-direction: column;
    }
    .notta-sidebar .sidebar-nav a {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 11px 12px;
        border-radius: var(--radius-sm);
        color: rgba(255,255,255,0.92);
        font-weight: 600;
        font-size: 0.88rem;
        text-decoration: none;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        transition: background 0.12s ease, color 0.12s ease;
    }
    .notta-sidebar .sidebar-nav a .icon { font-size: 1rem; width: 18px; flex-shrink: 0; text-align: center; color: var(--rose); }
    .notta-sidebar .sidebar-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
    .notta-sidebar .sidebar-nav a.active { background: var(--rose-deep-dark); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
    .notta-sidebar .sidebar-nav a.active .icon { color: #fff; }
    html.sidebar-collapsed .notta-sidebar .sidebar-nav a .label { display: none; }
    html.sidebar-collapsed .notta-sidebar .sidebar-nav a { justify-content: center; }

    .notta-sidebar .sidebar-footer {
        padding: 12px;
        border-top: 1px solid rgba(255,255,255,0.16);
    }
    .notta-sidebar .sidebar-user {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 4px 12px;
        overflow: hidden;
    }
    .notta-sidebar .sidebar-user .avatar-mini {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--white);
        color: var(--rose-deep-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    .notta-sidebar .sidebar-user .who { overflow: hidden; }
    .notta-sidebar .sidebar-user .name { font-weight: 700; font-size: 0.85rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .notta-sidebar .sidebar-user .role { font-size: 0.72rem; color: rgba(255,255,255,0.68); }
    html.sidebar-collapsed .notta-sidebar .sidebar-user .who { display: none; }

    .notta-sidebar .btn-sidebar-logout {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        background: rgba(255,255,255,0.10);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.24);
        border-radius: var(--radius-sm);
        padding: 9px;
        font-size: 0.82rem;
        font-weight: 600;
        transition: background 0.15s ease;
    }
    .notta-sidebar .btn-sidebar-logout:hover { background: rgba(255,255,255,0.18); }
    html.sidebar-collapsed .notta-sidebar .btn-sidebar-logout .label { display: none; }

    .notta-container {
        margin-left: 248px;
        width: calc(100% - 248px);
        max-width: none;
        padding: 40px 48px 56px;
        transition: margin-left 0.18s ease, width 0.18s ease;
        box-sizing: border-box;
    }
    html.sidebar-collapsed .notta-container { margin-left: 78px; width: calc(100% - 78px); }

    /* Distribui secoes lado a lado nas telas largas em vez de empilhar tudo
       numa coluna estreita. Sem efeito no mobile (fica como bloco normal). */
    .notta-two-col {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 24px;
        align-items: start;
    }
    /* Agenda semanal no desktop: cards mais largos (3 por linha em vez de
       5-6 apertados) e informacao mais compacta/minimalista dentro deles. */
    .notta-week-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .notta-week-grid > .notta-card { margin-bottom: 0; padding: 16px; }
    .notta-week-grid .notta-card h3 { font-size: 0.8rem; margin-bottom: 8px; }
    .notta-week-grid .notta-lesson-row { padding: 8px 0; font-size: 0.82rem; }
    .notta-week-grid .notta-lesson-time { font-size: 0.78rem; width: 44px; }
    .notta-week-grid .notta-badge { font-size: 0.62rem; padding: 3px 9px; }
    .notta-week-grid .notta-lesson-row > .notta-badge { width: auto; }
    .notta-week-grid .notta-empty { padding: 16px 4px; font-size: 0.8rem; }
}

.notta-card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

[data-href] { cursor: pointer; }
.notta-card[data-href]:active, .notta-stat-chip[data-href]:active { background: var(--ivory); }
.notta-card[data-href]:focus-visible, .notta-stat-chip[data-href]:focus-visible {
    outline: 2px solid var(--rose-deep);
    outline-offset: 2px;
}

.notta-card.is-today {
    background: var(--rose-deep-tint);
    border-color: var(--rose-deep);
    position: relative;
    overflow: hidden;
}
.notta-card.is-today::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--rose-deep));
}

/* ---------- Dashboard grid ---------- */
/* Em vez de duas colunas que rolam de forma independente (o que deixava
   cartoes de alturas bem diferentes desalinhados), cada cartao/secao vira
   um item de grid proprio: no desktop eles caem em linhas parelhas
   (aulas de hoje ao lado de financeiro, proximas aulas ao lado de
   atrasadas), no mobile empilham normalmente. */
.notta-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 24px;
}
@media (min-width: 992px) {
    .notta-dashboard-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    /* Cartoes lado a lado ficam com a mesma altura na linha (em vez de
       cada um encolher pro proprio conteudo) - o wrapper e o card viram
       flex-column pra esticar, e o botao final (se tiver) e empurrado
       pro rodape em vez de flutuar no meio do espaco sobrando. */
    .notta-dashboard-grid > div { display: flex; }
    .notta-dashboard-grid .notta-card {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .notta-dashboard-grid .notta-card > a.btn:last-child {
        margin-top: auto;
        align-self: flex-start;
    }
}

.notta-card h2, .notta-card h3 {
    margin-top: 0;
    font-size: 1rem;
}

.notta-card h2 { font-size: 1.02rem; margin-bottom: 12px; }
.notta-card h3 { font-size: 0.92rem; margin-bottom: 10px; }

/* ---------- Dashboard: hero de boas-vindas ---------- */

.notta-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, var(--rose-deep), var(--rose-deep-dark));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: 0 16px 36px -18px rgba(115, 87, 165, 0.55);
    position: relative;
    overflow: hidden;
}
.notta-dashboard-hero::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -90px;
    right: -40px;
}
.notta-dashboard-hero h1 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 4px;
}
.notta-dashboard-hero .date {
    color: rgba(255,255,255,0.75);
    font-size: 0.86rem;
    margin: 0;
    text-transform: capitalize;
}
.notta-dashboard-hero-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* ---------- Dashboard: cabecalho de card com icone ---------- */

.notta-card-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}
.notta-card-header h2 { margin: 0; }
.notta-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--rose-deep-tint);
    color: var(--rose-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.94rem;
    flex-shrink: 0;
}
.notta-card-icon-gold { background: var(--gold-tint); color: var(--gold-dark); }
.notta-card-icon-danger { background: var(--danger-tint); color: var(--danger); }

/* ---------- Dashboard: barra de progresso do financeiro ---------- */

.notta-finance-bar {
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--rose-tint);
    overflow: hidden;
    margin: 2px 0 14px;
}
.notta-finance-bar .fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--gold), var(--rose-deep));
}

/* ---------- Dashboard: card de alerta (mensalidades atrasadas) ---------- */

.notta-card.is-alert {
    position: relative;
    overflow: hidden;
    border-color: rgba(181, 83, 60, 0.30);
}
.notta-card.is-alert::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--danger);
}

/* Mesmo acabamento (faixa dourado -> roxo) nos demais cards do dashboard,
   para o alerta (vermelho) ser a excecao que chama atencao, nao o unico
   card com faixa. */
.notta-dashboard-grid .notta-card:not(.is-alert) {
    position: relative;
    overflow: hidden;
}
.notta-dashboard-grid .notta-card:not(.is-alert)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--rose-deep));
}

.notta-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin: 24px 4px 10px;
}
.notta-section-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* Separa visualmente o que muda com o filtro de mes (financeiro) do que e
   sempre igual (projecao, atrasadas) - ver views/teacher/finance/index.ejs. */
.notta-finance-overview-divider {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 4px 14px;
    padding-top: 18px;
    border-top: 1.5px dashed var(--border);
}
.notta-finance-overview-divider span:first-child {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--rose-deep);
}
.notta-finance-overview-divider .hint { font-size: 0.78rem; color: var(--muted); }

/* ---------- Lesson / list rows ---------- */

.notta-lesson-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.notta-lesson-row:last-child { border-bottom: none; }
.notta-lesson-row:first-child { padding-top: 2px; }

.notta-lesson-time {
    font-weight: 700;
    color: var(--rose-deep);
    width: 54px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Mesmo estilo do horario (HH:MM), mas para colunas que mostram uma data
   completa (DD/MM/AAAA) - a largura fixa de 54px do .notta-lesson-time nao
   cabe esse texto e fazia a data sobrepor o nome do aluno ao lado. */
.notta-lesson-date {
    font-weight: 700;
    color: var(--rose-deep);
    width: 92px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Evita que um card com muitos itens (ex.: um dia cheio de aulas, muitas
   cobrancas atrasadas) estique a pagina inteira - a partir de ~6 linhas o
   card ganha altura fixa e rola por dentro, sem esconder nenhum item. */
.notta-scroll-cap {
    max-height: 336px;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
}

a.notta-lesson-row {
    border-radius: var(--radius-sm);
    margin: 0 -8px;
    padding: 12px 8px;
    transition: background 0.12s ease;
}
a.notta-lesson-row:hover { background: var(--ivory); }

/* Badge/botao no final da linha com largura fixa, independente do texto,
   para as linhas ficarem visualmente simetricas (ex.: "Falta" vs
   "Cancelada" vs "Abrir aula"). Nao se aplica dentro do notta-week-grid -
   os cards da agenda semanal sao estreitos demais e a largura fixa
   cortava o conteudo. */
.notta-lesson-row > .notta-badge,
.notta-lesson-row > .btn {
    width: 130px;
    text-align: center;
    flex-shrink: 0;
}
/* Cards da agenda semanal sao estreitos - horario + nome + badge ficam
   juntos na primeira linha (nome trunca com "..." se precisar, badge
   encolhe pro tamanho do texto) e o botao "Abrir" quebra pra propria
   linha em vez de espremer (ou cortar) ao lado. */
.notta-week-grid .notta-lesson-row {
    flex-wrap: wrap;
    row-gap: 6px;
}
.notta-week-grid .notta-lesson-row > .flex-grow-1 {
    /* flex-basis:0 (em vez do auto padrao do flex-grow-1) tira o nome do
       calculo de "cabe nessa linha?" pelo tamanho natural do texto - senao
       um nome comprido sozinho ja empurrava o badge pra linha de baixo,
       mesmo ele tendo espaco de sobra depois de truncar. */
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notta-week-grid .notta-lesson-row > .notta-badge {
    width: auto;
    flex-shrink: 0;
}
.notta-week-grid .notta-lesson-row > .btn {
    width: auto;
    flex: 1 1 100%;
    margin-top: 2px;
    text-align: center;
}

/* Lista de alunos: o link "Caderno de anotações" e mais longo que os
   130px fixos da regra acima (pensada pra rotulos curtos tipo "Abrir
   aula") - o texto vazava pra fora da pilula. Deixa a largura livre pro
   conteudo em vez de cortar/vazar. */
.notta-student-row > .btn {
    width: auto;
    white-space: nowrap;
}

/* Nesse caso o nome/avatar tambem precisa poder encolher mais, ja que o
   botao acima ficou mais largo que o padrao de 130px. */
@media (max-width: 991px) {
    .notta-student-row {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .notta-student-row > a:first-child {
        flex: 1 1 100%;
    }
    .notta-student-row > .btn,
    .notta-student-row > .notta-badge {
        width: auto;
        flex: 0 0 auto;
    }
}

/* ---------- Charge rows (financeiro) ---------- */
.notta-charge-row {
    padding: 16px;
    border: 1px solid rgba(115, 87, 165, 0.16);
    border-radius: var(--radius-md);
    background: linear-gradient(120deg, rgba(183, 165, 216, 0.10), #fff 42%);
    box-shadow: 0 8px 20px -20px rgba(90, 68, 129, 0.7);
}
.notta-charge-list { display:grid; gap:12px; padding: 12px 24px 20px; }
.notta-charge-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.notta-charge-student { min-width:0; }
.notta-charge-student-name { color:var(--ink); font-weight:800; }
.notta-charge-description { margin-top:3px; color:var(--muted); font-size:0.78rem; }
.notta-charge-details { display:flex; flex-wrap:wrap; gap:8px 22px; margin:14px 0 0; }
.notta-charge-details > div { display:flex; align-items:baseline; gap:5px; }
.notta-charge-details dt { color:var(--muted); font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; }
.notta-charge-details dd { margin:0; color:var(--ink); font-size:0.83rem; font-weight:700; }
.notta-charge-details .notta-charge-payment-note dd { color:var(--success); }
.notta-charge-actions { display:flex; align-items:flex-end; gap:8px; flex-wrap:wrap; margin-top:14px; padding-top:12px; border-top:1px solid rgba(115, 87, 165, 0.12); }
.notta-charge-pay-form {
    display:grid;
    grid-template-columns:minmax(145px, 1fr) minmax(145px, 1fr) auto;
    align-items:end;
    gap:8px;
    flex:1 1 460px;
}
.notta-charge-pay-form label { display:block; margin:0 0 3px; color:var(--muted); font-size:0.7rem; font-weight:700; }
.notta-charge-pay-form .notta-payment-date { min-width:0; }
.notta-charge-cancel-form { flex:0 0 auto; }
@media (max-width: 640px) {
    .notta-charge-list { padding:12px 16px 16px; gap:10px; }
    .notta-charge-row { padding:14px; }
    .notta-charge-details { gap:7px 14px; }
    .notta-charge-details > div { flex-basis:100%; }
    .notta-charge-pay-form { grid-template-columns:1fr; flex-basis:100%; }
    .notta-charge-pay-form .btn,
    .notta-charge-cancel-form,
    .notta-charge-cancel-form .btn { width:100%; }
}

/* ---------- Schedule table (aulas fixas do aluno) ---------- */

.notta-table-wrap { overflow-x: auto; }
.notta-schedule-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.notta-schedule-table th {
    text-align: left;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 700;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.notta-schedule-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}
.notta-schedule-table tbody tr:last-child td { border-bottom: none; }
.notta-schedule-actions { display: flex; gap: 6px; justify-content: flex-end; }
.notta-schedule-edit-row td { background: var(--ivory); padding: 12px 8px; }
.notta-schedule-edit-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.notta-schedule-edit-form .form-select,
.notta-schedule-edit-form .form-control {
    width: auto;
    flex: 1;
    min-width: 110px;
}

.notta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blush-tint);
    color: var(--rose-deep-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ---------- Grafico de faltas (barras simples, sem lib externa) ---------- */

.notta-absence-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 110px;
    padding-top: 22px;
}
.notta-absence-bar-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.notta-absence-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.notta-absence-bar {
    width: 60%;
    max-width: 28px;
    min-height: 4px;
    background: var(--rose-deep);
    border-radius: 4px 4px 0 0;
    position: relative;
}
.notta-absence-bar.is-empty {
    background: var(--border);
}
.notta-absence-bar-value {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--rose-deep);
    white-space: nowrap;
}
.notta-absence-bar-label {
    margin-top: 6px;
    font-size: 0.66rem;
    color: var(--muted);
}
.notta-absence-total {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--ink);
    text-align: right;
}

/* ---------- Badges ---------- */

.notta-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
}
.badge-active, .badge-paid, .badge-completed { background: var(--success-tint); color: var(--success); }
.badge-pending { background: var(--rose-tint); color: var(--rose-dark); }
.badge-inactive, .badge-cancelled { background: var(--blush-tint); color: var(--muted); }
.badge-overdue, .badge-absent { background: var(--danger-tint); color: var(--danger); }
.badge-scheduled { background: var(--rose-deep-tint); color: var(--rose-deep); }

/* ---------- Checkbox chips (ex: instrumentos no cadastro de endereco) ---------- */

.notta-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.notta-checkbox-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--ivory);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.notta-checkbox-chip input { accent-color: var(--rose-deep); margin: 0; }
.notta-checkbox-chip:has(input:checked) {
    background: var(--rose-tint);
    border-color: var(--rose-deep);
    color: var(--rose-deep-dark);
}

/* ---------- Choice cards (grupo de radio estilizado) ---------- */

.notta-choice-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notta-choice-card {
    position: relative;
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.notta-choice-card:hover { border-color: var(--rose); }

.notta-choice-card:has(input:checked) {
    background: var(--rose-tint);
    border-color: var(--rose-deep);
    box-shadow: 0 0 0 3px var(--rose-deep-tint);
}

.notta-choice-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.notta-choice-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

.notta-choice-title::before {
    content: '';
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid var(--blush);
    background: var(--white);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.notta-choice-card:has(input:checked) .notta-choice-title::before {
    border-color: var(--rose-deep);
    background: var(--rose-deep);
    box-shadow: inset 0 0 0 3px var(--white);
}

.notta-choice-desc {
    font-size: 0.78rem;
    color: var(--muted);
    padding-left: 26px;
}

/* ---------- Stats ---------- */

.notta-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.notta-stat .label { color: var(--muted); font-size: 0.88rem; }
.notta-stat .value { font-weight: 700; }

.notta-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.notta-stat-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.notta-stat-chip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--rose-deep));
}
.notta-stat-chip .n {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rose-deep-dark);
    letter-spacing: -0.02em;
}
.notta-stat-chip .lab {
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}
.notta-stat-chip .ic {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    margin-bottom: 10px;
}
.notta-stat-chip .ic.ic-success { background: linear-gradient(135deg, var(--success), #2f6248); }
.notta-stat-chip .ic.ic-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.notta-stat-chip .ic.ic-danger { background: linear-gradient(135deg, var(--danger), #8f3f2d); }

.notta-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) {
    .notta-stat-grid-3 { grid-template-columns: 1fr; }
}

.notta-progress {
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--blush-tint);
    overflow: hidden;
    margin-top: 6px;
}
.notta-progress > div {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--rose-deep));
    border-radius: var(--radius-pill);
}

.notta-hero-stat {
    text-align: center;
    padding: 6px 0 2px;
}
.notta-hero-stat .big {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--rose-deep-dark);
    letter-spacing: -0.02em;
}
.notta-hero-stat .caption {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 2px;
}

/* ---------- Forms ---------- */

.form-label { font-weight: 600; font-size: 0.85rem; color: var(--ink); margin-bottom: 6px; }
.req-star { color: var(--danger); margin-left: 2px; }
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 9px 12px;
    font-size: 0.92rem;
    background: var(--white);
    color: var(--ink);
}
.form-control::placeholder { color: #9aa3a0; }
.form-control:focus, .form-select:focus {
    border-color: var(--rose-deep);
    box-shadow: 0 0 0 3px var(--rose-deep-tint);
}

/* ---------- Buttons ---------- */

.btn-notta-primary {
    background: var(--rose-deep);
    border: none;
    color: var(--white);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 11px 20px;
    box-shadow: 0 6px 16px -6px rgba(115, 87, 165, 0.45);
    transition: transform 0.1s ease, background 0.15s ease;
}
.btn-notta-primary:hover { background: var(--rose-deep-dark); color: var(--white); }
.btn-notta-primary:active { transform: scale(0.98); }

/* Upgrade de plano desativado no periodo de beta - "Em breve", nao navega. */
.btn-disabled,
.btn-disabled:hover {
    background: var(--rose-deep-tint);
    color: var(--rose-deep-dark);
    border-color: rgba(115, 87, 165, 0.18);
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-notta-outline {
    border: 1.5px solid var(--border);
    color: var(--rose-deep-dark);
    border-radius: var(--radius-pill);
    background: var(--white);
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-notta-outline:hover { background: var(--blush-tint); border-color: var(--blush); color: var(--rose-deep-dark); }

.btn.btn-sm.btn-notta-primary { padding: 7px 14px; font-size: 0.82rem; box-shadow: none; }
.btn.btn-sm.btn-notta-outline { padding: 6px 13px; font-size: 0.78rem; }

/* ---------- Dropdown (menu "mais acoes") ---------- */

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    min-width: 190px;
}
.dropdown-menu .dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 10px;
    color: var(--ink);
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: var(--blush-tint);
    color: var(--ink);
}
.dropdown-menu .dropdown-item-danger { color: var(--danger); }
.dropdown-menu .dropdown-item-danger:hover,
.dropdown-menu .dropdown-item-danger:focus {
    background: var(--danger-tint);
    color: var(--danger);
}

/* ---------- Bottom nav ---------- */

.notta-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 20;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.notta-bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.15s ease, color 0.15s ease;
}
.notta-bottom-nav a.active { color: var(--rose-deep-dark); background: var(--blush-tint); }
.notta-bottom-nav .icon {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: inherit;
}

/* ---------- Empty / flash / alerts ---------- */

.notta-empty {
    color: var(--muted);
    text-align: center;
    padding: 28px 8px;
    font-size: 0.88rem;
}

.notta-flash {
    background: var(--success-tint);
    color: var(--success);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

.notta-alert-error {
    background: var(--danger-tint);
    color: var(--danger);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

.notta-alert-info {
    background: var(--rose-deep-tint);
    color: #3d3550;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    line-height: 1.5;
    font-weight: 400;
}

.notta-alert-warning-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* Verde oficial do WhatsApp (#25D366), separado do --success generico do
   app - esses links abrem o WhatsApp de verdade, entao valem a cor da marca
   pra ficar reconhecivel de cara. */
.notta-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.14);
    color: #1DA851;
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font-size: 0.78rem;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.15s ease;
}
.notta-whatsapp-link:hover { background: rgba(37, 211, 102, 0.24); color: #1DA851; }
.notta-whatsapp-link i { font-size: 0.85rem; }

/* Mensagens de cobrança: ações discretas e revisão antes de abrir o WhatsApp. */
.notta-whatsapp-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.notta-whatsapp-action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; color: #168445; background: transparent; border: 0; border-radius: 6px; font: inherit; font-size: 0.7rem; font-weight: 800; cursor: pointer; }
.notta-whatsapp-action:hover { color: #107039; background: rgba(37, 211, 102, 0.12); }
.notta-whatsapp-action i { font-size: 0.86rem; }
.notta-whatsapp-dialog { width: min(520px, calc(100vw - 32px)); padding: 26px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 24px 64px -24px rgba(46, 34, 72, 0.5); }
.notta-whatsapp-dialog::backdrop { background: rgba(41, 38, 46, 0.46); }
.notta-whatsapp-dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.notta-whatsapp-dialog-close:hover { color: var(--ink); background: var(--rose-deep-tint); }
.notta-whatsapp-dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 11px; color: #168445; background: rgba(37, 211, 102, 0.13); font-size: 1.35rem; }
.notta-whatsapp-dialog-eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 0.72rem; font-weight: 700; }.notta-whatsapp-dialog-eyebrow span { color: var(--ink); }
.notta-whatsapp-dialog h3 { margin: 0; color: var(--rose-deep-dark); font-size: 1.16rem; font-weight: 800; }.notta-whatsapp-dialog-help { margin: 6px 0 18px; color: var(--muted); font-size: 0.79rem; }
.notta-whatsapp-dialog-text { min-height: 145px; resize: vertical; line-height: 1.5; }
.notta-whatsapp-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
@media (max-width: 480px) { .notta-whatsapp-dialog { padding: 22px 18px 18px; }.notta-whatsapp-dialog-actions { flex-direction: column-reverse; }.notta-whatsapp-dialog-actions .btn { width: 100%; } }

/* ---------- Tabs (ficha do aluno) ---------- */

.notta-tabs {
    display: flex;
    gap: 4px;
    background: var(--blush-tint);
    border-radius: var(--radius-pill);
    padding: 4px;
    margin-bottom: 18px;
}
.notta-tabs button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rose-deep-dark);
    opacity: 0.6;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.notta-tabs button.active {
    background: var(--white);
    opacity: 1;
    box-shadow: var(--shadow-sm);
}
.notta-tab-panel { display: none; }
.notta-tab-panel.active { display: block; }

/* ---------- Calendar (agenda) ---------- */

.notta-calendar-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
@media (min-width: 576px) {
    .notta-calendar-header { flex-direction: row; align-items: center; justify-content: space-between; }
}

.notta-view-toggle {
    display: inline-flex;
    gap: 4px;
    background: var(--blush-tint);
    border-radius: var(--radius-pill);
    padding: 4px;
    align-self: flex-start;
}
.notta-view-toggle a {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rose-deep-dark);
    opacity: 0.6;
    text-decoration: none;
    transition: background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.notta-view-toggle a.active {
    background: var(--white);
    opacity: 1;
    box-shadow: var(--shadow-sm);
}

.notta-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.notta-calendar-nav h1 { text-align: center; flex: 1; white-space: nowrap; }

.notta-month-grid {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.notta-month-weekdays, .notta-month-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.notta-month-weekdays {
    background: var(--blush-tint);
    border-bottom: 1px solid var(--border);
}
.notta-month-weekdays div {
    padding: 8px 4px;
    text-align: center;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.notta-month-day {
    display: block;
    min-width: 0;
    min-height: 64px;
    padding: 6px 5px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    text-decoration: none;
    transition: background 0.12s ease;
}
.notta-month-week .notta-month-day:nth-child(7n) { border-right: none; }
.notta-month-week:last-child .notta-month-day { border-bottom: none; }
.notta-month-day:hover { background: var(--ivory); }
.notta-month-day .daynum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
}
.notta-month-day.is-today { background: var(--rose-deep-tint); }
.notta-month-day.is-today .daynum { background: var(--rose-deep); color: var(--white); }
.notta-month-day.is-outside { background: var(--ivory); }
.notta-month-day.is-outside .daynum { color: var(--muted); opacity: 0.6; }
.notta-month-lessons {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 44px;
    overflow: hidden;
}
.notta-month-lesson-chip {
    display: block;
    min-width: 0;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--rose-deep-tint);
    color: var(--rose-deep);
}
.notta-month-lesson-chip.status-completed { background: var(--success-tint); color: var(--success); }
.notta-month-lesson-chip.status-cancelled,
.notta-month-lesson-chip.status-absent { background: var(--danger-tint); color: var(--danger); }
.notta-month-more {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--muted);
    padding-left: 5px;
}
@media (min-width: 768px) {
    .notta-month-day { min-height: 100px; padding: 8px; }
    .notta-month-lessons { max-height: 66px; }
    .notta-month-lesson-chip { font-size: 0.68rem; padding: 3px 6px; }
}

/* ---------- Notebook entries ---------- */

.notta-note-entry {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.notta-note-entry:last-child { border-bottom: none; }
.notta-note-date {
    font-weight: 700;
    color: var(--rose-deep);
    font-size: 0.86rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notta-note-date::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
}
.notta-note-field { font-size: 0.88rem; margin-bottom: 2px; }
.notta-note-field .k { color: var(--muted); font-weight: 600; }
.notta-note-field.private { color: var(--muted); font-style: italic; }

/* ---------- Error pages ---------- */

.notta-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 24px;
    background: var(--ivory);
}
.notta-error-page h1 { font-size: 3rem; color: var(--rose-deep); margin-bottom: 4px; }
.notta-error-page p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Login (split screen) ---------- */

.notta-login-split {
    min-height: 100vh;
    display: flex;
}

.notta-login-promo {
    flex: 0 0 62%;
    max-width: 62%;
    /* Palco escuro, no espirito de capa de apresentacao, mas construido em
       tons do proprio roxo da marca (#7357A5) em vez de preto neutro. */
    background:
        radial-gradient(640px 480px at 102% -8%, rgba(203,163,110,0.24), transparent 60%),
        radial-gradient(560px 460px at -8% 108%, rgba(150,120,196,0.35), transparent 55%),
        linear-gradient(150deg, #4A3872 0%, #382A5C 50%, #251C3E 100%);
    color: #F3F0F8;
    padding: 6vh 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.notta-login-promo::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.10);
    top: -90px;
    right: 8%;
}
.notta-login-promo::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(203,163,110,0.30);
    bottom: -60px;
    right: 22%;
}

.notta-login-promo-inner { max-width: 700px; position: relative; z-index: 1; }

.notta-login-promo .logo-chip {
    display: inline-flex;
    margin-bottom: 34px;
}
.notta-login-promo .logo-chip .brand-mark { font-size: 2.6rem; }
.notta-login-promo .logo-chip .brand-logo-full { filter: drop-shadow(0 2px 16px rgba(0,0,0,0.35)); }

.notta-login-promo .tagline {
    font-size: clamp(1.7rem, 2.7vw, 2.7rem);
    font-weight: 800;
    text-transform: none;
    white-space: nowrap;
    margin: 0 0 22px;
    line-height: 1.14;
    letter-spacing: -0.03em;
}
.notta-login-promo .tagline span {
    color: var(--gold);
    background: linear-gradient(90deg, var(--gold), var(--rose), var(--rose-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notta-login-promo .desc {
    color: rgba(243,240,248,0.72);
    font-size: 1.15rem;
    line-height: 1.65;
    margin: 0 0 38px;
    max-width: 640px;
}

.notta-login-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 30px;
}
.notta-login-features .feat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.notta-login-features .feat .ic {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 10px 24px -8px rgba(115,87,165,0.65);
}
.notta-login-features .feat .t { font-weight: 700; color: #F3F0F8; font-size: 1.15rem; }
.notta-login-features .feat .d { color: rgba(243,240,248,0.62); font-size: 1rem; margin-top: 3px; line-height: 1.45; }

.notta-login-panel {
    flex: 0 0 38%;
    max-width: 38%;
    min-width: 360px;
    background:
        radial-gradient(520px 420px at 12% 8%, var(--blush-tint), transparent 60%),
        radial-gradient(480px 380px at 100% 100%, var(--rose-tint), transparent 55%),
        var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.notta-login-card {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 56px -22px rgba(115, 87, 165, 0.40), var(--shadow-sm);
    padding: 44px 48px;
    position: relative;
    overflow: hidden;
}
.notta-login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--rose-deep));
}

.notta-login-card h2 {
    font-size: 1.7rem;
    margin: 0 0 6px;
    color: var(--ink);
}
.notta-login-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 5px 9px;
    border-radius: 6px;
    color: var(--rose-deep);
    background: var(--rose-deep-tint);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.notta-login-role i { color: var(--gold-dark); font-size: 0.72rem; }
.notta-login-card .sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 26px;
}

.notta-login-card .btn-notta-primary {
    background: linear-gradient(135deg, var(--rose-deep), var(--rose-deep-dark));
    box-shadow: 0 12px 26px -10px rgba(115, 87, 165, 0.55);
}
.notta-login-card .btn-notta-primary:hover {
    background: linear-gradient(135deg, var(--rose-deep-dark), var(--rose-deep));
}

/* ---------- Jornada guiada de onboarding (primeiro aluno) ---------- */

.notta-onboarding-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}
.notta-onboarding-steps .step {
    flex: 1;
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--rose-tint);
}
.notta-onboarding-steps .step.done,
.notta-onboarding-steps .step.active {
    background: linear-gradient(90deg, var(--gold), var(--rose-deep));
}
.notta-onboarding-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 6px;
}
.notta-onboarding-done-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--rose-deep-tint);
    color: var(--rose-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 14px;
}

/* Botao "pular" do onboarding - fica no canto superior direito, na mesma
   linha do titulo, e precisa chamar atencao (bem mais visivel que um link
   discreto) pra quem quer só explorar sozinha achar a saida facil. */
.notta-skip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-tint);
    color: var(--gold-dark);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.notta-skip-badge:hover {
    background: var(--gold);
    color: var(--white);
}
.notta-skip-badge i { font-size: 0.72rem; }

/* ---------- Jornada do professor (banner no painel + modal de cadastro da escola) ---------- */

.notta-jornada-progress-bar { height: 8px; border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.notta-jornada-progress-bar .fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--gold), var(--rose-deep)); transition: width 0.3s ease; }

.notta-jornada-dialog {
    border: none;
    border-radius: var(--radius-lg);
    padding: 20px 22px 18px;
    max-width: min(460px, 92vw);
    max-height: 90vh;
    width: 100%;
    box-shadow: var(--shadow-md);
    background: var(--white);
}
.notta-jornada-dialog::backdrop { background: rgba(41, 38, 46, 0.48); }

.notta-jornada-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; min-height: 32px; }
.notta-jornada-back, .notta-jornada-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--rose-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    visibility: hidden;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0;
}
.notta-jornada-back.show { visibility: visible; }
.notta-jornada-close { visibility: visible; margin-left: auto; color: var(--muted); }
.notta-jornada-back:hover, .notta-jornada-close:hover { background: var(--blush-tint); }
.notta-jornada-mandatory-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--muted);
    background: var(--ivory);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    margin-left: auto;
}

.notta-jornada-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.notta-jornada-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.86rem;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--muted);
    flex-shrink: 0;
}
.notta-jornada-dot.active { border-color: var(--rose-deep); background: var(--rose-deep); color: #fff; }
.notta-jornada-dot.done { border-color: var(--rose-deep); background: var(--rose-deep-tint); color: var(--rose-deep); font-size: 0; }
.notta-jornada-dot.done::before { content: '\2713'; font-size: 0.86rem; }
.notta-jornada-line { width: 40px; height: 2px; background: var(--border); }
.notta-jornada-line.done { background: var(--rose-deep); }

.notta-jornada-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: var(--gold-tint);
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}
.notta-jornada-title { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.notta-jornada-sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 12px; line-height: 1.45; }

.notta-jornada-panel { display: none; }
.notta-jornada-panel.active { display: block; }
.notta-jornada-panel .mb-3 { margin-bottom: 10px !important; }
.notta-jornada-panel .form-label { margin-bottom: 3px; }

.notta-jornada-footer { display: flex; gap: 10px; margin-top: 4px; }
.notta-jornada-footer .btn-notta-primary,
.notta-jornada-footer .btn-notta-outline { flex: 1; text-align: center; }

.notta-jornada-instruments-error { color: var(--danger); font-size: 0.8rem; margin: -4px 0 12px; display: none; }
.notta-jornada-instruments-error.show { display: block; }

.notta-jornada-banner {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px 18px;
    margin-bottom: 16px;
    cursor: pointer;
}
.notta-jornada-banner-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.notta-jornada-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--rose-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.notta-jornada-banner-body { flex: 1; min-width: 0; }
.notta-jornada-banner-title { font-weight: 800; font-size: 0.92rem; margin: 0 0 2px; }
.notta-jornada-banner-desc { color: var(--muted); font-size: 0.82rem; margin: 0; }
.notta-jornada-banner-pct { flex-shrink: 0; font-size: 1.1rem; font-weight: 800; color: var(--rose-deep); }
.notta-jornada-banner .notta-jornada-progress-bar { margin-bottom: 12px; }
.notta-jornada-banner-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.notta-jornada-banner-list li {
    font-size: 0.83rem;
    color: var(--ink);
    padding-left: 20px;
    position: relative;
}
.notta-jornada-banner-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
}
.notta-jornada-banner-list li.is-done { color: var(--muted); text-decoration: line-through; }
.notta-jornada-banner-list li.is-done::before { background: var(--rose-deep); border-color: var(--rose-deep); }
.notta-jornada-banner .btn { flex-shrink: 0; }

.notta-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 11px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.notta-google-btn:hover { background: var(--ivory); border-color: var(--blush); }
.notta-google-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.notta-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 22px 0;
}
.notta-divider::before, .notta-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.notta-input-group { position: relative; }
.notta-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.notta-input-group .form-control { padding-left: 40px; }

.notta-login-card .form-control {
    padding-top: 11px;
    padding-bottom: 11px;
}

.notta-login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}
.notta-login-footer-primary { margin-top: 24px; }
.notta-login-footer strong { color: var(--ink); }

/* Botao que se comporta como um link de texto - usado quando a acao precisa
   ser um <form>/POST (ex.: logout) mas visualmente deve ficar igual aos
   demais links do rodape do card de login. */
.notta-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    color: var(--rose-deep);
    text-decoration: none;
    cursor: pointer;
}
.notta-link-btn:hover { text-decoration: underline; }

/* Login no mobile: minimalista - some a capa/hero (headline, descricao,
   recursos) e fica so a marca + o formulario, centralizados. */
.notta-login-mobile-brand { display: none; }

@media (max-width: 991px) {
    .notta-login-split { flex-direction: column; }
    .notta-login-promo { display: none; }
    .notta-login-panel {
        flex: none;
        flex-direction: column;
        max-width: 100%;
        min-width: 0;
        min-height: 100vh;
        padding: 48px 24px;
        background:
            radial-gradient(460px 380px at 12% -5%, rgba(115,87,165,0.28), transparent 62%),
            radial-gradient(420px 360px at 100% 100%, rgba(183,165,216,0.38), transparent 58%),
            linear-gradient(165deg, #EDE7F7 0%, var(--ivory) 62%);
    }
    .notta-login-mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }
    /* Fundo claro aqui (ao contrario do painel promocional) - o logo tem o
       texto "Notta" em branco embutido na imagem, entao precisa de um chip
       escuro atras pra nao sumir. */
    .notta-login-mobile-brand .brand-mark {
        background: var(--rose-deep);
        border-radius: var(--radius-pill);
        padding: 0.35em 0.8em;
    }
    .notta-login-mobile-brand .brand-logo-full { height: 1.5rem; }
    .notta-login-mobile-brand .tagline {
        font-size: 1.5rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.2;
        color: var(--rose-deep-dark);
        margin: 12px 0 0;
    }
    .notta-login-mobile-brand .tagline span {
        color: var(--gold-dark);
        background: linear-gradient(90deg, var(--gold-dark), var(--rose-deep), var(--rose-deep-dark));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .notta-login-card {
        padding: 30px 24px;
        box-shadow: 0 16px 36px -18px rgba(115, 87, 165, 0.35);
    }
}

/* No desktop o menu lateral fica embaixo de uma topbar fixa no topo (marca +
   acoes como "Ver Planos"/Sair), em vez de sumir como no antigo layout so-
   sidebar. So o bottom-nav (que existe pra navegacao, ja coberta pelo menu
   lateral) continua exclusivo do mobile. Fica por ultimo no arquivo de
   proposito: precisa vencer as regras base de .notta-topbar/.notta-sidebar/
   .notta-container definidas mais acima. */
@media (min-width: 992px) {
    .notta-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 45;
        padding: 12px 28px;
    }
    .notta-sidebar { top: var(--topbar-height); }
    .notta-container { margin-top: var(--topbar-height); }
    .notta-bottom-nav { display: none; }
}

/* ---------- Migração visual: painel do professor ---------- */

.notta-app-teacher { background: #fff; }
.notta-app-teacher .notta-container { background: #fff; }

@media (min-width: 992px) {
    .notta-app-teacher .notta-topbar {
        height: 72px;
        padding: 0 38px;
        background: linear-gradient(105deg, var(--rose-deep-dark), var(--rose-deep) 64%, #8F78BD);
        box-shadow: 0 8px 25px -18px rgba(90, 68, 129, 0.8);
    }
    .notta-app-teacher .notta-topbar .brand .logo-chip .brand-mark { font-size: 1.45rem; }
    .notta-app-teacher .notta-sidebar {
        width: 222px;
        top: 72px;
        background: #fff;
        border-right: 1px solid rgba(115, 87, 165, 0.14);
        overflow: visible;
    }
    .notta-app-teacher .notta-sidebar-title {
        display: block;
        margin: 25px 25px 14px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(115, 87, 165, 0.14);
        color: var(--muted);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .notta-app-teacher .notta-sidebar .sidebar-nav { padding: 0 16px; }
    .notta-app-teacher .notta-sidebar .sidebar-nav a {
        color: #666A74;
        font-size: 0.82rem;
        font-weight: 600;
        padding: 11px 13px;
        margin-bottom: 5px;
        border-radius: 9px;
    }
    .notta-app-teacher .notta-sidebar .sidebar-nav a .icon { color: var(--rose-deep); }
    .notta-app-teacher .notta-sidebar .sidebar-nav a:hover { color: var(--rose-deep); background: var(--rose-deep-tint); }
    .notta-app-teacher .notta-sidebar .sidebar-nav a.active { color: var(--rose-deep); background: var(--rose-deep-tint); box-shadow: inset 3px 0 0 var(--gold); }
    .notta-app-teacher .notta-sidebar .sidebar-nav a.active .icon { color: var(--rose-deep); }
    .notta-app-teacher .notta-sidebar-toggle {
        top: 14px;
        right: -14px;
        width: 28px;
        height: 28px;
        border-color: rgba(115, 87, 165, 0.15);
        color: var(--rose-deep);
        border-radius: 50%;
    }
    .notta-app-teacher .notta-sidebar .sidebar-footer { border-top-color: rgba(115, 87, 165, 0.14); padding: 16px; }
    .notta-app-teacher .notta-sidebar .sidebar-user .avatar-mini { background: var(--rose-deep-tint); color: var(--rose-deep-dark); }
    .notta-app-teacher .notta-sidebar .sidebar-user .name { color: var(--ink); }
    .notta-app-teacher .notta-sidebar .sidebar-user .role { color: var(--muted); }
    .notta-app-teacher .notta-sidebar .btn-sidebar-logout { background: #fff; color: var(--muted); border-color: rgba(115, 87, 165, 0.16); }
    .notta-app-teacher .notta-sidebar .btn-sidebar-logout:hover { background: var(--rose-deep-tint); color: var(--rose-deep); }
    .notta-app-teacher .notta-container { margin-left: 222px; width: calc(100% - 222px); margin-top: 72px; padding: 42px 46px 56px; }
    html.sidebar-collapsed .notta-app-teacher .notta-sidebar { width: 76px; }
    html.sidebar-collapsed .notta-app-teacher .notta-sidebar-title { display: none; }
    html.sidebar-collapsed .notta-app-teacher .notta-sidebar .sidebar-nav { padding: 25px 12px 0; }
    html.sidebar-collapsed .notta-app-teacher .notta-sidebar .sidebar-nav a { justify-content: center; }
    html.sidebar-collapsed .notta-app-teacher .notta-container { margin-left: 76px; width: calc(100% - 76px); }
}

.teacher-dashboard { max-width: 1260px; margin: 0 auto; }
.teacher-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.teacher-dashboard-heading h1 { margin: 0 0 5px; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.05em; }
.teacher-dashboard-heading h1 span { color: var(--gold); }
.teacher-dashboard-heading p { margin: 0; color: var(--muted); font-size: 0.84rem; text-transform: capitalize; }
.teacher-dashboard-secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 8px 14px; border: 1px solid rgba(115, 87, 165, 0.15); border-radius: 8px; color: var(--ink); background: #fff; font-size: 0.76rem; font-weight: 700; }
.teacher-dashboard-secondary-action:hover { color: var(--rose-deep); background: var(--rose-deep-tint); }
.teacher-dashboard-overview { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; border: 1px solid rgba(115, 87, 165, 0.14); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 32px -28px rgba(90, 68, 129, 0.65); }
.teacher-dashboard-metric { position: relative; padding: 20px 24px; overflow: hidden; background: #fff; }
.teacher-dashboard-metric + .teacher-dashboard-metric { border-left: 1px solid rgba(115, 87, 165, 0.14); }
.teacher-dashboard-metric::after { content: ""; position: absolute; right: -32px; bottom: -38px; width: 70px; height: 70px; border-radius: 50%; background: var(--rose-deep-tint); }
.teacher-dashboard-metric:nth-child(2)::after { background: var(--gold-tint); }
.teacher-dashboard-metric > div { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.75rem; }
.teacher-dashboard-metric > div i { color: var(--rose-deep); }
.teacher-dashboard-metric strong { display: block; margin: 7px 0 2px; color: var(--rose-deep-dark); font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.04em; }
.teacher-dashboard-metric small { position: relative; z-index: 1; color: var(--muted); font-size: 0.7rem; }.teacher-dashboard-metric small.is-success { color: var(--success); }
.teacher-dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 24px; align-items: start; }.teacher-dashboard-main-column, .teacher-dashboard-side-column { display: grid; gap: 24px; }
.teacher-dashboard-panel { overflow: hidden; border: 1px solid rgba(115, 87, 165, 0.14); border-radius: 14px; background: #fff; }.teacher-dashboard-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 17px; background: linear-gradient(90deg, rgba(183, 165, 216, 0.15), transparent 70%); }.teacher-dashboard-panel-heading h2 { margin: 0; color: var(--rose-deep-dark); font-size: 1rem; }.teacher-dashboard-panel-heading h2 span { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 5px; color: var(--muted); background: var(--rose-deep-tint); font-size: 0.66rem; vertical-align: middle; }.teacher-dashboard-panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 0.72rem; }.teacher-dashboard-panel-heading > a, .teacher-dashboard-panel-footer a, .teacher-dashboard-more { color: var(--rose-deep); font-size: 0.72rem; font-weight: 700; }.teacher-dashboard-date-chip { padding: 4px 8px; color: var(--rose-deep-dark); background: var(--rose-deep-tint); border-radius: 5px; font-size: 0.65rem; font-weight: 700; text-transform: capitalize; }
.teacher-dashboard-lesson { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; min-height: 80px; padding: 15px 24px; border-top: 1px solid rgba(115, 87, 165, 0.1); }.teacher-dashboard-time { font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }.teacher-dashboard-person { display: flex; align-items: center; gap: 11px; }.teacher-dashboard-person > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--rose-deep-dark); background: var(--rose-deep-tint); font-size: 0.66rem; font-weight: 800; }.teacher-dashboard-person strong { display: block; font-size: 0.79rem; }.teacher-dashboard-person small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.67rem; }.teacher-dashboard-open-action { padding: 8px 11px; color: #fff; background: var(--rose-deep); border-radius: 7px; font-size: 0.69rem; font-weight: 800; }.teacher-dashboard-open-action:hover { color: #fff; background: var(--rose-deep-dark); }.teacher-dashboard-status { padding: 4px 8px; border-radius: 5px; font-size: 0.65rem; font-weight: 700; }.teacher-dashboard-status.is-completed { color: var(--success); background: var(--success-tint); }.teacher-dashboard-status.is-completed i { font-size: 0.36rem; vertical-align: middle; }.teacher-dashboard-status.is-absent, .teacher-dashboard-status.is-cancelled { color: var(--danger); background: var(--danger-tint); }.teacher-dashboard-panel-footer { display: flex; align-items: center; gap: 7px; padding: 13px 24px; border-top: 1px solid rgba(115, 87, 165, 0.14); color: var(--muted); font-size: 0.68rem; }.teacher-dashboard-empty { padding: 30px 24px; color: var(--muted); font-size: 0.8rem; }.teacher-dashboard-scroll { max-height: 480px; overflow-y: auto; }
.teacher-dashboard-upcoming { display: flex; align-items: center; gap: 13px; padding: 14px 24px; border-top: 1px solid rgba(115, 87, 165, 0.1); }.teacher-dashboard-upcoming > div { flex: 0 0 56px; color: var(--rose-deep-dark); font-size: 0.75rem; }.teacher-dashboard-upcoming p { margin: 0; }.teacher-dashboard-upcoming p strong, .teacher-dashboard-upcoming p span { display: block; }.teacher-dashboard-upcoming p strong { font-size: 0.77rem; }.teacher-dashboard-upcoming p span { margin-top: 2px; color: var(--muted); font-size: 0.67rem; }.teacher-dashboard-more { display: block; padding: 14px 24px; border-top: 1px solid rgba(115, 87, 165, 0.1); }
.teacher-dashboard-finance-body { padding: 0 24px 24px; }.teacher-dashboard-finance-body > p { margin: 0 0 6px; color: var(--muted); font-size: 0.7rem; }.teacher-dashboard-finance-body > strong { display: block; color: var(--rose-deep-dark); font-size: 1.7rem; letter-spacing: -0.04em; }.teacher-dashboard-finance-body > small { color: var(--muted); font-size: 0.68rem; }.teacher-dashboard-progress { height: 5px; margin: 17px 0; border-radius: 99px; overflow: hidden; background: var(--rose-deep-tint); }.teacher-dashboard-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--rose-deep)); }.teacher-dashboard-finance dl { margin: 0; }.teacher-dashboard-finance dl div { display: flex; justify-content: space-between; margin: 12px 0; font-size: 0.73rem; }.teacher-dashboard-finance dt { color: var(--muted); font-weight: 500; }.teacher-dashboard-finance dd { margin: 0; font-weight: 800; }.teacher-dashboard-finance dd.is-success { color: var(--success); }.teacher-dashboard-finance .teacher-dashboard-secondary-action { width: 100%; margin-top: 7px; }.teacher-dashboard-overdue-list { padding: 0 24px 8px; }.teacher-dashboard-overdue-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(115, 87, 165, 0.1); }.teacher-dashboard-overdue-list p { margin: 0; }.teacher-dashboard-overdue-list p strong, .teacher-dashboard-overdue-list p span { display: block; }.teacher-dashboard-overdue-list p strong { font-size: 0.75rem; }.teacher-dashboard-overdue-list p span { margin-top: 2px; color: var(--muted); font-size: 0.66rem; }.teacher-dashboard-overdue-list > div > span { padding: 4px 7px; color: var(--gold-dark); background: var(--gold-tint); border-radius: 5px; font-size: 0.62rem; font-weight: 700; white-space: nowrap; }
.teacher-dashboard-journey { margin-top: 24px; padding: 18px 24px; border: 1px solid rgba(115, 87, 165, 0.2); border-radius: 14px; background: linear-gradient(100deg, rgba(183, 165, 216, 0.22), #fff 60%); }.teacher-dashboard-journey summary { display: flex; align-items: center; gap: 13px; cursor: pointer; list-style: none; }.teacher-dashboard-journey summary::-webkit-details-marker { display: none; }.teacher-dashboard-journey summary > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: #fff; background: var(--rose-deep); }.teacher-dashboard-journey summary strong { display: block; font-size: 0.77rem; }.teacher-dashboard-journey summary p { margin: 2px 0 0; color: var(--muted); font-size: 0.68rem; }.teacher-dashboard-journey summary em { margin-left: auto; color: var(--muted); font-size: 0.7rem; font-style: normal; }.teacher-dashboard-journey summary > i { color: var(--muted); font-size: 0.75rem; }.teacher-dashboard-journey[open] summary > i { transform: rotate(180deg); }.teacher-dashboard-journey > div { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(115, 87, 165, 0.14); }.teacher-dashboard-journey ul { margin: 0 0 13px; padding-left: 18px; color: var(--muted); font-size: 0.72rem; line-height: 1.9; }.teacher-dashboard-journey li.is-done { color: var(--success); text-decoration: line-through; }

@media (max-width: 991px) { .teacher-dashboard-heading { align-items: flex-start; }.teacher-dashboard-layout { grid-template-columns: 1fr; }.teacher-dashboard-side-column { grid-template-columns: 1fr 1fr; }.teacher-dashboard-journey { margin-bottom: 20px; } }
@media (max-width: 620px) { .teacher-dashboard-heading { flex-wrap: wrap; margin-bottom: 22px; }.teacher-dashboard-heading h1 { font-size: 1.65rem; }.teacher-dashboard-overview { grid-template-columns: 1fr 1fr; }.teacher-dashboard-metric { padding: 16px; }.teacher-dashboard-metric:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(115, 87, 165, 0.14); }.teacher-dashboard-metric:nth-child(3) { border-left: 0; }.teacher-dashboard-layout, .teacher-dashboard-main-column, .teacher-dashboard-side-column { gap: 18px; }.teacher-dashboard-side-column { grid-template-columns: 1fr; }.teacher-dashboard-panel-heading, .teacher-dashboard-lesson, .teacher-dashboard-upcoming { padding-left: 16px; padding-right: 16px; }.teacher-dashboard-finance-body, .teacher-dashboard-overdue-list { padding-left: 16px; padding-right: 16px; }.teacher-dashboard-panel-footer { padding-left: 16px; padding-right: 16px; }.teacher-dashboard-person > span { display: none; }.teacher-dashboard-lesson { grid-template-columns: 43px 1fr auto; gap: 8px; }.teacher-dashboard-open-action { padding: 7px 9px; }.teacher-dashboard-open-action i { display: none; }.teacher-dashboard-journey { padding: 16px; }.teacher-dashboard-journey summary em { display: none; } }

/* ---------- Sistema visual compartilhado ---------- */

.notta-app { background: #fff; }
.notta-app .notta-container { background: #fff; }
.notta-desktop-back { display: none; }
.notta-app .notta-container h1.h4,
.notta-app .notta-container h1.h5 {
    margin: 0 0 22px !important;
    color: var(--ink);
    font-size: 1.65rem !important;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.notta-app .notta-container h2 { color: var(--rose-deep-dark); font-weight: 800; }
.notta-app .notta-container .notta-section-title { color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; }
.notta-app .notta-card {
    background: #fff;
    border-color: rgba(115, 87, 165, 0.14);
    border-radius: 14px;
    box-shadow: 0 10px 25px -25px rgba(90, 68, 129, 0.65);
}
.notta-app .notta-card.is-alert { border-color: rgba(181, 83, 60, 0.25); }
.notta-app .notta-card:not(.is-alert)::before { opacity: 0; }
.notta-app .notta-stat-chip { border-color: rgba(115, 87, 165, 0.14); border-radius: 14px; box-shadow: none; }
.notta-app .notta-stat-chip::before { height: 0; }
.notta-app .notta-stat-chip .n { color: var(--rose-deep-dark); }
.notta-app .notta-stat-chip .ic { background: var(--rose-deep-tint); color: var(--rose-deep); }
.notta-app .btn { border-radius: 8px; font-weight: 700; }
.notta-app .btn-notta-outline { background: #fff; border-color: rgba(115, 87, 165, 0.18); color: var(--rose-deep); }
.notta-app .btn-notta-outline:hover { background: var(--rose-deep-tint); color: var(--rose-deep-dark); }
.notta-app .btn-notta-primary { background: var(--rose-deep); border-color: var(--rose-deep); }
.notta-app .btn-notta-primary:hover { background: var(--rose-deep-dark); border-color: var(--rose-deep-dark); }
.notta-app .form-control, .notta-app .form-select { border-color: rgba(115, 87, 165, 0.18); border-radius: 8px; box-shadow: none; }
.notta-app .form-control:focus, .notta-app .form-select:focus { border-color: var(--rose-deep); box-shadow: 0 0 0 3px var(--rose-deep-tint); }
.notta-app .notta-lesson-row { border-color: rgba(115, 87, 165, 0.1); }
.notta-app .notta-tabs { border-bottom-color: rgba(115, 87, 165, 0.14); }
.notta-app .notta-tabs button { color: var(--muted); font-weight: 700; }
.notta-app .notta-tabs button.active { color: var(--rose-deep); border-bottom-color: var(--rose-deep); }

@media (min-width: 992px) {
    .notta-app-teacher .notta-topbar, .notta-app-student .notta-topbar {
        height: 72px;
        padding: 0 38px;
        background: linear-gradient(105deg, var(--rose-deep-dark), var(--rose-deep) 64%, #8F78BD);
        box-shadow: 0 8px 25px -18px rgba(90, 68, 129, 0.8);
    }
    .notta-app-teacher .notta-sidebar, .notta-app-student .notta-sidebar {
        top: 72px;
        width: 222px;
        background: #fff;
        border-right: 1px solid rgba(115, 87, 165, 0.14);
    }
    .notta-app-teacher .notta-sidebar-title, .notta-app-student .notta-sidebar-title {
        display: block;
        margin: 25px 25px 14px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(115, 87, 165, 0.14);
        color: var(--muted);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .notta-app-teacher .notta-sidebar .sidebar-nav, .notta-app-student .notta-sidebar .sidebar-nav { padding: 0 16px; }
    .notta-app-teacher .notta-sidebar .sidebar-nav a, .notta-app-student .notta-sidebar .sidebar-nav a { color: #666A74; font-size: 0.82rem; font-weight: 600; padding: 11px 13px; margin-bottom: 5px; border-radius: 9px; }
    .notta-app-teacher .notta-sidebar .sidebar-nav a .icon, .notta-app-student .notta-sidebar .sidebar-nav a .icon { color: var(--rose-deep); }
    .notta-app-teacher .notta-sidebar .sidebar-nav a:hover, .notta-app-student .notta-sidebar .sidebar-nav a:hover { color: var(--rose-deep); background: var(--rose-deep-tint); }
    .notta-app-teacher .notta-sidebar .sidebar-nav a.active, .notta-app-student .notta-sidebar .sidebar-nav a.active { color: var(--rose-deep); background: var(--rose-deep-tint); box-shadow: inset 3px 0 0 var(--gold); }
    .notta-app-teacher .notta-sidebar .sidebar-nav a.active .icon, .notta-app-student .notta-sidebar .sidebar-nav a.active .icon { color: var(--rose-deep); }
    .notta-app-teacher .notta-sidebar-toggle, .notta-app-student .notta-sidebar-toggle { top: 14px; right: -14px; width: 28px; height: 28px; border-color: rgba(115, 87, 165, 0.15); color: var(--rose-deep); border-radius: 50%; }
    .notta-app-teacher .notta-sidebar .sidebar-footer, .notta-app-student .notta-sidebar .sidebar-footer { border-top-color: rgba(115, 87, 165, 0.14); padding: 16px; }
    .notta-app-teacher .notta-sidebar .sidebar-user .avatar-mini, .notta-app-student .notta-sidebar .sidebar-user .avatar-mini { background: var(--rose-deep-tint); color: var(--rose-deep-dark); }
    .notta-app-teacher .notta-sidebar .sidebar-user .name, .notta-app-student .notta-sidebar .sidebar-user .name { color: var(--ink); }
    .notta-app-teacher .notta-sidebar .sidebar-user .role, .notta-app-student .notta-sidebar .sidebar-user .role { color: var(--muted); }
    .notta-app-teacher .notta-sidebar .btn-sidebar-logout, .notta-app-student .notta-sidebar .btn-sidebar-logout { background: #fff; color: var(--muted); border-color: rgba(115, 87, 165, 0.16); }
    .notta-app-teacher .notta-sidebar .btn-sidebar-logout:hover, .notta-app-student .notta-sidebar .btn-sidebar-logout:hover { background: var(--rose-deep-tint); color: var(--rose-deep); }
    .notta-app-teacher .notta-container, .notta-app-student .notta-container { margin-top: 72px; margin-left: 222px; width: calc(100% - 222px); padding: 42px 46px 56px; }
    html.sidebar-collapsed .notta-app-teacher .notta-sidebar, html.sidebar-collapsed .notta-app-student .notta-sidebar { width: 76px; }
    html.sidebar-collapsed .notta-app-teacher .notta-sidebar-title, html.sidebar-collapsed .notta-app-student .notta-sidebar-title { display: none; }
    html.sidebar-collapsed .notta-app-teacher .notta-sidebar .sidebar-nav, html.sidebar-collapsed .notta-app-student .notta-sidebar .sidebar-nav { padding: 25px 12px 0; }
    html.sidebar-collapsed .notta-app-teacher .notta-container, html.sidebar-collapsed .notta-app-student .notta-container { margin-left: 76px; width: calc(100% - 76px); }
    .notta-desktop-back { display: inline-flex; align-items: center; gap: 7px; margin: -6px 0 18px; padding: 0; border: 0; color: var(--rose-deep); background: transparent; font-size: 0.75rem; font-weight: 800; cursor: pointer; }
    .notta-desktop-back:hover { color: var(--rose-deep-dark); text-decoration: underline; }
}

@media (max-width: 991px) {
    .notta-sidebar-title { display: none; }
    .notta-app .notta-container { padding-top: 24px; }
}

/* ---------- Cabeçalhos e agenda ---------- */

html:has(.notta-app) { background: #fff; }
.notta-app .notta-container { min-height: calc(100vh - 72px); }
.teacher-dashboard { max-width: none; }
.notta-page-heading { margin: 0 0 22px; }
.notta-page-heading h1 { margin: 0; color: var(--ink); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; }
.notta-page-heading > div > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 0.82rem; }
.notta-page-eyebrow { margin: 0 0 4px; color: var(--rose-deep); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.notta-schedule-page-heading { display: flex; align-items: center; justify-content: space-between; }
.notta-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.notta-page-header-copy { min-width: 0; }
.notta-page-back { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--rose-deep); font-size: 0.74rem; font-weight: 800; text-decoration: none; }
.notta-page-back:hover { color: var(--rose-deep-dark); text-decoration: underline; }
.notta-page-header h1 { margin: 0; color: var(--ink); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.notta-page-description { margin: 5px 0 0; color: var(--muted); font-size: 0.82rem; }
.notta-page-header-action { flex: 0 0 auto; margin-bottom: 1px; }
.notta-page-status { margin: -12px 0 16px; }

/* Painéis reutilizáveis: seguem o mesmo desenho dos blocos do início e
   evitam que cada tela invente uma composição de card. */
.notta-panel {
    margin: 0 0 20px;
    overflow: hidden;
    border: 1px solid rgba(115, 87, 165, 0.14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px -27px rgba(90, 68, 129, 0.65);
}
.notta-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 24px 16px;
    border-bottom: 1px solid rgba(115, 87, 165, 0.10);
    background: linear-gradient(90deg, rgba(183, 165, 216, 0.18), transparent 70%);
}
.notta-panel-header h2 { margin: 0; color: var(--rose-deep-dark); font-size: 1rem; font-weight: 800; }
.notta-panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 0.73rem; }
.notta-panel-body { padding: 18px 24px 22px; }
.notta-panel-list { padding: 4px 24px; }
.notta-panel-inline-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.notta-finance-filter-fields { display: flex; align-items: flex-end; gap: 10px; }
.notta-finance-filter-fields > div { min-width: 150px; }
.notta-finance-summary .notta-overview-grid,
.notta-finance-projection .notta-overview-grid { margin: 0; border-bottom: 1px solid rgba(115, 87, 165, 0.10); }
.notta-finance-summary .notta-stat-chip,
.notta-finance-projection .notta-stat-chip { border: 0; border-radius: 0; box-shadow: none; }
.notta-finance-summary .notta-stat-chip + .notta-stat-chip,
.notta-finance-projection .notta-stat-chip + .notta-stat-chip { border-left: 1px solid rgba(115, 87, 165, 0.10); }
.notta-finance-progress { padding-top: 14px; padding-bottom: 18px; }
.notta-finance-alert { padding: 18px 24px; border-color: rgba(203, 163, 110, 0.55); background: linear-gradient(100deg, var(--gold-tint), #fff 75%); }
.notta-overdue-list { padding: 10px 24px 12px; }
.notta-overdue-list .notta-lesson-row:first-child { padding-top: 4px; }

/* Conta: organização em painéis, com dados curtos fáceis de escanear. */
.notta-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.notta-account-grid .notta-panel { margin: 0; }
.notta-account-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; color: var(--rose-deep-dark); background: var(--rose-deep-tint); font-size: 0.74rem; font-weight: 800; }
.notta-account-details { margin: 0; }
.notta-account-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid rgba(115, 87, 165, 0.10); }
.notta-account-details > div:first-child { padding-top: 0; }
.notta-account-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.notta-account-details dt { color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.notta-account-details dd { margin: 0; color: var(--ink); font-size: 0.82rem; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.notta-account-callout { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 13px; border-radius: 9px; background: var(--rose-deep-tint); }
.notta-account-callout strong, .notta-account-callout span { display: block; }.notta-account-callout strong { color: var(--rose-deep-dark); font-size: 0.75rem; }.notta-account-callout span { margin-top: 3px; color: var(--muted); font-size: 0.71rem; }
.notta-account-plan-badge, .notta-account-listing-status { padding: 4px 8px; border-radius: 5px; color: var(--muted); background: var(--rose-deep-tint); font-size: 0.66rem; font-weight: 800; white-space: nowrap; }
.notta-account-listing-status.is-active { color: var(--success); background: var(--success-tint); }
.notta-account-empty, .notta-account-note { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.notta-account-note { margin-top: 14px; }
.notta-account-checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 0.81rem; font-weight: 700; line-height: 1.45; cursor: pointer; }
.notta-account-checkbox input { margin-top: 3px; accent-color: var(--rose-deep); }
.notta-account-checkbox small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.74rem; font-weight: 400; }
.notta-account-logout { display: flex; justify-content: flex-end; margin-top: 22px; }.notta-account-logout .btn { color: var(--muted); }.notta-account-logout .btn:hover { color: var(--rose-deep); }
.notta-app .btn-disabled,
.notta-app .btn-disabled:hover { background: var(--rose-deep-tint); color: var(--rose-deep-dark); border-color: rgba(115, 87, 165, 0.18); }

@media (max-width: 767px) {
    .notta-panel { margin-bottom: 16px; }
    .notta-panel-header { padding: 16px; }
    .notta-panel-body { padding: 16px; }
    .notta-panel-list { padding: 4px 16px; }
    .notta-overdue-list { padding: 10px 16px 12px; }
    .notta-charge-list { padding: 4px 16px; }
    .notta-panel-inline-action { align-items: flex-start; flex-direction: column; padding: 16px; }
    .notta-finance-filter-fields { align-items: stretch; flex-direction: column; }
    .notta-finance-filter-fields > div { min-width: 0; }
    .notta-finance-summary .notta-stat-chip + .notta-stat-chip,
    .notta-finance-projection .notta-stat-chip + .notta-stat-chip { border-top: 1px solid rgba(115, 87, 165, 0.10); border-left: 0; }
    .notta-account-grid { grid-template-columns: 1fr; gap: 16px; }
    .notta-account-callout { align-items: flex-start; flex-direction: column; }
    .notta-account-details > div { gap: 12px; }
    .notta-account-logout { justify-content: stretch; margin-top: 18px; }.notta-account-logout .btn { width: 100%; }
}
.notta-calendar-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid rgba(115, 87, 165, 0.16); border-radius: 14px; background: linear-gradient(100deg, rgba(183, 165, 216, 0.24), rgba(255, 255, 255, 0.98) 62%); }
.notta-calendar-header .notta-view-toggle { grid-column: 1; background: rgba(115, 87, 165, 0.12); }
.notta-calendar-header .notta-view-toggle a { color: var(--rose-deep-dark); opacity: 0.72; }
.notta-calendar-header .notta-view-toggle a.active { color: var(--rose-deep); background: #fff; box-shadow: 0 4px 10px -8px rgba(90, 68, 129, 0.7); }
.notta-calendar-nav { grid-column: 2; display: grid; grid-template-columns: 112px minmax(260px, auto) 112px; align-items: center; gap: 12px; }
.notta-calendar-period { margin: 0; color: var(--rose-deep-dark); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.035em; text-align: center; white-space: nowrap; }
.notta-calendar-period-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 10px; border: 1px solid rgba(115, 87, 165, 0.22); border-radius: 8px; color: var(--rose-deep); background: #fff; font-size: 0.69rem; font-weight: 800; text-decoration: none; }
.notta-calendar-period-action:hover { color: #fff; background: var(--rose-deep); border-color: var(--rose-deep); }
.notta-calendar-period-action i { font-size: 0.65rem; }
.notta-month-grid { border-color: rgba(115, 87, 165, 0.16); border-radius: 14px; box-shadow: 0 12px 30px -26px rgba(90, 68, 129, 0.6); }
.notta-month-weekdays { background: linear-gradient(90deg, var(--rose-deep-dark), var(--rose-deep)); border-color: transparent; }
.notta-month-weekdays div { color: #fff; letter-spacing: 0.07em; }
.notta-month-day { min-height: 82px; border-color: rgba(115, 87, 165, 0.1); }.notta-month-day:hover { background: var(--rose-deep-tint); }.notta-month-day.is-outside { background: #faf9fc; }.notta-month-day.is-today { background: rgba(183, 165, 216, 0.28); }.notta-month-day.is-today .daynum { background: var(--rose-deep); }
.notta-month-lesson-chip.status-scheduled { background: rgba(115, 87, 165, 0.16); color: var(--rose-deep-dark); }.notta-month-lesson-chip.status-completed { background: var(--success-tint); }.notta-month-lesson-chip.status-cancelled, .notta-month-lesson-chip.status-absent { background: var(--danger-tint); }
.notta-week-grid { gap: 16px; }.notta-app .notta-week-grid > .notta-card { margin-bottom: 0; padding: 17px; background: linear-gradient(180deg, rgba(183, 165, 216, 0.24) 0, rgba(183, 165, 216, 0.24) 64px, #fff 64px); border-color: rgba(115, 87, 165, 0.15); box-shadow: 0 12px 30px -27px rgba(90, 68, 129, 0.65); }.notta-app .notta-week-grid > .notta-card.is-today { background: linear-gradient(180deg, rgba(115, 87, 165, 0.22) 0, rgba(115, 87, 165, 0.22) 64px, #fff 64px); border-color: rgba(115, 87, 165, 0.3); }.notta-app .notta-week-grid .notta-card h3 { color: var(--rose-deep-dark); }.notta-app .notta-week-grid .notta-lesson-row { border-color: rgba(115, 87, 165, 0.12); }.notta-app .notta-week-grid .notta-empty { color: var(--muted); }
.notta-app .notta-week-grid > .notta-card { height: 260px; display:flex; flex-direction:column; overflow:hidden; }
.notta-app .notta-week-grid > .notta-card,
.notta-app .notta-week-grid > .notta-card.is-today { background:#fff; }
.notta-app .notta-week-grid .notta-card h3 {
    flex:0 0 auto;
    min-height:64px;
    box-sizing:border-box;
    margin:-17px -17px 0 !important;
    padding:17px 17px 14px;
    background:rgba(183, 165, 216, 0.24);
}
.notta-app .notta-week-grid .notta-card.is-today h3 { background:rgba(115, 87, 165, 0.22); }
.notta-app .notta-week-grid .notta-empty { margin:0; padding:16px 4px; }
.notta-week-lessons { flex:1 1 auto; min-height:0; overflow-y:auto; padding:8px 4px 12px 0; margin-right:-4px; box-sizing:border-box; }
.notta-week-lessons::-webkit-scrollbar { width:6px; }
.notta-week-lessons::-webkit-scrollbar-thumb { background:rgba(115, 87, 165, 0.28); border-radius:99px; }

@media (min-width: 992px) {
    .notta-app-teacher .notta-container, .notta-app-student .notta-container { padding-left: clamp(32px, 4vw, 64px); padding-right: clamp(32px, 4vw, 64px); }
}
@media (max-width: 767px) {
    .notta-page-heading { margin-bottom: 18px; }.notta-page-heading h1 { font-size: 1.5rem; }.notta-page-heading > div > p:last-child { font-size: 0.77rem; }
    .notta-page-header { align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }.notta-page-header h1 { font-size: 1.5rem; }.notta-page-description { font-size: 0.77rem; }.notta-page-header-action { margin: -4px 0 0; }
    .notta-calendar-header { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }.notta-calendar-header .notta-view-toggle { align-self: center; }.notta-calendar-nav { width: 100%; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; }.notta-calendar-period { font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; }.notta-calendar-period-action { width: 40px; padding: 0; }.notta-calendar-period-action span { display: none; }
    .notta-month-grid { overflow-x: auto; }.notta-month-weekdays, .notta-month-week { min-width: 620px; }.notta-month-day { min-height: 92px; }
    .notta-app .notta-week-grid > .notta-card { height: auto; min-height: 220px; }.notta-week-lessons { max-height: 300px; }
}

/* ---------- Navegação previsível ---------- */

.notta-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.notta-topbar-navigation { display: flex; align-items: center; justify-self: start; min-width: 0; }
.notta-topbar-brand { justify-self: center; }
.notta-topbar-actions { justify-self: end; }
.notta-topbar-menu-toggle { display: none; }

/* Ações da conta usam o mesmo peso visual em qualquer tela. */
.notta-app .btn-topbar-upgrade {
    gap: 5px;
    padding: 6px 4px;
    color: rgba(255,255,255,0.86);
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    font-size: 0.73rem;
    font-weight: 700;
}
.notta-app .btn-topbar-upgrade:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
    filter: none;
}
.notta-app .notta-topbar .btn-logout {
    width: 32px;
    height: 32px;
    color: rgba(255,255,255,0.78);
    background: transparent;
    border-color: transparent;
}
.notta-app .notta-topbar .btn-logout:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

@media (min-width: 992px) {
    .notta-topbar-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        color: rgba(255,255,255,0.86);
        background: transparent;
        border: 1px solid rgba(255,255,255,0.22);
        border-radius: 8px;
        font: inherit;
        font-size: 0.73rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .notta-topbar-menu-toggle:hover {
        color: #fff;
        background: rgba(255,255,255,0.12);
    }
    .notta-topbar-menu-toggle i { font-size: 0.86rem; }

    /* Plano e saída são ações secundárias: deixam de competir com o conteúdo
       e continuam acessíveis no mesmo ponto em todas as telas. */
    .notta-app .btn-topbar-upgrade {
        gap: 5px;
        padding: 6px 4px;
        color: rgba(255,255,255,0.86);
        background: transparent;
        border: 0;
        border-radius: 6px;
        box-shadow: none;
        font-size: 0.73rem;
        font-weight: 700;
    }
    .notta-app .btn-topbar-upgrade:hover {
        color: #fff;
        background: rgba(255,255,255,0.12);
        filter: none;
    }
    .notta-app .notta-topbar .btn-logout {
        width: 32px;
        height: 32px;
        color: rgba(255,255,255,0.78);
        background: transparent;
        border-color: transparent;
    }
    .notta-app .notta-topbar .btn-logout:hover {
        color: #fff;
        background: rgba(255,255,255,0.12);
    }
}

@media (max-width: 991px) {
    .notta-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .notta-topbar-navigation { display: none; }
    .notta-topbar-brand {
        grid-column: 1;
        justify-self: start;
    }
    .notta-topbar-actions {
        grid-column: 2;
        justify-self: end;
    }
}
