/* =============================================================================
   PROJECT DASHBOARD — Anthares 44 · painel interno do projeto (redesign v2).
   Inspiração de composição: "referencia cliente" — HERO gigante + grande gráfico
   radial + chips glass + poucos cards GRANDES com anel + checklist. Muito espaço
   negativo, vidro/blur, sombras suaves, bordas delicadas. Identidade Anthares.
   Escopo em .pjx*.
   ========================================================================== */
.pjx, .pjx *, .pjx *::before, .pjx *::after { box-sizing: border-box; }
body { margin: 0; }

.pjx {
    --ink: #0e0f12; --ink-2: #383b42; --muted: #6b7280; --faint: #9ca3af;
    --line: rgba(15,16,18,.07); --line-2: rgba(15,16,18,.05);
    --card: #ffffff; --hover: #f2f4f7;
    --blue: #2563EB; --blue-2: #1d4ed8; --blue-bg: rgba(37,99,235,.08);
    --lime: #CCFF00; --green: #16a34a; --amber: #d97706; --red: #dc2626; --violet: #7c3aed; --cyan: #0891b2;
    --glass: rgba(255,255,255,.55); --glass-strong: rgba(255,255,255,.58);
    /* recipe de vidro fosco (Vercel/Stripe/Apple): gradiente translúcido + luz na borda */
    --glass-grad: linear-gradient(158deg, rgba(255,255,255,.58), rgba(255,255,255,.40));
    --glass-blur: blur(28px) saturate(1.5);
    --glass-edge: 1px solid rgba(255,255,255,.55);
    --glass-hi: radial-gradient(130% 82% at 0% 0%, rgba(255,255,255,.5), transparent 46%);
    --radius: 24px; --radius-s: 16px;
    --ease: cubic-bezier(.22,.61,.36,1);
    /* --sh-lift usa a MESMA geometria de --sh (mesmos offsets/blur/spread), só um pouco mais forte,
       para o hover NÃO aumentar o tamanho visual do card (regra: shadow não pode crescer). */
    --sh: 0 1px 1px rgba(16,24,40,.02), 0 18px 40px -26px rgba(30,41,90,.24), inset 0 1px 0 rgba(255,255,255,.75), inset 0 0 0 1px rgba(255,255,255,.08);
    --sh-lift: 0 1px 1px rgba(16,24,40,.03), 0 18px 40px -26px rgba(30,41,90,.34), inset 0 1px 0 rgba(255,255,255,.85), inset 0 0 0 1px rgba(255,255,255,.12);
    min-height: 100vh; display: flex; color: var(--ink);
    /* Fundo IDÊNTICO ao Hero da Home (index.html → #hero-reference: `background: var(--page-background)`).
       Mesma variável e valor da Home (style.css: --page-background: #f8f8f8) — cor chapada, sem
       gradiente/radial/blur/overlay/opacity. Objetivo: fundo absolutamente idêntico ao da Home. */
    --page-background: #f8f8f8;
    background: var(--page-background);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.pjx a { color: inherit; text-decoration: none; }
.pjx button { font-family: inherit; cursor: pointer; }
.pjx :focus-visible { outline: none; box-shadow: 0 0 0 4px var(--blue-bg); }
/* Entrada só por opacidade — NÃO usar transform aqui (conflita com o transform do :hover via fill forwards). */
.pjx-in { opacity: 0; animation: pjxIn .5s var(--ease) forwards; }
@keyframes pjxIn { to { opacity: 1; } }

/* ---------- rail inteligente (glass) — recolhida por padrão, expande no hover ----------
   Estado padrão: ~72px, só logo + ícones (textos totalmente ocultos).
   Hover: expande p/ ~270px revelando labels (fade+slide). Coluna de ícones fixa em
   46px à esquerda → o ícone NUNCA muda de posição (sem "salto"). Ao sair, um delay
   de 150ms (transition-delay no estado base) evita flicker antes de recolher. */
.pjx-rail {
    --rail-w: 72px; --rail-w-open: 270px;
    flex: 0 0 var(--rail-w); width: var(--rail-w); height: 100vh; position: sticky; top: 0; z-index: 45;
    background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-right: 1px solid var(--line-2); display: flex; flex-direction: column; padding: 20px 13px 18px; gap: 6px;
    overflow: hidden; white-space: nowrap;
    transition: width .24s var(--ease) .15s, flex-basis .24s var(--ease) .15s;
}
/* logo — no mesmo eixo dos ícones (slot fixo de 46px), centralizada quando recolhida */
.pjx-rail__logo { display: flex; align-items: center; gap: 12px; height: 42px; margin-bottom: 14px; padding: 0; }
.pjx-rail__logo-ic { flex: 0 0 46px; height: 42px; display: grid; place-items: center; }
.pjx-rail__logo img { height: 27px; }
/* wordmark "Anthares 44" — oculto quando recolhido; entra com fade + slide (esq→dir) ao expandir.
   A logo NÃO se move: o slot .pjx-rail__logo-ic é fixo (flex:0 0 46px) e o texto sobra à direita. */
.pjx-rail__wm { flex: 0 1 auto; min-width: 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .2s var(--ease) .15s, transform .2s var(--ease) .15s; }
.pjx-rail__wm-sub { font-weight: 400; }
.pjx-rail__nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pjx-ni { display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; border-radius: 14px; color: var(--faint); border: 0; background: transparent; position: relative; transition: background .16s var(--ease), color .16s var(--ease); }
.pjx-ni__ic { flex: 0 0 46px; height: 46px; display: grid; place-items: center; }
.pjx-ni__ic svg { width: 21px; height: 21px; }
/* label: oculto quando recolhido; entra com fade + slide ao expandir */
.pjx-ni__t { font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: inherit; opacity: 0; transform: translateX(-6px); transition: opacity .2s var(--ease) .15s, transform .2s var(--ease) .15s; }
.pjx-ni:hover { background: rgba(15,16,18,.05); color: var(--ink-2); }
.pjx-ni.is-active { background: var(--blue-bg); color: var(--blue); }
.pjx-ni.is-active::before { content: ""; position: absolute; left: -13px; top: 50%; transform: translateY(-50%); width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--blue); }
/* rodapé (avatar) — recolhido: só o círculo com a inicial; aberto: nome + workspace */
.pjx-rail__user { margin-top: 6px; }
.pjx-rail__urow { display: flex; align-items: center; gap: 12px; height: 46px; }
.pjx-rail__av { flex: 0 0 auto; width: 38px; height: 38px; margin: 0 4px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, var(--blue), #6366f1); }
.pjx-rail__uinfo { display: flex; flex-direction: column; min-width: 0; opacity: 0; transform: translateX(-6px); transition: opacity .2s var(--ease) .15s, transform .2s var(--ease) .15s; }
.pjx-rail__uname { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.pjx-rail__uws { font-size: 11px; color: var(--muted); line-height: 1.2; }
/* ---- estado EXPANDIDO (hover): abre na hora e revela textos ---- */
@media (hover: hover) {
    .pjx-rail:hover { width: var(--rail-w-open); flex-basis: var(--rail-w-open); transition-delay: 0s; }
    .pjx-rail:hover .pjx-rail__wm, .pjx-rail:hover .pjx-ni__t, .pjx-rail:hover .pjx-rail__uinfo { opacity: 1; transform: translateX(0); transition-delay: .06s; }
}

/* ---------- main ---------- */
.pjx-main { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; scroll-behavior: smooth; }
.pjx-body { max-width: 1440px; margin: 0 auto; padding: 56px 44px 40px; position: relative; }

/* ---------- HERO ---------- */
.pjx-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.32fr 0.54fr; gap: 44px; align-items: stretch; }
.pjx-hero__info { display: flex; flex-direction: column; justify-content: center; }
.pjx-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--blue); background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }
.pjx-badge .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pjx-hero__title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.045em; line-height: 1.03; margin: 0; }
.pjx-hero__title .ai { display: inline-flex; vertical-align: middle; margin-left: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: var(--blue); background: var(--blue-bg); padding: 4px 10px; border-radius: 999px; }
.pjx-hero__lead { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 42ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pjx-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pjx-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: rgba(255,255,255,.6); border: 1px solid var(--line); padding: 6px 12px; border-radius: 11px; }
.pjx-meta .pdot { width: 8px; height: 8px; border-radius: 50%; }
.pjx-meta svg { width: 14px; height: 14px; color: var(--faint); }
.pjx-hero__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.pjx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--ink); font-size: 14px; font-weight: 600; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.pjx-btn svg { width: 16px; height: 16px; }
.pjx-btn:hover { background: #fff; box-shadow: 0 10px 22px -14px rgba(15,16,18,.4); }
.pjx-btn:active { transform: translateY(1px); }
.pjx-btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 12px 26px -12px rgba(15,16,18,.6); }
.pjx a.pjx-btn--primary { color: #fff; }   /* vence o .pjx a{color:inherit} quando o botão primário é um link */

/* Estado "placeholder/estado do módulo" (.dsoon) — as regras viviam só no
   dashboard.css (não carregado aqui), então o SVG ficava SEM tamanho e explodia
   na tela. Replicado aqui com fallbacks para a página de módulo. */
.dsoon { max-width: 520px; margin: 8vh auto 0; text-align: center; }
.dsoon__icon { width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 20px; display: grid; place-items: center; color: var(--blue, #2563eb); background: var(--blue-bg, rgba(37,99,235,.1)); }
.dsoon__icon svg { width: 30px; height: 30px; }
.dsoon__badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--blue, #2563eb); background: var(--blue-bg, rgba(37,99,235,.1)); padding: 5px 12px; border-radius: 999px; }
.dsoon__badge .d-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue, #2563eb); }
.dsoon__title { font-size: 27px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 10px; color: var(--ink, #1f1f1f); }
.dsoon__desc { font-size: 15.5px; line-height: 1.6; color: var(--muted, #5f6368); margin: 0 auto; max-width: 40ch; }

/* Entrada animada da barra lateral (navbar) — logo + itens deslizam/fade em
   sequência quando a tela carrega. Como a sidebar é montada uma vez (SPA), toca
   só na entrada, sem repetir. */
/* Skeleton loader (placeholder com shimmer) — estado de carregamento elegante. */
.skel { display: inline-block; background: linear-gradient(90deg, rgba(15,16,18,.06) 25%, rgba(15,16,18,.11) 37%, rgba(15,16,18,.06) 63%); background-size: 400% 100%; animation: skelShimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes skelShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

@keyframes navIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.pjx-rail__logo, .pjx-rail__nav a.pjx-ni, .pjx-rail__user { animation: navIn .5s cubic-bezier(.2,.8,.2,1) both; }
.pjx-rail__logo { animation-delay: 0s; }
.pjx-rail__nav a.pjx-ni:nth-child(1) { animation-delay: .05s; }
.pjx-rail__nav a.pjx-ni:nth-child(2) { animation-delay: .10s; }
.pjx-rail__nav a.pjx-ni:nth-child(3) { animation-delay: .15s; }
.pjx-rail__nav a.pjx-ni:nth-child(4) { animation-delay: .20s; }
.pjx-rail__nav a.pjx-ni:nth-child(5) { animation-delay: .25s; }
.pjx-rail__nav a.pjx-ni:nth-child(6) { animation-delay: .30s; }
.pjx-rail__nav a.pjx-ni:nth-child(7) { animation-delay: .35s; }
.pjx-rail__nav a.pjx-ni:nth-child(8) { animation-delay: .40s; }
.pjx-rail__user { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .pjx-rail__logo, .pjx-rail__nav a.pjx-ni, .pjx-rail__user { animation: none; } }
.pjx-btn--primary:hover { background: #26272b; }
.pjx-btn--icon { width: 46px; padding: 0; }

/* hero chart — SEM card: fica direto sobre o fundo do dashboard (estilo Linear/Vercel/Apple) */
.pjx-chartpanel { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; }
.pjx-chartpanel__head { display: flex; align-items: flex-start; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.pjx-chartpanel__k { font-size: 13px; color: var(--muted); font-weight: 600; }
.pjx-chartpanel__v { font-size: 24px; font-weight: 800; letter-spacing: -.04em; margin-top: 2px; }
.pjx-chartpanel__v small { font-size: 13px; font-weight: 700; color: var(--green); margin-left: 8px; letter-spacing: 0; }
/* seletor de período — agora CENTRALIZADO abaixo do gráfico (mesmo design de sempre) */
.pjx-seg { align-self: center; display: inline-flex; background: rgba(15,16,18,.05); border-radius: 12px; padding: 4px; gap: 2px; margin-top: 12px; }
.pjx-seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background .16s var(--ease), color .16s var(--ease); }
.pjx-seg button:hover { color: var(--ink); }
.pjx-seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,16,18,.12); }
/* ===== gráfico de analytics (line + area) — Vercel/Linear/Stripe/Supabase ===== */
.pjx-chartwrap { flex: 1; min-height: 225px; position: relative; }   /* ~25% mais baixo que o antigo */
.pjx-chart { display: flex; height: 100%; gap: 10px; }
.pjx-chart__yax { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 2px 2px 24px; }
.pjx-chart__yax span { font-size: 10.5px; font-weight: 600; color: var(--faint); line-height: 1; }
.pjx-chart__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pjx-chart__plot { position: relative; flex: 1; min-height: 0; }
.pjx-chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pjx-chart__grid line { stroke: rgba(15,16,18,.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pjx-chart__line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 5px 9px rgba(99,80,240,.30)); }
.pjx-chart__line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pjxDraw 1.4s var(--ease) .15s forwards; }
@keyframes pjxDraw { to { stroke-dashoffset: 0; } }
.pjx-chart__end { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #6d4bf0; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(109,75,240,.14), 0 4px 12px rgba(109,75,240,.45); z-index: 2; }
.pjx-chart__xax { display: flex; justify-content: space-between; padding: 8px 0 0; }
.pjx-chart__xax span { font-size: 10.5px; font-weight: 600; color: var(--faint); }
/* pontos + tooltip elegante (hover, CSS puro) */
.pjx-chart__pts { position: absolute; inset: 0; display: flex; }
.pjx-pt { flex: 1; position: relative; }
.pjx-pt__cross { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(37,99,235,.4), rgba(124,58,237,.04)); opacity: 0; transition: opacity .12s ease; }
.pjx-pt__dot { position: absolute; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2.5px solid #6d4bf0; transform: translate(-50%, -50%); opacity: 0; transition: opacity .12s ease; box-shadow: 0 2px 6px rgba(99,80,240,.4); }
.pjx-pt__tip { position: absolute; left: 50%; transform: translate(-50%, -145%); background: #14151a; color: #fff; padding: 7px 11px; border-radius: 10px; white-space: nowrap; text-align: center; opacity: 0; transition: opacity .12s ease; pointer-events: none; box-shadow: 0 12px 26px -8px rgba(15,16,18,.55); z-index: 3; }
.pjx-pt__tip .v { font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.pjx-pt__tip b { display: block; font-size: 10px; font-weight: 500; color: rgba(255,255,255,.6); margin-top: 1px; }
.pjx-pt:hover .pjx-pt__cross, .pjx-pt:hover .pjx-pt__dot, .pjx-pt:hover .pjx-pt__tip { opacity: 1; }
.pjx-chartpanel__cap { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* hero chips (glassmorphism premium — flutuando, sparkline + delta discreto) */
.pjx-hero__chips { display: flex; flex-direction: column; gap: 14px; }
.pjx-chip {
    box-sizing: border-box; position: relative; overflow: hidden; flex: 1;
    display: flex; flex-direction: column; justify-content: center; padding: 16px 18px;
    border-radius: 22px; background: var(--glass-grad);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: var(--glass-edge); box-shadow: var(--sh); will-change: transform;
    transition: background-color .25s ease, box-shadow .25s ease, opacity .25s ease, transform .25s ease;
}
.pjx-chip::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--glass-hi); }
.pjx-chip:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.pjx-chip__top { display: flex; align-items: center; gap: 9px; position: relative; z-index: 2; }
.pjx-chip__ic { width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.pjx-chip__ic svg { width: 15px; height: 15px; }
.pjx-chip__k { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: -.01em; }
.pjx-chip__delta { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 650; letter-spacing: -.01em; }
.pjx-chip__delta svg { width: 9px; height: 9px; }
.pjx-chip__v { font-size: 27px; font-weight: 800; letter-spacing: -.045em; margin-top: 8px; position: relative; z-index: 2; }
.pjx-chip__spark { position: absolute; right: 14px; bottom: 12px; width: 76px; height: 30px; opacity: .92; z-index: 1; pointer-events: none; }

/* ---------- section title ---------- */
.pjx-sec { position: relative; z-index: 1; margin-top: 30px; scroll-margin-top: 80px; }
.pjx-sec__title { font-size: 19px; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.pjx-sec__sub { font-size: 13.5px; color: var(--muted); margin: 3px 0 0; }
.pjx-sec__head { margin-bottom: 14px; }

/* ---------- cards GRANDES (anel + checklist) ---------- */
.pjx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }
.pjx-bc {
    box-sizing: border-box; position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius);
    background: var(--glass-grad); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: var(--glass-edge); box-shadow: var(--sh); min-height: 200px; display: flex; flex-direction: column; will-change: transform;
    transition: background-color .25s ease, box-shadow .25s ease, opacity .25s ease, transform .25s ease;
}
.pjx-bc::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; background: var(--glass-hi); }
.pjx-bc:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.pjx-bc__glow { position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; opacity: .55; }
.pjx-bc__head { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.pjx-bc__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.pjx-bc__ic svg { width: 19px; height: 19px; }
.pjx-bc__title { font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.pjx-bc__tag { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.pjx-bc__body { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex: 1; position: relative; z-index: 1; }
.pjx-ring { width: 104px; height: 104px; flex: 0 0 auto; position: relative; }
.pjx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pjx-ring__track { stroke: rgba(15,16,18,.07); }
.pjx-ring__val { fill: none; stroke-linecap: round; animation: ringIn 1.2s var(--ease) .2s both; }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--o); } }
.pjx-ring__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pjx-ring__pct { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.pjx-ring__lab { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.pjx-checks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pjx-check { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.pjx-check__ic { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px; display: grid; place-items: center; }
.pjx-check__ic svg { width: 12px; height: 12px; }
.pjx-check__t { color: var(--ink-2); font-weight: 500; }
.pjx-check__t b { color: var(--ink); font-weight: 700; }
.pjx-bc__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; position: relative; z-index: 1; }
.pjx-bc__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink); }
.pjx-bc__link svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.pjx-bc:hover .pjx-bc__link svg { transform: translateX(3px); }

/* card destacado (AI) */
.pjx-bc--hero { background: linear-gradient(145deg, rgba(37,99,235,.06), rgba(124,58,237,.05)), var(--glass-strong); border-color: rgba(37,99,235,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 6px rgba(15,16,18,.05), 0 44px 90px -34px rgba(37,99,235,.28); }
.pjx-bc__askbtn { height: 42px; padding: 0 18px; border-radius: 12px; background: var(--blue); color: #fff; border: 0; font-size: 13.5px; font-weight: 650; display: inline-flex; align-items: center; gap: 8px; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.pjx-bc__askbtn svg { width: 15px; height: 15px; }
.pjx-bc__askbtn:hover { background: var(--blue-2); } .pjx-bc__askbtn:active { transform: translateY(1px); }

/* ---------- responsivo ---------- */
@media (max-width: 1280px) {
    .pjx-hero { grid-template-columns: 1fr 1.2fr; }
    .pjx-hero__chips { grid-column: 1 / -1; flex-direction: row; }
}
@media (max-width: 900px) {
    .pjx-body { padding-left: 24px; padding-right: 24px; }
    .pjx-hero { grid-template-columns: 1fr; }
    .pjx-hero__chips { flex-direction: row; }
    .pjx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pjx-rail { --rail-w: 62px; flex-basis: var(--rail-w); width: var(--rail-w); }
    .pjx-hero__title { font-size: 28px; }
    .pjx-hero__title .ai { display: none; }
    .pjx-hero__chips { flex-direction: column; }
    .pjx-bc__body { flex-direction: column; align-items: flex-start; gap: 18px; }
    .pjx-ring { width: 110px; height: 110px; }
    .pjx-body { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .pjx-rail, .pjx-rail__wm, .pjx-ni__t, .pjx-rail__uinfo { transition: none; }
    .pjx-in, .pjx-chart__line, .pjx-ring__val { animation: none; opacity: 1; }
    .pjx-chart__line { stroke-dashoffset: 0; }
    .pjx-bc:hover, .pjx-chip:hover { transform: none; }
    .pm-stat:hover, .pm-card:hover, .pm-bucket:hover, .pm-feat:hover, .pm-metric:hover { transform: none; }
}

/* =============================================================================
   PLATAFORMA BaaS — módulos (.pm*). Cards discretos, radius 16, sombras suaves.
   ========================================================================== */
.pm { color: var(--ink); }
.pjx-body.pm { max-width: 1200px; padding: 36px 44px 96px; }
.pm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.pm-title { font-size: 27px; font-weight: 750; letter-spacing: -.035em; margin: 0; }
.pm-sub { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.pm-head__act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pm-badge__dot { width: 6px; height: 6px; border-radius: 50%; }
.pm-count { font-size: 13px; color: var(--muted); font-weight: 500; margin-right: 4px; }

/* sub-abas */
.pm-tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.pm-tab { border: 0; background: none; cursor: pointer; padding: 10px 12px; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--muted); position: relative; white-space: nowrap; transition: color .16s var(--ease); }
.pm-tab:hover { color: var(--ink); }
.pm-tab.is-active { color: var(--blue-2); }
.pm-tab.is-active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blue); }

/* grids */
.pm-grid { display: grid; gap: 16px; margin-bottom: 20px; }
.pm-grid--stat { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.pm-grid--kv { grid-template-columns: 1fr; margin: 0; }
.pm-cols { display: grid; gap: 20px; margin-bottom: 20px; }
.pm-cols--2-1 { grid-template-columns: 2fr 1fr; }
.pm-cols--1-1 { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .pm-cols--2-1, .pm-cols--1-1 { grid-template-columns: 1fr; } }

/* stat card */
.pm-stat { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(15,16,18,.03); transition: transform .18s ease, box-shadow .18s ease; will-change: transform; }
.pm-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(15,16,18,.2); }
.pm-stat__top { display: flex; align-items: center; gap: 9px; }
.pm-stat__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.pm-stat__ic svg { width: 16px; height: 16px; }
.pm-stat__k { font-size: 13px; font-weight: 600; color: var(--muted); }
.pm-stat__v { font-size: 26px; font-weight: 800; letter-spacing: -.04em; margin-top: 10px; }
.pm-stat__sub { font-size: 12.5px; color: var(--faint); margin-top: 4px; display: flex; align-items: center; gap: 6px; }

/* card genérico */
.pm-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,16,18,.03); margin-bottom: 20px; overflow: hidden; }
.pm-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.pm-card__title { font-size: 15px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.pm-card__body { padding: 18px 20px; }
.pm-card__body > .pm-grid:last-child, .pm-card__body > .pm-kv:last-child { margin-bottom: 0; }
.pm-cardfoot { margin-top: 16px; }
.pm-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--blue-2); }
.pm-link svg { width: 15px; height: 15px; }

/* key/value */
.pm-kv { display: flex; flex-direction: column; }
.pm-kv__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.pm-kv__row:last-child { border-bottom: 0; }
.pm-kv__k { color: var(--muted); font-weight: 500; }
.pm-kv__v { font-weight: 600; color: var(--ink); text-align: right; }

/* tabela */
.pm-tablewrap { overflow-x: auto; margin: -4px -4px -6px; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pm-table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding: 8px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.pm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.pm-table tbody tr:last-child td { border-bottom: 0; }
.pm-table tbody tr { transition: background .12s var(--ease); }
.pm-table tbody tr:hover { background: rgba(15,16,18,.02); }
.pm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--ink); }
.pm-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }

/* botões */
.pm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), transform .12s var(--ease); }
.pm-btn svg { width: 16px; height: 16px; }
.pm-btn:hover { background: var(--hover); }
.pm-btn:active { transform: translateY(1px); }
.pm-btn--primary { background: #111214; color: #fff; border-color: #111214; }
.pm-btn--primary:hover { background: #26272b; }
.pm-btn--ghost { background: transparent; border-color: var(--line-2); height: 32px; padding: 0 11px; font-size: 12.5px; }
.pm-btn--ghost-danger { background: transparent; border-color: var(--line-2); color: #dc2626; height: 32px; width: 32px; padding: 0; }
.pm-btn--ghost-danger:hover { background: rgba(220,38,38,.07); }
.pm-btn--danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.pm-btn--danger:hover { background: #b91c1c; }
.pm-iconbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--muted); cursor: pointer; flex: 0 0 auto; transition: background .14s var(--ease), color .14s var(--ease); }
.pm-iconbtn svg { width: 15px; height: 15px; }
.pm-iconbtn:hover { background: var(--hover); color: var(--ink); }

/* campos / copy / input */
.pm-field { margin-bottom: 14px; }
.pm-field:last-child { margin-bottom: 0; }
.pm-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.pm-copy { display: flex; align-items: center; gap: 8px; background: #fafbfc; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 6px 6px 12px; }
.pm-copy code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.pm-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }

/* switch */
.pm-switch { position: relative; width: 40px; height: 23px; border-radius: 999px; border: 0; background: rgba(15,16,18,.14); cursor: pointer; flex: 0 0 auto; transition: background .18s var(--ease); }
.pm-switch__k { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,16,18,.3); transition: transform .18s var(--ease); }
.pm-switch.is-on { background: var(--blue); }
.pm-switch.is-on .pm-switch__k { transform: translateX(17px); }

/* listas */
.pm-list { display: flex; flex-direction: column; }
.pm-list__row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.pm-list__row:last-child { border-bottom: 0; }
.pm-list__ic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); }
.pm-list__ic svg { width: 17px; height: 17px; }
.pm-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pm-list__main b { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.pm-list__main span { font-size: 12.5px; color: var(--muted); }
.pm-list__ext { color: var(--faint); }
.pm-list__ext svg { width: 16px; height: 16px; }

/* linhas (deploys) + feed */
.pm-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.pm-row:last-child { border-bottom: 0; }
.pm-row__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.pm-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pm-row__main b { font-size: 13.5px; font-weight: 650; }
.pm-row__sub { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.pm-row__meta { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.pm-feed { display: flex; flex-direction: column; }
.pm-feed__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.pm-feed__row:last-child { border-bottom: 0; }
.pm-feed__ic { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); }
.pm-feed__ic svg { width: 16px; height: 16px; }
.pm-feed__main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pm-feed__main b { font-size: 13.5px; font-weight: 600; }
.pm-feed__main span { font-size: 12.5px; color: var(--muted); }
.pm-feed__t { font-size: 12.5px; color: var(--faint); white-space: nowrap; }

/* chart wrapper (overview) */
.pm-chart { height: 260px; }
.pm-seg { margin: 0; }

/* SQL editor */
.pm-sql { width: 100%; min-height: 130px; border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.6; color: var(--ink); background: #fafbfc; resize: vertical; }
.pm-sql:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }
.pm-sql__res { margin-top: 16px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.pm-sql__bar { font-size: 12px; color: var(--muted); padding: 8px 14px; background: #fafbfc; border-bottom: 1px solid var(--line-2); }
.pm-sql__res .pm-tablewrap { margin: 0; }
.pm-sql__res .pm-table th, .pm-sql__res .pm-table td { padding-left: 14px; }

/* code + sdk */
.pm-code { position: relative; background: #0f1115; border-radius: 10px; overflow: auto; }
.pm-code pre { margin: 0; padding: 18px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.7; color: #d7dbe4; white-space: pre; }
.pm-code__copy { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #cbd2de; }
.pm-code__copy:hover { background: rgba(255,255,255,.16); color: #fff; }
.pm-sdktabs { display: inline-flex; gap: 2px; background: var(--hover); border-radius: 10px; padding: 3px; }
.pm-sdktab { border: 0; background: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 8px; transition: background .14s, color .14s; }
.pm-sdktab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,16,18,.12); }

/* buckets + arquivos */
.pm-buckets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pm-bucket { text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; will-change: transform; }
.pm-bucket:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(15,16,18,.2); border-color: rgba(15,16,18,.12); }
.pm-bucket__top { display: flex; align-items: center; justify-content: space-between; }
.pm-bucket__ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); }
.pm-bucket__ic svg { width: 17px; height: 17px; }
.pm-bucket__name { margin-top: 12px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.pm-bucket__meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pm-file { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink); }
.pm-file__ic { color: var(--muted); display: inline-grid; place-items: center; }
.pm-file__ic svg { width: 17px; height: 17px; }

/* AI: features + chat + models */
.pm-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .pm-feats { grid-template-columns: 1fr; } }
.pm-feat { text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; will-change: transform; }
.pm-feat:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(15,16,18,.2); border-color: rgba(124,58,237,.3); }
.pm-feat__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(124,58,237,.1); color: var(--violet); margin-bottom: 4px; }
.pm-feat__ic svg { width: 17px; height: 17px; }
.pm-feat b { font-size: 13.5px; font-weight: 650; }
.pm-feat span { font-size: 12px; color: var(--muted); }
.pm-models { display: inline-flex; gap: 2px; background: var(--hover); border-radius: 10px; padding: 3px; }
.pm-model { border: 0; background: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 13px; border-radius: 8px; transition: background .14s, color .14s; }
.pm-model.is-active { background: #fff; color: var(--violet); box-shadow: 0 1px 3px rgba(15,16,18,.12); }
.pm-chat { height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 2px; }
.pm-msg { display: flex; gap: 9px; max-width: 88%; }
.pm-msg--me { align-self: flex-end; }
.pm-msg__av { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: rgba(124,58,237,.1); color: var(--violet); }
.pm-msg__av svg { width: 15px; height: 15px; }
.pm-msg__b { font-size: 13.5px; line-height: 1.55; padding: 10px 13px; border-radius: 12px; white-space: pre-wrap; }
.pm-msg--ai .pm-msg__b { background: var(--hover); color: var(--ink); border-top-left-radius: 4px; }
.pm-msg--me .pm-msg__b { background: var(--blue); color: #fff; border-top-right-radius: 4px; }
.pm-chatbar { display: flex; gap: 8px; margin-top: 14px; }
.pm-chatbar input { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 14px; }
.pm-chatbar input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }
.pm-chatbar .pm-btn { width: 42px; padding: 0; }

/* monitoring */
.pm-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .pm-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pm-metrics { grid-template-columns: 1fr; } }
.pm-metric { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 16px 0; box-shadow: 0 1px 2px rgba(15,16,18,.03); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; will-change: transform; }
.pm-metric:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(15,16,18,.2); }
.pm-metric__top { display: flex; align-items: center; gap: 8px; }
.pm-metric__ic svg { width: 16px; height: 16px; }
.pm-metric__k { font-size: 13px; font-weight: 600; color: var(--muted); }
.pm-metric__v { font-size: 23px; font-weight: 800; letter-spacing: -.04em; margin-top: 8px; }
.pm-metric__v small { font-size: 12px; font-weight: 600; color: var(--faint); margin-left: 4px; letter-spacing: 0; }
.pm-metric__chart { height: 54px; margin: 10px -16px 0; }
.pm-spark { width: 100%; height: 100%; display: block; }

