:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-hover: #1c222b;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;

  --green: #2ea043;
  --green-bg: rgba(46, 160, 67, 0.14);
  --green-border: rgba(46, 160, 67, 0.45);

  --yellow: #d29922;
  --yellow-bg: rgba(210, 153, 34, 0.14);
  --yellow-border: rgba(210, 153, 34, 0.5);

  --red: #f85149;
  --red-bg: rgba(248, 81, 73, 0.14);
  --red-border: rgba(248, 81, 73, 0.5);

  --radius: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* Cabeçalho */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 1.5rem;
  color: var(--accent);
}

.brand h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.summary-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.summary-pill strong {
  font-size: 1.05rem;
}

.summary-ok {
  border-color: var(--green-border);
  background: var(--green-bg);
}

.summary-ok strong {
  color: #3fb950;
}

.summary-problem {
  border-color: var(--red-border);
  background: var(--red-bg);
}

.summary-problem strong {
  color: var(--red);
}

/* Conteúdo principal */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px;
}

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

.toolbar-left,
.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.search-box input {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  min-width: 240px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-box input:focus {
  border-color: var(--accent);
}

.toggle-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.toggle-filter input {
  accent-color: var(--accent);
  cursor: pointer;
}

.last-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

/* Telas de autenticação (/setup e /login) */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.auth-field input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--accent);
}

.error-banner {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: #ffb4ae;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

/* Grade de cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.card:hover,
.card:focus-visible {
  background: var(--surface-hover);
  transform: translateY(-2px);
  outline: none;
}

.card-ok {
  border-left-color: var(--green);
}

.card-warn {
  border-left-color: var(--yellow);
}

.card-error {
  border-left-color: var(--red);
}

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

.card-title {
  margin: 0;
  font-size: 1.08rem;
  word-break: break-word;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
}

.badge-ok {
  color: #3fb950;
  background: var(--green-bg);
  border-color: var(--green-border);
}

.badge-warn {
  color: #e3b341;
  background: var(--yellow-bg);
  border-color: var(--yellow-border);
}

.badge-error {
  color: var(--red);
  background: var(--red-bg);
  border-color: var(--red-border);
}

.badge-info {
  color: #58a6ff;
  background: rgba(56, 139, 253, 0.15);
  border-color: rgba(56, 139, 253, 0.4);
}

.card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 0.86rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-weight: 500;
  word-break: break-word;
}

.metric-warn {
  color: #e3b341;
}

.metric-error {
  color: var(--red);
}

.metric-ok {
  color: #3fb950;
}

.card-commit {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.commit-msg {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.commit-meta {
  font-size: 0.76rem;
}

.card-actions {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.btn-deploy {
  padding: 7px 12px;
  font-size: 0.84rem;
}

.btn-deploy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Painel lateral (drawer) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 30;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(480px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.drawer-subtitle {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}

.btn-icon {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-icon:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.drawer-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-section h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawer-containers,
.drawer-deploys,
.drawer-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.86rem;
}

.list-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.list-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.container-stats {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-bar-track {
  width: 100%;
  height: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.stat-bar-warn {
  background: var(--yellow);
}

.stat-bar-danger {
  background: var(--red);
}

/* Notificações (sino, painel e toasts) */
.btn-notify:disabled {
  opacity: 0.65;
  cursor: default;
}

.notifications-wrapper {
  position: relative;
}

.bell-btn {
  position: relative;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bell-btn:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

.bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notifications-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
}

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

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.notifications-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notification-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: var(--surface-hover);
}

.notification-unread {
  background: rgba(88, 166, 255, 0.08);
  border-left: 3px solid var(--accent);
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notification-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
}

.toast-info {
  border-left-color: var(--green);
}

.toast-warn {
  border-left-color: var(--yellow);
}

.toast-error {
  border-left-color: var(--red);
}

.toast-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toast-title {
  font-weight: 600;
  font-size: 0.84rem;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 2px;
}

.toast-close:hover {
  color: var(--text);
}

/* Modal de confirmação de deploy */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 55;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-message {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.modal-warning {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  color: #e3b341;
  font-size: 0.85rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.modal-logs {
  width: min(820px, calc(100vw - 32px));
}

.logs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logs-lines-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.logs-pre {
  margin: 0;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 60vh;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.btn-logs {
  padding: 4px 10px;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 14px 16px;
  }

  .container {
    padding: 16px;
  }

  .search-box,
  .search-box input {
    width: 100%;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* Abas e auditoria (Riscos e pendências) */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.tab-btn.active {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.tab-badge {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 0.75rem;
}

.summary-warn {
  border-color: var(--yellow-border);
  background: var(--yellow-bg);
}

.summary-warn strong {
  color: var(--yellow);
}

.audit-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.audit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audit-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.select-input {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.audit-sev-alta {
  border-left-color: var(--red);
}

.audit-sev-media {
  border-left-color: var(--yellow);
}

.audit-sev-baixa {
  border-left-color: var(--accent);
}

.audit-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.audit-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.audit-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
}

.audit-badge-alta {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.audit-badge-media {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid var(--yellow-border);
}

.audit-badge-baixa {
  background: rgba(88, 166, 255, 0.14);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.45);
}

.audit-project-link {
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  cursor: pointer;
}

.audit-project-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.audit-rule-id {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

.audit-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.audit-message {
  margin: 0 0 6px;
  font-size: 0.94rem;
}

.audit-suggestion {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.memory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.memory-delete-btn {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* Painel do Agente */
.agent-view {
  display: block;
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .agent-layout {
    grid-template-columns: 1fr;
  }
}

.agent-chat-panel,
.agent-proposals-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  cursor: pointer;
}

.suggestion-chip:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.agent-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  max-height: 520px;
  overflow-y: auto;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.agent-msg {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  max-width: 92%;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
}

.agent-msg-user {
  align-self: flex-end;
  background: rgba(88, 166, 255, 0.14);
  border-color: rgba(88, 166, 255, 0.4);
}

.agent-msg-assistant {
  align-self: flex-start;
  background: var(--surface);
}

.agent-msg-role {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.agent-form {
  display: flex;
  gap: 8px;
}

.agent-input {
  flex: 1;
}

.agent-proposals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-proposals-header h2 {
  margin: 0;
  font-size: 1rem;
}

.agent-proposals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proposal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proposal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.proposal-reason {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
}

.proposal-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.proposal-actions {
  display: flex;
  gap: 8px;
}

.unmanaged-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.unmanaged-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.unmanaged-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.unmanaged-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent, #38bdf8);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.host-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.hosts-warning-banner {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}
