/* ============ Identidade My MCP aplicada a todas as telas ============
   Mesma linguagem da página inicial: papel e azul-marinho, títulos serifados,
   cantos arredondados, botões em pílula, vidro e aurora sutil.
   Carregado depois de styles.css. A cor de cada empresa continua em --brand. */

:root {
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --navy: #0a1730; --navy-2: #10284a; --navy-3: #1d3f74; --sky: #7ea6ff;
  --bg: #f5f4f0; --surface: #ffffff; --surface-2: #ecebe5; --surface-3: #d9d6ce;
  --text: #0b1220; --text-2: #2a3342; --muted: #5f6877; --border: #e3e1db; --border-2: #d3d0c8;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 18px 40px -30px rgba(11,18,32,.35);
  --shadow-lg: 0 40px 90px -40px rgba(11,18,32,.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050c1a; --surface: #0d1a30; --surface-2: #132440; --surface-3: #1b3052;
    --text: #eef2f8; --text-2: #c9d3e3; --muted: #8ea3c4; --border: #1b2c48; --border-2: #263a5c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -30px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #050c1a; --surface: #0d1a30; --surface-2: #132440; --surface-3: #1b3052;
  --text: #eef2f8; --text-2: #c9d3e3; --muted: #8ea3c4; --border: #1b2c48; --border-2: #263a5c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -30px rgba(0,0,0,.7);
}

/* ---------- Tipografia ---------- */
.topbar h1, .card-head h3, .page-head h2, .hero h2, .auth-brand h2, .wizard h2, .modal h3, .drawer-head h3,
.landing h1, .org strong, .kpi strong, .ring-text strong, .meta-grid strong, .review-card h3, .empty strong, .callout strong {
  font-family: var(--serif); letter-spacing: -0.015em;
}
.topbar h1 { font-size: 20px; font-weight: 600; }
.card-head h3 { font-size: 17px; font-weight: 600; }
.hero h2 { font-size: 26px; }
.kpi strong { font-size: 30px; font-weight: 600; }
.ring-text strong { font-weight: 600; }

/* ---------- Formas ---------- */
.card, .kpi, .tenant-card, .provider, .answer, .result, .chunk, .file-row, .empty, .callout, .endpoint, .code, .diff > div, .meta-grid div, .option, .analysis-mini { border-radius: var(--radius); }
.card { box-shadow: var(--shadow); }
.kpi { box-shadow: var(--shadow); }
.diff > div, .meta-grid div, .option, .file-row, .endpoint { border-radius: 14px; }
.btn { border-radius: 999px; height: 40px; padding: 0 18px; font-weight: 600; }
.btn.sm { border-radius: 999px; height: 32px; padding: 0 14px; }
.btn.primary { box-shadow: 0 10px 24px -14px rgba(11,18,32,.55); }
.icon-btn { border-radius: 999px; }
.input, select.input, textarea.input, .input-group { border-radius: 12px; }
.input, select.input { height: 42px; }
.input-group input, .input-group .addon { height: 42px; }
.pill, .issue, .src, .kbd { border-radius: 999px; }
.issue { padding: 1px 9px; }
.seg { border-radius: 999px; } .seg button { border-radius: 999px; }
.modal { border-radius: 28px; padding: 26px; }
.menu { border-radius: 18px; }
.palette .box { border-radius: 22px; }
.drawer { border-radius: 28px 0 0 28px; }
.toast { border-radius: 999px; padding: 11px 18px; background: var(--navy); color: #fff; }
.toast .i { color: #8fd6b0; }
.avatar { border-radius: 12px; }
.avatar.round { border-radius: 50%; }

/* ---------- Telas de entrada: azul-marinho com aurora ---------- */
.center-screen { position: relative; overflow: hidden; background: #050c1a; color: #eef2f8; min-height: 100vh; min-height: 100svh; }
.center-screen::before, .center-screen::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; -webkit-filter: blur(80px); filter: blur(80px); }
.center-screen::before { width: 60vw; height: 60vw; left: -10vw; top: -20vw; background: radial-gradient(circle, rgba(52,104,214,.5), transparent 65%); animation: brand-drift 20s ease-in-out infinite alternate; }
.center-screen::after { width: 50vw; height: 50vw; right: -12vw; bottom: -22vw; background: radial-gradient(circle, rgba(126,166,255,.28), transparent 65%); animation: brand-drift 26s ease-in-out infinite alternate-reverse; }
@keyframes brand-drift { to { -webkit-transform: translate(6vw, 4vh) scale(1.08); transform: translate(6vw, 4vh) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .center-screen::before, .center-screen::after { animation: none; } }
.center-screen > * { position: relative; z-index: 1; }
.center-screen .landing > h1, .center-screen .landing > p, .center-screen .auth-foot, .center-screen .nav-label,
.center-screen .wizard > .row strong, .center-screen .steps-bar span { color: #eef2f8; }
.center-screen .landing > p, .center-screen .auth-foot, .center-screen .steps-bar span { color: #a9b8d0; }
.center-screen .steps-bar .on span { color: #fff; }
.center-screen .steps-bar i { background: rgba(255,255,255,.16); }
.center-screen .steps-bar .on i { background: var(--sky); }
.center-screen .auth-foot a, .center-screen .landing > .row a { color: #cddcff; }
.center-screen .landing > .row strong { color: #fff; }
.center-screen .landing > .row .btn.ghost { color: #dfe7f5; }
.center-screen .landing > .row .btn.ghost:hover { background: rgba(255,255,255,.08); }
.center-screen .card, .center-screen .tenant-card { border-radius: 28px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 50px 100px -40px rgba(0,0,0,.75); }
.center-screen .tenant-card.new { background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.28); color: #c9d3e3; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.center-screen .tenant-card.new strong { color: #fff !important; }
.center-screen .landing h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.025em; }
.center-screen .lp-mark { color: #fff; }
.auth .card, .wizard .card { padding: 32px; }
.auth-brand .avatar { border-radius: 16px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.secret-box { border-radius: 14px; }
.warn-box { border-radius: 14px; }

/* ---------- Painel das empresas ---------- */
/* Barra lateral: acompanha o tema (clara no claro, azul-marinho no escuro) */
:root { --side-bg: #ffffff; --side-text: #2a3342; --side-strong: #0b1220; --side-muted: #5f6877; --side-label: #8a919c; --side-hover: rgba(11,18,32,.05); --side-active: rgba(29,63,116,.09); --side-chip: rgba(11,18,32,.07); --side-line: #e3e1db; --side-track: #e3e1db; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --side-bg: linear-gradient(180deg, #0a1730 0%, #0d1f3d 100%); --side-text: #c3cfe2; --side-strong: #ffffff; --side-muted: #8ea3c4; --side-label: #6f84a6; --side-hover: rgba(255,255,255,.07); --side-active: rgba(255,255,255,.12); --side-chip: rgba(255,255,255,.14); --side-line: rgba(255,255,255,.1); --side-track: rgba(255,255,255,.14); }
}
:root[data-theme="dark"] { --side-bg: linear-gradient(180deg, #0a1730 0%, #0d1f3d 100%); --side-text: #c3cfe2; --side-strong: #ffffff; --side-muted: #8ea3c4; --side-label: #6f84a6; --side-hover: rgba(255,255,255,.07); --side-active: rgba(255,255,255,.12); --side-chip: rgba(255,255,255,.14); --side-line: rgba(255,255,255,.1); --side-track: rgba(255,255,255,.14); }
.sidebar { background: var(--side-bg); border-right: 1px solid var(--side-line); color: var(--side-text); }
.sidebar .org strong { color: var(--side-strong); }
.sidebar .org span { color: var(--side-muted); }
.sidebar .nav-label { color: var(--side-label); }
.sidebar .nav a { color: var(--side-text); border-radius: 999px; padding: 8px 14px; }
.sidebar .nav a:hover { background: var(--side-hover); color: var(--side-strong); }
.sidebar .nav a.active { background: var(--side-active); color: var(--side-strong); box-shadow: inset 3px 0 0 var(--brand); }
.sidebar .nav .count { background: var(--side-chip); color: var(--side-strong); }
.sidebar .nav .count.warn { background: var(--warn-soft); color: var(--warn); }
.sidebar-foot { border-top-color: var(--side-line); }
.sidebar .analysis-mini { background: var(--side-hover); color: var(--side-text); border-radius: 16px; }
.sidebar .analysis-mini .bar { background: var(--side-track); }
.sidebar .analysis-mini .bar > i { background: var(--brand); }
.sidebar .isolation { color: var(--side-muted); }
.topbar { background: rgba(245,244,240,.78); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border-bottom-color: var(--border); height: 64px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { background: rgba(5,12,26,.72); } }
:root[data-theme="dark"] .topbar { background: rgba(5,12,26,.72); }
.search-trigger { border-radius: 999px; padding: 0 14px; }
.content { padding: 28px; }
.page-head p { font-size: 15px; }
.hero.card { padding: 26px 28px; }
.ring .fg { stroke: var(--brand); }
.feed .mark { background: rgba(126,166,255,.18); }
.callout { background: linear-gradient(120deg, #0a1730, #16325f); color: #fff; border: 0; }
.callout p { color: #b9c5d8; }
.callout .icon-box { background: rgba(255,255,255,.12); border-radius: 12px; }
.callout .btn { background: #fff; color: #0a1730; border-color: #fff; }
.t th { background: var(--surface-2); font-weight: 600; letter-spacing: .02em; }
.table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
.code { background: #0a1730; }
.subnav a { border-radius: 999px; }
.subnav a.active { box-shadow: var(--shadow); }
.review-card { border-left-width: 4px; }
.diff .after { border-radius: 14px; }

@media (max-width: 760px) {
  .content { padding: 18px 16px; }
  .sidebar { border-radius: 0 24px 24px 0; }
  .drawer { border-radius: 0; }
}

/* Dentro dos cartões das telas de entrada, volta a cor normal do texto */
.center-screen .card, .center-screen .tenant-card:not(.new), .center-screen .card h2, .center-screen .card h3, .center-screen .tenant-card:not(.new) strong { color: var(--text); }
.center-screen .card .muted, .center-screen .tenant-card .addr, .center-screen .card .lead, .center-screen .card .hint { color: var(--muted); }
.center-screen .landing > .row .btn.ghost { border-color: rgba(255,255,255,.2); }

/* A animação de opacidade com a aurora desfocada deixava o cartão esmaecido em alguns navegadores */
.center-screen .fade { animation: none; }

/* Símbolo do logo em qualquer tela */
/* Logo do My MCP: # branco num quadrado azul-marinho (igual ao ícone do site) */
.lp-mark { flex: none; width: 26px; height: 26px; border-radius: 7px; background: #1c355e; border: 1px solid rgba(255,255,255,.28); display: inline-grid; place-items: center; box-sizing: border-box; }
.lp-mark::after { content: ""; width: 64%; height: 64%; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10 12 44 40'%3E%3Cpath d='M26 15 22 49M42 15 38 49M15 26h36M13 38h36' stroke='%23000' stroke-width='5.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10 12 44 40'%3E%3Cpath d='M26 15 22 49M42 15 38 49M15 26h36M13 38h36' stroke='%23000' stroke-width='5.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; }
.center-screen .landing > .row a { color: #fff; }
.hero h2 { line-height: 1.2; margin-bottom: 6px; }

/* ---------- Área de envio de arquivos ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 190px; padding: 30px 22px; cursor: pointer;
  border: 2px dashed var(--border-2); border-radius: 22px; background: var(--surface-2); text-align: center; transition: border-color .2s, background .2s, transform .2s; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone.over { border-color: var(--brand); background: var(--brand-soft); -webkit-transform: scale(1.01); transform: scale(1.01); }
.dropzone .i { width: 22px; height: 22px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: var(--surface); color: var(--brand); box-shadow: var(--shadow); margin-bottom: 6px; }
.dropzone strong { display: block; margin: 0; font-size: 15.5px; color: var(--text); }
.dropzone span { color: var(--muted); font-size: 13px; }
.dropzone:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.file-list { margin-top: 16px; }
.file-row { padding: 9px 14px; }

/* ---------- Progresso dos arquivos ---------- */
.prog { padding: 22px 24px; }
.prog-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.prog-head > div:first-child { flex: 1; min-width: 0; }
.prog-head strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.prog-head span { color: var(--muted); font-size: 13.5px; }
.prog-pct { font-family: var(--serif); font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.prog-pct small { font-size: 20px; color: var(--muted); margin-left: 2px; }
.prog-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; position: relative; }
.prog-bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .6s cubic-bezier(.2,.8,.2,1); position: relative; overflow: hidden; }
.prog:not(.is-done) .prog-bar:not(.sm) i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0)); -webkit-transform: translateX(-100%); transform: translateX(-100%); animation: prog-shine 1.6s ease-in-out infinite; }
@keyframes prog-shine { to { -webkit-transform: translateX(100%); transform: translateX(100%); } }
.prog.is-done .prog-bar i { background: var(--good); }
.prog-bar.sm { height: 5px; }
.prog-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
.prog-step { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); opacity: .6; transition: opacity .3s, box-shadow .3s; }
.prog-step.on { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--brand); }
.prog-step.done { opacity: 1; }
.prog-step.done .prog-bar i { background: var(--good); }
.prog-step-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.prog-step-head span { display: inline-flex; gap: 6px; align-items: center; }
.prog-step-head .i { width: 14px; height: 14px; color: var(--good); }
.prog-step-head b { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.prog-files { display: grid; gap: 6px; margin-top: 14px; }
.prog-file { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.prog-file .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.prog-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); flex: none; }
.prog-ico .i { width: 13px; height: 13px; }
.prog-ico.ready, .prog-ico.unchanged { background: var(--good-soft); color: var(--good); }
.prog-ico.error { background: var(--bad-soft); color: var(--bad); }
.prog-ico.processing { background: var(--brand-soft); color: var(--brand-text); animation: pulse 1.1s infinite; }
@media (max-width: 680px) { .prog-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; } .prog-pct { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .prog-bar i::after, .prog-ico.processing { animation: none !important; } }
