/* ===== Design system · conceito Enerzee Recharge (verde profundo + lima) ===== */
:root, [data-theme="dark"] {
  --ef-bg: #06080D; --ef-fg: #F7F5EF; --ef-card: #0F141D; --ef-card-muted: #0B0F17; --ef-muted-fg: #B3AE9F;
  --ef-border: rgba(233, 185, 35, 0.14); --ef-border-strong: rgba(233, 185, 35, 0.28); --ef-input-bg: #080B12;
  --ef-ring: #E9B923; --ef-primary: #E9B923; --ef-primary-fg: #11151F; --ef-primary-hover: #E9B923; --ef-primary-ink: #E9B923;
  --ef-accent: rgba(233, 185, 35, 0.10); --ef-accent-fg: #E9B923; --ef-lime-dim: #AE8E2D;
  --ef-sidebar: #080B12; --ef-sidebar-fg: #B3AE9F; --ef-sidebar-accent: rgba(233, 185, 35, 0.12); --ef-sidebar-accent-fg: #E9B923; --ef-sidebar-border: rgba(233, 185, 35, 0.14);
  --ef-destructive: #f87171; --ef-destructive-muted: rgba(248, 113, 113, 0.12); --ef-success: #E9B923; --ef-success-muted: rgba(233, 185, 35, 0.10);
  --ef-warning: #fbbf24; --ef-warning-muted: rgba(251, 191, 36, 0.12); --ef-info: #7dd3fc; --ef-info-muted: rgba(125, 211, 252, 0.12);
  --ef-shadow: none; --ef-radius: 14px; --ef-star: #E9B923;
  --ef-font-head: "Space Grotesk", Inter, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --ef-bg: #F7F5EF; --ef-fg: #0C111A; --ef-card: #ffffff; --ef-card-muted: #F3F0E6; --ef-muted-fg: #6F6A5B;
  --ef-border: rgba(29, 40, 61, 0.14); --ef-border-strong: rgba(29, 40, 61, 0.28); --ef-input-bg: #ffffff;
  --ef-ring: #8F7012; --ef-primary: #E9B923; --ef-primary-fg: #11151F; --ef-primary-hover: #E9B923; --ef-primary-ink: #7C610F; /* verde legível no fundo claro (texto, ícone, borda) */
  --ef-accent: rgba(174, 142, 45, 0.12); --ef-accent-fg: #212D44; --ef-lime-dim: #7D6314;
  --ef-sidebar: #ffffff; --ef-sidebar-fg: #4F4B3F; --ef-sidebar-accent: rgba(174, 142, 45, 0.16); --ef-sidebar-accent-fg: #182132; --ef-sidebar-border: rgba(29, 40, 61, 0.14);
  --ef-destructive: #dc2626; --ef-destructive-muted: #fef2f2; --ef-success: #7C610F; --ef-success-muted: rgba(174, 142, 45, 0.14);
  --ef-warning: #b45309; --ef-warning-muted: #fffbeb; --ef-info: #1d4ed8; --ef-info-muted: #eff6ff;
  --ef-shadow: 0 1px 2px 0 rgb(12 26 16 / 0.05); --ef-star: #8F7012;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--ef-bg); color: var(--ef-fg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
svg.i { width: 1rem; height: 1rem; flex-shrink: 0; }
svg.i-sm { width: 0.875rem; height: 0.875rem; }
svg.i-lg { width: 1.25rem; height: 1.25rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Layout ===== */
.shell { min-height: 100vh; }
.sidebar { display: none; }
.main { min-width: 0; }
.content { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1rem 6rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ef-border); background: var(--ef-card); padding: 0.75rem 1rem; position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; padding: 0.25rem 0.5rem; }
.brand-mark { display: flex; width: 2.25rem; height: 2.25rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 0.5rem; border: 1px solid var(--ef-border); background: var(--ef-accent); color: var(--ef-primary-ink); box-shadow: var(--ef-shadow); }
.brand-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: 11px; color: var(--ef-muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ef-border); background: var(--ef-card); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.6rem 0.25rem; font-size: 11px; color: var(--ef-muted-fg); }
.bottomnav a.active { color: var(--ef-primary-ink); background: var(--ef-accent); font-weight: 500; }
.bottomnav svg.i { width: 1.25rem; height: 1.25rem; }

.nav { display: flex; flex-direction: column; gap: 2px; padding: 0.75rem 0.5rem; overflow-y: auto; flex: 1; }
.nav-link { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.375rem; padding: 0.5rem; font-size: 0.875rem; color: var(--ef-sidebar-fg); transition: background .15s, color .15s; }
.nav-link svg.i { opacity: .8; }
.nav-link:hover, .nav-sub a:hover { background: var(--ef-sidebar-accent); color: var(--ef-sidebar-accent-fg); }
.nav-link.active { background: var(--ef-sidebar-accent); color: var(--ef-sidebar-accent-fg); font-weight: 500; }
.nav-sub { list-style: none; margin: 2px 0 4px 0.75rem; padding: 0 0 0 0.5rem; border-left: 1px solid var(--ef-sidebar-border); }
.nav-sub a { display: block; border-radius: 0.375rem; padding: 0.375rem 0.5rem; font-size: 0.75rem; color: var(--ef-muted-fg); }
.nav-sub a.active { color: var(--ef-sidebar-accent-fg); font-weight: 500; }
.side-user { border-top: 1px solid var(--ef-sidebar-border); padding: 0.75rem 1rem; }
.side-user .kicker { margin-bottom: 0.25rem; }
.side-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 16rem 1fr; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--ef-sidebar-border); background: var(--ef-sidebar); }
  .sidebar .brand { padding: 1rem; border-bottom: 1px solid var(--ef-sidebar-border); }
  .topbar, .bottomnav { display: none; }
  .content { padding: 2rem 2rem 3rem; }
}

/* Sheet (menu mobile / painel lateral) */
.sheet-overlay { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: rgb(0 0 0 / .5); }
.sheet { display: flex; height: 100%; width: 100%; max-width: 28rem; flex-direction: column; border-left: 1px solid var(--ef-border); background: var(--ef-card); animation: slidein .18s ease-out; }
.sheet.left { border-left: 0; border-right: 1px solid var(--ef-border); max-width: 18rem; margin-right: auto; animation-name: slideinl; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ef-border); }
.sheet-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.sheet-foot { border-top: 1px solid var(--ef-border); padding: 0.75rem 1.25rem; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
@keyframes slideinl { from { transform: translateX(-30px); opacity: 0; } }

/* ===== Componentes ===== */
.card { background: var(--ef-card); box-shadow: var(--ef-shadow); border-radius: var(--ef-radius); border: 1px solid var(--ef-border); }
.card-muted { background: var(--ef-card-muted); border-radius: var(--ef-radius); border: 1px solid var(--ef-border); }
.pad { padding: 1rem; } .pad-lg { padding: 1.25rem; }
@media (min-width: 640px) { .pad-lg { padding: 1.5rem; } }
.kicker { font-size: .75rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ef-muted-fg); }
.title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
@media (min-width: 640px) { .title { font-size: 1.75rem; } }
.h2 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: .375rem; }
.h3 { font-size: .875rem; font-weight: 600; }
.lead { font-size: .875rem; color: var(--ef-muted-fg); line-height: 1.5; }
.muted { color: var(--ef-muted-fg); }
.small { font-size: .75rem; } .xs { font-size: 11px; }
.big { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.strong { font-weight: 600; } .medium { font-weight: 500; }
.danger-text { color: var(--ef-destructive); } .success-text { color: var(--ef-success); } .warning-text { color: var(--ef-warning); }
.page-head { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .5rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.row { display: flex; align-items: center; gap: .5rem; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: .75rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
@media (min-width: 640px) { .sm-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sm-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sm-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lg-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lg-g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat { padding: .875rem 1rem; }
.stat .lbl { display: flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--ef-muted-fg); }
.stat .val { font-size: 1.5rem; font-weight: 600; margin-top: .125rem; }
.divider { border: 0; border-top: 1px solid var(--ef-border); margin: 1rem 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; border-radius: calc(var(--ef-radius) - 2px); font-size: .875rem; font-weight: 500; padding: .5rem 1rem; transition: opacity .15s, background .15s; cursor: pointer; border: 1px solid transparent; white-space: nowrap; line-height: 1.25rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ef-primary); color: var(--ef-primary-fg); }
.btn-primary:hover:not(:disabled) { opacity: .92; }
.btn-secondary { background: var(--ef-accent); color: var(--ef-fg); border-color: var(--ef-border); }
.btn-secondary:hover:not(:disabled) { background: var(--ef-card-muted); }
.btn-outline { border-color: var(--ef-border); background: var(--ef-card); color: var(--ef-fg); }
.btn-outline:hover:not(:disabled) { background: var(--ef-accent); }
.btn-ghost { background: transparent; color: var(--ef-fg); }
.btn-ghost:hover:not(:disabled) { background: var(--ef-accent); }
.btn-destructive { background: var(--ef-destructive); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover:not(:disabled) { background: #20bd5a; border-color: #20bd5a; }
.btn-success-outline { border-color: var(--ef-border); background: var(--ef-success-muted); color: var(--ef-success); }
.btn-sm { font-size: .75rem; padding: .375rem .75rem; }
.btn-lg { font-size: 1rem; padding: .625rem 1.25rem; }
.btn-icon { padding: .5rem; width: 2.25rem; height: 2.25rem; }
.btn-icon.btn-sm { width: 1.875rem; height: 1.875rem; padding: .375rem; }
.btn-block { width: 100%; }
@media (min-width: 640px) { .sm-auto { width: auto; } }
.btn-group { display: inline-flex; align-items: stretch; border-radius: calc(var(--ef-radius) - 2px); border: 1px solid var(--ef-border); overflow: hidden; }
.btn-group > .btn { border-radius: 0; border: 0; }
.btn-group > .btn:not(:last-child) { border-right: 1px solid var(--ef-border); }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ef-border); margin-bottom: 1.25rem; }
.link { color: var(--ef-fg); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { opacity: .85; }

.input, .select, .textarea { width: 100%; border-radius: calc(var(--ef-radius) - 2px); border: 1px solid var(--ef-border); background: var(--ef-input-bg); color: var(--ef-fg); padding: .5rem .75rem; font-size: .875rem; line-height: 1.25rem; transition: box-shadow .15s, border-color .15s; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; padding-right: 2rem; }
.textarea { min-height: 5rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ef-muted-fg); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--ef-ring); }
.label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .375rem; }
.hint { font-size: .75rem; color: var(--ef-muted-fg); margin-top: .25rem; }
.field + .field { margin-top: .875rem; }
.check { display: flex; align-items: center; gap: .625rem; padding: .625rem .75rem; border: 1px solid var(--ef-border); border-radius: var(--ef-radius); background: var(--ef-card); cursor: pointer; }
.check > input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--ef-primary-ink); flex-shrink: 0; }
.check.done { background: var(--ef-success-muted); border-color: transparent; }

.badge { display: inline-flex; align-items: center; gap: .25rem; border-radius: 9999px; padding: .125rem .625rem; font-size: .6875rem; font-weight: 500; border: 1px solid var(--ef-border); background: var(--ef-accent); color: var(--ef-accent-fg); white-space: nowrap; }
.badge-success { background: var(--ef-success-muted); color: var(--ef-success); border-color: transparent; }
.badge-warning { background: var(--ef-warning-muted); color: var(--ef-warning); border-color: transparent; }
.badge-destructive { background: var(--ef-destructive-muted); color: var(--ef-destructive); border-color: transparent; }
.badge-info { background: var(--ef-info-muted); color: var(--ef-info); border-color: transparent; }
.badge-muted { background: var(--ef-card-muted); color: var(--ef-muted-fg); border-color: transparent; }
.filter { border-radius: 9999px; padding: .25rem .75rem; font-size: .75rem; border: 1px solid var(--ef-border); background: var(--ef-card); color: var(--ef-muted-fg); transition: background .15s, color .15s; }
.filter:hover { background: var(--ef-accent); color: var(--ef-fg); }
.filter.active { background: var(--ef-primary); color: var(--ef-primary-fg); border-color: transparent; }
.alert-error { font-size: .875rem; color: var(--ef-destructive); }
.alert-success { font-size: .875rem; color: var(--ef-success); }
.progress { height: .375rem; width: 100%; overflow: hidden; border-radius: 9999px; background: var(--ef-accent); }
.progress > div { height: 100%; border-radius: 9999px; background: var(--ef-primary); transition: width .2s; }
.empty { padding: 2rem; text-align: center; color: var(--ef-muted-fg); font-size: .875rem; }
.empty-box { border: 1px dashed var(--ef-border); border-radius: var(--ef-radius); }

.table-wrap { overflow-x: auto; border-radius: var(--ef-radius); border: 1px solid var(--ef-border); background: var(--ef-card); }
.table { width: 100%; border-collapse: collapse; }
.table thead { border-bottom: 1px solid var(--ef-border); background: var(--ef-card-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ef-muted-fg); }
.table td, .table th { padding: .75rem 1rem; text-align: left; font-size: .875rem; vertical-align: middle; }
.table th { font-weight: 500; font-size: .75rem; }
.table tbody tr { border-bottom: 1px solid var(--ef-border); }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: var(--ef-accent); }
.table tbody tr.clickable { cursor: pointer; }

.dialog-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .6); padding: 1rem; }
.dialog { width: 100%; max-width: 32rem; max-height: 90vh; overflow-y: auto; border-radius: var(--ef-radius); border: 1px solid var(--ef-border); background: var(--ef-card); box-shadow: 0 10px 40px rgb(0 0 0 / .2); padding: 1.25rem; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dialog-head h3 { font-size: 1.125rem; font-weight: 600; }
.dialog-foot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }

.help { position: relative; display: inline-flex; vertical-align: middle; }
.help-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.125rem; height: 1.125rem; border-radius: 9999px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); color: var(--ef-muted-fg); cursor: help; font-size: 10px; font-weight: 600; }
.help-btn:hover, .help-btn:focus-visible { outline: none; border-color: var(--ef-primary-ink); color: var(--ef-primary-ink); background: var(--ef-accent); }
.help-panel { position: fixed; z-index: 9999; width: max(220px, min(18rem, 80vw)); padding: .625rem .75rem; border-radius: var(--ef-radius); border: 1px solid var(--ef-border); background: var(--ef-card); color: var(--ef-muted-fg); box-shadow: 0 8px 24px rgb(0 0 0 / .12); font-size: .75rem; line-height: 1.45; font-weight: 400; text-transform: none; letter-spacing: 0; }
.help-panel b { display: block; margin-bottom: .25rem; font-weight: 600; color: var(--ef-fg); }

.toast-wrap { position: fixed; z-index: 99; left: 50%; bottom: 5rem; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
@media (min-width: 1024px) { .toast-wrap { bottom: 1.5rem; } }
.toast { pointer-events: auto; background: var(--ef-fg); color: var(--ef-bg); padding: .6rem 1rem; border-radius: var(--ef-radius); font-size: .875rem; box-shadow: 0 8px 24px rgb(0 0 0 / .2); animation: toastin .2s ease-out; }
.toast.error { background: var(--ef-destructive); color: #fff; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

.stars { display: inline-flex; gap: 2px; }
.star { color: var(--ef-border); line-height: 0; }
.star.on { color: var(--ef-star); }
button.star:hover { color: var(--ef-primary-ink); }
.star svg { width: 1rem; height: 1rem; fill: currentColor; stroke: currentColor; }

/* Blocos específicos */
.queue-group { border-radius: var(--ef-radius); border: 1px solid var(--ef-border); padding: 1rem; }
.queue-group.overdue { background: var(--ef-destructive-muted); border-color: color-mix(in srgb, var(--ef-destructive) 35%, transparent); }
.queue-group.today { background: var(--ef-success-muted); border-color: color-mix(in srgb, var(--ef-success) 30%, transparent); }
.queue-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem; border-radius: calc(var(--ef-radius) - 2px); background: var(--ef-card-muted); border: 1px solid var(--ef-border); margin-top: .5rem; }
.queue-item:hover { border-color: var(--ef-primary-ink); }
.step { display: flex; gap: .75rem; padding: .875rem; border-radius: var(--ef-radius); border: 1px solid var(--ef-border); background: var(--ef-card); }
.step.done { background: var(--ef-success-muted); border-color: transparent; }
.step-num { display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; flex-shrink: 0; border-radius: 9999px; background: var(--ef-card-muted); font-size: .75rem; font-weight: 600; color: var(--ef-muted-fg); }
.step.done .step-num { background: var(--ef-primary); color: var(--ef-primary-fg); }
.quote-card { border-radius: var(--ef-radius); border: 1px solid var(--ef-border); background: var(--ef-card-muted); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.vision-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .vision-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vision-card { border-radius: var(--ef-radius); border: 1px solid var(--ef-border); background: var(--ef-card); overflow: hidden; display: flex; flex-direction: column; }
.vision-img { aspect-ratio: 4 / 3; background: var(--ef-card-muted) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--ef-muted-fg); }
.vision-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.vision-thumbs .vision-img { border-radius: calc(var(--ef-radius) - 2px); }
.suggestion { border-radius: var(--ef-radius); border: 1px solid var(--ef-border); background: var(--ef-card); padding: .75rem; text-align: left; transition: border-color .15s, background .15s; width: 100%; }
.suggestion:hover { border-color: var(--ef-primary-ink); background: var(--ef-accent); }
.lesson-item { display: flex; align-items: center; gap: .625rem; padding: .625rem .75rem; border-radius: calc(var(--ef-radius) - 2px); width: 100%; text-align: left; }
.lesson-item:hover { background: var(--ef-accent); }
.lesson-item.active { background: var(--ef-success-muted); }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--ef-radius); background: #000; }
.timeline { position: relative; }
.timeline-item { border-radius: calc(var(--ef-radius) - 2px); background: var(--ef-card-muted); padding: .625rem .75rem; }
.collapse-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; text-align: left; }
.chev { transition: transform .15s; }
.open > .collapse-head .chev { transform: rotate(180deg); }
.icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .5rem; background: var(--ef-accent); color: var(--ef-primary-ink); flex-shrink: 0; }
.next-steps { margin-top: 2rem; }

