/* ==========================================================
   PAINEL DO FALCÃO (painel/index.html)
   Mesmo visual do site e do Falcão Fight: preto, dourado, cantos cortados.
   Pensado primeiro para o celular (menu embaixo); no computador o menu vai para a esquerda.
   ========================================================== */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.b0a8ad37.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.cd759df8.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.4b52ddd4.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-700.2d797dd8.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url('../fonts/bigshouldersdisplay-700-900.698f9960.woff2') format('woff2'); }
@font-face { font-family: 'Syncopate'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/syncopate-700.8a462650.woff2') format('woff2'); }

:root {
    --ink: #0B0B0C;
    --bg: #0B0B0C;
    --panel: #121214;
    --panel-2: #19191C;
    --field: #1E1E22;
    --line: rgba(255,255,255,.12);
    --gold: #F3C221;
    --gold-hi: #FFD84D;
    --white: #FFFFFF;
    --text: #D3D4D8;
    --dim: #9A9CA3;
    --ok: #3ECF8E;
    --bad: #FF6B6B;
    --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
    --f-title: 'Syncopate', 'Arial Black', 'Segoe UI', sans-serif;
    --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    --cut-s: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    --ease: cubic-bezier(.22, .8, .24, 1);
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--gold); }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pn-i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pn-logo { font-family: var(--f-title); font-weight: 700; font-size: 1.05rem; line-height: 1.1; text-transform: uppercase; color: var(--white); }
.pn-logo b { color: var(--gold); }
.pn-help { font-size: .92rem; line-height: 1.45; color: var(--dim); }
.pn-boot { min-height: 100vh; display: grid; place-content: center; gap: 10px; text-align: center; }

/* ---------- Estrutura ---------- */
.pn-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); background: rgba(11,11,12,.94); border-bottom: 1px solid var(--line); }
.pn-mark { width: 56px; height: 34px; flex: none; color: var(--gold); }
.pn-top .pn-logo { flex: 1; font-size: .92rem; }
.pn-top .pn-logo small { display: block; margin-top: 2px; font-family: var(--f-body); font-weight: 600; font-size: .78rem; letter-spacing: .14em; color: var(--dim); }
.pn-shell > .pn-side { display: none; }
.pn-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.pn-bottom { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 0 env(safe-area-inset-bottom, 0px); background: rgba(14,14,16,.97); border-top: 1px solid var(--line); }
.pn-bottom a, .pn-bottom button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--dim); text-decoration: none; }
.pn-bottom .on { color: var(--gold); }
.pn-bottom .on .pn-i { stroke-width: 2.4; }

.pn-drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(0,0,0,.6); }
.pn-drawer-in { width: min(86vw, 340px); height: 100%; overflow-y: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--panel); box-shadow: -1px 0 0 var(--line); }
.pn-nav { display: grid; gap: 4px; }
.pn-nav a, .pn-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; font-weight: 600; color: var(--text); text-decoration: none; text-align: left; }
.pn-nav a:hover, .pn-nav button:hover { background: rgba(255,255,255,.05); }
.pn-nav .on { color: var(--ink); background: var(--gold); clip-path: var(--cut-s); }
.pn-nav hr { margin: 8px 0; border: 0; border-top: 1px solid var(--line); }

@media (min-width: 1000px) {
    .pn-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
    .pn-top { grid-column: 1 / -1; }
    .pn-menu-btn, .pn-bottom { display: none !important; }
    .pn-shell > .pn-side { display: grid; align-content: start; position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; padding: 18px 12px; border-right: 1px solid var(--line); }
    .pn-main { padding: 28px 32px 60px; }
}

/* ---------- Cabeçalho de cada tela ---------- */
.pn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.pn-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pn-h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1; text-transform: uppercase; color: var(--white); }
.pn-h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; color: var(--white); }
.pn-sub { margin-top: 6px; color: var(--dim); }
.pn-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Cartões ---------- */
.pn-card { position: relative; padding: 18px; background: linear-gradient(180deg, rgba(243,194,33,.07), rgba(243,194,33,0) 60%), var(--panel); box-shadow: inset 0 0 0 1px rgba(243,194,33,.28); clip-path: var(--cut); }
.pn-card + .pn-card, .pn-grid + .pn-card, .pn-card + .pn-grid, .pn-grid + .pn-grid, .pn-tabs + .pn-card { margin-top: 14px; }
.pn-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.pn-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .pn-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pn-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pn-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 10px; }
.pn-card .pn-kpis { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.pn-kpi { padding: 14px 14px 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--cut-s); }
.pn-kpi small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.pn-kpi b { display: block; margin-top: 4px; font-family: var(--f-display); font-weight: 900; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.85rem); line-height: 1.05; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-kpi span { display: block; margin-top: 4px; font-size: .82rem; color: var(--dim); }
.pn-kpi.gold b { color: var(--gold); }
.pn-kpi.ok b { color: var(--ok); }
.pn-kpi.bad b { color: var(--bad); }
.pn-bar { height: 6px; margin-top: 8px; background: rgba(255,255,255,.1); }
.pn-bar i { display: block; height: 100%; background: var(--gold); }

