/* ═══════════════════════════════════════════════════════════════════
   LEVI PESSOA ARQUITETOS — BASE VISUAL GLOBAL DA PLATAFORMA
   ═══════════════════════════════════════════════════════════════════

   Este arquivo é a ÚNICA fonte de verdade da identidade da plataforma.
   A referência de linguagem é a Central (welcome.html): off-white quente,
   preto profundo, bege e tons terrosos, baixo ruído visual.

   REGRA PARA TODA PÁGINA (atual ou futura):
   1. Importar esta base ANTES de qualquer outro CSS:
        <link rel="stylesheet" href="assets/brand.css">
   2. Consumir os tokens --lp-* — nunca declarar paleta própria.
   3. Usar os componentes .lp-* (botões, cards, badges, formulários,
      modais, menus, toasts, loading, empty states). A função do
      componente define o estilo; o módulo NÃO cria variante própria.
   4. Layout específico da página continua no <style> local da página,
      mas referenciando tokens e componentes daqui.
   5. Não copiar CSS de outra página. Reutilizar esta base.

   BRAND LOGO CONTRAST RULE — usar somente os assets oficiais, sempre
   com proporção preservada:
     logo-levi-pessoa-arquitetos-alt.png → preto, para superfície clara.
     logo-levi-pessoa-arquitetos.png     → branco, para superfície escura.

   Escalas institucionais oficiais:
     .lp-logo--hero      → somente Central, login e páginas institucionais.
     .lp-logo--page      → cabeçalhos de módulos internos.
     .lp-logo--compact   → sidebars, viewers e ferramentas compactas.
     .lp-logo--sm        → apenas rodapés, assinaturas e microcontextos;
                           nunca como marca principal de uma página.
   ═══════════════════════════════════════════════════════════════════ */

@import url('/assets/typography.css?v=20260910_review');

/* ── 1. TOKENS GLOBAIS ─────────────────────────────────────────── */
:root {
  /* Cores — superfícies */
  --lp-bg:           #F5F2ED; /* papel quente (fundo principal) */
  --lp-bg-deep:      #EFEBE5; /* papel escurecido (mobile / alternância) */
  --lp-surface:      #FFFDF9; /* card / painel */
  --lp-surface-alt:  #F8F6F1; /* superfície secundária */
  --lp-surface-sunk: #F0E9E0; /* campo afundado / faixa */

  /* Cores — texto */
  --lp-ink:          #211F1C; /* texto principal (preto profundo quente) */
  --lp-ink-deep:     #1E1C19;
  --lp-muted:        #70695F; /* texto secundário */
  --lp-faint:        #948D83; /* texto terciário / rodapé */

  /* Cores — marca */
  --lp-accent:       #B69E81; /* bege / areia (destaque principal) */
  --lp-accent-deep:  #987953; /* areia profunda (ação sobre clara) */
  --lp-accent-ink:   #705A40; /* areia em texto/ícone */
  --lp-accent-soft:  #F0E7DB; /* fundo de ícone / chip */
  --lp-eyebrow:      #8C7355; /* labels institucionais */

  /* Cores — linha */
  --lp-line:         #DED6CB;
  --lp-line-strong:  #C9BFAF;

  /* Cores — semânticas */
  --lp-success:      #4A6B53; /* verde oliva */
  --lp-success-soft: #F1F5EE;
  --lp-danger:       #A94442; /* terracota (erro/destrutivo) */
  --lp-danger-ink:   #8F2B22;
  --lp-danger-soft:  #FBEEED;
  --lp-warning:      #B8733A;
  --lp-warning-soft: #FAEFE6;

  /* Superfícies escuras (login, viewer, chat) */
  --lp-night:        #171613;
  --lp-night-soft:   #211F1B;
  --lp-night-line:   rgba(214, 189, 152, .25);
  --lp-night-text:   #F8F4ED;
  --lp-night-muted:  #CBC4B9;
  --lp-gold:         #D6BD98; /* areia clara sobre fundo escuro */

  /* Tipografia */
  --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --lp-fs-caption:  11px;
  --lp-fs-body-sm:  12px;
  --lp-fs-body:     14px;
  --lp-fs-subtitle: 16px;
  --lp-fs-h3:       20px;
  --lp-fs-h2:       clamp(25px, 3vw, 32px);
  --lp-fs-h1:       clamp(30px, 4vw, 44px);
  --lp-fs-display:  clamp(38px, 6vw, 68px);

  /* Espaçamento (escala única) */
  --lp-space-1:  4px;
  --lp-space-2:  8px;
  --lp-space-3:  12px;
  --lp-space-4:  16px;
  --lp-space-5:  20px;
  --lp-space-6:  24px;
  --lp-space-8:  32px;
  --lp-space-10: 40px;
  --lp-space-12: 48px;
  --lp-space-16: 64px;

  /* Raios (apenas estes níveis) */
  --lp-radius-sm:   8px;
  --lp-radius-md:   12px;
  --lp-radius-lg:   16px;
  --lp-radius-xl:   20px;
  --lp-radius-pill: 999px;

  /* Sombras — discretas e sofisticadas */
  --lp-shadow-1: 0 4px 14px rgba(45, 39, 32, .06);
  --lp-shadow-2: 0 10px 30px rgba(45, 39, 32, .10);
  --lp-shadow-3: 0 18px 44px rgba(45, 39, 32, .16);
  --lp-shadow-night: 0 24px 60px rgba(0, 0, 0, .48);

  /* Movimento */
  --lp-ease: cubic-bezier(.25, 1, .5, 1);

  /* Camadas */
  --lp-z-menu:  50;
  --lp-z-modal: 40;
  --lp-z-viewer: 3000;
  --lp-z-toast: 60;

  color-scheme: light;
}

/* ── 2. RESET BASE COMPARTILHADO ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── 3. LOGO GLOBAL ────────────────────────────────────────────── */
/* A logo oficial nunca é recriada nem esticada: largura controlada
   com clamp() e altura automática pela proporção do arquivo. */
.lp-logo {
  display: block;
  /* A marca não pode ser comprimida por headers, grids ou flex containers. */
  flex: 0 0 auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
/* Variantes semânticas: o src deve apontar para o asset oficial correto. */
.lp-logo--dark { }
.lp-logo--light { }
/* Compatibilidade temporária: novas telas devem declarar --dark ou --light. */
.lp-logo--onlight { }
.lp-logo--hero    { width: clamp(150px, 18vw, 238px); }
.lp-logo--page    { width: clamp(130px, 14vw, 172px); }
.lp-logo--compact { width: clamp(118px, 10vw, 148px); }
.lp-logo--sm      { width: clamp(96px, 12vw, 126px); }

/* ── 3.1 CABEÇALHO E MARCA INSTITUCIONAL ─────────────────────── */
.lp-brand-header { display: flex; align-items: flex-start; gap: var(--lp-space-5); }
.lp-brand-header__logo { flex: 0 0 auto; }
.lp-brand-header__content { min-width: 0; }
.lp-brand-header__eyebrow { margin: 0 0 var(--lp-space-2); }
.lp-brand-header__title { margin: 0; color: var(--lp-ink); font-size: var(--lp-fs-h1); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.lp-brand-header__description { margin: var(--lp-space-2) 0 0; color: var(--lp-muted); font-size: var(--lp-fs-body); line-height: 1.6; }
.lp-brand-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--lp-space-2); }
.lp-sidebar__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--lp-space-3); }
.lp-sidebar__brand > .lp-logo { flex: 0 0 auto; }
.lp-sidebar__brand > span { display: block; margin: 0; }
@media (max-width: 700px) {
  .lp-brand-header { gap: var(--lp-space-3); }
  .lp-brand-header__actions { margin-left: 0; }
}

