@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
/* =====================================================
   LUMUS OS — Design System v3 · Monocromático (Outfit)
   Preto/branco + cinzas · gráficos pastel · rail retrátil
   ===================================================== */

:root {
  /* Fundo e superfícies */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f4f4f5;
  --rail: #fbfbfb;
  --hover: #f4f4f5;
  --active: #eeeeef;

  /* Texto */
  --ink: #0b0b0c;
  --muted: #6c6c72;
  --text-2: #4b4b50;
  --text-4: #9a9aa2;

  /* Bordas */
  --line: #ececed;
  --border-2: #f4f4f5;

  /* Acento principal — monocromático (preto) */
  --purple: #0b0b0c;
  --purple-lt: #f1f1f2;
  --purple-bd: #e2e2e4;
  --purple-soft: #f1f1f2;

  /* "Sucesso" — grayscale (sinal via rótulo/ícone) */
  --brand: #3a3a3f;
  --brand-d: #0b0b0c;
  --brand-soft: #f4f4f5;

  /* "Info" — grayscale */
  --accent: #3a3a3f;
  --accent-soft: #f4f4f5;

  /* "Erro / alerta" — grayscale */
  --danger: #4b4b50;
  --danger-soft: #f4f4f5;
  --amber: #4b4b50;
  --amber-soft: #f4f4f5;

  /* Pastéis — só para gráficos e micro-acentos (dots/KPI) */
  --c1:#b4cdea; --c2:#bfe3c8; --c3:#f6dca6; --c4:#dcc9ec; --c5:#f3c6c6;

  /* Sombras (suaves) */
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-hover: 0 6px 22px rgba(0,0,0,.08);

  /* Raios */
  --radius: 11px;
  --radius-sm: 8px;

  /* Layout */
  --sidebar-w: 260px;
  --topbar-h: 52px;
  --rail-w: 56px;
  --rail-w-open: 216px;

  /* Espaçamento (base 4) */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px;

  /* Tipografia — escala */
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-display:28px; --fs-title:20px; --fs-section:15px; --fs-label:13px;
  --fs-body:14px; --fs-meta:12px; --fs-cap:11px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; }

/* ── app layout ─────────────────────────────────── */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-layout .shell { flex: 1; }

/* ── shell: sidebar + main ──────────────────────── */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ── topbar — full-width, sticky ────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
}

.topbar .title { font-size: 15px; font-weight: 700; color: var(--ink); }
.topbar .sub   { color: var(--muted); font-size: 12px; }
.topbar .sp    { flex: 1; }

/* For backwards compat: pages that still have topbar inside .main */
.main > .topbar { top: 0; }

/* ── brand ──────────────────────────────────────── */
.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.brand .dot { color: var(--purple); }
.brand-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -4px;
  font-weight: 600;
}

/* ── topbar nav ─────────────────────────────────── */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
}
.topbar-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-nav a:hover { background: var(--surface-2); color: var(--ink); }
.topbar-nav a.active { color: var(--purple); background: var(--purple-lt); font-weight: 700; }

/* ── topbar avatar ──────────────────────────────── */
.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-lt);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--purple-bd);
  flex-shrink: 0;
  cursor: default;
}

/* ── topbar context info ────────────────────────── */
.topbar-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
}
.topbar-info .topbar-page { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.topbar-info .topbar-sub  { font-size: 11px; color: var(--muted); white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }

/* ── sidebar nav (mantido para compat.) ─────────── */
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  transition: all .15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--purple-lt); color: var(--purple); font-weight: 700; }

