/* Tokens iguais aos do motor (compartilhado/motor/css/style.css) e às variáveis "Synapse UI — Tokens" do Figma */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("assets/fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  --blue: #2800c8;
  --navy: #0f0f72;
  --yellow: #f0fa00;
  --paper: #f2f0eb;
  --ink: #171717;
  --muted: #596380;
  --line: #d8dce8;
  --line-soft: #d5dceb;
  --cyan: #00aeef;
  --cyan-soft: #e2f6fc;
  --green: #00b85a;
  --green-soft: #dcf7e8;
  --red: #ff4b6e;
  --red-soft: #ffe3e9;
  --rail-active: #4930e2;
  --warn-soft: #f5f1b4;
  --blue-soft: #c8d0ea;
  --mist: #f7f8fb;
  --rail-w: 88px;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Menu lateral ---------- */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-w); background: var(--blue); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 0; z-index: 5; }
.rail-item { width: 64px; padding: 10px 0 8px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 11px; font-weight: 400; text-align: center; transition: background .2s; }
.rail-item .i { font-size: 24px; }
.rail-item:hover { background: rgba(255,255,255,.12); }
.rail-item.is-active { background: var(--rail-active); }
.rail-sep { width: 32px; height: 1px; background: rgba(255,255,255,.5); margin: 4px 0; }

/* ---------- Cabeçalho ---------- */
.main { margin-left: var(--rail-w); padding: 24px 36px 72px; }
.main > .top, .main > .work { max-width: 1320px; margin-left: auto; margin-right: auto; }
.top { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 28px; }
.logo { display: block; height: 52px; width: auto; margin: 0 auto 20px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--blue); }
.top-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
h1 { font-size: 34px; font-weight: 600; line-height: 1.2; }
.sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.proto-tag { font-size: 12px; font-weight: 500; background: var(--warn-soft); color: var(--navy); padding: 6px 14px; border-radius: 999px; }

.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 1180px) { .work { grid-template-columns: minmax(0, 1fr); } .result { position: static !important; max-height: none !important; } }
@media (max-width: 760px) { .sec { padding: 22px 18px; } .btn { padding: 0 22px; } .anexo { grid-template-columns: 72px minmax(0,1fr) auto; } .thumb { width: 72px; height: 72px; } .kv { grid-template-columns: 1fr; } .tabs { overflow-x: auto; } .main { padding: 20px 16px 56px; } .rail { width: 64px; } :root { --rail-w: 64px; } .rail-item { width: 54px; font-size: 10px; } h1 { font-size: 26px; } }

