/* Base histórica isolada numa camada de baixa prioridade. dashboard.css é a camada canónica. */
@layer webops-base {
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #dbe2ea;
  --surface: #ffffff;
  --canvas: #f3f6f9;
  --navy: #07111f;
  --navy-soft: #111f33;
  --violet: #5046e5;
  --violet-dark: #4037c9;
  --mint: #0f9f85;
  --mint-soft: #e3f8f2;
  --danger: #c92a3b;
  --danger-soft: #fff0f2;
  --warning: #b35c00;
  --warning-soft: #fff4e5;
  --info: #2563eb;
  --info-soft: #eff6ff;
  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 70px rgba(2, 6, 23, 0.22);
  --transition: 180ms ease;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: linear-gradient(180deg, #f6f8fb 0, var(--canvas) 420px); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { margin-bottom: 12px; font-size: clamp(35px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -0.045em; }
h2 { margin-bottom: 0; font-size: clamp(25px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 18px; line-height: 1.3; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(15, 159, 133, 0.42);
  outline-offset: 3px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  color: white;
  background: var(--navy);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  color: white;
  background: var(--violet);
  border-radius: 10px;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(80, 70, 229, 0.28);
}
.brand strong, .brand small { display: block; }
.brand strong { color: white; }
.brand small { margin-top: 3px; color: #9eabc0; font-size: 12px; }
.sidebar .brand { margin-bottom: 42px; }

nav { display: grid; gap: 6px; }
.nav-link {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  color: #aeb9ca;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color var(--transition), background var(--transition);
}
.nav-link svg { width: 19px; height: 19px; }
.nav-link:hover, .nav-link.is-active { color: white; background: rgba(255, 255, 255, 0.08); }
.nav-link.is-active { box-shadow: inset 3px 0 var(--mint); }

.sidebar-footer { display: grid; gap: 10px; margin-top: auto; }
.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { color: white; font-size: 13px; }
.sidebar-note small { margin-top: 4px; color: #9eabc0; font-size: 12px; line-height: 1.45; }
.status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 4px;
  border-radius: 50%;
  background: #21d6b2;
  box-shadow: 0 0 0 4px rgba(33, 214, 178, 0.12);
}
.logout-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #aeb9ca;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  transition: color var(--transition), background var(--transition);
}
.logout-button svg { width: 18px; height: 18px; }
.logout-button:hover { color: white; background: rgba(255, 255, 255, 0.07); }

main#conteudo { width: min(1540px, 100%); padding: 44px clamp(24px, 4vw, 68px) 88px; }
.topbar, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.topbar { align-items: center; margin-bottom: 28px; }
.topbar > div { max-width: 850px; }
.lead { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.section-heading { margin-bottom: 20px; }
.section-heading > p { max-width: 520px; margin-bottom: 0; color: var(--muted); line-height: 1.55; text-align: right; }
main > section { padding: 34px 0; scroll-margin-top: 20px; }
#urgencias { padding-top: 22px; }

.primary-button, .secondary-button, .text-button, .filter, .icon-button {
  border-radius: 8px;
  font-weight: 750;
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.primary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--violet);
  color: white;
  background: var(--violet);
  box-shadow: 0 8px 20px rgba(80, 70, 229, 0.2);
}
.primary-button svg { width: 19px; height: 19px; }
.primary-button:hover { border-color: var(--violet-dark); background: var(--violet-dark); box-shadow: 0 10px 26px rgba(80, 70, 229, 0.26); }
.primary-button:disabled, .secondary-button:disabled, .logout-button:disabled { opacity: 0.48; cursor: wait; }
.secondary-button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}
.secondary-button:hover { border-color: var(--mint); color: #087c6c; }
.text-button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  color: var(--violet-dark);
  background: transparent;
  white-space: nowrap;
}
.text-button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric {
  min-height: 132px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.metric::before { content: ""; display: block; width: 32px; height: 4px; margin-bottom: 15px; border-radius: 99px; background: var(--muted); }
.metric-danger::before { background: var(--danger); }
.metric-warning::before { background: var(--warning); }
.metric-success::before { background: var(--mint); }
.metric-neutral::before { background: var(--violet); }
.metric span, .metric small { display: block; color: var(--muted); }
.metric span { font-size: 13px; font-weight: 650; }
.metric strong { display: block; margin: 9px 0 5px; font-size: 33px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric small { font-size: 12px; }

.critical-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}
.urgent-server-group + .urgent-server-group { border-top: 8px solid var(--canvas); }
.urgent-server-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.urgent-server-heading h3 { margin: 3px 0 0; font-size: 20px; }
.urgent-server-heading > strong { color: var(--violet-dark); font-size: 12px; }
.urgent-theme-group + .urgent-theme-group { border-top: 1px solid var(--line); }
.urgent-theme-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px; background: #fcfdff; }
.urgent-theme-heading h4 { margin: 0; color: var(--ink-soft); font-size: 13px; }
.urgent-theme-heading span { min-width: 25px; padding: 4px 7px; border-radius: 99px; color: var(--muted); background: #edf1f5; font-size: 10px; font-weight: 750; text-align: center; }
.critical-card {
  display: grid;
  grid-template-columns: minmax(145px, 0.45fr) minmax(320px, 1.8fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--warning);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.critical-card:hover { border-color: #c7d1dc; border-left-color: var(--warning); box-shadow: 0 12px 30px rgba(15, 23, 42, .08); }
.critical-card.critical-critical:hover { border-left-color: var(--danger); }
.critical-card:last-child { border-bottom: 0; }
.critical-card.critical-critical { border-left-color: var(--danger); }
.critical-status { display: grid; justify-items: start; gap: 9px; }
.project-label { color: var(--ink-soft); font-size: 13px; font-weight: 750; }
.critical-copy h3 { margin-bottom: 5px; }
.critical-copy p { margin-bottom: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.critical-copy small { color: var(--ink-soft); line-height: 1.45; }
.positive-state { min-height: 116px; display: flex; align-items: center; gap: 16px; padding: 24px; }
.positive-state strong { display: block; margin-bottom: 4px; }
.positive-state p { margin: 0; color: var(--muted); line-height: 1.5; }
.positive-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #087c6c; background: var(--mint-soft); }
.positive-icon svg { width: 24px; height: 24px; stroke-width: 2.2; }

.severity {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.severity.critical { color: #9f1627; background: #ffe2e6; }
.severity.high { color: #934800; background: #ffebca; }
.severity.medium { color: #4338a8; background: #e9e7ff; }
.severity.low { color: #17695f; background: #daf5ef; }
.severity.info { color: #475569; background: #e9eef4; }

.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-card {
  position: relative;
  min-height: 342px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--mint); }
.site-card.has-priority::before { background: var(--warning); }
.site-card:hover { border-color: #c6d0dc; box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1); }
.site-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.project-kicker { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: 0.12em; }
.site-card h3 { margin-bottom: 4px; font-size: 20px; }
.site-url { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.score-block { flex: none; text-align: right; }
.score-block strong, .score-block span { display: block; }
.score-block strong { font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.score-block span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.score-progress { width: 100%; height: 6px; margin: 20px 0 16px; overflow: hidden; border: 0; border-radius: 99px; background: #e6ebf1; }
.score-progress::-webkit-progress-bar { background: #e6ebf1; }
.score-progress::-webkit-progress-value { background: var(--mint); border-radius: 99px; }
.score-progress::-moz-progress-bar { background: var(--mint); border-radius: 99px; }
.has-priority .score-progress::-webkit-progress-value { background: var(--warning); }
.has-priority .score-progress::-moz-progress-bar { background: var(--warning); }
.site-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 17px; }
.tag { min-height: 27px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 6px; color: #475569; background: #edf1f5; font-size: 10px; font-weight: 750; }
.tag.status-online { color: #17695f; background: var(--mint-soft); }
.tag.status-offline { color: #9f1627; background: var(--danger-soft); }
.site-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 20px; }
.site-stat { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.site-stat strong, .site-stat span { display: block; }
.site-stat strong { font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.site-stat span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.site-actions { display: flex; gap: 8px; margin-top: auto; }
.site-actions button { flex: 1; }

.filter-group { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.filter { min-height: 44px; padding: 0 12px; border: 0; color: var(--muted); background: transparent; }
.filter:hover { color: var(--ink); background: #eef2f6; }
.filter.is-active { color: white; background: var(--ink); }
.issue-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.issue-row {
  display: grid;
  grid-template-columns: 100px minmax(150px, 0.65fr) minmax(300px, 1.8fr) 100px;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.issue-row:last-child { border-bottom: 0; }
.issue-site { font-weight: 750; }
.issue-copy strong, .issue-copy span { display: block; }
.issue-copy span { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.issue-category { color: var(--muted); font-size: 11px; text-align: right; }
.empty-card { grid-column: 1 / -1; padding: 38px; color: var(--muted); text-align: center; border: 1px dashed #c5cfdb; border-radius: var(--radius); background: rgba(255, 255, 255, 0.68); }

dialog { width: min(1060px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(2, 6, 23, 0.66); backdrop-filter: blur(4px); }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); background: white; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; color: var(--ink); background: #edf1f5; }
.icon-button:hover { color: white; background: var(--ink); }
.icon-button svg { width: 20px; height: 20px; }
#dialog-content { padding: 24px 26px 34px; }
.detail-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.detail-box { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.detail-box span, .detail-box strong { display: block; }
.detail-box span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.detail-box strong { margin-top: 6px; overflow-wrap: anywhere; }
.detail-section { margin-top: 28px; padding: 0; }
.detail-section h3 { margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
.page-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.page-table th, .page-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.page-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.page-table td:first-child { max-width: 340px; overflow-wrap: anywhere; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: min(420px, calc(100% - 32px)); padding: 14px 18px; color: white; background: var(--ink); border-radius: 9px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity var(--transition), transform var(--transition); }
.toast.is-visible { opacity: 1; transform: none; }

.project-view { padding-top: 12px; }
.back-link {
  min-height: 44px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: color var(--transition);
}
.back-link:hover { color: var(--violet-dark); }
.back-link svg { width: 18px; height: 18px; }
.project-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}
.project-hero > div { max-width: 850px; }
.project-hero h1 { margin-bottom: 7px; }
.project-hero h1:focus { outline: none; }
.project-hero .lead { margin-top: 17px; }
.project-url { color: var(--violet-dark); font-size: 13px; overflow-wrap: anywhere; }
.project-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 32px; }
.project-metric { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.project-metric span, .project-metric strong { display: block; }
.project-metric span { margin-bottom: 13px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.project-metric strong { font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.project-metric strong small { color: var(--muted); font-size: 12px; }
.project-section { padding: 28px 0; }
.project-issue-row { grid-template-columns: 100px 150px minmax(280px, 1fr); }
.project-issue-row .issue-copy small { display: block; margin-top: 8px; color: var(--ink-soft); line-height: 1.45; }
.project-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 4px 0; }
.project-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.project-panel h2 { margin-bottom: 20px; font-size: 25px; }
.fact-list { margin: 0; }
.fact-list > div { display: grid; grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1.3fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fact-list > div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.fact-list dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.project-panel.project-section { margin-top: 28px; }

.login-page { min-height: 100vh; min-height: 100dvh; background: var(--navy); }
.login-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr); }
.login-context { position: relative; overflow: hidden; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 5vw, 72px); color: white; background: var(--navy); }
.login-context::after { content: ""; position: absolute; right: -170px; bottom: -170px; width: 460px; height: 460px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; box-shadow: 0 0 0 68px rgba(80, 70, 229, 0.09), 0 0 0 136px rgba(15, 159, 133, 0.05); pointer-events: none; }
.login-brand { position: relative; z-index: 1; }
.login-copy { position: relative; z-index: 1; max-width: 590px; margin: clamp(52px, 10vh, 110px) 0; }
.login-copy .eyebrow { color: #8d86ff; }
.login-copy h1 { color: white; font-size: clamp(42px, 5.2vw, 74px); }
.login-copy > p:last-child { max-width: 570px; margin-bottom: 0; color: #aeb9ca; font-size: 17px; line-height: 1.65; }
.privacy-note { position: relative; z-index: 1; max-width: 430px; display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); }
.privacy-note svg { flex: none; color: #2dd4b4; }
.privacy-note strong, .privacy-note small { display: block; }
.privacy-note strong { color: white; font-size: 13px; }
.privacy-note small { margin-top: 3px; color: #9eabc0; font-size: 12px; line-height: 1.45; }
.login-panel { min-height: 100%; display: grid; place-items: center; padding: 36px; background: #f7f9fb; }
.login-form-wrap { width: min(440px, 100%); padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1); }
.login-form-wrap h2 { font-size: clamp(28px, 3vw, 38px); }
.form-intro { margin: 10px 0 28px; color: var(--muted); line-height: 1.55; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 750; }
.field input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #bec9d6; border-radius: 8px; color: var(--ink); background: white; font-size: 16px; transition: border-color var(--transition), box-shadow var(--transition); }
.field input:hover { border-color: #94a3b8; }
.field input:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 3px rgba(80, 70, 229, 0.15); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(201, 42, 59, 0.12); }
.password-control { position: relative; }
.password-control input { padding-right: 82px; }
.password-control button { position: absolute; top: 2px; right: 2px; min-width: 76px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; color: var(--violet-dark); background: #f0efff; font-size: 12px; font-weight: 750; }
.password-control button:hover { background: #e5e2ff; }
.form-error { min-height: 22px; margin: -4px 0 12px; color: var(--danger); font-size: 13px; line-height: 1.45; }
.login-submit { width: 100%; min-height: 50px; }
.login-footnote { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }

@media (max-width: 1180px) {
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .critical-card { grid-template-columns: 140px minmax(260px, 1fr) auto; }
  .issue-row { grid-template-columns: 90px 130px minmax(260px, 1fr); }
  .issue-category { display: none; }
  .project-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-context { min-height: auto; padding: 28px clamp(22px, 6vw, 52px); }
  .login-copy { margin: 58px 0; }
  .login-copy h1 { max-width: 680px; font-size: clamp(38px, 8vw, 64px); }
  .login-panel { padding: 42px 20px; }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 18px 16px; }
  .sidebar .brand { margin-bottom: 18px; }
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-link { min-height: 48px; justify-content: center; gap: 7px; padding: 0 8px; font-size: 12px; }
  .nav-link.is-active { box-shadow: inset 0 -3px var(--mint); }
  .nav-link svg { width: 17px; height: 17px; }
  .sidebar-footer { margin-top: 14px; grid-template-columns: 1fr auto; align-items: center; }
  .logout-button { padding: 0 10px; }
  main#conteudo { padding: 32px 16px 64px; }
  .topbar, .section-heading { align-items: flex-start; flex-direction: column; }
  .topbar { margin-bottom: 18px; }
  .topbar .primary-button { width: 100%; }
  .section-heading > p { max-width: none; text-align: left; }
  .critical-card { grid-template-columns: 1fr; gap: 12px; }
  .critical-status { display: flex; align-items: center; }
  .text-button { width: max-content; }
  .site-grid { grid-template-columns: 1fr; }
  .filter-group { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .filter { min-width: 0; padding: 0 5px; font-size: 11px; }
  .issue-row { grid-template-columns: auto 1fr; gap: 9px 12px; align-items: start; }
  .issue-copy { grid-column: 1 / -1; }
  .detail-summary { grid-template-columns: repeat(2, 1fr); }
  .dialog-header, #dialog-content { padding-left: 18px; padding-right: 18px; }
  .project-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
  .project-hero .primary-button { width: 100%; }
  .project-issue-row { grid-template-columns: auto 1fr; }
  .project-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 112px; }
  .sidebar-note { display: none; }
  .sidebar-footer { display: block; }
  .logout-button { width: 100%; margin-top: 8px; justify-content: center; }
  .nav-link { flex-direction: column; gap: 3px; padding: 6px 2px; }
  .site-actions { flex-direction: column; }
  .site-actions button { width: 100%; }
  .detail-summary { grid-template-columns: 1fr; }
  .login-context { padding: 24px 20px; }
  .login-copy { margin: 48px 0; }
  .login-copy h1 { font-size: 39px; }
  .login-panel { padding: 28px 14px; }
  .login-form-wrap { padding: 24px 19px; }
  .project-metrics { grid-template-columns: 1fr; }
  .project-metric { min-height: 94px; }
  .project-panel { padding: 19px; }
  .fact-list > div { grid-template-columns: 1fr; gap: 5px; }
  .fact-list dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* WebOps 1.5 monitoring and workflow */
.saved-view-bar { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(230px, 1fr) auto auto; align-items: end; gap: 10px; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.saved-view-bar label, .maintenance-planner label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.saved-view-bar input, .saved-view-bar select, .maintenance-planner input, .maintenance-planner select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: white; }
.maintenance-planner { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.maintenance-planner summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.maintenance-planner form { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(190px, .7fr)) minmax(220px, 1fr) auto; align-items: end; gap: 10px; margin-top: 16px; }
.maintenance-list { display: grid; gap: 8px; margin-top: 12px; }
.maintenance-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; background: var(--canvas); }
.maintenance-list strong, .maintenance-list small { display: block; }
.maintenance-list small { margin-top: 3px; color: var(--muted); }
.server-health-panel { margin-top: 22px; }
.server-health-grid, .pagespeed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.health-card, .pagespeed-card { padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.health-card.has-warning { border-left-color: var(--danger); }
.health-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.health-card h3, .pagespeed-card h3 { margin: 0 0 4px; font-size: 18px; }
.health-card small, .pagespeed-card small, .health-card p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.health-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 16px 0; }
.health-metrics div { padding: 10px; border-radius: 8px; background: var(--canvas); }
.health-metrics span, .health-metrics strong { display: block; }
.health-metrics span { min-height: 26px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.health-metrics strong { margin-top: 5px; font-size: 20px; }
.weekly-status { margin: -12px 0 24px; padding: 12px 15px; border-left: 4px solid var(--violet); color: var(--ink-soft); background: #f4f2ff; font-size: 12px; }
.pagespeed-grid { margin-bottom: 34px; }
.pagespeed-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }
.pagespeed-scores span { padding: 10px 6px; border-radius: 8px; color: var(--muted); background: var(--canvas); font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }
.pagespeed-scores strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 21px; }
.calendar-filters { grid-template-columns: minmax(260px, 1.3fr) repeat(2, minmax(180px, .55fr)); }
.calendar-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.calendar-summary article { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.calendar-summary strong, .calendar-summary span { display: block; }
.calendar-summary strong { font-size: 23px; }
.calendar-summary span { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.calendar-table { min-width: 820px; }
.calendar-table td strong, .calendar-table td small { display: block; }
.calendar-table td small { margin-top: 4px; color: var(--muted); }

@media (max-width: 1180px) {
  .saved-view-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maintenance-planner form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-health-grid, .pagespeed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .saved-view-bar, .maintenance-planner form, .server-health-grid, .pagespeed-grid, .calendar-filters, .calendar-summary { grid-template-columns: 1fr; }
}

/* WebOps 1.6 incident correlation and monitor health */
.monitor-health-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.monitor-health-card { display: grid; gap: 12px; min-height: 128px; padding: 15px; border: 1px solid var(--line); border-top: 4px solid var(--mint); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.monitor-health-card > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.monitor-health-card span { color: var(--ink); font-size: 11px; font-weight: 800; }
.monitor-health-card strong { color: var(--mint); font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.monitor-health-card small { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.monitor-health-warning { border-top-color: var(--danger); }
.monitor-health-warning strong { color: var(--danger); }
.monitor-health-danger { border-top-color: var(--danger); }
.monitor-health-danger strong { color: var(--danger); }
.monitor-health-neutral { border-top-color: var(--violet); }
.monitor-health-neutral strong { color: var(--violet); }
.monitor-overall-healthy { color: var(--mint); }
.monitor-overall-running { color: var(--violet); }
.monitor-overall-attention { color: var(--danger); }
.server-incident-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.server-incident-group { display: grid; gap: 14px; padding: 17px; border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.server-incident-group.is-correlated { border-left-color: var(--danger); background: linear-gradient(135deg, #fff 75%, #fff3f2); }
.server-incident-group h3 { margin: 7px 0 4px; font-size: 17px; }
.server-incident-group p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.server-group-domains { display: flex; flex-wrap: wrap; gap: 5px; }
.server-group-domains span { padding: 5px 7px; border-radius: 999px; color: var(--ink-soft); background: var(--canvas); font-size: 9px; font-weight: 700; }
.server-incident-group .text-button { justify-self: start; min-height: 44px; }

@media (max-width: 1180px) {
  .monitor-health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .server-incident-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .monitor-health-grid, .server-incident-groups { grid-template-columns: 1fr; }
}
.connector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.connector-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 1.15rem;
}

.connector-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.connector-heading h3 { margin: 0; font-size: 1rem; }
.connector-card > p { color: var(--muted); font-size: .82rem; margin: .55rem 0 1rem; }
.connector-status { border-radius: 999px; background: var(--canvas); padding: .3rem .55rem; font-size: .72rem; white-space: nowrap; }
.connector-verified .connector-status { color: var(--mint); }
.connector-failed .connector-status, .connector-warning .connector-status { color: var(--danger); }
.connector-approval_required .connector-status, .connector-stale .connector-status { color: var(--warning); }
.connector-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.connector-card li { display: grid; grid-template-columns: 1fr auto; gap: .25rem .6rem; border-top: 1px solid var(--line); padding-top: .65rem; font-size: .82rem; }
.connector-card li strong { font-size: .72rem; }
.connector-card li small { grid-column: 1 / -1; color: var(--muted); line-height: 1.45; }
.connector-run { margin-top: 1rem; width: 100%; }

.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.server-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.server-card.has-warning { border-color: rgba(201, 42, 59, 0.35); }
.server-card-heading, .server-card-footer, .inventory-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.server-card-heading h3 { margin: 3px 0; font-size: 20px; }
.server-card-heading small, .server-card-footer, .inventory-heading p { color: var(--muted); font-size: 12px; }
.server-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }
.server-stats div { padding: 11px 8px; border-radius: 9px; background: var(--canvas); text-align: center; }
.server-stats strong, .server-stats span { display: block; }
.server-stats strong { font-size: 20px; }
.server-stats span { margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.server-card-footer { align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.inventory-panel { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.inventory-heading { align-items: center; margin-bottom: 18px; }
.inventory-heading h3 { margin: 0 0 4px; font-size: 20px; }
.inventory-heading p { margin: 0; }
.inventory-heading > span { color: var(--violet-dark); font-size: 12px; font-weight: 750; }
.inventory-filters { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(150px, 1fr)); gap: 10px; margin-bottom: 17px; }
.inventory-filters label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.inventory-filters input, .inventory-filters select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid #bec9d6; border-radius: 8px; color: var(--ink); background: white; }
.inventory-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.inventory-table th, .inventory-table td { padding: 13px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.inventory-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.inventory-table td { font-size: 12px; }
.inventory-table td strong, .inventory-table td small { display: block; }
.inventory-table td small { margin-top: 4px; color: var(--muted); }
.inventory-status { display: inline-block; padding: 5px 8px; border-radius: 999px; color: var(--muted); background: var(--canvas); font-size: 10px; font-weight: 750; }
.inventory-status.status-online { color: #087a67; background: #e9fbf6; }
.inventory-status.status-warning { color: #8a5a00; background: #fff7dc; }
.inventory-status.status-offline, .inventory-status.status-suspended { color: var(--danger); background: #fff0f2; }
.health-list { display: grid; gap: 12px; }
.health-list article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px 12px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.health-list article strong { font-size: 14px; }
.health-list article a, .health-list article small { grid-column: 2; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.health-list article a { color: var(--violet-dark); }
.technical-value { max-width: 420px; font-family: Consolas, monospace; font-size: 11px !important; overflow-wrap: anywhere; }
.account-table { min-width: 800px; }
.account-table td strong { display: block; }
.profile-errors { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.profile-errors li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px; border-radius: 9px; background: #fff7dc; }
.profile-errors span { color: var(--ink-soft); }
.profile-freshness { margin: 24px 0 40px; color: var(--muted); font-size: 12px; text-align: right; }
.account-loading { margin-top: 24px; }

@media (max-width: 1180px) {
  .inventory-filters { grid-template-columns: repeat(2, 1fr); }
  .inventory-filters label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .server-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .inventory-filters { grid-template-columns: 1fr; }
  .inventory-filters label:first-child { grid-column: auto; }
  .inventory-heading { align-items: flex-start; flex-direction: column; }
}

/* WebOps 1.8 — direção visual aprovada */
:root {
  --canvas: #f3f5f7;
  --surface-muted: #f8f9fb;
  --line: #d9e0e8;
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --navy: #071322;
  --navy-soft: #162334;
  --violet: #5145e5;
  --violet-dark: #4036c9;
  --mint: #078b72;
  --danger: #d92d3f;
  --warning: #d98700;
  --radius: 0.625rem;
  --shadow-sm: 0 0.125rem 0.5rem rgba(16, 24, 40, .035);
}

html { font-size: 100%; }
body.dashboard-page { background: var(--canvas); color: var(--ink); font-size: .875rem; line-height: 1.5; }
.dashboard-page .app-shell { grid-template-columns: 13.5rem minmax(0, 1fr); }
.dashboard-page .sidebar { padding: 1.5rem .875rem 1.125rem; }
.dashboard-page .sidebar .brand { margin-bottom: 1.75rem; }
.dashboard-page .nav-link { min-height: 2.75rem; padding: 0 .75rem; font-size: .875rem; }
.dashboard-page main#conteudo { width: min(100%, 105rem); padding: 1.5rem clamp(1.25rem, 2.2vw, 2rem) 4rem; }

.dashboard-title h1 { margin: 0 0 .25rem; font-size: 2rem; line-height: 1.15; letter-spacing: -.035em; }
.dashboard-title p, .dashboard-freshness { font-size: .75rem; line-height: 1.45; }
.dashboard-header { grid-template-columns: minmax(20rem, 1fr) minmax(38rem, 1.4fr); align-items: center; gap: .375rem 1.25rem; margin-bottom: .875rem; }
.dashboard-controls { grid-template-columns: minmax(15rem, 1fr) minmax(9.5rem, auto) 6.5rem 2.75rem 2.75rem; gap: .5rem; }
.dashboard-controls input, .dashboard-controls select { min-height: 2.75rem; padding: 0 .75rem; border-radius: .5rem; background: #fff; font-size: .875rem; }
.dashboard-controls select { padding-right: 2rem; }
.dashboard-freshness { grid-column: 2; margin-top: -.125rem; text-align: right; font-variant-numeric: tabular-nums; }
.dashboard-alert-button, .dashboard-refresh { position: relative; width: 2.75rem; min-width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: .5rem; color: var(--ink-soft); background: #fff; text-decoration: none; }
.dashboard-alert-button svg, .dashboard-refresh svg { width: 1.25rem; height: 1.25rem; }
.dashboard-refresh { color: #fff; border-color: var(--violet); background: var(--violet); box-shadow: 0 .4rem 1rem rgba(81, 69, 229, .22); }
.dashboard-alert-button span { position: absolute; top: -.35rem; right: -.35rem; min-width: 1.15rem; height: 1.15rem; display: grid; place-items: center; padding: 0 .2rem; border: 2px solid var(--canvas); border-radius: 999px; color: #fff; background: var(--danger); font-size: .625rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.dashboard-kpis .metric-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .75rem; }
.dashboard-kpis .metric { min-height: 7rem; padding: .875rem 1rem; border-radius: .625rem; background: #fff; }
.dashboard-kpis .metric:nth-child(even) { background: var(--surface-muted); }
.dashboard-kpis .metric::before { width: 1.5rem; height: .1875rem; margin-bottom: .6rem; }
.dashboard-kpis .metric span { min-height: auto; color: var(--muted); font-size: .75rem; font-weight: 700; }
.dashboard-kpis .metric strong { margin: .25rem 0 .125rem; font-size: 1.875rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dashboard-kpis .metric small { color: var(--ink-soft); font-size: .75rem; line-height: 1.35; }

.dashboard-priority-grid { grid-template-columns: minmax(0, 1.65fr) minmax(20rem, .8fr); gap: .75rem; }
.dashboard-panel, .dashboard-chart-grid .chart-card { padding: 1rem; border: 1px solid var(--line); border-radius: .625rem; background: #fff; box-shadow: var(--shadow-sm); }
.surface-muted { background: var(--surface-muted) !important; }
.dashboard-action-panel { border-left: .25rem solid var(--danger); }
.compact-heading { align-items: center; gap: 1rem; margin-bottom: .75rem; }
.compact-heading h2 { font-size: 1.25rem; line-height: 1.25; }
.compact-heading p, .card-heading p { margin-top: .2rem; font-size: .75rem; }
.text-link { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: .75rem; white-space: nowrap; }

.dashboard-critical-list { border-color: var(--line); border-radius: .5rem; }
.dashboard-critical-row { grid-template-columns: minmax(11rem, .95fr) minmax(14rem, 1.35fr) minmax(7.5rem, .6fr) 7rem; gap: .75rem; min-height: 3.75rem; padding: .55rem .75rem; }
.dashboard-critical-row:nth-child(even) { background: var(--surface-muted); }
.critical-domain strong { font-size: .875rem; }
.critical-domain small, .critical-context small, .dashboard-critical-row time { margin-top: .15rem; font-size: .75rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.critical-context span { font-size: .75rem; }
.dashboard-critical-row .text-button { min-width: 6.75rem; min-height: 2.75rem; padding: 0 .625rem; font-size: .875rem; }

.dashboard-health-panel .monitoring-card { min-height: 3.25rem; grid-template-columns: minmax(9rem, 1fr) auto; padding: .5rem 0 .5rem .75rem; }
.dashboard-health-panel .monitoring-card:nth-child(even) { background: var(--surface-muted); }
.dashboard-health-panel .monitoring-card span, .dashboard-health-panel .monitoring-card small { font-size: .75rem; }
.dashboard-health-panel .monitoring-card strong { font-size: .875rem; font-variant-numeric: tabular-nums; }
.monitor-health-details summary { min-height: 2.75rem; font-size: .75rem; }
.read-only-badge { font-size: .75rem; }

.dashboard-trends, .dashboard-lower-grid, .dashboard-secondary-grid, .dashboard-technical-summary { padding-top: .75rem; }
.dashboard-chart-grid { grid-template-columns: minmax(0, 1.25fr) minmax(22rem, .8fr); gap: .75rem; }
.dashboard-chart-grid .chart-card { min-height: 13.25rem; }
.card-heading h3 { margin-bottom: 0; font-size: 1rem; }
.history-summary { margin: .875rem 0; }
.history-summary strong { font-size: 1.875rem; font-variant-numeric: tabular-nums; }
.history-summary span { font-size: .75rem; }
.insufficient-history { min-height: 8rem; display: grid; align-content: center; justify-items: start; gap: .25rem; padding: 1rem; border: 1px dashed #c6d0dc; border-radius: .5rem; background: #fff; }
.insufficient-history span { padding: .25rem .5rem; border-radius: 999px; color: var(--ink-soft); background: #e9eef4; font-size: .75rem; font-weight: 750; }
.insufficient-history strong { font-size: 1rem; }
.insufficient-history p, .insufficient-history small { margin: 0; color: var(--muted); font-size: .75rem; }
.incident-bars { display: grid; gap: .875rem; margin-top: 1.25rem; }
.incident-bar-row { display: grid; gap: .375rem; }
.incident-bar-row > div:first-child { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; }
.incident-bar-row strong { font-variant-numeric: tabular-nums; }
.incident-bar-row .bar-track { height: .625rem; }

.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(18rem, .75fr); gap: .75rem; }
.dashboard-operational { min-width: 0; padding: 1rem; }
.dashboard-site-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.dashboard-site-tabs { display: flex; gap: .25rem; padding: .25rem; border-radius: .5rem; background: #edf1f5; overflow-x: auto; }
.dashboard-site-tabs button { min-height: 2.75rem; padding: 0 .875rem; border: 0; border-radius: .375rem; color: var(--muted); background: transparent; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.dashboard-site-tabs button.is-active { color: var(--ink); background: #fff; box-shadow: 0 .0625rem .25rem rgba(16, 24, 40, .09); }
.dashboard-operational .table-panel { border: 1px solid var(--line); border-radius: .5rem; }
.dashboard-sites-table { min-width: 62rem; }
.dashboard-sites-table th { padding: .55rem .75rem; background: var(--surface-muted); font-size: .75rem; }
.dashboard-sites-table td { padding: .65rem .75rem; font-size: .875rem; }
.dashboard-sites-table tbody tr:nth-child(even) { background: var(--surface-muted); }
.dashboard-sites-table td small { margin-top: .125rem; font-size: .75rem; }
.dashboard-sites-table .text-button { min-height: 2.75rem; font-size: .875rem; }
.sort-button { min-height: 2.75rem; font-size: .75rem; }
.dashboard-table-footer { min-height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.dashboard-table-footer .pagination { margin: 0; }
.dashboard-activity-panel { min-width: 0; }
.recent-activity article { min-height: 3.75rem; padding: .625rem 0; }
.recent-activity strong { font-size: .875rem; }
.recent-activity small { font-size: .75rem; font-variant-numeric: tabular-nums; }

.dashboard-secondary-grid { grid-template-columns: 1fr; }
.dashboard-secondary-grid .alert-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.dashboard-secondary-grid .alert-card { min-height: 7rem; padding: .875rem; background: var(--surface-muted); }
.dashboard-secondary-grid .alert-card:nth-child(even) { background: #fff; }
.dashboard-secondary-grid .alert-card span, .dashboard-secondary-grid .alert-card small { font-size: .75rem; }
.dashboard-secondary-grid .alert-card strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.dashboard-technical-summary > summary { min-height: 2.75rem; font-size: .75rem; }
.dashboard-mobile-filters, .mobile-bottom-navigation { display: none; }

@media (max-width: 80rem) {
  .dashboard-header { grid-template-columns: 1fr; }
  .dashboard-freshness { grid-column: 1; text-align: right; }
  .dashboard-kpis .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-priority-grid { grid-template-columns: minmax(0, 1.5fr) minmax(19rem, .85fr); }
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .dashboard-activity-panel { background: var(--surface-muted); }
}

@media (max-width: 53.75rem) {
  .dashboard-page .mobile-app-header { position: sticky; top: 0; z-index: 40; min-height: 4rem; display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; gap: .75rem; padding: .625rem .875rem; color: var(--ink); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); box-shadow: 0 .25rem 1rem rgba(16,24,40,.06); backdrop-filter: blur(.75rem); }
  .mobile-app-header > strong { font-size: 1rem; }
  .mobile-app-header > a, .mobile-menu-button { width: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; padding: 0; border: 0; color: var(--ink-soft); background: transparent; }
  .mobile-app-header > a { justify-self: end; }
  .mobile-app-header svg, .mobile-bottom-navigation svg { width: 1.25rem; height: 1.25rem; }
  .dashboard-page main#conteudo { padding: 1rem .875rem 7.5rem; }
  .dashboard-page .sidebar { width: min(20rem, 88vw); }
  .dashboard-title { display: none; }
  .dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
  .dashboard-controls { display: flex; margin-left: auto; }
  .dashboard-controls > label, .dashboard-alert-button { display: none; }
  .dashboard-refresh { display: inline-grid; }
  .dashboard-freshness { order: -1; margin-right: auto; text-align: left; }
  .dashboard-kpis .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .dashboard-kpis .metric { min-height: 7rem; padding: .875rem; }
  .dashboard-kpis .metric span, .dashboard-kpis .metric small { font-size: .75rem; }
  .dashboard-kpis .metric strong { font-size: 1.75rem; }
  .dashboard-priority-grid, .dashboard-chart-grid, .dashboard-lower-grid { grid-template-columns: 1fr; }
  .dashboard-priority-grid { gap: .75rem; }
  .dashboard-panel, .dashboard-chart-grid .chart-card { padding: .875rem; }
  .compact-heading h2 { font-size: 1.125rem; }
  .dashboard-critical-row { grid-template-columns: 1fr auto; gap: .25rem .75rem; min-height: 5.5rem; padding: .75rem; }
  .critical-domain, .critical-context, .dashboard-critical-row time { grid-column: 1; }
  .critical-context span { display: none; }
  .dashboard-critical-row .text-button { grid-column: 2; grid-row: 1 / span 3; min-width: 6.75rem; align-self: center; }
  .dashboard-health-panel .monitoring-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
  .dashboard-health-panel .monitoring-card { min-width: 0; display: grid; grid-template-columns: 1fr; justify-items: center; align-content: start; padding: .75rem .25rem; border: 0; border-right: 1px solid var(--line); text-align: center; }
  .dashboard-health-panel .monitoring-card:nth-child(n+5) { display: none; }
  .dashboard-health-panel .monitoring-card strong, .dashboard-health-panel .monitoring-card span, .dashboard-health-panel .monitoring-card small { grid-column: 1; grid-row: auto; text-align: center; }
  .dashboard-health-panel .monitoring-card span { min-height: 2.25rem; overflow-wrap: anywhere; }
  .dashboard-health-panel .monitoring-card small { display: none; }
  .dashboard-chart-grid .chart-card { min-height: auto; }
  .dashboard-site-toolbar { align-items: stretch; flex-direction: column; }
  .dashboard-site-toolbar > .text-link { display: none; }
  .dashboard-operational .table-scroll { overflow: visible; }
  .dashboard-sites-table { min-width: 0; }
  .dashboard-sites-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dashboard-sites-table, .dashboard-sites-table tbody, .dashboard-sites-table tr, .dashboard-sites-table td { display: block; width: 100%; }
  .dashboard-sites-table tbody { display: grid; gap: .625rem; }
  .dashboard-sites-table tr { padding: .75rem; border: 1px solid var(--line); border-left: .25rem solid var(--violet); border-radius: .5rem; background: #fff; }
  .dashboard-sites-table tr:nth-child(even) { background: var(--surface-muted); }
  .dashboard-sites-table td { display: grid; grid-template-columns: minmax(6rem, .42fr) minmax(0, 1fr); gap: .625rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
  .dashboard-sites-table td:last-child { border-bottom: 0; }
  .dashboard-sites-table td::before { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
  .dashboard-sites-table td:nth-child(1)::before { content: "Website"; }
  .dashboard-sites-table td:nth-child(2)::before { content: "Conta"; }
  .dashboard-sites-table td:nth-child(3)::before { content: "Estado"; }
  .dashboard-sites-table td:nth-child(4)::before { content: "HTTP"; }
  .dashboard-sites-table td:nth-child(5)::before { content: "Resposta"; }
  .dashboard-sites-table td:nth-child(6)::before { content: "Validação"; }
  .dashboard-sites-table td:nth-child(7)::before { content: "Ação"; }
  .dashboard-table-footer { align-items: flex-start; flex-direction: column; }
  .dashboard-secondary-grid .alert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-mobile-filters { display: block; margin-top: .75rem; border: 1px solid var(--violet); border-radius: .5rem; background: #fff; }
  .dashboard-mobile-filters summary { min-height: 2.75rem; display: flex; align-items: center; justify-content: center; color: var(--violet-dark); font-size: .875rem; font-weight: 800; cursor: pointer; }
  .dashboard-mobile-filters > div { display: grid; gap: .75rem; padding: .875rem; border-top: 1px solid var(--line); }
  .dashboard-mobile-filters label { display: grid; gap: .3rem; color: var(--muted); font-size: .75rem; font-weight: 700; }
  .dashboard-mobile-filters input, .dashboard-mobile-filters select { min-height: 2.75rem; width: 100%; padding: 0 .75rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; font-size: .875rem; }
  .mobile-bottom-navigation { position: fixed; inset: auto 0 0; z-index: 45; min-height: 4.5rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: .35rem max(.35rem, env(safe-area-inset-right)) max(.35rem, env(safe-area-inset-bottom)) max(.35rem, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -.35rem 1.25rem rgba(16,24,40,.08); backdrop-filter: blur(.75rem); }
  .mobile-bottom-navigation a, .mobile-bottom-navigation button { min-width: 0; min-height: 3.5rem; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .2rem; padding: .25rem; border: 0; border-radius: .4rem; color: var(--muted); background: transparent; text-decoration: none; font-size: .7rem; font-weight: 700; }
  .mobile-bottom-navigation .is-active { color: var(--violet); background: #f2f0ff; }
}

@media (max-width: 35rem) {
  .dashboard-page main#conteudo { padding-inline: .75rem; }
  .dashboard-freshness { max-width: 14rem; font-size: .75rem; }
  .dashboard-kpis .metric { min-height: 6.75rem; }
  .dashboard-critical-row .text-button { min-width: 6.4rem; padding-inline: .35rem; }
  .dashboard-health-panel .monitoring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-health-panel .monitoring-card { border-bottom: 1px solid var(--line); }
  .dashboard-site-tabs button { padding-inline: .7rem; }
  .dashboard-secondary-grid .alert-grid { grid-template-columns: 1fr; }
}

/* WebOps 1.13 data provenance and resilient mobile layout */
.dashboard-data-status { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .625rem 1rem; margin: 0 0 .75rem; padding: .75rem .875rem; border: 1px solid var(--line); border-radius: .625rem; background: var(--surface-muted); }
.dashboard-data-status > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem .625rem; }
.dashboard-data-status small { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.snapshot-id, .data-state { display: inline-flex; min-height: 1.625rem; align-items: center; padding: .125rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.snapshot-id { color: var(--violet-dark); background: #eeecff; }
.snapshot-coherent { color: #087663; font-size: .75rem; }
.snapshot-warning { color: #9a6100; font-size: .75rem; }
.data-source-list { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .3rem; }
.data-state { color: var(--ink-soft); background: white; border: 1px solid var(--line); }
.data-state-verified { color: #087663; border-color: #b7e5db; background: #ecfbf7; }
.data-state-stale, .data-state-permission_denied { color: #8a5a00; border-color: #f0d98b; background: #fff8df; }
.data-state-missing, .data-state-not_configured, .data-state-invalid { color: #596579; background: #f2f5f8; }
.data-state-failed { color: #b42334; border-color: #f2c2c8; background: #fff0f2; }
.dashboard-data-status details { grid-column: 1 / -1; }
.dashboard-data-status summary { min-height: 2.75rem; display: flex; align-items: center; color: var(--violet-dark); font-size: .875rem; font-weight: 750; cursor: pointer; }
.dashboard-data-status ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.dashboard-data-status li { display: grid; grid-template-columns: minmax(10rem, .35fr) 1fr; gap: .75rem; padding: .625rem; border-radius: .5rem; background: white; font-size: .875rem; }
.dashboard-data-status li span { color: var(--muted); }

@media (max-width: 55rem) {
  .dashboard-data-status { grid-template-columns: 1fr; }
  .data-source-list { justify-content: flex-start; }
  .dashboard-data-status li { grid-template-columns: 1fr; gap: .25rem; }
}

@media (max-width: 35rem) {
  main#conteudo { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
  .dashboard-data-status { padding: .75rem; }
  .data-source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .data-state { min-width: 0; white-space: normal; overflow-wrap: normal; }
  .mobile-bottom-navigation { padding-bottom: env(safe-area-inset-bottom); }
  .dashboard-mobile-filters { position: sticky; bottom: calc(4.5rem + env(safe-area-inset-bottom)); z-index: 8; box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .12); }
}

/* WebOps 1.0 */
.app-page[hidden], #account-view[hidden] { display: none !important; }
.app-page { min-width: 0; }
.page-header, .page-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.page-header h1, .page-hero h1 { margin: 4px 0 10px; }
.page-header .lead, .page-hero .lead { max-width: 760px; margin: 0; }
.section-note { margin: -18px 0 18px; color: var(--muted); font-size: 12px; }
.inline-control { min-width: 190px; }
.inline-control label, .filter-panel label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.inline-control select, .filter-panel input, .filter-panel select, .subsection-heading input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #bec9d6; border-radius: 8px; color: var(--ink); background: white; font: inherit; }
.inline-control select:focus, .filter-panel input:focus, .filter-panel select:focus, .subsection-heading input:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 3px rgba(80, 70, 229, .14); }
.filter-panel { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.filter-panel input:hover, .filter-panel select:hover, .inline-control select:hover { border-color: #94a3b8; }
.filter-panel.compact-filters { grid-template-columns: minmax(260px, 1fr) minmax(180px, .45fr); }
.results-heading { display: flex; justify-content: space-between; gap: 18px; margin: 20px 0 12px; color: var(--muted); font-size: 12px; }
.results-heading strong { color: var(--ink); font-size: 14px; }
.problem-list { display: grid; gap: 12px; }
.problem-list .critical-card { margin: 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 8px; }
.pagination button { min-width: 44px; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: white; font-weight: 750; cursor: pointer; }
.pagination button:hover:not(:disabled), .pagination button.is-active { border-color: var(--violet); color: white; background: var(--violet); }
.pagination button:disabled { cursor: not-allowed; opacity: .42; }
.table-panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.table-panel .inventory-table th { position: sticky; top: 0; z-index: 2; background: #f8fafc; box-shadow: inset 0 -1px 0 var(--line); }
.table-panel .inventory-table tbody tr { transition: background var(--transition); }
.table-panel .inventory-table tbody tr:hover { background: #f8fafc; }
.table-panel .inventory-table th:first-child, .table-panel .inventory-table td:first-child { padding-left: 18px; }
.table-panel .inventory-table th:last-child, .table-panel .inventory-table td:last-child { padding-right: 18px; }
.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 40px; }
.chart-card { min-width: 0; min-height: 300px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.chart-card:hover { border-color: #c6ced9; box-shadow: 0 12px 32px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.chart-card.chart-wide { grid-column: 1 / -1; min-height: 240px; }
.card-heading h3 { margin: 3px 0 20px; font-size: 19px; }
.donut-layout { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 20px; }
.donut { width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; }
.donut::before { content: ""; grid-area: 1 / 1; width: 82px; height: 82px; border-radius: 50%; background: white; }
.donut span { z-index: 1; grid-area: 1 / 1; max-width: 76px; color: var(--ink); font-size: 11px; font-weight: 750; line-height: 1.3; text-align: center; }
.donut span strong, .donut span small { display: block; }
.chart-legend { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.chart-legend li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.chart-legend strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-chart { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, .8fr) minmax(100px, 1.2fr) 34px; align-items: center; gap: 9px; font-size: 11px; }
.bar-row > span { color: var(--ink-soft); overflow-wrap: anywhere; }
.bar-row > strong { font-variant-numeric: tabular-nums; text-align: right; }
.bar-track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--canvas); }
.bar-track i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--violet); }
.bar-track i.bar-success { background: var(--mint); }
.bar-track i.bar-danger { background: var(--danger); }
.bar-track i.bar-warning { background: var(--warning); }
.bar-track i.bar-muted { background: #94a3b8; }
.bar-track i.bar-primary { background: var(--violet); }
.chart-highlight { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: -3px 0 16px; padding: 14px 15px; border-radius: 10px; background: var(--mint-soft); }
.chart-highlight span { color: #087a67; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.chart-highlight strong { color: #087a67; font-size: 26px; font-variant-numeric: tabular-nums; }
.status-stack { display: flex; height: 12px; margin-bottom: 18px; overflow: hidden; border-radius: 999px; background: var(--canvas); }
.status-stack span { min-width: 2px; }
.status-stack .bar-success { background: var(--mint); }
.status-stack .bar-danger { background: var(--danger); }
.status-stack .bar-warning { background: var(--warning); }
.status-stack .bar-muted { background: #94a3b8; }
.history-summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.history-summary strong { color: var(--mint); font-size: 28px; font-variant-numeric: tabular-nums; }
.history-summary span { color: var(--muted); font-size: 12px; }
.alert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 36px; }
.alert-card { min-height: 135px; padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--mint); border-radius: var(--radius); background: white; }
.alert-card span, .alert-card strong, .alert-card small { display: block; }
.alert-card span { color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.alert-card strong { margin: 13px 0 7px; font-size: 30px; font-variant-numeric: tabular-nums; }
.alert-card small { color: var(--muted); line-height: 1.4; }
.alert-card.alert-danger { border-top-color: var(--danger); }
.alert-card.alert-warning { border-top-color: var(--warning); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--violet-dark); font-size: 13px; font-weight: 750; }
.monitoring-section { margin-top: 34px; }
.read-only-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; color: #087a67; background: #e9fbf6; font-size: 11px; font-weight: 800; }
.monitoring-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 36px; }
.monitoring-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 10px; background: white; box-shadow: var(--shadow-sm); }
.monitoring-card span, .monitoring-card strong, .monitoring-card small { display: block; }
.monitoring-card span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.monitoring-card strong { margin: 9px 0 5px; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.monitoring-card small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.monitoring-card.monitoring-success { border-left-color: var(--mint); }
.monitoring-card.monitoring-warning { border-left-color: var(--warning); }
.account-tabs { position: sticky; top: 14px; z-index: 4; display: flex; gap: 6px; margin: -16px 0 24px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.account-tabs button { min-height: 42px; flex: none; padding: 0 15px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 750; cursor: pointer; }
.account-tabs button:hover { color: var(--ink); background: var(--canvas); }
.account-tabs button.is-active { color: white; background: var(--ink); }
[data-account-panel][hidden] { display: none !important; }
.loading-grid { display: grid; gap: 12px; }
.loading-grid.loading-grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.skeleton-card { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.skeleton-line { display: block; height: 11px; margin-bottom: 11px; border-radius: 999px; background: linear-gradient(90deg, #e7ecf2 25%, #f7f9fb 50%, #e7ecf2 75%); background-size: 220% 100%; animation: skeleton-loading 1.4s ease-in-out infinite; }
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.is-short { width: 46%; }
.skeleton-line.is-medium { width: 72%; }
@keyframes skeleton-loading { to { background-position-x: -220%; } }
.inventory-status.status-warning { color: #8a5a00; background: #fff7dc; }
.inventory-status.status-not_audited { color: var(--muted); background: var(--canvas); }
.wordpress-panel { margin-top: 28px; }
.wordpress-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wordpress-summary article { padding: 16px; border-radius: 10px; background: var(--canvas); }
.wordpress-summary span, .wordpress-summary strong { display: block; }
.wordpress-summary span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.wordpress-summary strong { margin-top: 8px; font-size: 21px; }
.data-caveat { margin: 16px 0 22px; padding: 13px 15px; border-left: 4px solid var(--violet); color: var(--ink-soft); background: #f4f2ff; font-size: 12px; line-height: 1.55; }
.wordpress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.wordpress-grid > div { min-width: 0; }
.subsection-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.subsection-heading h3 { margin: 0; font-size: 17px; }
.subsection-heading label { width: min(210px, 46%); }
.wordpress-grid .page-table { min-width: 500px; }
.wordpress-grid td strong, .wordpress-grid td small { display: block; }
.wordpress-grid td small { margin-top: 3px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.incident-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.incident-summary .metric { min-height: 108px; }
.incident-summary .metric strong { margin-bottom: 0; }
.incident-view-tabs { margin: 0 0 1rem; }
.incident-view-tabs button span { min-width: 1.5rem; display: inline-grid; place-items: center; margin-left: .35rem; padding: .1rem .4rem; border-radius: 999px; color: var(--muted); background: rgba(15, 23, 42, .08); font-size: .75rem; font-variant-numeric: tabular-nums; }
.incident-view-tabs button.is-active span { color: white; background: rgba(255, 255, 255, .2); }
.incident-filters { grid-template-columns: minmax(280px, 1.5fr) minmax(180px, .55fr); }
.incident-list { display: grid; gap: 12px; }
.incident-card { display: grid; grid-template-columns: minmax(280px, 1.25fr) minmax(320px, 1fr) minmax(170px, .45fr); gap: 24px; padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--danger); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.incident-card.incident-acknowledged { border-left-color: var(--warning); }
.incident-card.incident-resolved { border-left-color: var(--mint); }
.incident-card.is-silenced { border-left-color: var(--violet); background: #fbfaff; }
.alert-history-panel { margin: 1.5rem 0 0; }
.alert-history-panel > summary { min-height: 4.5rem; margin: 0; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.alert-history-panel > summary::-webkit-details-marker { display: none; }
.alert-history-panel > summary::after { content: "Abrir arquivo"; color: var(--violet-dark); font-size: .75rem; font-weight: 800; }
.alert-history-panel[open] > summary::after { content: "Fechar arquivo"; }
.alert-history-panel > .alert-history-list { padding: 0 1.25rem 1.25rem; }
.alert-history-list { max-height: 45rem; overflow-y: auto; padding-right: .25rem; }
.alert-history-list .incident-card { grid-template-columns: minmax(17.5rem, 1.4fr) minmax(16rem, .8fr); }
.incident-main h3 { margin: 12px 0 5px; font-size: 21px; overflow-wrap: anywhere; }
.incident-main > strong { display: block; margin-bottom: 5px; }
.incident-main p { margin: 0 0 9px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.incident-main small, .incident-actions small { color: var(--muted); font-size: 11px; }
.incident-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.incident-state { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; border-radius: 999px; color: var(--ink-soft); background: var(--canvas); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.incident-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.incident-facts div { min-width: 0; padding: 10px 12px; border-radius: 8px; background: var(--canvas); }
.incident-facts dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.incident-facts dd { margin: 5px 0 0; color: var(--ink); font-size: 12px; font-weight: 700; }
.incident-evidence { margin-top: .625rem; border-top: 1px solid var(--line); }
.incident-evidence summary { min-height: 2.75rem; display: flex; align-items: center; color: var(--violet-dark); font-size: .75rem; font-weight: 800; cursor: pointer; }
.incident-evidence dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.incident-evidence dl div { padding: .5rem .625rem; border-radius: .5rem; background: var(--surface-muted); }
.incident-evidence dt { color: var(--muted); font-size: .75rem; font-weight: 750; }
.incident-evidence dd { margin: .2rem 0 0; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.incident-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.incident-actions .secondary-button, .incident-actions .text-button { width: 100%; }

@media (max-width: 1180px) {
  .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitoring-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .incident-card { grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr); }
  .incident-actions { grid-column: 1 / -1; align-items: center; flex-direction: row; flex-wrap: wrap; }
  .incident-actions .secondary-button, .incident-actions .text-button { width: auto; }
}

@media (max-width: 860px) {
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-header, .page-hero { flex-direction: column; }
  .page-header .primary-button, .page-header .secondary-button, .page-hero .primary-button { width: 100%; }
  .chart-grid, .wordpress-grid { grid-template-columns: 1fr; }
  .incident-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .incident-card { grid-template-columns: 1fr; }
  .alert-history-list { max-height: 32rem; }
  .alert-history-list .incident-card { grid-template-columns: 1fr; }
  .incident-actions { grid-column: auto; }
}

@media (max-width: 600px) {
  .sidebar nav { gap: 4px; }
  .nav-link { font-size: 10px; }
  .filter-panel, .filter-panel.compact-filters, .alert-grid, .wordpress-summary { grid-template-columns: 1fr; }
  .results-heading { flex-direction: column; gap: 5px; }
  .donut-layout { grid-template-columns: 1fr; justify-items: center; }
  .chart-card { min-height: auto; }
  .subsection-heading { align-items: stretch; flex-direction: column; }
  .subsection-heading label { width: 100%; }
  .monitoring-grid { grid-template-columns: 1fr; }
  .account-tabs { top: 6px; }
  .incident-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .incident-summary .metric { min-height: 8rem; padding: .875rem; }
  .incident-filters, .incident-facts { grid-template-columns: 1fr; }
  .incident-actions { align-items: stretch; flex-direction: column; }
  .incident-actions .secondary-button, .incident-actions .text-button { width: 100%; }
  .history-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* WebOps 1.1 operational organisation */
.dashboard-critical-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-height: none; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.dashboard-critical-list .critical-card { min-width: 0; grid-template-columns: minmax(128px, .52fr) minmax(0, 1fr); align-items: start; gap: 12px 16px; margin: 0; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--danger); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.dashboard-critical-list .critical-card > * { min-width: 0; }
.dashboard-critical-list .critical-status, .dashboard-critical-list .project-label { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.dashboard-critical-list .critical-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dashboard-critical-list .critical-card small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.dashboard-critical-list .critical-card button { grid-column: 2; justify-self: start; }
.dashboard-critical-list .list-footer { grid-column: 1 / -1; }
.alert-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.server-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mail-activity-panel { margin-top: 22px; }
.mail-summary, .email-capacity-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.mail-summary article, .email-capacity-summary article { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.mail-summary strong, .mail-summary span, .email-capacity-summary strong, .email-capacity-summary span { display: block; }
.mail-summary strong, .email-capacity-summary strong { color: var(--ink); font-size: 21px; font-variant-numeric: tabular-nums; }
.mail-summary span, .email-capacity-summary span { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.mail-filters { grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(160px, .55fr)); margin-bottom: 0; }
.mail-table { min-width: 890px; }
.mail-table td strong, .mail-table td small { display: block; }
.mail-table td small { margin-top: 3px; color: var(--muted); }
.mail-risk { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; color: #1f6359; background: #e7f8f3; font-size: 10px; font-weight: 800; }
.mail-risk.risk-warning { color: #805300; background: #fff3c5; }
.mail-risk.risk-high, .mail-risk.risk-critical { color: var(--danger); background: #fff0f2; }
.email-capacity-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.email-account-table { min-width: 860px; }
.usage-cell { min-width: 120px; }
.usage-cell > span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.usage-meter { height: 7px; overflow: hidden; border-radius: 999px; background: #e3e9f0; }
.usage-meter i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.usage-meter i.is-warning { background: var(--warning); }
.usage-meter i.is-critical { background: var(--danger); }
.file-scan-status { margin: -12px 0 18px; padding: 12px 15px; border-left: 4px solid var(--mint); color: var(--ink-soft); background: #eefaf7; font-size: 12px; }
.file-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.file-summary article { padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-sm); }
.file-summary strong, .file-summary span { display: block; }
.file-summary strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.file-summary span { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.file-filters { grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(160px, .55fr)); }
.file-table { min-width: 980px; }
.file-table td strong, .file-table td small { display: block; }
.file-table td small { margin-top: 4px; color: var(--muted); }
.file-path { max-width: 520px; font-family: Consolas, monospace; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .alert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mail-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loading-grid.loading-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .dashboard-critical-list { grid-template-columns: 1fr; }
  .mail-filters { grid-template-columns: 1fr 1fr; }
  .mail-filters label:first-child { grid-column: 1 / -1; }
  .file-filters { grid-template-columns: 1fr 1fr; }
  .file-filters label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .dashboard-critical-list .critical-card { grid-template-columns: 1fr; }
  .dashboard-critical-list .critical-card button { grid-column: 1; }
  .alert-grid, .mail-summary, .email-capacity-summary, .mail-filters { grid-template-columns: 1fr; }
  .mail-filters label:first-child { grid-column: auto; }
  .file-summary, .file-filters { grid-template-columns: 1fr; }
  .file-filters label:first-child { grid-column: auto; }
  .loading-grid.loading-grid-cards { grid-template-columns: 1fr; }
  .chart-highlight { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line { animation: none; background: #e7ecf2; }
  .chart-card:hover { transform: none; }
}

/* WebOps 1.7 balanced operational dashboard */
body { background: var(--canvas); }
.app-shell { grid-template-columns: 216px minmax(0, 1fr); }
.sidebar { padding: 24px 14px 18px; }
.sidebar .brand { margin-bottom: 28px; }
.sidebar .brand-mark { width: 36px; height: 36px; }
.nav-link { min-height: 42px; gap: 10px; padding: 0 10px; font-size: 13px; }
.sidebar-note { padding: 12px; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note small { font-size: 10px; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 3vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(22px, 2vw, 28px); }
.mobile-app-header, .sidebar-close { display: none; }
main#conteudo { width: min(1680px, 100%); padding: 22px clamp(22px, 2.5vw, 38px) 64px; }
.page-header { align-items: flex-start; margin-bottom: 24px; }
.page-header .eyebrow { margin-bottom: 7px; }
.page-header .lead { font-size: 14px; }
.dashboard-header { position: relative; display: grid; grid-template-columns: minmax(230px, .75fr) minmax(610px, 1.45fr); align-items: end; gap: 12px 24px; margin-bottom: 12px; }
.dashboard-title h1 { margin: 0 0 6px; }
.dashboard-title p, .dashboard-freshness { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.dashboard-controls { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(170px, .58fr) minmax(110px, .35fr) auto; align-items: end; gap: 9px; }
.dashboard-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.dashboard-controls input, .dashboard-controls select { width: 100%; min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 12px; }
.dashboard-controls input:focus, .dashboard-controls select:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 3px rgba(80, 70, 229, .12); }
.dashboard-freshness { grid-column: 2; text-align: right; }
.dashboard-kpis { padding: 0; }
.dashboard-kpis .metric-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.dashboard-kpis .metric { min-height: 88px; padding: 11px 12px; color: inherit; text-decoration: none; box-shadow: none; }
.dashboard-kpis .metric::before { width: 22px; height: 3px; margin-bottom: 7px; }
.dashboard-kpis .metric span { min-height: 22px; font-size: 10px; }
.dashboard-kpis .metric strong { margin: 2px 0; font-size: 24px; }
.dashboard-kpis .metric small { font-size: 10px; line-height: 1.3; }
.dashboard-kpis .metric:hover { border-color: #b9c5d2; box-shadow: 0 8px 20px rgba(15, 23, 42, .06); }
.dashboard-priority-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr); gap: 12px; padding: 0; }
.dashboard-panel { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.dashboard-action-panel { border-left: 4px solid var(--danger); }
.compact-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.compact-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.compact-heading p, .card-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.dashboard-critical-list { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.dashboard-critical-row { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(180px, 1fr) 105px 92px; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.dashboard-critical-row:last-child { border-bottom: 0; }
.critical-domain { min-width: 0; display: flex; align-items: flex-start; gap: 9px; }
.critical-domain strong, .critical-domain small, .critical-context span, .critical-context small { display: block; overflow-wrap: anywhere; }
.critical-domain strong { font-size: 12px; }
.critical-domain small, .critical-context small, .dashboard-critical-row time { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.critical-context span { color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.dashboard-critical-row time { margin: 0; }
.dashboard-critical-row .text-button { width: auto; min-width: 82px; justify-self: end; padding: 0 6px; font-size: 11px; }
.state-marker { width: 9px; height: 9px; flex: none; display: inline-block; margin-top: 4px; border: 2px solid currentColor; border-radius: 50%; }
.state-critical { color: var(--danger); background: var(--danger-soft); }
.state-warning { color: var(--warning); background: var(--warning-soft); }
.state-online { color: var(--mint); background: var(--mint-soft); }
.dashboard-health-panel .monitoring-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.dashboard-health-panel .monitoring-card { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 1px 12px; padding: 6px 0 6px 10px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 0; box-shadow: none; }
.dashboard-health-panel .monitoring-card:last-child { border-bottom: 0; }
.dashboard-health-panel .monitoring-card span { grid-column: 1; color: var(--ink-soft); font-size: 9px; }
.dashboard-health-panel .monitoring-card strong { grid-column: 2; grid-row: 1; margin: 0; font-size: 12px; text-align: right; }
.dashboard-health-panel .monitoring-card small { grid-column: 1 / -1; font-size: 9px; }
.monitor-health-details { margin-top: 7px; border-top: 1px solid var(--line); }
.monitor-health-details summary { min-height: 34px; display: flex; align-items: center; color: var(--violet-dark); font-size: 10px; font-weight: 750; cursor: pointer; }
.monitor-health-details .monitor-health-grid { grid-template-columns: 1fr; gap: 7px; }
.monitor-health-details .monitor-health-card { min-height: 0; padding: 11px; box-shadow: none; }
.dashboard-trends, .dashboard-operational, .dashboard-secondary-grid, .dashboard-technical-summary { padding: 16px 0 0; }
.dashboard-chart-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 12px; }
.dashboard-chart-grid .chart-card { min-height: 190px; padding: 13px 14px; box-shadow: none; }
.dashboard-chart-grid .chart-wide { grid-column: auto; }
.limited-history { margin: -9px 0 15px; padding: 9px 11px; color: var(--ink-soft); background: var(--info-soft); border-radius: 7px; font-size: 10px; }
.dashboard-sites-table { min-width: 860px; }
.dashboard-sites-table td strong, .dashboard-sites-table td small { display: block; }
.dashboard-sites-table td small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.dashboard-secondary-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.recent-activity { display: grid; }
.recent-activity article { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recent-activity article:last-child { border-bottom: 0; }
.recent-activity strong, .recent-activity small { display: block; }
.recent-activity strong { font-size: 11px; }
.recent-activity small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.dashboard-secondary-grid .alert-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0; }
.dashboard-secondary-grid .alert-card { min-height: 100px; padding: 11px; border-top-width: 3px; }
.dashboard-secondary-grid .alert-card span { min-height: 28px; font-size: 9px; }
.dashboard-secondary-grid .alert-card strong { margin: 7px 0 4px; font-size: 22px; }
.dashboard-secondary-grid .alert-card small { font-size: 9px; }
.dashboard-technical-summary > summary { min-height: 48px; display: flex; align-items: center; color: var(--violet-dark); font-size: 12px; font-weight: 750; cursor: pointer; }
.dashboard-technical-summary[open] > summary { margin-bottom: 14px; }
.dashboard-technical-summary .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sort-button { min-height: 44px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: inherit; font-weight: inherit; text-align: left; text-transform: inherit; }
.sort-button::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; border-right: 4px solid transparent; border-left: 4px solid transparent; vertical-align: middle; }
th[aria-sort="ascending"] .sort-button::after { border-bottom: 5px solid currentColor; }
th[aria-sort="descending"] .sort-button::after { border-top: 5px solid currentColor; }
.calendar-table { min-width: 1050px; }
.audit-dialog { width: min(560px, calc(100% - 28px)); }
.audit-dialog-content { display: grid; gap: 20px; padding: 24px; }
.dialog-kicker { margin: 0 0 7px; color: var(--violet); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.audit-dialog-content h2 { margin-bottom: 8px; }
.audit-dialog-content p { margin-bottom: 0; color: var(--ink-soft); line-height: 1.55; }
.audit-facts { display: grid; gap: 8px; margin: 0; }
.audit-facts div { padding: 11px 12px; border-radius: 8px; background: var(--canvas); }
.audit-facts dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.audit-facts dd { margin: 4px 0 0; color: var(--ink); font-size: 12px; font-weight: 700; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1280px) {
  .dashboard-header { grid-template-columns: 1fr; }
  .dashboard-freshness { grid-column: 1; }
  .dashboard-kpis .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-secondary-grid .alert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 64rem) {
  .mobile-app-header { position: sticky; top: 0; z-index: 40; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; color: white; background: var(--navy); box-shadow: 0 8px 22px rgba(2, 6, 23, .16); }
  .mobile-menu-button { min-width: 52px; min-height: 44px; padding: 0 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: white; background: transparent; font-size: 11px; font-weight: 750; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-brand .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .mobile-brand strong, .mobile-brand small { display: block; }
  .mobile-brand strong { font-size: 13px; }
  .mobile-brand small { margin-top: 1px; color: #9eabc0; font-size: .75rem; }
  .mobile-read-only { color: #8cf0d9; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(320px, 88vw); height: 100dvh; padding: 20px 16px; overflow-y: auto; transform: translateX(-105%); transition: transform var(--transition); }
  .navigation-open .sidebar { transform: none; }
  .navigation-backdrop { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; border: 0; background: rgba(2, 6, 23, .62); }
  .navigation-open { overflow: hidden; }
  .sidebar .brand { margin-bottom: 22px; }
  .sidebar .brand > span:nth-child(2) { margin-right: auto; }
  .sidebar-close { min-height: 44px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: white; background: transparent; font-size: .75rem; font-weight: 750; }
  .sidebar nav { grid-template-columns: 1fr; }
  .nav-link { min-height: 46px; justify-content: flex-start; padding: 0 12px; font-size: 13px; }
  .nav-link.is-active { box-shadow: inset 3px 0 var(--mint); }
  .sidebar-footer { display: grid; grid-template-columns: 1fr; margin-top: 24px; }
  .sidebar-note { display: flex; }
  .logout-button { width: 100%; justify-content: flex-start; }
  main#conteudo { padding: 20px 14px 60px; }
  .dashboard-header { gap: 14px; }
  .dashboard-title h1 { font-size: 28px; }
  .dashboard-controls { grid-template-columns: 1fr 1fr; }
  .dashboard-search { grid-column: 1 / -1; }
  .dashboard-controls .guarded-action { grid-column: 1 / -1; width: 100%; }
  .dashboard-freshness { text-align: left; }
  .dashboard-priority-grid, .dashboard-chart-grid, .dashboard-secondary-grid, .dashboard-technical-summary .chart-grid { grid-template-columns: 1fr; }
  .dashboard-critical-row { grid-template-columns: 1fr auto; gap: 7px 12px; padding: 12px; }
  .critical-domain { grid-column: 1; }
  .critical-context { grid-column: 1 / -1; }
  .dashboard-critical-row time { grid-column: 1; }
  .dashboard-critical-row .text-button { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .dashboard-secondary-grid .alert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-technical-summary { padding-top: 20px; }
  .dashboard-operational .table-scroll, #domains-page .table-scroll { overflow: visible; }
  .dashboard-sites-table, .calendar-table { min-width: 0; }
  .dashboard-sites-table thead, .calendar-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dashboard-sites-table, .dashboard-sites-table tbody, .dashboard-sites-table tr, .dashboard-sites-table td, .calendar-table, .calendar-table tbody, .calendar-table tr, .calendar-table td { display: block; width: 100%; }
  .dashboard-sites-table tbody, .calendar-table tbody { display: grid; gap: 10px; }
  .dashboard-sites-table tr, .calendar-table tr { padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 9px; background: white; }
  .dashboard-sites-table td, .calendar-table td { display: grid; grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; }
  .dashboard-sites-table td:last-child, .calendar-table td:last-child { border-bottom: 0; }
  .dashboard-sites-table td::before, .calendar-table td::before { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
  .dashboard-sites-table td:nth-child(1)::before { content: "Website"; }
  .dashboard-sites-table td:nth-child(2)::before { content: "Conta"; }
  .dashboard-sites-table td:nth-child(3)::before { content: "Estado"; }
  .dashboard-sites-table td:nth-child(4)::before { content: "HTTP"; }
  .dashboard-sites-table td:nth-child(5)::before { content: "Resposta"; }
  .dashboard-sites-table td:nth-child(6)::before { content: "Validação"; }
  .dashboard-sites-table td:nth-child(7)::before { content: "Ação"; }
  .calendar-table td:nth-child(1)::before { content: "Domínio"; }
  .calendar-table td:nth-child(2)::before { content: "Servidor e IP"; }
  .calendar-table td:nth-child(3)::before { content: "Validade"; }
  .calendar-table td:nth-child(4)::before { content: "Certificado"; }
  .calendar-table td:nth-child(5)::before { content: "Registador"; }
  .calendar-table td:nth-child(6)::before { content: "Estado"; }
}

@media (max-width: 560px) {
  .dashboard-controls { grid-template-columns: 1fr; }
  .dashboard-search, .dashboard-controls .guarded-action { grid-column: 1; }
  .dashboard-kpis .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .dashboard-kpis .metric { min-height: 108px; padding: 12px; }
  .dashboard-kpis .metric span { min-height: 27px; font-size: 10px; }
  .dashboard-kpis .metric strong { font-size: 25px; }
  .compact-heading { gap: 10px; }
  .compact-heading h2 { font-size: 17px; }
  .dashboard-panel { padding: 13px; }
  .dashboard-chart-grid .chart-card { min-height: 230px; padding: 14px; }
  .dashboard-secondary-grid .alert-grid { grid-template-columns: 1fr; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}
}

/* WebOps 1.13: robustez visual e leitura operacional */
.wordpress-priority { display: grid; grid-template-columns: minmax(12rem, 1.2fr) repeat(3, minmax(10rem, 1fr)); gap: .625rem; margin: 1rem 0; }
.wordpress-priority > div, .wordpress-risk { display: flex; flex-direction: column; justify-content: center; gap: .25rem; min-height: 4.5rem; padding: .75rem .875rem; border: 1px solid var(--line); border-radius: .625rem; background: var(--surface-muted); }
.wordpress-priority small, .wordpress-risk span { color: var(--muted); font-size: .75rem; }
.wordpress-risk strong { font-size: .875rem; }
.wordpress-risk-warning { border-color: color-mix(in srgb, var(--warning) 35%, var(--line)); background: color-mix(in srgb, var(--warning) 8%, white); }
.wordpress-risk-success { border-color: color-mix(in srgb, var(--success) 30%, var(--line)); background: color-mix(in srgb, var(--success) 7%, white); }
.wordpress-risk-neutral { background: var(--surface-muted); }
.project-metric small { display: block; margin-top: .25rem; color: var(--muted); font-size: .75rem; }
.profile-errors li { align-items: center; }
.profile-errors .data-state { width: max-content; }
.finding-action { min-width: 9.5rem; white-space: normal; line-height: 1.25; }
.account-table td .inventory-status + small { display: block; margin-top: .35rem; color: var(--muted); font-size: .75rem; }

@media (max-width: 70rem) {
  .wordpress-priority { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 35rem) {
  .wordpress-priority { grid-template-columns: 1fr; }
  .mobile-page-title, .bottom-nav span, .metric span, .metric small, .dashboard-critical-row small, .monitor-health-card small, .monitoring-card small, .recent-activity small, .page-table small, .profile-freshness { font-size: .75rem; }
  .dashboard-critical-row, .monitor-health-card, .monitoring-card, .page-table td, .empty-card, .positive-state p { font-size: .875rem; }
  .page-shell { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}
