/* ═══════════════════════════════════════════════════════════════
   AMI — Agentic Management Intelligence
   Light Mode · Minimal · Corporate
═══════════════════════════════════════════════════════════════ */

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

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --bg: #f1f4f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --border: #e2e8f0;

  --accent: #2563eb;
  --accent-bg: #eff6ff;

  --green: #16a34a;
  --green-bg: #f0fdf4;
  --red: #dc2626;
  --red-bg: #fef2f2;

  --t1: #0f172a;
  --t2: #475569;
  --t3: #94a3b8;

  --r4: 4px;
  --r6: 6px;
  --r8: 8px;
  --r12: 12px;

  --ease: 0.15s ease;
  --font: 'Inter', system-ui, sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--t1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

#app {
  height: 100%;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--r8);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-ghost {
  background: var(--surface);
  color: var(--t2);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--t1);
}

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: #fca5a5;
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--t1);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-icon {
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--r8);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}

.badge-blue {
  background: var(--accent-bg);
  color: var(--accent);
}

.badge-green {
  background: var(--green-bg);
  color: var(--green);
}

.badge-gray {
  background: var(--surface-2);
  color: var(--t2);
  border: 1px solid var(--border);
}

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

.badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

/* Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--t2);
  transition: var(--ease);
  user-select: none;
}

.chip:hover,
.chip.selected {
  background: var(--accent-bg);
  border-color: #93c5fd;
  color: var(--accent);
}

/* Form Controls & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.form-input,
.input,
input.input,
select.input,
textarea.input,
input.form-input,
select.form-input,
textarea.form-input {
  width: 100%;
  padding: 9px 13px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--r8);
  color: var(--t1);
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.5;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.form-input::placeholder,
.input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.form-input:hover,
.input:hover {
  border-color: #94a3b8;
}

.form-input:focus,
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

.form-input:disabled,
.input:disabled {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--t3);
  cursor: not-allowed;
}

/* Custom select styling for beautiful modern dropdowns */
select.form-input,
select.input,
select.filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px 15px;
  padding-right: 36px;
  cursor: pointer;
}

select.form-input:hover,
select.input:hover,
select.filter-select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e293b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* Checkbox & Radio Accent */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

/* Custom file input styling */
input[type="file"].form-input,
input[type="file"].input {
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--t2);
}

input[type="file"].form-input::file-selector-button,
input[type="file"].input::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r6);
  color: var(--t1);
  font-weight: 500;
  font-size: 12.5px;
  cursor: pointer;
  transition: all var(--ease);
}

input[type="file"].form-input::file-selector-button:hover,
input[type="file"].input::file-selector-button:hover {
  background: var(--accent-bg);
  border-color: #93c5fd;
  color: var(--accent);
}

/* Textarea styling */
textarea.form-input,
textarea.input {
  min-height: 84px;
  resize: vertical;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 9999;
}

.toast {
  padding: 9px 14px;
  border-radius: var(--r8);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
  animation: tIn .2s ease, tOut .3s ease 2.7s forwards;
}

.toast-success {
  background: var(--green-bg);
  border-color: #bbf7d0;
  color: var(--green);
}

.toast-error {
  background: var(--red-bg);
  border-color: #fca5a5;
  color: var(--red);
}

.toast-info {
  background: var(--accent-bg);
  border-color: #93c5fd;
  color: var(--accent);
}

@keyframes tIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tOut {
  to {
    opacity: 0;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
  animation: mIn .15s ease;
}

@keyframes mIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  width: 100%;
  max-width: 460px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  animation: mScale .18s ease;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
}

@keyframes mScale {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.01em;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r6);
  color: var(--t3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: all var(--ease);
}

.modal-close:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--t1);
}

.modal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 0 0 var(--r12) var(--r12);
}

/* Sub-agent permission selection cards */
.agent-perm-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
}

.agent-perm-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.agent-perm-card:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
}

.agent-perm-card input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Custom Confirmation Dialog Modal */
.confirm-modal-overlay {
  z-index: 1100;
  backdrop-filter: blur(4px);
  background: rgba(15, 23, 42, 0.55);
}

.confirm-modal {
  max-width: 440px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 24px;
  gap: 20px;
  overflow: hidden;
}

.confirm-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.confirm-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-icon-box.danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.confirm-icon-box.warning {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.confirm-icon-box.info {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.confirm-modal-text {
  flex: 1;
  padding-right: 18px;
}

.confirm-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--t1);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.confirm-modal-desc {
  font-size: 13.5px;
  color: var(--t2);
  margin: 0;
  line-height: 1.5;
}

.confirm-close-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  color: var(--t3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.confirm-close-btn:hover {
  background: var(--surface-2);
  color: var(--t1);
}

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

.confirm-modal-actions .btn {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 10px;
}

.modal-overlay.fade-out {
  animation: mOut 0.15s ease forwards;
}

@keyframes mOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Table */
.table-wrap {
  overflow-x: auto;
}

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

thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--surface-2);
}

td {
  padding: 11px 16px;
  vertical-align: middle;
}

.td-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN
═══════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-brand-name {
  font-size: 12px;
  color: var(--t2);
  margin-bottom: 2px;
}

.login-brand-sub {
  font-size: 11px;
  color: var(--t3);
  margin-bottom: 20px;
}

.login-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

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

.login-btn {
  width: 100%;
  padding: 9px;
  font-size: 14px;
  margin-top: 2px;
}

