/* Dhuo - OPS — abas, jornadas, provedores, login */
:root {
  --bg: #0a0e14;
  --panel: #111822;
  --text: #e6edf3;
  --muted: #8b9cb3;
  --accent: #3d9dff;
  --ok: #3ecf8e;
  --warn: #f5c542;
  --bad: #ff5c5c;
  --border: rgba(61, 157, 255, 0.25);
}

.login-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
}

/* Seletor de idioma — canto superior direito (login / auth gate) */
.login-page__lang-corner,
.lang-dropdown.lang-switch--corner {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10001;
}

body.auth-pending #lang-dropdown-header {
  display: none;
}
body.auth-ready #lang-dropdown-gate-wrap {
  display: none;
}

.lang-dropdown {
  position: relative;
  flex-shrink: 0;
}

.lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.lang-dropdown__trigger:hover {
  border-color: var(--accent);
}

.lang-dropdown__chevron {
  font-size: 0.55rem;
  color: var(--muted);
  line-height: 1;
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  min-width: 10rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 10002;
}

.lang-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text);
}

.lang-dropdown__option:hover {
  background: rgba(61, 157, 255, 0.12);
}

.lang-dropdown__option-flag {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.lang-dropdown__flag-img {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-header .lang-dropdown__trigger {
  padding: 0.4rem 0.55rem;
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: min(400px, 92vw);
}

.login-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}
.login-brand .brand-logo {
  height: 38px;
  width: auto;
  display: block;
  margin: 0 auto 0.5rem;
}
.login-brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.login-card h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.login-sub { color: var(--muted); margin: 0 0 1.5rem; font-size: 0.9rem; }
.login-card label { display: block; margin-bottom: 1rem; font-size: 0.8rem; color: var(--muted); }
.login-card input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0d1219;
  color: var(--text);
  font-size: 0.95rem;
}
.login-card button[type="submit"] {
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.login-error { color: var(--bad); font-size: 0.85rem; min-height: 1.2em; }
.login-revoke-btn {
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.login-revoke-btn:hover { background: rgba(56, 189, 248, 0.08); }
.login-hint { font-size: 0.72rem; color: var(--muted); margin-top: 1.25rem; line-height: 1.5; }

#auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg);
  color: var(--muted);
  font-family: "Segoe UI", system-ui, sans-serif;
}
#auth-gate .brand-logo {
  height: 42px;
  width: auto;
}
#auth-gate strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}
.header-brand {
  grid-area: title;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.header-brand .brand-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}
.header-brand h1 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-switch {
  display: none;
}
.lang-btn {
  display: none;
}
body.auth-pending > header,
body.auth-pending > nav.app-tabs,
body.auth-pending > .tab-panel {
  visibility: hidden;
}
body.auth-ready #auth-gate {
  display: none;
}

.app-tabs {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem 0.35rem;
  border-bottom: 1px solid var(--border);
  background: #0d1219;
}
.app-tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
}
@media (max-height: 820px) and (min-width: 769px) {
  .app-tabs { padding: 0.2rem 0.5rem 0.3rem; }
  .app-tabs button { padding: 0.22rem 0.45rem; font-size: 0.72rem; }
  .app-tabs .user-bar { font-size: 0.68rem; }
}
.app-tabs button.active {
  color: var(--text);
  border-color: var(--border);
  background: rgba(61, 157, 255, 0.12);
}
.app-tabs .user-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.app-tabs .user-bar .btn-logout {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 92, 92, 0.12);
  color: #ffb4b4;
  cursor: pointer;
  font-weight: 600;
}
.app-tabs .user-bar .btn-logout:hover {
  border-color: var(--bad);
  background: rgba(255, 92, 92, 0.22);
  color: #fff;
}
.app-tabs .user-bar button:not(.btn-logout) {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
}

.role-badge {
  display: inline-block;
  font-size: 0.62rem;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-badge.admin { background: rgba(61, 157, 255, 0.2); color: var(--accent); }
.role-badge.editor { background: rgba(245, 197, 66, 0.2); color: var(--warn); }
.role-badge.viewer { background: rgba(142, 156, 179, 0.2); color: var(--muted); }

.tab-panel { display: none; flex: 1; min-height: 0; flex-direction: column; }
.tab-panel.active { display: flex; }
body.sanity-active > .app-header { display: none; }
.sanity-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: var(--bg, #0b1220);
}

.platform-panel {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}
.platform-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .platform-grid-2 { grid-template-columns: 1fr; }
}

.platform-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}
.platform-card h2 { margin: 0 0 0.75rem; font-size: 1rem; }
.platform-card label { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.65rem; }
.platform-card input,
.platform-card select,
.platform-card textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0d1219;
  color: var(--text);
  font-size: 0.85rem;
}
.platform-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.platform-actions--inline { margin-top: 0.35rem; margin-bottom: 0.5rem; }
.platform-actions button {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(61, 157, 255, 0.15);
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
}
.platform-actions button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.platform-actions button.danger { border-color: var(--bad); color: var(--bad); }