/* Rodapé */
.footer { margin-top: 2.5rem; border-top: 1px solid var(--ef-border); padding-top: 2rem; padding-bottom: 1.5rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: auto 1fr; align-items: center; } .footer-grid .right { text-align: right; } .footer-grid .social { justify-content: flex-end; } }
.footer .left { display: flex; justify-content: center; }
@media (min-width: 768px) { .footer .left { justify-content: flex-start; } }
.footer-logo { width: min(160px, 40vw); filter: brightness(0); opacity: .9; }
[data-theme="dark"] .footer-logo { filter: none; }
.footer .right { text-align: center; font-size: .875rem; color: var(--ef-muted-fg); }
.social { display: flex; justify-content: center; gap: .5rem; margin-top: .75rem; }
.social a { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid var(--ef-border); color: var(--ef-muted-fg); transition: color .15s, border-color .15s, background .15s; }
.social a:hover { border-color: var(--ef-primary-ink); color: var(--ef-primary-ink); background: var(--ef-accent); }
.copyright { margin-top: 1.5rem; border-top: 1px solid var(--ef-border); padding-top: 1rem; text-align: center; font-size: .72rem; color: var(--ef-muted-fg); }

/* Telas públicas (login/cadastro) */
.auth-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ef-border); background: var(--ef-card); padding: .75rem 1rem; }
.auth-wrap { max-width: 28rem; margin: 2.5rem auto 0; padding: 0 1rem; }
.auth-card { padding: 1.5rem; }
@media (min-width: 640px) { .auth-card { padding: 2rem; } }
.loading { display: flex; align-items: center; justify-content: center; min-height: 40vh; color: var(--ef-muted-fg); gap: .5rem; }
.spin { animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
section[id] { scroll-margin-top: 5rem; }

.row > .input, .row > .select { flex: 1; min-width: 0; }
.check form.row { margin-top: .5rem; }
.collapse-head > div { min-width: 0; }

/* ===== Camada visual Recharge ===== */
body { font-size: 14.5px; }
::selection { background: var(--ef-primary); color: var(--ef-primary-fg); }
:focus-visible { outline: 2px solid var(--ef-ring); outline-offset: 2px; }
.big, .h2, .dialog-head h3, .brand-name, .stat .val { font-family: var(--ef-font-head); letter-spacing: -0.015em; }
.title { letter-spacing: -0.025em; }
.title { font-weight: 600; font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.12; }
.big, .stat .val { color: var(--ef-primary-ink); font-weight: 600; }
[data-theme="light"] .big, [data-theme="light"] .stat .val { color: var(--ef-fg); }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; letter-spacing: .12em; color: var(--ef-lime-dim); }
.lead { font-size: .9375rem; line-height: 1.65; }

.card { border-color: var(--ef-border); }
.card:hover { border-color: var(--ef-border-strong); }
.card, .card-muted, .quote-card, .step, .queue-group, .vision-card, .suggestion, .check, .table-wrap, .dialog { transition: border-color .15s ease; }

.btn { border-radius: 999px; font-weight: 600; transition: transform .12s ease, background .15s, border-color .15s, color .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary { font-family: var(--ef-font-head); font-weight: 700; }
.btn-primary:hover:not(:disabled) { opacity: 1; background: var(--ef-primary-hover); }
.btn-outline { background: transparent; border-color: var(--ef-border-strong); }
.btn-outline:hover:not(:disabled) { background: transparent; border-color: var(--ef-primary-ink); color: var(--ef-primary-ink); }
[data-theme="light"] .btn-outline:hover:not(:disabled) { color: var(--ef-accent-fg); border-color: var(--ef-ring); }
.btn-secondary { background: var(--ef-accent); border-color: var(--ef-border); }
.btn-lg { padding: .75rem 1.5rem; }
.btn-group { border-radius: 999px; }
.filter { border-radius: 999px; padding: .35rem .85rem; }

.input, .select, .textarea { border-radius: 10px; border-color: var(--ef-border-strong); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { box-shadow: 0 0 0 2px var(--ef-ring); }

.topbar, .auth-top { background: color-mix(in srgb, var(--ef-bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bottomnav { background: color-mix(in srgb, var(--ef-bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand-mark { border-radius: 10px; border-color: var(--ef-border-strong); background: var(--ef-accent); color: var(--ef-primary-ink); box-shadow: none; }
[data-theme="light"] .brand-mark { color: var(--ef-accent-fg); }
.nav-link { border-radius: 10px; padding: .55rem .625rem; }
.nav-link.active { box-shadow: inset 2px 0 0 var(--ef-primary); }

.icon-circle { border-radius: 10px; border: 1px solid var(--ef-border-strong); }
[data-theme="light"] .icon-circle { color: var(--ef-accent-fg); }
.progress { background: var(--ef-card-muted); }
.step.done, .check.done, .lesson-item.active { background: var(--ef-success-muted); border-color: var(--ef-border-strong); }
.table thead { background: transparent; letter-spacing: .1em; }
.table tbody tr:hover { background: var(--ef-accent); }
.dialog { border-color: var(--ef-border-strong); box-shadow: 0 20px 60px rgb(0 0 0 / .45); }
.sheet { background: var(--ef-bg); }
.toast { background: var(--ef-primary); color: var(--ef-primary-fg); font-weight: 600; border-radius: 999px; padding: .6rem 1.1rem; }

/* Cabeçalho de página com brilho suave, como o hero do site */
.content { position: relative; }
.content::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 320px; pointer-events: none; z-index: -1;
  background: radial-gradient(700px 280px at 20% 0%, color-mix(in srgb, var(--ef-primary) 9%, transparent), transparent 70%); }
.main { position: relative; z-index: 0; }
.auth-wrap { position: relative; }
.auth-wrap::before { content: ''; position: absolute; inset: -4rem -40vw auto; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--ef-primary) 10%, transparent), transparent 70%); }
.auth-card { border-radius: 22px; border-color: var(--ef-border-strong); }

.footer, .copyright { border-color: var(--ef-border); }
.social a:hover { color: var(--ef-primary-ink); }
[data-theme="light"] .social a:hover { color: var(--ef-accent-fg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* Vitrine da home */
.vitrine { display: block; position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--ef-border-strong); background: #080B10; transition: border-color .15s, transform .15s; }
.vitrine img { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 434; object-fit: cover; object-position: left center; }
.vitrine:hover { border-color: var(--ef-primary-ink); }
.vitrine:active { transform: scale(.995); }
/* Faixa baixa (metade da altura): a arte aparece menor, com o lado do texto inteiro e espaço em cima e embaixo;
   o resto da faixa é a própria arte ao fundo (a cena da direita). Web: proporção 1024×130 · app: 100px de altura. */
.vitrine { aspect-ratio: 1024 / 130; background: var(--vit, none) right 45% / cover no-repeat, #080B10; }
.vitrine img { position: absolute; left: 0; top: -33%; height: 160%; width: auto; max-width: none; aspect-ratio: 1024 / 434; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, #000 78%, transparent); mask-image: linear-gradient(to right, #000 78%, transparent); }
@media (max-width: 560px) { .vitrine { aspect-ratio: auto; height: 100px; } }

/* Agenda de eventos */
.event { display: flex; gap: 1rem; padding: 1.25rem; align-items: flex-start; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 4rem; height: 4.25rem; border-radius: 12px; border: 1px solid var(--ef-border-strong); background: var(--ef-accent); }
.event-date .d { font-family: var(--ef-font-head); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--ef-primary-ink); }
[data-theme="light"] .event-date .d { color: var(--ef-accent-fg); }
.event-date .m { margin-top: .25rem; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ef-muted-fg); }
.event.past { opacity: .7; }
.past-events > summary { cursor: pointer; list-style: none; }
.past-events > summary::-webkit-details-marker { display: none; }
@media (max-width: 480px) { .event { padding: 1rem; gap: .75rem; } .event-date { width: 3.25rem; height: 3.75rem; } }

/* Criativo do evento (lateral esquerda) */
.event.has-creative { padding: 0; gap: 0; overflow: hidden; align-items: stretch; }
.event.has-creative .event-body { padding: 1.25rem; }
.event-creative { position: relative; flex-shrink: 0; width: 13rem; min-height: 13rem; align-self: stretch; background: var(--ef-card-muted); border-right: 1px solid var(--ef-border); overflow: hidden; }
.event-creative img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-creative .event-date { position: absolute; left: .75rem; top: .75rem; width: 3.25rem; height: 3.5rem; background: color-mix(in srgb, var(--ef-bg) 82%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.event-creative .event-date .d { font-size: 1.25rem; }
.event-creative.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--ef-muted-fg); font-size: .75rem; font-weight: 500; border: 0; border-right: 1px dashed var(--ef-border-strong); cursor: pointer; transition: color .15s, background .15s; }
.event-creative.empty:hover { color: var(--ef-primary-ink); background: var(--ef-accent); }
.event-creative-preview { aspect-ratio: 1 / 1; max-width: 14rem; border-radius: 12px; border: 1px dashed var(--ef-border-strong); background: var(--ef-card-muted) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--ef-muted-fg); }
@media (max-width: 600px) {
  .event.has-creative { flex-direction: column; }
  .event-creative { width: 100%; min-height: 0; aspect-ratio: 1 / 1; border-right: 0; border-bottom: 1px solid var(--ef-border); }
  .event-creative.empty { aspect-ratio: auto; height: 6rem; border-right: 0; border-bottom: 1px dashed var(--ef-border-strong); }
}

/* Símbolo Enerzee no cabeçalho */
.brand-symbol { width: 1.5rem; height: 1.5rem; }
[data-theme="light"] .bottomnav a.active { color: var(--ef-accent-fg); }
[data-theme="light"] .bottomnav a.active { background: var(--ef-sidebar-accent); }

/* Card de dica (fila de follow-ups) */
.tip-card { display: flex; align-items: center; gap: 1rem; border-style: dashed; border-color: var(--ef-border-strong); background: var(--ef-accent); }
.tip-card .icon-circle { width: 2.5rem; height: 2.5rem; }
@media (max-width: 600px) { .tip-card { flex-direction: column; align-items: flex-start; } .tip-card .btn { width: 100%; } }

/* Botões de atendimento no rodapé */
.support-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .875rem; }
@media (min-width: 768px) { .support-actions { justify-content: flex-end; } }

/* Metas da semana e do mês */
.goal-bars { display: grid; gap: .5rem; }
.goal-bar .progress { margin-top: .25rem; }

/* ===== Ambiente admin ===== */
:root, [data-theme="dark"] { --ef-chart: #E9B923; }
[data-theme="light"] { --ef-chart: #8F7012; }
.admin-badge { margin-left: .25rem; vertical-align: middle; font-family: Inter, sans-serif; letter-spacing: .04em; background: var(--ef-primary); color: var(--ef-primary-fg); border-color: transparent; }
.admin-content { max-width: 80rem; }
.seg { display: flex; flex-wrap: wrap; gap: .375rem; }
.kpi .val { font-size: 1.75rem; }
.delta { display: inline-flex; align-items: center; gap: .25rem; margin-top: .25rem; font-size: .75rem; font-weight: 600; }
.delta.up { color: var(--ef-success); } .delta.down { color: var(--ef-destructive); } .delta.muted { font-weight: 500; }
@media (min-width: 1024px) { .lg-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .span-2 { grid-column: span 2; } }
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--ef-border); stroke-width: 1; }
.chart .axis { stroke: var(--ef-border-strong); stroke-width: 1; }
.chart .tick { fill: var(--ef-muted-fg); font-size: 11px; font-family: Inter, sans-serif; }
.chart .bar { fill: var(--ef-chart); transition: opacity .12s; }
.chart .hit { fill: transparent; }
.chart .col.on .hit { fill: var(--ef-accent); }
.chart:hover .col:not(.on) .bar { opacity: .55; }
.chart-tip { position: absolute; transform: translate(-50%, -100%); pointer-events: none; background: var(--ef-card); border: 1px solid var(--ef-border-strong); border-radius: 10px; padding: .4rem .6rem; font-size: .75rem; line-height: 1.35; white-space: nowrap; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.chart-tip b { font-size: .9rem; } .chart-tip span { color: var(--ef-muted-fg); }
.funnel { display: grid; gap: .875rem; }
.funnel-track { height: .5rem; border-radius: 999px; background: var(--ef-card-muted); overflow: hidden; margin-top: .3rem; }
.funnel-track > div { height: 100%; border-radius: 999px; background: var(--ef-chart); min-width: 2px; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table th { white-space: nowrap; }
.admin-table tfoot td { border-top: 1px solid var(--ef-border-strong); padding: .75rem 1rem; font-size: .875rem; }
.th-sort { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.th-sort:hover { color: var(--ef-fg); }
.admin-table td:first-child, .admin-table th:first-child { position: sticky; left: 0; background: var(--ef-card); z-index: 1; }
.admin-table td:first-child p.medium { white-space: nowrap; }
.admin-table td:nth-child(2) { white-space: nowrap; }

/* Admin · listas e controles */
.lesson-admin { display: flex; align-items: center; gap: .5rem; padding: .625rem .5rem; border-top: 1px solid var(--ef-border); }
.lesson-admin:first-child { border-top: 0; }
.lesson-admin.inactive .grow, .content-row.inactive .grow { opacity: .55; }
.lesson-admin .xs svg.i-sm { width: .75rem; height: .75rem; vertical-align: -1px; }
.content-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; }
.content-row .badge { display: inline-flex; }
@media (max-width: 640px) { .content-row, .lesson-admin { flex-wrap: wrap; } .content-row > .row { width: 100%; justify-content: flex-end; } }
.setting-row { display: flex; align-items: center; gap: 1rem; padding: .875rem 0; border-top: 1px solid var(--ef-border); cursor: pointer; }
.setting-row:first-of-type { border-top: 0; }
.switch { position: relative; flex-shrink: 0; width: 2.75rem; height: 1.5rem; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--ef-card-muted); border: 1px solid var(--ef-border-strong); transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--ef-muted-fg); transition: transform .15s, background .15s; }
.switch input:checked + span { background: var(--ef-primary); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(1.25rem); background: var(--ef-primary-fg); }
.switch input:focus-visible + span { outline: 2px solid var(--ef-ring); outline-offset: 2px; }
.switch input:disabled + span { opacity: .6; }
.btn:disabled.btn-icon { opacity: .3; }
.filter.active .muted { color: inherit; opacity: .7; }
[hidden] { display: none !important; }

/* Importar da agenda */
.howto { border-top: 1px solid var(--ef-border); padding: .75rem 0 0; margin-top: .75rem; }
.howto > summary { cursor: pointer; font-size: .875rem; }
.howto ol { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .375rem; }
.howto p { margin-top: .5rem; }
.import-list { display: grid; gap: .375rem; max-height: 50vh; overflow-y: auto; padding-right: .25rem; }
.wa-pick { display: grid; gap: .375rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ef-border); }

/* Envio de mensagens: rolagem interna, mesma altura da Gamificação */
.msg-card { display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.msg-scroll { overflow-y: auto; overscroll-behavior: contain; max-height: 16rem; -webkit-mask-image: linear-gradient(#000 calc(100% - 1.5rem), transparent); mask-image: linear-gradient(#000 calc(100% - 1.5rem), transparent); padding-bottom: 1rem; padding-right: .25rem; scrollbar-width: thin; scrollbar-color: var(--ef-border-strong) transparent; }
.msg-scroll:focus-visible { outline: 2px solid var(--ef-ring); outline-offset: 2px; border-radius: 10px; }
@media (min-width: 1024px) {
  /* a altura da linha vem da Gamificação; a lista de mensagens ocupa o espaço que sobrar e rola */
  .msg-scroll { flex: 1 1 0; height: 0; min-height: 12rem; max-height: none; }
}

/* Dados de UC */
.chart .line { fill: none; stroke: var(--ef-chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cross { stroke: var(--ef-border-strong); stroke-width: 1; }
.chart .dot { fill: var(--ef-chart); stroke: var(--ef-card); stroke-width: 2; }
.chart .tick.lbl { fill: var(--ef-fg); font-size: 12px; }
.chart .tick.val { fill: var(--ef-muted-fg); font-variant-numeric: tabular-nums; }
.chart .cross, .chart .dot { opacity: 0; transition: opacity .1s; }
.chart:hover .cross, .chart:hover .dot { opacity: 1; }
.goal-sum { font-family: var(--ef-font-head); font-size: 1.25rem; font-weight: 600; margin-top: .125rem; }
.week-dots { display: flex; flex-wrap: wrap; gap: .25rem; }
.week-dot { font-size: .6875rem; font-weight: 600; padding: .125rem .5rem; border-radius: 999px; border: 1px dashed var(--ef-border-strong); color: var(--ef-muted-fg); }
.week-dot.on { border-style: solid; background: var(--ef-accent); color: var(--ef-accent-fg); }
.week-dot.now { outline: 2px solid var(--ef-ring); outline-offset: 1px; }

/* Compromisso ligado à meta semanal */
.week-link { margin-top: 1rem; padding: .875rem 1rem; border-radius: 12px; border: 1px solid var(--ef-border-strong); background: var(--ef-accent); }
.week-link.empty { border-style: dashed; background: transparent; }
.week-link-rows { display: grid; gap: .375rem; margin-top: .5rem; }
.week-link-row { display: grid; grid-template-columns: minmax(6.5rem, 1fr) auto auto minmax(5.5rem, auto); align-items: center; gap: .75rem; padding: .375rem 0; border-top: 1px solid var(--ef-border); }
.week-link-row:first-child { border-top: 0; }
.week-link-row > :last-child { text-align: right; }
@media (max-width: 520px) { .week-link-row { grid-template-columns: 1fr auto; } .week-link-row > :nth-child(2) { grid-column: 1; grid-row: 2; } .week-link-row > :last-child { grid-row: 2; } }
.sug-hint { display: block; margin-top: .25rem; font-size: .6875rem; color: var(--ef-muted-fg); }
.sug-hint b { color: var(--ef-fg); }

/* Material de Apoio */
.mat-group + .mat-group { margin-top: 1.75rem; }
.mat-card { display: flex; gap: 1rem; padding: 1rem 1.125rem; align-items: flex-start; }
.mat-type { flex-shrink: 0; width: 3rem; height: 3.5rem; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .625rem; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--ef-border-strong); background: var(--ef-accent); color: var(--ef-accent-fg); }
.mat-type.sm { width: 2.25rem; height: 2.5rem; font-size: .5625rem; }
.mat-type.pdf { background: color-mix(in srgb, #f87171 16%, transparent); color: #fca5a5; border-color: color-mix(in srgb, #f87171 35%, transparent); }
.mat-type.video { background: var(--ef-info-muted); color: var(--ef-info); border-color: color-mix(in srgb, var(--ef-info) 35%, transparent); }
.mat-type.img { background: var(--ef-warning-muted); color: var(--ef-warning); border-color: color-mix(in srgb, var(--ef-warning) 35%, transparent); }
[data-theme="light"] .mat-type.pdf { color: #b91c1c; }
.drop { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1.25rem; border: 1px dashed var(--ef-border-strong); border-radius: 12px; cursor: pointer; color: var(--ef-muted-fg); font-size: .875rem; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--ef-primary-ink); background: var(--ef-accent); color: var(--ef-fg); }

/* ===== Rede unilevel ===== */
.uni { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.uni > * { min-width: 0; }
.uni-search { position: relative; width: 20rem; max-width: 100%; }
.uni-results { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; background: var(--ef-card); border: 1px solid var(--ef-border-strong); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / .25); max-height: 20rem; overflow-y: auto; padding: .25rem; }
.uni-hit { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; width: 100%; text-align: left; padding: .5rem .625rem; border-radius: 8px; }
.uni-hit:hover, .uni-hit:focus-visible { background: var(--ef-accent); outline: none; }
.uni-hit .xs { width: 100%; }
.uni-path { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: .8125rem; }
.uni-path:empty { display: none; }
.uni-path .sep { color: var(--ef-muted-fg); }
.uni-path [aria-current] { font-weight: 600; }
.uni-bar { display: grid; grid-template-columns: 2.75rem minmax(6rem, 1fr); align-items: center; gap: .5rem; min-width: 10rem; }
.uni-bar b { font-variant-numeric: tabular-nums; font-size: .8125rem; text-align: right; }
.uni-track { height: .5rem; border-radius: 999px; background: var(--ef-card-muted); overflow: hidden; }
.uni-track i { display: block; height: 100%; border-radius: 999px; background: var(--ef-chart); min-width: 2px; }
.uni-tree { margin-top: .75rem; }
.uni-node { --indent: 1.25rem; }
.uni-row { display: grid; grid-template-columns: 1.75rem 2.25rem minmax(10rem, 1fr) auto 2rem; align-items: center; gap: .625rem; padding: .625rem .5rem .625rem calc(var(--lvl) * var(--indent) + .25rem); border-top: 1px solid var(--ef-border); position: relative; transition: background .15s; }
.uni-tree > .uni-node:first-child > .uni-row { border-top: 0; }
.uni-row:hover { background: color-mix(in srgb, var(--ef-accent) 60%, transparent); }
.uni-row::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--lvl) * var(--indent) - .375rem); border-left: 1px dashed var(--ef-border-strong); display: var(--guide, block); }
.uni-node[style*="--lvl:0"] > .uni-row::before { display: none; }
.uni-toggle { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; color: var(--ef-muted-fg); border: 1px solid var(--ef-border); background: var(--ef-card); transition: transform .15s, color .15s, border-color .15s; }
.uni-toggle:hover, .uni-toggle:focus-visible { color: var(--ef-primary-ink); border-color: var(--ef-primary-ink); outline: none; }
.uni-toggle.empty { border: 0; background: none; }
.uni-node[aria-expanded="true"] > .uni-row .uni-toggle { transform: rotate(90deg); color: var(--ef-primary-ink); }
.uni-avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ef-accent); color: var(--ef-accent-fg); font-size: .75rem; font-weight: 700; border: 1px solid var(--ef-border-strong); }
.uni-who { min-width: 0; }
.uni-who .medium { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.uni-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.uni-metrics { display: grid; grid-template-columns: repeat(6, minmax(3.5rem, auto)); gap: .25rem .75rem; margin: 0; text-align: right; }
.uni-metrics dt { font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ef-muted-fg); white-space: nowrap; }
.uni-metrics dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: .875rem; white-space: nowrap; }
.uni-metrics dd small { font-weight: 400; color: var(--ef-muted-fg); font-size: .6875rem; }
.uni-focus { width: 2rem; }
.uni-more { margin: .5rem 0 .5rem calc(var(--lvl) * 1.25rem + 2.5rem); }
.uni-empty, .uni-loading { padding: .75rem .5rem; }
.uni-hl > .uni-row { background: var(--ef-accent); box-shadow: inset 3px 0 0 var(--ef-primary); }
@media (max-width: 900px) {
  .uni-row { grid-template-columns: 1.75rem 2.25rem minmax(0, 1fr) 2rem; }
  .uni-metrics { grid-column: 3 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
  .uni-node { --indent: .75rem; }
  .uni-focus { grid-row: 1; grid-column: 4; }
}

/* ===== Meus diretos ===== */
.dir-list { display: grid; gap: .75rem; }
@media (min-width: 1100px) { .dir-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dir-card { border: 1px solid var(--ef-border); border-radius: 14px; background: var(--ef-card-muted); padding: 1rem; display: grid; gap: .75rem; align-content: start; grid-template-columns: minmax(0, 1fr); }
.dir-card.off { opacity: .7; }
.dir-head { display: flex; align-items: center; gap: .75rem; }
.dir-name { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; min-width: 0; }
.dir-actions { display: flex; align-items: center; gap: .25rem; flex: none; }
.dir-name .truncate { min-width: 0; }
.dir-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .75rem; margin: 0; padding-top: .75rem; border-top: 1px solid var(--ef-border); }
.dir-metrics dt { font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ef-muted-fg); }
.dir-metrics dd { margin: .125rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.dir-metrics dd small { font-weight: 400; color: var(--ef-muted-fg); font-size: .6875rem; }
@media (max-width: 520px) { .dir-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dir-head { flex-wrap: wrap; } .dir-head .grow { flex-basis: calc(100% - 3.25rem); } .dir-head .dir-actions { margin-left: 3rem; } .dir-name .truncate { white-space: normal; } }
/* Rede por nível: 7 níveis visíveis, rolagem interna, cabeçalho e total fixos */
.uni-levels.scrolls { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ef-border-strong) transparent; }
.uni-levels thead th { position: sticky; top: 0; z-index: 2; background: var(--ef-card); }
.uni-levels tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--ef-card); box-shadow: 0 -1px 0 var(--ef-border-strong); }
.uni-levels thead th:first-child, .uni-levels tfoot td:first-child { z-index: 3; }
.dir-visits { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; }
.dir-visits > .xs { display: inline-flex; align-items: center; gap: .25rem; margin-right: .25rem; }
.dir-visit { font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--ef-border); color: var(--ef-muted-fg); }
.dir-visit b { font-variant-numeric: tabular-nums; color: var(--ef-fg); }
.dir-visit.on { border-color: var(--ef-border-strong); background: var(--ef-accent); }
.dir-visit.on b { color: var(--ef-primary-ink); }
[data-theme="light"] .dir-visit.on b { color: var(--ef-accent-fg); }
.dialog-foot { flex-wrap: wrap; }