.login-error {
  display: none;
  padding: 9px 12px;
  background: var(--red-bg);
  border: 1px solid #fca5a5;
  border-radius: var(--r8);
  color: var(--red);
  font-size: 13px;
}

.login-error.show {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   APP SHELL — full viewport, fixed layout
═══════════════════════════════════════════════════════════════ */
.app-shell {
  display: grid;
  grid-template-rows: 52px 41px 1fr;
  height: 100%;
  overflow: hidden;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.sidebar-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--t2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r8);
  margin-right: 8px;
  transition: var(--ease);
  padding: 0;
}

.sidebar-toggle-btn:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.sidebar-toggle-btn svg {
  display: block;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-brand-full {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.login-brand-full {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 6px;
  display: block;
}

.topbar-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.login-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
  flex-shrink: 0;
}

.topbar-logo-mark {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topbar-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.topbar-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--t3);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  background: var(--surface);
  transition: var(--ease);
}

.topbar-user:hover {
  background: var(--surface-2);
}

.user-avatar {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nav tabs */
.nav-tabs {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  overflow-x: auto;
}

.nav-tab {
  padding: 0 14px;
  height: 40px;
  line-height: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--ease), border-color var(--ease);
  user-select: none;
}

.nav-tab:hover {
  color: var(--t2);
}

.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Content area fills remaining grid row */
.app-content {
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.page {
  display: none;
  width: 100%;
  overflow: hidden;
}

.page.active {
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PAGES (Users / Roles)
═══════════════════════════════════════════════════════════════ */
.admin-page {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 16px;
  font-weight: 600;
}

.page-sub {
  font-size: 13px;
  color: var(--t3);
  margin-top: 2px;
}

.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  overflow: hidden;
}

.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--t3);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT PAGE
═══════════════════════════════════════════════════════════════ */

/* chat-page takes full height of .app-content */
.chat-page {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────── */
.chat-sidebar {
  width: 210px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.sb-section {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sb-section:last-child {
  border-bottom: none;
}

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

.sb-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.btn-new-room {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--t2);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
  flex-shrink: 0;
}

.btn-new-room:hover {
  background: var(--accent-bg);
  border-color: #93c5fd;
  color: var(--accent);
}

/* Room list */
.room-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.room-item {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: var(--r8);
  cursor: pointer;
  transition: var(--ease);
  group: true;
  overflow: hidden;
}

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

.room-item.active {
  background: var(--accent-bg);
}

.room-item-name {
  flex: 1;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.room-item.active .room-item-name {
  color: var(--accent);
}

.room-delete-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--t3);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--ease);
  margin-right: 4px;
}

.room-item:hover .room-delete-btn {
  opacity: 1;
}

.room-delete-btn:hover {
  background: var(--red-bg);
  color: var(--red);
}

/* Role selector */
.role-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: var(--r8);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--t2);
  cursor: pointer;
  transition: var(--ease);
  user-select: none;
}

.role-item:hover {
  border-color: #93c5fd;
  color: var(--accent);
  background: var(--accent-bg);
}

.role-item.active {
  border-color: #93c5fd;
  color: var(--accent);
  background: var(--accent-bg);
}

.role-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--ease);
}

.role-item.active .role-dot {
  background: var(--accent);
}

/* Agent list */
.agent-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r8);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: var(--ease);
}

.agent-item.active {
  background: var(--green-bg);
  border-color: #bbf7d0;
}

.agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--ease);
}

.agent-item.active .agent-dot {
  background: var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.agent-info {
  min-width: 0;
}

.agent-name {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-status {
  font-size: 11px;
  color: var(--t3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-item.active .agent-name {
  color: var(--green);
}

/* ── Chat Main ──────────────────────────────────────── */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

/* Sidebar Search Box */
.sidebar-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.sidebar-search-input {
  width: 100%;
  height: 28px;
  padding: 0 24px 0 26px;
  font-size: 11.5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--t1);
  outline: none;
  transition: all 0.15s ease;
}

.sidebar-search-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.sidebar-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  pointer-events: none;
  display: flex;
}

.sidebar-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.sidebar-search-clear:hover {
  color: var(--t1);
}

.sidebar-search-wrap.has-val .sidebar-search-clear {
  display: flex;
}

/* Chat Header */
.chat-header {
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 12px;
  z-index: 10;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-header-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-roles {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.chat-role-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--t2);
  white-space: nowrap;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* In-Header Direct Search Input */
.chat-header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px 0 28px;
  height: 32px;
  width: 200px;
  transition: all 0.2s ease;
}

.chat-header-search-wrap.has-val,
.chat-header-search-wrap:focus-within {
  width: 320px;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.chat-header-search-icon {
  position: absolute;
  left: 9px;
  color: var(--t3);
  display: flex;
  pointer-events: none;
  transition: color 0.15s ease;
}

.chat-header-search-wrap:focus-within .chat-header-search-icon {
  color: var(--accent);
}

.chat-header-search-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--t1);
  font-size: 12.5px;
  outline: none;
  padding: 0;
}

.chat-search-counter {
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  white-space: nowrap;
  margin-left: 6px;
  display: none;
}

.chat-header-search-wrap.has-val .chat-search-counter {
  display: inline-block;
}

.chat-search-counter.has-match {
  color: var(--accent);
}

.chat-search-counter.no-match {
  color: var(--red);
}

.chat-search-nav-btns {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}

.chat-header-search-wrap.has-val .chat-search-nav-btns {
  display: flex;
}

.btn-search-nav {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--t2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-search-nav:hover:not(:disabled) {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: #93c5fd;
}

.btn-search-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.chat-search-input-clear {
  margin-left: 4px;
  background: none;
  border: none;
  color: var(--t3);
  cursor: pointer;
  display: none;
  padding: 2px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
}

.chat-search-input-clear:hover {
  color: var(--t1);
}

.chat-header-search-wrap.has-val .chat-search-input-clear {
  display: flex;
}

/* Highlighted search marks */
mark.search-match {
  background-color: #fef08a !important;
  color: #713f12 !important;
  border-radius: 3px !important;
  padding: 1px 3px !important;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.4) !important;
  display: inline !important;
  font-weight: inherit !important;
}

mark.search-match.current {
  background-color: #f59e0b !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 0 0 2px #d97706, 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.msg-row.search-active .msg-bubble {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45) !important;
}

/* Messages */
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Welcome */
.chat-welcome {
  margin: auto;
  text-align: center;
  padding: 32px 20px;
  max-width: 320px;
}

.chat-welcome-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-bg);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.chat-welcome h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.chat-welcome p {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.6;
}

