﻿/* ============================================================
   META ADS CHAT — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Cores base — CHAT IA SETEN dark palette */
  --bg-0: #020617;
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --bg-3: #334155;
  --bg-4: #475569;
  --border: #1e293b;
  --border-hover: #334155;

  /* Texto */
  --text-0: #f1f5f9;
  --text-1: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;

  /* Azul (brand) */
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-glow: rgba(37,99,235,0.2);

  /* Destaque / acento */
  --accent: #3b82f6;
  --accent-glow: rgba(59,130,246,0.2);

  /* Status */
  --green:  #10b981;
  --emerald: #34d399;
  --yellow: #fbbf24;
  --red:    #ef4444;
  --green-dim:  rgba(52,211,153,0.1);
  --yellow-dim: rgba(251,191,36,0.1);
  --red-dim:    rgba(239,68,68,0.1);

  /* Tipografia */
  --font: 'Inter', system-ui, sans-serif;

  /* Layout */
  --sidebar-w: 360px;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --radius-lg: 1.5rem;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: #334155 transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ════════════════════════════════════════════════════════════ */
#app {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ── SIDEBAR ──────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--bg-2);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
  transition: all .3s ease;
}

/* Logo */
.sidebar-logo {
  padding: 16px;
  border-bottom: 1px solid var(--bg-2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-600);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon i { color: #fff; font-size: 18px; }

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.logo-text p {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

/* Navigation */
.sidebar-nav {
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: all .2s;
  text-align: left;
}
.nav-btn i { font-size: 14px; width: 20px; text-align: center; }
.nav-btn:hover { background: var(--bg-2); color: var(--text-1); }
.nav-btn.active {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* Nova conversa */
.btn-new-chat {
  margin: 12px 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  width: calc(100% - 24px);
  transition: all .2s;
}
.btn-new-chat:hover { background: var(--bg-2); color: #fff; }
.btn-new-chat.active {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.45);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.18);
}

/* Section label */
.sidebar-section {
  padding: 16px 16px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Conversation list */
#conversation-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.conv-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conv-group-toolbar {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.conv-group-toolbar .conv-group-header {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.conv-group-header {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all .15s;
  text-align: left;
}

.conv-group-header:hover {
  background: var(--bg-2);
  color: var(--text-1);
}

.conv-group-header.selected {
  background: rgba(37,99,235,0.12);
  border-color: rgba(59,130,246,0.2);
  color: var(--text-1);
}

.conv-group-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.conv-group-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(59,130,246,0.12);
  color: var(--blue-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conv-group-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conv-group-title {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-group-sub {
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
}

.conv-group-chevron {
  color: var(--text-3);
  font-size: 11px;
  transition: transform .15s;
}

.conv-group-rename {
  width: 34px;
  min-width: 34px;
  min-height: 48px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all .15s;
  cursor: pointer;
  flex-shrink: 0;
}

.conv-group-delete {
  width: 34px;
  min-width: 34px;
  min-height: 48px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all .15s;
  cursor: pointer;
  flex-shrink: 0;
}

.conv-group-rename:hover {
  background: var(--bg-2);
  border-color: rgba(59,130,246,0.16);
  color: var(--text-1);
}

.conv-group-delete:hover {
  background: rgba(248,113,113,0.08);
  border-color: rgba(248,113,113,0.2);
  color: #f87171;
}

.conv-group-chevron.collapsed {
  transform: rotate(-90deg);
}

.conv-group-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(71,85,105,0.35);
  margin-left: 13px;
}

.conv-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  font-size: 13px;
  transition: all .15s;
  position: relative;
  box-sizing: border-box;
}

.conv-item-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.conv-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.conv-item:hover {
  background: var(--bg-2);
  color: var(--text-1);
}
.conv-item:hover .conv-actions { opacity: 1; }
.conv-item i.conv-icon {
  color: var(--text-3);
  font-size: 12px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  margin-top: 2px;
}
.conv-item .conv-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  line-height: 1.35;
}
.conv-account {
  font-size: 10px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.conv-item.active .conv-account { color: var(--text-2); }
.conv-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s;
}
.conv-item.active .conv-actions { opacity: 1; }

.conv-item-nested {
  padding-left: 12px;
}
.conv-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-3);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all .15s;
}
.conv-btn:hover {
  background: var(--bg-3);
  color: var(--text-1);
}
.conv-btn-danger:hover { color: #f87171; background: rgba(248,113,113,0.1); }

.conv-empty {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-3);
}