/* Card "Próximo follow-up" clicável (abre a edição de data e estágio) */
.fu-edit { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.fu-edit:hover, .fu-edit:focus-visible { border-color: var(--ef-primary-ink); }
.fu-edit-hint { display: inline-flex; align-items: center; gap: .25rem; color: var(--ef-primary-ink); font-weight: 500; }

/* Status do contato editável (badge com select nativo por cima) */
.status-pick { position: relative; cursor: pointer; padding-right: .375rem; transition: box-shadow .15s; }
.status-pick:hover, .status-pick:focus-within { box-shadow: 0 0 0 2px var(--ef-primary); }
.status-pick select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; outline: none; }
.status-pick select option { color: var(--ef-fg); background: var(--ef-card); }
.status-pick .i-sm { width: .8rem; height: .8rem; pointer-events: none; }

/* PWA: convite "Instalar o app" */
.install-banner { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: calc(4.75rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .75rem; padding: .75rem .75rem .75rem .875rem; border-radius: var(--ef-radius); border: 1px solid var(--ef-border); background: var(--ef-card); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); animation: ib-in .25s ease-out; }
.install-banner img { border-radius: .625rem; flex: none; }
.install-banner .i-sm { vertical-align: -2px; }
@media (min-width: 1024px) { .install-banner { left: auto; right: 1.5rem; bottom: 1.5rem; width: 24rem; } }
@keyframes ib-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .install-banner { animation: none; } }
.install-banner .grow { flex: 1 1 auto; min-width: 0; }
.install-banner .grow p { white-space: normal; overflow-wrap: anywhere; }
.install-banner .btn { flex: none; }

/* App instalado (PWA): menu em ícones, tela cheia */
.launcher { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--ef-bg); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); overflow-y: auto; animation: launcher-in .18s ease-out; }
.launcher.closing { animation: launcher-out .15s ease-in forwards; }
.launcher-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--ef-border); position: sticky; top: 0; background: var(--ef-bg); z-index: 1; }
.launcher-body { flex: 1; width: 100%; max-width: 34rem; margin: 0 auto; padding: 1.25rem 1rem 1.5rem; display: flex; flex-direction: column; }
.launcher-hello { color: var(--ef-muted-fg); font-size: .9375rem; margin: 0 0 1.25rem; }
.launcher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem .75rem; }
@media (min-width: 480px) { .launcher-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.launcher-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; color: var(--ef-fg); border-radius: 1rem; padding: .375rem .25rem; -webkit-tap-highlight-color: transparent; }
.launcher-tile:focus-visible { outline: 2px solid var(--ef-primary-ink); outline-offset: 2px; }
.launcher-icon { width: 4rem; height: 4rem; border-radius: 1.125rem; display: grid; place-items: center; color: #E9B923; background: radial-gradient(circle at 30% 20%, #1D283D, #06080D 78%); border: 1px solid rgba(233, 185, 35, .14); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: transform .12s ease, box-shadow .12s ease; }
.launcher-icon .i { width: 1.75rem; height: 1.75rem; }
.launcher-tile:hover .launcher-icon { transform: translateY(-2px); }
.launcher-tile:active .launcher-icon { transform: scale(.94); }
.launcher-tile.active .launcher-icon { background: #E9B923; color: #11151F; border-color: #E9B923; }
.launcher-label { font-size: .75rem; font-weight: 500; line-height: 1.25; text-align: center; max-width: 6.5rem; }
.launcher-tile.active .launcher-label { color: var(--ef-fg); font-weight: 600; }
.launcher-foot { margin-top: auto; padding-top: 2rem; display: flex; justify-content: center; gap: .5rem; }
@keyframes launcher-in { from { opacity: 0; transform: scale(.98); } }
@keyframes launcher-out { to { opacity: 0; transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) { .launcher, .launcher.closing, .launcher-icon { animation: none; transition: none; } }
.launcher:focus { outline: none; }

/* Meu dia: atalhos rápidos (ícones quadrados) abaixo do checklist */
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .75rem .125rem; border-radius: var(--ef-radius); border: 1px solid var(--ef-border); background: var(--ef-card); color: var(--ef-fg); text-decoration: none; transition: border-color .15s, transform .12s; -webkit-tap-highlight-color: transparent; }
.quick-link:hover, .quick-link:focus-visible { border-color: var(--ef-primary-ink); }
.quick-link:focus-visible { outline: 2px solid var(--ef-primary-ink); outline-offset: 2px; }
.quick-link:active { transform: scale(.97); }
.quick-icon { flex: none; width: 3.25rem; height: 3.25rem; border-radius: .875rem; display: grid; place-items: center; color: #E9B923; background: radial-gradient(circle at 30% 20%, #1D283D, #06080D 78%); border: 1px solid rgba(233, 185, 35, .14); }
.quick-icon .i { width: 1.5rem; height: 1.5rem; }
.quick-label { font-size: .6875rem; font-weight: 500; line-height: 1.25; text-align: center; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .quick-links { gap: .75rem; } .quick-link { flex-direction: row; justify-content: flex-start; gap: .75rem; padding: .875rem 1rem; } .quick-label { text-align: left; font-size: .875rem; } }
@media (prefers-reduced-motion: reduce) { .quick-link { transition: none; } }
.uni-tree-tools { flex-wrap: wrap; min-width: 0; max-width: 100%; }
/* Grupos de botões/filtros no cabeçalho dos cards quebram linha em telas estreitas (em vez de empurrar a página para o lado) */
.between > .row { flex-wrap: wrap; min-width: 0; }

/* Simulador de conta */
.sim { max-width: 40rem; min-width: 0; }
.sim > *, .sim .card { min-width: 0; }
.sim-solar span, .sim-partial span, .sim-facts { overflow-wrap: anywhere; }
.sim-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem; min-height: 8.5rem; padding: 1.25rem; text-align: center; border: 1.5px dashed var(--ef-border-strong); border-radius: var(--ef-radius); background: var(--ef-card-muted); cursor: pointer; transition: border-color .15s, background .15s; }
.sim-drop .i { width: 1.75rem; height: 1.75rem; color: var(--ef-primary-ink); }
.sim-drop span { font-weight: 500; overflow-wrap: anywhere; }
.sim-drop:hover, #sim-file:focus-visible + .sim-drop, .sim-drop.has-file { border-color: var(--ef-primary-ink); }
.sim-drop.has-file { background: var(--ef-accent); }
.sim-drop:has(+ #sim-file:focus-visible) { outline: 2px solid var(--ef-primary-ink); outline-offset: 2px; }
.btn-lg { min-height: 3rem; font-size: 1rem; }
.sim form .btn-lg { width: 100%; justify-content: center; }
.sim-status { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.sim-box { border-radius: var(--ef-radius); background: var(--ef-card-muted); border: 1px solid var(--ef-border); padding: 1rem 1.125rem; }
.sim-big { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--ef-accent-fg); letter-spacing: -.01em; }
.sim-big span { display: block; margin-top: .25rem; font-size: .9375rem; font-weight: 500; color: var(--ef-muted-fg); letter-spacing: 0; }
.sim-eco { margin-top: .375rem; }
.sim-facts { margin-top: .5rem; }
.sim-result.ok { border-color: color-mix(in srgb, var(--ef-success) 45%, var(--ef-border)); }
.sim-rules td { vertical-align: middle; } .sim-rules .input, .sim-rules .select { min-width: 4.5rem; }
.sim-rules td:first-child .input { min-width: 10rem; }

/* Campanha 7x7: card da jornada no Meu dia */
[data-jornada]:empty { display: none; }
.j7 { border-color: color-mix(in srgb, var(--ef-primary) 35%, var(--ef-border)); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--ef-primary) 9%, transparent), transparent 60%), var(--ef-card); }
.j7-prize { display: flex; gap: .5rem; align-items: flex-start; } .j7-prize .i { flex: none; margin-top: .15rem; color: var(--ef-primary-ink); }
.j7-goals { gap: .75rem; }
.j7-list { list-style: none; margin: .625rem 0 0; padding: 0; display: grid; gap: .625rem; }
.j7-goal .progress { margin-top: .3rem; }
.j7-regs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.j7-regs li { display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); }
.j7-n { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--ef-primary); color: var(--ef-primary-fg); font-size: .75rem; font-weight: 700; }

/* ===== Campanha 7x7 · card "Grande Prêmio": cockpit de F1 com as cores do Hub (fontes/variáveis só dentro do card) ===== */
.gp {
  --f1-glow: 0 0 18px color-mix(in srgb, var(--ef-primary) 45%, transparent);
  --f1-line: color-mix(in srgb, var(--ef-primary) 22%, transparent);
  --f1-line-strong: color-mix(in srgb, var(--ef-primary) 55%, transparent);
  --f1-font-hud: "Orbitron", "Space Grotesk", sans-serif;
}
[data-theme="light"] .gp { --f1-line: color-mix(in srgb, var(--ef-accent-fg) 20%, transparent); --f1-line-strong: color-mix(in srgb, var(--ef-accent-fg) 50%, transparent); }

