/* Hub Operação — identidade Grupo Xflow
   Visual "Estelar" (escolhido pela Ana em 2026-10-15): fundo champanhe acetinado (cor Estelar da Apple)
   com luz suave e textura, painéis de vidro claro, trilho preto, dourado da logo em detalhes finos.
   Fonte Sora. A tela de entrada continua em Manrope.
   No modo escuro do sistema vira "Entrada": grafite com luz e painéis de vidro escuro. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/sora-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/sora-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ruido: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27180%27%20height%3D%27180%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.9%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%201%20%200%200%200%200%201%20%200%200%200%200%201%20%200%200%200%20.05%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27/%3E%3C/svg%3E");
  --fundo: radial-gradient(60% 55% at 75% 0%, #fbf8f3 0%, transparent 70%), radial-gradient(90% 80% at 10% 100%, #d6c8b1 0%, #e5dac8 50%, #eee5d7 100%);
  --bg: #ebe2d4;
  --vidro: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  --vidro-borda: rgba(255, 255, 255, 0.85);
  --vidro-sombra: 0 1px 2px rgba(120, 95, 60, 0.06), 0 18px 44px -10px rgba(120, 95, 60, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --card: #fffdf9;
  --line: rgba(90, 70, 45, 0.1);
  --line-forte: rgba(90, 70, 45, 0.18);
  --ink: #1d1a16;
  --muted: #857d71;
  --fraco: #aea596;
  --chip: rgba(255, 255, 255, 0.6);
  --active: rgba(255, 255, 255, 0.88);
  --accent: #a8865d;
  --accent-soft: rgba(225, 179, 133, 0.16);
  --btn: #1d1a16;
  --btn-ink: #f6f1e9;

  --rail: #0d0d0e;
  --rail-ink: #f2f0ec;
  --rail-muted: #6c7077;
  --gold: #e1b385;
  --grad: linear-gradient(90deg, #c9a57d, #e8c49c);

  --ok: #2f7a55; --ok-soft: rgba(47, 122, 85, 0.1);
  --alerta: #93630d; --alerta-soft: rgba(147, 99, 13, 0.1);
  --erro: #a83d3d; --erro-soft: rgba(168, 61, 61, 0.09);

  --f-ui: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio: 10px;
  --raio-painel: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: radial-gradient(70% 60% at 62% 0%, #34363c 0%, #222328 45%, #18191c 100%);
    --bg: #1c1d20;
    --vidro: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    --vidro-borda: rgba(255, 255, 255, 0.08);
    --vidro-sombra: 0 20px 50px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --card: #222328; --line: rgba(255, 255, 255, 0.07); --line-forte: rgba(255, 255, 255, 0.14);
    --ink: #eeebe6; --muted: #8f939a; --fraco: #5f636a; --chip: rgba(0, 0, 0, 0.22); --active: rgba(255, 255, 255, 0.07);
    --accent: #e1b385; --accent-soft: rgba(225, 179, 133, 0.12); --btn: #e8c49c; --btn-ink: #17130e;
    --rail: rgba(8, 9, 10, 0.55);
    --ok: #96d6b2; --ok-soft: rgba(150, 214, 178, 0.1); --alerta: #e8c07c; --alerta-soft: rgba(232, 192, 124, 0.1); --erro: #ec8f8f; --erro-soft: rgba(236, 143, 143, 0.1);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.corpo-app { background: var(--ruido), var(--fundo) fixed, var(--bg); }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: 22px; font-weight: 500; }
h2 { font-size: 15px; font-weight: 500; }
p { margin: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fraco { color: var(--muted); font-weight: 300; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rotulo, .secao-titulo { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fraco); font-weight: 500; }

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 12.5px; font-weight: 400; text-decoration: none;
  height: 36px; padding: 0 16px; border-radius: var(--raio);
  border: 1px solid var(--line-forte); background: var(--chip); color: var(--ink);
  cursor: pointer; white-space: nowrap;
}
.btn .i { width: 15px; height: 15px; }
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-principal { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.btn-principal:hover { border-color: var(--btn); filter: brightness(1.2); }
.btn-perigo { color: var(--erro); }
.btn-perigo:hover { border-color: var(--erro); }
.btn-perigo-cheio { background: var(--erro); border-color: var(--erro); color: #fff; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-align: left; width: fit-content; }
.btn-link:hover { color: var(--ink); }

label { font-size: 12px; font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="search"], select {
  font: inherit; font-size: 13px; font-weight: 400; color: var(--ink); background: var(--chip);
  border: 1px solid var(--line-forte); border-radius: var(--raio); height: 40px; padding: 0 14px; width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { color: var(--muted); }
.campo { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.campo small { font-size: 11.5px; color: var(--muted); font-weight: 300; }
.pilha { display: flex; flex-direction: column; gap: 10px; }
.pilha-larga { display: flex; flex-direction: column; gap: 14px; }

.aviso { display: flex; gap: 8px; align-items: center; font-size: 12.5px; padding: 10px 14px; border-radius: var(--raio); background: var(--accent-soft); }
.aviso .i { width: 16px; height: 16px; }
.aviso-erro { background: var(--erro-soft); color: var(--erro); }
.aviso-ok { background: var(--ok-soft); color: var(--ok); }

/* Selos: ponto + texto, sem pílula. */
.selo { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 400; white-space: nowrap; width: fit-content; height: fit-content; }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.selo-ok { color: var(--ok); }
.selo-alerta { color: var(--alerta); }
.selo-erro { color: var(--erro); }
.selo-neutro { color: var(--muted); }
.selo-ouro { color: var(--accent); }