/* Message rows */
.msg-row {
  display: flex;
  gap: 8px;
  max-width: 78%;
  animation: msgIn .18s ease;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-row.bot {
  align-self: flex-start;
}

.msg-row.error .msg-bubble {
  background: var(--red-bg);
  border-color: #fca5a5;
  color: var(--red);
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: .03em;
}

.msg-row.user .msg-avatar {
  background: var(--accent);
  color: white;
}

.msg-row.bot .msg-avatar {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--t3);
}

.msg-bubble {
  padding: 9px 13px;
  border-radius: var(--r8);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.msg-row.user .msg-bubble {
  background: var(--accent);
  color: white;
  border-radius: var(--r8) 3px var(--r8) var(--r8);
}

.msg-row.bot .msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--t1);
  border-radius: 3px var(--r8) var(--r8) var(--r8);
}

.msg-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r8);
  overflow: hidden;
}

.msg-bubble th {
  background: var(--border);
  color: var(--t1);
  font-weight: 600;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.msg-bubble td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--t2);
}

.msg-bubble tr:last-child td {
  border-bottom: none;
}

.msg-bubble ul,
.msg-bubble ol {
  margin-left: 20px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.msg-bubble li {
  margin-bottom: 4px;
}


/* Typing */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 11px 13px;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--t3);
  animation: blink 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: .2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes blink {

  0%,
  60%,
  100% {
    opacity: .3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* Input bar */
.chat-input-bar {
  flex-shrink: 0;
  padding: 12px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-textarea {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  padding: 9px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r8);
  color: var(--t1);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  overflow-y: auto;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.chat-textarea::placeholder {
  color: var(--t3);
}

.chat-textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.send-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent);
  border: none;
  border-radius: var(--r8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), transform var(--ease);
}

.send-btn:hover {
  background: #1d4ed8;
}

.send-btn:active {
  transform: scale(0.95);
}

.send-btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.send-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.chat-hint {
  font-size: 11px;
  color: var(--t3);
  text-align: center;
  margin-top: 7px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar-toggle-btn {
    display: flex;
  }

  .chat-page {
    position: relative;
    overflow: hidden;
  }

  /* Make sidebar a vertical slide-out drawer */
  .chat-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -210px;
    /* Hidden initially */
    width: 210px;
    height: 100vh;
    z-index: 1001;
    background: var(--surface);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.15);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border);
  }

  .chat-page.sidebar-open .chat-sidebar {
    transform: translateX(210px);
  }

  /* Backdrop dims main content on open */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1000;
    backdrop-filter: blur(1.5px);
    animation: fadeIn 0.2s ease;
  }

  .chat-page.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .chat-main {
    width: 100%;
  }

  .chat-messages {
    padding: 14px;
  }

  .msg-row {
    max-width: 90%;
  }

  .admin-page {
    padding: 16px;
  }
}

@media (max-width: 580px) {
  .msg-row {
    max-width: 95%;
  }

  .topbar {
    padding: 0 14px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .chat-messages {
    padding: 12px;
  }

  .chat-input-bar {
    padding: 10px 14px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TELEGRAM BOT INTEGRATION STYLES
═══════════════════════════════════════════════════════════════ */
.btn-tg-topbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--t2);
  border-color: var(--border);
  font-size: 12px;
  padding: 5px 10px;
  transition: all var(--ease);
}

.btn-tg-topbar svg {
  color: #0284c7;
}

.btn-tg-topbar.linked {
  border-color: #bbf7d0;
  background: var(--green-bg);
  color: var(--green);
}

.btn-tg-topbar.linked svg {
  color: var(--green);
}

.tg-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.tg-indicator-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.tg-indicator-dot.offline {
  background: var(--t3);
}

/* Telegram User Table Cell & Buttons */
.tg-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-unlink-tg {
  border: none;
  background: transparent;
  color: var(--t3);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  border-radius: var(--r4);
  transition: color var(--ease), background var(--ease);
}

.btn-unlink-tg:hover {
  color: var(--red);
  background: var(--red-bg);
}

.btn-copy-tg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  color: #0284c7;
  border-color: #bae6fd;
  background: #f0f9ff;
  border-radius: var(--r4);
}

.btn-copy-tg:hover {
  background: #e0f2fe;
  color: #0369a1;
}

/* Telegram Source Tag in Messages */
.msg-source-tag.tg-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.85;
  letter-spacing: 0.2px;
}