.side-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 4px 2px 2px;
}
.side-group { display: flex; flex-direction: column; gap: 8px; }
.side-sep   { height: 1px; background: var(--line); margin: 4px 0; }
.side-foot  { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

/* ── content ────────────────────────────────────── */
.content { padding: 24px 26px; max-width: 1220px; width: 100%; }

/* ── buttons ────────────────────────────────────── */
button, .btn {
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-danger  { background: #fff; color: var(--danger); border: 1px solid #e0c0c0; }
.btn-danger:hover  { background: var(--danger-soft); }
.btn-ghost   { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover   { background: var(--surface-3); }
.btn-purple  { background: var(--purple-lt); color: var(--purple); border: 1px solid var(--purple-bd); }
.btn-purple:hover  { background: var(--purple-bd); color: var(--purple); }
.btn-wide  { width: 100%; padding: 10px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-sm    { padding: 5px 10px; font-size: 12px; }

/* ── inputs ─────────────────────────────────────── */
input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  width: 100%;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-lt);
}
textarea { resize: vertical; min-height: 80px; }
select   { cursor: pointer; }
label.lbl { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ── pills / tags / badges ──────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  line-height: 1.4;
}
.pill.green  { background: var(--brand-soft); color: var(--brand-d); border-color: #b8dfc2; }
.pill.blue   { background: var(--accent-soft); color: var(--accent); border-color: #c0d5ed; }
.pill.red    { background: var(--danger-soft); color: var(--danger); border-color: #e0c0c0; }
.pill.amber  { background: var(--amber-soft); color: #8a5500; border-color: #e8d0a0; }
.pill.purple { background: var(--purple-lt); color: var(--purple); border-color: var(--purple-bd); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--ink);
}
.badge.r { background: var(--danger-soft); color: var(--danger); }
.badge.g { background: var(--brand-soft);  color: var(--brand-d); }

/* ── health dots ────────────────────────────────── */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.dot.v { background: var(--brand); }
.dot.a { background: var(--amber); }
.dot.r { background: var(--danger); }

/* ── panels / kpi / cards ───────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .18s;
}
.panel h2 {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.grid2 { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 0; }
.grid2 .panel { flex: 1; min-width: 300px; }
.cards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.kpi {
  flex: 1;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .18s;
}
.kpi:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.kpi.green::before  { background: var(--brand); }
.kpi.amber::before  { background: var(--amber); }
.kpi.red::before    { background: var(--danger); }
.kpi.purple::before { background: var(--purple); }
.kpi .n { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.kpi.alert .n { color: var(--danger); }
.kpi .l { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* ── tables ─────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
tr:hover td { background: var(--surface-2); }
.muted { color: var(--muted); }

/* ── banners ────────────────────────────────────── */
.banner {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner.ok   { background: var(--brand-soft); border: 1px solid #b8dfc2; color: var(--brand-d); }
.banner.warn { background: var(--amber-soft); border: 1px solid #e8d0a0; color: #8a5500; }
.banner.err  { background: var(--danger-soft); border: 1px solid #e0c0c0; color: var(--danger); }

/* ── kanban board ───────────────────────────────── */
.board {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  align-items: flex-start;
  padding-bottom: 16px;
}
.col {
  flex: 0 0 232px;
  background: #f9f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 100px;
  border-top: 3px solid var(--etapa, #aaaaaa);
}
.col.drag { background: var(--accent-soft); outline: 2px dashed var(--accent); }
.col h2 {
  font-size: 11.5px;
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.col h2 .cnt {
  background: var(--etapa, #aaaaaa);
  color: #33403a;
  border-radius: 20px;
  font-size: 11px;
  padding: 1px 8px;
  font-weight: 700;
}
.kcard {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--etapa, var(--accent));
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .2s, transform .18s;
}
.kcard:hover  { box-shadow: var(--shadow); transform: translateY(-2px); }
.kcard.dragging { opacity: .4; }
.kcard .top  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.kcard .date { font-size: 11px; color: var(--muted); }
.kcard .brief { font-size: 12.5px; color: #444; line-height: 1.4; margin: 5px 0 6px; }
.kcard .resp  { font-size: 11px; color: var(--muted); }
.col .empty   { font-size: 12px; color: #ccc; font-style: italic; padding: 6px 2px; }

/* ── modal ──────────────────────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(2px);
  z-index: 60;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow: auto;
}
.modal {
  background: #fff;
  border-radius: 12px;
  width: 580px;
  max-width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.15);
  overflow: hidden;
  border: 1px solid var(--line);
}
.modal .mhead {
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal .mhead h2 { font-size: 15px; font-weight: 700; }
.modal .mhead .btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.modal .mhead .btn-ghost:hover { background: rgba(255,255,255,.22); }
.modal .mbody { padding: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.field { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 5px; }
.field.full { flex-basis: 100%; }
.field label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.field textarea.big { min-height: 150px; }
.mactions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.mactions .spacer { flex: 1; }
.linkline { font-size: 12px; margin-top: 2px; }

/* ── login ──────────────────────────────────────── */
.login {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.loginbox {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  width: 360px;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.loginbox .brand   { font-size: 28px; margin-bottom: 4px; }
.loginbox p        { color: var(--muted); font-size: 13px; margin: 2px 0 20px; }
.loginbox input    { margin-bottom: 10px; }
.login-err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 8px; font-weight: 600; }

/* ── tabs ───────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tab {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  margin-bottom: -2px;
}
.tab:hover  { color: var(--ink); }
.tab.active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 700; }
.tabpane        { display: none; }
.tabpane.active { display: block; }

.subnav { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.subnav a {
  padding: 7px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: all .15s ease;
}
.subnav a.active { background: var(--purple-lt); color: var(--purple); border-color: var(--purple-bd); }

.emptybox {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid var(--line);
}

/* ── Instagram preview ──────────────────────────── */
.ig {
  --igtext: #262626; --igmuted: #8e8e8e;
  --igline: #dbdbdb; --igblue: #00376b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 340px; max-width: 100%;
  background: #fff; border: 1px solid var(--igline);
  border-radius: 6px; color: var(--igtext);
}
.ig-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px; }
.ig-av {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; background: #eee; border: 1px solid var(--igline);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 13px;
}
.ig-handle  { font-size: 13px; font-weight: 600; line-height: 1.1; }
.ig-loc     { font-size: 11px; color: var(--igmuted); }
.ig-dots    { margin-left: auto; color: var(--igtext); font-weight: 700; letter-spacing: 1px; }
.ig-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: #fafafa; display: block;
  border-top: 1px solid var(--igline); border-bottom: 1px solid var(--igline);
}
.ig-img.empty { display: flex; align-items: center; justify-content: center; color: var(--igmuted); font-size: 13px; }
.ig-actions { display: flex; align-items: center; gap: 14px; padding: 9px 12px 4px; }
.ig-actions svg { width: 24px; height: 24px; stroke: var(--igtext); fill: none; stroke-width: 1.7; }
.ig-actions .save { margin-left: auto; }
.ig-likes    { padding: 2px 12px; font-size: 13px; font-weight: 600; }
.ig-cap      { padding: 2px 12px 4px; font-size: 13px; line-height: 1.45; }
.ig-cap .u   { font-weight: 600; margin-right: 5px; }
.ig-cap .more { color: var(--igmuted); cursor: default; }
.ig-cap .tag  { border: 0; padding: 0; color: var(--igblue); background: none; font-size: 13px; }
.ig-comments { padding: 2px 12px; font-size: 13px; color: var(--igmuted); }
.ig-time     { padding: 4px 12px 12px; font-size: 10px; letter-spacing: .3px; color: var(--igmuted); text-transform: uppercase; }
.ig-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; width: 340px; max-width: 100%; }
.ig-grid .cell {
  aspect-ratio: 1/1; background: #fafafa; border: 1px solid var(--igline);
  object-fit: cover; display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 11px;
}
.ig-grid .cell.novo { outline: 3px solid var(--brand); outline-offset: -3px; }

/* ── misc ───────────────────────────────────────── */
.hide { display: none !important; }
.agenda .dia { font-weight: 700; color: var(--ink); font-size: 13px; margin: 12px 0 4px; }

/* ── responsive ─────────────────────────────────── */
@media (max-width: 860px) {
  .topbar-nav { display: none; }
  .sidebar { width: 100%; height: auto; position: relative; top: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side-foot { margin-top: 0; }
  .topbar { height: auto; min-height: var(--topbar-h); padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .shell { flex-direction: column; }
  .board { overflow-x: auto; }
}
/* Emojis monocromáticos (clean, dessaturados) */
.emo {
  filter: grayscale(100%);
  opacity: .65;
  font-size: .95em;
  display: inline-block;
  vertical-align: -0.05em;
}
.topbar-nav a.active .emo { opacity: .85; }

/* Divisória + grupo global (ex.: Gestão) na topbar */
.nav-div { width: 1px; height: 20px; background: var(--line); margin: 0 10px 0 2px; flex-shrink: 0; }
.topbar-nav.nav-global { flex-shrink: 0; }
                                                                                                                                                                                                                                                                    
/* ===== Menu de conta (dropdown estilo Google) ===== */
.pm { position: relative; flex-shrink: 0; }
.pm .topbar-avatar { border: 2px solid var(--purple-bd); cursor: pointer; }
.pm .topbar-avatar:hover { background: var(--purple-bd); }
.pm-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 264px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,.16); padding: 8px; z-index: 60;
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right;
  pointer-events: none; transition: opacity .16s ease, transform .16s cubic-bezier(.2,.8,.2,1);
}
.pm.open .pm-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.pm-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; }
.pm-ava {
  width: 40px; height: 40px; border-radius: 50%; background: var(--purple-lt); color: var(--purple);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  border: 2px solid var(--purple-bd); flex-shrink: 0;
}
.pm-id { min-width: 0; }
.pm-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-email { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.pm-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 11px; border: 0; background: transparent; border-radius: 9px;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; text-decoration: none; transition: background .12s ease;
}
.pm-item:hover { background: var(--surface-2); }
.pm-item .pm-ic { width: 18px; text-align: center; }
.pm-danger { color: var(--danger); }
.pm-danger:hover { background: var(--danger-soft); }

/* =====================================================
   v3 · Rail retrátil + Central de dúvidas + mobile + monocromático
   (injetado por lumus-shell.js — layout-agnóstico via position:fixed)
   ===================================================== */

/* Emojis remanescentes ficam monocromáticos */
.emo { filter: grayscale(1) !important; opacity: .7; }

/* A navegação antiga da topbar dá lugar ao rail lateral */
body.lz .topbar-nav,
body.lz .nav-global,
body.lz .nav-div { display: none !important; }

/* Espaço para o rail fixo (desktop) */
body.lz { padding-left: var(--rail-w); transition: padding-left .18s; }

/* KPIs: barra de acento em pastel (único respiro de cor na UI) */
.kpi::before        { background: var(--c1); }
.kpi.green::before  { background: var(--c2); }
.kpi.amber::before  { background: var(--c3); }
.kpi.red::before    { background: var(--c5); }
.kpi.purple::before { background: var(--c4); }

/* Conforto tipográfico */
body { font-size: var(--fs-body); line-height: 1.5; letter-spacing: -.005em; }
.topbar .brand, .brand { letter-spacing: -.4px; }

/* ---- RAIL ---- */
.lz-rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w);
  background: var(--rail); border-right: 1px solid var(--line); z-index: 50;
  display: none; flex-direction: column; padding: 10px 8px; overflow: hidden;
  transition: width .18s cubic-bezier(.2,.8,.2,1);
}
body.lz .lz-rail { display: flex; }
.lz-rail:hover { width: var(--rail-w-open); box-shadow: 2px 0 18px rgba(0,0,0,.05); }
.lz-rail .lz-logo { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px; margin-bottom: 10px; text-decoration: none; }
.lz-rail .lz-logo .mk { width: 22px; height: 22px; background: var(--ink); color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.lz-rail .lz-logo .wm { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.lz-rail:hover .lz-logo .wm { opacity: 1; }
.lz-rail a.lz-nav { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 8px; border-radius: 8px; color: var(--muted); text-decoration: none; white-space: nowrap; margin-bottom: 2px; }
.lz-rail a.lz-nav:hover { background: var(--hover); color: var(--ink); }
.lz-rail a.lz-nav.on { background: var(--active); color: var(--ink); }
.lz-rail a.lz-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; flex-shrink: 0; }
.lz-rail a.lz-nav .t { font-size: var(--fs-label); font-weight: 500; opacity: 0; transition: opacity .15s; }
.lz-rail:hover a.lz-nav .t { opacity: 1; }
.lz-rail .lz-grp { margin-top: auto; }
.lz-rail .lz-sep { height: 1px; background: var(--line); margin: 8px 6px; }

/* ---- BOTTOM NAV (mobile) ---- */
.lz-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; height: 56px;
  background: var(--surface); border-top: 1px solid var(--line); z-index: 50;
  display: none; justify-content: space-around; align-items: center;
}
.lz-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; width: 56px; height: 46px; justify-content: center; }
.lz-bottomnav a.on { color: var(--ink); }
.lz-bottomnav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.lz-bottomnav .t { font-size: 9.5px; font-weight: 500; }

/* ---- Central de dúvidas (modal) ---- */
.lz-help-btn { }
.lz-ovl { position: fixed; inset: 0; background: rgba(10,10,12,.28); display: none; align-items: flex-start; justify-content: center; padding: 78px 16px; z-index: 80; }
.lz-ovl.open { display: flex; }
.lz-help { width: 520px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-hover); overflow: hidden; max-height: 76vh; display: flex; flex-direction: column; }
.lz-help .hs { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.lz-help .hs svg { width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 1.7; flex-shrink: 0; }
.lz-help .hs input { border: 0; outline: 0; font-family: inherit; font-size: var(--fs-body); flex: 1; color: var(--ink); background: none; padding: 0; }
.lz-help .hs .esc { font-size: 11px; color: var(--faint,#9a9aa2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.lz-help .hl { padding: 8px; overflow-y: auto; }
.lz-help .hi { padding: 11px 12px; border-radius: 9px; cursor: default; }
.lz-help .hi:hover { background: var(--hover); }
.lz-help .hi .q { font-size: var(--fs-label); font-weight: 600; color: var(--ink); }
.lz-help .hi .a { font-size: var(--fs-meta); color: var(--muted); margin-top: 2px; line-height: 1.5; }
.lz-help .hempty { padding: 22px; text-align: center; color: var(--muted); font-size: var(--fs-meta); }

/* ---- Responsivo ---- */
@media (max-width: 760px) {
  body.lz { padding-left: 0; padding-bottom: 60px; }
  .lz-rail { display: none !important; }
  body.lz .lz-bottomnav { display: flex; }
  .content { padding: 16px 14px; }
  .hub-main, .cop-wrap { padding-left: 14px; padding-right: 14px; }
  .lz-bottomnav { justify-content: flex-start; overflow-x: auto; }
  .lz-bottomnav a { flex: 0 0 auto; }
}

/* ---- Gaveta de notificações ---- */
.lz-scrim { position: fixed; inset: 0; background: rgba(10,10,12,.18); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 69; }
.lz-scrim.open { opacity: 1; pointer-events: auto; }
.lz-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 90vw;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(0,0,0,.08);
  transform: translateX(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1);
  z-index: 70; display: flex; flex-direction: column;
}
.lz-drawer.open { transform: translateX(0); }
.lz-drawer .dh { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lz-drawer .dh svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.7; }
.lz-drawer .dh b { font-size: var(--fs-section); font-weight: 600; flex: 1; }
.lz-drawer .dh button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: var(--fs-meta); font-weight: 600; display: inline-flex; align-items: center; padding: 4px; border-radius: 6px; }
.lz-drawer .dh button:hover { background: var(--hover); color: var(--ink); }
.lz-drawer .dh #lzClose svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; }
.lz-drawer .dl { flex: 1; overflow-y: auto; padding: 6px; }
.lz-drawer .di { padding: 11px 12px; border-radius: 9px; border-bottom: 1px solid var(--border-2); }
.lz-drawer .di:last-child { border-bottom: 0; }
.lz-drawer .di.un { background: var(--surface-2); }
.lz-drawer .di .t { font-size: var(--fs-label); font-weight: 600; color: var(--ink); }
.lz-drawer .di .m { font-size: var(--fs-meta); color: var(--muted); margin-top: 2px; line-height: 1.5; }
.lz-drawer .di .q { font-size: 10.5px; color: var(--text-4); margin-top: 3px; }
.lz-drawer .dempty { padding: 26px; text-align: center; color: var(--muted); font-size: var(--fs-meta); }
