/* ==========================================================================
   Nissei Creators — design system do mockup
   Paleta derivada da marca Nissei: azul #005b8f + amarelo #ffd200
   ========================================================================== */
:root {
  --teal-950: #022a43;
  --teal-900: #033a5c;
  --teal-800: #04496f;
  --teal: #005b8f;
  --teal-600: #0b6fa8;
  --teal-100: #d6e8f3;
  --teal-50: #edf5fa;
  --leaf: #2f8f5b;
  --leaf-100: #ddf1e5;
  --leaf-50: #f1f9f4;
  --sun: #f2b600;
  --sun-100: #fff6c2;
  --coral: #ee3a42;
  --coral-100: #fbe3e0;
  --violet: #6d5bd0;
  --violet-100: #ebe8fb;

  --ink: #14202e;
  --ink-2: #3b4a5c;
  --muted: #6a778a;
  --line: #e2e7ee;
  --line-2: #eef2f7;
  --bg: #f4f6fa;
  --cream: #fbf8f2;
  --white: #fff;

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(16,35,31,.06);
  --sh-2: 0 4px 14px rgba(16,35,31,.07), 0 1px 3px rgba(16,35,31,.05);
  --sh-3: 0 18px 50px rgba(16,35,31,.16), 0 4px 12px rgba(16,35,31,.08);
  --demo-h: 48px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); 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 { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.ic { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 6px; }

/* ---------- Barra de demonstração (meta, fora do produto) ---------- */
.demobar { position: fixed; inset: 0 0 auto 0; height: var(--demo-h); z-index: 200; background: #0f1b2b; color: #c9d6e6; display: flex; align-items: center; gap: 14px; padding: 0 16px; font-size: 13px; border-bottom: 1px solid #1d2c40; }
.demobar .brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; color: #fff; }
.demobar .brand small { color: #8fa4bf; font-weight: 500; }
.demobar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px rgba(35,155,72,.25); }
.seg { display: inline-flex; background: #182b28; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { padding: 6px 12px; border-radius: 7px; color: #a9c2bd; font-weight: 600; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: var(--teal-900); }
.demobar .spacer { flex: 1; }
.demobar .dbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; color: #d6e6e2; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.demobar .dbtn:hover { background: #1b302d; color: #fff; }
.demobar .dbtn.primary { background: var(--leaf); color: #fff; }
.demobar .dbtn.primary:hover { background: #1e8a3f; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 12.5px; color: #d6e6e2; white-space: nowrap; }
.switch i { width: 30px; height: 18px; border-radius: 10px; background: #2b4440; position: relative; transition: .2s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.switch.on i { background: var(--leaf); }
.switch.on i::after { left: 14px; }

#app { padding-top: var(--demo-h); min-height: 100vh; }

/* ---------- Botões / campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-800); }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: #1e8a3f; }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--line-2); }
.btn-soft { background: var(--teal-50); color: var(--teal); }
.btn-soft:hover { background: var(--teal-100); }
.btn-danger { background: var(--coral-100); color: var(--coral); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }
.link { color: var(--teal); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 12px; outline: none; transition: border .15s, box-shadow .15s; width: 100%; }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(0,97,92,.12); }
.select.err, .check.err input, .input.err { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217,88,79,.12); }
.input.prefilled { background: var(--leaf-50); border-color: #bfe3c9; }
.input.outdated { background: var(--sun-100); border-color: #f1cf92; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 38px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--teal); margin-top: 1px; flex-shrink: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; transition: .15s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--teal-600); }
.chip.on { background: var(--teal); color: #fff; box-shadow: none; }

/* ---------- Etiquetas ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.teal { background: var(--teal-50); color: var(--teal); }
.tag.leaf { background: var(--leaf-100); color: #17763a; }
.tag.sun { background: var(--sun-100); color: #9a6212; }
.tag.coral { background: var(--coral-100); color: #b03e36; }
.tag.violet { background: var(--violet-100); color: var(--violet); }
.phase { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; }
.phase.f1 { background: var(--leaf-100); color: #17763a; }
.phase.f2 { background: var(--sun-100); color: #9a6212; }
.phase.f3 { background: var(--violet-100); color: var(--violet); }
body.no-phases .phase, body.no-phases .phase-banner { display: none !important; }

/* ---------- Superfícies ---------- */
.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.card-pad { padding: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-b { padding: 16px 20px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.divider { height: 1px; background: var(--line-2); margin: 4px 0; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ic { color: var(--teal-600); margin-bottom: 8px; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0; background: var(--teal-600); }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--leaf); border-radius: 99px; transition: width .5s ease; }
.progress.teal > i { background: var(--teal); }
.progress.sun > i { background: var(--sun); }

.thumb { border-radius: 12px; position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.95); }
.thumb.teal { background: linear-gradient(135deg, #005b8f, #0b6fa8); }
.thumb.leaf { background: linear-gradient(135deg, #1f8f43, #5cbf6d); }
.thumb.sun { background: linear-gradient(135deg, #e39528, #f3c46b); }
.thumb.coral { background: linear-gradient(135deg, #cf4f47, #ee8a73); }
.thumb.violet { background: linear-gradient(135deg, #6a4fc4, #a08be8); }
.thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.25), transparent 45%); }

/* ---------- Layout app (nutricionista e admin) ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: calc(100vh - var(--demo-h)); }
.side { position: sticky; top: var(--demo-h); height: calc(100vh - var(--demo-h)); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.side .logo { padding: 4px 8px 18px; display: flex; align-items: center; gap: 10px; }
.side .logo img { height: 46px; }
.nav-g { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; margin-bottom: 2px; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.on { background: var(--teal-50); color: var(--teal); }
.nav a .phase { margin-left: auto; }
.nav a .count { margin-left: auto; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.side .foot { margin-top: auto; padding-top: 14px; }

.side.admin { background: var(--teal-950); border-right: 0; color: #d0dbe8; }
.side.admin .nav-g { color: #7f93ad; }
.side.admin .nav a { color: #c3d1e3; }
.side.admin .nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side.admin .nav a.on { background: rgba(255,211,0,.14); color: #fff; box-shadow: inset 3px 0 0 #ffd200; }
.side.admin .logo .who { font-size: 11px; color: #a9bdd6; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: var(--demo-h); z-index: 50; height: 64px; background: rgba(245,247,246,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; }
.topbar .search { flex: 1; max-width: 420px; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--ink-2); position: relative; }
.iconbtn:hover { background: var(--line-2); }
.iconbtn .badge { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--bg); }
.pts { display: inline-flex; align-items: center; gap: 6px; background: var(--sun-100); color: #8a560c; font-weight: 800; padding: 6px 12px; border-radius: 99px; font-size: 13px; }
.menu-toggle { display: none; }

.page { padding: 28px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.page-h p { color: var(--muted); margin-top: 4px; max-width: 640px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--teal); }

.phase-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 13.5px; }
.phase-banner.f2 { background: var(--sun-100); color: #7a4c0e; }
.phase-banner.f3 { background: var(--violet-100); color: #4a3aa6; }
.phase-banner b { font-weight: 800; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 18px; }
.kpi .lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.kpi .delta { font-size: 12.5px; font-weight: 700; color: var(--leaf); }
.kpi .delta.down { color: var(--coral); }

.cols { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.cols-map { grid-template-columns: 1fr 1.15fr; }
.ch-card { display: grid; grid-template-columns: 200px 1fr; overflow: hidden; }
.chips.err .chip, [name].err .chip { box-shadow: inset 0 0 0 1px var(--coral); }
.check.err { color: var(--coral); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 10px 14px; background: #fafcfb; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:hover td { background: #fafcfb; }
table.t tr.sel td { background: var(--teal-50); }
table.t input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--teal); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { display: block; font-weight: 700; white-space: nowrap; }
.who span { font-size: 12px; color: var(--muted); }

/* Barra de ação em lote */
.bulkbar { position: sticky; bottom: 18px; margin: 14px auto 0; width: fit-content; max-width: 100%; display: flex; gap: 8px; align-items: center; background: var(--teal-950); color: #fff; padding: 10px 10px 10px 18px; border-radius: 14px; box-shadow: var(--sh-3); z-index: 40; animation: rise .25s ease; flex-wrap: wrap; }
.bulkbar .btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }
.bulkbar .btn-ghost:hover { background: rgba(255,255,255,.16); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Mapa cartograma */
.tilemap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 470px; margin: 0 auto; }
.tile { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; cursor: pointer; transition: transform .12s, box-shadow .12s; position: relative; }
.tile small { font-size: 10px; font-weight: 700; opacity: .85; }
.tile:hover { transform: scale(1.06); box-shadow: var(--sh-2); z-index: 2; }
.tile.on { box-shadow: 0 0 0 3px var(--ink); z-index: 3; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); justify-content: center; margin-top: 14px; }
.legend i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.bars .bar-row { display: grid; grid-template-columns: 130px 1fr 60px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; cursor: pointer; border-radius: 8px; }
.bars .bar-row:hover { background: var(--line-2); }
.bars .bar-row .progress { height: 10px; }
.bars .bar-row b { text-align: right; }

/* Gráfico svg */
.chart svg { width: 100%; height: auto; display: block; }
.chart .ax { font-size: 11px; fill: var(--muted); font-family: var(--font); }

/* Modal / drawer / toast */
.overlay { position: fixed; inset: 0; background: rgba(8,22,20,.45); z-index: 300; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: var(--r-xl); width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--sh-3); animation: pop .2s ease; }
.modal.wide { width: min(820px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal-h { padding: 22px 24px 6px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal-h h2 { font-size: 20px; font-weight: 800; }
.modal-h p { color: var(--muted); margin-top: 4px; }
.modal-b { padding: 14px 24px; }
.modal-f { padding: 14px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 300; background: rgba(8,22,20,.35); animation: fade .15s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff; box-shadow: var(--sh-3); overflow-y: auto; animation: slide .22s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--sh-3); display: flex; align-items: center; gap: 10px; font-weight: 600; animation: rise .2s ease; max-width: 92vw; }
.toast .ic { color: #7ee09b; }

.dropdown { position: absolute; top: 46px; right: 0; width: 360px; background: #fff; border-radius: 16px; box-shadow: var(--sh-3); border: 1px solid var(--line); z-index: 80; overflow: hidden; animation: pop .15s; }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.notif:hover { background: #fafcfb; }
.notif .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.notif.unread { background: var(--leaf-50); }

/* Tour guiado */
.tour-rel { position: relative; }
.tour-target { z-index: 260 !important; box-shadow: 0 0 0 4px var(--leaf), 0 0 0 9999px rgba(8,22,20,.55) !important; border-radius: 12px; transition: box-shadow .2s; }
.coach { position: fixed; z-index: 270; width: 340px; background: #fff; border-radius: 16px; box-shadow: var(--sh-3); padding: 18px; animation: pop .2s; }
.coach .step { font-size: 11.5px; font-weight: 800; color: var(--leaf); letter-spacing: .06em; text-transform: uppercase; }
.coach h4 { font-size: 16px; margin: 6px 0; }
.coach p { color: var(--ink-2); font-size: 13.5px; }
.coach .acts { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.coach .dots { display: flex; gap: 4px; }
.coach .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.coach .dots i.on { background: var(--leaf); width: 16px; border-radius: 4px; }

/* Jornadas (modal) */
.journey { display: flex; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; transition: .15s; align-items: flex-start; }
.journey:hover { border-color: var(--teal-600); box-shadow: var(--sh-2); }
.journey .n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.journey h4 { font-size: 15px; }
.journey p { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Público: landing / cadastro ---------- */
.pub-nav { position: sticky; top: var(--demo-h); z-index: 60; background: rgba(251,248,242,.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,.04); }
.pub-nav .in { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.pub-nav img { height: 44px; }
.pub-nav nav { display: flex; gap: 22px; font-weight: 600; color: var(--ink-2); margin-left: 12px; }
.pub-nav nav a:hover { color: var(--teal); }
.pub-nav .right { margin-left: auto; display: flex; gap: 10px; }
.landing { background: var(--cream); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 12.5px; color: var(--teal); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: 54px; line-height: 1.05; letter-spacing: -.025em; margin: 18px 0 18px; color: var(--teal-900); }
.hero h1 em { font-style: italic; color: var(--leaf); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 540px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 18px; margin-top: 24px; color: var(--muted); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.hero .trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero .trust .ic { color: var(--leaf); }
.hero-art { position: relative; }
.hero-card { background: #fff; border-radius: 22px; box-shadow: var(--sh-3); padding: 20px; }
.float { position: absolute; z-index: 2; background: #fff; border-radius: 14px; box-shadow: var(--sh-3); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 13px; }
.float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.section { padding: 72px 0; }
.section h2.big { font-family: var(--display); font-weight: 600; font-size: 38px; color: var(--teal-900); letter-spacing: -.02em; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.benefit { background: #fff; border-radius: 18px; padding: 22px; border: 1px solid var(--line); }
.benefit .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.benefit h3 { font-size: 16px; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 13.5px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.steps3 .s { display: flex; gap: 14px; }
.steps3 .s b.n { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.cta-band { background: var(--teal); color: #fff; border-radius: 26px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--display); font-weight: 600; font-size: 32px; }
.pub-foot { padding: 28px 0 40px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.auth { min-height: calc(100vh - var(--demo-h)); display: grid; grid-template-columns: 420px 1fr; }
.auth-side { background: var(--teal-900); color: #d7e9e5; padding: 36px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: var(--demo-h); height: calc(100vh - var(--demo-h)); }
.auth-side img { height: 52px; align-self: flex-start; background: #fff; padding: 8px 12px; border-radius: 12px; }
.auth-side h2 { font-family: var(--display); font-weight: 600; font-size: 30px; color: #fff; line-height: 1.15; }
.auth-steps { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.auth-steps .st { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: #9dbdb7; font-weight: 600; }
.auth-steps .st .n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #3d6d67; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.auth-steps .st.on { background: rgba(255,255,255,.07); color: #fff; }
.auth-steps .st.on .n { border-color: var(--leaf); background: var(--leaf); color: #fff; }
.auth-steps .st.done { color: #d7e9e5; }
.auth-steps .st.done .n { border-color: var(--leaf); color: var(--leaf); }
.auth-main { padding: 48px clamp(24px, 6vw, 96px); max-width: 860px; width: 100%; margin: 0 auto; }
.auth-main h1 { font-size: 28px; font-weight: 800; }
.auth-main .sub { color: var(--muted); margin: 6px 0 26px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--teal-50); color: var(--teal-900); font-size: 13.5px; align-items: flex-start; }
.notice.sun { background: var(--sun-100); color: #6b430c; }
.notice.leaf { background: var(--leaf-50); color: #145f30; }

/* E-mail de convite */
.mail-client { max-width: 760px; margin: 36px auto; background: #fff; border-radius: 18px; box-shadow: var(--sh-2); border: 1px solid var(--line); overflow: hidden; }
.mail-meta { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mail-meta b { color: var(--ink); }
.mail-body { background: #f2f5f4; padding: 28px; }
.mail-card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden; }
.mail-card .top { background: var(--cream); padding: 22px; text-align: center; }
.mail-card .top img { height: 54px; }
.mail-card .in { padding: 28px; }
.mail-card h2 { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--teal-900); margin-bottom: 10px; }

/* Home nutricionista */
.welcome { background: linear-gradient(120deg, var(--teal-900), var(--teal) 60%, #0d8a6a); color: #fff; border-radius: 20px; padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; position: relative; overflow: hidden; }
.welcome::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.welcome h1 { font-size: 24px; font-weight: 800; }
.welcome p { color: #cfe7e2; margin-top: 4px; }
.welcome .meta { display: flex; gap: 22px; margin-top: 16px; }
.welcome .meta div b { display: block; font-size: 20px; }
.welcome .meta div span { font-size: 12px; color: #b5d6d0; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.c-card { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.c-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.c-card .thumb { height: 120px; border-radius: 0; }
.c-card .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.c-card h4 { font-size: 15px; line-height: 1.35; }
.c-card .ft { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 12.5px; color: var(--muted); }
.article { max-width: 760px; margin: 0 auto; }
.article .cover { height: 240px; border-radius: 18px; margin-bottom: 24px; }
.article h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.article .body p { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin-bottom: 16px; }
.article .body h3 { font-size: 19px; margin: 26px 0 10px; }
.lesson { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.lesson:last-child { border-bottom: 0; }
.lesson .st { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 12px; }
.lesson.done .st { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.lesson.cur .st { border-color: var(--teal); color: var(--teal); }
.lesson.lock { opacity: .55; }
.rank-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.rank-row:last-child { border-bottom: 0; }
.rank-row .pos { font-weight: 800; color: var(--muted); text-align: center; }
.rank-row.me { background: var(--leaf-50); border-radius: 10px; }
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.podium .p { background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; padding: 16px 10px; }
.podium .p.first { padding-top: 26px; background: linear-gradient(180deg, var(--sun-100), #fff); border-color: #f1d6a3; }
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.funnel .f { background: var(--teal-50); border-radius: 12px; padding: 14px; }
.funnel .f b { display: block; font-size: 22px; font-weight: 800; color: var(--teal-900); }
.funnel .f span { font-size: 12px; color: var(--muted); font-weight: 700; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ig-card .thumb { aspect-ratio: 4/5; border-radius: 12px 12px 0 0; }
.sent { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.sent i:nth-child(1) { background: var(--leaf); }
.sent i:nth-child(2) { background: #b9c6c3; }
.sent i:nth-child(3) { background: var(--coral); }
.scope-item { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.scope-item:last-child { border-bottom: 0; }
.scope-item .ck { width: 22px; height: 22px; border-radius: 6px; background: var(--leaf); color: #fff; display: grid; place-items: center; }
.scope-item .src { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 2px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; }
.tabs button { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--teal); border-color: var(--teal); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.sync-log { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #0f1f1d; color: #bfe0d8; border-radius: 12px; padding: 14px; line-height: 1.8; }
.sync-log .ok { color: #7ee09b; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cols, .cols-map { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .demobar .brand small, .demobar .lbl-hide { display: none; }
}
@media (max-width: 900px) {
  :root { --demo-h: 52px; }
  .demobar { gap: 8px; padding: 0 10px; overflow-x: auto; }
  .demobar .brand span { display: none; }
  .seg button span { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: var(--demo-h); z-index: 150; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--sh-3); }
  .side.open { transform: none; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .topbar .search { display: none; }
  .page { padding: 18px 14px; }
  .hero { grid-template-columns: 1fr; padding: 36px 0; }
  .hero h1 { font-size: 38px; }
  .hero-art { display: none; }
  .pub-nav nav { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { position: static; height: auto; padding: 22px; }
  .auth-side h2, .auth-side .auth-steps { display: none; }
  .auth-main { padding: 24px 16px; }
  .grid2, .grid3, .cols-2, .steps3, .ch-card { grid-template-columns: 1fr; }
  .ch-card .thumb { min-height: 110px !important; }
  .bars-2col { grid-template-columns: 1fr !important; }
  .funnel { grid-template-columns: repeat(2, 1fr); }
  .welcome { grid-template-columns: 1fr; }
  .coach { width: calc(100vw - 24px); left: 12px !important; }
  .scope-item { grid-template-columns: 26px 1fr; }
  .scope-item > :nth-child(3), .scope-item > :nth-child(4) { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  .kpis, .benefits { grid-template-columns: 1fr; }
  .pub-nav .right .btn-ghost { display: none; }
}
@media print {
  .demobar, .side, .topbar, .bulkbar { display: none !important; }
  #app { padding: 0; }
  .shell { display: block; }
}
.demobar .dbtn.on { background: #1b302d; color: #fff; }

/* Comunidade */
.topic-grid { margin-bottom: 4px; }
.topic-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; transition: .15s; }
.topic-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.topic-hero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; flex-wrap: wrap; }
.th-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .15s; }
.th-row:last-child, .reply:last-child { border-bottom: 0; }
.th-row:hover { background: var(--teal-50); }
.th-title { display: block; font-size: 15px; margin-top: 6px; }
.th-row:hover .th-title { color: var(--teal); }
.reply { display: flex; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.reply.official { background: var(--teal-50); }
.reply.best { box-shadow: inset 3px 0 0 var(--leaf); }
.liked, .liked svg { color: var(--coral) !important; }
.rules { margin: 8px 0 0 16px; display: grid; gap: 6px; }
.rel { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line-2); cursor: pointer; font-weight: 600; font-size: 13.5px; }
.rel:first-of-type { margin-top: 8px; }
.rel:hover span:last-child { color: var(--teal); }
.demobar .scenario { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(244,180,62,.14); color: #f4c46a; font-weight: 600; font-size: 12px; white-space: nowrap; }
.own-card { background: linear-gradient(135deg, var(--teal-50), #fff); }
.fb-item { padding: 10px 12px; border-radius: 10px; background: var(--line-2); display: grid; gap: 4px; }
.fb-item a { color: var(--teal); font-weight: 600; cursor: pointer; }
.mod-quote { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--coral); background: var(--coral-100); border-radius: 0 10px 10px 0; font-size: 14px; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--line-2); gap: 2px; }
.seg-mini button { padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg-mini button.on { background: #fff; color: var(--teal); box-shadow: var(--sh-1); }
.exec-hero { padding: 26px 28px; background: linear-gradient(135deg, var(--teal), #0b6fa8); color: #fff; border: 0; }
.exec-hero h2 { font-family: var(--display); font-size: 26px; margin: 6px 0; color: #fff; }
.exec-hero p { opacity: .9; max-width: 720px; }
.exec-h { margin: 26px 0 12px; font-size: 16px; }
.val-big { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--teal); margin: 8px 0 4px; }
.val-big span { font-size: 16px; color: var(--muted); font-weight: 600; }
@media print { .no-print, .demobar, .side, .topbar, .page-h .btn, .seg-mini { display: none !important; } .shell { display: block; } .page { padding: 0; } }
.ig-acts { gap: 6px; margin-top: 4px; }
.ig-acts button { height: 30px; padding: 0 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.ig-acts button:hover { background: var(--line-2); }
.ig-acts button.on { color: #e39528; box-shadow: inset 0 0 0 1px #f3c46b; background: var(--sun-100); }
.op-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--coral-100); cursor: pointer; }
.op-row .pos { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--coral); }
.card-h .seg-mini { flex: none; }
.cols > *, .cols-2 > *, .grid2 > *, .grid3 > * { min-width: 0; }

/* Nissei Creators — marca */
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-mark .bm-ico { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ffd200, #e5a700); color: #005b8f; display: grid; place-items: center; font-weight: 900; font-size: 20px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); flex: none; }
.brand-mark b { display: block; font-size: 17px; font-weight: 800; color: var(--teal); letter-spacing: -.01em; }
.brand-mark b em { font-style: normal; color: var(--ink); font-weight: 700; }
.brand-mark span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side.admin .brand-mark b { color: #fff; } .side.admin .brand-mark b em { color: #ffd200; } .side.admin .brand-mark span { color: #a9bdd6; }
.topbar .ops { flex: none; }
.coupon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 2px dashed var(--teal); background: var(--teal-50); font-weight: 900; font-size: 22px; letter-spacing: .08em; color: var(--teal); }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban .col { background: var(--line-2); border-radius: 14px; padding: 10px; min-height: 240px; }
.kanban .col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; justify-content: space-between; margin: 4px 4px 10px; }
.kanban .kc { background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: var(--sh-1); border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; font-size: 13px; }
.kanban .kc.late { box-shadow: inset 3px 0 0 var(--coral); }
.money { font-variant-numeric: tabular-nums; }
.thumb.blue { background: linear-gradient(135deg, #005b8f, #2a86c0); }
@media (max-width: 1100px) { .topbar .right .tag { display: none; } }
@media (max-width: 900px) { .topbar { flex-wrap: wrap; } .topbar .ops { order: 3; width: 100%; overflow-x: auto; } .topbar .ops button { flex: 1; white-space: nowrap; } }
/* Logo oficial (faixa amarela + cruz vermelha + "nissei" azul) */
.brand-mark .bm-logo { height: 42px; width: auto; border-radius: 8px; flex: none; display: block; }
.brand-mark b.bm-prog { font-size: 15px; font-weight: 800; color: var(--coral); letter-spacing: -.01em; line-height: 1.1; }
.side.admin .brand-mark b.bm-prog { color: #ffd200; }
.side .logo { padding: 4px 4px 18px; }
.btn-primary { background: var(--teal); }
.side .brand-mark { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.side .brand-mark .bm-logo { height: 46px; }
.side .brand-mark > div { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