.msg-row.user .msg-source-tag.tg-tag {
  color: rgba(255, 255, 255, 0.85);
  justify-content: flex-end;
}

.msg-row.bot .msg-source-tag.tg-tag {
  color: #0284c7;
}

/* Telegram Modal Content */
.tg-modal-content {
  display: flex;
  flex-direction: column;
}

.tg-status-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r8);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.tg-status-card.linked {
  background: var(--green-bg);
  border-color: #bbf7d0;
}

.tg-status-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.tg-status-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--t1);
}

.tg-status-desc {
  font-size: 13px;
  color: var(--t2);
  margin-top: 2px;
}

.tg-status-date {
  font-size: 11px;
  color: var(--t3);
  margin-top: 4px;
}

.tg-info-box {
  padding: 10px 12px;
  border-radius: var(--r8);
  background: var(--accent-bg);
  border: 1px solid #bfdbfe;
  font-size: 12px;
  line-height: 1.5;
  color: var(--t2);
}

.tg-link-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tg-link-box .form-input {
  flex: 1;
  text-overflow: ellipsis;
}

.tg-expiry-note {
  font-size: 12px;
  color: var(--t3);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   MULTI-CHANNEL INTEGRATIONS (CHANNELS HUB)
═══════════════════════════════════════════════════════════════ */
.btn-channels-topbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--t2);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--r6);
  transition: all var(--ease);
  position: relative;
  cursor: pointer;
}

.btn-channels-topbar:hover {
  background: var(--surface-2);
  color: var(--t1);
  border-color: var(--t3);
}

.channels-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--t2);
}

.btn-notif-topbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--t2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r6);
  transition: all var(--ease);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-notif-topbar:hover {
  background: var(--surface-2);
  color: var(--t1);
  border-color: var(--t3);
}

.btn-notif-topbar.active {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.3);
}

.notif-status-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: none;
}

.btn-notif-topbar.has-active-device .notif-status-dot {
  display: block;
}

.notif-badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--surface, #ffffff);
}

.channels-count-badge.has-active {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #bbf7d0;
}

/* Suite Tab Pills */
.btn-notif-suite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r6);
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  border: 1px solid transparent;
  background: transparent;
  transition: all var(--ease);
  cursor: pointer;
}

.btn-notif-suite:hover {
  background: var(--surface-2);
  color: var(--t1);
}

.btn-notif-suite.active {
  background: var(--surface-1);
  color: var(--t1);
  font-weight: 600;
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--t2);
  transition: all var(--ease);
}

.tab-badge.has-alerts {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

/* Minimalist Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-3);
  border: 1px solid var(--border);
  transition: .18s;
  border-radius: 18px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: var(--t3);
  transition: .18s;
  border-radius: 50%;
}

.switch-toggle input:checked+.switch-slider {
  background-color: #2563eb;
  border-color: #2563eb;
}

.switch-toggle input:checked+.switch-slider:before {
  transform: translateX(14px);
  background-color: #ffffff;
}

/* Minimalist Alert Item Card */
.alert-item-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-radius: var(--r8);
  border: 1px solid var(--border);
  background: var(--surface-1);
  margin-bottom: 8px;
  transition: all var(--ease);
}

.alert-item-card:hover {
  border-color: #cbd5e1;
  background: var(--surface-2);
}

.alert-item-card.is-triggered {
  border-left: 3px solid #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.015);
}

.alert-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.alert-title-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
}

.alert-item-desc {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.45;
  margin-bottom: 4px;
}

.alert-item-message {
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 4px;
}

.alert-item-message.is-danger {
  color: #b91c1c;
  font-weight: 500;
}

.alert-item-message.is-normal {
  color: var(--t3);
}

.alert-item-meta {
  font-size: 11px;
  color: var(--t3);
  margin-top: 5px;
}

/* Minimalist Clean Status Tags */
.status-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.status-tag.status-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.status-tag.status-normal {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.status-tag.status-locked {
  background: var(--surface-2);
  color: var(--t3);
  border: 1px solid var(--border);
}

.status-tag.status-new {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.22);
  font-weight: 600;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Channels Hub Modal Grid */
.channels-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r12);
  background: var(--surface);
  padding: 16px;
  position: relative;
  transition: all var(--ease);
}

.channel-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.channel-card.is-linked {
  border-color: #bbf7d0;
  background: linear-gradient(to bottom, #f0fdf4 0%, #ffffff 60px);
}

.channel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.channel-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
}

.channel-card-icon.tg,
.channel-card-icon.wa,
.channel-card-icon.line,
.channel-card-icon.im {
  background: transparent;
  border: none;
}

.channel-pill svg,
.msg-source-tag svg,
.btn-channels-topbar svg {
  vertical-align: middle;
  flex-shrink: 0;
}

.channel-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--t1);
  line-height: 1.2;
}

.channel-card-sub {
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px;
}

.channel-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r4);
  font-weight: 500;
}

.channel-badge.linked {
  background: #dcfce7;
  color: #15803d;
}

.channel-badge.unlinked {
  background: var(--surface-2);
  color: var(--t3);
}

.channel-badge.not-configured {
  background: #fef2f2;
  color: #dc2626;
}

.channel-card-body {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.channel-card-account {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--surface-2);
  border-radius: var(--r6);
  margin-top: 8px;
  color: var(--t1);
  word-break: break-all;
}

.channel-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Source Tags for All 4 Channels in Messages */
.msg-source-tag.wa-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.85;
}