/* ── 4. TIPOGRAFIA / LABELS ────────────────────────────────────── */
.lp-eyebrow {
  color: var(--lp-eyebrow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.lp-title {
  color: var(--lp-ink);
  font-size: var(--lp-fs-h1);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.lp-lead {
  color: var(--lp-muted);
  font-size: var(--lp-fs-body);
  line-height: 1.6;
}

/* ── 5. CONTAINER ──────────────────────────────────────────────── */
.lp-container {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}
@media (max-width: 700px) {
  .lp-container { width: calc(100% - 30px); }
}

/* ── 6. LINK DE RETORNO ────────────────────────────────────────── */
.lp-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lp-muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color .2s var(--lp-ease);
}
.lp-back:hover, .lp-back:focus-visible { color: var(--lp-ink); outline: none; }
.lp-back svg { width: 15px; height: 15px; }

/* ── 7. BOTÕES GLOBAIS ─────────────────────────────────────────── */
/* A função define o estilo — não o módulo. */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--lp-radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background .2s var(--lp-ease), border-color .2s var(--lp-ease),
              color .2s var(--lp-ease), transform .15s var(--lp-ease),
              box-shadow .2s var(--lp-ease);
}
.lp-btn:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }
.lp-btn:active { transform: translateY(1px); }
.lp-btn:disabled, .lp-btn[aria-disabled='true'] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Primary — ação principal da tela (+ Nova apresentação, Salvar, Publicar) */
.lp-btn--primary {
  background: var(--lp-ink);
  border-color: var(--lp-ink);
  color: #fff;
}
.lp-btn--primary:hover:not(:disabled) {
  background: var(--lp-ink-deep);
  box-shadow: var(--lp-shadow-1);
}

/* Secondary — ações de apoio (Abrir, Buscar, Voltar, Reenquadrar) */
.lp-btn--secondary {
  background: var(--lp-surface);
  border-color: var(--lp-line-strong);
  color: var(--lp-ink);
}
.lp-btn--secondary:hover:not(:disabled) {
  border-color: var(--lp-accent);
  background: #fff;
}

/* Ghost — ações de baixa ênfase */
.lp-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--lp-muted);
}
.lp-btn--ghost:hover:not(:disabled) { background: var(--lp-accent-soft); color: var(--lp-ink); }

/* Positive — aprovação */
.lp-btn--positive {
  background: var(--lp-success-soft);
  border-color: #A8B0A1;
  color: #51624D;
}
.lp-btn--positive:hover:not(:disabled) { border-color: #71826D; background: #EDF3E9; }

/* Destructive — exclusão/remoção */
.lp-btn--danger {
  background: var(--lp-danger);
  border-color: var(--lp-danger);
  color: #fff;
}
.lp-btn--danger:hover:not(:disabled) { background: var(--lp-danger-ink); border-color: var(--lp-danger-ink); }

/* Tamanhos */
.lp-btn--sm { min-height: 40px; padding: 0 12px; font-size: 11px; }
.lp-btn--lg { min-height: 52px; padding: 0 22px; font-size: 13px; border-radius: var(--lp-radius-md); }
.lp-btn--block { width: 100%; }
@media (max-width: 700px) {
  .lp-btn--sm { min-height: 44px; }
  .lp-btn { min-height: 44px; }
  .lp-btn--lg { min-height: 56px; }
}

/* ── 8. CARDS GLOBAIS ──────────────────────────────────────────── */
.lp-card {
  padding: var(--lp-space-6);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
}
.lp-card--interactive {
  transition: transform .2s var(--lp-ease), border-color .2s var(--lp-ease),
              box-shadow .2s var(--lp-ease);
}
.lp-card--interactive:hover,
.lp-card--interactive:focus-visible {
  transform: translateY(-3px);
  border-color: var(--lp-accent);
  box-shadow: var(--lp-shadow-2);
  outline: none;
}
.lp-card--dashed {
  border-style: dashed;
  border-color: var(--lp-line-strong);
  background: var(--lp-surface-alt);
}

/* ── 9. BADGES / STATUS ────────────────────────────────────────── */
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 21px;
  padding: 3px 9px;
  border-radius: var(--lp-radius-pill);
  background: var(--lp-accent-soft);
  color: var(--lp-accent-ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
}
.lp-badge--ready      { background: var(--lp-success-soft); color: var(--lp-success); }
.lp-badge--processing { background: var(--lp-warning-soft); color: var(--lp-warning); }
.lp-badge--pending    { background: var(--lp-surface-sunk); color: var(--lp-muted); }
.lp-badge--danger     { background: var(--lp-danger-soft); color: var(--lp-danger-ink); }
.lp-badge--ink        { background: var(--lp-ink); color: #fff; }

/* ── 10. FORMULÁRIOS ───────────────────────────────────────────── */
.lp-label {
  display: block;
  margin-bottom: 6px;
  color: var(--lp-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lp-input, .lp-textarea, .lp-select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-sm);
  background: #fff;
  color: var(--lp-ink);
  font-size: 13px;
  transition: border-color .2s var(--lp-ease), box-shadow .2s var(--lp-ease);
}
.lp-textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.lp-input::placeholder, .lp-textarea::placeholder { color: var(--lp-faint); opacity: 1; }
.lp-input:focus, .lp-textarea:focus, .lp-select:focus {
  outline: none;
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 3px rgba(182, 158, 129, .18);
}
.lp-field { display: grid; gap: 2px; }
.lp-field-error { margin-top: 5px; color: var(--lp-danger-ink); font-size: 11px; }

/* ── 11. MODAIS ────────────────────────────────────────────────── */
.lp-modal {
  position: fixed;
  inset: 0;
  z-index: var(--lp-z-modal);
  display: none;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
           max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(35, 30, 24, .46);
  overscroll-behavior: contain;
}
.lp-modal.open { display: grid; }
.lp-dialog {
  width: min(650px, 100%);
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  padding: var(--lp-space-6);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-3);
  overscroll-behavior: contain;
}
.lp-dialog__title {
  margin: var(--lp-space-5) 0 var(--lp-space-2);
  color: var(--lp-ink);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.03em;
}
.lp-dialog__close { float: right; }
.lp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: var(--lp-space-5);
}
body.lp-modal-open { overflow: hidden; }
@media (max-width: 700px) {
  .lp-modal { align-items: end; padding: 12px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .lp-dialog { padding: var(--lp-space-5) var(--lp-space-4); border-radius: var(--lp-radius-lg); }
  .lp-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-actions .lp-btn { width: 100%; min-height: 44px; }
}

/* ── 12. MENUS CONTEXTUAIS (⋮ / dropdowns) ─────────────────────── */
.lp-menu {
  position: absolute;
  z-index: var(--lp-z-menu);
  min-width: 200px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-md);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-3);
}
.lp-menu__item {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--lp-radius-sm);
  background: transparent;
  color: var(--lp-ink);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .15s var(--lp-ease);
}
.lp-menu__item:hover, .lp-menu__item:focus-visible { background: var(--lp-accent-soft); outline: none; }
.lp-menu__item--danger { color: var(--lp-danger-ink); }
.lp-menu__item--danger:hover { background: var(--lp-danger-soft); }
.lp-menu.hidden { display: none; }
@media (max-width: 700px) {
  .lp-menu { position: fixed; top: auto; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ── 13. TOASTS (feedback único da plataforma) ─────────────────── */
.lp-toast {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--lp-z-toast);
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 15px;
  border-left: 3px solid var(--lp-accent);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-night-soft);
  color: #fff;
  box-shadow: var(--lp-shadow-2);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s var(--lp-ease), transform .2s var(--lp-ease);
}
.lp-toast.is-visible { opacity: 1; transform: none; }
.lp-toast--error   { border-left-color: #C96A5E; }
.lp-toast--success { border-left-color: #81B29A; }

/* ── 14. LOADING GLOBAL ────────────────────────────────────────── */
.lp-loading {
  display: grid;
  justify-items: center;
  gap: var(--lp-space-3);
  padding: var(--lp-space-10) var(--lp-space-5);
  text-align: center;
}
.lp-loading__logo { width: clamp(110px, 14vw, 150px); }
.lp-loading__text { color: var(--lp-muted); font-size: 13px; }
.lp-loading__bar {
  width: min(220px, 70vw);
  height: 4px;
  overflow: hidden;
  border-radius: var(--lp-radius-pill);
  background: var(--lp-line);
}
.lp-loading__bar i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: var(--lp-radius-pill);
  background: var(--lp-accent);
  animation: lp-loading-slide 1.1s var(--lp-ease) infinite;
}
@keyframes lp-loading-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(290%); }
}