.gp { border-color: var(--f1-line-strong); }
.gp-wheel { position: relative; display: block; width: 100%; text-align: left; font: inherit; color: var(--ef-fg); cursor: pointer; padding: 1rem 1rem 1.125rem; border: 1px solid var(--f1-line-strong);
  border-radius: 26px 26px 40px 40px / 26px 26px 52px 52px; overflow: hidden;
  background: radial-gradient(100% 70% at 50% 0%, color-mix(in srgb, var(--ef-primary) 14%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--ef-card) 94%, #000), color-mix(in srgb, var(--ef-bg) 92%, #000));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ef-primary) 30%, transparent), 0 18px 40px -20px color-mix(in srgb, var(--ef-primary) 55%, transparent); transition: transform .12s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.gp-wheel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); } /* linhas de varredura */
.gp-wheel:hover { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ef-primary) 45%, transparent), 0 20px 46px -16px color-mix(in srgb, var(--ef-primary) 70%, transparent); }
.gp-wheel:active { transform: scale(.995); }
.gp-wheel:focus-visible { outline: 2px solid var(--ef-primary-ink); outline-offset: 3px; }
[data-theme="light"] .gp-wheel { color: #F7F5EF; background: radial-gradient(100% 70% at 50% 0%, rgba(233, 185, 35, .16), transparent 60%), linear-gradient(180deg, #0F1520, #06080D); }

/* luzes de troca de marcha em tons institucionais: verde → lima → branco incandescente */
.gp-leds { position: relative; display: flex; justify-content: center; gap: 5px; margin-bottom: .75rem; }
.gp-led { width: 24px; height: 8px; transform: skewX(-20deg); border-radius: 2px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.gp-led.on.g { background: #AE923F; box-shadow: 0 0 10px #AE923F; }
.gp-led.on.r { background: #E9B923; box-shadow: 0 0 12px #E9B923; }
.gp-led.on.p { background: #FFF5D6; box-shadow: 0 0 14px #F4CF5A, 0 0 4px #fff; }
.gp-wheel.full .gp-led.on { animation: gp-blink .5s steps(2) infinite; }

.gp-screen { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: .75rem .875rem; border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35)); border: 1px solid color-mix(in srgb, #E9B923 22%, transparent); box-shadow: inset 0 0 24px rgba(233, 185, 35, .06); }
.gp-cell { display: flex; flex-direction: column; gap: .125rem; }
.gp-cell.r { text-align: right; align-items: flex-end; }
.gp-cell b { font-family: var(--f1-font-hud); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; color: #F7F5EF; }
.gp-cell small { font-family: var(--f1-font-hud); font-size: .5rem; letter-spacing: .2em; color: #B3AE9F; text-transform: uppercase; font-weight: 600; }
.gp-gear { text-align: center; line-height: 1; }
.gp-gear b { display: block; font-family: var(--f1-font-hud); font-size: 3.25rem; font-weight: 900; color: #E9B923; text-shadow: 0 0 22px rgba(233, 185, 35, .65), 0 0 2px #fff; font-variant-numeric: tabular-nums; }
.gp-gear small { font-family: var(--f1-font-hud); font-size: .5rem; letter-spacing: .22em; color: #E9B923; opacity: .8; font-weight: 600; text-transform: uppercase; }
.gp-ok { color: #E9B923 !important; } .gp-late { color: #fbbf24 !important; }
.gp-grips { position: absolute; top: 34%; width: 10px; height: 44%; border-radius: 6px; background: repeating-linear-gradient(180deg, rgba(233, 185, 35, .18) 0 2px, transparent 2px 6px); }
.gp-grips.l { left: 4px; } .gp-grips.r { right: 4px; }

/* pista holográfica */
.gp-track { --carw: clamp(104px, 15%, 150px); position: relative; display: block; margin-top: .875rem; height: clamp(72px, 8vw, 92px); border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, rgba(233, 185, 35, .05), transparent 40%, transparent 60%, rgba(233, 185, 35, .05)), linear-gradient(90deg, rgba(233, 185, 35, .07) 1px, transparent 1px) 0 0 / 22px 100%, #050609;
  border: 1px solid rgba(233, 185, 35, .14); perspective: 400px; }
.gp-track::before, .gp-track::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(233, 185, 35, .15), #E9B923 var(--p), rgba(233, 185, 35, .15) var(--p)); box-shadow: 0 0 10px rgba(233, 185, 35, .5); }
.gp-track::before { top: 8px; } .gp-track::after { bottom: 8px; }
.gp-lane { position: absolute; left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, rgba(233, 185, 35, .35) 0 10px, transparent 10px 22px); }
.gp-sector { position: absolute; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, transparent, rgba(233, 185, 35, .25), transparent); }
.gp-sector span { position: absolute; top: 2px; left: 5px; font-family: var(--f1-font-hud); font-size: .5rem; font-weight: 600; letter-spacing: .12em; color: rgba(247, 245, 239, .4); }
.gp-sector.done span { color: #E9B923; text-shadow: 0 0 6px rgba(233, 185, 35, .7); }
.gp-start { position: absolute; top: 10px; bottom: 10px; left: 8px; width: 2px; background: #E9B923; box-shadow: 0 0 8px #E9B923; opacity: .6; }
.gp-finish { position: absolute; top: 10px; bottom: 10px; right: 0; width: 16px; background: conic-gradient(#E9B923 25%, transparent 0 50%, #E9B923 0 75%, transparent 0) 0 0 / 8px 8px; opacity: .75; filter: drop-shadow(0 0 4px rgba(233, 185, 35, .6)); }
.gp-car { position: absolute; top: 54%; width: var(--carw); transform: translate(-100%, -50%); filter: drop-shadow(0 8px 6px rgba(0,0,0,.75)); }
.gp-track.anim .gp-car { animation: gp-drive 1.7s cubic-bezier(.3, .9, .3, 1) both; }
.gp-car svg { display: block; width: 100%; height: auto; overflow: visible; }
.gp-trail { position: absolute; top: 50%; left: 0; width: max(0px, calc(var(--p) - var(--carw) * .92)); height: 18px; transform: translateY(-50%); background: linear-gradient(90deg, transparent 10%, rgba(233, 185, 35, .45)); -webkit-mask: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 5px); mask: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 5px); }
.gp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .625rem; font-family: var(--f1-font-hud); font-size: .5625rem; letter-spacing: .18em; text-transform: uppercase; color: #B3AE9F; }
.gp-foot .gp-more { color: #E9B923; font-weight: 700; display: inline-flex; align-items: center; gap: .125rem; text-shadow: 0 0 8px rgba(233, 185, 35, .5); }

/* bandeiras de ritmo (institucional: lima = ok, âmbar = atenção) */
.gp-flag { display: flex; align-items: center; gap: .5rem; font-family: var(--f1-font-hud); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .625rem; padding: .625rem .75rem; border-radius: 3px; }
.gp-flag.green { background: var(--ef-success-muted); color: var(--ef-success); box-shadow: inset 2px 0 0 var(--ef-success); }
.gp-flag.yellow { background: var(--ef-warning-muted); color: var(--ef-warning); box-shadow: inset 2px 0 0 var(--ef-warning); }

/* telemetria das metas: conta-giros com néon */
.gp-tele { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: .625rem; margin-top: .625rem; }
.gp-gauge { text-align: center; }
.gp-gauge svg { width: 100%; max-width: 84px; height: auto; aspect-ratio: 84 / 50; display: block; margin: 0 auto; overflow: visible; }
.gp-gauge svg path:last-child { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--ef-primary) 70%, transparent)); }
.gp-gauge .val { font-family: var(--f1-font-hud); font-size: .9375rem; font-weight: 700; margin-top: -1.25rem; font-variant-numeric: tabular-nums; }
.gp-gauge .val small { font-size: .625rem; color: var(--ef-muted-fg); font-weight: 600; }
.gp-gauge .lbl { font-family: var(--f1-font-hud); font-size: .5rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ef-muted-fg); font-weight: 600; margin-top: .25rem; }
.gp-gauge.ok .val { color: var(--ef-accent-fg); }
.gp-podium { display: flex; gap: .625rem; align-items: flex-start; padding: .625rem .75rem; border-radius: 3px; background: linear-gradient(90deg, var(--ef-accent), transparent); box-shadow: inset 2px 0 0 var(--ef-primary); }
.gp-podium .i { color: var(--ef-accent-fg); flex: none; margin-top: .125rem; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ef-primary) 60%, transparent)); }
.gp .card-muted .medium { font-family: var(--f1-font-hud); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

@keyframes gp-drive { from { left: 0; } }
@keyframes gp-blink { 50% { opacity: .35; } }
@keyframes f1-scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .gp-track.anim .gp-car, .gp-wheel.full .gp-led.on, .topbar::after, .auth-top::after { animation: none; } }
/* rodas girando e luz traseira */
.gp-rim { transform-box: fill-box; transform-origin: center; animation: gp-spin .6s linear infinite; }
.gp-car { filter: drop-shadow(0 0 6px rgba(233, 185, 35, .35)); }
@keyframes gp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gp-rim { animation: none; } }

/* Dados de UC: filtros de concessionária e município (ANEEL) */
.uc-aneel { padding-top: .75rem; border-top: 1px dashed var(--ef-border); }
.uc-search { position: relative; }
.uc-results { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: min(26rem, 100%); max-height: 18rem; overflow: auto; background: var(--ef-card); border: 1px solid var(--ef-border-strong); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); padding: .25rem; }
.uc-hit { display: flex; flex-direction: column; align-items: flex-start; gap: .125rem; width: 100%; text-align: left; padding: .5rem .625rem; border-radius: 8px; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.uc-hit:hover, .uc-hit:focus-visible { background: var(--ef-accent); outline: none; }
.uc-off { opacity: .4; pointer-events: none; }
.uc-note { display: flex; gap: .375rem; align-items: flex-start; }
.uc-note .i { flex: none; margin-top: .15rem; }
[data-unpick] .i { width: .75rem; height: .75rem; }
.select:disabled, .input:disabled { opacity: .5; cursor: not-allowed; }
/* Dados de UC: resumo cativo × livre e colunas agrupadas */
.uc-mix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; margin-top: .875rem; }
.uc-mix-item { padding: .625rem .75rem; border-radius: 10px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); }
.uc-mix-item.liv { border-color: color-mix(in srgb, var(--ef-primary) 40%, var(--ef-border)); }
.uc-split .uc-grp { text-align: center; border-bottom: 1px solid var(--ef-border); }

/* ===== App instalado e telas de qualquer tamanho =====
   - altura real da tela (dvh) em vez de vh, que no celular inclui a barra do navegador;
   - campos com 16px em telas de toque: abaixo disso o iPhone dá zoom ao tocar e o app "estoura" a tela;
   - margens do entalhe (notch) e dos cantos arredondados, inclusive com o celular deitado;
   - nada rola para o lado. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
.shell { min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1024px) { .sidebar { height: 100vh; height: 100dvh; } }
.dialog { max-height: 90vh; max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.dialog-overlay { padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.sheet { height: 100vh; height: 100dvh; padding-top: env(safe-area-inset-top); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
.topbar { padding-top: max(.75rem, env(safe-area-inset-top)); padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.content { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.bottomnav { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
img, svg, video { max-width: 100%; }
@media (pointer: coarse), (max-width: 767px) {
  .input, .select, .textarea, input[type="search"], input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="date"], input[type="datetime-local"] { font-size: 16px; }
}
/* celular deitado: menos altura, então barra de baixo e topo mais baixos */
@media (orientation: landscape) and (max-height: 500px) {
  .topbar { padding-top: max(.375rem, env(safe-area-inset-top)); padding-bottom: .375rem; }
  .bottomnav a { flex-direction: row; justify-content: center; gap: .375rem; padding: .375rem .25rem; }
  .content { padding-bottom: 4rem; }
  .launcher-body { max-width: 56rem; padding-top: .75rem; }
  .launcher-hello { margin-bottom: .75rem; }
  .launcher-grid { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .75rem .5rem; }
  .launcher-foot { padding-top: 1rem; }
  .launcher-icon { width: 3.25rem; height: 3.25rem; }
}
/* aviso de versão nova (usa o mesmo cartão do "Instale o app") */
.update-banner { z-index: 65; border-color: color-mix(in srgb, var(--ef-primary) 55%, var(--ef-border)); }
.update-icon { flex: none; width: 2.75rem; height: 2.75rem; border-radius: .75rem; display: grid; place-items: center; background: var(--ef-accent); color: var(--ef-accent-fg); }