.msg-row.user .msg-source-tag.wa-tag {
  color: rgba(255, 255, 255, 0.85);
  justify-content: flex-end;
}

.msg-row.bot .msg-source-tag.wa-tag {
  color: #16a34a;
}

.msg-source-tag.line-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.85;
}

.msg-row.user .msg-source-tag.line-tag {
  color: rgba(255, 255, 255, 0.85);
  justify-content: flex-end;
}

.msg-row.bot .msg-source-tag.line-tag {
  color: #06C755;
}

.msg-source-tag.im-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.85;
}

.msg-row.user .msg-source-tag.im-tag {
  color: rgba(255, 255, 255, 0.85);
  justify-content: flex-end;
}

.msg-row.bot .msg-source-tag.im-tag {
  color: #059669;
}

/* User Table Multi-Channel Cell */
.user-channels-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--r4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--t2);
}

.channel-pill.linked.tg {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.channel-pill.linked.wa {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.channel-pill.linked.line {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.channel-pill.linked.im {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.btn-unlink-channel {
  border: none;
  background: transparent;
  color: var(--t3);
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  border-radius: var(--r4);
  transition: color var(--ease);
}

.btn-unlink-channel:hover {
  color: var(--red);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Chart.js Dynamic Visualizations in Chat
───────────────────────────────────────────────────────────────────────────── */
.ami-chart-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 280px;
  margin: 12px 0 8px 0;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.ami-chart-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.ami-chart-error {
  padding: 10px 12px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 12px;
  border-radius: var(--r8);
  margin: 8px 0;
  border: 1px solid #fca5a5;
}

/* Token Meter Badge */
.msg-token-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--t3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 8px;
  cursor: default;
  transition: all 0.15s ease;
  user-select: none;
}

.msg-token-badge:hover {
  background: #f8fafc;
  color: var(--t2);
  border-color: #cbd5e1;
}

.msg-token-badge svg {
  color: #eab308;
  stroke: #ca8a04;
}

.token-model-tag {
  color: var(--t3);
  font-size: 10px;
  font-family: monospace;
}

/* Company Badge & Dashboard Button */
.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-600);
}

.company-badge.platform-badge {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.btn-dash-topbar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--t2);
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.btn-dash-topbar:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-200);
}

#logout-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   TERMS & CONDITIONS (S&K) MODAL
   Sebelum Anda Mulai Menggunakan AMI-Neo
═══════════════════════════════════════════════════════════════ */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  z-index: 9999;
  overflow-y: auto;
  animation: mIn 0.2s ease-out;
}

.terms-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  animation: mScale 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.terms-header {
  padding: 24px 28px 16px;
  flex-shrink: 0;
}

.terms-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.terms-subtitle {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
}

.terms-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 0 28px;
  flex-shrink: 0;
}

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

.terms-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terms-section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.terms-section-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
  text-align: justify;
}

.terms-quote {
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  padding: 10px 14px;
  border-radius: 4px;
  margin-top: 4px;
  display: block;
}

.terms-consent-box {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.terms-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.terms-checkbox-wrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border: 1.8px solid #94a3b8;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.15s ease;
  background: #ffffff;
  margin: 0;
}

.terms-checkbox-wrap input[type="checkbox"]:hover {
  border-color: #2563eb;
}