/* ── 15. EMPTY STATES ──────────────────────────────────────────── */
.lp-empty {
  padding: var(--lp-space-10);
  border: 1px dashed var(--lp-line-strong);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface-alt);
  color: var(--lp-muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
.lp-empty strong { display: block; margin-bottom: 6px; color: var(--lp-ink); font-size: 15px; }

/* ── 16. VIEWER 3D COMPACTO (SketchUp View) ────────────────────── */
/* Estilos do viewer público/privado — compartilhados por hub,
   dashboard e página pública. A logo ganha presença com clamp(). */
.levi-3d-modal { position: fixed; inset: 0; z-index: var(--lp-z-viewer); background: var(--lp-bg-deep); display: none; padding: clamp(16px, 2.2vw, 30px); }
.levi-3d-modal.is-open { display: flex; }
.levi-3d-modal__frame { display: flex; flex: 1; flex-direction: column; overflow: hidden; border-radius: var(--lp-radius-xl); background: #D8D3C9; box-shadow: var(--lp-shadow-3); }
.levi-3d-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 78px; padding: 15px 22px; color: #2B2721; background: var(--lp-surface-alt); border-bottom: 1px solid var(--lp-line); font-family: var(--font-sans); }
.levi-3d-brand { display: flex; min-width: 0; align-items: center; gap: 18px; }
.levi-3d-brand img { width: clamp(150px, 16vw, 190px); height: auto; object-fit: contain; object-position: left center; }
.levi-3d-modal__head small { display: block; color: var(--lp-eyebrow); font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.levi-3d-modal__head strong { display: block; max-width: 440px; overflow: hidden; margin-top: 4px; color: var(--lp-ink); font-size: 14px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.levi-3d-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.levi-3d-close, .levi-3d-reset, .levi-3d-fullscreen, .levi-3d-feedback, .levi-3d-approve { border: 1px solid transparent; border-radius: var(--lp-radius-sm); color: #625B50; background: transparent; padding: 8px 10px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; letter-spacing: .01em; transition: background .2s, border-color .2s, color .2s; }
.levi-3d-reset, .levi-3d-fullscreen { color: #746C61; border-color: var(--lp-line); background: #FBFAF8; }
.levi-3d-reset:hover, .levi-3d-fullscreen:hover { border-color: #BAAA96; color: #40382E; }
.levi-3d-feedback { border-color: var(--lp-accent-deep); color: #fff; background: var(--lp-accent-deep); box-shadow: 0 4px 12px rgba(113, 83, 49, .14); }
.levi-3d-feedback:hover { background: #876842; }
.levi-3d-approve { border-color: #A8B0A1; color: #51624D; background: var(--lp-success-soft); }
.levi-3d-approve:hover { border-color: #71826D; background: #EDF3E9; }
.levi-3d-close { color: #8A8277; padding-left: 4px; }
.levi-3d-close:hover { color: #40382E; text-decoration: underline; }
.levi-model-viewer { position: relative; }
.levi-model-viewer::after { content: 'Levi Pessoa Arquitetos'; position: absolute; z-index: 1; right: 18px; bottom: 15px; color: rgba(74, 67, 57, .48); font-family: var(--font-sans, Arial, sans-serif); font-size: 9px; font-weight: 700; letter-spacing: .11em; pointer-events: none; text-transform: uppercase; }
@media (max-width: 700px) {
  .levi-3d-modal { padding: 0; }
  .levi-3d-modal__frame { border-radius: 0; }
  .levi-3d-modal__head { align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; }
  .levi-3d-brand { gap: 10px; }
  .levi-3d-brand img { width: clamp(120px, 32vw, 150px); }
  .levi-3d-brand small { display: none; }
  .levi-3d-modal__head strong { max-width: 128px; margin-top: 0; font-size: 11px; }
  .levi-3d-controls { flex-wrap: nowrap; gap: 4px; }
  .levi-3d-reset, .levi-3d-fullscreen { width: 30px; padding: 7px 0; font-size: 0; }
  .levi-3d-reset::before { content: '↺'; font-size: 15px; }
  .levi-3d-fullscreen::before { content: '⛶'; font-size: 14px; }
  .levi-3d-feedback, .levi-3d-approve, .levi-3d-close { padding: 7px; font-size: 9px; }
  .levi-3d-approve { display: none !important; }
  .levi-model-viewer::after { right: 12px; bottom: 10px; font-size: 8px; }
}

/* ── 17. UTILITÁRIOS DE LAYOUT ─────────────────────────────────── */
.lp-flex { display: flex; }
.lp-flex-col { flex-direction: column; }
.lp-items-center { align-items: center; }
.lp-justify-between { justify-content: space-between; }
.lp-justify-center { justify-content: center; }
.lp-gap-1 { gap: var(--lp-space-1); }
.lp-gap-2 { gap: var(--lp-space-2); }
.lp-gap-3 { gap: var(--lp-space-3); }
.lp-gap-4 { gap: var(--lp-space-4); }
.lp-gap-5 { gap: var(--lp-space-5); }
.lp-gap-6 { gap: var(--lp-space-6); }
.lp-gap-8 { gap: var(--lp-space-8); }
.lp-gap-10 { gap: var(--lp-space-10); }
.lp-w-full { width: 100%; }
.lp-flex-1 { flex: 1; }
.lp-flex-shrink-0 { flex-shrink: 0; }
.lp-overflow-hidden { overflow: hidden; }
.lp-overflow-auto { overflow: auto; }
.lp-relative { position: relative; }
.lp-absolute { position: absolute; }
.lp-fixed { position: fixed; }
.lp-inset-0 { inset: 0; }
.lp-z-10 { z-index: 10; }
.lp-z-20 { z-index: 20; }
.lp-z-30 { z-index: 30; }
.lp-z-40 { z-index: 40; }
.lp-z-50 { z-index: 50; }

/* Grid responsivo */
.lp-grid { display: grid; }
.lp-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.lp-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1120px) {
  .lp-grid-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-grid-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lp-grid-cols-3,
  .lp-grid-cols-4,
  .lp-grid-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lp-grid-cols-2,
  .lp-grid-cols-3,
  .lp-grid-cols-4,
  .lp-grid-cols-5 { grid-template-columns: 1fr; }
}

/* Espaçamento */
.lp-p-1 { padding: var(--lp-space-1); }
.lp-p-2 { padding: var(--lp-space-2); }
.lp-p-3 { padding: var(--lp-space-3); }
.lp-p-4 { padding: var(--lp-space-4); }
.lp-p-5 { padding: var(--lp-space-5); }
.lp-p-6 { padding: var(--lp-space-6); }
.lp-p-8 { padding: var(--lp-space-8); }
.lp-p-10 { padding: var(--lp-space-10); }
.lp-p-12 { padding: var(--lp-space-12); }
.lp-p-16 { padding: var(--lp-space-16); }
.lp-px-4 { padding-left: var(--lp-space-4); padding-right: var(--lp-space-4); }
.lp-px-6 { padding-left: var(--lp-space-6); padding-right: var(--lp-space-6); }
.lp-py-4 { padding-top: var(--lp-space-4); padding-bottom: var(--lp-space-4); }
.lp-py-6 { padding-top: var(--lp-space-6); padding-bottom: var(--lp-space-6); }
.lp-m-auto { margin: auto; }
.lp-mx-auto { margin-left: auto; margin-right: auto; }
.lp-my-4 { margin-top: var(--lp-space-4); margin-bottom: var(--lp-space-4); }
.lp-my-6 { margin-top: var(--lp-space-6); margin-bottom: var(--lp-space-6); }
.lp-mt-4 { margin-top: var(--lp-space-4); }
.lp-mt-6 { margin-top: var(--lp-space-6); }
.lp-mt-8 { margin-top: var(--lp-space-8); }
.lp-mb-4 { margin-bottom: var(--lp-space-4); }
.lp-mb-6 { margin-bottom: var(--lp-space-6); }
.lp-mb-8 { margin-bottom: var(--lp-space-8); }

/* Tipografia utilitária */
.lp-text-center { text-align: center; }
.lp-text-left { text-align: left; }
.lp-text-right { text-align: right; }
.lp-font-sans { font-family: var(--font-sans); }
.lp-font-serif { font-family: var(--font-serif, var(--font-sans)); }
.lp-fs-caption { font-size: var(--lp-fs-caption); }
.lp-fs-body-sm { font-size: var(--lp-fs-body-sm); }
.lp-fs-body { font-size: var(--lp-fs-body); }
.lp-fs-subtitle { font-size: var(--lp-fs-subtitle); }
.lp-fs-h3 { font-size: var(--lp-fs-h3); }
.lp-fs-h2 { font-size: var(--lp-fs-h2); }
.lp-fs-h1 { font-size: var(--lp-fs-h1); }
.lp-fs-display { font-size: var(--lp-fs-display); }
.lp-font-normal { font-weight: 400; }
.lp-font-medium { font-weight: 500; }
.lp-font-semibold { font-weight: 600; }
.lp-font-bold { font-weight: 700; }
.lp-text-ink { color: var(--lp-ink); }
.lp-text-muted { color: var(--lp-muted); }
.lp-text-faint { color: var(--lp-faint); }
.lp-text-accent { color: var(--lp-accent); }
.lp-text-success { color: var(--lp-success); }
.lp-text-danger { color: var(--lp-danger); }
.lp-text-warning { color: var(--lp-warning); }
.lp-text-white { color: #fff; }
.lp-leading-tight { line-height: 1.1; }
.lp-leading-normal { line-height: 1.5; }
.lp-leading-relaxed { line-height: 1.65; }

/* ── 18. TABELA ─────────────────────────────────────────────────── */
.lp-table { width: 100%; border-collapse: collapse; font-size: var(--lp-fs-body-sm); }
.lp-table th { text-align: left; padding: var(--lp-space-4) var(--lp-space-6); font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--lp-muted); border-bottom: 1px solid var(--lp-line); }
.lp-table td { padding: var(--lp-space-4) var(--lp-space-6); border-bottom: 1px solid var(--lp-line); vertical-align: middle; }
.lp-table tbody tr { transition: background .2s var(--lp-ease); }
.lp-table tbody tr:hover { background: var(--lp-surface-alt); }
.lp-table--striped tbody tr:nth-child(even) { background: var(--lp-surface-alt); }

/* ── 19. TABS / NAVEGAÇÃO ───────────────────────────────────────── */
.lp-tabs { display: flex; gap: var(--lp-space-2); border-bottom: 1px solid var(--lp-line); margin-bottom: var(--lp-space-6); overflow-x: auto; }
.lp-tab { padding: var(--lp-space-3) var(--lp-space-4); font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--lp-muted); background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: color .2s var(--lp-ease), border-color .2s var(--lp-ease); white-space: nowrap; }
.lp-tab:hover { color: var(--lp-ink); }
.lp-tab.is-active { color: var(--lp-ink); border-bottom-color: var(--lp-ink); }
.lp-tab--pill { border: 1px solid var(--lp-line); border-radius: var(--lp-radius-pill); padding: var(--lp-space-2) var(--lp-space-4); margin-bottom: 0; }
.lp-tab--pill.is-active { background: var(--lp-ink); color: #fff; border-color: var(--lp-ink); }

/* ── 20. SIDEBAR (Dashboard) ────────────────────────────────────── */
.lp-sidebar { width: 280px; height: 100vh; background: var(--lp-surface); border-right: 1px solid var(--lp-line); display: flex; flex-direction: column; padding: var(--lp-space-10) var(--lp-space-6); z-index: 50; }
.lp-sidebar__brand { margin-bottom: var(--lp-space-12); }
.lp-sidebar__logo { width: clamp(140px, 18vw, 200px); height: auto; }
.lp-sidebar__title { font-family: var(--font-serif, var(--font-sans)); font-size: var(--lp-fs-h2); font-weight: 400; letter-spacing: .02em; color: var(--lp-ink); margin-bottom: var(--lp-space-2); }
.lp-sidebar__subtitle { font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .14em; color: var(--lp-muted); }
.lp-sidebar__nav { flex: 1; display: flex; flex-direction: column; gap: var(--lp-space-1); }
.lp-sidebar__group { font-size: var(--lp-fs-caption); font-weight: 700; letter-spacing: .12em; color: var(--lp-accent); margin: var(--lp-space-5) 0 var(--lp-space-2); }
.lp-sidebar__item { display: flex; align-items: center; gap: var(--lp-space-4); padding: var(--lp-space-3) 0; font-size: var(--lp-fs-body-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--lp-muted); cursor: pointer; transition: color .3s var(--lp-ease), padding-left .3s var(--lp-ease); position: relative; }
.lp-sidebar__item svg { width: 20px; height: 20px; color: var(--lp-muted); transition: color .3s var(--lp-ease); }
.lp-sidebar__item:hover { color: var(--lp-ink); padding-left: var(--lp-space-2); }
.lp-sidebar__item:hover svg { color: var(--lp-ink); }
.lp-sidebar__item.is-active { color: var(--lp-ink); font-weight: 600; padding-left: var(--lp-space-3); }
.lp-sidebar__item.is-active::before { content: ''; position: absolute; left: calc(var(--lp-space-6) * -1); top: 50%; transform: translateY(-50%); width: 4px; height: 16px; background: var(--lp-ink); border-radius: 2px; }
.lp-sidebar__item.is-active svg { color: var(--lp-ink); }
.lp-sidebar__footer { border-top: 1px solid var(--lp-line); padding-top: var(--lp-space-5); margin-top: var(--lp-space-5); font-size: var(--lp-fs-caption); color: var(--lp-muted); line-height: 1.6; }

/* ── 21. HEADER GLOBAL ──────────────────────────────────────────── */
.lp-header { padding: var(--lp-space-8) var(--lp-space-10) var(--lp-space-4); display: flex; justify-content: space-between; align-items: flex-end; background: var(--lp-bg); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; transition: border-color .3s var(--lp-ease), background .3s var(--lp-ease); }
.lp-header.scrolled { border-color: var(--lp-line); background: rgba(245, 242, 237, .95); backdrop-filter: blur(10px); }
.lp-header__title h2 { font-family: var(--font-serif, var(--font-sans)); font-size: var(--lp-fs-h1); font-weight: 300; letter-spacing: -.02em; color: var(--lp-ink); }
.lp-header__title p { font-size: var(--lp-fs-body-sm); color: var(--lp-muted); margin-top: var(--lp-space-1); }
.lp-header__actions { display: flex; gap: var(--lp-space-3); align-items: center; }

/* Header variante: módulo */
.lp-header--module { padding: var(--lp-space-6) var(--lp-space-6) var(--lp-space-4); }
.lp-header--module .lp-header__brand { display: flex; align-items: center; gap: var(--lp-space-5); }
.lp-header--module .lp-header__kicker { display: block; margin-bottom: var(--lp-space-1); }

/* ── 22. KANBAN ─────────────────────────────────────────────────── */
.lp-kanban { display: flex; gap: var(--lp-space-4); overflow-x: auto; padding-bottom: var(--lp-space-8); height: calc(100vh - 240px); }
.lp-kanban__col { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--lp-surface); border: 1px solid var(--lp-line); height: 100%; }
.lp-kanban__header { padding: var(--lp-space-5); border-bottom: 1px solid var(--lp-line); display: flex; justify-content: space-between; align-items: center; background: var(--lp-bg); }
.lp-kanban__title { font-size: var(--lp-fs-caption); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--lp-muted); }
.lp-kanban__count { font-size: var(--lp-fs-caption); background: var(--lp-line); padding: var(--lp-space-1) var(--lp-space-3); border-radius: var(--lp-radius-pill); color: var(--lp-muted); }
.lp-kanban__value { font-size: var(--lp-fs-body-sm); color: var(--lp-accent); padding: var(--lp-space-3) var(--lp-space-5); border-bottom: 1px solid var(--lp-line); font-weight: 500; }
.lp-kanban__cards { flex: 1; padding: var(--lp-space-4); overflow-y: auto; display: flex; flex-direction: column; gap: var(--lp-space-3); transition: background-color .2s var(--lp-ease); }
.lp-kanban__cards.drag-over { background: var(--lp-bg); border: 1px dashed var(--lp-accent); }
.lp-kanban__card { background: var(--lp-surface); border: 1px solid var(--lp-line); padding: var(--lp-space-5); cursor: grab; transition: all .3s var(--lp-ease); }
.lp-kanban__card:hover { border-color: var(--lp-muted); box-shadow: var(--lp-shadow-1); transform: translateY(-2px); }
.lp-kanban__card:active { cursor: grabbing; }
.lp-kanban__name { font-family: var(--font-serif, var(--font-sans)); font-size: var(--lp-fs-subtitle); font-weight: 400; margin-bottom: var(--lp-space-2); }
.lp-kanban__project { font-size: var(--lp-fs-caption); color: var(--lp-muted); margin-bottom: var(--lp-space-3); }
.lp-kanban__footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--lp-line); padding-top: var(--lp-space-3); }
.lp-kanban__value { font-weight: 600; font-size: var(--lp-fs-body-sm); }
.lp-kanban__date { font-size: var(--lp-fs-caption); color: var(--lp-muted); }

/* ── 23. CALENDÁRIO ─────────────────────────────────────────────── */
.lp-calendar { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--lp-line); border-left: 1px solid var(--lp-line); background: var(--lp-surface); }
.lp-calendar__header { padding: var(--lp-space-4) 0; text-align: center; font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .1em; color: var(--lp-muted); font-weight: 600; border-bottom: 1px solid var(--lp-line); border-right: 1px solid var(--lp-line); background: var(--lp-bg); }
.lp-calendar__day { height: 100px; padding: var(--lp-space-3); border-right: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: background-color .3s var(--lp-ease); }
.lp-calendar__day:hover { background: var(--lp-bg); cursor: pointer; }
.lp-calendar__day--other { background: var(--lp-bg); opacity: .4; }
.lp-calendar__num { font-size: var(--lp-fs-body-sm); font-weight: 500; color: var(--lp-muted); }
.lp-calendar__day--today .lp-calendar__num { color: var(--lp-ink); font-weight: 700; border-bottom: 2px solid var(--lp-accent); display: inline-block; }
.lp-calendar__dots { display: flex; gap: var(--lp-space-1); flex-wrap: wrap; margin-top: var(--lp-space-2); }
.lp-calendar__dot { width: 6px; height: 6px; border-radius: 50%; }
.lp-calendar__dot--meeting { background: #9C27B0; }
.lp-calendar__dot--visit { background: #3A66B8; }
.lp-calendar__dot--presentation { background: #2B967D; }
.lp-calendar__dot--reminder { background: #E6A23C; }
.lp-calendar__dot--default { background: var(--lp-accent); }

/* ── 24. EVENTOS / PAINEL LATERAL ───────────────────────────────── */
.lp-events { display: flex; flex-direction: column; gap: var(--lp-space-4); }
.lp-event { border-left: 3px solid var(--lp-accent); background: var(--lp-surface); padding: var(--lp-space-4); border-top: 1px solid var(--lp-line); border-right: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); }
.lp-event--meeting { border-left-color: #9C27B0; }
.lp-event--visit { border-left-color: #3A66B8; }
.lp-event--presentation { border-left-color: #2B967D; }
.lp-event--reminder { border-left-color: #E6A23C; }
.lp-event__time { font-size: var(--lp-fs-caption); color: var(--lp-muted); font-weight: 600; }
.lp-event__title { font-family: var(--font-serif, var(--font-sans)); font-size: var(--lp-fs-subtitle); font-weight: 400; margin-top: var(--lp-space-1); }
.lp-event__client { font-size: var(--lp-fs-caption); color: var(--lp-muted); margin-top: var(--lp-space-1); }

/* ── 25. TIMELINE ───────────────────────────────────────────────── */
.lp-timeline { position: relative; padding-left: var(--lp-space-10); margin-top: var(--lp-space-6); }
.lp-timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--lp-line); }
.lp-timeline__item { position: relative; margin-bottom: var(--lp-space-8); }
.lp-timeline__item::before { content: ''; position: absolute; left: calc(var(--lp-space-10) * -1 + 6px); top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--lp-surface); border: 2px solid var(--lp-muted); transition: all .3s var(--lp-ease); z-index: 2; }
.lp-timeline__item:hover::before { border-color: var(--lp-ink); background: var(--lp-accent); }
.lp-timeline__item--whatsapp::before { border-color: #25D366; }
.lp-timeline__item--call::before { border-color: #3A66B8; }
.lp-timeline__item--email::before { border-color: #E6A23C; }
.lp-timeline__item--meeting::before { border-color: #9C27B0; }
.lp-timeline__item--note::before { border-color: var(--lp-muted); }
.lp-timeline__meta { display: flex; justify-content: space-between; font-size: var(--lp-fs-caption); color: var(--lp-muted); margin-bottom: var(--lp-space-2); }
.lp-timeline__type { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.lp-timeline__date { font-style: italic; }
.lp-timeline__card { background: var(--lp-surface); border: 1px solid var(--lp-line); padding: var(--lp-space-5); }
.lp-timeline__card p { font-size: var(--lp-fs-body-sm); color: var(--lp-ink); }

/* ── 26. CHECKLIST ──────────────────────────────────────────────── */
.lp-checklist { margin-top: var(--lp-space-6); }
.lp-checklist__item { display: flex; align-items: flex-start; gap: var(--lp-space-3); padding: var(--lp-space-3) 0; border-bottom: 1px solid var(--lp-line); }
.lp-checklist__item:last-child { border-bottom: none; }
.lp-checklist__box { width: 20px; height: 20px; border: 1px solid var(--lp-line); margin-top: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .3s var(--lp-ease); background: var(--lp-surface); flex-shrink: 0; border-radius: var(--lp-radius-sm); }
.lp-checklist__box:hover { border-color: var(--lp-ink); }
.lp-checklist__box:checked { background: var(--lp-ink); border-color: var(--lp-ink); }
.lp-checklist__box:checked::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; }
.lp-checklist__text { font-size: var(--lp-fs-body-sm); transition: color .3s var(--lp-ease), text-decoration .3s var(--lp-ease); }
.lp-checklist__text--done { color: var(--lp-muted); text-decoration: line-through; }

/* ── 27. DOCUMENTOS / UPLOAD ────────────────────────────────────── */
.lp-documents { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lp-space-5); }
@media (max-width: 900px) { .lp-documents { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-documents { grid-template-columns: 1fr; } }
.lp-document { background: var(--lp-surface); border: 1px solid var(--lp-line); padding: var(--lp-space-5); display: flex; flex-direction: column; justify-content: space-between; height: 180px; }
.lp-document__preview { height: 90px; background: var(--lp-bg); border: 1px dashed var(--lp-line); display: flex; align-items: center; justify-content: center; color: var(--lp-muted); font-size: var(--lp-fs-caption); margin-bottom: var(--lp-space-3); position: relative; overflow: hidden; border-radius: var(--lp-radius-sm); }
.lp-document__preview img { width: 100%; height: 100%; object-fit: cover; }
.lp-document__info h4 { font-size: var(--lp-fs-body-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-document__info span { font-size: var(--lp-fs-caption); color: var(--lp-muted); }
.lp-document__actions { display: flex; justify-content: flex-end; gap: var(--lp-space-3); margin-top: var(--lp-space-3); }
.lp-document__link { font-size: var(--lp-fs-caption); color: var(--lp-accent); cursor: pointer; }
.lp-document__link--danger { color: var(--lp-danger); }
.lp-upload { border: 1px dashed var(--lp-line); padding: var(--lp-space-10); text-align: center; background: var(--lp-surface); cursor: pointer; transition: border-color .3s var(--lp-ease); border-radius: var(--lp-radius-lg); }
.lp-upload:hover { border-color: var(--lp-ink); }
.lp-upload svg { width: 28px; height: 28px; color: var(--lp-accent); margin-bottom: var(--lp-space-2); }
.lp-upload p { font-size: var(--lp-fs-caption); color: var(--lp-muted); }

/* ── 28. BIBLIOTECA / GRID DE ITENS ─────────────────────────────── */
.lp-library { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--lp-space-5); }
@media (max-width: 1120px) { .lp-library { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .lp-library { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-library { grid-template-columns: 1fr; } }
.lp-library__item { background: var(--lp-surface); border: 1px solid var(--lp-line); overflow: hidden; display: flex; flex-direction: column; height: 250px; }
.lp-library__preview { height: 150px; background: var(--lp-bg); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.lp-library__preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--lp-ease); }
.lp-library__item:hover .lp-library__preview img { transform: scale(1.05); }
.lp-library__info { padding: var(--lp-space-4); display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.lp-library__tag { font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--lp-accent); font-weight: 600; }
.lp-library__title { font-family: var(--font-serif, var(--font-sans)); font-size: var(--lp-fs-subtitle); font-weight: 400; margin-top: var(--lp-space-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-library__meta { font-size: var(--lp-fs-caption); color: var(--lp-muted); margin-top: auto; }

/* ── 29. PAINEL MÉTRICAS (Stat Cards) ───────────────────────────── */
.lp-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--lp-space-5); margin-bottom: var(--lp-space-6); }
@media (max-width: 1120px) { .lp-metrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .lp-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-metrics { grid-template-columns: 1fr; } }
.lp-metric { background: var(--lp-surface); border: 1px solid var(--lp-line); padding: var(--lp-space-6); display: flex; flex-direction: column; }
.lp-metric__label { font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .1em; color: var(--lp-muted); }
.lp-metric__value { font-family: var(--font-serif, var(--font-sans)); font-size: var(--lp-fs-h1); font-weight: 300; margin-top: var(--lp-space-3); line-height: 1; }
.lp-metric__meta { font-size: var(--lp-fs-caption); color: var(--lp-muted); margin-top: var(--lp-space-3); display: flex; align-items: center; gap: var(--lp-space-2); }
.lp-metric__meta--positive { color: var(--lp-success); }
.lp-metric--border { border-left: 3px solid var(--lp-accent); }
.lp-metric--border-danger { border-left-color: var(--lp-danger); }
.lp-metric--border-warning { border-left-color: var(--lp-warning); }
.lp-metric--border-success { border-left-color: var(--lp-success); }

/* ── 30. GRÁFICO SVG ────────────────────────────────────────────── */
.lp-chart { height: 320px; position: relative; }
.lp-chart svg { width: 100%; height: 100%; }
.lp-chart__line { fill: none; stroke: var(--lp-ink); stroke-width: 1.5; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: lp-chart-draw 3s var(--lp-ease) forwards; }
.lp-chart__area { fill: url(#lp-chart-gradient); opacity: .03; }
.lp-chart__grid { stroke: var(--lp-line); stroke-width: .5; stroke-dasharray: 4,4; }
.lp-chart__point { fill: var(--lp-surface); stroke: var(--lp-ink); stroke-width: 2; transition: r .2s var(--lp-ease), fill .2s var(--lp-ease); cursor: pointer; }
.lp-chart__point:hover { r: 6; fill: var(--lp-accent); }
@keyframes lp-chart-draw { to { stroke-dashoffset: 0; } }
.lp-chart__tooltip { position: absolute; background: var(--lp-ink); color: #fff; padding: var(--lp-space-2) var(--lp-space-3); font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .08em; pointer-events: none; display: none; z-index: 20; border-radius: var(--lp-radius-sm); }

/* ── 31. MÉTRICAS DE LINHA (Origem, etc.) ───────────────────────── */
.lp-metric-row { display: flex; justify-content: space-between; align-items: center; padding: var(--lp-space-3) 0; border-bottom: 1px solid var(--lp-line); }
.lp-metric-row:last-child { border-bottom: none; }
.lp-metric-row__name { font-size: var(--lp-fs-body-sm); }
.lp-metric-row__value { font-weight: 600; font-size: var(--lp-fs-body-sm); }
.lp-progress { height: 2px; background: var(--lp-line); width: 100%; margin-top: var(--lp-space-2); position: relative; }
.lp-progress__fill { height: 100%; background: var(--lp-accent); width: 0; transition: width 1s var(--lp-ease); }

/* ── 32. STEPPER / FASES (Contrato, Briefing) ───────────────────── */
.lp-stepper { display: flex; justify-content: center; gap: var(--lp-space-3); flex-wrap: wrap; margin-bottom: var(--lp-space-6); }
.lp-step { display: flex; align-items: center; gap: var(--lp-space-2); padding: var(--lp-space-2) var(--lp-space-4); border-radius: var(--lp-radius-pill); background: var(--lp-surface-sunk); color: var(--lp-ink); font-size: var(--lp-fs-body-sm); font-weight: 600; letter-spacing: .06em; }
.lp-step__dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: var(--lp-fs-caption); }
.lp-step.is-active { background: var(--lp-accent); color: #fff; }
.lp-step.is-completed { background: var(--lp-line); color: var(--lp-ink); }
.lp-step.is-completed .lp-step__dot { background: rgba(255,255,255,.3); }
.lp-step__line { flex: 1; height: 2px; background: var(--lp-line); margin: 0 var(--lp-space-3); display: none; }
@media (min-width: 640px) { .lp-step__line { display: block; } }

/* ── 33. ALERT / NOTICE ─────────────────────────────────────────── */
.lp-alert { margin: var(--lp-space-6) 0; padding: var(--lp-space-4) var(--lp-space-5); border-radius: var(--lp-radius-md); font-size: var(--lp-fs-body-sm); line-height: 1.6; }
.lp-alert--info { background: var(--lp-surface-sunk); color: var(--lp-muted); border: 1px solid var(--lp-line); }
.lp-alert--success { background: var(--lp-success-soft); color: var(--lp-success); border: 1px solid var(--lp-success); }
.lp-alert--warning { background: var(--lp-warning-soft); color: var(--lp-warning); border: 1px solid var(--lp-warning); }
.lp-alert--danger { background: var(--lp-danger-soft); color: var(--lp-danger-ink); border: 1px solid var(--lp-danger); }

/* ── 34. FORMULÁRIOS EXTENDIDOS ────────────────────────────────── */
.lp-field { display: grid; gap: var(--lp-space-1); margin-bottom: var(--lp-space-4); }
.lp-field--inline { grid-template-columns: 1fr 1fr; gap: var(--lp-space-4); align-items: end; }
@media (max-width: 640px) { .lp-field--inline { grid-template-columns: 1fr; } }
.lp-search { position: relative; }
.lp-search__input { width: 100%; padding: var(--lp-space-3) var(--lp-space-4) var(--lp-space-3) var(--lp-space-10); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); background: var(--lp-surface); color: var(--lp-ink); font-size: var(--lp-fs-body-sm); transition: border-color .2s var(--lp-ease), box-shadow .2s var(--lp-ease); }
.lp-search__input:focus { outline: none; border-color: var(--lp-accent); box-shadow: 0 0 0 3px rgba(182, 158, 129, .18); }
.lp-search__icon { position: absolute; left: var(--lp-space-3); top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--lp-muted); pointer-events: none; }
.lp-file-upload { position: relative; }
.lp-file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lp-file-upload__label { display: inline-flex; align-items: center; gap: var(--lp-space-2); padding: var(--lp-space-2) var(--lp-space-4); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); background: var(--lp-surface); color: var(--lp-ink); font-size: var(--lp-fs-body-sm); font-weight: 600; cursor: pointer; transition: border-color .2s var(--lp-ease); }
.lp-file-upload__label:hover { border-color: var(--lp-accent); }
.lp-file-upload__label svg { width: 16px; height: 16px; }
.lp-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370695F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--lp-space-3) center; background-size: 14px; padding-right: var(--lp-space-10); }
.lp-checkbox-row { display: flex; align-items: center; gap: var(--lp-space-3); }
.lp-checkbox { width: 18px; height: 18px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); accent-color: var(--lp-accent); flex-shrink: 0; cursor: pointer; }

/* ── 35. SELECTOR DE LAYOUT (Proposta) ──────────────────────────── */
.lp-layout-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--lp-space-3); margin-top: var(--lp-space-3); }
.lp-layout-picker__item { border: 1px solid var(--lp-line); padding: var(--lp-space-4) var(--lp-space-2); text-align: center; font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .05em; background: var(--lp-bg); cursor: pointer; transition: all .3s var(--lp-ease); border-radius: var(--lp-radius-sm); }
.lp-layout-picker__item:hover { border-color: var(--lp-ink); background: #fff; }
.lp-layout-picker__item.is-active { border-color: var(--lp-accent); background: var(--lp-accent-soft); }

/* ── 36. CARD DE APRESENTAÇÃO (Slide preview) ───────────────────── */
.lp-slide-preview { aspect-ratio: 16/9; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-lg); box-shadow: var(--lp-shadow-1); position: relative; overflow: hidden; }
.lp-slide-preview__bg { position: absolute; inset: 0; object-fit: cover; pointer-events: none; opacity: .85; }
.lp-slide-preview__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.3); z-index: 1; display: none; }
.lp-slide-preview--dark .lp-slide-preview__overlay { display: block; }
.lp-slide-preview__content { position: relative; z-index: 2; width: 100%; height: 100%; padding: 8% 10%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: var(--lp-ink); box-sizing: border-box; }
.lp-slide-preview--dark .lp-slide-preview__content { color: #F5F2ED; }
.lp-slide-preview__title { font-family: var(--font-serif, var(--font-sans)); font-size: 4vw; font-weight: 300; line-height: 1.1; margin-bottom: 1.5vh; }
.lp-slide-preview__tagline { font-size: 1vw; text-transform: uppercase; letter-spacing: .15em; color: var(--lp-accent); margin-bottom: 2vh; font-weight: 500; }
.lp-slide-preview__text { font-size: 1.3vw; line-height: 1.6; max-width: 80%; opacity: .85; }
.lp-slide-preview--dark .lp-slide-preview__text { color: inherit; opacity: .85; }

/* ── 37. EDITOR DE SLIDES (Workspace) ───────────────────────────── */
.lp-editor { display: grid; grid-template-columns: 240px 1fr 320px; height: calc(100vh - 64px); border: 1px solid var(--lp-line); background: var(--lp-bg); overflow: hidden; }
.lp-editor__sidebar { background: var(--lp-surface); border-right: 1px solid var(--lp-line); display: flex; flex-direction: column; height: 100%; }
.lp-editor__header { padding: var(--lp-space-4) var(--lp-space-5); font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; border-bottom: 1px solid var(--lp-line); display: flex; justify-content: space-between; align-items: center; }
.lp-editor__list { flex: 1; overflow-y: auto; padding: var(--lp-space-4); display: flex; flex-direction: column; gap: var(--lp-space-4); }
.lp-editor__thumb { border: 1px solid var(--lp-line); background: var(--lp-bg); aspect-ratio: 16/9; position: relative; cursor: pointer; transition: all .3s var(--lp-ease); padding: var(--lp-space-2); border-radius: var(--lp-radius-sm); }
.lp-editor__thumb:hover { border-color: var(--lp-ink); }
.lp-editor__thumb.is-active { border-color: var(--lp-accent); box-shadow: 0 0 0 2px var(--lp-accent); }
.lp-editor__thumb-num { position: absolute; top: var(--lp-space-2); left: var(--lp-space-2); font-size: var(--lp-fs-caption); font-weight: 500; color: var(--lp-muted); }
.lp-editor__thumb-name { position: absolute; bottom: var(--lp-space-2); left: var(--lp-space-2); font-size: var(--lp-fs-caption); text-transform: uppercase; letter-spacing: .05em; color: var(--lp-ink); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 90%; }
.lp-editor__actions { position: absolute; top: var(--lp-space-2); right: var(--lp-space-2); display: none; gap: var(--lp-space-1); }
.lp-editor__thumb:hover .lp-editor__actions { display: flex; }
.lp-editor__btn { background: rgba(255,255,255,.9); border: 1px solid var(--lp-line); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: var(--lp-fs-caption); cursor: pointer; border-radius: var(--lp-radius-sm); }
.lp-editor__canvas { display: flex; align-items: center; justify-content: center; padding: var(--lp-space-10); height: 100%; position: relative; overflow: auto; }
.lp-editor__frame { width: 100%; max-width: 800px; aspect-ratio: 16/9; background: #fff; border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow-1); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: all .3s var(--lp-ease); }
.lp-editor__settings { background: var(--lp-surface); border-left: 1px solid var(--lp-line); display: flex; flex-direction: column; height: 100%; }
.lp-editor__settings-scroll { flex: 1; overflow-y: auto; padding: var(--lp-space-6); }
.lp-editor__section { border-top: 1px solid var(--lp-line); padding-top: var(--lp-space-6); }
.lp-editor__section:first-child { border-top: none; padding-top: 0; }
.lp-editor__kicker { display: block; color: var(--lp-accent); font-size: var(--lp-fs-caption); font-weight: 700; letter-spacing: .1em; margin-bottom: var(--lp-space-2); }
.lp-editor__section h3 { margin: 0; color: var(--lp-ink); font-family: var(--font-serif, var(--font-sans)); font-size: var(--lp-fs-h2); font-weight: 400; }
.lp-editor__section p { margin: var(--lp-space-2) 0 0; color: var(--lp-muted); font-size: var(--lp-fs-body-sm); }

/* ── 38. APRESENTAÇÃO CINEMATOGRÁFICA (Fullscreen) ──────────────── */
.lp-presentation { position: fixed; inset: 0; z-index: 1000; background: #0E0E0C; color: #F5F2ED; overflow: hidden; font-family: var(--font-sans); }
.lp-presentation__stage { width: 100%; height: 100%; position: relative; }
.lp-presentation__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1s var(--lp-ease), filter 1s var(--lp-ease), transform 1.2s var(--lp-ease); display: flex; align-items: center; justify-content: center; transform: scale(1.05); filter: blur(8px); }
.lp-presentation__slide.is-active { opacity: 1; pointer-events: auto; transform: scale(1); filter: none; }
.lp-presentation__controls { position: fixed; bottom: var(--lp-space-6); left: 50%; transform: translateX(-50%); display: flex; gap: var(--lp-space-3); z-index: 20; padding: var(--lp-space-3) var(--lp-space-5); background: rgba(24,23,21,.9); border: 1px solid var(--lp-night-line); border-radius: var(--lp-radius-xl); backdrop-filter: blur(10px); }
.lp-presentation__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--lp-night-line); background: var(--lp-night-soft); color: var(--lp-night-text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s var(--lp-ease); }
.lp-presentation__btn:hover { background: var(--lp-night); border-color: var(--lp-gold); }
.lp-presentation__counter { display: flex; align-items: center; color: var(--lp-night-muted); font-size: var(--lp-fs-body-sm); }

/* ── 39. VIEWER 3D (Já existe como .levi-3d-modal, manter compat) ── */
/* ── 40. TOAST (Feedback global) ────────────────────────────────── */
.lp-toast-root { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--lp-z-toast); display: flex; flex-direction: column; gap: var(--lp-space-2); pointer-events: none; }
.lp-toast { max-width: min(380px, calc(100vw - 32px)); padding: var(--lp-space-3) var(--lp-space-4); border-left: 3px solid var(--lp-accent); border-radius: var(--lp-radius-sm); background: var(--lp-night-soft); color: #fff; box-shadow: var(--lp-shadow-2); font-size: var(--lp-fs-body-sm); line-height: 1.45; opacity: 0; transform: translateY(12px); transition: opacity .2s var(--lp-ease), transform .2s var(--lp-ease); }
.lp-toast.is-visible { opacity: 1; transform: none; }
.lp-toast--error { border-left-color: #C96A5E; }
.lp-toast--success { border-left-color: #81B29A; }
.lp-toast--warning { border-left-color: var(--lp-warning); }

/* ── 41. LOADING GLOBAL ─────────────────────────────────────────── */
.lp-loading { display: grid; justify-items: center; gap: var(--lp-space-3); padding: var(--lp-space-10) var(--lp-space-5); text-align: center; }
.lp-loading__logo { width: clamp(110px, 14vw, 150px); }
.lp-loading__text { color: var(--lp-muted); font-size: var(--lp-fs-body-sm); }
.lp-loading__bar { width: min(220px, 70vw); height: 4px; overflow: hidden; border-radius: var(--lp-radius-pill); background: var(--lp-line); }
.lp-loading__bar i { display: block; width: 38%; height: 100%; border-radius: var(--lp-radius-pill); background: var(--lp-accent); animation: lp-loading-slide 1.1s var(--lp-ease) infinite; }
@keyframes lp-loading-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(290%); } }

/* ── 42. EMPTY STATE ────────────────────────────────────────────── */
.lp-empty { padding: var(--lp-space-12); border: 1px dashed var(--lp-line-strong); border-radius: var(--lp-radius-lg); background: var(--lp-surface-alt); color: var(--lp-muted); text-align: center; font-size: var(--lp-fs-body-sm); line-height: 1.6; }
.lp-empty strong { display: block; margin-bottom: var(--lp-space-2); color: var(--lp-ink); font-size: var(--lp-fs-subtitle); }

/* ── 43. ACESSIBILIDADE ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── 44. PRINT ──────────────────────────────────────────────────── */
@media print {
  .lp-header, .lp-sidebar, .lp-footer, .lp-btn, .lp-modal, .lp-toast-root, .lp-kanban__header, .lp-kanban__footer { display: none !important; }
  .lp-table { font-size: 9px; }
  .lp-card { box-shadow: none; border-color: #ccc; }
}