/* Sidebar footer */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--bg-2);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: #1d4ed8;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-avatar i { color: #fff; font-size: 12px; }

.user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}
.user-status {
  font-size: 11px;
  color: var(--emerald);
}

.btn-icon-gear {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all .15s;
}
.btn-icon-gear:hover { color: var(--text-1); background: var(--bg-2); }

/* ── AREA PRINCIPAL ───────────────────────────────────────────── */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  background: var(--bg-0);
}

/* Header */
#topbar {
  height: 64px;
  border-bottom: 1px solid var(--bg-2);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  background: #059669;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-avatar i { color: #fff; font-size: 13px; }

.topbar-info { flex: 1; }
.topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.topbar-status {
  font-size: 12px;
  color: var(--emerald);
  margin-top: 1px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  font-size: 14px;
}
.btn-icon:hover { background: var(--bg-2); color: #fff; }

#btn-menu { display: none; }

/* Chat messages */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

/* ── WELCOME SCREEN ───────────────────────────────────────────── */
#welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

.welcome-icon {
  width: 64px;
  height: 64px;
  background: rgba(37,99,235,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
  color: var(--blue-400);
}

.welcome-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.welcome-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
  text-align: left;
  max-width: 640px;
  width: 100%;
}
@media (min-width: 640px) {
  .suggestions-grid { grid-template-columns: repeat(2, 1fr); }
}

.suggestion-card {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.suggestion-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.suggestion-card .icon {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.sug-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
}
.sug-icon.blue    { color: var(--blue-400); }
.sug-icon.amber   { color: #f59e0b; }
.sug-icon.emerald { color: var(--emerald); }
.sug-icon.purple  { color: #a78bfa; }

.suggestion-card .sug-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 4px;
}
.suggestion-card .sug-sub {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── MENSAGENS ────────────────────────────────────────────────── */
#messages-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
  padding: 24px 16px;
}

.msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
}
.msg-user {
  flex-direction: row-reverse;
  justify-content: flex-start;
  animation: slideInRight .3s ease-out;
}
.msg:not(.msg-user) {
  animation: slideInLeft .3s ease-out;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}
.avatar-user { background: var(--blue-600); color: #fff; }
.avatar-ai   { background: #065f46; color: #fff; }

.msg-bubble {
  max-width: min(85%, 720px);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.msg-user .msg-bubble {
  margin-left: auto;
}

.msg-bubble-user {
  background: var(--blue-600);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-bubble-ai {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  color: var(--text-1);
  border-bottom-left-radius: 4px;
}

.msg-content { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.msg-data    { max-width: 100%; }

/* Typing */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.typing-dots span {
  width: 8px; height: 8px;
  background: var(--blue-500);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 100% { opacity: .3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
.typing-label { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ── MARKDOWN ─────────────────────────────────────────────────── */
.msg-bubble-ai h1 { font-size: 18px; font-weight: 700; color: var(--text-0); margin: 12px 0 8px; }
.msg-bubble-ai h2 { font-size: 15px; font-weight: 700; color: var(--text-0); margin: 12px 0 6px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.msg-bubble-ai h3 { font-size: 13px; font-weight: 700; color: var(--text-0); margin: 10px 0 4px; }
.msg-bubble-ai strong { color: var(--text-0); font-weight: 600; }
.msg-bubble-ai em { color: var(--blue-400); font-style: normal; }
.msg-bubble-ai ul, .msg-bubble-ai ol { padding-left: 20px; margin: 6px 0; }
.msg-bubble-ai li { margin-bottom: 3px; }
.msg-bubble-ai p { margin-bottom: 6px; }
.msg-bubble-ai code { background: var(--bg-3); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--blue-400); }
.msg-bubble-ai pre { background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px; padding: 14px; overflow-x: auto; margin: 8px 0; }
.msg-bubble-ai pre code { background: none; border: none; padding: 0; color: var(--text-1); }
.msg-bubble-ai a { color: var(--blue-400); text-decoration: none; }
.msg-bubble-ai a:hover { text-decoration: underline; }
.msg-bubble-ai hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* Tabela Markdown */
.md-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
.md-table th { background: var(--bg-3); color: var(--text-0); font-weight: 600; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.md-table td { padding: 7px 12px; border-bottom: 1px solid var(--border); color: var(--text-1); }
.md-table tr:last-child td { border-bottom: none; }
.md-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── TABELA DE CAMPANHAS (DATA BLOCK) ─────────────────────────── */
.data-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.data-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
}
.data-filter {
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-3);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.account-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--blue-glow);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--blue-400);
}

.campaign-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.campaign-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 700px;
}
.campaign-table thead { background: var(--bg-3); }
.campaign-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-2);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.campaign-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  vertical-align: middle;
}
.campaign-table tr:last-child td { border-bottom: none; }
.campaign-table tr:hover td { background: rgba(255,255,255,0.02); }

.col-num  { color: var(--text-3); width: 36px; text-align: center; }
.col-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--text-0); }
.col-metric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.metric-good { color: var(--green) !important; font-weight: 600; }
.metric-avg  { color: var(--yellow) !important; }
.metric-bad  { color: var(--red) !important; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .03em;
}
.status-active   { background: var(--green-dim); color: var(--green); }
.status-paused   { background: var(--yellow-dim); color: var(--yellow); }
.status-archived { background: rgba(99,120,180,0.1); color: var(--text-3); }


.data-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ── INPUT AREA ───────────────────────────────────────────────── */
#input-area {
  padding: 16px;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--bg-2);
  flex-shrink: 0;
}