/* Sininho de notificações (verde) */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: .25rem; padding-right: .5rem; }
.side-head .brand { min-width: 0; flex: 1; }
.bell { position: relative; flex: none; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--ef-primary-ink); cursor: pointer; transition: background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.bell:hover, .bell:focus-visible { background: var(--ef-accent); border-color: var(--ef-border); outline: none; }
.bell .i { width: 1.25rem; height: 1.25rem; }
.bell.has .i { animation: bell-ring 2.4s ease-in-out 1; transform-origin: 50% 10%; }
.bell-count { position: absolute; top: -.1rem; right: -.2rem; min-width: 1.125rem; height: 1.125rem; padding: 0 .3rem; border-radius: 999px; display: grid; place-items: center; font-size: .625rem; font-weight: 700; line-height: 1; background: var(--ef-primary); color: var(--ef-primary-fg); box-shadow: 0 0 0 2px var(--ef-card), 0 0 10px color-mix(in srgb, var(--ef-primary) 60%, transparent); }
.bell-count[hidden] { display: none; }
.bell-panel { position: fixed; z-index: 80; top: calc(3.75rem + env(safe-area-inset-top)); left: .5rem; right: .5rem; max-height: min(34rem, calc(100dvh - 5rem)); display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--ef-border-strong); background: var(--ef-card); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); overflow: hidden; animation: bell-in .16s ease-out; }
@media (min-width: 640px) { .bell-panel { right: auto; width: 24rem; } }
.bell-head { display: flex; align-items: center; gap: .5rem; padding: .75rem .75rem .75rem 1rem; border-bottom: 1px solid var(--ef-border); }
.bell-head .medium { display: flex; align-items: center; gap: .375rem; margin-right: auto; }
.bell-head .medium .i { color: var(--ef-primary-ink); }
.bell-list { overflow-y: auto; padding: .375rem; }
.bell-item { display: flex; align-items: flex-start; gap: .625rem; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-radius: 10px; padding: .625rem; cursor: pointer; }
.bell-item:hover, .bell-item:focus-visible { background: var(--ef-card-muted); outline: none; }
.bell-item.unread { background: color-mix(in srgb, var(--ef-accent) 70%, transparent); }
.bell-ico { flex: none; width: 2rem; height: 2rem; border-radius: 9px; display: grid; place-items: center; background: var(--ef-accent); color: var(--ef-accent-fg); }
.bell-title { display: block; font-weight: 600; font-size: .875rem; }
.bell-body { display: block; font-size: .8125rem; color: var(--ef-muted-fg); margin-top: .125rem; }
.bell-time { display: block; font-size: .6875rem; color: var(--ef-muted-fg); margin-top: .25rem; }
.bell-dot { flex: none; width: .5rem; height: .5rem; margin-top: .4rem; border-radius: 999px; background: var(--ef-primary); box-shadow: 0 0 8px var(--ef-primary); }
.bell-empty { display: grid; place-items: center; gap: .5rem; padding: 2rem 1rem; text-align: center; }
.bell-empty .i { width: 2rem; height: 2rem; color: var(--ef-muted-fg); }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-12deg); } 50% { transform: rotate(0); } }
@keyframes bell-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .bell.has .i, .bell-panel { animation: none; } }
/* 7x7: número 7 na linha de chegada (mesmo estilo dos setores) */
.gp-finish-num { position: absolute; top: 12px; right: 0; width: 16px; padding: 2px 0; text-align: center; border-radius: 3px; background: #050609; font-family: var(--f1-font-hud); font-size: .5rem; font-weight: 700; line-height: 1; color: rgba(247, 245, 239, .55); z-index: 2; box-shadow: 0 0 0 1px rgba(233, 185, 35, .25); }
.gp-finish-num.done { color: #E9B923; text-shadow: 0 0 6px rgba(233, 185, 35, .7); box-shadow: 0 0 0 1px #E9B923, 0 0 8px rgba(233, 185, 35, .6); }

/* Tela de instalação no celular (boas-vindas) */
.inst-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .6); padding: 0 0 env(safe-area-inset-bottom); animation: inst-fade .2s ease-out; }
.inst-card { width: 100%; max-width: 30rem; max-height: calc(100dvh - 2rem); overflow-y: auto; border-radius: 22px 22px 0 0; border: 1px solid var(--ef-border-strong); border-bottom: 0; background: radial-gradient(120% 60% at 50% 0%, var(--ef-accent), transparent 60%), var(--ef-card); padding: 1.5rem 1.25rem 1rem; text-align: center; animation: inst-up .26s cubic-bezier(.22, 1, .36, 1); }
@media (min-width: 640px) { .inst-sheet { align-items: center; } .inst-card { border-radius: 22px; border-bottom: 1px solid var(--ef-border-strong); } }
.inst-logo { border-radius: 18px; box-shadow: 0 0 0 1px var(--ef-border-strong), 0 10px 30px rgba(0, 0, 0, .4); }
.inst-title { font-size: 1.25rem; font-weight: 700; margin: .875rem 0 .375rem; }
.inst-text { color: var(--ef-muted-fg); font-size: .9375rem; margin: 0 auto; max-width: 24rem; }
.inst-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; text-align: left; }
.inst-step { display: flex; align-items: center; gap: .75rem; padding: .75rem .875rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); font-size: .9375rem; }
.inst-n { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--ef-primary); color: var(--ef-primary-fg); font-weight: 700; font-size: .8125rem; }
.inst-ic { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 6px; background: var(--ef-accent); color: var(--ef-accent-fg); vertical-align: middle; font-weight: 700; }
.inst-actions { display: grid; gap: .5rem; margin-top: 1rem; }
.inst-actions:empty { display: none; }
.inst-actions .btn { width: 100%; justify-content: center; }
.inst-foot { display: flex; justify-content: center; gap: .5rem; margin-top: .75rem; }
@keyframes inst-fade { from { opacity: 0; } }
@keyframes inst-up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .inst-sheet, .inst-card { animation: none; } }
.app-badge { display: inline-flex; align-items: center; gap: .2rem; margin-left: .375rem; vertical-align: middle; }
/* Simulador: card com os dados lidos da conta */
.sim-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.75rem), 1fr)); gap: .5rem; margin: 0; }
.sim-dt { padding: .625rem .75rem; border-radius: 10px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); min-width: 0; }
.sim-dt dt { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ef-muted-fg); }
.sim-dt dd { margin: .125rem 0 0; font-weight: 600; font-size: .9375rem; overflow-wrap: anywhere; }
/* Simulador: barra de avanço da leitura da conta */
.sim-progress { display: grid; gap: .5rem; padding: .875rem 1rem; border-radius: 12px; border: 1px solid var(--ef-border-strong); background: var(--ef-card-muted); }
.sim-bar { height: .625rem; border-radius: 999px; background: color-mix(in srgb, var(--ef-fg) 10%, transparent); overflow: hidden; }
.sim-bar > div { position: relative; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--ef-primary) 55%, #7A631F), var(--ef-primary)); box-shadow: 0 0 12px color-mix(in srgb, var(--ef-primary) 55%, transparent); transition: width .3s ease-out; overflow: hidden; }
.sim-bar > div::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%); background-size: 200% 100%; animation: sim-shine 1.4s linear infinite; }
@keyframes sim-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .sim-bar > div::after { animation: none; } }
/* Simulador: proposta comercial */
.sim-proposal-btn { width: 100%; justify-content: center; }
.prp-preview { border-radius: 10px; overflow: hidden; border: 1px solid var(--ef-border); background: #fff; }
.prp-preview img { display: block; width: 100%; height: auto; }
.prp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; margin-top: .875rem; }
.prp-actions .btn { justify-content: center; }
.prp-wa { margin-top: .875rem; padding: .875rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); }
.prp-contacts { display: grid; gap: .25rem; margin-top: .5rem; max-height: 16rem; overflow-y: auto; }
.prp-contact { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: .75rem; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--ef-card); border: 1px solid var(--ef-border); border-radius: 10px; padding: .5rem .75rem; cursor: pointer; }
.prp-contact .i { grid-row: 1 / 3; grid-column: 2; color: #25d366; width: 1.25rem; height: 1.25rem; }
.prp-contact:hover, .prp-contact:focus-visible { border-color: var(--ef-primary-ink); outline: none; }

/* Simulador: leitura parcial — campos que faltam em destaque */
.sim-partial { display: flex; gap: .5rem; align-items: flex-start; padding: .75rem .875rem; border-radius: var(--ef-radius, 12px); background: color-mix(in srgb, var(--ef-warning, #f5b400) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ef-warning, #f5b400) 45%, transparent); }
.sim-partial svg { flex: none; margin-top: .15rem; }
.field.is-missing .label { color: var(--ef-warning, #f5b400); }
.field.is-missing .label::after { content: ' · falta'; font-weight: 600; }
.field.is-missing .input, .field.is-missing .select { border-color: var(--ef-warning, #f5b400); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ef-warning, #f5b400) 22%, transparent); }

/* Simulador: histórico (3 últimas visíveis, o resto na rolagem) */
.sim-hist { display: grid; grid-template-columns: minmax(0, 1fr); gap: .625rem; overflow-x: hidden; }
.sim-hist.scroll { overflow-y: auto; overscroll-behavior: contain; padding-right: .25rem; scrollbar-gutter: stable; }
.sim-hist-item { min-width: 0; display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .75rem .875rem; border: 1px solid var(--ef-border); border-radius: var(--ef-radius); background: var(--ef-card-muted); }
.sim-hist-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; min-width: 0; flex: 1; }
.sim-hist-main > span { overflow-wrap: anywhere; }
.sim-hist-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-hist-actions { display: flex; gap: .5rem; flex: none; }
@media (max-width: 560px) { .sim-hist-item { flex-direction: column; align-items: stretch; } .sim-hist-actions > .btn { flex: 1; } }

/* Simulador: solar */
.sim-solar { display: flex; gap: .5rem; align-items: flex-start; padding: .75rem .875rem; border-radius: var(--ef-radius); background: var(--ef-warning-muted); font-size: .875rem; line-height: 1.45; }
.sim-solar svg { flex: none; margin-top: .15rem; color: var(--ef-warning); }
.prp-prods { display: grid; gap: .5rem; }
@media (min-width: 560px) { .prp-prods { grid-template-columns: 1fr 1fr; } }
.prp-prod { display: flex; gap: .625rem; align-items: flex-start; padding: .75rem .875rem; border: 1px solid var(--ef-border-strong); border-radius: var(--ef-radius); cursor: pointer; }
.prp-prod:has(input:checked) { border-color: var(--ef-primary, #E9B923); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ef-primary, #E9B923) 35%, transparent); }
.prp-prod.disabled { opacity: .55; cursor: not-allowed; }
.prp-prod input { margin-top: .2rem; accent-color: var(--ef-primary, #E9B923); width: 1.1rem; height: 1.1rem; }
.prp-prod span { display: grid; gap: .15rem; } .prp-prod small { font-size: .75rem; color: var(--ef-muted-fg); }
.prp-preview img + img { margin-top: .75rem; }

/* Rede: cada nível da árvore com um tom suave de verde (repete a partir do 7º), só para diferenciar um nível do outro */
.uni-tree { --tone-0: #E9B923; --tone-1: #6ee7a0; --tone-2: #34d399; --tone-3: #E9B923; --tone-4: #86efac; --tone-5: #4ade80; --tone-a: 8%; --tone-bar: 55%; }
[data-theme="light"] .uni-tree { --tone-0: #C49A1C; --tone-1: #3fbf7a; --tone-2: #1f9e6e; --tone-3: #B28D1E; --tone-4: #4cc27a; --tone-5: #22a45a; --tone-a: 9%; }
.uni-node > .uni-row {
  background:
    linear-gradient(90deg, transparent calc(var(--lvl) * var(--indent) + .25rem), color-mix(in srgb, var(--tone) var(--tone-bar), transparent) 0 calc(var(--lvl) * var(--indent) + .25rem + 3px), transparent 0),
    linear-gradient(90deg, transparent calc(var(--lvl) * var(--indent) + .25rem), color-mix(in srgb, var(--tone) var(--tone-a), transparent) 0);
}
.uni-node > .uni-row:hover { background-color: color-mix(in srgb, var(--tone) calc(var(--tone-a) + 6%), transparent); }
.uni-node.uni-hl > .uni-row { background: var(--ef-accent); box-shadow: inset 3px 0 0 var(--ef-primary); }
.uni-node .uni-avatar { background: color-mix(in srgb, var(--tone) 22%, var(--ef-card)); border-color: color-mix(in srgb, var(--tone) 45%, var(--ef-border)); }
@media (max-width: 767px) { .uni-metrics > div { min-width: 0; } .uni-metrics dt { white-space: normal; line-height: 1.2; } .uni-metrics dd small { display: block; line-height: 1.2; } }
/* Rede: linha "Nº nível · entrou em … · acessou …" de cada pessoa em verde fosforescente (no tema claro, verde escuro para dar leitura) */
.uni-meta { color: #E9B923; text-shadow: 0 0 6px color-mix(in srgb, #E9B923 45%, transparent); }
[data-theme="light"] .uni-meta { color: #7D5E00; text-shadow: none; }

/* Push: faixa "Ativar" no painel do sininho */
.bell-push { display: flex; align-items: center; gap: .5rem; margin: 0 .75rem .5rem; padding: .625rem .75rem; border-radius: 10px; background: var(--ef-accent); color: var(--ef-accent-fg); }
.bell-push svg { flex: none; }
.push-opt { display: flex; gap: .625rem; align-items: flex-start; padding: .75rem .875rem; border: 1px solid var(--ef-border-strong); border-radius: var(--ef-radius); cursor: pointer; }
.push-opt input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--ef-primary-ink); flex: none; }
.push-opt span { display: grid; gap: .15rem; } .push-opt small { font-size: .75rem; color: var(--ef-muted-fg); }

/* Botão "+" de ação rápida (só no celular, acima da barra de baixo) */
.fab { position: fixed; z-index: 40; right: max(1rem, env(safe-area-inset-right)); bottom: calc(4.25rem + env(safe-area-inset-bottom)); width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ef-primary); color: var(--ef-primary-fg); border: 0; box-shadow: 0 8px 22px rgb(0 0 0 / .35), 0 0 0 4px color-mix(in srgb, var(--ef-primary) 18%, transparent); cursor: pointer; transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.fab:active { transform: scale(.94); }
.fab svg { width: 1.6rem; height: 1.6rem; }
@media (min-width: 1024px) { .fab { display: none; } }
body:has(.dialog-overlay, .sheet-overlay, .launcher, .fab-sheet, #install-banner, .update-banner) .fab { display: none; }
.fab-sheet { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .55); display: flex; align-items: flex-end; justify-content: center; animation: fab-in .16s ease-out; }
.fab-sheet.closing { opacity: 0; transition: opacity .15s; }
.fab-panel { width: 100%; max-width: 32rem; max-height: 85dvh; display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: var(--ef-card); border: 1px solid var(--ef-border-strong); border-bottom: 0; }
@keyframes fab-in { from { opacity: 0; } to { opacity: 1; } }
.fab-head { display: flex; align-items: center; justify-content: space-between; }
.fab-list { display: grid; gap: .5rem; }
.fab-item, .fab-contact { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; padding: .75rem .875rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); color: var(--ef-fg); cursor: pointer; }
.fab-item:hover, .fab-item:focus-visible, .fab-contact:hover, .fab-contact:focus-visible { border-color: var(--ef-primary-ink); outline: none; }
.fab-item .grow, .fab-contact .grow { display: grid; gap: .1rem; min-width: 0; }
.fab-ico { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; background: var(--ef-accent); color: var(--ef-accent-fg); }
.fab-contacts { overflow-y: auto; display: grid; gap: .375rem; min-height: 6rem; max-height: 50dvh; }
.fab-av { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--ef-accent); color: var(--ef-accent-fg); font-weight: 700; font-size: .875rem; }
.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--ef-primary); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* o conteúdo não fica escondido atrás do botão no fim da página */
@media (max-width: 1023px) { .content { padding-bottom: 7.5rem; } }

/* Meu dia: primeiros passos (primeiro acesso guiado), compacto */
.onb { padding: .625rem .75rem; border-color: color-mix(in srgb, var(--ef-primary) 40%, var(--ef-border)); }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.onb-top .i { vertical-align: -2px; }
.onb-bar { height: .375rem; border-radius: 999px; background: var(--ef-card-muted); overflow: hidden; }
.onb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ef-primary); transition: width .4s; }
.onb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; }
.onb-step, .onb-step a { display: flex; align-items: center; gap: .375rem; min-width: 0; }
.onb-step { padding: .375rem .5rem; border-radius: 10px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); }
.onb-step a { flex: 1; color: inherit; }
.onb-step a > .i:last-child { margin-left: auto; flex: none; color: var(--ef-muted-fg); }
.onb-step.next { border-color: var(--ef-primary-ink); }
.onb-step .xs { line-height: 1.25; }
.onb-step.done .xs { text-decoration: line-through; color: var(--ef-muted-fg); }
.onb-num { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ef-accent); color: var(--ef-accent-fg); }
.onb-step.done .onb-num { background: var(--ef-success); color: var(--ef-primary-fg); }
@media (max-width: 560px) { .onb-list { grid-template-columns: minmax(0, 1fr); } }

/* Meu dia: uma coluna no celular (ordem de sempre); duas colunas no computador */
.md-cols { display: flex; flex-direction: column; gap: 1.5rem; }
.md-main, .md-side { display: contents; }
.md-item { min-width: 0; }
@media (min-width: 1200px) {
  .content:has(.md-cols) { max-width: 84rem; }
  .md-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 1fr); align-items: start; }
  .md-main, .md-side { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
  .md-side .msg-row { grid-template-columns: minmax(0, 1fr); }
}
.side-card .h2 { font-size: 1rem; }
.side-events { display: grid; gap: .5rem; }
.side-event { display: flex; gap: .75rem; align-items: center; padding: .5rem; border-radius: 12px; color: inherit; }
.side-event:hover { background: var(--ef-card-muted); }
.side-event .grow { display: grid; gap: .1rem; min-width: 0; }
.side-date { flex: none; width: 3rem; padding: .35rem 0; border-radius: 10px; text-align: center; background: var(--ef-accent); color: var(--ef-accent-fg); display: grid; line-height: 1.1; }
.side-date b { font-size: 1.125rem; } .side-date span { font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; }
.side-next { display: flex; gap: .75rem; align-items: center; padding: .75rem; border-radius: 12px; background: var(--ef-card-muted); }
.side-next .grow { display: grid; gap: .1rem; min-width: 0; }
.side-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.side-kpis div { display: grid; padding: .625rem .75rem; border-radius: 12px; background: var(--ef-card-muted); }
.side-kpis b { font-size: 1.375rem; font-variant-numeric: tabular-nums; } .side-kpis span { font-size: .75rem; color: var(--ef-muted-fg); }
@media (min-width: 1200px) { .md-side .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md-side .quick-label { overflow-wrap: normal; } }

/* Vídeo de boas-vindas (janela suspensa) */
.bv-overlay { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); background: rgb(0 0 0 / .72); backdrop-filter: blur(4px); animation: fab-in .18s ease-out; }
.bv-overlay.closing { opacity: 0; transition: opacity .15s; }
.bv-box { position: relative; width: min(100%, 52rem); max-height: 100%; overflow: auto; border-radius: 18px; background: var(--ef-card); border: 1px solid var(--ef-border-strong); box-shadow: 0 24px 60px rgb(0 0 0 / .5); }
.bv-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.bv-frame .bv-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.bv-frame-admin { border-radius: 12px; overflow: hidden; }
.bv-frame-admin .empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem; background: var(--ef-card-muted); }
.bv-body { display: grid; gap: .5rem; padding: 1rem 1.25rem 1.25rem; }
.bv-title { font-family: var(--ef-font-head); font-size: 1.25rem; font-weight: 700; margin: 0; }
.bv-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }
.bv-x { position: absolute; z-index: 2; top: .5rem; right: .5rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgb(0 0 0 / .6); color: #fff; cursor: pointer; }
@media (max-width: 560px) { .bv-actions .btn { flex: 1; } }
body:has(.bv-overlay) .fab { display: none; }

/* Sua Jornada: aula aberta no topo, blocos da trilha abaixo (2 colunas no computador) */
.aula-frame { border-radius: 12px; overflow: hidden; }
.aula-blocks { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) { .aula-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vídeo em arquivo (ex.: vertical, gravado no celular): sem moldura 16:9, ocupa a altura disponível */
.bv-frame:has(video) { aspect-ratio: auto; display: grid; place-items: center; }
.bv-frame video.bv-video { position: static; width: 100%; height: auto; max-height: min(70dvh, 44rem); object-fit: contain; }

/* Admin › Configurações › Menu do app */
.menu-toggles { display: grid; gap: .375rem; }
@media (min-width: 900px) { .menu-toggles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.menu-toggle { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); cursor: pointer; }
.menu-toggle.fixo { opacity: .7; cursor: default; }
.menu-toggle .grow { display: grid; min-width: 0; }
.menu-toggle:has([data-menu-href]:not(:checked)) .menu-ico { opacity: .4; }
.menu-ico { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center; background: var(--ef-accent); color: var(--ef-accent-fg); }

/* ===== Desafio 7x7 ===== */
.d7-cols { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1100px) { .d7-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.d7-laps, .d7-cands, .d7-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.d7-lap, .d7-cands a, .d7-rank li { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); color: inherit; }
.d7-lap .grow, .d7-cands .grow, .d7-rank .grow { display: grid; min-width: 0; }
.d7-lap-n { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8125rem; background: var(--ef-accent); color: var(--ef-accent-fg); }
.d7-lap.feita .d7-lap-n { background: var(--ef-primary); color: var(--ef-primary-fg); }
.d7-lap.atual { border-color: var(--ef-primary-ink); }
.d7-lap.futura { opacity: .75; }
.d7-lap-val { display: grid; text-align: right; } .d7-lap-val b { font-size: 1.125rem; } .d7-lap-val small { font-size: .6875rem; color: var(--ef-muted-fg); }
.d7-cands a:hover { border-color: var(--ef-primary-ink); }
.d7-rules { display: grid; gap: .625rem; }
@media (min-width: 640px) { .d7-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d7-rule { display: flex; gap: .75rem; padding: .75rem; border-radius: 12px; background: var(--ef-card-muted); }
.d7-rule-ic { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center; background: var(--ef-accent); color: var(--ef-accent-fg); }
.d7-prize { display: flex; gap: .5rem; align-items: flex-start; padding: .75rem .875rem; border-radius: 12px; border: 1px solid var(--ef-primary-ink); background: color-mix(in srgb, var(--ef-primary) 8%, transparent); }
.d7-faq details { border-top: 1px solid var(--ef-border); padding: .625rem 0; } .d7-faq summary { cursor: pointer; } .d7-faq p { margin: .375rem 0 0; }
.d7-sim { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .d7-sim { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.d7-slider input { width: 100%; accent-color: var(--ef-primary-ink); }
.d7-sim-out { display: grid; gap: .625rem; align-content: start; padding: 1rem; border-radius: 14px; background: var(--ef-card-muted); }
.d7-sim-big { display: flex; align-items: baseline; gap: .5rem; } .d7-sim-big b { font-family: var(--ef-font-head); font-size: 2.75rem; line-height: 1; }
.d7-sim-big.ok b { color: var(--ef-primary-ink); } .d7-sim-big span { color: var(--ef-muted-fg); }
.d7-bars { position: relative; height: 9rem; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; border-bottom: 1px solid var(--ef-border-strong); margin-top: 1rem; }
.d7-bar { position: relative; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--ef-primary-ink) 45%, transparent); }
.d7-bar.ok { background: var(--ef-primary-ink); }
.d7-bar b { position: absolute; bottom: 100%; left: 0; right: 0; text-align: center; font-size: .6875rem; color: var(--ef-muted-fg); padding-bottom: 2px; }
.d7-goal-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--ef-warning); pointer-events: none; }
.d7-goal-line em { position: absolute; right: 0; bottom: 2px; font-size: .625rem; font-style: normal; color: var(--ef-warning); }
.d7-bars-x { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; text-align: center; font-size: .6875rem; color: var(--ef-muted-fg); }
.d7-pos { flex: none; width: 2rem; font-weight: 700; text-align: center; }
.d7-rank li.p1 .d7-pos { color: #eab308; } .d7-rank li.p2 .d7-pos { color: #94a3b8; } .d7-rank li.p3 .d7-pos { color: #c2743b; }
.d7-rank li.voce { border-color: var(--ef-primary-ink); }
.d7-rank-n { white-space: nowrap; } .d7-rank-n b { font-size: 1.125rem; }

/* Autorização da agenda */
.agenda-consent { display: grid; gap: .75rem; justify-items: start; }
.agenda-ic { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: var(--ef-accent); color: var(--ef-accent-fg); }
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.agenda-list li { display: flex; gap: .5rem; align-items: flex-start; } .agenda-list li > svg { flex: none; margin-top: .15rem; color: var(--ef-primary-ink); }

/* ===== Menu de baixo flutuante (como no Instagram): cápsula de vidro fosco, solta das bordas, presa ao pé da tela;
   o item ativo ganha uma pílula. Vale só no celular (no computador o menu é a barra lateral). */
@media (max-width: 1023px) {
  :root { --nav-gap: max(12px, env(safe-area-inset-bottom)); --nav-h: 64px; }
  .bottomnav {
    left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: var(--nav-gap);
    width: auto; max-width: 30rem; margin: 0 auto; height: var(--nav-h); padding: 5px; gap: 0; align-items: stretch;
    border: 1px solid color-mix(in srgb, var(--ef-primary) 18%, rgba(255, 255, 255, .10)); border-radius: 999px;
    background: color-mix(in srgb, var(--ef-card) 30%, transparent);
    backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
  }
  .bottomnav a { justify-content: center; gap: 2px; padding: 0 1px; border-radius: 999px; font-size: 10px; letter-spacing: -.01em; line-height: 1.1; min-width: 0; transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
  .bottomnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottomnav a.active { background: color-mix(in srgb, var(--ef-primary) 20%, transparent); color: var(--ef-primary-ink); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ef-primary) 38%, transparent); }
  .bottomnav a:active { transform: scale(.96); }
  [data-theme="light"] .bottomnav { background: color-mix(in srgb, #ffffff 68%, transparent); border-color: rgba(23, 31, 47, .10); box-shadow: 0 10px 30px rgba(20, 27, 40, .16), inset 0 1px 0 rgba(255, 255, 255, .8); }
  [data-theme="light"] .bottomnav a.active { background: color-mix(in srgb, var(--ef-primary) 45%, transparent); color: var(--ef-accent-fg); box-shadow: none; }
  /* o que fica acima do menu acompanha a cápsula */
  .content { padding-bottom: calc(var(--nav-h) + var(--nav-gap) + 2rem); }
  .fab { bottom: calc(var(--nav-h) + var(--nav-gap) + 14px); }
  .install-banner { bottom: calc(var(--nav-h) + var(--nav-gap) + 12px); }
  .toast-wrap { bottom: calc(var(--nav-h) + var(--nav-gap) + 14px); }
}
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
  :root { --nav-h: 48px; }
  .bottomnav a { flex-direction: row; gap: .375rem; }
}
@media (prefers-reduced-transparency: reduce) { .bottomnav { background: var(--ef-card); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Tema claro: o topo do app usa as cores do tema escuro (faixa de marca verde-escura com lima).
   As variáveis são redefinidas só dentro do topo; o painel de notificações e o resto da página seguem claros. */
[data-theme="light"] .topbar {
  --ef-bg: #06080D; --ef-fg: #F7F5EF; --ef-card: #0F141D; --ef-card-muted: #0B0F17; --ef-muted-fg: #B3AE9F;
  --ef-border: rgba(233, 185, 35, 0.16); --ef-border-strong: rgba(233, 185, 35, 0.28);
  --ef-ring: #E9B923; --ef-primary-ink: #E9B923; --ef-accent: rgba(233, 185, 35, 0.12); --ef-accent-fg: #E9B923;
  --ef-sidebar-accent: rgba(233, 185, 35, 0.12);
  color: var(--ef-fg); color-scheme: dark;
  background: color-mix(in srgb, #0F141D 94%, transparent);
}


/* Simulador de Bônus */
.sb-rank { width: auto; min-width: 12rem; }
.sb-venda { display: grid; gap: .5rem; }
.sb-venda .between { align-items: flex-end; }
.sb-regra { margin: 0; }
.sb-campos { display: grid; gap: .5rem .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-items: end; }
/* rótulo em cima, campo embaixo: se um rótulo quebrar em duas linhas, os campos da mesma linha continuam alinhados pela base */
.sb-campos .field { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.sb-campos .label { line-height: 1.25; }
.sb-campos .field + .field { margin-top: 0; }
.sb-venda-res { margin: 0; padding-top: .5rem; border-top: 1px dashed var(--ef-border); }
.sb-venda-res b { color: var(--ef-primary-ink); }
[data-theme="light"] .sb-venda-res b { color: var(--ef-accent-fg); }
.sb-tab td, .sb-tab th { padding: .5rem .625rem; }
.sb-tab .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-n { min-width: 3.25rem; padding-left: .5rem; padding-right: .5rem; text-align: right; font-variant-numeric: tabular-nums; }
.sb-money { min-width: 5.5rem; }
.sb-tab th { white-space: normal; line-height: 1.2; }
@media (max-width: 480px) { .sb-tab td, .sb-tab th { padding: .4rem .35rem; } .sb-tab { font-size: .8125rem; } }
.sb-cad { table-layout: fixed; }
.sb-cad .sb-c1 { width: 4.5rem; }
.sb-cad .sb-n { width: 100%; min-width: 0; }
.sb-cad tfoot td { font-size: .8125rem; }
@media (max-width: 480px) { .sb-cad .sb-c1 { width: 3.4rem; } .sb-cad tfoot td { font-size: .6875rem; } .sb-cad th { font-size: .625rem; letter-spacing: .04em; } }
.sb-off td { color: var(--ef-muted-fg); }
.sb-off .input { opacity: .45; }
.sb-d7 { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.sb-d7 > div { display: grid; gap: .125rem; padding: .75rem .875rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card); }
.sb-d7 b { font-family: var(--ef-font-head); font-size: 1.25rem; }
.sb-niveis { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.sb-niveis li { display: flex; justify-content: space-between; gap: .75rem; padding: .375rem 0; border-bottom: 1px solid var(--ef-border); font-size: .875rem; }
.sb-niveis li:last-child { border-bottom: 0; }
.sb-niveis b { font-variant-numeric: tabular-nums; }
.sb .stat .val { font-size: 1.375rem; }
.sb-d7-grid { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; }
.sb-d7-grid .field + .field { margin-top: 0; }
.sb-seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.sb-seg .filter { padding: .5rem 1rem; font-size: .875rem; font-weight: 600; }
.sb-step { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-top: 1px solid var(--ef-border); }
.sb-step:first-of-type { border-top: 0; padding-top: 0; }
.sb-step .grow { display: grid; line-height: 1.25; }
.sb-step .sb-n { width: 3.75rem; min-width: 0; text-align: center; }
.sb-step .btn-icon { font-size: 1.125rem; line-height: 1; }
.sb-d7-meta { display: grid; gap: .375rem; }

/* Carregamento: símbolo da Enerzee acendendo em sequência (no lugar do "Carregando…" em texto) */
.loading { flex-direction: column; gap: .75rem; font-size: .8125rem; }
.ld-mark { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; }
.ld-mark::before { content: ''; position: absolute; inset: -.5rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ef-primary) 24%, transparent), transparent 68%); animation: sp-glow 2.4s ease-in-out infinite; }
.ld-mark svg { position: relative; width: 2.5rem; height: 2.5rem; color: var(--ef-primary-ink); }
[data-theme="light"] .ld-mark svg { color: var(--ef-accent-fg); }
.ld-mark path { opacity: .22; animation: sp-charge 1.6s ease-in-out infinite; }
.ld-mark path:nth-child(2) { animation-delay: .2s; } .ld-mark path:nth-child(3) { animation-delay: .4s; } .ld-mark path:nth-child(4) { animation-delay: .6s; }
@keyframes sp-charge { 0%, 100% { opacity: .22; } 35%, 60% { opacity: 1; } }
@keyframes sp-glow { 0%, 100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }

/* Barra de progresso no topo ao trocar de página */
.route-bar { position: fixed; z-index: 200; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; opacity: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ef-primary), #F4CF5A); box-shadow: 0 0 10px color-mix(in srgb, var(--ef-primary) 70%, transparent); }
.route-bar.on { opacity: 1; animation: rb-grow 8s cubic-bezier(.1, .7, .2, 1) forwards; }
.route-bar.done { opacity: 0; transform: scaleX(1); transition: transform .2s ease-out, opacity .3s .15s; }
@keyframes rb-grow { from { transform: scaleX(0); } 15% { transform: scaleX(.45); } to { transform: scaleX(.92); } }
@supports (padding: env(safe-area-inset-top)) { .route-bar { top: env(safe-area-inset-top); } }
@media (prefers-reduced-motion: reduce) { .ld-mark path { opacity: 1; animation: none; } .ld-mark::before { animation: none; } .route-bar.on { animation: none; transform: scaleX(.6); } }
#telemetria7x7 { scroll-margin-top: 5rem; }
/* Envio de mensagens sozinho na linha (card de Gamificação oculto): lista com altura própria, sem depender do vizinho */
@media (min-width: 1024px) { .msg-row.solo .msg-scroll { flex: none; height: auto; max-height: 24rem; } }

/* Agenda: janela de convite pelo WhatsApp (arte + mensagem) */
.inv-box { display: grid; gap: .75rem; }
.inv-art { width: 100%; max-height: 16rem; object-fit: contain; border-radius: 12px; background: var(--ef-card-muted); border: 1px solid var(--ef-border); }
.inv-text { margin: 0; max-height: 9rem; overflow: auto; white-space: pre-wrap; font: .8125rem/1.5 Inter, system-ui, sans-serif; padding: .625rem .75rem; border-radius: 10px; background: var(--ef-card-muted); border: 1px solid var(--ef-border); }
.inv-actions { display: grid; gap: .5rem; justify-items: stretch; }
.inv-actions .btn-ghost { justify-self: center; }
.inv-actions .hint { margin: 0; }
.sb-total-big { display: grid; gap: .125rem; }
.sb-total-big b { font-family: var(--ef-font-head); font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.1; color: var(--ef-primary-ink); }
[data-theme="light"] .sb-total-big b { color: var(--ef-fg); }
.sb-bar { display: flex; height: .625rem; border-radius: 999px; overflow: hidden; background: var(--ef-card-muted); gap: 2px; }
.sb-bar i { display: block; height: 100%; min-width: 3px; }
.sb-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 3px; margin-right: .5rem; vertical-align: 0; }
.sb-sub { display: block; margin-left: 1.1rem; }
.sb-total > .between { flex-wrap: wrap; }
.sb-total .sb-seg { flex-wrap: nowrap; gap: .375rem; }
.sb-total .sb-seg .filter { padding: .35rem .7rem; font-size: .8125rem; white-space: nowrap; }
/* iPhone: acompanha a área realmente visível quando o iOS erra a altura da tela (ver app.js, --vv-down) */
.bottomnav, .fab, .install-banner, .toast-wrap { translate: 0 var(--vv-down, 0px); }

/* Agenda: categorias de eventos */
.ev-cat { background: color-mix(in srgb, var(--cat) 16%, transparent); border-color: color-mix(in srgb, var(--cat) 45%, transparent); color: var(--ef-fg); }
.ev-cat i, .ev-filtro i { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--cat); margin-right: .1rem; }
.ev-filtros { gap: .5rem; }
.ev-filtro { display: inline-flex; align-items: center; gap: .35rem; }
.cat-lista { display: grid; gap: .5rem; }
.cat-item { display: grid; gap: .5rem; padding: .625rem .75rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); }
.cat-item .cat-nome { flex: 1; min-width: 0; padding-top: .35rem; padding-bottom: .35rem; }
.cat-dot { flex: none; width: .875rem; height: .875rem; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 25%, transparent); }
.cat-n { flex: none; white-space: nowrap; }
.cat-cores { display: flex; flex-wrap: wrap; gap: .375rem; }
.cat-cor span { display: block; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--cat); cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.cat-cor input:checked + span { border-color: var(--ef-fg); box-shadow: 0 0 0 2px var(--ef-card); }
.cat-cor input:focus-visible + span { outline: 2px solid var(--ef-ring); outline-offset: 2px; }
.cat-nova { display: grid; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--ef-border-strong); }
@media (max-width: 480px) { .cat-n { display: none; } }
/* Agenda: vídeo do evento */
.event-video { display: block; width: 100%; max-height: 22rem; border-radius: 12px; background: #000; margin-top: .25rem; }
.ev-video-box p { margin: 0; overflow-wrap: anywhere; }
.ev-vprog { margin-top: .5rem; }
/* Evento só com vídeo: o vídeo ocupa o lugar da arte (lateral no computador, topo no celular) */
.event-creative.is-video { background: #000; }
.event-creative.is-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.event-creative.is-video .event-date { pointer-events: none; z-index: 1; }
@media (min-width: 601px) { .event.has-creative .event-creative.is-video { width: 15rem; min-height: 20rem; } }
@media (max-width: 600px) { .event-creative.is-video { aspect-ratio: 4 / 5; max-height: 70vh; } }
/* Admin › Menu do app: opção "Só admins" por item */
.menu-soadm { display: inline-flex; align-items: center; gap: .35rem; flex: none; font-size: .75rem; font-weight: 500; color: var(--ef-muted-fg); padding: .25rem .5rem; border-radius: 999px; border: 1px solid var(--ef-border); cursor: pointer; white-space: nowrap; }
.menu-soadm input { width: .9rem; height: .9rem; accent-color: var(--ef-primary-ink); margin: 0; }
.menu-soadm:has(input:checked) { color: var(--ef-fg); border-color: var(--ef-border-strong); background: var(--ef-accent); }
.menu-soadm.off { opacity: .45; cursor: not-allowed; }
/* Prospecção › Contatos: busca por nome ou telefone */
.busca-contatos { position: relative; display: flex; align-items: center; }
.busca-contatos > svg { position: absolute; left: .875rem; color: var(--ef-muted-fg); pointer-events: none; }
.busca-contatos .input { padding-left: 2.5rem; padding-right: 6.5rem; height: 2.75rem; border-radius: 999px; }
.busca-contatos [data-busca-info] { position: absolute; right: 1rem; pointer-events: none; }
body:has(.dialog-overlay, .sheet-overlay, .launcher) .install-banner { display: none; } /* o aviso de instalar não cobre janelas abertas */

/* Convite do evento no computador: passos numerados (imagem, WhatsApp, mensagem na legenda) */
.inv-passos { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.inv-passos li { display: grid; gap: .3rem; }
.inv-passos li[hidden] { display: none; }

/* Olho nos campos de senha */
.senha-wrap { position: relative; }
.senha-wrap .input { padding-right: 2.75rem; }
.senha-olho { position: absolute; top: 50%; right: .375rem; transform: translateY(-50%); width: 2.125rem; height: 2.125rem; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ef-muted-fg); cursor: pointer; }
.senha-olho:hover, .senha-olho:focus-visible { color: var(--ef-primary-ink); background: var(--ef-accent); outline: none; }
.senha-olho svg { width: 1.125rem; height: 1.125rem; }

/* App instalado: sem zoom de toque duplo (a pinça é travada no index.html) */
html.app-instalado, html.app-instalado body { touch-action: pan-x pan-y; }
html.app-instalado a, html.app-instalado button, html.app-instalado input, html.app-instalado select, html.app-instalado textarea, html.app-instalado label { touch-action: manipulation; }

/* Material de Apoio: selos de ação (Assistir / Encaminhar pelo WhatsApp) e janela do vídeo */
.mat-acoes { margin-top: .625rem; gap: .5rem; }
.selo { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .875rem .3rem .3rem; border-radius: 999px; font: 600 .8125rem/1.2 var(--ef-font-head); cursor: pointer; border: 1px solid transparent; transition: transform .12s, filter .15s; -webkit-tap-highlight-color: transparent; }
.selo:active { transform: scale(.97); }
.selo:hover { filter: brightness(1.06); }
.selo:focus-visible { outline: 2px solid var(--ef-ring); outline-offset: 2px; }
.selo-ic { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; flex: none; }
.selo-assistir { background: var(--ef-primary); color: var(--ef-primary-fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ef-primary) 18%, transparent); }
.selo-assistir .selo-ic { background: var(--ef-primary-fg); color: var(--ef-primary); }
.selo-whats { background: #25d366; color: #fff; box-shadow: 0 0 0 3px rgba(37, 211, 102, .18); }
.selo-whats .selo-ic { background: #fff; color: #128c4a; }
.watch-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.watch-frame.vertical { aspect-ratio: 9 / 16; max-height: 70dvh; width: auto; margin: 0 auto; }
.watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Enerzee TV (estilo YouTube) ===== */
.tv { display: grid; gap: 1.25rem; min-width: 0; }
.tv-topo { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; }
.tv-marca { display: flex; align-items: center; gap: .625rem; }
.tv-logo { display: inline-grid; place-items: center; width: 2.25rem; height: 1.6rem; border-radius: 8px; background: var(--ef-primary); color: var(--ef-primary-fg); }
.tv-logo svg { width: .95rem; height: .95rem; fill: currentColor; }
.tv-busca { display: flex; align-items: center; gap: .5rem; flex: 1 1 16rem; max-width: 28rem; padding: 0 .875rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--ef-border-strong); background: var(--ef-input-bg); color: var(--ef-muted-fg); }
.tv-busca:focus-within { border-color: var(--ef-ring); }
.tv-busca input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ef-fg); font: inherit; outline: none; }
.tv-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: -.25rem 0; }
.tv-chips::-webkit-scrollbar { display: none; }
.tv-chips .filter { flex: none; }
.tv-sec { display: grid; gap: .75rem; min-width: 0; }
.tv-sec .h2 { display: flex; align-items: center; gap: .5rem; }
/* miniatura 16:9 */
.tv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--ef-border); }
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tv-thumb-vazia { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ef-primary); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--ef-primary) 18%, transparent), transparent 70%), var(--ef-card-muted); }
.tv-thumb-vazia svg { width: 2rem; height: 2rem; }
.tv-dur { position: absolute; right: .4rem; bottom: .4rem; padding: .1rem .35rem; border-radius: 6px; background: rgba(0, 0, 0, .82); color: #fff; font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tv-visto { position: absolute; left: .4rem; top: .4rem; display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .4rem; border-radius: 6px; background: rgba(0, 0, 0, .78); color: var(--ef-primary); font-size: .7rem; font-weight: 600; }
.tv-visto svg { width: .8rem; height: .8rem; }
.tv-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.tv-barra i { display: block; height: 100%; background: var(--ef-primary); }
/* cartão (miniatura + texto) */
.tv-card { display: grid; gap: .5rem; min-width: 0; color: inherit; text-decoration: none; }
.tv-card:hover .tv-thumb img, .tv-mini:hover .tv-thumb img, .tv-hero:hover .tv-thumb img { transform: scale(1.04); }
.tv-card:focus-visible .tv-thumb { outline: 2px solid var(--ef-ring); outline-offset: 2px; }
.tv-card-txt { display: grid; gap: .15rem; min-width: 0; }
.tv-card-txt b { font-weight: 600; font-size: .9375rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card-txt small { font-size: .78rem; color: var(--ef-muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem 1rem; }
.tv-linha { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 17rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; scrollbar-color: var(--ef-border-strong) transparent; }
.tv-linha > * { scroll-snap-align: start; }
/* destaque */
.tv-hero { position: relative; display: block; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; border: 1px solid var(--ef-border-strong); }
.tv-hero .tv-thumb { border: 0; border-radius: 0; aspect-ratio: 16 / 7; }
@media (max-width: 640px) { .tv-hero .tv-thumb { aspect-ratio: 16 / 10; } }
.tv-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 6, 9, .92) 100%); pointer-events: none; }
.tv-hero-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -60%); display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }
.tv-hero-play svg { width: 1.75rem; height: 1.75rem; fill: #fff; stroke: #fff; margin-left: 3px; }
.tv-hero-txt { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: .25rem; padding: 1.25rem 1.5rem; }
.tv-hero-txt .kicker { color: var(--ef-primary); }
.tv-hero-txt b { font: 700 clamp(1.15rem, 3.4vw, 1.9rem)/1.15 "Space Grotesk", Inter, sans-serif; letter-spacing: -.015em; text-wrap: balance; }
.tv-hero-txt small { color: rgba(255, 255, 255, .78); font-size: .8rem; }
/* página de assistir */
.tv-assistir { gap: .75rem; }
.tv-voltar { justify-self: start; }
.tv-cols { display: grid; gap: 1.5rem; min-width: 0; }
@media (min-width: 1180px) { .tv-cols { grid-template-columns: minmax(0, 1fr) 21rem; } .content:has(.tv-assistir) { max-width: 92rem; } }
.tv-principal { display: grid; gap: 0; min-width: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--ef-border-strong); background: var(--ef-card); align-self: start; }
.tv-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.tv-player iframe, .tv-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.tv-info { display: grid; gap: .5rem; padding: 1.25rem 1.5rem 1.5rem; }
.tv-info .kicker { color: var(--ef-primary-ink); }
.tv-titulo { margin: 0; font: 700 clamp(1.3rem, 3vw, 2rem)/1.2 "Space Grotesk", Inter, sans-serif; letter-spacing: -.015em; text-wrap: balance; }
.tv-acoes { margin-top: .25rem; }
.tv-desc { margin-top: .5rem; padding: .875rem 1rem; border-radius: 14px; background: var(--ef-card-muted); }
.tv-desc p { margin: 0; white-space: pre-line; color: var(--ef-muted-fg); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tv-desc.aberta p { display: block; }
.tv-desc .link { margin-top: .375rem; }
.tv-lado { display: grid; gap: .75rem; align-content: start; min-width: 0; }
.tv-seguir { display: grid; gap: .75rem; }
.tv-mini { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .625rem; color: inherit; text-decoration: none; align-items: start; }
.tv-mini .tv-thumb { border-radius: 10px; }
.tv-mini .tv-card-txt b { font-size: .875rem; }
/* admin */
.tv-adm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .5rem; }
.tv-adm-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 .5rem; padding: .5rem .5rem .5rem .875rem; border: 1px solid var(--ef-border); border-radius: 12px; background: var(--ef-card-muted); }
.tv-adm-cat b, .tv-adm-cat .xs { grid-column: 1; }
.tv-adm-cat .row { grid-column: 2; grid-row: 1 / span 2; }
.tv-adm-cat.off, .tv-adm-item.off { opacity: .6; }
.tv-adm-lista { display: grid; gap: .625rem; }
.tv-adm-item { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: .875rem; align-items: center; padding: .625rem; border: 1px solid var(--ef-border); border-radius: 14px; }
.tv-adm-item .tv-thumb { border-radius: 10px; }
.tv-adm-txt { display: grid; gap: .15rem; min-width: 0; }
.tv-adm-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-adm-acoes { display: flex; gap: .125rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .tv-adm-item { grid-template-columns: 6.5rem minmax(0, 1fr); } .tv-adm-acoes { grid-column: 1 / -1; justify-content: flex-start; } }
.tv-yt-prev { display: inline-flex; align-items: center; gap: .625rem; margin-top: .25rem; }
.tv-yt-prev img { width: 7rem; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-estrela svg { fill: none; color: var(--ef-muted-fg); }
.tv-estrela.on svg { fill: var(--ef-primary); color: var(--ef-primary-ink); }
.tv-hero + .tv-sec, .tv-hero + .tv-sec + .tv-sec { margin-top: .5rem; }
@media (max-width: 640px) { .tv-hero-play { width: 3.25rem; height: 3.25rem; transform: translate(-50%, -95%); } .tv-hero-play svg { width: 1.3rem; height: 1.3rem; } .tv-hero-txt { padding: 1rem; } }

/* zeeTV: Shorts (capa vertical) */
.tv-linha-short { grid-auto-columns: min(42%, 12.5rem); }
.tv-grade-short { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 12rem), 1fr)); gap: 1.25rem .75rem; }
.tv-short { display: grid; gap: .5rem; min-width: 0; color: inherit; text-decoration: none; }
.tv-short-capa { display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--ef-border); }
.tv-short-capa img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tv-short:hover .tv-short-capa img { transform: scale(1.04); }
.sh .sh-acao svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; }