.terms-checkbox-wrap input[type="checkbox"]:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.terms-checkbox-wrap input[type="checkbox"]:checked::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.terms-checkbox-label {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.terms-btn-action {
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.terms-btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #cbd5e1 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

.terms-footer-note {
  padding: 14px 28px 20px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  flex-shrink: 0;
  background: #fafbfd;
  border-radius: 0 0 16px 16px;
}

@media (max-width: 640px) {
  .terms-modal-overlay {
    padding: 12px 8px;
  }

  .terms-header {
    padding: 18px 18px 12px;
  }

  .terms-title {
    font-size: 17px;
  }

  .terms-divider {
    margin: 0 18px;
  }

  .terms-body {
    padding: 16px 18px;
    gap: 14px;
  }

  .terms-consent-box {
    padding: 14px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .terms-btn-action {
    width: 100%;
    justify-content: center;
  }

  .terms-footer-note {
    padding: 12px 18px 16px;
    font-size: 11.5px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   GRANULAR RBAC ACCESS PERMISSIONS MATRIX (MODAL & EDITOR)
════════════════════════════════════════════════════════════════════════════ */
.perm-matrix-wrapper {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perm-matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--b, #e2e8f0);
}

.perm-matrix-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.perm-matrix-global-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perm-matrix-btn-text {
  font-size: 12px;
  color: #2563eb;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
}

.perm-matrix-btn-text:hover {
  text-decoration: underline;
}

.perm-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.perm-card {
  background: #ffffff;
  color: var(--t1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.perm-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.perm-card-top {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.perm-card-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.perm-card-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.perm-card-divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perm-card-module-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.perm-card-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.perm-select-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.15s ease;
}

.perm-select-all-btn:hover {
  color: #2563eb;
}

.perm-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.perm-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.perm-checkbox-item:hover {
  background: #f1f5f9;
}

.perm-checkbox-item input[type="checkbox"] {
  display: none;
}

.perm-checkbox-circle {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.8px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.perm-checkbox-item input[type="checkbox"]:checked+.perm-checkbox-circle {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
}

.perm-checkbox-circle svg {
  display: none;
  stroke: #ffffff;
}

.perm-checkbox-item input[type="checkbox"]:checked+.perm-checkbox-circle svg {
  display: block;
}

.perm-item-label {
  font-size: 13px;
  color: #334155;
  font-weight: 400;
}

.role-perm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
  .perm-cards-grid {
    grid-template-columns: 1fr;
    max-height: 440px;
  }
}

/* ── Pipeline & System Logs Components ─────────────────────────── */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .stat-cards-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.stat-card-title {
  font-size: 12px;
  color: var(--t3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.2;
}

.stat-card-sub {
  font-size: 11.5px;
  color: var(--t2);
  margin-top: 2px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  color: var(--t2);
  font-weight: 500;
}

.filter-select {
  padding: 6px 12px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r6);
  color: var(--t1);
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
}

.modal-box {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
}

/* ── Table Scroll & Pagination ─────────────────────────────────── */
.table-scroll-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 480px;
  position: relative;
}

.table-scroll-container thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface-2);
  box-shadow: 0 1px 0 var(--border);
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--t2);
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-indicator {
  font-weight: 500;
  color: var(--t1);
  padding: 0 4px;
}

/* ═══════════════════════════════════════════════════════════════
   PUBLIC BRAND HOME PAGE (PRE-LOGIN) - KODEGIRI PROPORTIONS
═══════════════════════════════════════════════════════════════ */
.ami-home-scroll {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 15.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  position: relative;
}

.ami-home-scroll a,
.ami-home-scroll button,
.ami-home-scroll input,
.ami-home-scroll select,
.ami-home-scroll label[for],
.ami-home-scroll [role="tab"] {
  cursor: pointer;
}

.ami-home-scroll input,
.ami-home-scroll select,
.ami-home-scroll textarea {
  cursor: text;
}

.ami-home-scroll a:focus-visible,
.ami-home-scroll button:focus-visible,
.ami-home-scroll input:focus-visible,
.ami-home-scroll select:focus-visible,
.ami-home-scroll textarea:focus-visible {
  outline: 3px solid #1D4ED8;
  outline-offset: 2px;
}

textarea.ami-home-input {
  min-height: 92px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.5;
  resize: vertical;
}

.ami-home-w {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 56px;
}

.ami-home-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.ami-home-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.ami-home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.ami-home-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: #0F172A;
  text-decoration: none;
  background: transparent;
  border: none;
  transition: color 0.15s ease;
}

.ami-home-nav-link:hover,
.ami-home-nav-link.active {
  color: #1D4ED8;
}

.ami-home-footer-link,
.ami-home-footer-link:link,
.ami-home-footer-link:visited {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.ami-home-footer-link:hover {
  color: #0F172A;
}

.ami-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.ami-home-btn:active {
  transform: translateY(1px);
}

.ami-home-btn-outline {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #64748B;
}

.ami-home-btn-outline:hover {
  background: #F8FAFC;
  border-color: #0F172A;
}

.ami-home-btn-pill-outline {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #1D4ED8;
  border-radius: 999px;
  padding: 10px 28px;
}

.ami-home-btn-pill-outline:hover {
  background: #EFF6FF;
}

.ami-home-btn-primary {
  background: #1D4ED8;
  color: #FFFFFF;
  border-color: #1D4ED8;
}

.ami-home-btn-primary:hover {
  background: #1E40AF;
  border-color: #1E40AF;
}

.ami-home-btn-pill-primary {
  background: #1D4ED8;
  color: #FFFFFF;
  border-color: #1D4ED8;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 14.5px;
}

.ami-home-btn-pill-primary:hover {
  background: #1E40AF;
  border-color: #1E40AF;
}

.ami-home-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #93C5FD;
  font-size: 12px;
  font-weight: 600;
}

.ami-home-tag-ok {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.ami-home-tag-warn {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.ami-home-tag-crit {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.ami-home-source-clean {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  padding: 0;
}

.ami-home-source-clean.is-ok {
  color: #15803D;
}

.ami-home-source-clean.is-warn {
  color: #B45309;
}

.ami-home-source-clean.is-sync {
  color: #1D4ED8;
}

.ami-home-chart-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
}

.ami-home-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1D4ED8;
  margin-bottom: 10px;
}

.ami-home-h1 {
  font-size: clamp(36px, 3.7vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 700;
  color: #0F172A;
}

.ami-home-h2 {
  font-size: clamp(26px, 2.6vw, 35px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
  color: #0F172A;
}

.ami-home-h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 700;
}

.ami-home-mobile-btn {
  display: none;
}

.ami-home-mobile-drawer {
  display: none;
  border-top: 1px solid #E2E8F0;
  background: #FFFFFF;
  padding: 16px 32px;
}

/* Hero Proportion matching kodegiri.com: ~54% Left Copy, ~46% Right Visual with generous center gap */
.ami-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 44px;
}

.ami-home-hero-copy {
  max-width: 600px;
}

.ami-home-collage {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.ami-home-hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(29, 78, 216, 0.09)) drop-shadow(0 8px 20px rgba(15, 23, 42, 0.06));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.ami-home-hero-img:hover {
  transform: translateY(-5px) scale(1.01);
  filter: drop-shadow(0 26px 48px rgba(29, 78, 216, 0.14)) drop-shadow(0 12px 24px rgba(15, 23, 42, 0.09));
}

/* Above-the-fold Pillar Strip & Chip Bar matching kodegiri.com "OUR CLIENTS / Trusted by Leading Organizations" proportion */
.ami-home-intro-band {
  position: relative;
  padding-top: 40px;
  padding-bottom: 44px;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  background-color: #F8FAFC;
  background-image:
    linear-gradient(90deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.88) 46%, rgba(248, 250, 252, 0.25) 100%),
    url('/images/Stressed%20Office%20Team%20with%20Extra%20Monitor.webp');
  background-size: cover;
  background-position: right 22%;
  background-repeat: no-repeat;
}

.ami-home-intro-content {
  max-width: 680px;
}

.ami-home-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ami-home-pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.ami-home-pill-chip:hover {
  border-color: #1D4ED8;
  color: #1D4ED8;
  background: #EFF6FF;
  transform: translateY(-1px);
}

@keyframes amiHomeFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes amiHomeBriefSwitch {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ami-home-hero-copy {
    animation: amiHomeFadeUp 0.6s ease-in-out both;
  }

  .ami-home-collage {
    animation: amiHomeFadeUp 0.72s ease-in-out 0.1s both;
  }

  .ami-home-intro-band {
    animation: amiHomeFadeUp 0.72s ease-in-out 0.18s both;
  }

  .ami-home-brief-animate {
    animation: amiHomeBriefSwitch 0.36s ease-in-out both;
  }
}

.ami-home-scrub {
  will-change: opacity, transform;
}

@keyframes amiHomeSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes amiHomeSyncPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.ami-home-skel-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 6px;
}

.ami-home-skel-line {
  display: block;
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, #CBD5E1 20%, #EFF6FF 50%, #CBD5E1 80%);
  background-size: 200% 100%;
  animation: amiHomeSkeletonShimmer 1.4s ease-in-out infinite;
}

.ami-home-skel-val {
  display: block;
  height: 22px;
  width: 78%;
  margin-top: 4px;
  border-radius: 6px;
  background: linear-gradient(90deg, #CBD5E1 20%, #EFF6FF 50%, #CBD5E1 80%);
  background-size: 200% 100%;
  animation: amiHomeSkeletonShimmer 1.4s ease-in-out infinite;
}

.ami-home-skel-inline {
  display: inline-block;
  height: 12px;
  width: 58%;
  vertical-align: middle;
  border-radius: 6px;
  background: linear-gradient(90deg, #CBD5E1 20%, #EFF6FF 50%, #CBD5E1 80%);
  background-size: 200% 100%;
  animation: amiHomeSkeletonShimmer 1.4s ease-in-out infinite;
}

.ami-home-sync-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1D4ED8;
  animation: amiHomeSyncPulse 1.2s ease-in-out infinite;
}

/* Interactive Mini Dashboard Chart inside Leadership Brief & Section 2 Tabs */
.ami-home-mini-chart-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}

.ami-home-mini-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ami-home-mini-canvas-wrap {
  position: relative;
  height: 158px;
  width: 100%;
}

.ami-home-skel-chart {
  height: 158px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 16px 8px 6px;
}

.ami-home-skel-bar {
  display: block;
  flex: 1;
  min-width: 0;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(90deg, #CBD5E1 20%, #EFF6FF 50%, #CBD5E1 80%);
  background-size: 200% 100%;
  animation: amiHomeSkeletonShimmer 1.4s ease-in-out infinite;
}

.ami-home-chart-empty {
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #64748B;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  padding: 12px;
}

.ami-home-dash-head {
  padding: 14px 18px;
  border-bottom: 1px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ami-home-dash-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
}

.ami-home-dash-tab {
  border: none;
  background: transparent;
  color: #475569;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  min-height: 34px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ami-home-dash-tab:hover {
  color: #0F172A;
}

.ami-home-dash-tab.active {
  background: #FFFFFF;
  color: #1D4ED8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ami-home-dash-panel {
  padding: 20px 22px;
}

.ami-home-dash-canvas-wrap {
  position: relative;
  height: 310px;
  width: 100%;
}

.ami-home-dash-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
  font-size: 12.5px;
  color: #475569;
}

.ami-home-collage-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
  align-items: start;
}

.ami-home-win {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.ami-home-win-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
}

.ami-home-mini-chat {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
}

.ami-home-mini-side {
  border-right: 1px solid #E2E8F0;
  padding: 10px;
  background: #F8FAFC;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ami-home-mini-pill {
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #334155;
}

.ami-home-mini-pill.active {
  background: #EFF6FF;
  color: #1E40AF;
}

.ami-home-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.ami-home-mini-table th {
  text-align: left;
  padding: 6px 8px;
  color: #334155;
  border-bottom: 1px solid #CBD5E1;
  font-weight: 600;
  background: #F8FAFC;
}

.ami-home-mini-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #E2E8F0;
  color: #0F172A;
  font-weight: 500;
}