.input-wrapper {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.input-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: border-color .2s;
}
.input-box:focus-within {
  border-color: rgba(59,130,246,0.3);
}

.input-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #059669;
  border-radius: 0.5rem;
  flex-shrink: 0;
  margin: 10px 0 10px 12px;
}
.input-icon i { color: #fff; font-size: 13px; }

#chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-1);
  resize: none;
  max-height: 160px;
  min-height: 56px;
  line-height: 1.5;
  padding: 16px 14px;
}
#chat-input::placeholder { color: var(--text-3); font-style: normal; }

#btn-send {
  width: 36px;
  height: 36px;
  background: var(--blue-600);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
  margin: 10px 12px 10px 0;
}
#btn-send:disabled { opacity: .5; cursor: not-allowed; }
#btn-send:not(:disabled):hover { background: var(--blue-500); }

.input-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  gap: 6px;
  font-size: 11px;
  color: var(--text-3);
}
.input-footer kbd {
  display: inline-flex;
  padding: 2px 6px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 10px;
  color: var(--text-2);
}

/* ── MODAL ────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.modal-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 600; color: #fff; }
.modal-body  { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--bg-2);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 500; color: var(--text-2); }

.field select,
.field input {
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.field select:focus,
.field input:focus { border-color: rgba(59,130,246,0.5); }
.field select option { background: var(--bg-2); }
.field select:disabled { opacity: .5; cursor: wait; }

/* Account detail */
#account-detail {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-row { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.detail-value { font-size: 12px; color: var(--text-0); font-weight: 500; }

/* Botões */
.btn-primary {
  padding: 10px 20px;
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary:hover { background: var(--blue-500); }

.btn-secondary {
  padding: 10px 20px;
  background: var(--bg-2);
  color: var(--text-1);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.btn-secondary:hover { background: var(--bg-3); color: #fff; }

.btn-icon-sm {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.btn-icon-sm:hover { background: var(--bg-3); color: var(--text-0); border-color: var(--border-hover); }

/* ── TOAST ────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  font-size: 13px;
  color: var(--text-1);
}
.toast-show { animation: toastIn .3s ease forwards; }
.toast-hide { animation: toastOut .3s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } }

/* ── UTILITIES ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.spin   { animation: spin .7s linear infinite; }
.fa-spin { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Data block messages get a subtle left accent */
.data-block-msg .msg-content {
  border-left: 2px solid rgba(59,130,246,0.3);
  padding-left: 12px;
}

/* Typing label — varia por intent */
.typing-label { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.typing-label.fetch  { color: var(--blue-400); }
.typing-label.analyze { color: var(--green); }
.typing-label.general { color: var(--text-2); }

/* Input placeholder hint (already defined in input area) */

/* ── COMMUNICATION MODE ───────────────────────────────────────── */

/* Botão Criar Comunicação */
.btn-comm-chat {
  margin: 4px 12px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  color: var(--emerald);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  width: calc(100% - 24px);
  transition: all .2s;
}
.btn-comm-chat:hover { background: rgba(52,211,153,0.05); border-color: rgba(52,211,153,0.4); }
.btn-comm-chat:active { background: rgba(52,211,153,0.1); }
.btn-comm-chat.active {
  background: rgba(52,211,153,0.1);
  border-color: var(--emerald);
  box-shadow: 0 4px 12px rgba(52,211,153,0.15);
}

/* Comm messages container */
#comm-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
#comm-messages:not(.hidden) {
  display: flex;
}

#comm-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

#comm-container {
  flex-direction: column;
  gap: 24px;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
  padding: 24px 16px;
}
#comm-container:not(.hidden) {
  display: flex;
}

/* Barra de análise da conta no chat */
.account-insights-bar {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}
.account-insights-bar.hidden { display: none; }
.insights-bar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  user-select: none;
}
.insights-bar-header:hover { color: var(--text-1); background: var(--bg-2); }
.insights-bar-header i.fa-brain { color: var(--emerald); }
.insights-bar-header .insights-bar-chevron {
  margin-left: auto;
  font-size: 11px;
  transition: transform .2s;
}
.account-insights-bar.expanded .insights-bar-chevron { transform: rotate(180deg); }
.insights-bar-body {
  max-height: 200px;
  overflow-y: auto;
  padding: 0 20px 14px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}
.insights-bar-body.hidden { display: none; }
.insights-bar-body p { margin-bottom: 8px; }
.insights-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--blue-400);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.insights-bar-link:hover { text-decoration: underline; }

