/* Skull Pro – identidade preto e branco; clima de site de academia (inspirado em allianceofficial.com) */
:root {
  --ink: #0b0b0c;
  --paper: #f4f4f2;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b6b70;
  --line: #e3e3df;
  --wa: #1faa59;
  --wa-dark: #178a47;
  --display: "Barlow Condensed", Impact, "Haettenschweiler", "Arial Narrow Bold", "Roboto Condensed", system-ui, sans-serif;
  --ok-bg: #e5f5ea; --ok-text: #14532d;
  --err-bg: #fdebeb; --err-text: #7f1d1d;
  --warn-bg: #fff4d6; --warn-text: #7a5200;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--text);
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: 1.9rem; margin-bottom: 1rem; }
h2 { font-size: 1.1rem; margin-bottom: .75rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.muted { color: var(--muted); font-size: .9rem; }

/* ---------- Botões ---------- */
.btn, button.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: #000; border-color: #000; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn.secondary:hover { background: var(--line); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: #e9e9e9; border-color: #e9e9e9; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn.big { padding: 14px 26px; font-size: 1.05rem; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
button.link.danger { color: #b4232a; }
form.inline { display: inline; margin: 0; }

/* ---------- Topo (portal e site) ---------- */
.topbar, .site-header {
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 10px 20px;
}
.topbar a, .site-header a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 42px; height: 42px; display: block; }
.topbar nav, .site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; font-weight: 600; font-size: .95rem; }
.topbar nav a:hover, .site-header nav a:hover { text-decoration: underline; }
.topbar button.link { color: #fff; }

/* ---------- Portal (área logada) ---------- */
.container { max-width: 980px; margin: 0 auto; padding: 22px 16px 56px; }
.guest { max-width: 440px; margin: 0 auto; padding: 32px 16px; }
.guest .brand-block { text-align: center; margin-bottom: 18px; }
.guest .brand-block img { width: 96px; height: 96px; }
.guest .brand-block div { font-family: var(--display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 1.4rem; margin-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.card > h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); margin-bottom: 16px; }
.stat { background: var(--ink); color: #fff; border-radius: 10px; padding: 14px 16px; min-width: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1.05; }
.stat span { color: #c9c9ce; font-size: .85rem; }
.stat.alert { background: #8f1b21; }
a.stat { display: block; text-decoration: none; }
a.stat:hover { background: #26262b; }
a.stat.alert:hover { background: #a62027; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.flash.ok { background: var(--ok-bg); color: var(--ok-text); }
.flash.erro { background: var(--err-bg); color: var(--err-text); }
.flash.aviso { background: var(--warn-bg); color: var(--warn-text); }

/* ---------- Formulários ---------- */
.stack > * + * { margin-top: 12px; }
label { display: block; font-weight: 600; font-size: .92rem; }
label input, label select, label textarea { margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=month],
input[type=tel], input[type=time], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 9px 10px; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #cfcfca; border-radius: 6px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; }
input[type=checkbox] { margin-right: 6px; width: 18px; height: 18px; vertical-align: -3px; }
.check { font-weight: 400; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.row > * { flex: 1 1 140px; }
.row > .auto { flex: 0 0 auto; }

/* ---------- Tabelas e selos ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--line); font-size: .78rem; margin-right: 4px; }
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.st-pago { background: var(--ok-bg); color: var(--ok-text); }
.st-pendente { background: var(--warn-bg); color: var(--warn-text); }
.st-atrasado { background: var(--err-bg); color: var(--err-text); }
progress { width: 100%; height: 10px; accent-color: var(--ink); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 10px 0; }
.kv div { background: var(--paper); border-radius: 8px; padding: 10px 12px; }
.kv strong { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.kv span { color: var(--muted); font-size: .82rem; }
.feedback { border-left: 4px solid var(--ink); background: var(--paper); border-radius: 0 8px 8px 0; padding: 10px 14px; margin-bottom: 10px; }
.feedback p { margin: 4px 0 0; white-space: pre-line; }
.month-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.month-nav strong { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em; }
.chamada-list label { display: flex; align-items: center; gap: 8px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-weight: 500; }


/* ---------- Painel: saúde da academia ---------- */
.saude { background: radial-gradient(ellipse at 100% 0%, #1b2338 0%, #0a0f1c 55%, #070a12 100%); color: #fff; border: 1px solid #1d2a47; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.saude-main { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-bottom: 18px; }
.saude-ring { position: relative; width: 150px; height: 150px; flex: none; }
.saude-nota { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.saude-nota strong { font-family: var(--display); font-size: 3.6rem; line-height: 1; }
.saude-nota span { font-size: .7rem; letter-spacing: .18em; color: #e3c98f; margin-top: 2px; }
.saude-info { flex: 1 1 320px; }
.saude .eyebrow { color: #7da5e8; margin-bottom: 6px; }
.saude h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 6px; }
.saude-sub { color: #9aa4b8; font-size: .88rem; margin: 0 0 14px; max-width: 46em; }
.saude-inds { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.saude-ind { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.saude-ind strong { position: absolute; top: 15px; font-family: var(--display); font-size: 1.3rem; }
.saude-ind span { margin-top: 4px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #9aa4b8; }
.ring-bg { stroke: #1e2740; }
.ring-bom .ring-fg { stroke: #5fcf80; }
.ring-med .ring-fg { stroke: #e8c46f; }
.ring-ruim .ring-fg { stroke: #ee6a6a; }
.ring-nd .ring-fg { stroke: #3a4560; }
.saude-tag { display: inline-block; border: 1px solid #284a8a; color: #7da5e8; border-radius: 999px; padding: 5px 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 12px; }
.acao { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: #0d1322; border: 1px solid #1a2238; border-left: 4px solid #3a4560; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.acao-erro { border-left-color: #ee6a6a; }
.acao-aviso { border-left-color: #e8c46f; }
.acao-ok { border-left-color: #5fcf80; }
.acao-txt { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; }
.acao-txt strong { font-weight: 600; }
.acao-txt span { color: #9aa4b8; font-size: .85rem; }
.acao-nomes a { color: #cdd6ea; text-decoration: underline; }
.acao-btn { border: 1px solid; border-radius: 8px; padding: 8px 14px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; font-weight: 700; white-space: nowrap; }
.acao-erro .acao-btn { color: #ee6a6a; border-color: #7a2d33; }
.acao-aviso .acao-btn { color: #e8c46f; border-color: #6d5a2c; }
.acao-ok .acao-btn { color: #5fcf80; border-color: #2b6a40; }
.acao-btn:hover { background: rgba(255,255,255,.08); }

.tipo { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--line); }
.tipo-mensalista { background: #e7ecfb; color: #1c3a8a; }
.tipo-wellhub { background: #fff0e0; color: #8a4b00; }
.tipo-outro { background: var(--line); color: #444; }
a.kv-link { display: block; background: var(--paper); border-radius: 8px; padding: 10px 12px; text-decoration: none; }
a.kv-link:hover { background: #ececea; }
a.kv-link strong { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
a.kv-link span { color: var(--muted); font-size: .82rem; }

/* ---------- Faixa de jiu-jítsu ---------- */
.belt { display: inline-flex; width: 150px; height: 20px; border-radius: 3px; overflow: hidden; border: 1px solid rgba(0,0,0,.35); vertical-align: middle; }
.belt-body { flex: 1; }
.belt-tip { width: 40px; background: #111; display: flex; justify-content: center; align-items: stretch; gap: 3px; padding: 0 5px; }
.belt-tip i { width: 4px; background: #fff; }
.belt-branca .belt-body { background: #f7f7f7; }
.belt-cinza .belt-body { background: #9b9ba0; }
.belt-amarela .belt-body { background: #f2c744; }
.belt-laranja .belt-body { background: #e8812b; }
.belt-verde .belt-body { background: #2f9e44; }
.belt-azul .belt-body { background: #1d5fd1; }
.belt-roxa .belt-body { background: #6b3fa0; }
.belt-marrom .belt-body { background: #6b4423; }
.belt-preta .belt-body { background: #151515; }
.belt-preta .belt-tip { background: #b4232a; }
/* Faixas infantis combinadas: listra branca ou preta no meio (IBJJF). */
.belt-cinza-branca .belt-body { background: linear-gradient(180deg, #9b9ba0 0 34%, #f7f7f7 34% 66%, #9b9ba0 66%); }
.belt-cinza-preta .belt-body { background: linear-gradient(180deg, #9b9ba0 0 34%, #151515 34% 66%, #9b9ba0 66%); }
.belt-amarela-branca .belt-body { background: linear-gradient(180deg, #f2c744 0 34%, #f7f7f7 34% 66%, #f2c744 66%); }
.belt-amarela-preta .belt-body { background: linear-gradient(180deg, #f2c744 0 34%, #151515 34% 66%, #f2c744 66%); }
.belt-laranja-branca .belt-body { background: linear-gradient(180deg, #e8812b 0 34%, #f7f7f7 34% 66%, #e8812b 66%); }
.belt-laranja-preta .belt-body { background: linear-gradient(180deg, #e8812b 0 34%, #151515 34% 66%, #e8812b 66%); }
.belt-verde-branca .belt-body { background: linear-gradient(180deg, #2f9e44 0 34%, #f7f7f7 34% 66%, #2f9e44 66%); }
.belt-verde-preta .belt-body { background: linear-gradient(180deg, #2f9e44 0 34%, #151515 34% 66%, #2f9e44 66%); }
.belt-big { width: 220px; height: 30px; }

/* ---------- Site público ---------- */
.hero { color: #fff; position: relative; overflow: hidden; }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { display: block; width: min(100%, 400px); height: auto; filter: drop-shadow(0 12px 40px rgba(255,255,255,.08)); }
.eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: #bdbdc2; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: .98; margin-bottom: 18px; }
.hero p.lead { color: #d8d8dc; max-width: 34em; margin: 0 0 22px; font-size: 1.05rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.info-strip small { display: block; text-transform: uppercase; letter-spacing: .12em; color: #9d9da3; font-size: .72rem; margin-bottom: 2px; }
.section { max-width: 1280px; margin: 0 auto; padding: 56px 24px; }
.section h2.title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .01em; margin-bottom: 8px; }
.section .sub { color: var(--muted); margin: 0 0 28px; max-width: 44em; }
.days { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.day { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 8px; padding: 14px 16px; }
.day h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; margin-bottom: 8px; }
.day .slot { padding: 6px 0; border-top: 1px solid var(--line); }
.day .slot:first-of-type { border-top: 0; }
.day .slot strong { display: block; }
.day .slot span { color: var(--muted); font-size: .88rem; }
.map { min-height: 340px; background: #ddd; border-radius: 10px; overflow: hidden; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { max-width: 1280px; margin: 0 auto; padding: 48px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.cta-band img { width: 88px; height: 88px; }
.cta-band .copy { flex: 1 1 320px; display: flex; align-items: center; gap: 20px; }
.cta-band h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 4px; }
.cta-band p { margin: 0; color: #cfcfd4; }
.central { background: radial-gradient(ellipse at 15% 0%, #2a2a30 0%, #0b0b0c 60%); color: #fff; }
.central .wrap { max-width: 1280px; margin: 0 auto; padding: 64px 24px; }
.central .title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0 0 8px; }
.central .sub { color: #cfcfd4; max-width: 40em; margin: 0 0 28px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.c-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-top: 4px solid #fff; border-radius: 10px; padding: 20px; }
.c-item h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.4rem; margin: 6px 0 6px; }
.c-item p { margin: 0; color: #cfcfd4; }
.c-extra { color: #a9a9af; font-size: .92rem; margin-bottom: 24px; }
.central .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer { background: #000; color: #a9a9af; font-size: .88rem; }
.site-footer .wrap { max-width: 1280px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; background: var(--wa); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.wa-float:hover { background: var(--wa-dark); }


/* ---------- Central do aluno ---------- */
.a-hero { background: radial-gradient(ellipse at 85% 0%, #2a2a30 0%, #0b0b0c 60%); color: #fff; border-radius: 14px; padding: 24px; margin-bottom: 14px; }
.a-hero h1 { color: #fff; margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3rem); }
.a-hero .eyebrow { margin-bottom: 6px; }
.a-lead { color: #d0d0d5; max-width: 34em; margin: 0; }
.a-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.a-belt { display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 16px 18px; min-width: 250px; }
.a-belt strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; }
.a-belt span:not(.belt):not(.belt-body):not(.belt-tip) { color: #c4c4ca; font-size: .88rem; }
.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.a-stats div { background: rgba(255,255,255,.07); border-radius: 10px; padding: 12px 14px; }
.a-stats strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1.05; }
.a-stats span { color: #c4c4ca; font-size: .8rem; }
.a-hero progress { margin-top: 14px; accent-color: #fff; }
.a-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.a-nav a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--text); }
.a-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.a-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.a-grid > .a-card { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.a-card { scroll-margin-top: 80px; }
.a-card > h2 { margin: 0; }
.a-card > p { margin: 0; }
.a-card > p:last-child { margin-top: auto; padding-top: 6px; }
.a-card .a-big { margin: 0; }
.a-card .a-quote { margin: 0; }
.a-empty { background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: 18px; color: var(--muted); text-align: center; }
.a-quote { margin: 0 0 10px; padding: 12px 14px; background: var(--paper); border-left: 4px solid var(--line); border-radius: 0 8px 8px 0; }
.a-quote.latest { border-left-color: var(--ink); background: #ececea; }
.a-quote p { margin: 0 0 6px; white-space: pre-line; }
.a-quote footer { color: var(--muted); font-size: .8rem; }
.a-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.a-timeline li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0 10px 18px; }
.a-timeline li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; }
.a-timeline div { display: flex; flex-direction: column; }
.a-timeline em { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .a-grid { grid-template-columns: 1fr; } .a-belt { min-width: 0; width: 100%; } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 20px 40px; gap: 24px; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 160px; }
  .section { padding: 40px 16px; }
}
@media (max-width: 600px) {
  table.table { font-size: .85rem; }
  .table th, .table td { padding: 7px 5px; }
  .table th { font-size: .68rem; letter-spacing: .02em; }
  .card { padding: 14px; }
  .belt-big { width: 190px; }
}

/* ---------- Refino v2: acabamento moderno e responsividade ---------- */
body { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
::selection { background: #111; color: #fff; }
h1 { font-size: clamp(1.6rem, 4.6vw, 2.1rem); }
.container { max-width: 1040px; padding: 20px 16px 64px; }
.flash { border-radius: var(--r-sm); border-left: 4px solid currentColor; }

/* Botões e campos: alvo de toque de 44 px, sem zoom automático no iPhone */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--r-sm); transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 38px; padding: 6px 14px; }
.btn.big { min-height: 52px; }
button.link { min-height: 40px; padding: 0 8px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=month],
input[type=tel], input[type=time], input[type=search], input[type=file], select, textarea {
  min-height: 44px; font-size: 16px; border-radius: var(--r-sm); border-color: #d6d6d0; transition: border-color .15s, box-shadow .15s;
}
input[type=file] { padding: 8px 10px; }
.row { align-items: flex-end; }
.row > label { display: flex; flex-direction: column; justify-content: flex-end; }

/* Menu: fixo no topo, com área de toque confortável */
.topbar, .site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,11,12,.94); -webkit-backdrop-filter: saturate(150%) blur(10px); backdrop-filter: saturate(150%) blur(10px); padding: 8px 16px; }
.topbar nav a:not(.btn), .site-header nav a:not(.btn), .topbar nav button.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; }
.topbar nav a:not(.btn):hover, .topbar nav button.link:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.topbar nav a.on { background: rgba(255,255,255,.16); }
.topbar nav, .site-header nav { gap: 2px; }

/* Home */
.day, .c-item, .stat, .saude, .a-hero { border-radius: var(--r); }
.wa-float { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; }
.cta-band .copy > div { min-width: 0; }
.cta-band h2 { font-size: clamp(1.5rem, 4.4vw, 2.8rem); }
.stat strong { font-size: clamp(1.6rem, 4vw, 2.1rem); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Tablet */
@media (max-width: 860px) {
  .site-header nav a:not(.btn) { display: none; }
  .container { padding-top: 16px; }
  .a-nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
  .a-nav::-webkit-scrollbar { display: none; }
  .a-nav a { flex: none; min-height: 40px; display: inline-flex; align-items: center; }
}

/* Celular */
@media (max-width: 720px) {
  .topbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 6px 12px 4px; }
  .topbar > * { min-width: 0; }
  .topbar nav { flex-wrap: nowrap; overflow-x: auto; min-width: 0; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav > *, .topbar nav form { flex: none; }
  .brand { font-size: 1.2rem; min-height: 44px; }
  .brand img { width: 34px; height: 34px; }
  .page-head .btn { width: 100%; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 28px 16px 36px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .hero h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .section, .central .wrap, .cta-band .wrap { padding-left: 16px; padding-right: 16px; }
  .central .actions .btn { flex: 1 1 100%; }
  .cta-band .wrap { padding-top: 36px; padding-bottom: 36px; }
  .cta-band .copy { gap: 14px; }
  .cta-band img { width: 64px; height: 64px; }
  .cta-band .btn { width: 100%; }
  .site-footer .wrap { padding-bottom: 88px; }
  .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .a-hero-top { gap: 14px; }
  .saude { padding: 16px; }
  .saude-main { gap: 16px; }
  .saude-ring { width: 124px; height: 124px; }
  .saude-ring svg { width: 124px; height: 124px; }
  .saude-nota strong { font-size: 3rem; }
  .saude h2 { font-size: 1.5rem; }
  .acao-btn { width: 100%; text-align: center; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .row > * { flex: 1 1 100%; }
  .row > .auto { flex: 1 1 100%; }
  .row > .auto .btn { width: 100%; }

  /* Tabelas viram cartões (os rótulos vêm do app.js) */
  table.table, .table thead, .table tbody, .table tr, .table td { display: block; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 14px; margin-bottom: 10px; background: #fff; }
  .table td { display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
  .table td:last-child { border-bottom: 0; }
  .table td[data-label]::before { content: attr(data-label); flex: none; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: left; }
  .table td:not([data-label]) { justify-content: flex-end; }
  .table td.num { white-space: normal; }
  .table td > form.inline, .table td > .st { flex: none; }
  /* Navegação de mês e ações de linha */
  .month-nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; }
  .month-nav .btn { width: 52px; flex: none; }
  .month-nav strong { text-align: center; flex: 1; }
  .page-head .month-nav .btn { width: 52px; }
  .table td[data-label="Ações"] { flex-direction: column; align-items: stretch; text-align: left; gap: 8px; }
  .table td[data-label="Ações"]::before { margin-bottom: 0; }
  .table td[data-label="Ações"] form.row { gap: 8px; }
  .table td[data-label="Ações"] .btn { width: 100%; }
  .table td[data-label="Ações"] form.inline { align-self: flex-start; }
  .stat strong { font-size: 1.45rem; }
}
@media (max-width: 380px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .a-nav { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .card { padding: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media print {
  .topbar, .site-header, .wa-float, .btn, button { display: none !important; }
  body { background: #fff; }
}

/* ---- Equipe (home) e administração ---- */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.prof-card { flex: 0 1 280px; max-width: 320px; background: var(--card); border: 1px solid #ebebe7; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.team-1 .prof-card { flex-basis: 340px; max-width: 360px; }
.prof-card img, .prof-ini { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: #1c1c20; }
.prof-ini { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-size: 5rem; font-weight: 800; }
.prof-body { padding: 16px 18px 20px; text-align: center; }
.prof-body h3 { margin: 0 0 8px; font-size: 1.25rem; }
.prof-faixa { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 10px; font-weight: 700; font-size: .9rem; }
.prof-bio { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .prof-card, .team-1 .prof-card { flex-basis: 100%; max-width: 360px; } }
.foot-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-contact a { color: inherit; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-actions form { margin: 0; }
.equipe-adm { list-style: none; margin: 0; padding: 0; }
.equipe-adm li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.equipe-adm img, .avatar-ini { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; }
.avatar-ini { display: inline-flex; align-items: center; justify-content: center; background: #1c1c20; color: #fff; font-weight: 800; }
.equipe-adm .grow { flex: 1 1 160px; min-width: 0; }
.equipe-atual { display: flex; align-items: center; gap: 16px; }
.equipe-atual img { border-radius: 12px; object-fit: cover; }
.prof-faixa .belt { width: 96px; height: 16px; }
.prof-faixa .belt-tip { width: 26px; padding: 0 3px; gap: 2px; }
.prof-faixa span:last-child { white-space: nowrap; }
#professores h2.title, #professores .sub { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- Faixa de contato (abaixo da hero) ---- */
.info-strip { background: linear-gradient(180deg, #121214, #0b0b0c); border-top: 1px solid #26262b; border-bottom: 1px solid #26262b; }
.info-strip .wrap { max-width: 1280px; margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #18181b; border: 1px solid #2a2a30; border-radius: var(--r); color: #fff; text-decoration: none; transition: transform .18s, border-color .18s, background .18s; min-width: 0; }
.info-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #26262b; color: #fff; }
.info-tx { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.info-tx small { margin: 0; }
.info-tx strong { font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.info-tx em { font-style: normal; font-size: .8rem; color: #9d9da3; }
.info-card:hover em { color: #fff; }
@media (max-width: 860px) { .info-strip .wrap { grid-template-columns: 1fr; padding: 16px; gap: 10px; } }

/* ---- Como chegar: painel + mapa no mesmo cartão ---- */
.loc { display: grid; grid-template-columns: minmax(300px, 1fr) 1.6fr; gap: 0; align-items: stretch; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #ebebe7; background: #0b0b0c; }
.loc-info { padding: 32px 30px; color: #fff; display: flex; flex-direction: column; gap: 6px; background: radial-gradient(ellipse at 0 0, #26262b 0%, #0b0b0c 70%); }
.loc-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; margin: 0; }
.loc-tag { color: #9d9da3; margin: 0 0 14px; }
.loc-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.loc-list li { display: flex; align-items: center; gap: 14px; line-height: 1.35; }
.loc-list a { color: #fff; }
.loc-info .btn { margin-top: auto; align-self: flex-start; }
.loc .map { min-height: 420px; border-radius: 0; box-shadow: none; background: #ddd; }
.loc .map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 860px) { .loc { grid-template-columns: 1fr; } .loc-info { padding: 24px 20px; } .loc .map, .loc .map iframe { min-height: 320px; } .loc-info .btn { align-self: stretch; } }

/* =====================================================================
   v3 · Mobile first, tipografia própria e visual de tatame
   Identidade: preto e branco, cantos retos, linhas finas, uma única
   "faixa" (corpo preto + ponteira vermelha) como marca de seção.
   ===================================================================== */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root { --r: 6px; --r-sm: 4px; --shadow: none; --belt: #b4232a; --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --line: #dcdcd6; }
body { font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
a, button, summary, input, select, textarea, label { touch-action: manipulation; }
h1, h2, h3, .brand, .btn, .tabbar span { font-family: var(--display); }
.btn, button.btn { font-weight: 700; font-size: 1.1rem; letter-spacing: .05em; text-transform: uppercase; border-radius: var(--r-sm); }
.btn.small { font-size: 1rem; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
input:focus, select:focus, textarea:focus { border-color: #111; box-shadow: none; outline: 2px solid #111; outline-offset: 1px; }

/* A faixa: marca de seção (corpo + ponteira) */
.section h2.title::after, .central .title::after, .a-hero h1::after, .loc-name::after {
  content: ""; display: block; width: 72px; height: 6px; margin-top: 12px;
  background: linear-gradient(90deg, #111 0 78%, var(--belt) 78% 100%);
}
.central .title::after, .a-hero h1::after, .loc-name::after { background: linear-gradient(90deg, #fff 0 78%, var(--belt) 78% 100%); }
#professores h2.title::after { margin-left: auto; margin-right: auto; }

/* Sem brilhos, sem pílulas, sem animação de entrada */
.hero, .central, .a-hero, .loc-info { background: #0b0b0c; }
.hero-text > .eyebrow { color: #a9a9af; }
.saude { background: #0b0b0c; border: 1px solid #26262b; border-radius: var(--r); }
.saude-tag { border-radius: var(--r-sm); border-color: #4a4a52; color: #cfcfd4; }
.info-strip { background: #0b0b0c; border-color: #26262b; }
.info-card { background: transparent; border-radius: var(--r); border-color: #2c2c31; }
.info-card:hover { transform: none; background: #17171a; border-color: #5a5a62; }
.info-ic { background: #1d1d21; border: 1px solid #2c2c31; border-radius: var(--r); width: 44px; height: 44px; }
.card, .day, .prof-card, .map, .loc { box-shadow: none; border-radius: var(--r); }
.card { border-color: var(--line); }
.loc { border: 1px solid #26262b; }
.badge, .st, .tipo, .a-nav a { border-radius: var(--r-sm); }
.cta-band { background: #0b0b0c; border-top: 1px solid #26262b; }
.c-item { border-radius: var(--r); background: transparent; border: 1px solid #2c2c31; border-top: 3px solid #fff; }
.c-item h3 { font-size: 1.5rem; }
.wa-float { border-radius: var(--r); box-shadow: none; }

/* Menu da área logada: topo enxuto + barra inferior no celular */
.tabbar { display: none; }
@media (max-width: 1200px) {
  .nav-desk { display: none !important; }
  .topbar { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between; gap: 12px; padding: 4px 16px; padding-top: calc(4px + env(safe-area-inset-top, 0px)); }
  .topbar .brand { font-size: 1.25rem; min-height: 48px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #0b0b0c; border-top: 1px solid #2c2c31;
    padding: 0 4px env(safe-area-inset-bottom, 0px);
  }
  .tabbar > a, .tabbar > form, .tabbar > details { flex: 1 1 0; min-width: 0; margin: 0; }
  .tabbar a, .tabbar button, .tabbar summary {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    width: 100%; min-height: 58px; padding: 6px 2px; color: #a9a9af; background: none; border: 0; border-radius: 0;
    font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; list-style: none;
  }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar span { line-height: 1; white-space: nowrap; }
  .tabbar a.on, .tabbar details[open] > summary { color: #fff; }
  .tabbar a.on::before, .tabbar details[open] > summary::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--belt); }
  .mais { position: relative; }
  .mais-panel { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(270px, calc(100vw - 16px)); background: #17171a; border: 1px solid #3a3a42; border-radius: var(--r); padding: 4px; display: flex; flex-direction: column; }
  .mais-panel form { margin: 0; }
  .mais-panel a, .mais-panel button { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 52px; padding: 0 14px; color: #fff; font-size: 1rem; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 600; }
  .mais-panel a.on { background: #26262b; }
  .mais-panel a.on::before { content: none; }
  .container { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* Aviso para instalar o app */
.install { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 520px; margin: 0 auto; padding: 12px 48px 12px 14px; background: #fff; color: #111; border: 2px solid #111; border-radius: var(--r); }
.install p { margin: 0; flex: 1 1 220px; font-size: .95rem; line-height: 1.35; }
.install-go { font: inherit; font-family: var(--display); font-size: 1.05rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; min-height: 44px; padding: 0 18px; background: #111; color: #fff; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.install-x { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; background: none; border: 0; color: #111; cursor: pointer; }
@media (max-width: 1200px) { .tabbar ~ .install { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); } }
@media (display-mode: standalone) { .install { display: none; } }
@media (display-mode: standalone) { .install.push-pedido { display: flex; } }

/* Painel de saúde: neutro (sem o azul de "dashboard") */
.saude .eyebrow { color: #a9a9af; }
.saude-sub, .saude-ind span, .acao-txt span { color: #a9a9af; }
.ring-bg { stroke: #26262b; }
.ring-nd .ring-fg { stroke: #4a4a52; }
.saude-nota span { color: #e8c46f; }
.acao { background: #141416; border-color: #26262b; border-left-color: #4a4a52; border-radius: var(--r); }
.acao-erro { border-left-color: #ee6a6a; } .acao-aviso { border-left-color: #e8c46f; } .acao-ok { border-left-color: #5fcf80; }
.acao-btn { border-radius: var(--r-sm); }
.acao-nomes a { color: #e4e4e8; }
.hero-logo img { filter: none; }

/* Central do aluno em abas */
.a-nav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.a-nav { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 10; background: var(--paper); padding-block: 8px; margin-top: -8px; }
.a-big { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; margin: 6px 0; }
.a-big small { font-family: var(--body); font-weight: 600; font-size: .9rem; color: var(--muted); margin-left: 6px; }
.a-stats-light { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-bottom: 14px; }
.a-stats-light > div { background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px; }
.a-stats-light strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }
.a-stats-light span { font-size: .85rem; color: #cfcfd4; }
@media (max-width: 640px) {
  .a-hero .a-lead { display: none; }
  .a-hero { padding: 16px; }
  .a-stats div { padding: 10px 12px; }
  .a-stats span { font-size: .75rem; line-height: 1.25; }
}

/* ---- Cadastros (aprovação) ---- */
.count-pill { display: inline-block; min-width: 26px; padding: 0 8px; margin-left: 6px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: .95rem; text-align: center; vertical-align: middle; }
.badge-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--belt); color: #fff; font-family: var(--body); font-size: .75rem; font-weight: 700; letter-spacing: 0; line-height: 1; }
.tabbar .badge-n { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
.cad-list { display: grid; gap: 12px; }
.cad-item { border: 1px solid var(--line); border-left: 4px solid var(--belt); border-radius: var(--r); padding: 14px 16px; background: #fff; }
.cad-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.cad-head h3 { font-size: 1.35rem; margin: 0 0 2px; }
.cad-head p { margin: 0; overflow-wrap: anywhere; }
.cad-when { color: var(--muted); font-size: .85rem; }
.cad-dados { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0; }
.cad-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.cad-recusar { margin-top: 10px; }
.prof-list { list-style: none; margin: 0; padding: 0; }
.prof-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.prof-list li > div { min-width: 0; overflow-wrap: anywhere; }
.prof-list input { width: auto; flex: 1 1 200px; margin: 0; }
.aviso-cad { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; margin-bottom: 14px; padding: 14px 16px; background: #fff; border: 2px solid var(--ink); border-left: 6px solid var(--belt); border-radius: var(--r); text-decoration: none; color: var(--text); }
.aviso-cad strong { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; }
.aviso-cad span { font-weight: 700; }
@media (max-width: 640px) { .cad-form { grid-template-columns: 1fr; } .cad-form .btn { width: 100%; } }

/* ---- E-mails ---- */
.email-status.off { border-left: 4px solid #b9b9b3; }
.email-status.on { border-left: 4px solid #1faa59; }
.email-nums { margin: 12px 0; }
.passos { padding-left: 1.2em; }
.passos li { margin-bottom: 12px; }
pre.code { background: #0b0b0c; color: #e9e9ec; padding: 12px 14px; border-radius: var(--r-sm); overflow-x: auto; font-size: .82rem; line-height: 1.45; margin: 8px 0 0; white-space: pre; }
code { background: #ececea; padding: 1px 5px; border-radius: 3px; font-size: .9em; overflow-wrap: anywhere; }
.email-tipos { list-style: none; margin: 0; padding: 0; }
.email-tipos li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.email-tipos .check { display: flex; gap: 10px; align-items: center; }
.st-mail-enviado { background: var(--ok-bg); color: var(--ok-text); }
.st-mail-erro { background: var(--err-bg); color: var(--err-text); }
.st-mail-pendente, .st-mail-enviando { background: var(--warn-bg); color: var(--warn-text); }
.st-mail-desligado, .st-mail-ignorado { background: #ececea; color: #555; }

/* ---- Cadastro e login ---- */
.prof-code { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.prof-code summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.prof-code[open] summary { margin-bottom: 10px; }
.pw-wrap { position: relative; display: block; margin-top: 4px; }
.pw-wrap input { margin-top: 0; padding-right: 88px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: #ececea; color: #111; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.pw-dica { display: block; margin-top: 4px; font-size: .85rem; font-weight: 600; }
.pw-dica.ruim { color: var(--err-text); }
.pw-dica.bom { color: var(--ok-text); }

/* Certificado de graduação (discreto) e quadro de avisos */
.cert-link { font-size: .8rem; color: var(--muted, #6b6b66); text-decoration: underline; text-underline-offset: 3px; }
.cert-link:hover { color: inherit; }
.cert-opt summary { cursor: pointer; font-size: .85rem; color: var(--muted, #6b6b66); }
.cert-opt[open] summary { margin-bottom: 8px; }
.a-avisos { display: grid; gap: 10px; margin: 0 0 18px; }
.a-aviso { border: 1px solid #111; border-left: 6px solid #b4232a; background: #fff; padding: 14px 16px; }
.a-aviso h2 { margin: 0 0 4px; font-size: 1.05rem; }
.a-aviso p { margin: 0 0 6px; white-space: pre-line; }
.a-aviso small { color: var(--muted, #6b6b66); }

.alt-dif { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.alt-dif s { color: var(--muted, #6b6b70); }
.liga-details > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }

/* Ícone do site no topo */
.top-site { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: #fff; flex: none; }
.top-site:hover { background: rgba(255,255,255,.12); }
@media (max-width: 1200px) { .top-site { margin-left: auto; } }
.top-sair { margin: 0; display: inline-flex; flex: none; }
.top-sair .top-site { margin-left: 0; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.top-sair .top-site:hover { background: rgba(255,255,255,.12); }

/* Turmas: panorama */
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sem-dia { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-width: 0; }
.sem-dia h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; color: var(--muted); }
.sem-dia.vazio { opacity: .55; }
.sem-dia a { display: block; text-decoration: none; padding: 5px 6px; border-radius: 6px; font-size: .82rem; line-height: 1.25; }
.sem-dia a:hover { background: #fff; }
.sem-dia a b { display: block; font-family: var(--display); font-size: 1rem; }
.sem-dia a span { display: block; overflow-wrap: anywhere; color: var(--muted); }
.turmas-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.turma-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.turma-card h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.3rem; margin: 0; }
.turma-card h2 a { text-decoration: none; }
.hor-resumo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.hor-resumo .dias { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-right: 4px; }
.hor-resumo .dias i { font-style: normal; font-size: .75rem; font-weight: 700; background: var(--ink); color: #fff; border-radius: 4px; padding: 2px 6px; }
.num-linha { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.num-linha dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.num-linha dd { margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.barra { width: 100%; height: 10px; }
.turma-card .row-actions { margin-top: auto; }
@media (max-width: 720px) {
  .semana { grid-template-columns: 1fr; }
  .sem-dia.vazio { display: none; }
  .sem-dia { display: flex; gap: 8px; align-items: flex-start; }
  .sem-dia h3 { flex: 0 0 38px; margin: 6px 0 0; }
  .sem-dia > a { flex: 1 1 0; }
  .num-linha { grid-template-columns: 1fr 1fr; }
}

/* Turma: horários e seletor de dias */
.hor-lista { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.hor-lista li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dias-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.dia-chip { background: var(--ink); color: #fff; border: 0; border-radius: 6px; padding: 5px 9px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; min-height: 32px; }
.dia-chip b { opacity: .6; margin-left: 2px; }
.dia-chip:hover { background: #8f1b21; }
.dias-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.dias-pick legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.dias-opcoes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dia-op { display: block; margin: 0; position: relative; }
.dia-op input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dia-op span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 700; font-size: .9rem; }
.dia-op input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.dia-op input:focus-visible + span { outline: 3px solid var(--belt); outline-offset: 2px; }
.atalhos { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }
.cham-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ---------- v2.0: Inteligência, relatório, integrações ---------- */
.versao { margin: 28px 0 0; text-align: center; font-size: .75rem; color: var(--muted); }
.intel-head .eyebrow { color: var(--muted); margin: 0 0 2px; }
.intel-sub { margin: -4px 0 14px; max-width: 60em; }
.alertas { display: grid; gap: 10px; }
.alerta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; border: 1px solid var(--line); border-left: 4px solid #9a9aa2; border-radius: var(--r-sm); padding: 12px 14px; background: #fff; }
.alerta-erro { border-left-color: #b4232a; }
.alerta-aviso { border-left-color: #d79b1e; }
.alerta-ok { border-left-color: #2f9e44; }
.alerta-txt { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; min-width: 0; }
.alerta-nome { font-weight: 700; font-size: 1.02rem; text-decoration: none; color: var(--text); }
.alerta-nome:hover { text-decoration: underline; }
.alerta-txt > span { color: #444; font-size: .92rem; }
.alerta-motivos { margin: 2px 0 0; padding-left: 1.1em; color: #444; font-size: .9rem; }
.alerta-contato { color: #2f7a43 !important; font-size: .82rem !important; font-weight: 600; }
.alerta-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.alerta-acoes form { margin: 0; }
.nivel { display: inline-block; align-self: flex-start; padding: 1px 9px; border-radius: var(--r-sm); font-size: .74rem; font-weight: 700; }
.nivel-alto { background: var(--err-bg); color: var(--err-text); }
.nivel-medio { background: var(--warn-bg); color: var(--warn-text); }
.como-calcula summary { cursor: pointer; font-weight: 700; }
.como-calcula ul { margin: 10px 0 0; padding-left: 1.2em; color: #444; font-size: .92rem; }
.como-calcula li { margin-bottom: 6px; }

.atencao-hoje { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--belt, #b4232a); border-radius: var(--r); padding: 16px 18px; margin-bottom: 16px; }
.atencao-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.atencao-top .eyebrow { color: var(--muted); margin: 0; }
.atencao-top h2 { font-family: var(--display); text-transform: uppercase; margin: 0; font-size: 1.5rem; }
.atencao-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: var(--r-sm); font-weight: 700; font-size: .88rem; text-decoration: none; }
.chip-erro { background: var(--err-bg); color: var(--err-text); }
.chip-aviso { background: var(--warn-bg); color: var(--warn-text); }
.chip-ok { background: var(--ok-bg); color: var(--ok-text); }
.chip:hover { filter: brightness(.95); }

.grad-faixas { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.grad-faixas .belt { width: 110px; }
.grad-seta { font-weight: 700; color: var(--muted); }
.grad-crit { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 4px 12px; align-items: center; font-size: .88rem; color: #444; max-width: 560px; }
.grad-crit meter { width: 120px; height: 10px; }
.grad-crit .muted { grid-column: 1 / -1; }
.crit-tabela th[scope="row"] { white-space: nowrap; font-weight: 600; }
.crit-tabela th[scope="row"] .belt { width: 46px; height: 14px; margin-right: 6px; }
.crit-tabela th[scope="row"] .belt-tip { width: 12px; padding: 0 2px; }
.crit-tabela input { width: 84px; min-width: 70px; }
.grad-mes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.grad-mes .belt { width: 70px; height: 14px; margin-right: 6px; }

.rel-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.btn.is-off { opacity: .35; pointer-events: none; }
.relatorio-texto p, .ia-texto p { line-height: 1.6; margin: 0 0 10px; }
.ia-texto ul { margin: 0 0 12px; padding-left: 1.2em; }
.ia-texto li { margin-bottom: 4px; line-height: 1.5; }

.wa-modos h3 { margin: 0 0 4px; font-size: 1rem; }
.opcoes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.opcoes legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.wa-modelo { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.wa-modelo .row { margin-top: 6px; }
.wa-modelo p.auto { margin: 0 0 10px; }
.wa-testes { margin-top: 12px; align-items: flex-end; }
.wa-testes form { margin: 0; }
.wa-autoriza { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 12px; font-size: .95rem; }

/* Menu "Mais" no computador */
.nav-mais { position: relative; }
.nav-mais > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 8px; }
.nav-mais > summary::-webkit-details-marker { display: none; }
.nav-mais > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-mais > summary:hover, .nav-mais[open] > summary, .nav-mais > summary.on { background: rgba(255,255,255,.14); }
.nav-mais-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px; background: #17171a; border: 1px solid #3a3a42; border-radius: var(--r-sm); padding: 4px; display: flex; flex-direction: column; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.nav-mais-panel a, .nav-mais-panel button { display: flex !important; align-items: center; min-height: 42px; padding: 0 12px !important; border-radius: 6px; color: #fff; text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.nav-mais-panel a:hover, .nav-mais-panel button:hover, .nav-mais-panel a.on { background: #26262b; }
.nav-mais-panel form { margin: 0; }

@media (max-width: 720px) {
  .alerta-acoes { width: 100%; }
  .grad-crit { grid-template-columns: minmax(0, 1fr) 90px; }
  .grad-crit meter { width: 90px; }
  .rel-topo .btn:not(.small) { width: 100%; }
}
.grad-alerta { grid-column: 1 / -1; color: var(--err-text); font-weight: 700; font-size: .85rem; }
/* Barras de progresso (critérios de graduação, presença da turma) */
meter { -webkit-appearance: none; appearance: none; height: 10px; background: #e7e7e3; border: 0; border-radius: 6px; }
meter::-webkit-meter-bar { background: #e7e7e3; border: 0; border-radius: 6px; height: 10px; }
meter::-webkit-meter-optimum-value { background: #2f9e44; border-radius: 6px; }
meter::-webkit-meter-suboptimum-value { background: #d79b1e; border-radius: 6px; }
meter::-webkit-meter-even-less-good-value { background: #b4232a; border-radius: 6px; }
meter::-moz-meter-bar { background: #2f9e44; border-radius: 6px; }

/* ---- /links: página para a bio do Instagram ---- */
html:has(.links-body) { background: #0b0b0c; }
.links-body { background: radial-gradient(ellipse at 50% 0, #26262b 0%, #0b0b0c 62%) #0b0b0c no-repeat; color: #fff; min-height: 100vh; }
.links { max-width: 520px; margin: 0 auto; padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.links-top { text-align: center; padding-bottom: 8px; }
.links-top img { border-radius: 50%; border: 2px solid #2c2c31; background: #0b0b0c; }
.links-top h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2.4rem; line-height: 1; margin: 14px 0 6px; color: #fff; }
.links-top p { margin: 0; color: #9d9da3; }
.links-lista { display: flex; flex-direction: column; gap: 10px; }
.links-item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; background: #18181b; border: 1px solid #2a2a30; border-radius: var(--r); color: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.links-item:hover, .links-item:focus-visible { background: #1f1f24; border-color: #5a5a62; }
.links-item.links-wa { background: var(--wa); border-color: var(--wa); }
.links-item.links-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.links-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #26262b; }
.links-wa .links-ic { background: rgba(255,255,255,.2); }
.links-ig .links-ic { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.links-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.links-tx strong { font-size: 1.05rem; line-height: 1.25; }
.links-tx small { margin: 0; color: #b0b0b6; font-size: .85rem; overflow-wrap: anywhere; }
.links-wa .links-tx small { color: rgba(255,255,255,.88); }
.links-seta { color: #9d9da3; }
.links-wa .links-seta { color: #fff; }
.links-card { background: #121214; border: 1px solid #26262b; border-radius: var(--r); padding: 16px 18px; }
.links-card h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .06em; margin: 0 0 8px; color: #fff; }
.links-card p { margin: 0 0 6px; color: #d4d4d8; }
.links-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: #d4d4d8; }
.links-card a, .links-rodape a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.links-rodape { text-align: center; color: #8a8a90; font-size: .85rem; padding-top: 6px; }
.links-cta { width: 100%; }
.instalar-lista { display: flex; flex-direction: column; gap: 14px; }
.links-card.seu-aparelho { border-color: #fff; }
.links-card.seu-aparelho h2::after { content: " · seu aparelho"; color: #9d9da3; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: .85rem; }
.passos-app { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: #d4d4d8; }
.passos-app strong { color: #fff; }

/* ---------- v2.1: foto de perfil, espaço e menu do celular ---------- */
.avatar { flex: none; border-radius: 50%; object-fit: cover; background: #1c1c20; vertical-align: middle; }
.avatar.avatar-sm { width: 32px; height: 32px; font-size: .8rem; }
.avatar.avatar-md { width: 40px; height: 40px; font-size: .95rem; }
.avatar.avatar-lg { width: 88px; height: 88px; font-size: 1.8rem; }
.avatar.avatar-ini { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-weight: 800; letter-spacing: .02em; }
.pessoa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pessoa > div { min-width: 0; overflow-wrap: anywhere; }
.h-avatar { display: flex; align-items: center; gap: 12px; }
.avatar-link { display: inline-flex; border-radius: 50%; }
.foto-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 8px; }
.foto-linha form { flex: 1 1 240px; margin: 0; }
.chamada-list label .avatar { margin-right: 2px; }
.espaco-barra { width: 100%; height: 14px; margin: 4px 0 14px; }
.faixa-dica, .faixa-aviso { margin-bottom: 0; }
.who { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: #cfcfd4; font-weight: 600; font-size: .95rem; }
@media (min-width: 1201px) { .who span { display: none; } }
.nav-mais-panel svg { display: none; }
@media (max-width: 1200px) {
  .aluno-abas { display: none; }
  .mais-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: min(380px, calc(100vw - 16px)); max-height: calc(100vh - 120px); overflow-y: auto; }
  .mais-panel a, .mais-panel button { gap: 10px; min-height: 50px; padding: 0 10px; font-size: .95rem; white-space: normal; text-align: left; line-height: 1.15; }
  .mais-panel svg { flex: none; width: 22px; height: 22px; }
  .mais-panel form { grid-column: 1 / -1; border-top: 1px solid #2c2c31; margin-top: 2px; }
}
@media (max-width: 420px) {
  .who span { display: none; }
}
.avatar-link { text-decoration: none; }
.espaco-lista { list-style: none; margin: 0 0 12px; padding: 0; }
.espaco-lista li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.espaco-lista li span { display: flex; flex-direction: column; min-width: 0; }
.espaco-lista strong { font-family: var(--display); font-size: 1.2rem; white-space: nowrap; }

/* ---------- Carteirinha digital ---------- */
.cart { max-width: 380px; margin: 0 auto 16px; background: #0b0b0c; color: #fff; border-radius: 14px; padding: 18px; border-top: 6px solid var(--belt); }
.cart-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cart-top img { width: 44px; height: 44px; object-fit: contain; }
.cart-top strong { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.3rem; line-height: 1; }
.cart-top span { color: #bdbdc2; font-size: .85rem; }
.cart-id { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cart-id h1, .cart-id h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.45rem; line-height: 1.05; margin: 0 0 4px; }
.cart-id p { margin: 0; color: #c4c4ca; font-size: .9rem; }
.cart-faixa { display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.cart-faixa strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; }
.cart-faixa span:not(.belt):not(.belt-body):not(.belt-tip) { color: #c4c4ca; font-size: .85rem; }
.cart-qr { background: #fff; border-radius: 10px; padding: 6px; }
.cart-qr .qr { display: block; width: 100%; height: auto; }
.cart-nota { color: #bdbdc2; font-size: .85rem; text-align: center; margin: 10px 0 0; }
.cart-ajuda { max-width: 380px; margin: 0 auto; }
.cart-prof h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; margin: 16px 0 8px; }
.cart-situacao { margin: 0 0 6px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.07); }
.cart-situacao.cart-ok { background: var(--ok-bg); color: var(--ok-text); }
.cart-situacao.cart-warn { background: var(--warn-bg); color: var(--warn-text); }
.cart-situacao.cart-erro { background: var(--err-bg); color: var(--err-text); }
.cart-presente { background: var(--ok-bg); color: var(--ok-text); padding: 10px; border-radius: 8px; font-weight: 700; margin: 0 0 8px; }
.cart-prof .btn { width: 100%; text-align: center; margin-bottom: 8px; }
@media (min-width: 700px) { .cart { padding: 24px; } }
.cart .muted { color: #c4c4ca; }

/* Botão da carteirinha sobre fundo escuro (Central do atleta) */
.btn-cart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 11px 14px; background: #fff; color: #0b0b0c; border-radius: var(--r-sm); font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.btn-cart svg { flex: none; }
.btn-cart:hover { background: #e9e9e6; }
.btn-cart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Leitor de QR na chamada */
.qr-leitor { margin: 0 0 14px; }
.qr-leitor .btn svg { vertical-align: -4px; margin-right: 4px; }
.qr-camera { margin-top: 10px; max-width: 420px; }
.qr-camera video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; border-radius: 10px; margin-bottom: 8px; }
.qr-status { margin: 8px 0 0; min-height: 1.4em; font-weight: 700; }
.qr-status.ok { color: var(--ok-text); }
.qr-status.erro { color: var(--err-text); }
.chamada-list label.qr-marcado { background: var(--ok-bg); border-radius: 8px; }

.tab-acoes { white-space: nowrap; }
.tab-acoes .btn svg { vertical-align: -4px; margin-right: 2px; }

/* Sino de notificações */
.top-bell { position: relative; }
.top-site.top-bell { margin-left: 0; } /* só o ícone do site empurra para a direita */
.bell-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--belt); color: #fff; font-family: var(--body); font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
.notif-lista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.notif a { display: grid; gap: 2px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.notif a:hover { border-color: #111; }
.notif strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; }
.notif span { font-size: .95rem; }
.notif small { color: var(--muted); }
.notif-nova a { border-left: 5px solid var(--belt); background: #fff8f8; }
.notif-ponto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--belt); margin-right: 8px; vertical-align: 1px; }

/* Painel do professor: acesso rápido à chamada por QR */
.page-head .head-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-qr { display: inline-flex; align-items: center; gap: 8px; }
.escolha-turma { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.escolha-turma .card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.escolha-turma h2 { margin: 0; }
.escolha-turma .agora { align-self: flex-start; }

/* Comunicação: resumo dos canais */
.com-canais { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-bottom: 16px; }
.com-canais .card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.com-canais h2 { margin: 0; }
.com-canais p { margin: 0; }
.com-canais .btn { align-self: flex-start; margin-top: auto; }
[data-responsavel] { display: grid; gap: 12px; }
[data-responsavel].obrig > p { color: var(--belt); font-weight: 700; }

/* Aviso de check-in do Wellhub (dentro do app) */
.checkin-aviso { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; background: #fff; border: 2px solid var(--belt); border-left-width: 8px; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.checkin-aviso > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.checkin-aviso strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; }
.checkin-aviso form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* Alinhamentos: botões lado a lado na mesma linha e ícones do topo agrupados à direita */
.btn, button.btn { vertical-align: middle; box-sizing: border-box; }
.btn svg { flex: none; }
.tab-acoes .btn { margin: 0 2px; }
.top-site svg { display: block; }
.top-bell svg { transform: translateY(-1px); }
@media (max-width: 1200px) {
  .topbar { justify-content: flex-start !important; gap: 4px !important; }
  .topbar .brand { margin-right: 4px; }
}

/* Topo da área logada em qualquer largura: marca e menu à esquerda, ícones juntos à direita */
.topbar { justify-content: flex-start; column-gap: 4px; }
.topbar .brand { margin-right: 1.25rem; }
.topbar > .top-site { margin-left: auto; }
.topbar > .top-site ~ .top-site, .topbar > .top-site ~ .who, .topbar > .top-site ~ .top-sair { margin-left: 0; }

/* Self check-in: aula agora no painel e alternativas da chamada em segundo plano */
.aula-agora { background: #fff; border: 2px solid var(--belt); border-left-width: 8px; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.aula-agora .eyebrow { margin: 0 0 6px; }
.aula-agora-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.aula-agora-item:first-of-type { border-top: 0; }
.aula-agora-nome { flex: 1 1 200px; min-width: 0; }
.aula-agora-nome small { color: var(--muted, #6b6b72); font-size: .9rem; margin-left: 6px; }
.aula-agora-conta strong { font-family: var(--display); font-size: 1.4rem; }
.aula-agora-ir { color: var(--belt); font-weight: 700; }
.chamada-alt { margin: 0 0 14px; }
.chamada-alt > summary { cursor: pointer; color: var(--muted, #6b6b72); font-size: .95rem; padding: 6px 0; }
.chamada-alt[open] > summary { margin-bottom: 8px; }

/* Gestão da escola */
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.num.neg, .neg { color: #b3261e; }
.num.pos, .pos { color: #1b6e3c; }
.linha-atual td { background: #f4f1ea; font-weight: 700; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.check-grid { display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); max-height: 260px; overflow: auto; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.plano-add { margin: 10px 0; }
.plano-add summary { display: inline-block; cursor: pointer; list-style: none; }
.plano-add[open] summary { margin-bottom: 10px; }
.arquivado { opacity: .65; }

/* Totem de entrada */
.totem-body { background: #0b0b0c; color: #fff; margin: 0; min-height: 100vh; }
.totem { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 14px; gap: 14px; max-width: 900px; margin: 0 auto; }
.totem-top { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.totem-top strong { font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; }
.totem-hora { margin-left: auto; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.totem-camera { position: relative; flex: 1 1 auto; min-height: 220px; border-radius: 14px; overflow: hidden; background: #000; }
.totem-camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.totem-mira { position: absolute; left: 50%; top: 50%; width: min(60%, 320px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 4px solid rgba(255, 255, 255, .75); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.totem-painel { border-radius: 14px; padding: 18px 20px; text-align: center; background: #1c1c20; transition: background .15s; }
.totem-titulo { font-family: var(--display); font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.05; margin: 0 0 6px; }
.totem-detalhe { font-size: clamp(1.05rem, 3.2vw, 1.5rem); margin: 0; }
.totem-painel.ok { background: #1b7a43; }
.totem-painel.aviso { background: #a8700a; }
.totem-painel.negado { background: #b3261e; }
.totem-ligar { align-self: center; font-size: 1.2rem; padding: 14px 28px; }
.totem-link { width: 100%; max-width: 560px; }

/* Totem em destaque na lista de turmas */
.totem-destaque { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--belt, #c8102e); border-radius: 12px; background: rgba(200, 16, 46, .08); color: inherit; text-decoration: none; }
.totem-destaque-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--belt, #c8102e); color: #fff; }
.totem-destaque strong { display: block; font-size: 1.05rem; }
.totem-destaque small { display: block; margin-top: 2px; opacity: .75; }
.totem-destaque .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) { .totem-destaque { flex-wrap: wrap; } .totem-destaque .btn { margin-left: 0; width: 100%; text-align: center; } }

/* Ficha de saúde, experimentais, importação */
.lista-simples { list-style: none; margin: 0; padding: 0; }
.lista-simples li { padding: 8px 0; border-bottom: 1px solid rgba(128, 128, 128, .2); }
.ficha-q { border: 1px solid rgba(128, 128, 128, .3); border-radius: 10px; padding: 12px 14px; margin: 0; }
.ficha-q legend { padding: 0 6px; font-weight: 600; line-height: 1.35; }
.ficha-sn { display: flex; gap: 22px; margin: 6px 0 10px; }
.aviso-ficha { padding: 10px 12px; border-left: 4px solid var(--belt, #c8102e); background: rgba(200, 16, 46, .08); border-radius: 6px; }
.exp-lista { list-style: none; margin: 0; padding: 0; }
.exp-lista li { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(128, 128, 128, .2); }
.exp-lista form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
