/* ATHUSS MEDIA — Design System v1 (missão DESIGN-006)
   Identidade escura azul/ciano · tokens alinhados ao pacote de referência
   do Drive (01-TOKENS-E-COMPONENTES) com ajustes WCAG AA documentados
   em DESIGN-SYSTEM.md (botão primário #2563EB: branco ≥ 4.5:1). */

:root {
  --bg: #050C18;
  --surface: #0A1728;
  --raised: #0E2035;
  --border: #1E3852;
  --border-soft: #16293F;
  --blue: #087CFF;
  --blue-hover: #2798FF;
  --cyan: #00CFFF;
  --btn-primary: #2563EB;   /* AA com texto branco (mesma família do azul) */
  --btn-primary-hover: #3B7BFF;
  --text: #F4F9FF;
  --muted: #A5BAD0;
  --faint: #647F9C;
  --success: #20C997;
  --warning: #FFB84D;
  --error: #FF5874;
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 238px;
  --topbar-h: 64px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, Menlo, monospace;
  --shadow: 0 12px 34px rgba(2, 8, 20, 0.55);
  --glow: 0 0 0 1px rgba(0, 207, 255, 0.12), 0 8px 30px rgba(8, 124, 255, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 62% -18%, #12355F 0%, transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.2; }
h1 { font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 10px; }
code, .mono { font-family: var(--mono); }
small { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
::selection { background: rgba(0, 207, 255, 0.3); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: #071224;
  border-right: 1px solid var(--border);
  padding: 18px 12px 30px;
  display: flex; flex-direction: column; gap: 2px;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 10px 14px; border-bottom: 1px solid var(--border-soft); margin-bottom: 10px; }
.brand img { width: 150px; height: auto; }
.navgroup { margin: 14px 6px 4px; font-size: 10.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.navlink {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; min-height: 44px;
  color: #B9CCE0; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent;
}
.navlink:hover { background: #0E2A4A; color: #fff; text-decoration: none; }
.navlink.active { background: #0D3B70; color: #fff; border-color: #1D5EAA; }
.navlink .ico { width: 22px; text-align: center; color: #58CFFF; flex-shrink: 0; font-size: 14px; }
.navlink.pending::after { content: "em breve"; margin-left: auto; font-size: 9.5px; color: var(--faint); border: 1px solid var(--border); border-radius: 20px; padding: 1px 7px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 26px;
  background: rgba(5, 12, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar .crumb { color: var(--faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 9px; color: #D7E5F6; font-size: 12.5px; white-space: nowrap; }
.userchip .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #0E2035, #123758);
  border: 1px solid #205782;
  display: grid; place-items: center;
  color: var(--cyan); font-weight: 800; font-size: 13px;
}
.content { padding: 26px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 14px;
  cursor: pointer; text-decoration: none;
  color: var(--text); background: var(--raised);
  transition: background .15s, border-color .15s, transform .05s, opacity .15s;
}
.btn:hover { background: #16304D; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--btn-primary); border-color: #3B7BFF; color: #fff; }
.btn.primary:hover { background: var(--btn-primary-hover); }
.btn.accent { background: var(--blue); color: #fff; }
.btn.accent:hover { background: var(--blue-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #0E2A4A; color: #fff; }
.btn.alt { background: #102C4B; border-color: #25517B; }
.btn.danger { background: #3A1420; border-color: #7A2940; color: #FFB9C6; }
.btn.danger:hover { background: #4A1A28; }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: 12.5px; }
/* P-9: alvo de toque ≥44px para ponteiros coarse (touch), sem perder a
   densidade das tabelas em desktop (ponteiro fino mantém 34px) */
@media (pointer: coarse) {
  .btn.small { min-height: 44px; padding: 8px 14px; }
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn .spin { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Formulários ---------- */
.field { display: block; margin: 0 0 16px; }
.field label { display: block; font-size: 13px; color: #C6D8EC; margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 12px 14px;
  background: #071324; color: #fff;
  border: 1px solid #2A4C70; border-radius: var(--radius-sm);
  font: inherit; font-size: 15px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 207, 255, 0.18);
}
.field .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }
.field .err { font-size: 12.5px; color: var(--error); margin-top: 5px; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field fieldset { border: 1px solid #2A4C70; border-radius: var(--radius-sm); padding: 8px 12px 10px; }
.field legend { font-size: 13px; color: #C6D8EC; font-weight: 600; padding: 0 6px; }
.field .radio { display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 6px 0; font-size: 14px; cursor: pointer; }
.field .radio input { width: 18px; min-height: 18px; padding: 0; accent-color: var(--blue); flex: none; }
.field .radio .muted { font-size: 12.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 13.5px; color: #C6D8EC; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex-shrink: 0; }
.passwrap { position: relative; }
.passwrap input { padding-right: 48px; }
.passwrap button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); font-size: 11px;
  cursor: pointer; min-height: 36px; padding: 4px 10px; border-radius: 6px;
}
.passwrap button:hover { color: var(--cyan); background: #0E2A4A; }

/* ---------- Cartões, grades, estatísticas ---------- */
.grid { display: grid; gap: 15px; margin: 16px 0; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  background: linear-gradient(160deg, #10233A, #091628);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; min-width: 0;
}
.card.flat { background: var(--surface); }
.card h3 { margin-top: 2px; }
.card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.card .cardfoot { margin-top: 14px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .number { font-size: 30px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: 13px; }
.stat .delta { font-size: 12px; }
.stat .delta.up { color: var(--success); }
.stat .delta.down { color: var(--error); }

/* ---------- Etiquetas e badges ---------- */
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 30px;
  font-size: 11.5px; font-weight: 600; line-height: 1.4;
  background: #123758; color: #77DFFF; border: 1px solid #205782;
  white-space: nowrap;
}
.tag.ok { background: #0E2E2B; color: #7EE8CC; border-color: #1F5C50; }
.tag.warn { background: #33240F; color: #FFC97E; border-color: #6B4A1E; }
.tag.err { background: #33121D; color: #FFA9BB; border-color: #6E2A3D; }
.tag.dim { background: #101D2E; color: #8FA6C0; border-color: #22374F; }
.badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 22px; background: var(--blue);
  color: #fff; font-size: 11px; font-weight: 700;
}

/* ---------- Tabelas ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.rows { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rows th, .rows td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.rows th { color: #7AD5FF; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; background: #0A1728; position: sticky; top: 0; }
.rows tbody tr:hover { background: #0C1B30; }
.rows tr:last-child td { border-bottom: 0; }
.rows .actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- Progresso / medidores ---------- */
.progress { height: 9px; background: #1F3653; border-radius: 99px; overflow: hidden; margin: 10px 0; }
.progress > div {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #0089FF, #00D4FF);
  transition: width .3s ease;
}
.progress.indet > div { width: 34%; animation: slide 1.15s ease-in-out infinite alternate; }
@keyframes slide { from { margin-left: 0; } to { margin-left: 66%; } }
.meter { display: flex; align-items: center; gap: 12px; }
.meter .progress { flex: 1; margin: 0; }
.meter .val { font-family: var(--mono); font-size: 12.5px; color: var(--muted); min-width: 62px; text-align: right; }

/* ---------- Estados ---------- */
.empty, .errorbox {
  text-align: center; padding: 44px 22px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--muted);
}
.empty .big, .errorbox .big { font-size: 34px; margin-bottom: 10px; color: var(--faint); }
.errorbox { border-style: solid; border-color: #6E2A3D; background: #150D16; }
.errorbox .big { color: var(--error); }
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, #10233A 40%, #16304D 50%, #10233A 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  min-height: 60px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid; font-size: 13.5px; margin: 0 0 16px;
}
.banner.info { background: #0A2038; border-color: #1D5EAA; color: #BFE0FF; }
.banner.warn { background: #2A1E0C; border-color: #6B4A1E; color: #FFD9A0; }
.banner.err { background: #2A0F19; border-color: #6E2A3D; color: #FFC2CF; }
.banner.ok { background: #0C2623; border-color: #1F5C50; color: #B6F0DF; }
.banner.demo {
  background: repeating-linear-gradient(45deg, #141206 0 12px, #1A1708 12px 24px);
  border: 1px dashed #8A6A1E; color: #FFE3A0;
}
.banner.demo strong { letter-spacing: 1.4px; }

/* ---------- Toast / modal ---------- */
.toastbox { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 90; max-width: 360px; }
.toast {
  padding: 13px 16px; border-radius: var(--radius-sm);
  background: #0E2035; border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 13.5px;
  display: flex; gap: 10px; align-items: flex-start;
  animation: toastin .18s ease-out;
}
.toast.ok { border-color: #1F5C50; }
.toast.err { border-color: #6E2A3D; }
.toast.warn { border-color: #6B4A1E; }
@keyframes toastin { from { transform: translateY(8px); opacity: 0; } }
.modalback {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 6, 14, 0.72); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 18px;
}
.modal {
  background: var(--raised); border: 1px solid #2A4C70; border-radius: var(--radius);
  padding: 24px; max-width: 560px; width: 100%; box-shadow: var(--shadow);
  max-height: 84vh; overflow-y: auto;
}

/* ---------- Upload ---------- */
.dropzone {
  padding: 44px 20px; text-align: center;
  border: 2px dashed #1768AC; border-radius: var(--radius);
  background: #071A31; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--cyan); background: #08223E; }
.dropzone .big { font-size: 34px; color: #58CFFF; }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.fileline {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--surface); margin: 8px 0;
}
.fileline .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.fileline .fsize { color: var(--faint); font-size: 12px; font-family: var(--mono); }

/* ---------- Transcrição / segmentos ---------- */
.seg { display: grid; grid-template-columns: 74px 110px 1fr; gap: 12px; padding: 11px 12px; border-bottom: 1px solid var(--border-soft); align-items: start; }
.seg:last-child { border-bottom: 0; }
.seg .t { font-family: var(--mono); font-size: 12px; color: var(--cyan); padding-top: 2px; }
.seg .speaker { font-size: 12px; }
.seg .txt { font-size: 14px; line-height: 1.6; }
.seg .txt[contenteditable="true"] { border: 1px dashed #2A4C70; border-radius: 6px; padding: 4px 8px; background: #071324; }
.seg .txt:focus { outline: none; border-color: var(--cyan); }
.audiorow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.audiorow audio { flex: 1; min-width: 260px; }

/* ---------- Linha do tempo / trilhas ---------- */
.timeline {
  height: 96px; position: relative; border-radius: var(--radius-sm);
  background: repeating-linear-gradient(90deg, #0E375E 0 40px, #08243E 40px 49px);
  margin: 12px 0; overflow: hidden;
}
.timeline .clip { position: absolute; top: 14px; height: 30px; background: #00A7CF; border-radius: 3px; min-width: 8px; }
.timeline .clip.t2 { top: 52px; background: #A456CF; }
.timeline .playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: .85; }

/* ---------- Onboarding ---------- */
.steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.step {
  flex: 1; min-width: 200px; padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.step .n { font-size: 12px; color: var(--cyan); font-weight: 800; letter-spacing: 2px; }
.step h3 { margin: 8px 0 6px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }
.step.done { border-color: #1F5C50; }

/* ---------- QR ---------- */
.qrframe {
  display: inline-block; padding: 14px; background: #fff;
  border-radius: 10px; box-shadow: 0 0 26px rgba(0, 207, 255, 0.18);
}
.qrframe svg { display: block; }

/* ---------- Hero / página pública ---------- */
.hero {
  margin: 24px 0; padding: clamp(24px, 4vw, 44px);
  border: 1px solid #205084; border-radius: 18px;
  background: linear-gradient(115deg, #0D2747, #091626);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: center;
  box-shadow: 0 0 45px rgba(0, 87, 188, 0.12);
}
.hero img, .hero .heroart { width: 100%; border-radius: 12px; border: 1px solid #254E73; }
/* IDENTIDADE-VISUAL-018: imagens oficiais têm proporção 3:2 (1536×1024) —
   largura 100% (nunca a intrínseca, que estoura o grid no mobile) e altura
   reservada antes do load evita shift e mantém o scroll da âncora. */
.hero img, .fig img { aspect-ratio: 3 / 2; max-width: 100%; }
.fig { margin: 0; }
.fig img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid #254E73;
  box-shadow: 0 0 34px rgba(0, 87, 188, 0.14);
}
.fig figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.flow {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.flow li {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.flow li strong { color: var(--cyan); font-size: 13px; letter-spacing: .5px; }
.flow li span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.stat {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 16px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.statnum { font-size: 30px; font-weight: 800; color: var(--cyan); }
.statlabel { font-size: 12px; color: var(--muted); }
/* âncora respeita a nav pública fixa (sticky) ao rolar */
section[id] { scroll-margin-top: calc(var(--topbar-h) + 20px); }
.eyebrow { color: var(--cyan); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; }
.lead { max-width: 820px; line-height: 1.65; font-size: 15.5px; color: #C6D8EC; }
.publicnav {
  height: var(--topbar-h); display: flex; align-items: center; gap: 22px;
  padding: 0 26px; position: sticky; top: 0; z-index: 40;
  background: rgba(5, 12, 24, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.publicnav .brand { border: 0; margin: 0; padding: 0; }
.publicnav nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.publicnav a { color: #B9CCE0; padding: 9px 13px; border-radius: 8px; font-size: 13.5px; }
.publicnav a:hover { color: #fff; background: #0E2A4A; text-decoration: none; }
.publicnav a.cta { background: var(--btn-primary); color: #fff; }
.publicnav a.cta:hover { background: var(--btn-primary-hover); }

/* ---------- Rodapé ---------- */
.foot {
  font-size: 12.5px; color: #8099B4; margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--border); display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between;
}
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.foot a { color: #8099B4; }

/* ---------- Misc ---------- */
.rule-list { list-style: none; padding: 0; margin: 8px 0; }
.rule-list li { padding: 9px 0 9px 26px; position: relative; color: #C6D8EC; font-size: 13.5px; border-bottom: 1px solid var(--border-soft); }
.rule-list li::before { content: "▸"; position: absolute; left: 6px; color: var(--cyan); }
.rule-list li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip {
  padding: 8px 14px; border-radius: 30px; border: 1px solid var(--border);
  background: var(--surface); color: #B9CCE0; cursor: pointer; font-size: 13px;
}
.chip:hover { border-color: var(--cyan); color: #fff; }
.chip.on { background: #0D3B70; border-color: #1D5EAA; color: #fff; }
.offline-banner {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #2A0F19; color: #FFC2CF; border-bottom: 1px solid #6E2A3D;
  text-align: center; padding: 8px; font-size: 13px;
}
body.offline .offline-banner { display: block; }
.demo-tag { display: inline-block; border: 1px dashed #8A6A1E; color: #FFE3A0; border-radius: 6px; padding: 2px 9px; font-size: 11px; letter-spacing: 1.6px; font-weight: 700; }

/* ---------- Responsivo ---------- */
.menubtn { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; min-height: 44px; min-width: 44px; }
.overlay { position: fixed; inset: 0; background: rgba(2, 6, 14, 0.6); z-index: 35; }

@media (max-width: 1100px) {
  .grid.c4, .grid.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; height: 100dvh; width: min(280px, 82vw);
    transform: translateX(-102%); transition: transform .18s ease-out;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  .menubtn { display: inline-flex; align-items: center; justify-content: center; }
  .content { padding: 18px; }
  .hero { grid-template-columns: 1fr; }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publicnav nav { gap: 0; }
  .publicnav a { padding: 9px 9px; font-size: 13px; }
}
@media (max-width: 640px) {
  .grid.c2, .grid.c3, .grid.c4, .grid.c5 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .hero { padding: 18px; }
  .content { padding: 14px; }
  .topbar { padding: 0 14px; }
  .topbar .crumb { display: none; }
  .seg { grid-template-columns: 64px 1fr; }
  .seg .speaker { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; }
  .toastbox { left: 14px; right: 14px; max-width: none; }
  .field input, .field select { font-size: 16px; } /* evita zoom no iOS */
  .publicnav .hide-sm { display: none; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Comparativo de concorrentes (SUPERADMIN-011 Frente E) ---------- */
.cmp-table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 880px; width: 100%; }
.cmp-table th, .cmp-table td { border-bottom: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft); padding: 9px 12px; text-align: left; vertical-align: top; }
.cmp-table thead th { position: sticky; top: 0; z-index: 2; background: #081321; color: #7AD5FF; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.cmp-table thead th:first-child, .cmp-table tbody th { position: sticky; left: 0; z-index: 1; }
.cmp-table tbody th { background: #0C1B30; color: #A5BAD0; font-weight: 600; white-space: nowrap; text-align: left; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; }
.cmp-table thead th.athuss { background: rgba(0, 143, 255, .28); color: #BFE3FF; border-left: 2px solid #0089FF; border-right: 2px solid #0089FF; }
.cmp-table td.athuss { background: rgba(0, 143, 255, .12); border-left: 2px solid #0089FF; border-right: 2px solid #0089FF; }
.cmp-table tbody tr:hover td { background: #0C1B30; }
.cmp-table tbody tr:hover td.athuss { background: rgba(0, 143, 255, .18); }