/* Comm icon welcome */
.welcome-icon.comm-icon {
  background: rgba(16,185,129,0.15);
  color: var(--emerald);
}

/* Avatar comunicação */
.avatar-comm {
  background: #065f46;
  color: #fff;
}

/* Copy button for communication messages */
.btn-copy-comm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
  margin-top: 6px;
  width: fit-content;
}
.btn-copy-comm:hover {
  background: var(--bg-4);
  color: var(--text-0);
  border-color: var(--border-hover);
}

/* Typing label for communication */
.typing-label.comm-typing { color: var(--green); }

/* Comm mode active state on sidebar button */
.comm-mode-active .btn-comm-chat {
  box-shadow: 0 0 0 2px var(--green), 0 4px 16px rgba(4,120,87,0.3);
}

/* ── DOCUMENTS VIEW ───────────────────────────────────────────── */
#documents-view {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: var(--bg-0);
}

.docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--bg-2);
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(12px);
}
.docs-title { font-size: 18px; font-weight: 700; color: #fff; }
.docs-subtitle { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.btn-new-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.btn-new-doc:hover { background: var(--blue-500); }

.learning-editor {
  width: 100%;
  min-height: 280px;
  font-size: 14px;
  line-height: 1.6;
}

.docs-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 32px 0;
}

.doc-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--bg-3);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.doc-tab:hover { background: var(--bg-2); color: var(--text-1); }
.doc-tab.active {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}
.doc-tab i { font-size: 12px; }

#docs-content { padding: 24px 32px; }

.docs-section { margin-bottom: 24px; }
.docs-section-title { font-size: 15px; font-weight: 600; color: var(--text-0); margin-bottom: 4px; }
.docs-section-sub { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.doc-card {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: all .2s;
}
.doc-card:hover { border-color: rgba(59,130,246,0.3); }

.doc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.doc-card-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-600);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-card-icon i { color: #fff; font-size: 13px; }

.doc-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.doc-card-title { font-size: 14px; font-weight: 600; color: var(--text-0); margin-bottom: 6px; }
.doc-card-desc { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-bottom: 12px; }

.doc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--bg-2);
}
.doc-card-date { font-size: 11px; color: var(--text-3); }
.doc-card-actions { display: flex; gap: 8px; }
.doc-card-actions button {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all .15s;
}
.doc-card-actions button:hover { color: var(--text-1); background: var(--bg-2); }

.docs-empty { font-size: 13px; color: var(--text-3); padding: 16px 0; }

/* Insights section */
.insights-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius-sm);
}
.insights-empty-icon {
  width: 56px;
  height: 56px;
  background: rgba(37,99,235,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--blue-400);
}
.insights-empty h4 { font-size: 15px; font-weight: 600; color: var(--text-0); margin-bottom: 8px; }
.insights-empty p { font-size: 13px; color: var(--text-3); margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; }
.insights-empty i.fa-exclamation-triangle { font-size: 24px; color: var(--yellow); margin-bottom: 12px; }