/* ---------- Estrutura do app ---------- */
.app { display: grid; grid-template-columns: 84px minmax(0, 1fr); height: 100dvh; }
.rail {
  height: 100dvh;
  background: var(--rail); color: var(--rail-ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 22px 6px calc(16px + env(safe-area-inset-bottom, 0px));
}
.rail-logo img { width: 28px; height: 28px; display: block; }
.rail-itens { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.rail-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 0; border-radius: 10px; width: 100%;
  color: var(--rail-muted); text-decoration: none; font-size: 8.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.rail-item .i { width: 19px; height: 19px; }
.rail-item:hover { color: var(--rail-ink); }
.rail-item.on { color: var(--rail-ink); }
.rail-item.on .i { color: var(--gold); }
.rail-item.on::after { content: ""; width: 16px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.rail-item:focus-visible { outline-color: var(--gold); }
.rail-pe { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.rail-pe .rail-item { padding-block: 6px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; background: var(--chip); color: var(--ink); border: 1px solid var(--line);
}
.rail .avatar { background: none; color: var(--rail-ink); border-color: rgba(225, 179, 133, 0.6); }

.area {
  min-width: 0; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px;
}
.topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 8px 0; }
.abas { display: flex; gap: 26px; border-bottom: 1px solid var(--line-forte); overflow-x: auto; padding: 0 8px; flex: none; }
.abas a { padding: 0 2px 12px; color: var(--muted); text-decoration: none; font-weight: 400; font-size: 12.5px; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas a:hover { color: var(--ink); }
.abas a.on { color: var(--ink); border-bottom-color: var(--accent); }

/* Painel de vidro: superfície solta sobre o fundo estelar. */
.lista, .detalhe, .cartao, .tabela-rolagem, .area > .vazio {
  background: var(--vidro); border: 1px solid var(--vidro-borda); border-radius: var(--raio-painel);
  box-shadow: var(--vidro-sombra); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ---------- Lista e detalhe (dois painéis) ---------- */
.mestre-detalhe { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; flex: 1 1 auto; min-height: 480px; }
.lista { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.lista-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 26px 20px 4px; }
.lista-topo h1 { font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.busca { display: flex; align-items: center; gap: 8px; margin: 14px 12px 8px; padding: 0 12px; border-radius: var(--raio); background: var(--chip); border: 1px solid var(--line); color: var(--fraco); }
.busca .i { width: 15px; height: 15px; }
.busca input { border: 0; height: 38px; padding: 0; background: transparent; font-weight: 300; }
.busca input::placeholder { color: var(--fraco); }
.busca input:focus { box-shadow: none; }
.busca:focus-within { border-color: var(--accent); }
.busca-larga { margin: 0; max-width: 420px; }
.lista-itens { overflow-y: auto; flex: 1; padding: 4px 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.lista-vazia, .carregando { padding: 10px 12px; color: var(--muted); font-size: 12.5px; font-weight: 300; }
.item {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  width: 100%; padding: 11px 12px; border: 0; border-radius: 10px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.item:hover { background: var(--chip); }
.item.on { background: var(--active); }
.item.on::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #e8c49c, #7d6c56); }
.item.removido .avatar { opacity: 0.5; }
.item-nome, .item-sub { display: block; }
.item-nome { font-weight: 400; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sub { font-size: 11.5px; font-weight: 300; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detalhe { min-width: 0; overflow-y: auto; padding: 36px 42px; }
.voltar-lista { display: none; }

.vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 48px 16px; min-height: 100%; color: var(--muted); }
.vazio h2 { color: var(--ink); font-weight: 400; font-size: 14px; max-width: 36ch; }
.vazio p { max-width: 46ch; font-weight: 300; font-size: 12.5px; }
.vazio-icone { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(225, 179, 133, 0.55); color: var(--accent); display: grid; place-items: center; }
.vazio-icone .i { width: 19px; height: 19px; stroke-width: 1.3; }
.area > .vazio { flex: 1 1 auto; }

/* ---------- Ficha da pessoa ---------- */
.ficha { display: flex; flex-direction: column; gap: 30px; max-width: 720px; }
.ficha-cab { display: flex; gap: 16px; align-items: center; padding-bottom: 26px;
  background: linear-gradient(90deg, var(--gold), transparent 50%) left bottom / 100% 1px no-repeat; }
.ficha-cab h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.ficha-cab .avatar { width: 48px; height: 48px; font-size: 13px; }
.ficha-cab .sub { color: var(--muted); font-size: 12.5px; font-weight: 300; margin-top: 2px; }
.ficha-cab .selos { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.secao { display: flex; flex-direction: column; gap: 14px; }

.permissoes { display: flex; flex-direction: column; }
.perm-linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.perm-linha:first-child { border-top: 0; }
.perm-nome { display: flex; align-items: center; gap: 12px; font-weight: 400; font-size: 13px; }
.perm-nome .i { color: var(--muted); width: 16px; height: 16px; }
.perm-nome small { font-weight: 300; color: var(--fraco); font-size: 11px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--chip); border: 1px solid var(--line); border-radius: var(--raio); }
.seg label { font-size: 12px; font-weight: 400; padding: 5px 13px; cursor: pointer; color: var(--muted); border-radius: 7px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--btn); color: var(--btn-ink); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg label:has(input:disabled) { cursor: default; opacity: 0.6; }

.opcoes-clientes { display: flex; flex-direction: column; gap: 9px; }
.radio, .check { display: flex; gap: 9px; align-items: center; font-weight: 300; font-size: 13px; color: var(--ink); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--btn); }
.lista-clientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; padding-left: 24px; }

.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-block: 20px 0; }
.acoes .empurra { margin-left: auto; }
.confirmar { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--raio); background: var(--erro-soft); color: var(--erro); }
.confirmar .botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.mensagem { min-height: 1.5em; font-size: 12.5px; }
.mensagem.erro { color: var(--erro); }
.mensagem.ok { color: var(--ok); }

/* ---------- Painéis, cartões, tabelas ---------- */
.painel { display: flex; flex-direction: column; gap: 14px; }
.cartao { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.integracao-cab { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.integracao-icone { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(225, 179, 133, 0.55); color: var(--accent); display: grid; place-items: center; }
.integracao-icone .i { width: 17px; height: 17px; }
.integracao-cab h2 { font-weight: 400; }
.integracao-cab p { font-size: 12.5px; margin-top: 4px; }
.cartao .btn { width: fit-content; }
.dados { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.dados dt { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fraco); font-weight: 500; }
.dados dd { margin: 5px 0 0; font-size: 13px; overflow-wrap: anywhere; }

.tabela-rolagem { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tabela th { text-align: left; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fraco); font-weight: 500; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.tabela td { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; font-weight: 300; }
.tabela tr:first-child td { border-top: 0; }

/* ---------- Entrada: fundo preto, cartão de vidro ---------- */
.corpo-entrada {
  min-height: 100dvh; color: #e9e6e1; color-scheme: dark;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27180%27%20height%3D%27180%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.9%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%201%20%200%200%200%200%201%20%200%200%200%200%201%20%200%200%200%20.05%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27/%3E%3C/svg%3E"), radial-gradient(60% 50% at 50% 42%, #141518 0%, #08090a 72%) fixed, #08090a;
}
.entrada {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding-block: 48px 28px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.vidro {
  width: 100%; max-width: 360px; padding: 40px 30px 30px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex; flex-direction: column; align-items: center;
  animation: surgir 0.6s ease-out both;
}
@keyframes surgir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vidro-logo img { height: 26px; width: auto; display: block; opacity: 0.95; }
.fio { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, #e1b385, transparent); margin: 26px 0 30px; }
.vidro-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.vidro-form input:not([type="hidden"]) {
  height: 46px; width: 100%; border-radius: 10px; padding: 0 14px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ece9e4; font: inherit; font-size: 14.5px; font-weight: 400;
}
.vidro-form input::placeholder { color: #6a6e75; font-weight: 300; }
.vidro-form input:focus { outline: none; border-color: rgba(225, 179, 133, 0.6); box-shadow: 0 0 0 3px rgba(225, 179, 133, 0.12); }
.vidro-entrar {
  height: 46px; margin-top: 6px; border: 0; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; text-decoration: none;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: #17130e;
  background: linear-gradient(90deg, #c9a57d, #e8c49c);
  transition: filter 0.15s;
}
.vidro-entrar:hover { filter: brightness(1.06); }
.vidro-entrar:disabled { opacity: 0.6; cursor: default; }
.vidro-entrar:focus-visible, .vidro-google:focus-visible, .vidro-link:focus-visible { outline: 2px solid #e1b385; outline-offset: 2px; }
.vidro-link { align-self: flex-end; font-size: 12px; font-weight: 300; color: #8b9099; text-decoration: none; margin-top: 2px; }
.vidro-link:hover { color: #d8c3a8; }
.vidro-sep { display: flex; align-items: center; gap: 12px; color: #4f535a; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 8px; }
.vidro-sep::before, .vidro-sep::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.07); }
.vidro-google {
  height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13.5px; font-weight: 400; color: #c9ccd1; text-decoration: none; margin-top: 6px;
}
.vidro-google:hover { border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.vidro-google .i { width: 16px; height: 16px; stroke: none; }
.vidro-titulo { font-size: 17px; font-weight: 500; text-align: center; color: #ece9e4; }
.vidro-texto { font-size: 13px; font-weight: 300; text-align: center; color: #8b9099; margin: -6px 0 6px; overflow-wrap: anywhere; }
.vidro-dica { font-size: 11.5px; font-weight: 300; color: #6a6e75; margin-top: -4px; }
.msg { font-size: 13px; text-align: center; padding: 9px 12px; border-radius: 8px; }
.msg-erro { color: #f0a3a3; background: rgba(240, 120, 120, 0.08); }
.msg-ok { color: #9fd8b8; background: rgba(120, 200, 160, 0.08); }
.entrada-pe { display: flex; gap: 26px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; }
.entrada-pe a { color: #4f535a; text-decoration: none; }
.entrada-pe a:hover { color: #8b9099; }

/* ---------- Documentos públicos ---------- */
.doc {
  max-width: 68ch; margin: 0 auto; display: flex; flex-direction: column; gap: 14px;
  padding-block: 48px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.doc-logo { background: var(--rail); border-radius: 10px; padding: 14px 18px; width: fit-content; margin-bottom: 12px; }
.doc-logo img { height: 22px; display: block; }
.doc h1 { font-size: 28px; }
.doc h2 { margin-top: 14px; }
.doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc-curto { align-items: flex-start; padding-top: 96px; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); height: auto; }
  .rail {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 10;
    flex-direction: row; gap: 4px;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  }
  .rail-logo, .rail-pe .avatar { display: none; }
  .rail-itens { flex-direction: row; flex: 1; }
  .rail-pe { margin: 0; width: auto; }
  .rail-item { padding: 6px 2px; }
  .area { height: auto; overflow: visible; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); padding-block: 12px 96px; }
  .mestre-detalhe { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mestre-detalhe.com-detalhe .lista { display: none; }
  .mestre-detalhe:not(.com-detalhe) .detalhe { display: none; }
  .voltar-lista { display: inline-flex; margin-bottom: 14px; }
  .detalhe { padding: 22px 18px; }
  .grade-2 { grid-template-columns: minmax(0, 1fr); }
  .perm-linha { grid-template-columns: minmax(0, 1fr); }
  .integracao-cab { grid-template-columns: 38px minmax(0, 1fr); }
  .integracao-cab .selo { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.link-gerado input { font-size: 13px; color: var(--muted); }
.corpo-publico:not(.corpo-entrada) { background: var(--card); }
.corpo-entrada { font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
