/* Synora — light UI (WeStack-inspired) */

:root {
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-muted: #fff7ed;
  --accent-glow: rgba(249, 115, 22, 0.2);
  --accent-cyan: #0ea5e9;
  --accent-indigo: #6366f1;

  --bg-root: #f3f4f6;
  --bg-sidebar: #f8f9fb;
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-elevated: #f9fafb;
  --bg-hover: #f3f4f6;

  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-subtle: #f3f4f6;

  --success: #16a34a;
  --success-bg: #f0fdf4;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --warning: #d97706;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --sidebar-width: 248px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light; }

body {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg-root);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  min-height: 100vh;
}

/* ── Login ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-glow {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.brand {
  text-align: center;
  margin-bottom: 24px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}

.brand h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}

.brand-mark {
  color: var(--accent);
}

.login-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-details {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.login-details summary {
  cursor: pointer;
  color: var(--accent);
}

.login-details p { margin-top: 8px; }

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.login-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
  font-size: 13px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
}

.inline-form { display: inline; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-subtle); }

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text); }

body,
.sidebar,
.main-wrap,
.question-card,
.login-card,
.topbar {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-link-anuncio {
  margin-left: auto;
  padding: 5px 12px;
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.btn-link-anuncio:hover { background: var(--accent); color: #fff; }

/* ── Forms ── */
input, textarea, select {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

textarea {
  width: 100%;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}

textarea:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.code-block {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  word-break: break-all;
  margin: 8px 0;
  color: var(--text-secondary);
}

.hint { color: var(--text-muted); font-size: 12px; margin: 8px 0; }

/* ── Alerts ── */
.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid;
}

.alert-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.65;
}

.alert-dismiss:hover { opacity: 1; }

.alert-error { background: var(--error-bg); color: var(--error); border-color: var(--error); }
.alert-ok { background: var(--success-bg); color: var(--success); border-color: var(--success); }

.manual-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.manual-box summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.manual-box ol { margin: 12px 0; padding-left: 20px; color: var(--text-muted); }

.login-setup-box {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 13px;
  text-align: left;
}

.login-setup-box strong {
  display: block;
  margin-bottom: 8px;
}

.login-setup-box ol {
  margin: 8px 0;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.login-setup-box code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-card);
  padding: 1px 5px;
  border-radius: 4px;
}

.login-setup-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.login-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  text-align: left;
}

.login-step {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.login-step--active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.login-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.login-step p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.login-step-hint {
  margin-top: 8px !important;
}

.code-block--small {
  display: block;
  font-size: 11px;
  word-break: break-all;
  margin: 8px 0;
}

.login-code-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
}

.footer-note {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}
.footer-note code {
  font-family: var(--font-mono);
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── App shell (Cursor-like) ── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 16px 12px;
  min-height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 20px;
  text-decoration: none;
  color: var(--text);
}

.sidebar-brand-icon {
  flex-shrink: 0;
  border-radius: 8px;
}

.sidebar-brand-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-muted);
  color: var(--accent);
}

.nav-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item.active .nav-svg {
  opacity: 1;
  stroke: var(--accent);
}

.sidebar-agents {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px 10px;
}

.sidebar-agent-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.sidebar-agent-row:hover {
  background: var(--bg-hover);
}

.sidebar-agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
}

.sidebar-agent-dot.is-on {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.sidebar-agent-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.sidebar-agent-status {
  font-size: 10px;
  color: var(--text-muted);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 10px;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sidebar-user-meta {
  min-width: 0;
}

.sidebar-user-meta strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-meta small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.sidebar-logout:hover {
  color: var(--error);
}

/* ── Main content ── */
.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-main);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-main);
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.page-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.stat-chip strong {
  color: var(--text);
  font-weight: 600;
}

.stat-chip--accent {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  background: var(--accent-muted);
}

.stat-chip--accent strong { color: var(--accent); }

.stat-chip--ok {
  border-color: rgba(22, 163, 74, 0.25);
  background: var(--success-bg);
}

.stat-chip--ok strong { color: var(--success); }

.stat-chip--warn {
  border-color: rgba(220, 38, 38, 0.2);
  background: var(--error-bg);
}

.stat-chip--warn strong { color: var(--error); }

.stat-chip--agent em {
  font-style: normal;
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
}