.btn-generate-insights {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.btn-generate-insights:hover { background: var(--blue-500); }

.insights-loader {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius-sm);
}
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-3);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 14px; font-weight: 500; color: var(--text-1); margin-bottom: 4px; }
.loader-sub { font-size: 12px; color: var(--text-3); }

.insights-card {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-2);
}
.insights-header h4 { font-size: 14px; font-weight: 600; color: var(--text-0); }
.insights-date { font-size: 11px; color: var(--text-3); }
.insights-actions { display: flex; gap: 8px; }

.btn-insights-refresh {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.btn-insights-refresh:hover { background: var(--bg-3); color: var(--text-1); }

.insights-content {
  padding: 20px;
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.7;
  max-height: 500px;
  overflow-y: auto;
}
.insights-content h1, .insights-content h2, .insights-content h3 { margin-top: 16px; margin-bottom: 8px; }
.insights-content h2 { font-size: 15px; color: var(--text-0); }
.insights-content h3 { font-size: 14px; color: var(--text-0); }
.insights-content ul { padding-left: 16px; margin: 8px 0; }
.insights-content li { margin-bottom: 4px; }
.insights-content strong { color: var(--text-0); }
.insights-content code { background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* Document modal forms */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.form-input {
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: rgba(59,130,246,0.4); }
.form-textarea {
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13px;
  resize: vertical;
  min-height: 120px;
  outline: none;
  line-height: 1.6;
  transition: border-color .2s;
}
.form-textarea:focus { border-color: rgba(59,130,246,0.4); }

.btn-modal-cancel {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.btn-modal-cancel:hover { background: var(--bg-2); color: var(--text-1); }

.btn-modal-save {
  padding: 8px 20px;
  background: var(--blue-600);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.btn-modal-save:hover { background: var(--blue-500); }

/* Active conversation in sidebar */
.conv-item.active {
  background: var(--bg-2);
  color: var(--text-1);
  box-shadow: inset 3px 0 0 var(--blue-500);
}
.conv-item.active .conv-icon { color: var(--blue-400); }
.conv-item.active .conv-title { font-weight: 600; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #sidebar {
    position: fixed;
    left: calc(-1 * var(--sidebar-w));
    top: 0; bottom: 0;
    z-index: 50;
    transition: left .3s ease;
  }
  #sidebar.open { left: 0; }

  #btn-menu { display: flex; }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 40;
  }

  .suggestions-grid { grid-template-columns: 1fr; }
  #account-detail { grid-template-columns: 1fr; }
}

/* ── LOGIN PAGE ─────────────────────────────────────────────── */
body.login-page {
  overflow: auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(16,185,129,0.12), transparent 28%),
    var(--bg-0);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px);
  gap: 32px;
  padding: 32px;
}

.login-showcase,
.login-card {
  background: rgba(15,23,42,0.78);
  border: 1px solid rgba(148,163,184,0.12);
  box-shadow: 0 24px 80px rgba(2,6,23,0.45);
  backdrop-filter: blur(18px);
}

.login-showcase {
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-showcase::after {
  content: '';
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,0.28), transparent 68%);
  pointer-events: none;
}

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

.login-copy {
  max-width: 640px;
  margin: 48px 0 36px;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(96,165,250,0.18);
  color: var(--blue-400);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-copy h2 {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.login-copy p {
  margin-top: 18px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

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

.login-feature-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(30,41,59,0.72);
  border: 1px solid rgba(148,163,184,0.1);
}

.login-feature-card i {
  color: var(--blue-400);
  font-size: 18px;
  margin-top: 2px;
}

.login-feature-card strong {
  display: block;
  color: var(--text-0);
  font-size: 13px;
  margin-bottom: 4px;
}

.login-feature-card span {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  border-radius: 24px;
  padding: 28px;
}

.login-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-card-header h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 4px;
}

.login-card-header p {
  color: var(--text-3);
  font-size: 13px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 18px;
}

.login-error {
  border: 1px solid rgba(239,68,68,0.22);
  background: rgba(127,29,29,0.22);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
}

.login-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(30,41,59,0.72);
  border: 1px solid rgba(148,163,184,0.1);
}

.login-note strong {
  display: block;
  color: var(--text-0);
  font-size: 12px;
  margin-bottom: 4px;
}

.login-note span {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
}

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

  .login-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-shell {
    padding: 18px;
    gap: 18px;
  }

  .login-showcase,
  .login-card {
    border-radius: 22px;
    padding: 22px;
  }

  .login-copy {
    margin: 32px 0 24px;
  }
}