.ami-home-exec-grid {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
}

.ami-home-exec-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ami-home-exec-kpi {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px;
}

.ami-home-exec-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ami-home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #CBD5E1;
  border-bottom: 1px solid #CBD5E1;
  background: #FFFFFF;
  margin-top: 8px;
}

.ami-home-pillar {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-right: 1px solid #CBD5E1;
}

.ami-home-pillar:last-child {
  border-right: none;
}

/* Section 1: Horizontal Role Tabs + Asymmetric Bento Grid Stage */
.ami-home-seat-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.ami-home-seat-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  color: #0F172A;
  font-family: var(--font);
  transition: background-color 0.24s ease-in-out, border-color 0.24s ease-in-out, transform 0.24s ease-in-out, box-shadow 0.24s ease-in-out;
}

.ami-home-seat-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  transform: translateY(-2px);
}

.ami-home-seat-btn.active {
  background: #EFF6FF;
  border-color: #1D4ED8;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.10);
}

.ami-home-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.ami-home-bento-main {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: box-shadow 0.28s ease-in-out, border-color 0.28s ease-in-out;
}

.ami-home-bento-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ami-home-bento-chart {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.28s ease-in-out, border-color 0.28s ease-in-out;
}

.ami-home-bento-chart .ami-home-mini-canvas-wrap {
  height: 215px;
}