/* janelas e avisos abertos a partir da tela de Shorts ficam por cima dela */
html.sh-aberto .dialog-overlay { z-index: 1100; }
html.sh-aberto .toast-wrap { z-index: 1200; }

/* Prospecção: escolher vídeo da zeeTV para enviar ao contato */
.tv-escolhas { display: grid; gap: .375rem; max-height: 55dvh; overflow-y: auto; margin-top: .625rem; }
.tv-escolha { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; align-items: center; width: 100%; text-align: left; padding: .375rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card-muted); color: var(--ef-fg); cursor: pointer; }
.tv-escolha:hover, .tv-escolha:focus-visible { border-color: var(--ef-primary-ink); outline: none; }
.tv-escolha-capa { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.tv-escolha-capa.vert { aspect-ratio: auto; height: 3.65rem; width: 2.05rem; justify-self: center; }
.tv-escolha-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-escolha b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .875rem; font-weight: 600; }
.tv-escolha small { display: block; font-size: .75rem; color: var(--ef-muted-fg); }

/* topo: seta ‹ para voltar, ao lado do logo */
.topbar-l { display: flex; align-items: center; gap: .125rem; min-width: 0; }
.topbar-voltar { margin-left: -.5rem; flex: none; color: var(--ef-primary-ink); }
.topbar-voltar svg { width: 1.6rem; height: 1.6rem; }
.topbar-l .brand { padding-left: .125rem; }

