/* SHINNARE · Portal — operação: carregamento com o camaleão, menu em grupos, fluxo de entrega, SHINNARE Score,
   saúde dos sites, ativos, QA, homologação, publicações, garantias, avaliações e inteligência. Mesma paleta do portal. */

/* ---------- utilitários ---------- */
.small { font-size: 13px; }
.text-ok { color: var(--ok) !important; display: inline-flex; align-items: center; gap: 5px; }
.text-warn { color: var(--warn) !important; }
.stack-xs { display: grid; gap: 3px; justify-items: start; }
.tone-text-ok { color: var(--ok); } .tone-text-gold { color: var(--gold-ink); } .tone-text-warn { color: var(--warn); }
.tone-text-bad { color: var(--bad); } .tone-text-muted { color: var(--faint); }
.tone-bg-ok { background: var(--ok); } .tone-bg-gold { background: var(--grad-gold); } .tone-bg-warn { background: #d69a2d; }
.tone-bg-bad { background: var(--bad); } .tone-bg-muted { background: var(--line-2); }
.big-num { font-size: 26px; font-weight: 750; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.w-date { width: auto; min-height: 42px; }
h2.sec-title { margin: 6px 0 12px; font-size: 17px; }

/* ---------- carregamento: camaleão enrolado girando dentro de anéis dourados ---------- */
.cham-loader { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }
.cham-orbit { position: relative; display: grid; place-items: center; width: 74px; height: 74px; }
.cham-sm .cham-orbit { width: 46px; height: 46px; }
.cham-lg .cham-orbit { width: 150px; height: 150px; }
.cham-orbit img { width: 64%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(195, 143, 40, .45)); animation: cham-spin 2.4s cubic-bezier(.55, .15, .45, .85) infinite; }
.cham-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(248, 227, 160, .95) 18%, #e3b650 30%, transparent 46% 58%, rgba(227, 182, 80, .7) 70%, #c28a2a 82%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  filter: drop-shadow(0 0 6px rgba(240, 200, 100, .55)); animation: cham-spin 1.6s linear infinite; }
.cham-ring-2 { inset: 9%; opacity: .55; animation-duration: 2.6s; animation-direction: reverse; }
.cham-text { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.cham-loader.is-dark .cham-text { color: #f0d688; }
.cham-lg .cham-text { font-size: 15.5px; }
@keyframes cham-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cham-orbit img { animation-duration: 6s; } .cham-ring { animation-duration: 4s; } }
.boot .cham-loader { gap: 20px; }

/* ---------- menu lateral: grupos recolhíveis e submenu ---------- */
.side-sec { display: grid; }
button.side-title { display: flex; align-items: center; gap: 8px; width: calc(100% - 12px); margin: 10px 6px 2px; padding: 6px 6px; border: 0; border-radius: 8px; background: none;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); text-align: left; }
button.side-title span:first-child { flex: 1; }
button.side-title .ic { transition: transform .2s var(--ease); opacity: .7; }
button.side-title:hover { color: var(--ink); background: var(--surface-2); }
.side-sec.is-shut button.side-title .ic { transform: rotate(-90deg); }
.side-count-sm { min-width: 18px; height: 18px; padding: 0 6px; font-size: 10.5px; line-height: 18px; border-radius: 9px; letter-spacing: 0; }
.side-row { display: flex; align-items: center; gap: 2px; }
.side-row .side-link { flex: 1; min-width: 0; }
.side-sub-toggle { display: grid; place-items: center; width: 30px; height: 34px; flex: none; border: 0; border-radius: 9px; background: none; color: var(--faint); }
.side-sub-toggle:hover { background: var(--surface-2); color: var(--ink); }
.side-sub-toggle .ic { transition: transform .2s var(--ease); }
.has-sub:not(.is-open) .side-sub-toggle .ic { transform: rotate(-90deg); }
.side-sub { display: grid; gap: 1px; margin: 2px 0 6px 22px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.side-sublink { display: block; padding: 7px 10px; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sublink:hover { background: var(--surface-2); color: var(--ink); }
.side-sublink.is-active { color: var(--ink); background: var(--gold-soft); }
.side-dark .side-sublink.is-active { color: #1a1206; }
@media (min-width: 1025px) {
  .side-mini button.side-title { display: none; }
  .side-mini .side-sec + .side-sec { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
}

/* ---------- fluxo de entrega ---------- */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow-step { position: relative; min-width: 0; }
.flow-step::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line-2); z-index: 0; }
.flow-step:first-child::before { display: none; }
.flow-step.is-done::before, .flow-step.is-current::before { background: linear-gradient(90deg, #c28a2a, #e3b650); }
.flow-btn { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; padding: 0 2px; border: 0; background: none; text-align: center; color: inherit; font: inherit; }
button.flow-btn { cursor: pointer; }
button.flow-btn:hover .flow-label { color: var(--ink); text-decoration: underline; }
.flow-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); color: var(--faint); font-size: 13px; font-weight: 750; }
.flow-label { font-size: 12.5px; font-weight: 650; color: var(--muted); line-height: 1.25; overflow-wrap: anywhere; }
.is-done .flow-dot { background: var(--grad-gold); border-color: transparent; color: #1a1206; }
.is-current .flow-dot { border-color: var(--gold); color: var(--gold-ink); background: var(--gold-soft); box-shadow: 0 0 0 4px rgba(224, 178, 74, .18); }
.is-current .flow-label { color: var(--ink); }
@media (max-width: 560px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .flow-step:nth-child(4)::before { display: none; }
}

/* ---------- SHINNARE Score ---------- */
.score-ring { position: relative; margin: 0; flex: none; }
.score-ring svg { display: block; }
.score-track { stroke: var(--surface-3); }
.score-arc { transition: stroke-dasharray .9s var(--ease); filter: drop-shadow(0 2px 6px rgba(195, 143, 40, .35)); }
.score-ring figcaption { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.score-ring strong { font-size: 2.1em; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.score-ring small { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--faint); }
.score-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.score-hero > div { flex: 1; min-width: 220px; }
.score-hero-title { font-size: 22px; margin: 0 0 6px; }
.health-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.health-top > .card { margin: 0; }
.health-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: stretch; }
.score-card-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.score-card-text { flex: 1; min-width: 200px; }
.score-parts { display: grid; gap: 9px; }
.score-parts li { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 12px; font-size: 13.5px; }
.score-parts li.is-empty { opacity: .55; }
.sp-label { color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; }
.sp-label em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.sp-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.sp-bar i { display: block; height: 100%; border-radius: inherit; transition: width .8s var(--ease); }
.sp-val { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.score-mini { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.score-mini > div { display: grid; gap: 4px; justify-items: start; }
.score-mini strong { color: var(--ink); }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.trend.is-up { color: var(--ok); } .trend.is-down { color: var(--bad); }
.sparkline { display: block; margin: 6px 0; max-width: 100%; }
.sparkline path { stroke: #c28a2a; }
.score-chip, .num-chip { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 8px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.num-chip { min-width: 0; height: auto; padding: 0; font-weight: 750; }

/* ---------- situação dos sites ---------- */
.health-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--muted-soft); color: var(--muted); }
.health-pill i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(0, 0, 0, .04); }
.health-pill.is-healthy { background: var(--ok-soft); color: var(--ok); }
.health-pill.is-attention { background: var(--warn-soft); color: var(--warn); }
.health-pill.is-problem { background: var(--bad-soft); color: var(--bad); }
.health-pill.is-small { padding: 2px 9px 2px 7px; font-size: 12px; }
.health-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--line-2); }
.health-dot.is-healthy { background: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, .18); }
.health-dot.is-attention { background: #e0a22b; box-shadow: 0 0 0 3px rgba(224, 162, 43, .2); }
.health-dot.is-problem { background: #d23a2f; box-shadow: 0 0 0 3px rgba(210, 58, 47, .2); }
.online-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.online-tag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.online-tag.is-on { color: var(--ok); } .online-tag.is-off { color: var(--bad); }
.online-tag.is-on i { animation: pulse 2.4s ease-in-out infinite; }
.uptime-bar { display: flex; gap: 2px; height: 34px; margin-top: 12px; align-items: stretch; }
.uptime-bar i { flex: 1; min-width: 2px; border-radius: 3px; background: #2fae66; }
.uptime-bar i.is-off { background: var(--bad); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.check-grid.is-one { grid-template-columns: 1fr; }
.check-grid li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check-grid li.is-ok .ic { color: var(--ok); } .check-grid li.is-bad { color: var(--muted); } .check-grid li.is-bad .ic { color: var(--bad); }
.issue-list { display: grid; gap: 8px; }
.issue-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.issue-list li.is-bad { background: var(--bad-soft); color: var(--bad); }
.issue-list li.is-warn { background: var(--warn-soft); color: var(--warn); }
.issue-list .ic { margin-top: 2px; }
.days { font-weight: 700; } .days.is-ok { color: var(--ok); } .days.is-warn { color: var(--warn); } .days.is-bad { color: var(--bad); }

/* ---------- ativos digitais ---------- */
.asset-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.asset-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.asset-sum-item { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; transition: border-color .15s, box-shadow .15s; }
.asset-sum-item strong { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.asset-sum-item span { font-size: 13px; font-weight: 650; color: var(--muted); }
.asset-sum-item.is-problem strong { color: var(--bad); } .asset-sum-item.is-expiring strong { color: var(--gold-ink); }
.asset-sum-item.is-attention strong { color: var(--warn); } .asset-sum-item.is-active strong { color: var(--ok); }
.asset-sum-item:hover { border-color: var(--gold-2); }
.asset-sum-item.is-on { border-color: var(--gold); box-shadow: var(--focus); background: var(--surface); }
@media (max-width: 720px) { .asset-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- QA ---------- */
.qa-head .row-between { align-items: flex-start; margin-bottom: 14px; }
.qa-count { font-size: clamp(19px, 2.2vw, 24px); margin: 0 0 8px; letter-spacing: -.02em; }
.qa-list { display: grid; }
.qa-item { display: flex; align-items: flex-start; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line); }
.qa-item.is-passed { background: linear-gradient(90deg, rgba(34, 163, 90, .05), transparent 40%); }
.qa-item.is-failed { background: linear-gradient(90deg, rgba(210, 58, 47, .07), transparent 40%); }
.qa-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qa-text strong { color: var(--ink); font-size: 14.5px; }
.qa-item.is-na .qa-text strong { color: var(--faint); text-decoration: line-through; }
.qa-text small { color: var(--muted); font-size: 12.5px; }
.qa-note { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; font-size: 13px; color: var(--text); }
.qa-by { color: var(--faint) !important; }
.qa-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-3); gap: 2px; }
.seg-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.seg-btn:hover:not(:disabled) { background: var(--surface); color: var(--ink); }
.seg-btn:disabled { cursor: default; }
.seg-btn.is-passed[aria-checked="true"] { background: var(--ok); color: #fff; }
.seg-btn.is-failed[aria-checked="true"] { background: var(--bad); color: #fff; }
.seg-btn.is-na[aria-checked="true"] { background: var(--ink); color: #fff; }
@media (max-width: 720px) {
  .qa-item { flex-direction: column; gap: 10px; padding: 13px 16px; }
  .qa-actions { width: 100%; justify-content: space-between; }
  .seg-btn span { display: none; }
  .seg-btn { padding: 0 14px; }
}
.tpl-list { display: grid; }
.tpl-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tpl-list li > span { display: grid; gap: 2px; min-width: 0; }
.tpl-list li small { color: var(--muted); font-size: 12.5px; }
.tpl-list li.is-off strong { color: var(--faint); }
.tpl-groups { display: grid; gap: 4px; }

/* ---------- homologação ---------- */
.h-card .row-between { align-items: flex-start; }
.h-card.is-pending { border-color: #ecd291; box-shadow: 0 0 0 3px rgba(224, 178, 74, .12); }
.h-card.is-approved { border-color: #b9e0c8; }
.h-title { font-size: 20px; margin: 0; }
.h-preview { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.h-preview span { flex: 1; display: grid; }
.h-preview small { color: var(--gold-3); font-size: 12.5px; }
.h-preview .ic:first-child { color: var(--gold-2); }
.h-preview:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(22, 18, 12, .6); }
.h-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.h-thread { display: grid; gap: 14px; margin-bottom: 14px; }
.h-msg { display: flex; gap: 10px; }
.h-msg > div { flex: 1; min-width: 0; }
.h-meta { margin: 0 0 3px; font-size: 13.5px; color: var(--muted); }
.h-meta strong { color: var(--ink); }
.h-meta small { color: var(--faint); margin-left: 4px; }
.h-msg.is-approved .h-meta { color: var(--ok); }
.h-msg.is-changes_requested .h-meta { color: var(--bad); }
.h-msg p.pre-line { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.h-comment { display: grid; gap: 4px; }

/* ---------- publicações ---------- */
.deploy-gate .row-between { align-items: center; }
.gate { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.gate.is-ok { background: var(--ok-soft); color: var(--ok); }
.gate.is-no { background: var(--muted-soft); color: var(--muted); }
.gate.is-info { background: var(--info-soft); color: var(--info); }
.deploys { display: grid; gap: 12px; }
.deploy { position: relative; padding: 16px 18px 16px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.deploy::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line-2); }
.deploy.is-success::before { background: var(--grad-gold); }
.deploy.is-failed::before { background: var(--bad); }
.deploy.is-rolled_back { opacity: .78; }
.deploy.is-current { border-color: #ecd291; }
.deploy-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.deploy-v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.deploy-v.sm { font-size: 14px; }
.deploy-title { display: block; margin-top: 6px; color: var(--ink); }
.deploy-meta { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.deploy-meta code { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); }
.deploy-checks { gap: 6px; margin-bottom: 8px; }
.deploy-changes { display: grid; gap: 4px; margin: 6px 0 8px; padding-left: 4px; }
.deploy-changes li { position: relative; padding-left: 16px; font-size: 14px; }
.deploy-changes li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 10px; }
.checks-mini { gap: 4px; }
.checks-mini span { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.checks-mini .is-ok { background: var(--ok-soft); color: var(--ok); }
.checks-mini .is-no { background: var(--muted-soft); color: var(--faint); text-decoration: line-through; }

/* ---------- garantias ---------- */
.w-seal { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d8, #f1d27b 38%, #c28a2a 70%, #8e6a1f);
  box-shadow: 0 10px 24px -12px rgba(142, 106, 31, .9), inset 0 0 0 3px rgba(255, 255, 255, .35), inset 0 0 0 6px rgba(142, 106, 31, .35); }
.w-seal img { filter: drop-shadow(0 2px 3px rgba(60, 40, 5, .45)) saturate(.9) brightness(.92); }
.warranty-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.warranty-head .stats { flex: 1; }
.w-list { display: grid; gap: 2px; }
.w-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.w-item:last-child { border-bottom: 0; }
.w-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line-2); }
.w-item.is-active .w-dot { background: #22a35a; } .w-item.is-ending .w-dot, .w-item.is-plan .w-dot { background: #e0a22b; }
.w-item.is-pending .w-dot { background: var(--info); }
.w-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.w-body strong { color: var(--ink); font-size: 14px; }
.w-body small { color: var(--muted); font-size: 12.5px; }
.w-note { font-style: italic; }
.w-side { display: grid; justify-items: end; gap: 3px; text-align: right; }
.w-side small { font-size: 12px; color: var(--faint); font-weight: 650; }
.w-list.is-compact .w-item { padding: 9px 0; }
@media (max-width: 560px) { .warranty-head { flex-direction: column; align-items: stretch; } .warranty-head .w-seal { align-self: center; } }

/* ---------- avaliações ---------- */
.stars { display: inline-flex; gap: 1px; font-size: var(--s, 16px); line-height: 1; letter-spacing: 0; }
.stars i { font-style: normal; color: var(--line-2); }
.stars i.is-on { color: #d9a63a; text-shadow: 0 1px 0 rgba(142, 106, 31, .3); }
.review-admin { display: grid; }
.review-admin li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line); }
.ra-body { flex: 1; min-width: 0; }
.ra-body p { margin: 6px 0; color: var(--text); }
.rating-big { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rating-big strong { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.rating-dist { display: grid; gap: 7px; }
.rating-dist li { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; }
.rating-dist strong { text-align: right; }
@media (max-width: 560px) { .review-admin li { flex-wrap: wrap; } }

/* ---------- inteligência ---------- */
.intel-section { margin-bottom: 26px; }
.intel-section .stats { margin-bottom: 16px; }
.funnel { display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 44px 44px; align-items: center; gap: 10px; font-size: 13.5px; }
.fn-label { font-weight: 650; color: var(--text); }
.fn-bar { height: 22px; border-radius: 7px; background: var(--surface-3); overflow: hidden; }
.fn-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-gold); }
.funnel strong { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.funnel small { color: var(--faint); font-weight: 700; text-align: right; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.report-card { display: grid; gap: 6px; justify-items: start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .2s, box-shadow .2s, transform .2s; }
.report-card:hover:not(:disabled) { border-color: var(--gold-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.report-card strong { color: var(--ink); font-size: 15px; }
.report-card small { color: var(--gold-ink); font-weight: 700; font-size: 12.5px; }
.report-card.is-busy { opacity: .7; }
.report-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); }
.chart-svg .avg line { stroke: #8e6a1f; stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.chart-svg .avg text { fill: #8e6a1f; font: 700 10.5px var(--font); }
.tabs a.tab { text-decoration: none; }

/* ---------- permissões ---------- */
.perm-role { display: grid; gap: 1px; justify-items: center; }
.perm-role small { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--gold-ink); }
.perm-role-actions { display: inline-flex; gap: 2px; margin-top: 2px; }
.lock-state.is-on-ok .lock-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.feed-note { font-style: italic; color: var(--muted) !important; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) { .health-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .score-parts li { grid-template-columns: 110px 1fr 30px; gap: 8px; }
  .check-grid { grid-template-columns: 1fr; }
  .funnel li { grid-template-columns: 100px 1fr 36px 36px; gap: 6px; }
  .score-hero { justify-content: center; text-align: center; }
  .score-hero .trend, .score-hero .sparkline { margin-left: auto; margin-right: auto; }
}

/* ---------- tema escuro do Portal do Cliente ---------- */
[data-theme="dark"] .flow-dot { background: var(--surface-2); }
[data-theme="dark"] .is-done .flow-dot { background: var(--grad-gold); }
[data-theme="dark"] .h-preview { background: #0a0806; border: 1px solid rgba(224, 178, 74, .35); }
[data-theme="dark"] .sparkline path { stroke: var(--gold-2); }
[data-theme="dark"] .h-card.is-pending { border-color: rgba(224, 178, 74, .45); }
@media (min-width: 721px) { .table .col-wide { min-width: 240px; } }

/* ---------- chamadas: indicador de conexão ---------- */
.call-q { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 11px; font-weight: 700; }
.call-q.is-good { color: #7ee2a4; } .call-q.is-fair { color: #f5c76a; } .call-q.is-poor { color: #ff9b8f; }
.call-q small { font-size: 10.5px; opacity: .9; }