.api-pick-list {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem;
}
.api-pick-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.8rem;
  border-radius: 4px;
}
.api-pick-row:hover { background: rgba(61, 157, 255, 0.08); }
.api-pick-row input { width: auto; margin: 0.15rem 0 0; flex-shrink: 0; }
.api-pick-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.25;
}
.api-pick-name {
  word-break: break-all;
}
.api-pick-path {
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
}

.journey-api-pick-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.45rem;
}
.journey-api-pick-toolbar button {
  padding: 0.32rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.journey-api-pick-toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.journey-api-selected-count {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
}
.api-pick-row--pinned {
  background: rgba(61, 157, 255, 0.06);
}
.journey-api-pick-empty,
.journey-api-pick-note {
  margin: 0.5rem 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.entity-list { list-style: none; margin: 0; padding: 0; }
.entity-list li {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
}
.entity-list li:hover,
.entity-list li.selected { background: rgba(61, 157, 255, 0.1); }
.entity-list li .meta { font-size: 0.72rem; color: var(--muted); }

.map-filters {
  padding: 0 0.55rem 0.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
}
.map-filters label { font-size: 0.7rem; color: var(--muted); }
.map-filters select {
  width: 100%;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0d1219;
  color: var(--text);
  font-size: 0.8rem;
}

.badge-pending {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(245, 197, 66, 0.2);
  color: var(--warn);
  margin-left: 0.35rem;
}

.change-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
}
.change-card pre {
  background: #0d1219;
  padding: 0.5rem;
  overflow: auto;
  font-size: 0.72rem;
  border-radius: 4px;
}

.hidden { display: none !important; }

.journey-health-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.journey-health-dot--healthy { background: var(--ok, #3ecf8e); }
.journey-health-dot--degraded { background: var(--warn, #f5c542); }
.journey-health-dot--down { background: var(--bad, #ff5c5c); }
.journey-health-dot--unknown,
.journey-health-dot--nodata { background: var(--muted, #6b7a8f); }

.entity-list li .entity-list-head {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.entity-list li .entity-list-head strong { flex: 1; min-width: 0; }

.journey-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .journey-layout { grid-template-columns: 1fr; }
}
.journey-sidebar { min-height: 0; }
.journey-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.journey-empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.journey-empty-state p { margin: 0; }
.journey-detail-header {
  margin-bottom: 0.25rem;
}
.journey-detail-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.journey-detail-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.journey-health-config-wrap {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.journey-form-panel {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.journey-form-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.journey-form-panel-head h2 { margin: 0; }
.journey-form-close {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.journey-form-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.journey-form-hint {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.75rem;
}
.entity-list-edit-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.55;
}
.entity-list li:hover .entity-list-edit-btn,
.entity-list li.selected .entity-list-edit-btn {
  opacity: 1;
}
.entity-list-edit-btn:hover {
  background: rgba(61, 157, 255, 0.15);
  color: var(--accent);
}
.entity-list-edit-icon { display: block; }

.journey-health-section {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}
.journey-health-heading {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}
.journey-health-period-hint {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.journey-health-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.journey-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.journey-health-pill--healthy { border-color: rgba(62, 207, 142, 0.45); color: #3ecf8e; }
.journey-health-pill--degraded { border-color: rgba(245, 197, 66, 0.45); color: #f5c542; }
.journey-health-pill--down { border-color: rgba(255, 92, 92, 0.45); color: #ff5c5c; }
.journey-health-pill--unknown { color: var(--muted); }

.journey-health-table-wrap {
  overflow: auto;
  max-height: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.journey-health-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.journey-health-table th,
.journey-health-table td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.journey-health-table th {
  position: sticky;
  top: 0;
  background: #121820;
  color: var(--muted);
  font-weight: 600;
}
.journey-health-th-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.journey-health-th-sortable:hover {
  color: var(--text);
}
.journey-health-th--sorted {
  color: var(--accent);
}
.journey-health-sort-ind {
  font-size: 0.62rem;
  opacity: 0.85;
}
.journey-health-table tr:last-child td { border-bottom: none; }
.journey-health-table .api-name { word-break: break-all; max-width: 280px; }
.journey-api-map-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  word-break: break-all;
}
.journey-api-map-link:hover,
.journey-api-map-link:focus-visible {
  text-decoration: underline;
  outline: none;
}
.journey-health-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.journey-health-config-panel {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
}
.journey-health-config-panel summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.journey-health-config-hint {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.journey-api-health-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.journey-api-health-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 0.78rem;
}
.journey-api-health-head .api-name {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  font-weight: 600;
}
.journey-api-health-head .meta { color: var(--muted); font-size: 0.72rem; }
.journey-api-health-body {
  padding: 0.55rem 0.65rem 0.65rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.65rem;
}
@media (max-width: 720px) {
  .journey-api-health-body { grid-template-columns: 1fr; }
}
.journey-api-health-body label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}
.journey-api-health-body input {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0d1219;
  color: var(--text);
  font-size: 0.78rem;
}

/* --- Painel Gerencial --- */
.gerencial-panel {
  position: relative;
  overflow: auto;
  padding: 0.75rem 1rem 1.25rem;
  background: #0a0e14;
}
.gerencial-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.85rem;
}
.gerencial-toolbar-head {
  min-width: 0;
}
.gerencial-toolbar-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.gerencial-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.gerencial-status {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--accent);
}
.gerencial-mcp-phrase {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.45;
  max-width: 100%;
  min-width: 0;
}
.gerencial-mcp-phrase-label {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
}
.gerencial-mcp-phrase-text {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  max-height: 4.35em;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.gerencial-mcp-phrase strong {
  color: var(--muted);
  font-weight: 600;
}
.gerencial-mcp-phrase--loading,
.gerencial-mcp-phrase--pending {
  color: var(--muted);
  font-style: italic;
}
.gerencial-mcp-phrase--error {
  color: var(--bad);
}
.gerencial-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.55rem 0.75rem;
  flex-shrink: 0;
}
@media (max-width: 960px) {
  .gerencial-toolbar {
    grid-template-columns: 1fr;
  }
  .gerencial-filters {
    justify-content: flex-start;
  }
}
.gerencial-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.gerencial-filters select,
.gerencial-filters input[type="search"] {
  min-width: 180px;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0d1219;
  color: var(--text);
  font-size: 0.8rem;
}
.gerencial-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem !important;
  color: var(--text) !important;
  font-size: 0.78rem !important;
  padding-bottom: 0.35rem;
}
.gerencial-var-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.gerencial-var-label {
  font-size: 0.72rem;
  color: var(--muted);
}
.gerencial-var-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 160px;
  max-width: 280px;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0d1219;
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
}
.gerencial-var-btn:hover,
.gerencial-var-btn.is-open {
  border-color: var(--accent);
}
.gerencial-var-btn-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.gerencial-var-chevron {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--muted);
}
.gerencial-var-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 120;
  width: min(420px, 92vw);
}
.gerencial-var-menu.hidden {
  display: none;
}
.gerencial-var-menu .gerencial-api-panel {
  margin-bottom: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.gerencial-check--menu {
  padding: 0.35rem 0 0.45rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.gerencial-api-list.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.gerencial-api-panel {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.gerencial-api-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.gerencial-api-panel-actions {
  display: flex;
  gap: 0.35rem;
}
.gerencial-api-action {
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}
.gerencial-api-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.gerencial-api-panel-actions.hidden {
  display: none;
}
.gerencial-api-panel-head strong {
  font-weight: 600;
}
.gerencial-api-count {
  font-size: 0.72rem;
  color: var(--muted);
}
.gerencial-api-search {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0d1219;
  color: var(--text);
  font-size: 0.8rem;
}
.gerencial-api-list {
  margin-top: 0.45rem;
  max-height: 168px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0a0e14;
}
.gerencial-api-list-item {
  display: block;
  padding: 0.28rem 0.55rem;
  font-size: 0.74rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  word-break: break-all;
  color: var(--text);
}
.gerencial-api-list-item:last-child {
  border-bottom: none;
}
.gerencial-api-list-item--check {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  cursor: pointer;
}
.gerencial-api-list-item--check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.gerencial-api-list-item--all {
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.gerencial-api-list-empty {
  padding: 0.65rem 0.55rem;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}
.gerencial-api-hint {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.gerencial-api-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.15rem 0.5rem 0.15rem 0;
  font-size: 0.74rem;
  cursor: pointer;
}
.gerencial-grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.75rem;
}
.gerencial-grid--grafana .gerencial-span-6 { grid-column: span 6; }
.gerencial-grid--grafana .gerencial-span-9 { grid-column: span 9; }
.gerencial-grid--grafana .gerencial-span-12 { grid-column: span 12; }
.gerencial-grid--grafana .gerencial-span-24 { grid-column: span 24; }
@media (max-width: 1100px) {
  .gerencial-grid--grafana .gerencial-span-6,
  .gerencial-grid--grafana .gerencial-span-9,
  .gerencial-grid--grafana .gerencial-span-12,
  .gerencial-grid--grafana .gerencial-span-24 {
    grid-column: span 24;
  }
}
.gerencial-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem 0.75rem;
  background: #0d1219;
  min-height: 120px;
}
.gerencial-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.gerencial-card--wide { grid-column: span 2; }
.gerencial-card--full { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  .gerencial-card--wide { grid-column: span 1; }
}
.gerencial-card--gauge {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  min-height: 200px;
  padding-bottom: 0.5rem;
}
.gerencial-card--gauge h3 {
  flex-shrink: 0;
  color: #c7d0dc;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.gerencial-k8s-host {
  min-height: 120px;
}

/* Kubernetes / Prometheus — layout Grafana */
.k8s-grafana-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.k8s-metrics-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.k8s-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.k8s-stat--pods .gerencial-stat-n { color: #73bf69; }
.k8s-stat--mem .gerencial-stat-n { color: #5794f2; }
.k8s-stat--cpu .gerencial-stat-n { color: #ff9830; }
.k8s-charts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.k8s-metric-panel {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.45rem 0.5rem 0.35rem;
  min-width: 0;
}
.k8s-metric-panel-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.k8s-ts-wrap {
  display: block;
}
.k8s-ts-chart {
  width: 100%;
  min-height: 200px;
}
.k8s-ts-host {
  min-height: 200px;
}
@media (max-width: 1100px) {
  .k8s-charts-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .k8s-stat-row {
    grid-template-columns: 1fr;
  }
}

.gerencial-health-details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem 0.75rem;
  background: #0d1219;
}
.gerencial-health-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.gerencial-chart-host--graph {
  min-height: 280px;
}
.gerencial-ts-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  min-height: 280px;
}
.gerencial-ts-chart {
  flex: 1;
  min-width: 0;
}
.gerencial-ts-legend {
  flex: 0 0 168px;
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.68rem;
  border-left: 1px solid var(--border);
  padding-left: 0.45rem;
}
.gerencial-ts-legend-head,
.gerencial-ts-legend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.12rem 0;
}
.gerencial-ts-legend-head {
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.2rem;
  padding-bottom: 0.25rem;
}
.gerencial-ts-legend-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gerencial-ts-legend-total {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.gerencial-gauge-host {
  width: 100%;
  flex: 1;
  min-height: 130px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  padding: 0.15rem 0.25rem 0;
}
.gerencial-gauge-host svg,
.gerencial-gauge-svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.gerencial-gauge-track {
  fill: #464646;
}
.gerencial-gauge-value-text {
  font-weight: 500;
  fill: #ffffff;
  font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  pointer-events: none;
}
.gerencial-gauge-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.gerencial-healthy-pct {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.76rem;
  color: var(--text);
}
.gerencial-journey-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.35rem;
}
.gerencial-stat {
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.gerencial-stat-n {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}
.gerencial-stat-l {
  font-size: 0.68rem;
  color: var(--muted);
}
.gerencial-stat--ok .gerencial-stat-n { color: #3dd68c; }
.gerencial-stat--warn .gerencial-stat-n { color: #f0b429; }
.gerencial-stat--bad .gerencial-stat-n { color: #f56565; }
.gerencial-stat--muted .gerencial-stat-n { color: var(--muted); }
.gerencial-chart-host {
  min-height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.gerencial-chart-host--loading {
  pointer-events: none;
}
.gerencial-chart-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gerencial-skeleton-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, 0.06);
  border-top-color: rgba(91, 192, 255, 0.45);
  animation: gerencial-spin 0.9s linear infinite;
}
.gerencial-skeleton-bars {
  width: 88%;
  height: 70%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  justify-content: center;
}
.gerencial-skeleton-bars span {
  flex: 1;
  max-width: 28px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(91, 192, 255, 0.25), rgba(91, 192, 255, 0.06));
  animation: gerencial-bar-pulse 1.2s ease-in-out infinite;
}
.gerencial-skeleton-bars span:nth-child(2) { animation-delay: 0.15s; height: 55%; }
.gerencial-skeleton-bars span:nth-child(3) { animation-delay: 0.3s; height: 80%; }
.gerencial-skeleton-bars span:nth-child(4) { animation-delay: 0.45s; height: 45%; }
.gerencial-skeleton-bars span:nth-child(5) { animation-delay: 0.6s; height: 65%; }
.gerencial-skeleton-bars span:nth-child(6) { animation-delay: 0.75s; height: 50%; }
.gerencial-skeleton-bars span:nth-child(1) { height: 40%; }
.gerencial-skeleton-line {
  width: 88%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(91, 192, 255, 0.5), transparent);
  background-size: 200% 100%;
  animation: gerencial-shimmer 1.4s ease-in-out infinite;
}
.gerencial-skeleton-table {
  width: 100%;
  padding: 0.5rem;
}
.gerencial-skeleton-table div {
  height: 10px;
  margin: 0.55rem 0;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: gerencial-shimmer 1.3s ease-in-out infinite;
}
.gerencial-skeleton-table div:nth-child(odd) { width: 92%; }
.gerencial-skeleton-table div:nth-child(even) { width: 78%; animation-delay: 0.2s; }
.gerencial-gauge-skeleton-arc {
  animation: gerencial-gauge-pulse 1.1s ease-in-out infinite;
  transform-origin: center;
}
@keyframes gerencial-spin {
  to { transform: rotate(360deg); }
}
@keyframes gerencial-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes gerencial-bar-pulse {
  0%, 100% { opacity: 0.45; transform: scaleY(0.92); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes gerencial-gauge-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}
.gerencial-card.is-loading {
  opacity: 0.92;
}
.gerencial-chart-host--tall { min-height: 260px; }
.gerencial-donut-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 200px;
  width: 100%;
}
.gerencial-donut-chart {
  flex: 0 0 148px;
  width: 148px;
  height: 148px;
}
.gerencial-donut-chart svg {
  display: block;
}
.gerencial-legend {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  font-size: 0.72rem;
  color: var(--muted);
  overflow-y: auto;
  max-height: 200px;
}
.gerencial-legend-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.12rem 0;
  line-height: 1.3;
}
.gerencial-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.gerencial-legend-label {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.gerencial-legend-pct {
  flex-shrink: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.gerencial-empty {
  margin: 1rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.gerencial-api-table {
  overflow: auto;
  max-height: 360px;
}
.gerencial-api-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.gerencial-api-table th,
.gerencial-api-table td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.gerencial-api-table th {
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
  background: #0d1219;
}
.gerencial-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: lowercase;
}
.gerencial-pill--healthy { background: rgba(61, 214, 140, 0.15); color: #3dd68c; }
.gerencial-pill--degraded { background: rgba(240, 180, 41, 0.15); color: #f0b429; }
.gerencial-pill--down { background: rgba(245, 101, 101, 0.15); color: #f56565; }
.gerencial-pill--nodata,
.gerencial-pill--unknown { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.gerencial-table-row {
  opacity: 0;
  transform: translateY(6px);
}
.gerencial-table-row--in {
  animation: gerencial-row-in 0.45s ease forwards;
}
@keyframes gerencial-row-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Executive AI Chat */
.gerencial-chat-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 120;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(61, 157, 255, 0.18);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.gerencial-chat-fab:hover {
  background: rgba(61, 157, 255, 0.28);
}
.gerencial-chat-fab.hidden { display: none !important; }
.gerencial-chat-panel {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 130;
  width: min(420px, calc(100vw - 2rem));
  height: auto;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: rgba(17, 24, 34, 0.97);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.gerencial-chat-panel.hidden { display: none !important; }
.gerencial-chat-panel.collapsed {
  height: auto;
  max-height: none;
}
.gerencial-chat-panel.collapsed .gerencial-chat-body { display: none; }
.gerencial-chat-panel.collapsed .gerencial-chat-head {
  border-bottom: none;
}
.gerencial-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.55);
  flex-shrink: 0;
}
.gerencial-chat-head strong {
  display: block;
  font-size: 0.82rem;
}
.gerencial-chat-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.gerencial-chat-head-actions {
  display: flex;
  gap: 0.25rem;
}
.gerencial-chat-collapse,
.gerencial-chat-close {
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.gerencial-chat-collapse:hover,
.gerencial-chat-close:hover {
  color: var(--text);
  border-color: var(--accent);
}
.gerencial-chat-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}
.gerencial-chat-messages {
  flex: 0 1 auto;
  max-height: min(42vh, 360px);
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  -webkit-overflow-scrolling: touch;
}
.gerencial-chat-msg {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
  overflow: visible;
}
.gerencial-chat-msg--user {
  align-self: flex-end;
  width: fit-content;
  max-width: 92%;
  white-space: pre-wrap;
  background: rgba(61, 157, 255, 0.16);
  border: 1px solid rgba(61, 157, 255, 0.28);
}
.gerencial-chat-msg--assistant {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.gerencial-chat-msg--md {
  white-space: normal;
  overflow: visible;
}
.gerencial-chat-msg--md > :first-child { margin-top: 0; }
.gerencial-chat-msg--md > :last-child { margin-bottom: 0; }
.gerencial-chat-msg--md p {
  margin: 0.35rem 0;
  overflow: visible;
}
.gerencial-chat-msg--md h1,
.gerencial-chat-msg--md h2,
.gerencial-chat-msg--md h3,
.gerencial-chat-msg--md h4,
.gerencial-chat-msg--md h5,
.gerencial-chat-msg--md h6 {
  margin: 0.55rem 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.gerencial-chat-msg--md h1 { font-size: 0.9rem; }
.gerencial-chat-msg--md h2 { font-size: 0.86rem; }
.gerencial-chat-msg--md ul,
.gerencial-chat-msg--md ol {
  margin: 0.35rem 0;
  padding-left: 1.15rem;
  overflow: visible;
}
.gerencial-chat-msg--md li {
  margin: 0.2rem 0;
  overflow: visible;
}
.gerencial-chat-msg--md li::marker {
  color: var(--muted);
}
.gerencial-chat-msg--md strong {
  font-weight: 700;
  color: var(--text);
}
.gerencial-chat-msg--md em {
  font-style: italic;
}
.gerencial-chat-msg--md code {
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  background: rgba(61, 157, 255, 0.12);
  border: 1px solid rgba(61, 157, 255, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  word-break: break-all;
}
.gerencial-chat-msg--loading { color: var(--muted); font-style: italic; }
.gerencial-chat-msg--error { color: var(--bad); border-color: rgba(255, 92, 92, 0.35); }
.gerencial-chat-empty {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}
.gerencial-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.65rem 0.45rem;
  flex-shrink: 0;
}
.gerencial-chat-quick button {
  padding: 0.25rem 0.45rem;
  font-size: 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.55);
  color: var(--muted);
  cursor: pointer;
}
.gerencial-chat-quick button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.gerencial-chat-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.gerencial-chat-form input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.65);
  color: var(--text);
  font-size: 0.78rem;
}
.gerencial-chat-form button {
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: rgba(61, 157, 255, 0.2);
  color: var(--accent);
  font-size: 0.78rem;
  cursor: pointer;
}
.gerencial-chat-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Changes (Janela de Change) --- */
.changes-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.changes-panel h2 {
  margin: 0 0 0.25rem;
}
.changes-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.changes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.changes-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: flex-end;
  margin-bottom: 0.35rem;
}
.changes-filters label,
.changes-filters__submit {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 9rem;
}
.changes-filters__date {
  min-width: 11.5rem;
}
.changes-filters__status {
  min-width: 11rem;
  position: relative;
}
.changes-status-filter {
  position: relative;
  width: 100%;
}
.changes-status-filter__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.65);
  color: var(--text);
  font-size: 0.78rem;
  min-height: 2rem;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
}
.changes-status-filter__toggle-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.changes-status-filter__chevron {
  flex-shrink: 0;
  font-size: 0.62rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.changes-status-filter__toggle[aria-expanded="true"] .changes-status-filter__chevron {
  transform: rotate(180deg);
}
.changes-status-filter__toggle:hover {
  border-color: rgba(61, 157, 255, 0.45);
}
.changes-status-filter__panel {
  position: absolute;
  z-index: 40;
  left: 0;
  top: calc(100% + 0.25rem);
  min-width: 100%;
  width: max-content;
  max-width: 15rem;
  padding: 0.3rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  max-height: 10.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 156, 179, 0.45) transparent;
}
.changes-status-filter__panel::-webkit-scrollbar {
  width: 6px;
}
.changes-status-filter__panel::-webkit-scrollbar-thumb {
  background: rgba(139, 156, 179, 0.45);
  border-radius: 999px;
}
.changes-status-filter__panel[hidden] {
  display: none !important;
}
.changes-status-filter__options {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 9.5rem;
}
.changes-filters label.changes-status-filter__option {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  min-height: auto;
  padding: 0.32rem 0.4rem;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--text);
  cursor: pointer;
  border-radius: 5px;
  box-sizing: border-box;
}
.changes-status-filter__option:hover {
  background: rgba(61, 157, 255, 0.1);
}
.changes-status-filter__option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  margin: 0;
  accent-color: var(--accent);
}
.changes-status-filter__option-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.changes-status-filter__empty {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.35rem 0.4rem;
  margin: 0;
}
.changes-filters input[type="search"],
.changes-filters input[type="text"] {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.65);
  color: var(--text);
  font-size: 0.78rem;
  min-height: 2rem;
  box-sizing: border-box;
}
.changes-filters input[type="datetime-local"] {
  width: 100%;
  padding: 0.38rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.78rem;
  min-height: 2rem;
  box-sizing: border-box;
  color-scheme: dark;
}
.changes-filters__submit {
  min-width: auto;
  flex-shrink: 0;
}
.changes-filters__submit-spacer {
  font-size: 0.72rem;
  line-height: 1.2;
  min-height: 1.2em;
  visibility: hidden;
  user-select: none;
}
.changes-filters__btn {
  margin: 0;
  padding: 0.38rem 0.85rem;
  min-height: 2rem;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  white-space: nowrap;
}
.changes-filters__btn:hover {
  filter: brightness(1.08);
}
.changes-filters-tz {
  margin: 0 0 0.55rem;
  font-size: 0.65rem;
  color: var(--muted);
}
.changes-status {
  min-height: 1.1rem;
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.changes-table-wrap {
  overflow: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
.changes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  table-layout: auto;
}
.changes-table thead th {
  background: #8eacfd;
  color: #0a0e14;
  font-weight: 700;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.changes-table thead th.changes-th-sortable {
  cursor: pointer;
  user-select: none;
}
.changes-table thead th.changes-th-sortable:hover {
  background: #a8c0ff;
}
.changes-table thead th.changes-th-sortable.is-sorted-asc::after,
.changes-table thead th.changes-th-sortable.is-sorted-desc::after {
  font-size: 0.65rem;
  opacity: 0.85;
}
.changes-table thead th.changes-th-sortable.is-sorted-asc::after {
  content: " ▲";
}
.changes-table thead th.changes-th-sortable.is-sorted-desc::after {
  content: " ▼";
}
.changes-table tbody td {
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: top;
  color: var(--text);
  background: rgba(17, 24, 34, 0.92);
  max-width: 280px;
  word-break: break-word;
}
.changes-table tbody tr:nth-child(even) td {
  background: rgba(12, 17, 25, 0.95);
}
.changes-table .changes-col-id {
  font-weight: 600;
  white-space: nowrap;
  min-width: 7.5rem;
}
.changes-table .changes-col-summary {
  min-width: 180px;
  max-width: 320px;
}
.changes-table .changes-col-ressalva {
  min-width: 160px;
  max-width: 280px;
  white-space: pre-wrap;
  font-size: 0.7rem;
  line-height: 1.35;
  max-height: 4.2em;
  overflow: hidden;
  word-break: break-word;
}
.changes-table .changes-col-ressalva.is-long {
  cursor: help;
}
.changes-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  flex-shrink: 0;
}
.changes-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
  width: auto;
  flex-shrink: 0;
  color: var(--muted);
}
.changes-pagination select {
  width: auto;
  min-width: 3.5rem;
  margin-top: 0;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
}
.changes-pagination__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}
.changes-pagination__nav button {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.65);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
}
.changes-pagination__nav button:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
}
.changes-pagination__nav button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.changes-page-info {
  color: var(--muted);
  min-width: 9rem;
  text-align: center;
  white-space: nowrap;
}
.changes-local-import {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
}
.changes-local-import__hint {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.changes-dropzone {
  border: 1px dashed rgba(61, 157, 255, 0.45);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.changes-dropzone.is-dragover,
.changes-dropzone:hover {
  border-color: var(--accent);
  background: rgba(61, 157, 255, 0.06);
}
.changes-local-paste-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.75rem;
}
.changes-local-paste-label textarea {
  width: 100%;
  margin-top: 0.25rem;
  min-height: 5.5rem;
  resize: vertical;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.45rem 0.55rem;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}
.changes-local-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}
.changes-local-files-list {
  font-size: 0.72rem;
  color: var(--muted);
}
.changes-progress-modal[hidden] {
  display: none !important;
}
.changes-progress-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.changes-progress-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.changes-progress-modal__box {
  position: relative;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(70vh, 520px);
  overflow: auto;
  background: linear-gradient(180deg, #141c28 0%, #0f1623 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem 0.85rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  animation: changesModalIn 0.22s ease-out;
}
@keyframes changesModalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.changes-progress-modal__box h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}
.changes-progress-busy {
  margin: 0 0 0.55rem;
}
.changes-progress-busy[hidden] {
  display: none !important;
}
.changes-progress-busy__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.changes-progress-busy__bar {
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #6ee7b7);
  animation: changesProgressBar 1.15s ease-in-out infinite;
}
.changes-progress-busy.is-determinate .changes-progress-busy__bar {
  animation: none;
  width: 0%;
  transform: none;
  transition: width 0.12s ease-out;
}
@keyframes changesProgressBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.changes-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.changes-progress-step {
  position: relative;
  padding: 0.35rem 0.35rem 0.35rem 1.35rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
  border-radius: 4px;
}
.changes-progress-step::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(139, 156, 179, 0.35);
}
.changes-progress-step.is-active {
  color: var(--text);
  background: rgba(61, 157, 255, 0.08);
}
.changes-progress-step.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 157, 255, 0.25);
  animation: changesPulse 1s ease-in-out infinite;
}
.changes-progress-step.is-done {
  color: var(--ok);
}
.changes-progress-step.is-done::before {
  background: var(--ok);
  animation: none;
}
.changes-progress-step.is-error {
  color: var(--bad);
}
.changes-progress-step.is-error::before {
  background: var(--bad);
  animation: none;
}
@keyframes changesPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}
.changes-progress-summary {
  margin: 0.65rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}
.change-window-diff {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.change-window-diff strong {
  color: var(--warn);
}

/* API Calls tab */
#panel-api-calls.active {
  overflow: hidden;
}
.api-calls-panel.layout {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.api-calls-aside {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.api-calls-aside .route-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.api-calls-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  gap: 0.5rem;
}
.api-calls-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}
.api-calls-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.api-calls-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
}
.api-calls-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}
.api-calls-toggle.is-active {
  color: var(--accent);
  border-color: rgba(61, 157, 255, 0.55);
  background: rgba(61, 157, 255, 0.12);
}
.api-calls-head h2 {
  margin: 0;
  font-size: 1rem;
}
.api-calls-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.api-calls-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}
.api-calls-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.api-calls-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.api-calls-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 0.45rem 0.65rem;
  background: #121a28;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.api-calls-table tbody td,
