/* Chamados Click — mesmo modelo visual da Central de Monitoramento (MCP). */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --line: #e4e7ee;
  --ink: #141824;
  --ink-2: #4a5263;
  --ink-3: #7c8496;
  --accent: #3b5bdb;
  --accent-soft: #e8edff;
  --orange: #f26522;
  --orange-2: #ff8a3d;
  --disaster: #a82828;
  --critical: #d03b3b;
  --serious: #ec835a;
  --warning: #fab219;
  --good: #1f9d55;
  --good-soft: #e3f5eb;
  --critical-soft: #fdeaea;
  --serious-soft: #fdf0ea;
  --warning-soft: #fff6dd;
  --shadow: 0 1px 2px rgba(20, 24, 36, .05), 0 4px 16px rgba(20, 24, 36, .06);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1118; --surface: #161a24; --surface-2: #1c2130; --line: #2a3142;
    --ink: #eef1f7; --ink-2: #b4bccc; --ink-3: #828b9e;
    --accent: #7c96ff; --accent-soft: #232c4a;
    --disaster: #ff6b6b; --critical: #f0605a; --serious: #f39a72; --warning: #fcc341; --good: #3fcf7f;
    --good-soft: #15291f; --critical-soft: #2e1a1d; --serious-soft: #2e221c; --warning-soft: #2c2616;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1118; --surface: #161a24; --surface-2: #1c2130; --line: #2a3142;
  --ink: #eef1f7; --ink-2: #b4bccc; --ink-3: #828b9e;
  --accent: #7c96ff; --accent-soft: #232c4a;
  --disaster: #ff6b6b; --critical: #f0605a; --serious: #f39a72; --warning: #fcc341; --good: #3fcf7f;
  --good-soft: #15291f; --critical-soft: #2e1a1d; --serious-soft: #2e221c; --warning-soft: #2c2616;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