/* ---------- Botões (iguais ao motor) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 34px; border-radius: 999px; border: 2px solid transparent; font: 500 17px/1 var(--font); white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn .i { font-size: 18px; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { box-shadow: 0 8px 22px rgba(40, 0, 200, .18); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); font-weight: 600; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 500; }
.btn-ghost:hover { color: var(--blue); }
.btn-ia { background: #fff; color: #00709c; border-color: var(--cyan); font-weight: 600; }
.btn-ia .i { color: var(--cyan); }
.btn-ia:hover { background: var(--cyan-soft); }
.btn-sm { height: 42px; padding: 0 22px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- Formulário ---------- */
.sec { border: 1px solid var(--line-soft); border-radius: 28px; padding: 26px 30px; margin-bottom: 20px; background: #fff; transition: border-color .3s, box-shadow .3s; }
.sec.is-flash { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,0,200,.12); }
.sec-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.sec-head h2 { font-size: 18px; font-weight: 600; }
.sec-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.req, .opt { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
input[type=text], textarea { width: 100%; background: var(--paper); border: 2px solid transparent; border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 1.5; transition: border-color .2s, background .2s; resize: vertical; }
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
input::placeholder, textarea::placeholder { color: #8b8f9c; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fff; }
.err-msg { color: #c72a4c; font-size: 12px; margin-top: 6px; }

.drop { display: flex; align-items: center; gap: 14px; border: 2px dashed var(--blue-soft); border-radius: 16px; padding: 16px 20px; color: var(--muted); font-size: 14px; background: var(--mist); transition: border-color .2s, background .2s; cursor: pointer; }
.drop .i { font-size: 22px; color: var(--blue); }
.drop b { color: var(--blue); font-weight: 600; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: #fff; }
.files { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.files:empty { display: none; }
.file { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 14px; padding: 10px 14px; font-size: 13px; }
.file .i { color: var(--blue); font-size: 18px; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-st { font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }
@media (max-width: 760px) { .file-st { display: none; } }
.file-st.ok { color: #006b3c; font-weight: 500; }
.icon-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.icon-btn:hover { background: var(--line); }
.icon-btn .i { font-size: 15px; }
.paste { margin-top: 10px; }
.paste summary { font-size: 13px; color: var(--blue); font-weight: 500; cursor: pointer; margin-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip { border: 2px solid var(--blue-soft); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #fff; }

.anexo { border: 1px solid var(--line-soft); border-radius: 20px; padding: 16px; margin-bottom: 12px; display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 14px; align-items: start; background: var(--mist); }
.thumb { width: 96px; height: 96px; border-radius: 14px; border: 2px dashed var(--blue-soft); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--blue); overflow: hidden; cursor: pointer; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .i { font-size: 26px; }
.anexo textarea { background: #fff; padding: 10px 14px; font-size: 14px; }
.anexo .mini { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.anexo label { font-size: 12px; margin-bottom: 4px; }

.nivel { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nivel-n { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nivel input { padding: 10px 16px; }
#niveis { margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; font-weight: 500; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.count { font-size: 12px; color: var(--muted); }
.sugestao { margin-top: 18px; background: var(--cyan-soft); border-radius: 20px; padding: 18px 20px; }
.sug-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #00709c; margin-bottom: 8px; }
.sug-title .i { color: var(--cyan); }
.sug-text { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.sug-note { font-size: 11px; color: var(--muted); margin: 10px 0 14px; }
.sug-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

/* ---------- Resultado ---------- */
.result { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 28px; scrollbar-width: thin; }
.r-empty { background: var(--paper); border-radius: 28px; padding: 56px 40px; text-align: center; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.r-empty .mount { width: 150px; fill: var(--blue); margin-bottom: 14px; }
.r-empty h2 { font-size: 22px; font-weight: 600; color: var(--blue); }
.r-empty p { font-size: 14px; color: var(--muted); max-width: 360px; line-height: 1.6; }
.r-empty b { color: var(--ink); }

.r-loading { background: var(--paper); border-radius: 28px; padding: 40px; min-height: 420px; }
.r-loading h2 { font-size: 22px; font-weight: 600; color: var(--blue); margin-bottom: 24px; }
.steps { display: grid; gap: 14px; }
.step { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.step .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--blue-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step.is-now { color: var(--ink); font-weight: 500; }
.step.is-now .dot { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
.step.is-done { color: var(--ink); }
.step.is-done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.is-done .dot .i { font-size: 14px; stroke-width: 3; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .step.is-now .dot { animation: none; } html { scroll-behavior: auto; } }

.hero { background: var(--blue); color: #fff; border-radius: 28px; padding: 28px 32px 26px; }
.hero-eye { font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.hero h2 { font-size: 30px; font-weight: 600; margin: 10px 0 6px; line-height: 1.2; }
.hero-sub { font-size: 14px; opacity: .92; line-height: 1.55; }
.hero-score { display: flex; align-items: baseline; gap: 4px; margin-top: 18px; }
.score { font-size: 64px; font-weight: 600; color: var(--yellow); line-height: 1; }
.pct { font-size: 26px; font-weight: 600; color: var(--yellow); }
.score-lbl { font-size: 12px; margin-left: 12px; opacity: .9; line-height: 1.3; }
.bar { height: 8px; background: rgba(255,255,255,.25); border-radius: 99px; margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; transition: width .6s ease; }

.tabs { display: flex; gap: 6px; margin: 22px 0 0; border-bottom: 1px solid var(--line-soft); }
.tab { background: none; border: 0; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--blue); }
.tab.is-active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.badge { background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; }
.badge.zero { background: var(--green-soft); color: #006b3c; }
.pane { padding: 20px 0 8px; }

/* Aba Card Case */
.acc { border: 1px solid var(--line-soft); border-radius: 20px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: 15px; font-weight: 600; cursor: pointer; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .i { color: var(--muted); transition: transform .2s; }
.acc[open] > summary .i { transform: rotate(180deg); }
.acc-body { padding: 2px 20px 18px; font-size: 14px; line-height: 1.6; }
.kv { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 6px 14px; }
.kv dt { color: var(--muted); font-size: 12px; padding-top: 2px; }
.kv dd { margin: 0; }
.acc-body p + p { margin-top: 8px; }
.fact { background: var(--mist); border-radius: 16px; padding: 14px 16px; margin-top: 10px; }
.fact-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.fact-id { font-weight: 600; font-size: 13px; color: var(--blue); }
.fact-label { font-weight: 600; font-size: 14px; }
.mode { font-size: 11px; font-weight: 500; border-radius: 99px; padding: 3px 10px; }
.mode.espontanea { background: var(--green-soft); color: #006b3c; }
.mode.sondagem { background: var(--warn-soft); color: #6b5d00; }
.mode.apos_consulta_do_atendente { background: var(--blue-soft); color: var(--navy); }
.mode.nunca_ao_cliente { background: var(--paper); color: var(--muted); }
.view { font-size: 13px; margin-top: 6px; }
.view b { font-weight: 600; color: var(--muted); font-size: 11px; display: block; letter-spacing: .02em; text-transform: uppercase; }
.ramo { display: flex; gap: 10px; margin-top: 8px; }
.ramo-t { font-size: 11px; font-weight: 600; border-radius: 99px; padding: 3px 10px; height: fit-content; flex: none; background: var(--paper); }
.ramo-t.ideal { background: var(--green-soft); color: #006b3c; }
.ramo-t.critico { background: var(--red-soft); color: #c72a4c; }
.ramo-t.parcial { background: var(--warn-soft); color: #6b5d00; }
.tab-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tab-path span { background: var(--paper); border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.tab-path span.miss { background: var(--red-soft); color: #c72a4c; }
.tab-path i { font-style: normal; color: var(--muted); }
.tag-ia { display: inline-flex; align-items: center; gap: 6px; background: var(--cyan-soft); color: #00709c; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 3px 10px; }
.tag-ia .i { color: var(--cyan); font-size: 12px; }

/* Aba Pendências */
.pend-intro { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.55; }
.pend { border: 1px solid var(--line-soft); border-radius: 22px; padding: 18px 20px; margin-bottom: 12px; background: #fff; }
.pend.is-done { background: var(--mist); }
.pend-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.sev { font-size: 11px; font-weight: 600; border-radius: 99px; padding: 3px 12px; }
.sev.bloqueia { background: var(--red-soft); color: #c72a4c; }
.sev.recomendado { background: var(--warn-soft); color: #6b5d00; }
.sev.ok { background: var(--green-soft); color: #006b3c; }
.pend-where { font-size: 12px; color: var(--muted); }
.pend-where button { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 500; font-size: 12px; text-decoration: underline; }
.pend h3 { font-size: 15px; font-weight: 600; line-height: 1.45; }
.pend .why { font-size: 13px; color: var(--muted); margin: 4px 0 12px; line-height: 1.5; }
.pend textarea { background: var(--paper); padding: 10px 14px; font-size: 14px; }
.pend.is-done textarea { background: #fff; }
.pend-actions { display: flex; justify-content: flex-end; margin-top: 16px; gap: 10px; align-items: center; flex-wrap: wrap; }
.pend-actions .hint { font-size: 12px; color: var(--muted); flex: 1; min-width: 180px; }

/* Aba .zip */
.tree { background: var(--paper); border-radius: 20px; padding: 16px 20px; font-size: 13px; }
.tree-row { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.tree-row + .tree-row { border-top: 1px solid rgba(0,0,0,.06); }
.tree-row .i { font-size: 16px; color: var(--blue); align-self: center; }
.tree-name { font-weight: 600; word-break: break-all; }
.tree-desc { color: var(--muted); font-size: 12px; display: block; }
.tree-folder { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.checks { margin-top: 18px; display: grid; gap: 8px; }
.chk { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.45; align-items: flex-start; }
.chk .ic { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.chk .ic .i { font-size: 13px; stroke-width: 3; }
.chk.ok .ic { background: var(--green); color: #fff; }
.chk.bad .ic { background: var(--red); color: #fff; }
.h3 { font-size: 15px; font-weight: 600; margin: 22px 0 4px; }
.zip-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.zip-actions .hint { font-size: 12px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 99px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(15,15,114,.3); z-index: 20; max-width: calc(100vw - 32px); text-align: center; }

/* ---------- Etapa 2: arquivos lidos, avisos, contador, resposta ---------- */
.file { display: block; padding: 10px 14px; }
.file-row { display: flex; align-items: center; gap: 12px; }
.file-st.bad { color: #c72a4c; font-weight: 500; white-space: normal; }
.file.is-erro { background: var(--red-soft); }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 500; font-size: 12px; text-decoration: underline; padding: 0; white-space: nowrap; }
.avisos { margin-top: 8px; display: grid; gap: 6px; }
.avisos li { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-soft); color: #4d4500; border-radius: 10px; padding: 7px 10px; font-size: 12px; line-height: 1.45; }
.avisos .i { margin-top: 2px; font-size: 14px; }
.file-texto { margin-top: 10px; }
.file-texto label { font-size: 12px; margin-bottom: 4px; }
.file-texto textarea { background: #fff; font-size: 12.5px; font-family: ui-monospace, Consolas, monospace; line-height: 1.45; }
.contador { text-align: right; font-size: 12px; color: var(--muted); margin: 0 4px 10px; }
.contador.bad { color: #c72a4c; font-weight: 600; }
.btn-ia small { font-weight: 400; opacity: .8; margin-left: 4px; }
.btn-ia:disabled { background: var(--paper); border-color: var(--line); color: var(--muted); }
.btn-ia:disabled .i { color: var(--muted); }
.load-info { color: var(--muted); font-size: 14px; margin-bottom: 20px; line-height: 1.55; }
.bar-ind { height: 8px; background: var(--blue-soft); border-radius: 99px; overflow: hidden; }
.bar-ind i { display: block; width: 35%; height: 100%; background: var(--blue); border-radius: 99px; animation: vai 1.3s ease-in-out infinite; }
@keyframes vai { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bar-ind i { animation: none; width: 100%; } }
.r-error { background: var(--red-soft); border-radius: 28px; padding: 36px 36px 32px; }
.r-error h2 { font-size: 22px; font-weight: 600; color: #c72a4c; margin-bottom: 10px; }
.r-error p { font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.resp { font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; }
.mat { width: 100%; border-collapse: collapse; font-size: 13px; }
.mat th, .mat td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); }
.mat td:last-child, .mat th:last-child { text-align: right; width: 110px; }
.exato { white-space: pre-wrap; word-break: break-word; font: 12px/1.5 ui-monospace, Consolas, monospace; max-height: 360px; overflow: auto; background: var(--paper); border-radius: 12px; padding: 12px; margin: 8px 0 0; }
.chk small { color: var(--muted); }
.r-loading .load-info + .bar-ind { margin-top: 4px; }

/* ---------- Etapa 3: card gerado, pendências reais ---------- */
.field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
select { width: 100%; background: var(--paper); border: 2px solid transparent; border-radius: 16px; padding: 14px 18px; font-size: 15px; transition: border-color .2s, background .2s; }
select:focus { outline: none; border-color: var(--blue); background: #fff; }
mark.confirmar { background: var(--warn-soft); color: #6b4d00; border-radius: 6px; padding: 0 5px; font-weight: 500; }
.lista { margin: 0; padding-left: 18px; list-style: disc; }
.lista li { margin: 2px 0; }
.mut { color: var(--muted); }
.fact .view { margin-top: 6px; }
.pend-line { margin-top: 8px; }
.pend textarea:disabled { opacity: .5; }
.load-time { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: right; }
.zip-actions .btn { width: 100%; max-width: 420px; }
.hero-sub { max-width: 52ch; }
.chk.alerta .ic { background: #f0b400; color: #fff; }
.chk.bad { color: #a11; }
.chk.alerta { color: #5c4a00; }

/* ---------- Login, senha, equipe ---------- */
body:not([data-estado="app"]) .rail, body:not([data-estado="app"]) .main { display: none; }
input[type=password] { width: 100%; background: var(--paper); border: 2px solid transparent; border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 1.5; transition: border-color .2s, background .2s; }
input[type=password]:focus { outline: none; border-color: var(--blue); background: #fff; }
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--paper); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line-soft); border-radius: 28px; padding: 36px 34px 30px; display: grid; gap: 14px; }
.auth-card .logo { height: 44px; margin: 0 0 4px; }
.auth-card h1 { font-size: 28px; }
.auth-card .field { margin: 0; }
.auth-card .btn { width: 100%; }
.auth-erro { background: var(--red-soft); color: #a11; border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.45; }
.small { font-size: 12px; }
.user-chip { font-size: 12px; font-weight: 500; background: var(--paper); color: var(--navy); padding: 6px 14px; border-radius: 999px; }
.user-chip.bad { background: var(--red-soft); color: #a11; }
.senha-box { margin-top: 18px; background: var(--warn-soft); border-radius: 18px; padding: 16px 20px; display: grid; gap: 8px; }
.senha-grande { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.senha-grande code { font: 600 22px/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; background: #fff; padding: 10px 16px; border-radius: 12px; user-select: all; }
.tabela-rolagem { overflow-x: auto; }
.equipe-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 900px; }
.equipe-tab th, .equipe-tab td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.equipe-tab th { font-size: 12px; color: var(--muted); font-weight: 600; }
.equipe-tab tr.inativa td { opacity: .55; }
.equipe-tab .acoes .link-btn { display: block; margin-bottom: 6px; text-align: left; }
.equipe-tab .acoes .link-btn:last-child { margin-bottom: 0; }
.link-btn.perigo { color: #c72a4c; }
.bad-txt { color: #a11; }
#view-equipe .sec, #view-cards .sec { margin-bottom: 20px; }
.limite-in { width: 76px; font: inherit; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; }
.limite-in.salvo { border-color: #2e9b5b; }
.limite-in.falhou { border-color: #c72a4c; }
.cards-tab td.nome { max-width: 320px; }
.aviso-reaberto { background: var(--warn-soft); border-radius: 14px; padding: 10px 16px; font-size: 13px; line-height: 1.45; margin: 0 0 16px; }
.vazio-cards { padding: 22px 4px; }
@media (max-width: 760px) { .auth-card { padding: 28px 22px 24px; } .senha-grande code { font-size: 18px; } }