.api-calls-table tfoot td {
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.api-calls-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
.api-calls-table tfoot td {
  background: #0f1623;
  border-top: 2px solid var(--border);
}
.api-calls-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.api-calls-muted {
  color: var(--muted);
}
.api-calls-row--api td:first-child {
  font-weight: 600;
}
.api-calls-total-row--grand td {
  font-size: 0.88rem;
}

.twilio-panel { gap: 1rem; }
.twilio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.twilio-fx {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  align-items: baseline;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  background: linear-gradient(100deg, rgba(245, 197, 66, 0.16), rgba(62, 207, 142, 0.08) 55%, rgba(61, 157, 255, 0.08));
}
.twilio-fx strong { color: var(--text); font-size: 1rem; }
.twilio-fx span { color: var(--muted); font-size: 0.82rem; }
.twilio-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem 0.8rem;
  position: relative;
  overflow: hidden;
}
.twilio-card--money {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(245, 197, 66, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(62, 207, 142, 0.08), var(--panel) 48%);
  border-color: rgba(62, 207, 142, 0.35);
}
.twilio-card__currency {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #f5c542;
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: 99px;
  padding: 0.1rem 0.4rem;
}
.twilio-card__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.twilio-card__value {
  margin: 0.4rem 0 0;
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.twilio-card__brl {
  margin: 0.15rem 0 0;
  color: #3ecf8e;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.twilio-card__legend,
.twilio-card__hint {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}
.twilio-forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.1rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 157, 255, 0.4);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(61, 157, 255, 0.16), transparent 52%),
    var(--panel);
}
.twilio-forecast--soon {
  border-color: rgba(255, 92, 92, 0.55);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(255, 92, 92, 0.16), transparent 52%),
    var(--panel);
}
.twilio-forecast__head {
  grid-column: 1 / -1;
}
.twilio-forecast__title {
  margin: 0;
  font-size: 0.95rem;
}
.twilio-forecast__basis {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
.twilio-forecast__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.twilio-forecast__value {
  margin: 0.28rem 0 0;
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.twilio-forecast__value--date {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}
.twilio-forecast__sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}
@media (max-width: 720px) {
  .twilio-forecast { grid-template-columns: 1fr; }
}
.twilio-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.75rem;
}
.twilio-chart { min-height: 180px; }
.twilio-chart svg .domain,
.twilio-chart svg .tick line { stroke: rgba(139, 156, 179, 0.35); }
.twilio-empty { color: var(--muted); margin: 0.5rem 0; }
.twilio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.35rem;
}
.twilio-legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  margin-right: 0.3rem;
}
.twilio-bar {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr auto;
  gap: 0.6rem;
  align-items: center;
  margin: 0.35rem 0;
}
.twilio-bar__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}
.twilio-bar__track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}
.twilio-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3d9dff, #3ecf8e);
  border-radius: 99px;
  transition: width 900ms cubic-bezier(0.22, 0.8, 0.32, 1);
}
.twilio-bar__legend {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: -0.2rem;
}
.twilio-price-legend {
  display: block;
  color: #3ecf8e;
  font-size: 0.75rem;
  font-weight: 600;
}
.twilio-price-minute {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}
.twilio-bar__value {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  white-space: nowrap;
}
.twilio-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin: 0;
}
.twilio-range label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.twilio-range input {
  background: #0d1219;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
  color-scheme: dark;
}
.twilio-range__apply {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
}
.twilio-range__apply:hover {
  filter: brightness(1.08);
}
.twilio-storage {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.twilio-low {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 92, 92, 0.55);
  background: rgba(255, 92, 92, 0.12);
  color: #ffb4b4;
  font-weight: 650;
}
.twilio-gauge { min-height: 160px; }
.twilio-gauge__svg { width: 100%; height: 180px; }
.twilio-gauge__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
  stroke-linecap: round;
}
.twilio-gauge__value {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dasharray 900ms cubic-bezier(0.22, 0.8, 0.32, 1);
}
.twilio-gauge__needle { stroke-width: 3; stroke-linecap: round; }
.twilio-gauge__mark { stroke: #f5c542; stroke-width: 3; }
.twilio-gauge__amount { fill: var(--text); font-size: 16px; font-weight: 700; }
.twilio-gauge__brl { fill: #3ecf8e; font-size: 11px; }
.twilio-gauge__caption {
  margin: 0.15rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}
.twilio-alert {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 14, 0.62);
}
.twilio-alert[hidden] { display: none; }
.twilio-alert__box {
  width: min(440px, calc(100% - 2rem));
  background: #1a1214;
  border: 1px solid rgba(255, 92, 92, 0.65);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.twilio-alert__box h3 { margin: 0 0 0.5rem; color: #ff8d8d; }
.twilio-alert__box p { margin: 0 0 1rem; line-height: 1.45; }
.twilio-alert__box button {
  background: #ff5c5c;
  color: #1a0b0b;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