.agent-dot { font-size: 14px; }

.topbar-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* ── Question cards ── */
/* ── Filter bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.filter-input {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 12px;
  min-width: 0;
}

.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.filter-bar .filter-input:first-child { flex: 1; min-width: 140px; }
.filter-input--id { width: 120px; }

.filter-field { display: none; }
.filter-help { display: none; }

.api-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.filter-help {
  margin: -8px 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Question cards with image ── */
.question-card-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.item-thumb-wrap { flex-shrink: 0; }

.item-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  display: block;
}

.item-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}

.question-content { flex: 1; min-width: 0; }

.question-group,
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.question-group:hover,
.question-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.question-group-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
}

.question-group-info { flex: 1; min-width: 0; }

.question-group-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.badge-count {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}

.badge-inativo {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-ativo {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.question-group-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.question-entry {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.question-entry:last-child {
  border-bottom: none;
}

.question-entry .reply-form {
  margin-top: 10px;
}

.semaforo-hint {
  font-size: 12px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  line-height: 1.4;
}

.semaforo-verde {
  border-left-color: #22c55e;
}

.semaforo-amarelo {
  border-left-color: #eab308;
}

.semaforo-vermelho {
  border-left-color: #ef4444;
}

.questions-list { display: flex; flex-direction: column; gap: 12px; }

.question-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.buyer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--accent-muted);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.question-text {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.item-block {
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
}

.reply-form {
  margin-top: 4px;
}

.reply-form textarea {
  width: 100%;
  display: block;
  min-height: 64px;
  resize: vertical;
}

.reply-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.reply-form-actions .btn {
  min-height: 32px;
  line-height: 1;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-icon {
  width: 48px;
  height: 48px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.empty-state h2 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 13px; }

.help-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.help-box summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  font-size: 13px;
}

.help-box ul {
  margin: 10px 0 0 18px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.help-box li { margin-bottom: 4px; }

.config-form { max-width: 720px; }

.config-form textarea {
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 400px;
}

.agent-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  max-width: 520px;
}

.agent-strip-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.agent-strip-text {
  font-size: 13px;
  line-height: 1.4;
}

.agent-strip-text strong {
  color: var(--text);
}

.agent-strip-text small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.agent-strip-text a {
  color: var(--accent);
  text-decoration: none;
}

.team-intro {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.agent-card--em_breve {
  opacity: 0.85;
}

.agent-card--em_breve .agent-desc {
  color: var(--text-muted);
}

.agent-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.agent-avatar--accent {
  background: var(--accent-muted);
  border-color: transparent;
}

.agent-card-title {
  flex: 1;
  min-width: 0;
}

.agent-card-title h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
}

.agent-card-title p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.agent-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.agent-status--ativo {
  background: var(--success-bg);
  color: var(--success);
}

.agent-status--em_breve {
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.agent-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}

.agent-live {
  margin: -4px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.45;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.agent-live--busy {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
  background: var(--accent-muted);
  color: var(--text);
}

.agent-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.agent-stat {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.agent-stat strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}

.agent-stat span {
  font-size: 11px;
  color: var(--text-muted);
}

.agent-soon {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.team-history {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.team-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.team-history-header h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.team-history-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}

.activity-body strong {
  margin-right: 6px;
}

.activity-body span {
  color: var(--text-secondary);
}

.activity-body small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.activity-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.empty-state.compact {
  padding: 24px 16px;
}

@media (max-width: 768px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }
  .sidebar-agents { display: none; }
  .sidebar-footer { display: none; }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .main { padding: 16px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-input--id { width: 100%; }
}

/* ── Minimal UI extras ── */
.semaforo-dot {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
}

.semaforo-dot--verde {
  background: var(--success-bg);
  color: var(--success);
}

.semaforo-dot--amarelo {
  background: rgba(250, 204, 21, 0.12);
  color: var(--warning);
}

.semaforo-dot--vermelho {
  background: var(--error-bg);
  color: var(--error);
}

.hint-line {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.hint-line--error { color: var(--error); }

.btn-icon-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 6px;
}
.btn-icon-link:hover { color: var(--accent); background: var(--accent-muted); }

.account-box {
  text-align: center;
  padding: 16px;
  background: var(--accent-muted);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.account-box p {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px;
}