/* Páginas da marca (cliente e login): escuro com laranja, como o login do MCP. */
body.marca {
  --bg: #0d0f14; --surface: #161922; --surface-2: #0f1218; --line: #2a2f3c;
  --ink: #f3f4f7; --ink-2: #b7bcc8; --ink-3: #848b9b;
  --accent: var(--orange); --accent-soft: rgba(242, 101, 34, .16);
  --critical: #ff6b6b; --critical-soft: rgba(255, 107, 107, .12);
  --good: #3fcf7f; --good-soft: rgba(63, 207, 127, .12);
  --serious: #f39a72; --serious-soft: rgba(243, 154, 114, .14);
  --warning: #fcc341; --warning-soft: rgba(252, 195, 65, .12);
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  color-scheme: dark;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(242, 101, 34, .22), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(242, 101, 34, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
[hidden], .oculto { display: none !important; }
.suave { color: var(--ink-3); }
.pequeno { font-size: 13px; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------------- shell (login do MCP) */
.centro { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.shell {
  width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1.1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow);
}
.shell.estreito { max-width: 920px; grid-template-columns: 1.05fr 1fr; }
.hero { position: relative; min-height: 580px; overflow: hidden; background: #0b0b0c; }
.hero .fundo {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover;
  filter: blur(28px) brightness(.7); opacity: .9;
}
.mascote {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 22%, #000 78%, transparent 92%);
          mask-image: linear-gradient(90deg, transparent 8%, #000 22%, #000 78%, transparent 92%);
  animation: float 6s ease-in-out infinite;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 70%, var(--surface)), linear-gradient(180deg, transparent 75%, rgba(0, 0, 0, .35));
}
.bubble {
  position: absolute; z-index: 2; bottom: 28px; left: 22px; max-width: 240px;
  background: #fff; color: #15171d; padding: 12px 16px; border-radius: 4px 18px 18px 18px; font-weight: 600; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: pop .5s .2s both;
}
.bubble small { display: block; font-weight: 500; color: #5a6070; margin-top: 2px; }
@keyframes float { 0%, 100% { transform: scale(1.02) translateY(0); } 50% { transform: scale(1.02) translateY(-6px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.form-side { padding: 40px 40px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand b { font-size: 20px; letter-spacing: .02em; }
.brand b span { color: var(--orange); }
.brand small { display: block; color: var(--ink-3); font-size: 12px; }
.titulo { font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.lead { margin-top: 6px; color: var(--ink-2); }
.foot { color: var(--ink-3); font-size: 12px; }

/* ---------------- formulários */
form.grade { display: grid; gap: 14px; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.f { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
label.f .opc { font-weight: 400; color: var(--ink-3); }
input, select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
select { cursor: pointer; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dica { font-size: 12px; color: var(--ink-3); margin-top: -6px; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.field { position: relative; }
.show {
  position: absolute; right: 6px; top: 5px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-3); cursor: pointer; font-size: 13px;
}
.show:hover { color: var(--ink); }

button { cursor: pointer; }
.go {
  height: 50px; border: 0; border-radius: 12px; font-weight: 700; font-size: 16px; color: #fff; padding: 0 22px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 10px 24px rgba(242, 101, 34, .35);
  transition: transform .1s, filter .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.go:hover { filter: brightness(1.06); }
.go:active { transform: translateY(1px); }
.go:disabled { opacity: .65; cursor: wait; }
.btn {
  height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.pri:hover { filter: brightness(1.08); }
.btn.lar { background: linear-gradient(135deg, var(--orange), var(--orange-2)); border: 0; color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn svg { width: 16px; height: 16px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--critical-soft); color: var(--critical); border: 1px solid color-mix(in srgb, var(--critical) 35%, transparent); }
.msg.ok { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); }

/* ---------------- sucesso / número */
.ticket {
  border: 1px dashed color-mix(in srgb, var(--orange) 55%, transparent); border-radius: 16px; padding: 18px 20px;
  background: var(--accent-soft);
}
.ticket .rot { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.numero-grande {
  font-size: 40px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; margin-top: 4px;
  font-variant-numeric: tabular-nums; color: var(--orange); overflow-wrap: anywhere;
}
.ticket .quando { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.copiar { display: flex; gap: 8px; }
.copiar input { font-size: 13px; height: 42px; }
.copiar .btn { height: 42px; }

/* ---------------- topo (MCP) */
.wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px 48px; }
.wrap.medio { max-width: 820px; }
.cab { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.cab .logo { width: 44px; height: 44px; border-radius: 50%; flex: none; display: block; }
.cab .marca-txt h1 { font-size: 20px; letter-spacing: -.01em; }
.cab .marca-txt p { color: var(--ink-3); font-size: 13px; }
.cab .dir { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quem-sou { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow); }
.quem-sou .av { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
body.marca .card { box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.pad { padding: 20px; }
.pilha { display: grid; gap: 14px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi {
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer;
  transition: transform .12s ease, border-color .12s ease; position: relative; overflow: hidden;
}
.kpi:hover { transform: translateY(-2px); }
.kpi[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.kpi .label { color: var(--ink-2); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: 32px; font-weight: 750; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.kpi .ic svg { width: 16px; height: 16px; }

/* barra de filtros */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px; margin-bottom: 14px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.search svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.search input { border: 0; outline: 0; background: none; width: 100%; height: 100%; padding: 0; box-shadow: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-3);
}
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--ink); font-weight: 600; }
.count-note { color: var(--ink-3); font-size: 13px; margin-left: auto; }

/* lista de chamados (feed do MCP) */
.feed { display: grid; gap: 8px; }
.item {
  display: grid; grid-template-columns: 4px 130px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 12px 16px 12px 0; overflow: hidden; cursor: pointer; text-align: left; width: 100%; color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}
.item:hover { border-color: var(--ink-3); }
.item .stripe { align-self: stretch; margin: -12px 0; }
.item .num { font-weight: 750; font-variant-numeric: tabular-nums; font-size: 15px; }
.item .num small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.item .title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.item .where { color: var(--ink-3); font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.item .where .sep { opacity: .5; }
.item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.item .right .tags { display: flex; gap: 6px; }
.item .right span.q { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.empty { padding: 48px 16px; text-align: center; color: var(--ink-3); }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; color: var(--good); }

/* etiquetas */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-aberto { background: var(--accent-soft); color: var(--accent); }
.st-em_andamento { background: var(--warning-soft); color: color-mix(in srgb, var(--warning) 70%, var(--ink)); }
.st-aguardando_cliente { background: var(--serious-soft); color: var(--serious); }
.st-resolvido { background: var(--good-soft); color: var(--good); }
.st-fechado { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }
.pr-urgente { background: var(--disaster); color: #fff; }
.pr-alta { background: var(--critical-soft); color: var(--critical); }
.pr-normal { background: var(--surface-2); color: var(--ink-2); }
.pr-baixa { background: transparent; color: var(--ink-3); border: 1px solid var(--line); }

/* detalhe */
.voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.voltar:hover { color: var(--ink); }
.detalhe { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.d-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.d-num { font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.d-titulo { font-size: 24px; letter-spacing: -.01em; margin-bottom: 4px; }
.d-meta { color: var(--ink-3); font-size: 13px; }
.d-desc { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.lado .campo-l { display: grid; gap: 6px; margin-bottom: 12px; font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.lado select { height: 40px; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.dados { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.dados dt { color: var(--ink-3); }
.dados dd { margin: 0; overflow-wrap: anywhere; }
.sec-tit { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* linha do tempo / conversa */
.tempo { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tempo li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.tempo .av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); overflow: hidden;
}
.tempo .av img { width: 100%; height: 100%; object-fit: cover; }
.tempo .bolha { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 14px; }
.tempo .topo-b { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
.tempo .topo-b b { font-weight: 650; }
.tempo .topo-b span { color: var(--ink-3); font-size: 12px; }
.tempo .txt { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }
.tempo li.tecnico .bolha { background: var(--accent-soft); border-color: transparent; }
.tempo li.tecnico .av { background: var(--accent); color: #fff; border: 0; }
.tempo li.interna .bolha { background: var(--warning-soft); border: 1px dashed color-mix(in srgb, var(--warning) 60%, transparent); }
.tempo li.sistema { grid-template-columns: 34px minmax(0, 1fr); }
.tempo li.sistema .bolha { background: none; border: 0; padding: 6px 0; color: var(--ink-3); font-size: 13px; }
.tempo li.sistema .av { background: none; border: 1px dashed var(--line); }
.tempo li.sistema .av svg { width: 14px; height: 14px; color: var(--ink-3); }
.resp-acoes { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* status do cliente (acompanhar) */
.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.passo { font-size: 12px; color: var(--ink-3); display: grid; gap: 6px; }
.passo i { display: block; height: 6px; border-radius: 99px; background: var(--line); }
.passo.feito i { background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.passo.feito { color: var(--ink); font-weight: 600; }

/* tela inicial: opções */
.opcoes { display: grid; gap: 14px; }
.opcao {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; align-items: center; gap: 16px;
  padding: 20px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); text-decoration: none; transition: transform .12s ease, border-color .15s, box-shadow .15s;
}
.opcao:hover { transform: translateY(-2px); border-color: var(--orange); box-shadow: 0 10px 24px rgba(242, 101, 34, .18); }
.opcao:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.opcao .oi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--orange); }
.opcao .oi svg { width: 24px; height: 24px; }
.opcao .ot b { display: block; font-size: 17px; letter-spacing: -.01em; }
.opcao .ot small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; line-height: 1.35; }
.opcao .seta { color: var(--ink-3); display: grid; place-items: center; transition: transform .15s, color .15s; }
.opcao:hover .seta { transform: translateX(3px); color: var(--orange); }
.opcao.principal { background: linear-gradient(135deg, var(--orange), var(--orange-2)); border-color: transparent; color: #fff; box-shadow: 0 10px 24px rgba(242, 101, 34, .35); }
.opcao.principal .oi { background: rgba(255, 255, 255, .2); color: #fff; }
.opcao.principal .ot small { color: rgba(255, 255, 255, .88); }
.opcao.principal .seta { color: #fff; }
.opcao.principal:hover { filter: brightness(1.05); box-shadow: 0 14px 30px rgba(242, 101, 34, .45); }

.voltar-ini {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink-2); flex: none; margin-right: 2px;
}
.voltar-ini:hover { color: var(--ink); border-color: var(--ink-3); }

/* consulta */
.status-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-linha .pill { font-size: 13px; padding: 5px 12px; }
.msg.aviso-cliente { background: var(--serious-soft); color: var(--serious); border-color: color-mix(in srgb, var(--serious) 35%, transparent); }
.msg.aviso-cliente.ok { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.dados.resumo-c { margin: 0; }
.acoes-c { display: flex; gap: 10px; flex-wrap: wrap; }
.acoes-c .btn { box-shadow: none; background: var(--surface-2); }

/* diálogos */
dialog {
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink);
  padding: 24px; width: min(660px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
dialog::backdrop { background: rgba(8, 10, 16, .55); backdrop-filter: blur(3px); }
dialog h2 { font-size: 20px; margin-bottom: 4px; }
.acoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.rolar { overflow-x: auto; margin: 12px 0; }
.sec-tit.sub { margin: 14px 0 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; padding: 8px 10px; }
table.t td { padding: 9px 10px; border-top: 1px solid var(--line); }

/* responsivo */
@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detalhe { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell, .shell.estreito { grid-template-columns: 1fr; max-width: 480px; }
  .hero { min-height: 240px; }
  .hero::after { background: linear-gradient(180deg, transparent 65%, var(--surface)); }
  .mascote { object-fit: cover; object-position: 70% 18%; -webkit-mask-image: none; mask-image: none; }
  .hero .fundo { display: none; }
  .bubble { bottom: 22px; left: 14px; max-width: 180px; font-size: 14px; padding: 10px 12px; }
  .form-side { padding: 26px 20px 30px; }
  .titulo { font-size: 24px; }
  .duas { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .value { font-size: 26px; }
  .item { grid-template-columns: 4px minmax(0, 1fr); row-gap: 6px; }
  .item .stripe { grid-row: 1 / span 3; }
  .item .num, .item .body, .item .right { grid-column: 2; }
  .item .right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .cab .dir { margin-left: 0; width: 100%; }
  .numero-grande { font-size: 32px; }
  .passos { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .mascote, .bubble { animation: none; } }
