:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --bg: #0f172a;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --ok: #059669;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #134e5e 0%, var(--bg) 55%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  padding: 32px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.brand .logo {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: grid; place-items: center;
  color: #fff; font-size: 20px;
}
.brand h1 { font-size: 17px; margin: 0; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: 12px; }
h2.title { font-size: 19px; margin: 4px 0 4px; }
p.sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,145,178,.15); }
button.primary {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button.primary:disabled { opacity: .6; cursor: default; }
.link-row { text-align: center; margin-top: 14px; }
.link-row a { font-size: 13px; color: var(--primary); text-decoration: none; cursor: pointer; }
.msg { margin-top: 14px; font-size: 13px; padding: 10px 12px; border-radius: 9px; display: none; }
.msg.err { display: block; background: #fef2f2; color: var(--danger); }
.msg.ok { display: block; background: #ecfdf5; color: var(--ok); }
/* dashboard / mosaico */
.dash { max-width: 1280px; margin: 0 auto; padding: 24px 20px; color: #e2e8f0; }
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 10px; flex-wrap: wrap; }
.dash-top h1 { font-size: 20px; margin: 0; flex-shrink: 0; }
.dash-top .hi { color: #94a3b8; font-size: 13px; margin-right: 8px; }
/* nav de botões: sempre inline-flex e com wrap permitido */
.dash-top > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dash button { background: rgba(255,255,255,.08); color: #e2e8f0; border: 1px solid rgba(255,255,255,.15); padding: 7px 12px; border-radius: 9px; cursor: pointer; font-size: 12px; margin: 0; white-space: nowrap; }
.dash button:hover { background: rgba(255,255,255,.14); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.loading, .empty { grid-column: 1/-1; text-align: center; color: #94a3b8; padding: 48px 0; }
.empty button { margin: 14px auto 0; }

.cam { background: #0b1220; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; }
.cam-video { position: relative; aspect-ratio: 16/9; background: #000; }
.cam-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-offline { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #475569; }
.cam-offline span { font-size: 34px; filter: grayscale(1); opacity: .6; }
.cam-offline small { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
/* cam-bar: em mobile deixa as actions quebrarem abaixo do nome */
.cam-bar { display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
.cam-bar > div:first-child { min-width: 0; flex: 1 1 60%; }
.cam-bar strong, .cam-bar small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-bar strong { font-size: 14px; }
.cam-bar small { font-size: 12px; color: #94a3b8; }
.cam-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.cam-actions .icon { background: transparent; border: 0; color: #64748b; cursor: pointer; font-size: 14px; margin: 0; padding: 4px; }
.cam-actions .icon:hover { color: #f87171; background: transparent; }
.rec-tag { background: rgba(255,255,255,.06); color: #64748b; border: 1px solid rgba(255,255,255,.12); font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 3px 6px; border-radius: 999px; cursor: pointer; margin: 0; white-space: nowrap; }
.rec-tag.on { background: rgba(220,38,38,.16); color: #f87171; border-color: rgba(220,38,38,.4); }
.rec-tag.on { animation: recpulse 2s ease-in-out infinite; }
@keyframes recpulse { 50% { opacity: .65; } }
.mov-tag { background: rgba(255,255,255,.06); color: #64748b; border: 1px solid rgba(255,255,255,.12); font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 3px 6px; border-radius: 999px; cursor: pointer; margin: 0; white-space: nowrap; }
.mov-tag.on { background: rgba(20,184,166,.16); color: #2dd4bf; border-color: rgba(20,184,166,.4); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #475569; display: inline-block; flex-shrink: 0; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.dot.off { background: #64748b; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(2,6,23,.7); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: #fff; color: var(--ink); width: 100%; max-width: 400px; border-radius: 14px; padding: 24px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal h3 { margin: 0 0 12px; }
.modal .hint { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.modal .hint code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-actions button { background: #f1f5f9; color: var(--ink); border: 1px solid var(--border); padding: 9px 14px; border-radius: 9px; cursor: pointer; font-size: 14px; }

/* select estilizado (casa com input) */
select {
  width: 100%; box-sizing: border-box; padding: 11px 13px; margin: 6px 0 2px;
  border: 1px solid var(--border); border-radius: 9px; font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none; appearance: none; color: var(--ink); cursor: pointer;
}
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,145,178,.15); }
select:disabled { opacity: .55; cursor: default; }

/* tabela de usuários / convites */
.sec-title { font-size: 14px; color: #cbd5e1; margin: 0 0 12px; font-weight: 600; }
.utable { display: flex; flex-direction: column; gap: 8px; }
.urow { display: flex; align-items: center; gap: 12px; background: #0b1220; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; padding: 12px 14px; }
.ucell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ucell strong { color: #e2e8f0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucell small { color: #64748b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.admin  { background: rgba(8,145,178,.18); color: #67e8f9; }
.badge.viewer { background: rgba(148,163,184,.18); color: #cbd5e1; }
.badge.on  { background: rgba(34,197,94,.16); color: #4ade80; }
.badge.off { background: rgba(100,116,139,.18); color: #94a3b8; }

/* eventos (Fatia 4) */
.ev-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; text-align: center; vertical-align: middle; }
.ev-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.ev-toolbar select { flex: 0 1 auto; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.ev-card { background: #0b1220; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; overflow: hidden; cursor: pointer; transition: border .15s, transform .1s; }
.ev-card:hover { border-color: rgba(8,145,178,.55); transform: translateY(-1px); }
.ev-card.unseen { border-color: rgba(8,145,178,.5); box-shadow: 0 0 0 1px rgba(8,145,178,.35); }
.ev-thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; filter: grayscale(1); opacity: .5; }
.ev-play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(8,145,178,.85); color: #fff; display: grid; place-items: center; font-size: 16px; padding-left: 3px; pointer-events: none; }
.ev-type { position: absolute; left: 8px; bottom: 8px; background: rgba(2,6,23,.78); color: #e2e8f0; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.ev-dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(8,145,178,.3); }
.ev-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; }
.ev-meta strong { color: #e2e8f0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-meta small { color: #94a3b8; font-size: 12px; flex-shrink: 0; }
.ev-alert { position: absolute; top: 8px; left: 8px; font-size: 14px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.ev-ai { padding: 0 12px 11px; margin-top: -4px; color: #cbd5e1; font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.modal.ev-modal { max-width: 640px; }
.ev-player { width: 100%; border-radius: 10px; background: #000; display: block; max-height: 60vh; }
.ev-ai-box { background: #f1f5f9; border-radius: 9px; padding: 10px 12px; font-size: 13px; color: var(--ink); margin: 0 0 12px; line-height: 1.4; }
.ev-ai-box strong { color: var(--primary-dark); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-tags .tag { background: rgba(8,145,178,.12); color: var(--primary-dark); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.badge.alert { background: rgba(220,38,38,.16); color: #fca5a5; }
.chk-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0 2px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 400; margin: 0; cursor: pointer; }
.chk input { width: auto; }
.modal input[type="time"] { cursor: pointer; }
/* plano / billing */
.plan-card { background: #0b1220; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 20px; max-width: 460px; }
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 18px; font-weight: 700; color: #e2e8f0; margin-right: 8px; }
.plan-price { color: #e2e8f0; font-size: 20px; font-weight: 700; white-space: nowrap; }
.plan-price small { color: #94a3b8; font-size: 12px; font-weight: 400; }
.plan-usage { margin: 18px 0 14px; }
.usage-row { display: flex; justify-content: space-between; color: #cbd5e1; font-size: 13px; margin-bottom: 6px; }
.usage-bar { height: 8px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: 999px; transition: width .3s; }
.plan-meta { display: flex; gap: 24px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.plan-meta div { display: flex; flex-direction: column; gap: 2px; }
.plan-meta small { color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.plan-meta strong { color: #e2e8f0; font-size: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.plan-opt { background: #0b1220; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; padding: 16px; }
.plan-opt.current { border-color: rgba(8,145,178,.55); box-shadow: 0 0 0 1px rgba(8,145,178,.35); }
.plan-opt-name { color: #e2e8f0; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.plan-opt-price { color: #e2e8f0; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-opt-price small { color: #94a3b8; font-size: 11px; font-weight: 400; }
.plan-opt ul { margin: 0 0 12px; padding-left: 18px; color: #94a3b8; font-size: 13px; }
.plan-opt button { width: 100%; margin: 0; }
/* gravações / timeline scrubber */
.rec-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.rec-player { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; max-width: 900px; margin: 0 auto 18px; }
.rec-player video { width: 100%; height: 100%; object-fit: contain; display: block; }
.rec-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #475569; font-size: 13px; text-align: center; padding: 20px; }
.tl-wrap { max-width: 900px; margin: 0 auto; }
.tl { position: relative; height: 38px; background: repeating-linear-gradient(90deg,#0b1220,#0b1220 calc(100%/8 - 1px),rgba(255,255,255,.06) calc(100%/8 - 1px),rgba(255,255,255,.06) calc(100%/8)); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; cursor: pointer; overflow: hidden; }
.tl-seg { position: absolute; top: 0; bottom: 0; min-width: 3px; background: rgba(8,145,178,.45); border-left: 1px solid rgba(8,145,178,.7); }
.tl-ev { position: absolute; top: 0; bottom: 0; width: 2px; background: #f59e0b; cursor: pointer; }
.tl-ev.notable { background: var(--danger); width: 3px; }
.tl-ev:hover { box-shadow: 0 0 0 2px rgba(245,158,11,.4); }
.tl-head { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.8); pointer-events: none; }
.tl-labels { display: flex; justify-content: space-between; margin-top: 4px; color: #64748b; font-size: 11px; }
.rec-status { margin-top: 10px; color: #94a3b8; font-size: 13px; text-align: center; }

/* bloco de comando do bridge */
pre.cmd {
  background: #0b1220; color: #c7d2fe; border: 1px solid var(--border);
  border-radius: 9px; padding: 12px 14px; font-size: 12px; line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; word-break: break-all; overflow-x: auto; margin: 0 0 4px;
}

/* passos do provisionamento (modal de resultado) */
.pv-steps { margin: 4px 0 10px; padding-left: 20px; color: #cbd5e1; font-size: 13px; line-height: 1.5; }
.pv-steps li { margin-bottom: 4px; }

/* upload dropzone — nunca o file input feio do browser */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed rgba(255,255,255,.22); border-radius: 12px; padding: 22px 16px; margin-top: 6px;
  cursor: pointer; text-align: center; color: #94a3b8; background: rgba(255,255,255,.03);
  transition: border-color .15s, background .15s, color .15s;
}
.dropzone:hover, .dropzone.drag { border-color: #2dd4bf; background: rgba(45,212,191,.06); color: #cbd5e1; }
.dropzone .dz-icon { font-size: 26px; opacity: .8; }
.dropzone .dz-text { font-size: 13px; }
.dropzone .dz-text u { color: #2dd4bf; text-decoration: none; border-bottom: 1px solid currentColor; }
.dropzone .dz-thumb { max-width: 120px; max-height: 120px; border-radius: 10px; object-fit: cover; }

/* mobile pequeno */
@media (max-width: 600px) {
  .dash { padding: 14px 10px; }
  .dash-top { gap: 8px; margin-bottom: 16px; }
  .dash-top h1 { font-size: 17px; }
  .dash button { padding: 6px 10px; font-size: 11px; }
  .grid { gap: 10px; }
  .auth-card { padding: 26px 20px; }
  /* modal ocupa quase tela toda e inicia no topo — melhor pra Safari iOS */
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal {
    padding: 20px 16px;
    max-height: 92dvh;   /* dvh funciona em Safari 15.4+ */
    max-height: calc(100vh - 32px); /* fallback */
    border-radius: 18px 18px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .urow { flex-wrap: wrap; }
  .ucell { flex-basis: 100%; }
  /* cam-bar em mobile: actions ficam abaixo do nome, ocupam a linha toda */
  .cam-bar { flex-direction: column; gap: 8px; }
  .cam-bar > div:first-child { flex: none; width: 100%; }
  .cam-actions { width: 100%; justify-content: flex-start; }
  /* toolbar de filtros: empilha verticalmente */
  .ev-toolbar, .rec-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .ev-toolbar select, .ev-toolbar input,
  .rec-toolbar select, .rec-toolbar input { max-width: 100% !important; }
  /* watchlist/pessoas: formulário empilhado */
  .wl-add { flex-direction: column; }
  .wl-add input, .wl-add button { max-width: 100% !important; width: 100%; }
  /* tabela watchlist: scroll horizontal */
  .wl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wl-table { min-width: 360px; }
  /* plano: header não quebra de jeito estranho */
  .plan-head { flex-direction: column; gap: 6px; }
  .plan-meta { flex-wrap: wrap; gap: 16px; }
  /* pessoas: upload de foto ocupa linha toda */
  .wl-add input[type="file"] { font-size: 13px; }
  /* timeline labels: não vazar */
  .tl-labels { font-size: 9px; }
}

/* tablet: nav ainda pode ficar em 2 linhas, tudo ok, mas cam-actions não deve vazar */
@media (max-width: 900px) {
  .cam-actions { flex-wrap: wrap; }
  .lpr-tag, .face-tag, .rec-tag, .mov-tag { font-size: 9px; padding: 2px 5px; letter-spacing: 0; }
}

/* ---- LPR / Placas (Fatia 9) ---- */
.lpr-tag { background: rgba(255,255,255,.06); color: #64748b; border: 1px solid rgba(255,255,255,.12); font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 3px 6px; border-radius: 999px; cursor: pointer; margin: 0; white-space: nowrap; }
.lpr-tag.on { background: rgba(99,102,241,.18); color: #a5b4fc; border-color: rgba(99,102,241,.45); }

.pl-chk { display: inline-flex; align-items: center; gap: 6px; color: #cbd5e1; font-size: 13px; cursor: pointer; }
.pl-chk input { width: auto; margin: 0; }

.plates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.pl-card { background: #0b1220; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; overflow: hidden; cursor: pointer; transition: border .15s, transform .1s; }
.pl-card:hover { border-color: rgba(99,102,241,.55); transform: translateY(-1px); }
.pl-card.hit { border-color: rgba(220,38,38,.55); box-shadow: 0 0 0 1px rgba(220,38,38,.4); }
.pl-thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-hit { position: absolute; top: 8px; right: 8px; font-size: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.pl-body { padding: 10px 12px; }
.pl-plate { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 20px; letter-spacing: .06em; color: #e2e8f0; background: #1e293b; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; padding: 4px 8px; display: inline-block; margin-bottom: 8px; }
.pl-plate.merc { background: #f8fafc; color: #0f172a; border-top: 5px solid #1e40af; }
.pl-meta strong { display: block; color: #e2e8f0; font-size: 14px; }
.pl-meta small { color: #94a3b8; font-size: 12px; }
.pl-label { display: inline-block; margin-top: 8px; background: rgba(220,38,38,.16); color: #f87171; border: 1px solid rgba(220,38,38,.35); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }

.card { background: #0b1220; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; padding: 16px 18px; color: #e2e8f0; }
.card h3 { color: #e2e8f0; }
.wl-add { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-add input { margin: 0; flex: 1; min-width: 120px; }
.wl-table { width: 100%; border-collapse: collapse; background: #0b1220; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; overflow: hidden; }
.wl-table th, .wl-table td { text-align: left; padding: 10px 12px; font-size: 13px; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,.07); }
.wl-table th { color: #94a3b8; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.wl-table tr.off td { opacity: .5; }
.wl-plate { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .05em; color: #e2e8f0; }
.chip { background: rgba(255,255,255,.06); color: #94a3b8; border: 1px solid rgba(255,255,255,.14); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; cursor: pointer; }
.chip.on { background: rgba(34,197,94,.16); color: #4ade80; border-color: rgba(34,197,94,.4); }

/* ---- Facial / Rostos (Fatia 10) ---- */
.face-tag { background: rgba(255,255,255,.06); color: #64748b; border: 1px solid rgba(255,255,255,.12); font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 3px 6px; border-radius: 999px; cursor: pointer; margin: 0; white-space: nowrap; }
.face-tag.on { background: rgba(168,85,247,.18); color: #d8b4fe; border-color: rgba(168,85,247,.45); }
.fc-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.fc-name.known { color: #4ade80; }
.fc-name.unknown { color: #f87171; }
.pf-actions { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.pl-card.dim { opacity: .55; }

/* Busca por características (Fatia 12) */
.search-summary{background:#0f172a;color:#cbd5e1;border:1px solid #1e293b;border-radius:10px;
  padding:10px 14px;margin:0 0 12px;font-size:13px;line-height:1.5}
.search-summary strong{color:#f1f5f9}
.search-reason{font-size:13px;color:#334155;line-height:1.4;margin-top:4px}