/* submenu do menu lateral (Meu dia, Prospecção): fonte maior, abre e fecha pela setinha */
.nav-sub a { font-size: .9rem; padding: .45rem .625rem; }
.nav-sub-seta { margin-left: auto; display: inline-grid; place-items: center; opacity: .75; transition: transform .2s; }
.nav-sub-seta.aberta { transform: rotate(90deg); }

/* envio guiado de arquivo + mensagem (convite da agenda, PDF da simulação) */
.ea { display: grid; gap: .75rem; padding: .875rem; border-radius: var(--ef-radius); border: 1px solid var(--ef-border-strong); background: var(--ef-card-muted); }
.ea-passos { margin: 0; padding-left: 1.25rem; display: grid; gap: .375rem; font-size: .875rem; line-height: 1.45; }
.ea-passos b { color: var(--ef-fg); }
.ea-ok { border-color: color-mix(in srgb, var(--ef-primary) 45%, var(--ef-border)); }
.ea-tit { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; color: var(--ef-primary-ink); }
[data-inv]:has(.ea-ok) [data-inv-text] { display: none; } /* depois de enviar a imagem, o "Enviar a mensagem" da caixa já cobre */

/* escolha do jeito de enviar (mensagem com link / imagem e mensagem / imagem com legenda) */
.eo-lista { display: grid; gap: .5rem; }
.eo-tit { margin: 0 0 .125rem; font-weight: 600; font-size: .875rem; }
.eo { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .75rem; align-items: center; width: 100%; text-align: left; padding: .75rem .875rem; border-radius: var(--ef-radius); border: 1px solid var(--ef-border-strong); background: var(--ef-card-muted); color: var(--ef-fg); cursor: pointer; font: inherit; }
.eo:hover:not(:disabled), .eo:focus-visible { border-color: var(--ef-primary-ink); outline: none; }
.eo:disabled { opacity: .6; cursor: wait; }
.eo.prim { border-color: color-mix(in srgb, var(--ef-primary) 55%, var(--ef-border)); background: color-mix(in srgb, var(--ef-primary) 10%, var(--ef-card-muted)); }
.eo-ic { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--ef-accent); color: var(--ef-accent-fg); }
.eo-txt { display: grid; gap: .15rem; min-width: 0; }
.eo-txt b { font-size: .9375rem; }
.eo-txt small { font-size: .78rem; color: var(--ef-muted-fg); line-height: 1.35; }
.eo-prep { color: var(--ef-primary-ink) !important; }

/* ---------- Conquistas: sala de troféus e banners ---------- */
.cq-hero { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; flex-wrap: wrap;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--cq-cor) 22%, transparent), transparent 60%), var(--ef-card); }
.cq-hero-trofeu { flex: none; width: 6.5rem; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--cq-cor) 45%, transparent)); }
.cq-kicker { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ef-muted-fg); }
.cq-hero-nome { margin: .1rem 0 .2rem; font: 700 clamp(1.6rem, 5vw, 2.25rem)/1.1 "Space Grotesk", Inter, sans-serif; letter-spacing: -.02em; }
.cq-prox { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .75rem; padding: .625rem .875rem; border-radius: 12px; font-size: .875rem;
  background: color-mix(in srgb, var(--cq-cor) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cq-cor) 30%, transparent); }
.cq-prox span { display: inline-flex; align-items: center; gap: .375rem; }
.cq-trofeu { display: block; width: 100%; height: auto; }
.cq-estante { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .75rem; }
.cq-item { position: relative; width: 100%; height: 100%; display: grid; justify-items: center; align-content: start; gap: .25rem; padding: 1rem .625rem .875rem; text-align: center;
  border-radius: 16px; border: 1px solid var(--ef-border); background: var(--ef-card); color: inherit; font: inherit; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.cq-item .cq-trofeu { width: 4.25rem; margin-bottom: .25rem; }
.cq-item b { font: 600 .9375rem/1.2 "Space Grotesk", Inter, sans-serif; }
.cq-item small { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; color: var(--ef-muted-fg); }
.cq-item.ok { background: radial-gradient(100% 70% at 50% 0%, color-mix(in srgb, var(--cq-cor) 16%, transparent), transparent 70%), var(--ef-card); }
.cq-item.ok .cq-trofeu { filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--cq-cor) 40%, transparent)); }
.cq-item.ok:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cq-cor) 60%, transparent); }
.cq-item.sel { border-color: var(--cq-cor); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cq-cor) 35%, transparent); }
.cq-item.bloq { opacity: .55; cursor: default; }
.cq-item.bloq:not(:disabled) { cursor: pointer; }
.cq-selo { position: absolute; top: .5rem; right: .5rem; font-size: .625rem; font-weight: 600; padding: .125rem .375rem; border-radius: 999px; background: color-mix(in srgb, var(--cq-cor) 20%, transparent); }
.cq-preview { display: grid; place-items: center; min-height: 14rem; border-radius: 14px; background: #05070A; overflow: hidden; }
.cq-preview img { display: block; width: 100%; max-width: 26rem; height: auto; }
.cq-preview.story img { max-width: 19rem; }
.cq-acoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.cq-acoes .btn { flex: 1 1 9rem; }
.cq-semfoto { display: flex; gap: .875rem; align-items: center; padding: .875rem; border-radius: 12px; border: 1px dashed var(--ef-border-strong); }
.cq-semfoto-ic { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: color-mix(in srgb, var(--ef-primary) 15%, transparent); }
.cq-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; }
.cq-stat { padding: 1rem 1.25rem; display: grid; gap: .25rem; }
.cq-stat b { font: 700 1.75rem/1.1 "Space Grotesk", Inter, sans-serif; }
.cq-mini { display: block; width: 3.25rem; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cq-mini img { display: block; width: 100%; border-radius: 6px; }
.cq-subidas { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cq-subidas li { padding: .5rem 0; border-bottom: 1px solid var(--ef-border); flex-wrap: wrap; }
@media (max-width: 480px) {
  .cq-hero { padding: 1rem; gap: .875rem; }
  .cq-hero-trofeu { width: 4.25rem; }
  .cq-estante { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .cq-item { padding: .75rem .375rem .625rem; border-radius: 14px; }
  .cq-item .cq-trofeu { width: 3rem; }
  .cq-item b { font-size: .78rem; }
  .cq-item small { font-size: .65rem; }
  .cq-selo { top: .3rem; right: .3rem; font-size: .55rem; }
}
.cq-prog { display: grid; gap: .5rem; }
.cq-pct { font: 700 1.1rem "Space Grotesk", Inter, sans-serif; color: var(--cq-cor); }
.cq-barra { height: .625rem; border-radius: 999px; background: color-mix(in srgb, var(--ef-fg) 10%, transparent); overflow: hidden; }
.cq-barra span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--cq-cor) 55%, transparent), var(--cq-cor)); box-shadow: 0 0 12px var(--cq-cor); }
.cq-req { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: .8125rem; }
.cq-req span { flex: 1; color: var(--ef-muted-fg); }
.cq-req small { font-size: .72rem; color: var(--ef-muted-fg); }
.cq-req small.ok { color: var(--ef-success); }
.cq-hero > .cq-prox { flex-basis: 100%; margin-top: 0; }
/* pins oficiais no lugar dos troféus */
.cq-pin { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.cq-pin.apagado { filter: grayscale(1) brightness(.55); opacity: .45; }
.cq-item .cq-pin { width: 5rem; margin-bottom: .25rem; }
.cq-item.ok .cq-pin { filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--cq-cor) 35%, transparent)); }
@media (max-width: 480px) { .cq-item .cq-pin { width: 3.75rem; } }

/* ---------- Admin: linha ascendente ---------- */
.asc-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.asc-opcao { width: 100%; display: grid; gap: .1rem; text-align: left; padding: .625rem .875rem; border-radius: 12px; border: 1px solid var(--ef-border); background: var(--ef-card); color: inherit; font: inherit; cursor: pointer; }
.asc-opcao:hover, .asc-opcao.sel { border-color: var(--ef-primary-ink); }
.asc-cadeia { list-style: none; margin: 0; padding: 0; position: relative; }
.asc-cadeia::before { content: ""; position: absolute; left: 1.125rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--ef-border-strong); }
.asc-item { position: relative; display: flex; align-items: center; gap: .875rem; padding: .625rem 0; }
.asc-nivel { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; font: 700 .875rem "Space Grotesk", Inter, sans-serif;
  background: var(--ef-card); border: 2px solid var(--ef-border-strong); color: var(--ef-fg); }
