:root{
  --atlas-bg:#f8f9ff;--atlas-surface:#ffffff;--atlas-surface-low:#eff4ff;--atlas-surface-container:#e5eeff;--atlas-surface-high:#dce9ff;
  --atlas-text:#0b1c30;--atlas-muted:#424754;--atlas-outline:#c2c6d6;--atlas-primary:#0058be;--atlas-primary-2:#2170e4;
  --atlas-green:#10b981;--atlas-yellow:#f59e0b;--atlas-red:#ef4444;--atlas-purple:#8b5cf6;--atlas-shadow:0 8px 24px rgba(15,23,42,.08);
  --atlas-radius:16px;--atlas-radius-sm:10px;--atlas-sidebar:256px;--atlas-topbar:64px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--atlas-text);background:var(--atlas-bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.atlas-body{min-height:100vh}.atlas-sidebar{position:fixed;inset:0 auto 0 0;width:var(--atlas-sidebar);background:var(--atlas-surface-low);border-right:1px solid var(--atlas-outline);z-index:40;padding:20px 0;display:flex;flex-direction:column}.atlas-brand-block{display:flex;gap:12px;align-items:center;padding:0 24px 24px}.atlas-brand-mark{width:42px;height:42px;border-radius:14px;background:var(--atlas-primary);color:white;display:grid;place-items:center;font-weight:800;letter-spacing:.04em}.atlas-brand-mark-large{width:64px;height:64px;font-size:22px;margin:auto}.atlas-brand-title{font-weight:800;color:var(--atlas-primary);font-size:20px}.atlas-brand-subtitle,.atlas-sidebar-note,.atlas-user-meta small,.atlas-list-row small,.atlas-empty,.atlas-page-header p{color:var(--atlas-muted);font-size:13px}.atlas-nav-list{display:flex;flex-direction:column;gap:4px;padding:0 12px;flex:1}.atlas-nav-item{display:flex;align-items:center;gap:12px;border-left:4px solid transparent;padding:12px 14px;border-radius:0 12px 12px 0;color:var(--atlas-muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em;font-size:12px}.atlas-nav-item:hover,.atlas-nav-item.is-active{background:var(--atlas-surface-container);color:var(--atlas-primary);border-left-color:var(--atlas-primary)}.atlas-nav-icon{font-size:18px;min-width:20px}.atlas-sidebar-footer{padding:20px 24px;display:grid;gap:8px}.atlas-topbar{position:fixed;left:var(--atlas-sidebar);right:0;top:0;height:var(--atlas-topbar);background:var(--atlas-surface);border-bottom:1px solid var(--atlas-outline);z-index:45;display:flex;align-items:center;gap:20px;padding:0 32px;box-shadow:0 2px 8px rgba(15,23,42,.04)}.atlas-topbar-title{display:grid}.atlas-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--atlas-primary);font-weight:800}.atlas-topbar-search{flex:1;max-width:560px}.atlas-topbar-search input,.atlas-search-hero input,.atlas-filter-bar input,.atlas-form input,.atlas-form select,.atlas-form textarea{width:100%;border:1px solid var(--atlas-outline);border-radius:12px;background:#fff;padding:11px 14px;color:var(--atlas-text);outline:none}.atlas-topbar-search input:focus,.atlas-search-hero input:focus,.atlas-form input:focus,.atlas-form textarea:focus{border-color:var(--atlas-primary);box-shadow:0 0 0 3px rgba(0,88,190,.15)}.atlas-topbar-actions{display:flex;align-items:center;gap:12px}.atlas-user-chip{display:flex;align-items:center;gap:10px}.atlas-avatar{width:36px;height:36px;border-radius:999px;background:var(--atlas-surface-container);display:grid;place-items:center;font-weight:800;color:var(--atlas-primary)}.atlas-main{margin-left:var(--atlas-sidebar);padding:96px 32px 48px;min-height:100vh}.atlas-page-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:28px}.atlas-page-header h1{font-size:34px;line-height:1.15;margin:4px 0 6px;letter-spacing:-.03em}.atlas-button{border:0;border-radius:12px;padding:10px 16px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.atlas-button-primary{background:var(--atlas-primary);color:#fff}.atlas-button-primary:hover{background:#004395}.atlas-button-ghost{background:var(--atlas-surface-container);color:var(--atlas-primary)}.atlas-button-danger{background:var(--atlas-red);color:white}.atlas-button-full{width:100%}.atlas-icon-button{width:38px;height:38px;border-radius:12px;background:var(--atlas-surface-container);display:grid;place-items:center;color:var(--atlas-primary);border:0}.atlas-mobile-only{display:none}.atlas-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:28px}.atlas-kpi-card,.atlas-card{background:var(--atlas-surface);border:1px solid var(--atlas-outline);border-radius:var(--atlas-radius);box-shadow:var(--atlas-shadow)}.atlas-kpi-card{padding:22px;border-top:4px solid var(--atlas-primary)}.atlas-kpi-card span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--atlas-muted);font-weight:800}.atlas-kpi-card strong{display:block;font-size:34px;margin:8px 0}.border-red{border-top-color:var(--atlas-red)}.border-yellow{border-top-color:var(--atlas-yellow)}.border-green{border-top-color:var(--atlas-green)}.atlas-card{padding:22px}.atlas-card-compact{padding:16px}.atlas-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.atlas-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:24px}.atlas-grid-main-side{grid-template-columns:minmax(0,1fr) 360px}.atlas-side-stack{display:grid;gap:16px;align-content:start}.atlas-card-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.atlas-card-header h2,.atlas-report-card h2{font-size:18px;margin:0}.atlas-list-stack{display:grid;gap:10px}.atlas-list-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border-radius:14px;background:#fff;border:1px solid #e5e7eb}.atlas-list-row:hover{background:var(--atlas-surface-low);border-color:var(--atlas-primary)}.atlas-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;background:var(--atlas-surface-container);color:var(--atlas-primary);text-transform:capitalize;white-space:nowrap}.atlas-pill-red,.atlas-pill-red,.atlas-pill-red{background:rgba(239,68,68,.12);color:#b91c1c}
.atlas-pill-red,.atlas-pill-red{background:rgba(239,68,68,.12);color:#b91c1c}
.atlas-pill-red,.atlas-pill-red{}
.atlas-table-card{padding:0;overflow:hidden}.atlas-table{width:100%;border-collapse:collapse;font-size:14px}.atlas-table th{background:var(--atlas-surface-low);text-align:left;padding:14px 16px;text-transform:uppercase;letter-spacing:.06em;font-size:12px;color:var(--atlas-muted)}.atlas-table td{padding:14px 16px;border-top:1px solid #e5e7eb}.atlas-table tr:nth-child(even) td{background:#f8fafc}.atlas-link-strong{font-weight:800;color:var(--atlas-primary)}.atlas-filter-bar,.atlas-search-hero{display:flex;gap:12px;margin-bottom:20px}.atlas-search-hero{background:var(--atlas-surface);border:1px solid var(--atlas-outline);border-radius:var(--atlas-radius);padding:18px;box-shadow:var(--atlas-shadow)}.atlas-form{display:grid;gap:16px}.atlas-form-field{display:grid;gap:6px}.atlas-form label{font-weight:800;color:var(--atlas-muted);font-size:12px;text-transform:uppercase;letter-spacing:.06em}.atlas-form-card{max-width:760px}.atlas-auth-shell{min-height:100vh;display:grid;place-items:center;padding:32px;background:radial-gradient(circle at top left,rgba(0,88,190,.14),transparent 36%),var(--atlas-bg)}.atlas-auth-card{width:min(460px,100%);background:white;border:1px solid var(--atlas-outline);border-radius:24px;padding:36px;box-shadow:var(--atlas-shadow)}.atlas-auth-card-small{max-width:420px}.atlas-auth-brand{text-align:center;margin-bottom:24px}.atlas-auth-brand h1{margin:14px 0 6px}.atlas-auth-footnote{text-align:center;color:var(--atlas-muted);font-size:12px}.atlas-alert{padding:12px 14px;border-radius:12px;background:var(--atlas-surface-container);border:1px solid var(--atlas-outline);margin-bottom:14px}.atlas-alert-error{background:#fee2e2;color:#991b1b;border-color:#fecaca}.atlas-empty{padding:16px;text-align:center}.atlas-report-card{display:block;min-height:150px}.atlas-report-card:hover{border-color:var(--atlas-primary);transform:translateY(-1px)}@media(max-width:1024px){.atlas-kpi-grid,.atlas-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-grid-main-side,.atlas-grid-two{grid-template-columns:1fr}.atlas-topbar-search{display:none}}@media(max-width:768px){.atlas-sidebar{transform:translateX(-100%);transition:.2s}.atlas-sidebar.is-open{transform:translateX(0)}.atlas-topbar{left:0;padding:0 16px}.atlas-main{margin-left:0;padding:88px 16px 32px}.atlas-mobile-only{display:grid}.atlas-user-meta{display:none}.atlas-kpi-grid,.atlas-card-grid{grid-template-columns:1fr}.atlas-page-header,.atlas-filter-bar,.atlas-search-hero{flex-direction:column}.atlas-mobile-backdrop.is-open{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:30}}

/* Logout POST button styled like a navigation link */
.atlas-logout-form {
  margin: 0;
  padding: 0;
}

.atlas-logout-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.atlas-logout-button:hover {
  text-decoration: underline;
}

.atlas-logout-form {
  margin: 0;
  padding: 0;
  display: inline;
}

.atlas-logout-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.atlas-logout-button:hover {
  text-decoration: underline;
}

.atlas-button-danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.atlas-button-danger:hover {
  background: #b91c1c;
  color: #ffffff;
}

.atlas-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 16px;
}

.atlas-inline-workflow-form select {
  width: 100%;
}

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

/* Email Timeline Formal Letter Styling */
.atlas-email-timeline,
.email-timeline,
.email-events,
.timeline-card,
.atlas-message-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.atlas-email-letter,
.email-letter,
.email-message-body,
.email-body,
.message-body,
.communication-email-body,
.timeline-message-body,
.atlas-timeline-message,
.atlas-email-content {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  box-sizing: border-box;
}

.atlas-email-letter {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
  margin-top: 16px;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.atlas-email-letter-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 14px;
  margin-bottom: 18px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.atlas-email-letter-subject {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.atlas-email-letter-meta {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #475569;
}

.atlas-email-letter-body {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.atlas-email-letter-body p {
  margin: 0 0 1em 0;
}

.atlas-email-letter-body a {
  color: #2563eb;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.atlas-email-letter-body table,
.atlas-email-letter-body pre,
.atlas-email-letter-body code,
.atlas-email-letter-body blockquote,
.email-message-body table,
.email-message-body pre,
.email-message-body code,
.email-body table,
.email-body pre,
.email-body code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.atlas-email-letter-body img,
.email-message-body img,
.email-body img,
.message-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

.atlas-card,
.atlas-table-card,
.atlas-list-row {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .atlas-email-letter {
    padding: 18px;
    border-radius: 14px;
    font-size: 14.5px;
  }
}

.atlas-page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.atlas-form-card input,
.atlas-form-card select,
.atlas-form-card textarea,
.atlas-inline-workflow-form input,
.atlas-inline-workflow-form select,
.atlas-inline-workflow-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 11px 13px;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
}

.atlas-form-card textarea {
  resize: vertical;
}

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

.atlas-list-row {
  gap: 16px;
}

.atlas-form-card input[type="file"] {
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
}

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

.atlas-form-card input[type="file"] {
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
}

.atlas-settings-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .18s ease, box-shadow .18s ease;
}

.atlas-settings-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

.atlas-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.atlas-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.atlas-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.atlas-pagination-info {
  color: #475569;
  font-size: 14px;
}

.atlas-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.atlas-pagination-current {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
}

.atlas-thread-message {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  max-width: 100%;
  overflow: hidden;
}

.atlas-thread-inbound {
  border-left: 6px solid #2563eb;
}

.atlas-thread-reply {
  border-left: 6px solid #16a34a;
  background: #f0fdf4;
}

.atlas-thread-linked {
  border-left: 6px solid #f59e0b;
  background: #fffbeb;
}

.atlas-thread-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.atlas-thread-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.7;
}

.atlas-message-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.atlas-manual-reply {
  margin-left: 28px;
}

@media (max-width: 768px) {
  .atlas-manual-reply {
    margin-left: 0;
  }

  .atlas-message-reply-actions {
    justify-content: flex-start;
  }
}

.atlas-message-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.atlas-manual-reply {
  margin-left: 28px;
}

@media (max-width: 768px) {
  .atlas-manual-reply {
    margin-left: 0;
  }

  .atlas-message-reply-actions {
    justify-content: flex-start;
  }
}

.atlas-detail-required-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.atlas-detail-required-card .atlas-card-header {
  align-items: flex-start;
}

.atlas-detail-required-card .atlas-empty {
  padding: 14px 0;
  color: #64748b;
}

.atlas-detail-required-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.atlas-detail-required-card .atlas-card-header {
  align-items: flex-start;
}

.atlas-detail-required-card .atlas-empty {
  padding: 14px 0;
  color: #64748b;
}

.atlas-detail-required-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.atlas-detail-required-card .atlas-empty {
  padding: 14px 0;
  color: #64748b;
}

.atlas-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: #424754;
  text-decoration: none;
}

.atlas-nav-link:hover {
  background: #dce9ff;
  color: #0058be;
}


/* Phase 25C — AI Agent Console settings-style UX polish */
.atlas-settings-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
}

.atlas-settings-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.atlas-settings-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.atlas-settings-title {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  color: #0f172a;
}

.atlas-settings-subtitle {
  margin-top: 8px;
  max-width: 760px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.atlas-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.atlas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.16s ease;
}

.atlas-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.atlas-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.atlas-btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.atlas-btn-dark {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.atlas-btn-soft {
  background: #f8fafc;
  color: #0f172a;
}

.atlas-settings-alert {
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fffbeb, #ffffff);
  border-radius: 18px;
  padding: 16px 18px;
  color: #92400e;
  margin-bottom: 24px;
}

.atlas-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.atlas-metric-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.atlas-metric-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.atlas-metric-value {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  margin-top: 8px;
}

.atlas-metric-help {
  color: #64748b;
  font-size: 13px;
  margin-top: 8px;
}

.atlas-section-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
  overflow: hidden;
}

.atlas-section-header {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.atlas-section-title {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
}

.atlas-section-description {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.atlas-section-body {
  padding: 20px;
}

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

.atlas-link-card {
  display: block;
  min-height: 112px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.16s ease;
}

.atlas-link-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
}

.atlas-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 12px;
}

.atlas-link-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.atlas-link-text {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.atlas-agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.atlas-agent-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.atlas-agent-card-header {
  padding: 18px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.atlas-agent-name {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.atlas-agent-slug {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.atlas-status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.atlas-status-green {
  background: #dcfce7;
  color: #166534;
}

.atlas-status-slate {
  background: #e2e8f0;
  color: #334155;
}

.atlas-status-red {
  background: #fee2e2;
  color: #991b1b;
}

.atlas-agent-card-body {
  padding: 18px;
}

.atlas-agent-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.atlas-fact {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.atlas-fact-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.atlas-fact-value {
  margin-top: 4px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.atlas-agent-description {
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.atlas-agent-card-footer {
  padding: 14px 18px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.atlas-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.atlas-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.atlas-form-field-full {
  grid-column: 1 / -1;
}

.atlas-form-label {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.atlas-input,
.atlas-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 11px 13px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
}

.atlas-input:focus,
.atlas-textarea:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.15);
}

.atlas-textarea-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.atlas-history-item {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.atlas-table {
  width: 100%;
  border-collapse: collapse;
}

.atlas-table th {
  text-align: left;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.atlas-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

@media (max-width: 1024px) {
  .atlas-metric-grid,
  .atlas-link-grid,
  .atlas-agent-grid,
  .atlas-form-grid {
    grid-template-columns: 1fr;
  }

  .atlas-settings-hero {
    flex-direction: column;
  }

  .atlas-settings-actions {
    justify-content: flex-start;
  }
}

/* Phase 26 — safe email/card text rendering */
.atlas-safe-text,
.atlas-message-body,
.atlas-card,
.card,
.panel {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.atlas-safe-text {
  max-width: 100%;
  white-space: normal;
  line-height: 1.6;
}

.atlas-safe-text pre,
.atlas-safe-text code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.atlas-message-card,
.atlas-email-card,
.atlas-followup-card,
.atlas-note-card {
  overflow: hidden;
}

.atlas-message-body {
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  line-height: 1.6;
}

.atlas-message-body * {
  max-width: 100%;
}


/* Level 100 Acquisition CRM UI/UX polish — decision-support styling, WCAG-aware structure, current Atlas colour tokens preserved */
.atlas-acq-shell{
  display:grid;
  gap:24px;
  color:var(--atlas-text);
}

.atlas-acq-shell > h1,
.atlas-acq-shell .atlas-page-header h1{
  margin:0;
  font-size:clamp(26px,3vw,38px);
  line-height:1.12;
  letter-spacing:-.035em;
  color:var(--atlas-text);
}

.atlas-acq-shell > h1 + p,
.atlas-acq-shell .atlas-page-header p,
.atlas-acq-shell > p{
  max-width:980px;
  color:var(--atlas-muted);
  font-size:14px;
  line-height:1.65;
  margin:0;
}

.atlas-acq-shell > p:first-of-type{
  padding:14px 16px;
  border:1px solid var(--atlas-outline);
  border-left:5px solid var(--atlas-primary);
  border-radius:var(--atlas-radius-sm);
  background:linear-gradient(90deg,rgba(0,88,190,.08),rgba(255,255,255,.95));
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}

.atlas-acq-shell section{
  min-width:0;
}

.atlas-acq-shell h2{
  margin:0 0 14px;
  font-size:18px;
  line-height:1.25;
  color:var(--atlas-text);
}

.atlas-acq-shell h2 + p{
  color:var(--atlas-muted);
  line-height:1.6;
}

.atlas-acq-shell > section,
.atlas-acq-shell > form,
.atlas-acq-shell > table{
  margin-top:0;
}

.atlas-acq-shell > section:not(.atlas-page-header):not(.atlas-card):not(.atlas-card-grid):not(.atlas-kpi-grid),
.atlas-acq-shell > form,
.atlas-acq-shell > table{
  background:var(--atlas-surface);
  border:1px solid var(--atlas-outline);
  border-radius:var(--atlas-radius);
  box-shadow:var(--atlas-shadow);
}

.atlas-acq-shell > section:not(.atlas-page-header):not(.atlas-card):not(.atlas-card-grid):not(.atlas-kpi-grid),
.atlas-acq-shell > form{
  padding:22px;
}

.atlas-acq-shell form{
  display:grid;
  gap:16px;
}

.atlas-acq-shell label{
  display:block;
  font-weight:800;
  color:var(--atlas-muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:6px;
}

.atlas-acq-shell input[type="text"],
.atlas-acq-shell input[type="email"],
.atlas-acq-shell input[type="url"],
.atlas-acq-shell input[type="number"],
.atlas-acq-shell input[type="date"],
.atlas-acq-shell input[type="file"],
.atlas-acq-shell select,
.atlas-acq-shell textarea{
  width:100%;
  border:1px solid var(--atlas-outline);
  border-radius:12px;
  background:#fff;
  color:var(--atlas-text);
  padding:11px 14px;
  outline:none;
  line-height:1.45;
}

.atlas-acq-shell textarea{
  min-height:112px;
  resize:vertical;
}

.atlas-acq-shell input:focus,
.atlas-acq-shell select:focus,
.atlas-acq-shell textarea:focus,
.atlas-acq-shell a:focus,
.atlas-acq-shell button:focus{
  outline:3px solid rgba(0,88,190,.22);
  outline-offset:2px;
  border-color:var(--atlas-primary);
}

.atlas-acq-shell button,
.atlas-acq-shell input[type="submit"]{
  border:0;
  border-radius:12px;
  padding:10px 16px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  background:var(--atlas-primary);
  color:#fff;
  width:max-content;
}

.atlas-acq-shell button:hover,
.atlas-acq-shell input[type="submit"]:hover{
  background:#004395;
}

.atlas-acq-shell a{
  color:var(--atlas-primary);
  font-weight:800;
  text-decoration:none;
}

.atlas-acq-shell a:hover{
  text-decoration:underline;
}

.atlas-acq-shell table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  font-size:14px;
}

.atlas-acq-shell table thead th{
  background:var(--atlas-surface-low);
  text-align:left;
  padding:14px 16px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;
  color:var(--atlas-muted);
  border-bottom:1px solid var(--atlas-outline);
}

.atlas-acq-shell table tbody td{
  padding:14px 16px;
  border-top:1px solid #e5e7eb;
  vertical-align:top;
  line-height:1.5;
}

.atlas-acq-shell table tbody tr:nth-child(even) td{
  background:#f8fafc;
}

.atlas-acq-shell table tbody tr:hover td{
  background:var(--atlas-surface-low);
}

.atlas-acq-shell ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}

.atlas-acq-shell li{
  background:#fff;
  border:1px solid var(--atlas-outline);
  border-radius:14px;
  padding:14px;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
  min-height:72px;
}

.atlas-acq-shell li::first-line{
  font-weight:800;
  color:var(--atlas-primary);
}

.atlas-acq-shell .atlas-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.atlas-acq-shell .atlas-card,
.atlas-acq-shell .atlas-settings-card{
  border-radius:var(--atlas-radius);
  border:1px solid var(--atlas-outline);
  box-shadow:var(--atlas-shadow);
}

.atlas-acq-shell .atlas-settings-card:hover{
  border-color:var(--atlas-primary);
  transform:translateY(-1px);
}

.atlas-acq-shell .atlas-button{
  text-decoration:none;
}

.atlas-acq-shell .atlas-button:hover{
  text-decoration:none;
}

.atlas-acq-shell [class*="status"],
.atlas-acq-shell [class*="verdict"],
.atlas-acq-shell td:nth-child(3),
.atlas-acq-shell td:nth-child(4){
  word-break:break-word;
}

.atlas-acq-shell .atlas-decision-note,
.atlas-acq-shell .atlas-safe-note{
  border-left:5px solid var(--atlas-green);
  background:rgba(16,185,129,.08);
  padding:14px 16px;
  border-radius:var(--atlas-radius-sm);
  color:#065f46;
}

@media(max-width:1100px){
  .atlas-acq-shell ul{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .atlas-acq-shell .atlas-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .atlas-acq-shell{
    gap:18px;
  }
  .atlas-acq-shell ul,
  .atlas-acq-shell .atlas-card-grid{
    grid-template-columns:1fr;
  }
  .atlas-acq-shell table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .atlas-acq-shell button,
  .atlas-acq-shell input[type="submit"]{
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce){
  .atlas-acq-shell *,
  .atlas-acq-shell .atlas-settings-card:hover{
    transition:none!important;
    transform:none!important;
    scroll-behavior:auto!important;
  }
}


/* TailAdmin-inspired acquisition layout polish.
   Uses local Tailwind build + existing Atlas colour tokens.
   Does not import external CDN assets.
   Does not override Atlas brand colours.
*/
.atlas-acq-shell{
  display:grid;
  gap:24px;
}

.atlas-acq-shell::before{
  content:"Acquisition Command Workspace";
  display:block;
  width:max-content;
  max-width:100%;
  padding:7px 12px;
  border-radius:999px;
  background:var(--atlas-surface-container);
  color:var(--atlas-primary);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.atlas-acq-shell .atlas-page-header,
.atlas-acq-shell > h1:first-child{
  position:relative;
}

.atlas-acq-shell > h1:first-child{
  padding:26px 28px 6px;
  margin:0;
  border-radius:22px 22px 0 0;
  background:
    radial-gradient(circle at top right, rgba(33,112,228,.18), transparent 34%),
    linear-gradient(135deg, #ffffff, var(--atlas-surface-low));
  border:1px solid var(--atlas-outline);
  border-bottom:0;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.atlas-acq-shell > h1:first-child + p{
  margin-top:-24px;
  padding:0 28px 24px;
  border-radius:0 0 22px 22px;
  border:1px solid var(--atlas-outline);
  border-top:0;
  background:linear-gradient(135deg, #ffffff, var(--atlas-surface-low));
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.atlas-acq-shell > section:first-of-type ul{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}

.atlas-acq-shell > section:first-of-type li{
  position:relative;
  overflow:hidden;
  min-height:94px;
  border-radius:18px;
  border:1px solid rgba(194,198,214,.85);
  background:
    radial-gradient(circle at top right, rgba(0,88,190,.11), transparent 34%),
    #fff;
  box-shadow:0 10px 28px rgba(15,23,42,.07);
}

.atlas-acq-shell > section:first-of-type li::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:var(--atlas-primary);
}

.atlas-acq-shell > section{
  border-radius:22px!important;
}

.atlas-acq-shell table{
  border-radius:18px;
}

.atlas-acq-shell table thead th:first-child{
  border-top-left-radius:18px;
}

.atlas-acq-shell table thead th:last-child{
  border-top-right-radius:18px;
}

.atlas-acq-shell table tbody tr:last-child td:first-child{
  border-bottom-left-radius:18px;
}

.atlas-acq-shell table tbody tr:last-child td:last-child{
  border-bottom-right-radius:18px;
}

.atlas-acq-shell td a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:2px 4px 2px 0;
  padding:7px 10px;
  border-radius:999px;
  background:var(--atlas-surface-container);
  color:var(--atlas-primary);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

.atlas-acq-shell td a:hover{
  background:var(--atlas-primary);
  color:#fff;
  text-decoration:none;
}

.atlas-acq-shell form{
  border-radius:22px!important;
  background:
    radial-gradient(circle at top right, rgba(0,88,190,.08), transparent 30%),
    #fff!important;
}

.atlas-acq-shell form button,
.atlas-acq-shell form input[type="submit"]{
  min-height:42px;
  box-shadow:0 8px 18px rgba(0,88,190,.18);
}

.atlas-acq-shell input,
.atlas-acq-shell select,
.atlas-acq-shell textarea{
  min-height:42px;
}

.atlas-acq-shell input[type="checkbox"]{
  width:auto;
  min-height:auto;
  margin-right:8px;
  accent-color:var(--atlas-primary);
}

.atlas-acq-shell textarea{
  min-height:132px;
}

.atlas-acq-shell .atlas-card-grid{
  gap:18px;
}

.atlas-acq-shell .atlas-card,
.atlas-acq-shell .atlas-settings-card{
  border-radius:22px;
  background:
    radial-gradient(circle at top right, rgba(0,88,190,.08), transparent 34%),
    #fff;
}

.atlas-acq-shell .atlas-button,
.atlas-acq-shell button{
  border-radius:999px;
}

.atlas-acq-shell .atlas-button-primary,
.atlas-acq-shell button[type="submit"]{
  background:var(--atlas-primary);
  color:#fff;
}

.atlas-acq-shell .atlas-button-ghost{
  background:var(--atlas-surface-container);
  color:var(--atlas-primary);
}

.atlas-acq-shell .atlas-pill,
.atlas-acq-shell .atlas-status-pill{
  border:1px solid rgba(0,88,190,.15);
}

.atlas-acq-shell [data-page-purpose]{
  scroll-margin-top:90px;
}

@media(max-width:1200px){
  .atlas-acq-shell > section:first-of-type ul{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .atlas-acq-shell > section:first-of-type ul{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:640px){
  .atlas-acq-shell > section:first-of-type ul{
    grid-template-columns:1fr;
  }

  .atlas-acq-shell > h1:first-child{
    padding:22px 18px 6px;
  }

  .atlas-acq-shell > h1:first-child + p{
    padding:0 18px 20px;
  }

  .atlas-acq-shell td a{
    width:100%;
    justify-content:center;
  }
}

/* TailAdmin open-source inspired layout-only polish.
   Purpose: cleaner dashboard layout, cards, forms, spacing, tables, and responsive structure.
   Important: preserves existing Atlas colour scheme via --atlas-* tokens.
   No TailAdmin colour palette is imported.
   No external CDN dependency is added.
*/
.atlas-acq-shell{
  display:grid;
  gap:24px;
  max-width:1600px;
  margin:0 auto;
}

.atlas-acq-shell .atlas-page-header,
.atlas-acq-shell > h1:first-child,
.atlas-acq-shell > h1:first-child + p{
  max-width:100%;
}

.atlas-acq-shell > h1:first-child{
  margin:0;
  padding:28px 30px 8px;
  border:1px solid var(--atlas-outline);
  border-bottom:0;
  border-radius:24px 24px 0 0;
  background:var(--atlas-surface);
  box-shadow:var(--atlas-shadow);
}

.atlas-acq-shell > h1:first-child + p{
  margin-top:-24px;
  padding:0 30px 26px;
  border:1px solid var(--atlas-outline);
  border-top:0;
  border-radius:0 0 24px 24px;
  background:var(--atlas-surface);
  box-shadow:var(--atlas-shadow);
}

.atlas-acq-shell > p:first-of-type{
  border-radius:18px;
}

.atlas-acq-shell > section,
.atlas-acq-shell > form{
  border-radius:24px!important;
  border:1px solid var(--atlas-outline);
  background:var(--atlas-surface);
  box-shadow:var(--atlas-shadow);
}

.atlas-acq-shell > section:not(.atlas-page-header):not(.atlas-card):not(.atlas-card-grid):not(.atlas-kpi-grid),
.atlas-acq-shell > form{
  padding:24px;
}

.atlas-acq-shell h2{
  margin-bottom:16px;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.01em;
}

.atlas-acq-shell > section:first-of-type ul{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}

.atlas-acq-shell > section:first-of-type li{
  min-height:104px;
  padding:18px;
  border-radius:20px;
  border:1px solid var(--atlas-outline);
  background:var(--atlas-surface);
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}

.atlas-acq-shell > section:first-of-type li::first-line{
  color:var(--atlas-muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.atlas-acq-shell .atlas-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.atlas-acq-shell .atlas-card,
.atlas-acq-shell .atlas-settings-card{
  border-radius:24px;
  border:1px solid var(--atlas-outline);
  background:var(--atlas-surface);
  box-shadow:var(--atlas-shadow);
}

.atlas-acq-shell .atlas-settings-card:hover,
.atlas-acq-shell .atlas-card:hover{
  border-color:var(--atlas-primary);
  transform:translateY(-1px);
}

.atlas-acq-shell table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border-radius:20px;
  overflow:hidden;
  background:var(--atlas-surface);
}

.atlas-acq-shell table thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:var(--atlas-surface-low);
  border-bottom:1px solid var(--atlas-outline);
}

.atlas-acq-shell table tbody td{
  min-height:54px;
}

.atlas-acq-shell table tbody tr:hover td{
  background:var(--atlas-surface-low);
}

.atlas-acq-shell td a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:3px 4px 3px 0;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid var(--atlas-outline);
  background:var(--atlas-surface);
  color:var(--atlas-primary);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

.atlas-acq-shell td a:hover{
  background:var(--atlas-surface-container);
  color:var(--atlas-primary);
  text-decoration:none;
}

.atlas-acq-shell form{
  display:grid;
  gap:18px;
}

.atlas-acq-shell form button,
.atlas-acq-shell form input[type="submit"],
.atlas-acq-shell .atlas-button{
  border-radius:999px;
  min-height:42px;
}

.atlas-acq-shell input[type="text"],
.atlas-acq-shell input[type="email"],
.atlas-acq-shell input[type="url"],
.atlas-acq-shell input[type="number"],
.atlas-acq-shell input[type="date"],
.atlas-acq-shell input[type="file"],
.atlas-acq-shell select,
.atlas-acq-shell textarea{
  border-radius:14px;
  min-height:44px;
}

.atlas-acq-shell input[type="checkbox"]{
  width:auto;
  min-height:auto;
  margin-right:8px;
  accent-color:var(--atlas-primary);
}

.atlas-acq-shell textarea{
  min-height:132px;
}

.atlas-acq-shell input:focus,
.atlas-acq-shell select:focus,
.atlas-acq-shell textarea:focus,
.atlas-acq-shell a:focus,
.atlas-acq-shell button:focus{
  outline:3px solid rgba(0,88,190,.22);
  outline-offset:2px;
}

.atlas-acq-shell .atlas-pill,
.atlas-acq-shell .atlas-status-pill{
  border:1px solid var(--atlas-outline);
}

@media(max-width:1280px){
  .atlas-acq-shell > section:first-of-type ul{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:1024px){
  .atlas-acq-shell .atlas-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:768px){
  .atlas-acq-shell{
    max-width:100%;
    gap:18px;
  }

  .atlas-acq-shell > section:first-of-type ul,
  .atlas-acq-shell .atlas-card-grid{
    grid-template-columns:1fr;
  }

  .atlas-acq-shell > h1:first-child{
    padding:22px 18px 8px;
  }

  .atlas-acq-shell > h1:first-child + p{
    padding:0 18px 22px;
  }

  .atlas-acq-shell table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .atlas-acq-shell td a{
    width:100%;
    margin-right:0;
  }
}

@media(prefers-reduced-motion:reduce){
  .atlas-acq-shell *,
  .atlas-acq-shell .atlas-settings-card:hover,
  .atlas-acq-shell .atlas-card:hover{
    transition:none!important;
    transform:none!important;
  }
}

/* TailAdmin open-source layout pattern application.
   Applies clean SaaS/admin layout patterns to login, command center, follow-ups, and search.
   Atlas colours remain authoritative through --atlas-* tokens.
   No CDN. No TailAdmin colour palette imported.
*/

.atlas-auth-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px;
  background:
    radial-gradient(circle at top left, rgba(0,88,190,.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(33,112,228,.10), transparent 32%),
    var(--atlas-bg);
}

.atlas-auth-card{
  width:min(100%,480px);
  border-radius:28px;
  border:1px solid var(--atlas-outline);
  background:var(--atlas-surface);
  box-shadow:0 18px 50px rgba(15,23,42,.12);
  padding:34px;
}

.atlas-auth-brand{
  display:grid;
  gap:10px;
  text-align:center;
  margin-bottom:26px;
}

.atlas-auth-brand h1{
  margin:0;
  font-size:clamp(26px,3vw,34px);
  line-height:1.1;
  letter-spacing:-.035em;
}

.atlas-auth-brand p,
.atlas-auth-footnote{
  color:var(--atlas-muted);
  font-size:14px;
  line-height:1.6;
}

.atlas-auth-card form{
  display:grid;
  gap:16px;
}

.atlas-auth-card label{
  display:block;
  margin-bottom:7px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--atlas-muted);
}

.atlas-auth-card input[type="text"],
.atlas-auth-card input[type="email"],
.atlas-auth-card input[type="password"]{
  width:100%;
  min-height:46px;
  border-radius:14px;
  border:1px solid var(--atlas-outline);
  background:#fff;
  color:var(--atlas-text);
  padding:12px 14px;
  outline:none;
}

.atlas-auth-card input:focus{
  border-color:var(--atlas-primary);
  box-shadow:0 0 0 4px rgba(0,88,190,.14);
}

.atlas-auth-card button,
.atlas-auth-card input[type="submit"]{
  width:100%;
  min-height:46px;
  border:0;
  border-radius:14px;
  background:var(--atlas-primary);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

.atlas-auth-card button:hover,
.atlas-auth-card input[type="submit"]:hover{
  background:#004395;
}

.atlas-main,
.atlas-acq-shell{
  background:
    radial-gradient(circle at top right, rgba(0,88,190,.05), transparent 28%),
    var(--atlas-bg);
}

.atlas-tailadmin-layout,
.atlas-acq-shell,
.atlas-search-shell{
  max-width:1600px;
  margin:0 auto;
}

.atlas-acq-shell .atlas-page-header,
.atlas-search-shell .atlas-page-header,
.atlas-tailadmin-hero{
  border:1px solid var(--atlas-outline);
  border-radius:28px;
  background:var(--atlas-surface);
  box-shadow:var(--atlas-shadow);
  padding:26px 28px;
  margin-bottom:24px;
}

.atlas-acq-shell .atlas-page-header h1,
.atlas-search-shell .atlas-page-header h1,
.atlas-tailadmin-hero h1{
  margin:0 0 8px;
  font-size:clamp(26px,3vw,38px);
  line-height:1.1;
  letter-spacing:-.035em;
}

.atlas-tailadmin-subtitle,
.atlas-acq-shell .atlas-page-header p,
.atlas-search-shell .atlas-page-header p{
  color:var(--atlas-muted);
  font-size:14px;
  line-height:1.65;
  max-width:980px;
}

.atlas-kpi-grid,
.atlas-acq-shell > section:first-of-type ul{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.atlas-kpi-card,
.atlas-acq-shell > section:first-of-type li,
.atlas-tailadmin-card{
  border:1px solid var(--atlas-outline);
  border-radius:24px;
  background:var(--atlas-surface);
  box-shadow:0 10px 28px rgba(15,23,42,.07);
  padding:22px;
}

.atlas-kpi-card strong,
.atlas-tailadmin-card-value{
  display:block;
  font-size:clamp(28px,3vw,38px);
  line-height:1;
  letter-spacing:-.04em;
  margin-top:8px;
}

.atlas-kpi-card span,
.atlas-tailadmin-card-label,
.atlas-acq-shell > section:first-of-type li::first-line{
  color:var(--atlas-muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.atlas-card,
.atlas-table-card,
.atlas-acq-shell > section,
.atlas-search-shell > section,
.atlas-tailadmin-panel{
  border:1px solid var(--atlas-outline);
  border-radius:26px;
  background:var(--atlas-surface);
  box-shadow:var(--atlas-shadow);
}

.atlas-card-header,
.atlas-tailadmin-panel-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(194,198,214,.55);
  margin-bottom:16px;
}

.atlas-list-stack,
.atlas-tailadmin-list{
  display:grid;
  gap:12px;
}

.atlas-list-row,
.atlas-tailadmin-list-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:1px solid var(--atlas-outline);
  border-radius:18px;
  background:#fff;
  padding:15px 16px;
}

.atlas-list-row:hover,
.atlas-tailadmin-list-item:hover{
  background:var(--atlas-surface-low);
  border-color:var(--atlas-primary);
}

.atlas-button,
.atlas-tailadmin-btn,
.atlas-acq-shell button,
.atlas-search-shell button{
  min-height:42px;
  border-radius:14px;
  font-weight:900;
}

.atlas-button-primary,
.atlas-tailadmin-btn-primary{
  background:var(--atlas-primary);
  color:#fff;
}

.atlas-button-ghost,
.atlas-tailadmin-btn-soft{
  background:var(--atlas-surface-container);
  color:var(--atlas-primary);
}

.atlas-row-actions,
.atlas-tailadmin-btn-group{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.atlas-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.atlas-table th,
.atlas-acq-shell table th,
.atlas-search-shell table th{
  background:var(--atlas-surface-low);
  color:var(--atlas-muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.atlas-table td,
.atlas-acq-shell table td,
.atlas-search-shell table td{
  vertical-align:top;
}

.atlas-table tr:hover td,
.atlas-acq-shell table tr:hover td,
.atlas-search-shell table tr:hover td{
  background:var(--atlas-surface-low);
}

.atlas-search-hero,
.atlas-filter-bar,
.atlas-tailadmin-filter-bar{
  display:flex;
  gap:12px;
  align-items:center;
  border:1px solid var(--atlas-outline);
  border-radius:24px;
  background:var(--atlas-surface);
  box-shadow:var(--atlas-shadow);
  padding:16px;
}

.atlas-search-hero input,
.atlas-filter-bar input,
.atlas-filter-bar select,
.atlas-tailadmin-filter-bar input,
.atlas-tailadmin-filter-bar select{
  min-height:44px;
  border-radius:14px;
  border:1px solid var(--atlas-outline);
}

.atlas-modal-shell,
.atlas-tailadmin-modal{
  border-radius:28px;
  border:1px solid var(--atlas-outline);
  background:var(--atlas-surface);
  box-shadow:0 22px 70px rgba(15,23,42,.18);
}

.atlas-modal-header,
.atlas-tailadmin-modal-header{
  padding:20px 22px;
  border-bottom:1px solid var(--atlas-outline);
}

.atlas-modal-body,
.atlas-tailadmin-modal-body{
  padding:22px;
}

.atlas-modal-footer,
.atlas-tailadmin-modal-footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:18px 22px;
  border-top:1px solid var(--atlas-outline);
}

@media(max-width:1200px){
  .atlas-kpi-grid,
  .atlas-acq-shell > section:first-of-type ul{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:768px){
  .atlas-auth-shell{
    padding:18px;
  }

  .atlas-auth-card{
    padding:24px;
    border-radius:24px;
  }

  .atlas-kpi-grid,
  .atlas-acq-shell > section:first-of-type ul{
    grid-template-columns:1fr;
  }

  .atlas-search-hero,
  .atlas-filter-bar,
  .atlas-tailadmin-filter-bar,
  .atlas-card-header,
  .atlas-tailadmin-panel-header,
  .atlas-list-row,
  .atlas-tailadmin-list-item{
    flex-direction:column;
    align-items:stretch;
  }

  .atlas-row-actions,
  .atlas-tailadmin-btn-group{
    width:100%;
  }

  .atlas-row-actions .atlas-button,
  .atlas-tailadmin-btn-group .atlas-tailadmin-btn,
  .atlas-button{
    width:100%;
    justify-content:center;
  }
}