/* ---------- Listas ---------- */
.pn-list { display: grid; gap: 6px; }
.pn-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; }
a.pn-row:hover, button.pn-row:hover { box-shadow: inset 0 0 0 1px rgba(243,194,33,.6); }
button.pn-row { width: 100%; text-align: left; }
.pn-row-main { flex: 1; min-width: 0; }
.pn-row-main b { display: block; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.pn-row-main small { display: block; margin-top: 2px; font-size: .86rem; color: var(--dim); overflow-wrap: anywhere; }
.pn-row-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.pn-av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); background: var(--gold); clip-path: var(--cut-s); }
.pn-av.off { color: var(--text); background: #2c2c31; }
.pn-empty { padding: 18px 14px; text-align: center; color: var(--dim); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); }
.pn-money { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }

.pn-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 9px; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.pn-pill.ok { color: #08261a; background: var(--ok); }
.pn-pill.warn { color: var(--ink); background: var(--gold); }
.pn-pill.bad { color: #2b0a0a; background: var(--bad); }
.pn-pill.mute { color: var(--text); background: #2c2c31; }
.pn-tag { display: inline-block; padding: 1px 7px; font-size: .78rem; font-weight: 600; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(243,194,33,.5); }

/* ---------- Botões ---------- */
.pn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; letter-spacing: .05em; line-height: 1; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--gold); clip-path: var(--cut-s); transition: background-color .2s, color .2s; }
.pn-btn:hover { background: var(--gold-hi); }
.pn-btn:disabled { opacity: .55; cursor: default; }
.pn-btn.ghost { color: var(--white); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.pn-btn.ghost:hover { background: rgba(255,255,255,.14); }
.pn-btn.danger { color: #fff; background: #8a2d2d; }
.pn-btn.danger:hover { background: #a33636; }
.pn-btn.wa { color: #06210f; background: #25D366; }
.pn-btn.wa:hover { background: #3be07b; }
.pn-btn.small { min-height: 44px; padding: 8px 12px; font-size: .95rem; }
.pn-btn.block { width: 100%; }
.pn-ib { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--text); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }
.pn-ib:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.pn-ib.wa { color: #25D366; }
.pn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 2px; font-weight: 600; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Abas e filtros ---------- */
.pn-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pn-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; font-weight: 600; font-size: .95rem; color: var(--text); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.pn-chip[aria-pressed="true"], .pn-chip.on { color: var(--ink); background: var(--gold); box-shadow: none; }
.pn-chip small { font-size: .78rem; opacity: .8; }
.pn-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pn-search { flex: 1 1 220px; min-width: 0; }

/* ---------- Campos ---------- */
.pn-field { display: grid; gap: 6px; min-width: 0; }
.pn-field > span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pn-field > em { font-style: normal; font-size: .84rem; color: var(--dim); }
.pn-input, .pn-field input, .pn-field select, .pn-field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; font-size: 16px; color: var(--white); background: var(--field); border: 0; border-bottom: 2px solid rgba(243,194,33,.55); border-radius: 0; }
.pn-field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.pn-field input:focus, .pn-field select:focus, .pn-field textarea:focus, .pn-input:focus { outline: none; border-bottom-color: var(--gold); background: #24242a; }
.pn-field.err input, .pn-field.err select, .pn-field.err textarea { border-bottom-color: var(--bad); }
.pn-field .pn-ferr { font-size: .86rem; color: var(--bad); }
.pn-field input[type="date"], .pn-field input[type="month"], .pn-field input[type="time"] { color-scheme: dark; }
.pn-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.pn-form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .pn-form { grid-template-columns: minmax(0, 1fr); } }
.pn-toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.pn-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pn-toggle i { position: relative; width: 48px; height: 28px; flex: none; background: #3a3a40; border-radius: 14px; transition: background-color .2s; }
.pn-toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.pn-toggle input:checked + i { background: var(--gold); }
.pn-toggle input:checked + i::after { transform: translateX(20px); }
.pn-toggle input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.pn-toggle b { font-weight: 600; color: var(--white); }
.pn-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; font-weight: 600; font-size: .95rem; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.pn-checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pn-checks label:has(input:checked) { color: var(--ink); background: var(--gold); box-shadow: none; }
.pn-checks label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pn-err { min-height: 1.2em; color: var(--bad); font-size: .92rem; }

/* ---------- Janela de formulário (por baixo no celular, no meio no computador) ---------- */
.pn-modal { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(0,0,0,.66); }
.pn-sheet { width: 100%; max-height: 94vh; overflow-y: auto; overscroll-behavior: contain; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--panel); box-shadow: inset 0 1px 0 rgba(243,194,33,.5); animation: pnUp .28s var(--ease); }
.pn-sheet-head { position: sticky; top: -18px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -18px -16px 14px; padding: 14px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.pn-sheet-foot { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 8px; margin: 18px -16px calc(-18px - env(safe-area-inset-bottom, 0px)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 1px solid var(--line); }
.pn-sheet-foot .pn-btn { flex: 1 1 auto; }
@keyframes pnUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
    .pn-modal { justify-content: center; align-items: center; padding: 24px; }
    .pn-sheet { width: min(100%, 640px); max-height: 90vh; padding: 22px 24px; clip-path: var(--cut); box-shadow: inset 0 0 0 1px rgba(243,194,33,.5); }
    .pn-sheet-head { top: -22px; margin: -22px -24px 16px; padding: 16px 24px; }
    .pn-sheet-foot { bottom: -22px; margin: 18px -24px -22px; padding: 14px 24px; }
}

/* ---------- Entrada ---------- */
.pn-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: radial-gradient(80% 60% at 50% 0%, rgba(243,194,33,.12), transparent 70%), var(--bg); }
.pn-auth .pn-card { width: min(100%, 420px); display: grid; gap: 14px; padding: 26px 22px 22px; }
.pn-auth .pn-mark { width: 120px; height: 73px; margin: 0 auto; }
.pn-auth .pn-logo { text-align: center; font-size: 1.5rem; }
.pn-auth h1 { text-align: center; }
.pn-field > span.pn-pass { position: relative; display: block; font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.pn-pass input { padding-right: 52px; }
.pn-pass button { position: absolute; right: 2px; bottom: 2px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--dim); }

/* ---------- Presença ---------- */
.pn-daybar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pn-daybar .pn-input { flex: 1; text-align: center; font-weight: 600; }
.pn-att { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-att button { min-height: 44px; padding: 8px 12px; font-weight: 600; font-size: .95rem; color: var(--text); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.pn-att button[aria-pressed="true"] { color: #08261a; background: var(--ok); box-shadow: none; }
.pn-att button.extra { box-shadow: inset 0 0 0 1px rgba(243,194,33,.6); }
.pn-count { font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--gold); }
.pn-saved { font-size: .84rem; color: var(--dim); }
.pn-table-wrap { overflow-x: auto; }
.pn-table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pn-table th, .pn-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.pn-table th { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.pn-table td:first-child, .pn-table th:first-child { text-align: left; color: var(--white); }
.pn-table tfoot td { font-weight: 700; color: var(--gold); }

/* ---------- Gráfico de barras ---------- */
.pn-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 8px; height: 190px; }
.pn-bars div { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.pn-bars i { display: block; min-height: 2px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.pn-bars div.now i { background: var(--white); }
.pn-bars b { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-bars small { margin-top: 6px; font-size: .76rem; color: var(--dim); text-transform: capitalize; }

/* ---------- Detalhe do aluno ---------- */
.pn-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .pn-info { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pn-info div { padding: 10px 12px; background: var(--panel-2); }
.pn-info small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.pn-info b { display: block; margin-top: 2px; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.pn-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 760px) { .pn-months { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.pn-months span { display: grid; place-items: center; min-height: 44px; font-size: .76rem; font-weight: 700; text-transform: uppercase; background: #2c2c31; color: var(--text); }
.pn-months .ok { background: var(--ok); color: #08261a; }
.pn-months .bad { background: var(--bad); color: #2b0a0a; }
.pn-months .warn { background: var(--gold); color: var(--ink); }

/* ---------- Avisos do site ---------- */
.pn-notice-preview { padding: 12px 16px; font-weight: 600; color: var(--ink); background: var(--gold); }

/* ---------- Mensagem rápida ---------- */
.pn-toast { position: fixed; z-index: 120; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(92vw, 460px); padding: 13px 18px; font-weight: 600; color: var(--ink); background: var(--white); box-shadow: 0 16px 40px rgba(0,0,0,.5), inset 5px 0 0 var(--gold); }
.pn-toast.bad { box-shadow: 0 16px 40px rgba(0,0,0,.5), inset 5px 0 0 var(--bad); }
@media (min-width: 1000px) { .pn-toast { bottom: 28px; } }

/* ---------- Cobrança, Pix, link do aluno, agenda e fotos ---------- */
a.pn-row-main { color: inherit; text-decoration: none; }
.pn-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: 6px; padding: 0 7px; font-family: var(--f-body); font-size: .84rem; font-weight: 700; letter-spacing: 0; color: var(--ink); background: var(--gold); vertical-align: middle; }
.pn-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 14px 16px; color: var(--text); text-decoration: none; background: rgba(243,194,33,.09); box-shadow: inset 0 0 0 1px rgba(243,194,33,.5); clip-path: var(--cut-s); }
.pn-banner > .pn-i { width: 24px; height: 24px; flex: none; color: var(--gold); }
.pn-banner > span { flex: 1; min-width: 0; }
.pn-banner b { display: block; font-weight: 700; color: var(--white); }
.pn-banner small { display: block; margin-top: 2px; font-size: .86rem; color: var(--dim); }
.pn-banner.bad { background: rgba(255,107,107,.09); box-shadow: inset 0 0 0 1px rgba(255,107,107,.55); }
.pn-banner.bad > .pn-i:first-child { color: var(--bad); }
a.pn-banner:hover { box-shadow: inset 0 0 0 1px var(--gold); }
@media (max-width: 600px) {
    .pn-charge { flex-wrap: wrap; }
    .pn-charge .pn-row-main { flex-basis: 100%; }
    .pn-charge .pn-row-end { width: 100%; justify-content: flex-start; }
}
.pn-late { display: inline-block; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; background: var(--bad); vertical-align: middle; }
.pn-att button[aria-pressed="true"] .pn-late { box-shadow: 0 0 0 2px #08261a; }
.pn-late-legend { margin-top: 10px; }
.pn-late-legend .pn-late { margin: 0 8px 0 0; }
.pn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pn-pix { display: grid; gap: 14px; }
@media (min-width: 560px) { .pn-pix { grid-template-columns: auto minmax(0, 1fr); align-items: center; } .pn-pix > .pn-field { grid-column: 1 / -1; } }
.pn-qr { justify-self: center; width: min(248px, 100%); padding: 8px; background: #fff; }
.pn-qr svg { display: block; width: 100%; height: auto; }
.pn-pix-info { display: grid; gap: 6px; min-width: 0; }
.pn-pix-val { font-family: var(--f-display); font-weight: 900; font-size: 2.3rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.pn-code { font-family: ui-monospace, Consolas, monospace; font-size: .84rem !important; word-break: break-all; }
.pn-code-line { padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: .86rem; overflow-wrap: anywhere; color: var(--text); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.pn-date { width: 50px; flex: none; display: grid; place-items: center; gap: 2px; padding: 7px 0; text-align: center; background: rgba(243,194,33,.1); box-shadow: inset 0 0 0 1px rgba(243,194,33,.45); }
.pn-date b { font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; line-height: 1; color: var(--gold); }
.pn-date small { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.pn-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.pn-photos figure { display: grid; align-content: start; min-width: 0; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.pn-photos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pn-photos figure.off img { opacity: .35; filter: grayscale(1); }
.pn-photos figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; padding: 4px 4px 4px 10px; font-size: .84rem; color: var(--dim); }
.pn-photos figcaption span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-photos figcaption .pn-btn.small { padding: 8px 10px; font-size: .88rem; }
.pn-steps { display: grid; gap: 8px; padding-left: 22px; color: var(--text); line-height: 1.45; }

/* ---------- Link do aluno (aluno/index.html, js/aluno.js) ---------- */
.al-top { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.al-top .pn-logo small { display: block; margin-top: 2px; font-family: var(--f-body); font-weight: 600; font-size: .78rem; letter-spacing: .14em; color: var(--dim); }
.al-main { width: 100%; max-width: 640px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 14px; }
.al-main > .pn-card + .pn-card { margin-top: 0; }
.al-main .pn-sub { margin-top: -6px; }
.al-msg, .al-ok, .al-ref { display: flex; align-items: flex-start; gap: 14px; }
.al-ok > .pn-i, .al-ref > .pn-i { width: 34px; height: 34px; flex: none; color: var(--gold); }
.al-ok > .pn-i { color: var(--ok); }
.al-msg { display: block; }
.al-open { display: grid; gap: 6px; margin-top: 12px; }
.al-month { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.al-month input { width: 22px; height: 22px; flex: none; accent-color: var(--gold); }
.al-month span { flex: 1; min-width: 0; }
.al-month b { display: block; font-weight: 600; color: var(--white); }
.al-month small { display: block; font-size: .86rem; color: var(--dim); }
.al-month em { font-style: normal; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.al-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 0 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.al-total span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.al-total b { font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.al-months { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.al-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .84rem; color: var(--dim); }
.al-legend span { display: inline-flex; align-items: center; gap: 6px; }
.al-legend i { width: 12px; height: 12px; background: #2c2c31; }
.al-legend i.ok { background: var(--ok); }
.al-legend i.warn { background: var(--gold); }
.al-legend i.bad { background: var(--bad); }
.al-pix { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pn-btn.block { width: 100%; }
.al-talk { text-align: center; }
.al-foot { padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); text-align: center; font-size: .86rem; color: var(--dim); border-top: 1px solid var(--line); }
.al-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.al-page .pn-toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