.ami-home-bento-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ami-home-kpi-tile {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 14px 15px;
  transition: transform 0.24s ease-in-out, border-color 0.24s ease-in-out, box-shadow 0.24s ease-in-out;
}

.ami-home-kpi-tile:hover {
  border-color: #93C5FD;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ami-home-brief-stage {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.ami-home-comp-split {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: 44px;
  align-items: center;
}

.ami-home-ledger-wrap {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
}

.ami-home-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 500px;
}

.ami-home-ledger-table th {
  text-align: left;
  padding: 13px 16px;
  background: #F8FAFC;
  color: #334155;
  font-weight: 600;
  border-bottom: 1.5px solid #CBD5E1;
}

.ami-home-ledger-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #E2E8F0;
  color: #0F172A;
}

.ami-home-gov-section {
  background-color: #0B1426;
  background-image:
    linear-gradient(90deg, rgba(11, 20, 38, 0.80) 0%, rgba(11, 20, 38, 0.28) 52%, rgba(11, 20, 38, 0.42) 100%),
    url('/images/ami-neo-governance-background.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  padding: 76px 0;
}

.ami-home-gov-split {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: 48px;
  align-items: center;
}

.ami-home-gov-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ami-home-gov-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  transition: background-color 0.24s ease-in-out, border-color 0.24s ease-in-out, transform 0.24s ease-in-out;
}

.ami-home-gov-row:hover {
  background: rgba(30, 41, 59, 0.74);
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateX(4px);
}

.ami-home-gov-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Section 4: AMI NEO Agentic BI -> Decision -> Outcome System (Bento Grid Layout) */
.ami-home-stage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.ami-home-stage-btn {
  text-align: left;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.24s ease-in-out, border-color 0.24s ease-in-out, box-shadow 0.24s ease-in-out, transform 0.24s ease-in-out;
}
.ami-home-stage-btn:hover {
  background: #F8FAFC;
  border-color: #93C5FD;
  transform: translateY(-1px);
}
.ami-home-stage-btn.active {
  background: #EFF6FF;
  border-color: #1D4ED8;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.10);
}
.ami-home-outcome-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
}
.ami-home-outcome-panel {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: box-shadow 0.28s ease-in-out, border-color 0.28s ease-in-out;
}
.ami-home-outcome-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ami-home-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}
.ami-home-outcome-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: transform 0.24s ease-in-out, border-color 0.24s ease-in-out, box-shadow 0.24s ease-in-out;
}
.ami-home-outcome-card:hover {
  border-color: #93C5FD;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.ami-home-outcome-prog-tile {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  padding: 18px 20px;
}
.ami-home-outcome-track {
  height: 8px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
  margin-top: 10px;
}
.ami-home-outcome-fill {
  height: 100%;
  border-radius: 999px;
  background: #1D4ED8;
  transition: width 0.45s ease-in-out;
}

.ami-home-walkthrough-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: start;
}

.ami-home-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ami-home-label {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
}

.ami-home-input {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #64748B;
  background: #FFFFFF;
  color: #0F172A;
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
}

@media (max-width: 1024px) {

  .ami-home-hero-grid,
  .ami-home-collage-top,
  .ami-home-bento-grid,
  .ami-home-comp-split,
  .ami-home-gov-split,
  .ami-home-outcome-split,
  .ami-home-walkthrough-box {
    grid-template-columns: 1fr;
  }

  .ami-home-seat-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ami-home-pillars,
  .ami-home-stage-list {
    grid-template-columns: 1fr;
  }

  .ami-home-pillar {
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid #CBD5E1;
  }

  .ami-home-pillar:last-child {
    border-bottom: none;
  }

  .ami-home-intro-band {
    background-image:
      linear-gradient(180deg, rgba(248, 250, 252, 0.93) 0%, rgba(248, 250, 252, 0.86) 100%),
      url('/images/Stressed%20Office%20Team%20with%20Extra%20Monitor.webp');
    background-position: center 20%;
  }
}

@media (max-width: 680px) {
  .ami-home-w {
    padding: 0 18px;
  }

  .ami-home-nav {
    display: none;
  }

  .ami-home-mobile-btn {
    display: inline-flex;
  }

  .ami-home-mobile-drawer.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ami-home-mini-chat,
  .ami-home-exec-grid,
  .ami-home-exec-kpis,
  .ami-home-exec-bottom,
  .ami-home-seat-bar,
  .ami-home-bento-kpis,
  .ami-home-outcome-grid {
    grid-template-columns: 1fr;
  }

  .ami-home-mini-side {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ami-home-walkthrough-box,
  .ami-home-bento-main,
  .ami-home-bento-chart,
  .ami-home-outcome-panel {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ami-home-scroll {
    scroll-behavior: auto;
  }

  .ami-home-btn,
  .ami-home-seat-btn {
    transition: none;
  }

  .ami-home-skel-line,
  .ami-home-skel-val,
  .ami-home-skel-inline,
  .ami-home-skel-bar,
  .ami-home-sync-dot {
    animation: none;
  }
}