/* Skull Pro – identidade preto e branco; clima de site de academia (inspirado em allianceofficial.com) */
:root {
  --ink: #0b0b0c;
  --ink-2: #17171a;
  --paper: #f4f4f2;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b6b70;
  --line: #e3e3df;
  --accent: #111111;
  --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; }
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; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 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; }
.btn.small { padding: 5px 12px; font-size: .88rem; }
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;
}
.site-header { position: sticky; top: 0; z-index: 20; }
.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); }

/* ---------- 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; }
.belt-big { width: 220px; height: 30px; }

/* ---------- Site público ---------- */
.hero { background: #000; color: #fff; position: relative; overflow: hidden; }
.hero { background: radial-gradient(ellipse at 78% 50%, #26262b 0%, #0b0b0c 55%, #000 100%); }
.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; }
.photo-tag { position: absolute; right: 24px; bottom: 16px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #cfcfd4; }
.info-strip { background: var(--ink-2); color: #fff; }
.info-strip .wrap { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.info-strip .item { padding: 18px 24px; border-left: 1px solid #2c2c31; }
.info-strip .item:first-child { border-left: 0; }
.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; }
.loc { display: grid; gap: 24px; grid-template-columns: 1fr 1.4fr; align-items: stretch; }
.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-num { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: #6f6f76; }
.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; }
.athlete { display: grid; gap: 24px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.athlete ul { margin: 0; padding-left: 1.2rem; }
.athlete li { margin: 4px 0; }
.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: 1fr 1fr; gap: 16px; align-items: start; }
.a-card { scroll-margin-top: 80px; }
.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; }
  .loc, .athlete { grid-template-columns: 1fr; }
  .info-strip .item { border-left: 0; border-top: 1px solid #2c2c31; }
  .info-strip .item:first-child { border-top: 0; }
  .section { padding: 40px 16px; }
  .site-header nav a:not(.btn) { display: none; }
}
@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 ---------- */
:root { --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 28px rgba(0,0,0,.06); }
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; }
.card { border-radius: var(--r); border-color: #ebebe7; box-shadow: var(--shadow); }
.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:focus, select:focus, textarea:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(122,167,255,.45); outline: none; }
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 */
.hero-text > .eyebrow { display: inline-block; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.05); }
.day, .c-item, .stat, .saude, .a-hero { border-radius: var(--r); }
.day { box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.day:hover { transform: translateY(-3px); }
.map { border-radius: var(--r); box-shadow: var(--shadow); }
.info-strip .item { padding: 20px 24px; }
.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; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .6s ease both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .hero-logo img { animation: rise .8s .1s ease both; }
  .c-item { animation: rise .6s ease both; }
}
@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 { padding: 18px; }
  .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-card:hover { transform: translateY(-2px); border-color: #4a4a52; background: #1f1f24; }
.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-ic.info-wa { background: #1faa59; }
.info-ic.info-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.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; }
.info-strip .item { display: none; }
@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); }
h2 { 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 { display: block; border: 0; border-radius: 0; padding: 0; background: none; color: #a9a9af; }
.hero-text > *, .hero-logo img, .c-item { animation: none !important; }
.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, .info-ic.info-wa, .info-ic.info-ig { 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); }
.day:hover { transform: none; }
.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, .who { display: none; }
@media (max-width: 1200px) {
  .nav-desk { display: none !important; }
  .who { display: inline-block; font-weight: 600; font-size: .95rem; color: #cfcfd4; }
  .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; } }

/* 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; } }

/* 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; }