.asc-item.eu .asc-nivel { background: var(--ef-primary); border-color: var(--ef-primary); color: var(--ef-primary-fg); }
.asc-dados { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.asc-rotulo { flex: none; text-align: right; }
@media (max-width: 560px) { .asc-rotulo { display: none; } }

/* Conquistas: visualizador do banner (tocar num pin da sala de troféus) */
html.travado, html.travado body { overflow: hidden; }
.cq-visor { position: fixed; inset: 0; z-index: 900; display: grid; grid-template-rows: auto 1fr auto; gap: .75rem; padding: max(.75rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); background: rgba(3, 4, 7, .94); backdrop-filter: blur(6px); color: #F7F5EF; }
.cq-visor-topo { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font: 600 1.05rem "Space Grotesk", Inter, sans-serif; }
.cq-visor-x { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; }
.cq-visor-img { min-height: 0; overflow: hidden; display: grid; place-items: center; }
/* a imagem cabe inteira na tela (topo e botões ficam sempre visíveis) */
.cq-visor-img img { display: block; width: auto; height: auto; max-width: min(100%, 34rem); max-height: calc(100dvh - 15rem); object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px -30px rgba(233, 185, 35, .35); }
.cq-visor-pe { display: grid; gap: .75rem; justify-items: center; width: 100%; max-width: 32rem; margin: 0 auto; }
.cq-visor-pe .cq-acoes { width: 100%; }
/* Admin › Conquistas: filtros */
.cqa-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .875rem 1rem; }
.cqa-busca { position: relative; flex: 1 1 18rem; display: block; }
.cqa-busca svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--ef-muted-fg); pointer-events: none; }
.cqa-busca .input { padding-left: 2.25rem; width: 100%; }
.cqa-datas { display: flex; gap: .5rem; }
.cqa-datas label { display: grid; gap: .15rem; }
.cqa-datas .input { width: 10rem; }

/* "Acessar como": faixa fixa no topo, somente leitura */
.faixa-acesso { position: fixed; z-index: 1200; left: 50%; transform: translateX(-50%); top: max(.375rem, env(safe-area-inset-top)); display: flex; align-items: center; gap: .5rem; white-space: nowrap;
  max-width: calc(100vw - 1rem); padding: .25rem .25rem .25rem .75rem; border-radius: 999px; background: #f59e0b; color: #1c1300; font-size: .8125rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.faixa-acesso .btn { background: #1c1300; color: #fff; border-color: transparent; min-height: 0; padding: .3rem .75rem; }
@media (max-width: 480px) { .faixa-acesso .faixa-extra { display: none; } }
html.acessando-como body { box-shadow: inset 0 0 0 3px #f59e0b; }
/* Admin › Usuários: ficha */
.ficha-tit { margin: 1.125rem 0 .5rem; font: 600 .78rem Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ef-muted-fg); }
.ficha-acessar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .75rem .875rem; border-radius: 12px; background: var(--ef-accent); border: 1px solid var(--ef-border-strong); }
.ficha-acessos { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .8125rem; }

/* ---------- Admin › Permissões ---------- */
.perm-grade { display: grid; grid-template-columns: 18rem 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .perm-grade { grid-template-columns: 1fr; } }
.perm-perfis { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.perm-perfil { width: 100%; display: flex; align-items: center; gap: .5rem; text-align: left; padding: .625rem .75rem; border-radius: 12px; border: 1px solid var(--ef-border); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.perm-perfil .grow { display: grid; }
.perm-perfil small { color: var(--ef-muted-fg); font-size: .75rem; }
.perm-perfil.sel { border-color: var(--ef-primary-ink); background: var(--ef-accent); }
.perm-n { font: 700 .8rem Inter, sans-serif; padding: .125rem .5rem; border-radius: 999px; background: var(--ef-accent); color: var(--ef-primary-ink); }
.perm-grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .75rem; margin-top: 1rem; }
.perm-grupo { margin: 0; padding: .75rem .875rem; border: 1px solid var(--ef-border); border-radius: 14px; display: grid; gap: .375rem; }
.perm-grupo legend { padding: 0 .375rem; font: 600 .75rem Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ef-muted-fg); }
.perm-item { display: flex; gap: .625rem; align-items: flex-start; padding: .5rem; border-radius: 10px; cursor: pointer; }
.perm-item:hover { background: var(--ef-accent); }
.perm-item.fixo { cursor: default; opacity: .75; }
.perm-item input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--ef-primary); flex: none; }
.perm-item span { display: grid; gap: .1rem; }
.perm-item small { color: var(--ef-muted-fg); font-size: .75rem; }
.perm-salvar { position: sticky; bottom: 1rem; margin-top: 1rem; display: flex; align-items: center; justify-content: flex-end; gap: .5rem; padding: .625rem .75rem; border-radius: 14px; background: var(--ef-card); border: 1px solid var(--ef-border-strong); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.perm-salvar .small { margin-right: auto; }
.ficha-perm { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .75rem .875rem; border-radius: 12px; border: 1px solid var(--ef-border); }
/* Admin: títulos dos grupos do menu lateral */
.nav-grupo { margin: .875rem .75rem .25rem; font: 600 .66rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ef-muted-fg); opacity: .8; }
.nav-grupo:first-child { margin-top: .25rem; }

/* ---------- Ajuda (assistente de IA + chamados) ---------- */
.aj-chat { display: grid; grid-template-rows: 1fr auto; height: calc(100dvh - 15rem); min-height: 24rem; overflow: hidden; }
.aj-msgs, .aj-thread { overflow-y: auto; padding: 1rem; display: grid; gap: .625rem; align-content: start; }
.aj-thread { max-height: 50dvh; padding: .25rem 0; }
.aj-msg { display: flex; }
.aj-msg.eu { justify-content: flex-end; }
.aj-bolha { max-width: min(42rem, 88%); padding: .625rem .875rem; border-radius: 16px; background: var(--ef-card-muted); border: 1px solid var(--ef-border); font-size: .9rem; line-height: 1.5; }
.aj-bolha p { margin: 0 0 .375rem; } .aj-bolha p:last-child { margin-bottom: 0; }
.aj-bolha ul { margin: .25rem 0 .5rem 1.1rem; padding: 0; }
.aj-msg.eu .aj-bolha { background: var(--ef-accent); border-color: var(--ef-border-strong); border-bottom-right-radius: 4px; }
.aj-msg.ia .aj-bolha { border-bottom-left-radius: 4px; }
.aj-msg.interna .aj-bolha { border-style: dashed; background: color-mix(in srgb, var(--ef-warning) 10%, transparent); }
.aj-aviso { margin-top: .5rem; padding: .5rem .625rem; border-radius: 10px; background: color-mix(in srgb, var(--ef-warning) 14%, transparent); font-size: .8125rem; line-height: 1.45; }
.aj-aviso svg { vertical-align: -2px; margin-right: .25rem; }
.aj-util { margin-top: .5rem; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.aj-form { display: flex; gap: .5rem; align-items: flex-end; padding: .75rem; border-top: 1px solid var(--ef-border); }
.aj-form textarea { flex: 1; resize: none; min-height: 2.75rem; max-height: 9rem; }
.aj-digitando { display: flex; gap: .25rem; padding: .25rem 0; }
.aj-digitando span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ef-muted-fg); animation: aj-pula 1s infinite ease-in-out; }
.aj-digitando span:nth-child(2) { animation-delay: .15s; } .aj-digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes aj-pula { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.aj-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.aj-item { width: 100%; display: flex; align-items: center; gap: .75rem; text-align: left; padding: .75rem .875rem; border-radius: 14px; border: 1px solid var(--ef-border); background: var(--ef-card); color: inherit; font: inherit; cursor: pointer; }
.aj-item .grow { display: grid; gap: .1rem; }
@media (max-width: 640px) { .aj-chat { height: calc(100dvh - 17rem); } }
/* na Ajuda o campo de mensagem fica embaixo: o botão "+" flutuante sai do caminho */
body:has(.aj-chat:not([hidden])) .fab { display: none; }
/* Configurações › Menu do app: pessoas escolhidas de um item "só admins" */
.menu-pessoas { white-space: nowrap; }
.chip-pessoa { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .25rem .25rem .625rem; border-radius: 999px; background: var(--ef-accent); border: 1px solid var(--ef-border-strong); font-size: .8125rem; }
.chip-pessoa small { color: var(--ef-muted-fg); }
.chip-pessoa button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .375rem; }
.pessoas-sugestoes { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .25rem; }
.pessoa-opcao { width: 100%; display: grid; text-align: left; gap: .1rem; padding: .5rem .75rem; border-radius: 10px; border: 1px solid var(--ef-border); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pessoa-opcao:hover { border-color: var(--ef-primary-ink); }
.pessoa-opcao small { color: var(--ef-muted-fg); font-size: .75rem; }

/* Web, tema claro: menu lateral em verde Enerzee (os tokens são redefinidos só dentro do menu) */
@media (min-width: 1024px) {
  [data-theme="light"] .sidebar {
    --ef-sidebar: #1B2539; --ef-sidebar-fg: rgba(255, 255, 255, .86); --ef-sidebar-border: rgba(255, 255, 255, .12);
    --ef-sidebar-accent: rgba(233, 185, 35, .16); --ef-sidebar-accent-fg: #ffffff;
    --ef-fg: #ffffff; --ef-muted-fg: rgba(255, 255, 255, .62); --ef-border: rgba(255, 255, 255, .16); --ef-border-strong: rgba(255, 255, 255, .3);
    --ef-card: #212D46; --ef-card-muted: rgba(255, 255, 255, .08); --ef-accent: rgba(233, 185, 35, .14); --ef-accent-fg: #F4CF5A;
    --ef-primary-ink: #E9B923; --ef-ring: #E9B923; --ef-lime-dim: #E9B923;
    color: var(--ef-fg); color-scheme: dark;
  }
  [data-theme="light"] .sidebar { background: linear-gradient(180deg, #233049 0%, #1B2539 45%, #101520 100%); }
  [data-theme="light"] .sidebar .brand-mark { color: var(--ef-primary-ink); }
}

/* Web, tema escuro: coluna do menu em verde escuro */
@media (min-width: 1024px) { html:not([data-theme="light"]) .sidebar { background: linear-gradient(180deg, #0F141D 0%, #080B12 100%); } }
/* Simulador de Bônus: simulações salvas */
.sb-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sb-salva { display: flex; align-items: center; gap: .25rem; }
.sb-salva-abrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .625rem .875rem; border: 1px solid var(--ef-border); border-radius: 14px; background: var(--ef-card-muted); text-align: left; transition: border-color .15s; }
.sb-salva-abrir:hover { border-color: var(--ef-primary-ink); }
.sb-salva-abrir .grow { display: grid; min-width: 0; }
.sb-salva-abrir .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-salva-total { display: grid; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.sb .card > .between { flex-wrap: wrap; gap: .5rem; }
.sb .card > .between > .h2 { flex: 1 1 auto; }
@media (max-width: 559px) { .sb-salvas > .between > .row-wrap { width: 100%; } .sb-salvas [data-salvar] { flex: 1; justify-content: center; } }

/* ===== Mercado (Solar, Grupo A, Connect B · conteúdo do Zee Lab) ===== */
.mk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; min-width: 0; }
.mk > *, .mk [data-corpo] > *, .mk .grid > * { min-width: 0; }
.mk-topo { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: -.5rem; }
.mk-voltar { padding-left: .375rem; }
.mk-atalhos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.mk-atalho { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem .5rem; border: 1px solid var(--ef-border); border-radius: 18px; background: var(--ef-card); text-align: center; font-size: .8125rem; font-weight: 600; transition: border-color .15s, transform .15s; }
.mk-atalho svg.i { width: 1.5rem; height: 1.5rem; color: var(--ef-primary-ink); }
.mk-atalho:hover { border-color: var(--ef-primary-ink); transform: translateY(-1px); }
.mk-atalho.on { border-color: var(--ef-primary-ink); background: var(--ef-accent); }
.mk-atalhos-mini { display: flex; gap: .375rem; }
.mk-atalhos-mini .mk-atalho { flex-direction: row; padding: .45rem .75rem; border-radius: 999px; font-size: .8125rem; }
.mk-atalhos-mini .mk-atalho svg.i { width: 1rem; height: 1rem; }
.mk-big-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .mk-big-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mk-big { display: flex; flex-direction: column; gap: .875rem; padding: 1.25rem; border-radius: 20px; transition: border-color .15s, transform .15s; }
.mk-big:hover { border-color: var(--ef-primary-ink); transform: translateY(-2px); }
.mk-big-head { display: flex; gap: .75rem; align-items: center; }
.mk-big-nome { font-weight: 700; font-size: 1.0625rem; }
.mk-big-num { display: grid; gap: .125rem; min-height: 3.25rem; }
.mk-big-num b { font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ef-primary-ink); }
.mk-big-num span { font-size: .8125rem; color: var(--ef-muted-fg); }
.mk-big-sub { min-height: 2.5rem; }
.mk-big-abrir { margin-top: auto; display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; color: var(--ef-primary-ink); }
.mk-filtro-card { padding: .875rem 1rem; }
.mk-filtro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; }
.mk-filtro .field { margin: 0; min-width: 0; }
.mk-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; }
.mk-form .field { margin: 0; min-width: 0; }
.mk-form-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-form-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mk-range { width: 100%; accent-color: var(--ef-primary-ink); }
.mk-kpi .val { font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .mk-kpis5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .mk-kpis5 .stat .val { font-size: 1.375rem; } }
.mk-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.mk-bar { width: 100%; display: grid; grid-template-columns: minmax(0, 38%) 1fr auto; align-items: center; gap: .625rem; padding: .3rem .375rem; border-radius: 8px; text-align: left; font-size: .8125rem; }
.mk-bar:not(:disabled):hover { background: var(--ef-card-muted); }
.mk-bar:disabled { cursor: default; color: inherit; opacity: 1; }
.mk-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ef-muted-fg); }
.mk-bar-t { height: .625rem; border-radius: 999px; background: var(--ef-card-muted); overflow: hidden; }
.mk-bar-t i { display: block; height: 100%; border-radius: 999px; background: var(--ef-primary-ink); }
.mk-bar.on .mk-bar-t i { background: #f59e0b; }
.mk-bar.on .mk-bar-l { color: var(--ef-fg); font-weight: 600; }
.mk-bar b { font-variant-numeric: tabular-nums; font-size: .8125rem; }
.mk-tab { max-height: 30rem; overflow: auto; }
.mk-tab th { position: sticky; top: 0; background: var(--ef-card); z-index: 1; }
.mk-tab tr.mk-hl td, .mk-tab-ga tr.mk-hl td { background: var(--ef-accent); }
.mk-tab-ga { max-height: 38rem; }
.mk-ord { font: inherit; color: inherit; font-weight: 600; white-space: nowrap; }
.mk-ga-nome { display: grid; min-width: 12rem; }
.mk-ga-nome small { font-size: .6875rem; color: var(--ef-muted-fg); }
.mk-fatos { display: grid; grid-template-columns: minmax(0, 45%) 1fr; gap: .375rem .75rem; margin: .25rem 0 0; font-size: .8125rem; }
.mk-fatos dt { color: var(--ef-muted-fg); }
.mk-fatos dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mk-como summary { cursor: pointer; font-weight: 600; font-size: .875rem; }
.mk-como p { font-size: .8125rem; color: var(--ef-muted-fg); margin-top: .5rem; line-height: 1.55; }
.mk-mapa { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: var(--ef-bg); }
.mk-mapa canvas { display: block; cursor: pointer; }
.mk-leg { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.mk-leg span { display: inline-flex; align-items: center; gap: .375rem; }
.mk-leg i { width: .625rem; height: .625rem; border-radius: 50%; display: inline-block; }
.mk-ga-lista { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 1100px) { .mk-ga-lista { grid-template-columns: minmax(0, 1fr) 22rem; } .mk-ficha { position: sticky; top: 1rem; } }
.mk-ficha-nome { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.mk-busca { margin: 0; }
@media (max-width: 1023px) { .mk-form-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-form-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .mk-filtro { grid-template-columns: 1fr; }
  .mk-atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-atalhos-mini { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .mk-atalhos-mini .mk-atalho { flex: none; }
  .mk-form { grid-template-columns: 1fr; }
  .mk-bar { grid-template-columns: minmax(0, 42%) 1fr auto; }
}
/* Mercado › Connect B: cobertura em cartões */
.mk-cob { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .625rem; max-height: 30rem; overflow-y: auto; padding: 2px; }
.mk-cob-card { display: grid; gap: .5rem; padding: .75rem .875rem; border: 1px solid var(--ef-border); border-radius: 14px; background: var(--ef-card-muted); text-align: left; transition: border-color .15s; }
.mk-cob-card:hover { border-color: var(--ef-primary-ink); }
.mk-cob-topo { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.mk-cob-topo b { font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-cob-desc { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mk-cob-desc span { display: grid; }
.mk-cob-desc small { font-size: .6875rem; color: var(--ef-muted-fg); }
.mk-cob-desc b { font-size: 1rem; color: var(--ef-primary-ink); font-variant-numeric: tabular-nums; }
.mk-cob-cli { font-size: .75rem; color: var(--ef-muted-fg); }
.mk-cob-cli b { color: var(--ef-fg); font-variant-numeric: tabular-nums; }
/* zeeTV: logo (fundo preto do próprio logo, em selo arredondado) */
.tv-logo-zee { display: block; height: 2.75rem; width: auto; border-radius: 12px; }
@media (max-width: 640px) { .tv-logo-zee { height: 2.25rem; } }
/* Agenda › Criativo da semana */
.dialog:has(.cs) { max-width: 64rem !important; }
.cs { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .cs { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.cs-sem { font-family: var(--ef-font-head); min-width: 12rem; text-align: center; }
.cs-evs { display: grid; gap: .375rem; max-height: 12rem; overflow-y: auto; }
.cs-ev { align-items: flex-start; font-size: .8125rem; }
.cs-previa { display: grid; gap: .75rem; justify-items: center; }
.cs-previa canvas { width: 100%; max-width: 20rem; height: auto; border-radius: 14px; border: 1px solid var(--ef-border); background: #06080B; }
.cs-acoes { justify-content: center; }
