:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --line: #d7dee8;
  --text: #17202a;
  --muted: #647386;
  --green: #207a4c;
  --green-bg: #e4f3eb;
  --amber: #9a6400;
  --amber-bg: #fff3d6;
  --red: #b12b37;
  --red-bg: #fde5e8;
  --blue: #245a92;
  --blue-bg: #e5eff9;
  --ink: #0f1720;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
select,
input,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #e9eef5;
}

.login-panel {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.brand.compact {
  color: var(--text);
}

.brand.compact .brand-mark {
  color: var(--blue);
  border-color: var(--line);
}

.brand.compact span {
  color: var(--muted);
}

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

.sidebar {
  background: var(--ink);
  color: #f8fafc;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid #3c4a5f;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #7dd3fc;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #9fb0c4;
  font-size: 13px;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
  background: #1c2633;
  color: #ffffff;
  border-left-color: #7dd3fc;
}

.sidebar-footer {
  margin-top: auto;
}

.state-pill,
.status-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.state-ok,
.status-valid,
.status-active {
  background: var(--green-bg);
  color: var(--green);
}

.state-warn,
.status-needs_review,
.status-onboarding,
.status-planned,
.status-manual,
.status-needs_credentials {
  background: var(--amber-bg);
  color: var(--amber);
}

.state-error,
.status-invalid,
.status-expired {
  background: var(--red-bg);
  color: var(--red);
}

.status-available_now,
.status-published {
  background: var(--blue-bg);
  color: var(--blue);
}

.status-out_of_scope_v1 {
  background: var(--surface-2);
  color: var(--muted);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
}

h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-user {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

select {
  min-width: 190px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
}

.icon-button {
  height: 40px;
  border: 1px solid #b7c4d4;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
}

.icon-button:hover {
  border-color: #6b7f98;
}

.primary-button {
  height: 40px;
  border: 1px solid #173f67;
  background: #245a92;
  color: #ffffff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button:hover {
  background: #1d4d7f;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 9px 10px;
  text-transform: none;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field input[type="checkbox"] {
  width: auto;
  min-width: 0;
  min-height: 0;
  margin-right: 8px;
  padding: 0;
  vertical-align: middle;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.field.wide,
.form-actions.wide {
  grid-column: span 2;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.score-block {
  display: grid;
  align-content: start;
  gap: 10px;
}

.score-block strong {
  font-size: 46px;
  line-height: 1;
}

.compact-header {
  margin-top: 4px;
}

.metric,
.info-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.metric {
  min-height: 92px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  font-size: 24px;
  line-height: 1.15;
}

.panel {
  display: none;
  background: transparent;
}

.panel.active {
  display: block;
}

.panel-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

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

.submit-credentials {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 260px) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.credential-summary {
  min-height: 40px;
  display: grid;
  align-content: center;
  gap: 3px;
}

.credential-summary strong {
  font-size: 13px;
}

.irr-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.object-browser {
  background: var(--ink);
  color: #f8fafc;
  border-radius: 6px;
  padding: 14px;
}

.object-browser-title {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: #dbeafe;
  font-weight: 800;
}

.object-class-list {
  display: grid;
  gap: 2px;
}

.object-class-button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #cbd5e1;
  padding: 0 10px;
  text-align: left;
  cursor: pointer;
}

.object-class-button:hover,
.object-class-button.active {
  background: #1c2633;
  color: #ffffff;
  border-left-color: #7dd3fc;
}

.object-class-button strong {
  color: #93c5fd;
  font-size: 12px;
}

.object-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.object-panel-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
}

.object-panel-header h3 {
  margin-bottom: 4px;
}

.selected-row td {
  background: #eef6ff;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.as-set-tools {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.member-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.member-entry input {
  min-height: 40px;
  border: 1px solid var(--line);
  padding: 0 10px;
}

.member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.member-remove {
  width: 20px;
  height: 20px;
  border: 1px solid #b7c4d4;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.object-editor textarea {
  min-height: 310px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.reference-list {
  display: grid;
  gap: 8px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.info-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-block {
  padding: 18px;
}

dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 10px 16px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-item {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.check-item:last-child {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.table-wrap.compact {
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: #38475a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.integration-card {
  min-height: 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.integration-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.integration-card h3 {
  margin: 0;
}

.integration-card p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-grid,
  .info-grid,
  .split-grid,
  .operations-grid,
  .form-grid,
  .submit-credentials,
  .irr-workspace,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .field.wide,
  .form-actions.wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .workspace {
    padding: 16px;
  }

  .sidebar {
    padding: 18px 14px;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .metric strong {
    font-size: 20px;
  }
}

/* GeoFeed editor */
.geofeed-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
  border-bottom: 1px solid var(--line);
}

.geofeed-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.geofeed-tab:hover {
  color: var(--text);
}

.geofeed-tab.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--blue);
}

.geofeed-view {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.geofeed-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gf-chip {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}

.gf-chip.gf-dirty,
.gf-chip.gf-warn {
  background: var(--amber-bg);
  border-color: var(--amber);
  color: var(--amber);
}

.geofeed-entry-form {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.geofeed-issues {
  display: grid;
  gap: 8px;
}

.geofeed-issues .check-item {
  justify-content: flex-start;
}

.source-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--muted);
}

.source-badge.source-maxmind {
  background: var(--blue-bg);
  color: var(--blue);
}

.source-badge.source-ipinfo {
  background: var(--green-bg);
  color: var(--green);
}

.gf-actions {
  white-space: nowrap;
}

.gf-row-error td:first-child {
  border-left: 3px solid var(--red);
}

tr.gf-mismatch td {
  background: var(--amber-bg);
}

.geofeed-help {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.geofeed-help h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.geofeed-help ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

/* Mini-tutorial colapsavel ("citacao") didatico, reutilizavel em todo o dashboard */
.help-note {
  background: var(--blue-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 0;
}

.help-note > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-note > summary::-webkit-details-marker {
  display: none;
}

.help-note > summary::before {
  content: "?";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.help-note > summary::after {
  content: "\25BE";
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.help-note[open] > summary::after {
  transform: rotate(180deg);
}

.help-note > summary:hover {
  text-decoration: underline;
}

.help-note-body {
  padding: 0 14px 12px 14px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink, #1f2933);
}

.help-note-body p {
  margin: 0;
}

.help-note-body strong {
  color: var(--blue);
}

.help-note-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.help-note-body li {
  margin: 0;
}

/* Abas por-ASN desabilitadas ate selecionar um ASN */
.nav-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== InnetOps Guard - refresh visual (cascata; sobrepoe as regras acima) ===== */
/* Cores derivadas da logomarca InnetOps Guard: azul -> teal -> verde. */
:root {
  --brand: #2f6bed;
  --brand-strong: #1f55c9;
  --accent: #2bc483;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
}

body {
  background: #eef2f7;
}

.sidebar {
  background: linear-gradient(180deg, #14202e 0%, #0a1017 100%);
  box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.08);
}

.brand-mark {
  border: 0;
  border-radius: 12px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand.compact .brand-mark {
  background: var(--blue-bg);
  border: 1px solid var(--line);
}

.nav-item {
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-item:hover,
.nav-item.active {
  border-left-color: var(--accent);
}

.metric,
.info-block {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.metric {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.metric:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.login-screen {
  background: radial-gradient(1200px 600px at 50% -10%, #dbe6f5 0%, #e9eef5 55%);
}

.login-panel {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.primary-button {
  background: var(--brand);
  border-color: var(--brand-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.04s ease;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.primary-button:active {
  transform: translateY(1px);
}

.status-pill {
  border-radius: 999px;
}

.table-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.panel-header h2 {
  letter-spacing: -0.01em;
}

.login-logo {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.login-logo img {
  width: min(340px, 88%);
  height: auto;
  display: block;
}

.login-logo span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-heading {
  text-align: center;
}

/* Painel RPKI / Krill */
.rpki-bootstrap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
.rpki-step {
  display: grid;
  gap: 8px;
  align-content: start;
}
/* Mensagem por bloco do bootstrap (cor por tipo: ok=verde, erro=vermelho, info=neutro) */
.rpki-step-msg { min-height: 18px; margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.rpki-step-msg.is-ok { color: var(--accent, #2bc483); }
.rpki-step-msg.is-error { color: var(--red, #c0392b); }
.rpki-step-msg.is-info { color: var(--muted, #64748b); font-weight: 500; }
.rpki-step-msg:empty { display: none; }
#panel-rpki textarea {
  width: 100%;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}
.rpki-tag-missing { color: var(--red, #c0392b); font-weight: 700; }
.rpki-tag-covered { color: var(--accent, #2bc483); font-weight: 700; }
.rpki-tag-orphan { color: var(--amber, #d08700); font-weight: 700; }
.rpki-health-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.rpki-health-list li { font-size: 13px; }
.rpki-health-banner { margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: rgba(43, 196, 131, 0.08); border: 1px solid var(--line, #e2e8f0); font-size: 13px; }
.rpki-health-banner:empty { display: none; }
/* Linha de checkbox coerente (checkbox + label inline) */
.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-line input[type="checkbox"] { width: auto; min-height: 0; margin: 0; flex: 0 0 auto; }
@media (max-width: 900px) {
  .rpki-bootstrap-grid { grid-template-columns: 1fr; }
}

/* Gestao de usuarios: construtor de grupo/ASN + overlay de senha */
.user-asn-builder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.user-asn-builder select { width: auto; min-width: 140px; }
.user-asn-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.user-asn-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(47, 107, 237, 0.12); color: var(--brand, #2563eb); font-size: 13px; font-weight: 600;
}
.user-asn-chip button {
  border: none; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1;
  padding: 0; min-height: 0;
}
.password-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.62); padding: 20px;
}
.password-overlay.hidden { display: none; }
/* Monitor RPKI (validacao cacheada dos anuncios) */
.rpki-monitor-banner { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: rgba(128, 128, 128, 0.06); }
.rpki-monitor { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.rpki-monitor-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rpki-monitor-asn { border: 1px solid rgba(128, 128, 128, 0.28); border-radius: 8px; padding: 8px 10px; }
.rpki-monitor-asn-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.rpki-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rpki-chip { font: 600 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 6px; border: 1px solid transparent; }
.rpki-chip-ok { background: rgba(34, 197, 94, 0.16); color: #15803d; border-color: rgba(34, 197, 94, 0.45); }
.rpki-chip-bad { background: rgba(239, 68, 68, 0.16); color: #b91c1c; border-color: rgba(239, 68, 68, 0.45); }
.rpki-chip-warn { background: rgba(245, 158, 11, 0.16); color: #b45309; border-color: rgba(245, 158, 11, 0.45); }
.password-card {
  width: min(440px, 96%); background: var(--surface, #fff); border-radius: 16px; padding: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4); display: flex; flex-direction: column; gap: 12px;
}
.password-card h2 { margin: 0; }

/* Usuarios: formulario recolhivel + grupos por tenant */
.user-form-block { margin-bottom: 16px; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 12px 16px; }
.user-form-block > summary { cursor: pointer; font-weight: 700; }
.user-group { border: 1px solid var(--border, #e2e8f0); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.user-group > summary {
  cursor: pointer; font-weight: 700; padding: 12px 16px; background: rgba(47, 107, 237, 0.06);
  display: flex; align-items: center; gap: 10px;
}
.user-group[open] > summary { border-bottom: 1px solid var(--border, #e2e8f0); }
.user-group .table-wrap { margin: 0; border: none; border-radius: 0; }
.user-group-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  padding: 0 7px; border-radius: 999px; background: var(--brand, #2563eb); color: #fff; font-size: 12px;
}

/* Looking Glass */
.lg-pops-checks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.lg-result { border: 1px solid var(--border, #e2e8f0); border-radius: 10px; margin-bottom: 8px; padding: 6px 12px; }
.lg-result > summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.lg-result pre {
  margin: 8px 0 4px; padding: 10px; background: rgba(15, 23, 42, 0.04); border-radius: 8px;
  overflow-x: auto; white-space: pre; font-size: 12.5px; line-height: 1.45;
}