/* logs */
.pm-logs { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.9; background: #0f1115; border-radius: 10px; padding: 14px 16px; color: #cdd3de; overflow-x: auto; }
.pm-logline { white-space: nowrap; }
.pm-logline__t { color: #6b7280; margin-right: 12px; }

/* danger zone */
.pm-card--danger { border-color: rgba(220,38,38,.28); }
.pm-danger__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.pm-danger__row:last-child { border-bottom: 0; }
.pm-danger__row b { font-size: 14px; font-weight: 650; display: block; }
.pm-danger__row span { font-size: 12.5px; color: var(--muted); }
.pm-danger__row--red b { color: #dc2626; }

/* toast */
.pm-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); background: #111214; color: #fff; font-size: 13.5px; font-weight: 500; padding: 11px 18px; border-radius: 11px; box-shadow: 0 18px 40px -14px rgba(15,16,18,.5); z-index: 200; opacity: 0; transition: opacity .22s var(--ease), transform .22s var(--ease); pointer-events: none; }
.pm-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================================
   DATABASE — managed DB com menu lateral interno (Supabase-flow, identidade Anthares)
   ========================================================================== */
.pm-dbhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.pm-dbhead__title { font-size: 24px; font-weight: 750; letter-spacing: -.03em; margin: 0; }
.pm-dbhead__dot { color: var(--faint); font-weight: 400; }
.pm-dbhead__sub { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.pm-dbhead__act { display: flex; align-items: center; gap: 16px; }
/* bloco técnico discreto (substitui o badge "Running") */
.pm-dbenv { text-align: right; line-height: 1.35; }
.pm-dbenv__a { font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.pm-dbenv__b { font-size: 12px; color: var(--muted); }
/* botão Connection + dropdown */
.pm-dbconn { position: relative; }
.pm-dbconn > .pm-btn svg { width: 15px; height: 15px; transition: transform .16s var(--ease); }
.pm-dbconn.is-open > .pm-btn svg { transform: rotate(180deg); }
.pm-dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 224px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(15,16,18,.30); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s var(--ease); z-index: 30; }
.pm-dbconn.is-open .pm-dropdown { opacity: 1; visibility: visible; transform: none; }
.pm-dropdown__i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); border-radius: 8px; text-decoration: none; transition: background .14s var(--ease), color .14s var(--ease); }
.pm-dropdown__i svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--faint); }
.pm-dropdown__i:hover { background: var(--hover); color: var(--ink); }
.pm-dropdown__i:hover svg { color: var(--ink-2); }
.pm-db__overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.pm-mini { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 15px; box-shadow: 0 1px 2px rgba(15,16,18,.03); min-width: 0; overflow: hidden; }
.pm-mini__k { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pm-mini__k svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.pm-mini__v { font-size: 19px; font-weight: 800; letter-spacing: -.035em; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-mini__s { font-size: 11.5px; color: var(--faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-db__work { display: grid; grid-template-columns: 232px 1fr; gap: 26px; align-items: start; }
.pm-db__nav { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 1px; }
.pm-db__group { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 14px 10px 6px; }
.pm-db__nav > .pm-db__group:first-child { padding-top: 2px; }
.pm-db__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background .14s var(--ease), color .14s var(--ease); }
.pm-db__item svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--faint); transition: color .14s var(--ease); }
.pm-db__item:hover { background: var(--hover); color: var(--ink); }
.pm-db__item.is-active { background: var(--blue-bg); color: var(--blue-2); font-weight: 600; }
.pm-db__item.is-active svg { color: var(--blue); }
.pm-db__content { min-width: 0; animation: pmFade .24s var(--ease); }
@keyframes pmFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pm-db__content .pm-head { margin-bottom: 18px; }
.pm-db__content .pm-title { font-size: 20px; }

/* toolbar (search + botões) */
.pm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pm-search { position: relative; flex: 1; min-width: 180px; }
.pm-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.pm-search input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px 0 36px; font: inherit; font-size: 13.5px; background: #fff; color: var(--ink); }
.pm-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }

/* schema visualizer */
.pm-schema { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pm-schema__t { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,16,18,.03); }
.pm-schema__h { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--hover); font-weight: 700; font-size: 13.5px; }
.pm-schema__h svg { width: 15px; height: 15px; color: var(--blue); }
.pm-schema__hs { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--muted); }
.pm-schema__col { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.pm-schema__col b { font-weight: 600; }
.pm-schema__type { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11.5px; }
.pm-key { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 5px; }

/* SQL editor toolbar + langs */
.pm-sqltop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pm-sqltop__sp { flex: 1; }
.pm-langs { flex-wrap: wrap; }

@media (max-width: 900px) {
    .pm-db__work { grid-template-columns: 1fr; }
    .pm-db__nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; margin-bottom: 18px; }
    .pm-db__group { display: none; }
}
