:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #363b44;
  --muted: #7b8491;
  --line: #e1e6ec;
  --primary: #4f7df3;
  --primary-strong: #2f66df;
  --accent: #fff36d;
  --cyan: #1fbfd0;
  --orange: #ffb74a;
  --lime: #8fd14f;
  --warning: #d99525;
  --success: #21a67a;
  --info: #4f7df3;
  --brand-deep: #2f66df;
  --brand-light: #4f7df3;
  --shadow: 0 12px 30px rgba(39, 49, 67, .08);
  --shadow-soft: 0 6px 18px rgba(39, 49, 67, .06);
}

html,
body,
button,
input,
select,
textarea {
  font-family: "PT Sans", Arial, sans-serif !important;
}

body {
  background: #f5f5f5 !important;
  color: #363b44 !important;
}

.app-main {
  background: #f5f5f5 !important;
}

.sidebar {
  background: #fff !important;
  color: #363b44 !important;
  border-right: 1px solid #e1e6ec !important;
  box-shadow: none !important;
}

.sidebar::before,
.sidebar-circuit,
.login-orbit,
.login-screen::before {
  display: none !important;
}

.brand {
  min-height: 74px !important;
  border-bottom: 1px solid #e1e6ec !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.brand-mark {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid #e1e6ec !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.brand strong,
.brand small,
.menu-label {
  color: #7b8491 !important;
}

.nav-list {
  gap: 4px !important;
  padding: 12px !important;
}

.nav-list a {
  min-height: 42px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #4b5563 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.nav-list a:hover {
  background: #f3f6fb !important;
  color: #363b44 !important;
}

.nav-list a.active {
  border-color: #d7e4ff !important;
  background: #eaf1ff !important;
  color: #356fe8 !important;
  box-shadow: none !important;
}

.nav-list a.active::before {
  display: none !important;
}

.nav-icon,
body.sidebar-collapsed .nav-icon,
body.sidebar-collapsed .sidebar:hover .nav-icon {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
}

.nav-icon svg,
.sidebar-toggle svg,
.icon-button svg,
.chat-record-button svg,
.crm-attach-button svg {
  width: 21px !important;
  height: 21px !important;
}

.nav-icon svg *,
.sidebar-toggle svg *,
.crm-attach-button svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.sidebar-toggle {
  border-color: #e1e6ec !important;
  background: #fff !important;
  color: #4f7df3 !important;
  box-shadow: 0 8px 20px rgba(39,49,67,.08) !important;
}

.profile-box {
  border-color: #e1e6ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #363b44 !important;
  box-shadow: none !important;
}

.topbar,
.panel,
.metric,
.toolbar,
.section-block,
.column,
.modal,
.user-create-card,
.company-card,
.traffic-card,
.person-item,
.goal-item,
.daily-item,
.agenda-item,
.task-card,
.chat-panel,
.chat-side,
.crm-shell,
.crm-lead-detail,
.crm-connect-panel,
.admin-hero,
.access-template-card,
.users-list-panel,
.admin-form-section {
  border: 1px solid #e1e6ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(39,49,67,.05) !important;
  backdrop-filter: none !important;
}

.panel:hover,
.metric:hover,
.company-card:hover,
.traffic-card:hover,
.person-item:hover,
.goal-item:hover,
.daily-item:hover,
.task-card:hover,
.agenda-item:hover {
  border-color: #cbd7ea !important;
  box-shadow: 0 8px 22px rgba(39,49,67,.07) !important;
  transform: none !important;
}

.topbar {
  min-height: 74px !important;
  color: #363b44 !important;
}

.topbar h1,
h1,
h2,
h3,
strong {
  color: #363b44;
}

.eyebrow,
.global-results span,
.crm-inbox-item em,
.area-badge,
.company-contact a,
.advisory-head strong {
  color: #4f7df3 !important;
}

.metric span,
.metric small,
label,
.card-meta,
.person-role,
th,
.form-hint,
small {
  color: #7b8491;
}

.primary-button {
  border-color: #4f7df3 !important;
  background: #4f7df3 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.primary-button:hover {
  background: #2f66df !important;
  transform: none !important;
}

.secondary-button,
.ghost-button,
.icon-button,
.table-action,
.quiet-action,
.card-actions button,
.campaign-actions button {
  border-color: #d8dee8 !important;
  background: #fff !important;
  color: #363b44 !important;
  box-shadow: none !important;
}

.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.table-action:hover,
.quiet-action:hover {
  border-color: #a9bfef !important;
  background: #f3f6fb !important;
  color: #2f66df !important;
}

input,
select,
textarea {
  border-color: #d8dee8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #363b44 !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4f7df3 !important;
  box-shadow: 0 0 0 3px rgba(79,125,243,.16) !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #4f7df3;
}

.global-search,
.search-field,
.crm-filter-bar,
.crm-topbar,
.crm-thread-head {
  border-color: #e1e6ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.column {
  background: #f7f8fa !important;
}

.column::before,
.crm-pipeline-column::before {
  background: #fff36d !important;
}

.column-header,
.crm-column-head {
  border-bottom-color: #e1e6ec !important;
}

.task-card,
.crm-card,
.crm-inbox-item,
.crm-followup-card,
.crm-seller-card {
  border-color: #dfe5ee !important;
  border-left-color: #fff36d !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(39,49,67,.05) !important;
}

.task-card:hover,
.crm-card:hover,
.crm-inbox-item:hover {
  border-color: #cbd7ea !important;
  border-left-color: #4f7df3 !important;
}

.count-pill,
.live-pill,
.role-badge,
.permission-tags em,
.ops-service-tags em,
.area-badge {
  border: 1px solid #dbe5f6 !important;
  border-radius: 999px !important;
  background: #eef4ff !important;
  color: #356fe8 !important;
}

.live-pill[data-mode="online"] {
  background: #eaf8f2 !important;
  color: #16845f !important;
  border-color: #cdeee1 !important;
}

.avatar,
.owner-name .avatar {
  background: #4f7df3 !important;
  color: #fff !important;
  box-shadow: none !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

th {
  background: #f7f8fa !important;
  color: #7b8491 !important;
  font-size: 12px !important;
}

td {
  background: #fff !important;
  border-bottom-color: #edf0f4 !important;
}

.login-screen {
  background: #f5f5f5 !important;
  color: #363b44 !important;
}

.login-brand {
  color: #363b44 !important;
}

.login-brand small {
  color: #7b8491 !important;
}

.login-card {
  border: 1px solid #e1e6ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #363b44 !important;
  box-shadow: 0 18px 46px rgba(39,49,67,.08) !important;
}

.login-card h1 {
  color: #363b44 !important;
}

.login-insight {
  border-color: #e1e6ec !important;
  border-radius: 8px !important;
  background: #f7f8fa !important;
}

.login-stage {
  opacity: .92 !important;
  filter: drop-shadow(0 24px 40px rgba(39,49,67,.12)) !important;
}

.crm-stage-line,
.progress-fill,
.pilot-focus-item.today > span {
  background: #4f7df3 !important;
}

.danger-action,
.role-admin {
  color: #d84b4b !important;
}

body.sidebar-collapsed .brand {
  justify-content: center !important;
}
