:root {
  --ta-ink: #17211f;
  --ta-muted: #66736f;
  --ta-line: #dce4e1;
  --ta-canvas: #f3f6f5;
  --ta-panel: #ffffff;
  --ta-nav: #172b2a;
  --ta-primary: #087f70;
  --ta-primary-hover: #06695e;
  --ta-blue: #2764c5;
  --ta-amber: #b7791f;
  --ta-danger: #c2414b;
  --ta-radius: 6px;
  --ta-shadow: 0 1px 2px rgb(23 33 31 / 6%), 0 8px 24px rgb(23 33 31 / 5%);
}

body,
body[data-theme="light"] {
  --primary: var(--ta-primary);
  --primary-color: var(--ta-primary);
  --bg-color: var(--ta-canvas);
  --fg-color: var(--ta-panel);
  --card-bg: var(--ta-panel);
  --border-color: var(--ta-line);
  --text-color: var(--ta-ink);
  --text-muted: var(--ta-muted);
  --subtle-fg: #edf2f0;
  --control-bg: #f8faf9;
  color: var(--ta-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body[data-theme="dark"] {
  --primary: #43b9a8;
  --primary-color: #43b9a8;
  --bg-color: #111917;
  --fg-color: #18221f;
  --card-bg: #18221f;
  --border-color: #30403b;
  --text-color: #eef5f2;
  --text-muted: #9eada8;
  --subtle-fg: #22302c;
  --control-bg: #202d29;
}

.navbar {
  min-height: 52px;
  background: var(--ta-nav) !important;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  box-shadow: 0 2px 12px rgb(11 24 22 / 14%);
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-home,
.navbar .navbar-home svg,
.navbar .search-bar .awesomplete input,
.navbar .search-bar .awesomplete input::placeholder {
  color: #f5faf8 !important;
}

.navbar .search-bar .awesomplete input {
  background: rgb(255 255 255 / 10%) !important;
  border: 1px solid rgb(255 255 255 / 12%) !important;
  border-radius: var(--ta-radius) !important;
}

.navbar .search-bar .awesomplete input:focus {
  background: #ffffff !important;
  border-color: #70c7bb !important;
  color: var(--ta-ink) !important;
}

.page-head {
  min-height: 58px;
  background: color-mix(in srgb, var(--fg-color) 94%, transparent);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.page-head .page-title .title-text,
.page-head h3 {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

.layout-main-section,
.layout-main-section-wrapper,
.page-container {
  background: transparent;
}

.layout-side-section {
  border-right: 1px solid var(--border-color);
}

.desk-sidebar .standard-sidebar-item,
.layout-side-section .sidebar-menu a {
  min-height: 34px;
  border-radius: 5px;
  color: var(--text-muted);
  font-weight: 500;
}

.desk-sidebar .standard-sidebar-item:hover,
.layout-side-section .sidebar-menu a:hover {
  background: var(--subtle-fg);
  color: var(--text-color);
}

.desk-sidebar .standard-sidebar-item.selected,
.desk-sidebar .standard-sidebar-item.active,
.layout-side-section .sidebar-menu a.active {
  background: color-mix(in srgb, var(--primary) 12%, var(--fg-color));
  color: var(--primary);
  font-weight: 650;
}

.widget,
.widget.dashboard-widget-box,
.form-section.card-section,
.form-dashboard-section,
.number-widget-box,
.shortcut-widget-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--ta-radius) !important;
  box-shadow: var(--ta-shadow);
}

.widget:hover,
.shortcut-widget-box:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border-color));
  box-shadow: 0 2px 3px rgb(23 33 31 / 7%), 0 12px 28px rgb(23 33 31 / 7%);
}

.list-row-container,
.list-row-head {
  border-bottom-color: var(--border-color) !important;
}

.list-row-container {
  background: var(--card-bg);
  transition: background-color 120ms ease;
}

.list-row-container:hover {
  background: color-mix(in srgb, var(--primary) 4%, var(--card-bg));
}

.list-row-head {
  background: #edf2f0;
  color: #53615d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

body[data-theme="dark"] .list-row-head {
  background: #22302c;
}

.form-control,
.input-with-feedback,
.ql-editor,
.ace_editor,
.frappe-control .control-input-wrapper input,
.frappe-control .control-input-wrapper select,
.frappe-control .control-input-wrapper textarea {
  border-color: var(--border-color) !important;
  border-radius: 5px !important;
  background: var(--control-bg) !important;
}

.form-control:focus,
.input-with-feedback:focus,
.frappe-control .control-input-wrapper input:focus,
.frappe-control .control-input-wrapper select:focus,
.frappe-control .control-input-wrapper textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent) !important;
}

.control-label,
.grid-heading-row {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.btn {
  border-radius: 5px !important;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none !important;
}

.btn-primary,
.btn-primary-dark {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary-dark:hover {
  background: var(--ta-primary-hover) !important;
  border-color: var(--ta-primary-hover) !important;
}

.btn-default,
.btn-secondary {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color) !important;
}

.nav-tabs,
.form-tabs-list {
  border-bottom: 1px solid var(--border-color);
  gap: 6px;
}

.nav-tabs .nav-link,
.form-tabs-list .form-tab-row .form-tab {
  border-radius: 0 !important;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-tabs .nav-link.active,
.form-tabs-list .form-tab-row .form-tab.active {
  border-bottom: 2px solid var(--primary) !important;
  color: var(--primary) !important;
}

.modal-content,
.dropdown-menu,
.popover {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--ta-radius) !important;
  box-shadow: 0 18px 44px rgb(23 33 31 / 16%);
}

.indicator-pill,
.badge,
.tag-pill {
  border-radius: 999px !important;
  font-weight: 650;
}

.indicator-pill.green,
.indicator.green::before {
  color: var(--ta-primary) !important;
}

.indicator-pill.blue,
.indicator.blue::before {
  color: var(--ta-blue) !important;
}

.indicator-pill.orange,
.indicator.orange::before,
.indicator-pill.yellow,
.indicator.yellow::before {
  color: var(--ta-amber) !important;
}

.indicator-pill.red,
.indicator.red::before {
  color: var(--ta-danger) !important;
}

.datatable .dt-header .dt-cell,
.grid-heading-row {
  background: #edf2f0 !important;
}

body[data-theme="dark"] .datatable .dt-header .dt-cell,
body[data-theme="dark"] .grid-heading-row {
  background: #22302c !important;
}

.login-content.page-card,
.for-login .page-card,
.for-forgot .page-card {
  border: 1px solid var(--ta-line);
  border-radius: var(--ta-radius) !important;
  box-shadow: var(--ta-shadow);
}

@media (max-width: 767px) {
  .page-head {
    min-height: 52px;
  }

  .page-head .page-title .title-text,
  .page-head h3 {
    font-size: 16px;
  }

  .layout-main-section {
    padding-left: 8px;
    padding-right: 8px;
  }

  .form-section.card-section,
  .widget,
  .widget.dashboard-widget-box {
    box-shadow: none;
  }
}

/* Premium CRM shell */
html.ta-crm-shell {
  --surface-base: #ffffff;
  --surface-gray-1: #f5f7f6;
  --surface-gray-2: #edf2f0;
  --surface-gray-3: #e2e9e6;
  --surface-gray-4: #d3dedb;
  --surface-gray-5: #aebdb8;
  --surface-gray-6: #7c8c87;
  --surface-gray-7: #5d6d68;
  --surface-gray-8: #3b4b46;
  --surface-gray-9: #263632;
  --surface-gray-10: #17211f;
  --surface-sidebar: #f5f7f6;
  --surface-elevation-1: #ffffff;
  --surface-elevation-2: #ffffff;
  --surface-elevation-3: #ffffff;
  --ink-gray-4: #96a6a1;
  --ink-gray-5: #7a8a85;
  --ink-gray-6: #667670;
  --ink-gray-7: #53625d;
  --ink-gray-8: #34433f;
  --ink-gray-9: #17211f;
  --ink-gray-10: #0e1715;
  --outline-gray-1: #e1e8e5;
  --outline-gray-2: #d4dedb;
  --outline-gray-3: #b9c8c3;
  --focus-outline-default: 0 0 0 3px rgb(8 127 112 / 18%);
  background: #f5f7f6;
  color: var(--ta-ink);
}

html.ta-crm-shell.dark {
  --surface-base: #151d1b;
  --surface-gray-1: #1b2522;
  --surface-gray-2: #222f2b;
  --surface-gray-3: #2a3934;
  --surface-gray-4: #364740;
  --surface-gray-5: #52645e;
  --surface-gray-6: #7e908a;
  --surface-gray-7: #9eafa9;
  --surface-gray-8: #c1cec9;
  --surface-gray-9: #e0e8e5;
  --surface-gray-10: #f3f7f5;
  --surface-sidebar: #1b2522;
  --surface-elevation-1: #1b2522;
  --surface-elevation-2: #222f2b;
  --surface-elevation-3: #2a3934;
  --ink-gray-4: #657770;
  --ink-gray-5: #82938d;
  --ink-gray-6: #9eaea8;
  --ink-gray-7: #bac7c2;
  --ink-gray-8: #d7e0dc;
  --ink-gray-9: #eef4f1;
  --ink-gray-10: #ffffff;
  --outline-gray-1: #2c3a36;
  --outline-gray-2: #3a4b45;
  --outline-gray-3: #52665f;
  background: #111917;
}

.ta-crm-shell body {
  --card-bg: var(--surface-base);
  --control-bg: var(--surface-base);
  --border-color: var(--outline-gray-2);
  --text-color: var(--ink-gray-9);
  --text-muted: var(--ink-gray-6);
  background: var(--surface-gray-1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.ta-crm-shell #app > .flex.h-screen.w-screen {
  background: var(--surface-gray-1);
}

.ta-crm-shell #app > .flex.h-screen.w-screen > .relative.flex.h-full.bg-surface-gray-1 {
  background: #172b2a !important;
  border-right: 1px solid #27413d;
  box-shadow: 4px 0 18px rgb(15 34 31 / 9%);
}

.ta-crm-shell #app > .flex.h-screen.w-screen > .relative.flex.h-full.bg-surface-gray-1 > :first-child {
  background: #172b2a !important;
  border-right-color: #27413d !important;
}

.ta-crm-shell #app > .flex.h-screen.w-screen > .relative.flex.h-full.bg-surface-gray-1 > :first-child [class*="text-ink-gray-"] {
  color: #b8c8c3 !important;
}

.ta-crm-shell #app > .flex.h-screen.w-screen > .relative.flex.h-full.bg-surface-gray-1 > :first-child [data-slot="sidebar-item"] {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #b8c8c3 !important;
}

.ta-crm-shell #app > .flex.h-screen.w-screen > .relative.flex.h-full.bg-surface-gray-1 > :first-child [data-slot="sidebar-item"]:hover {
  background: rgb(255 255 255 / 7%) !important;
  color: #ffffff !important;
}

.ta-crm-shell #app > .flex.h-screen.w-screen > .relative.flex.h-full.bg-surface-gray-1 > :first-child [data-slot="sidebar-item"][data-state="active"] {
  border-color: rgb(74 187 170 / 24%);
  background: rgb(49 164 147 / 18%) !important;
  box-shadow: inset 2px 0 0 #43b9a8;
  color: #ffffff !important;
}

.ta-crm-shell #app > .flex.h-screen.w-screen > .relative.flex.h-full.bg-surface-gray-1 > :first-child [data-slot="sidebar-item"] svg,
.ta-crm-shell #app > .flex.h-screen.w-screen > .relative.flex.h-full.bg-surface-gray-1 > :first-child [data-slot="sidebar-item"] [class*="lucide-"] {
  color: currentColor !important;
}

.ta-crm-shell #app > .flex.h-screen.w-screen > .flex-1 {
  background: var(--surface-gray-1) !important;
}

.ta-crm-shell #app > .flex.h-screen.w-screen > .flex-1 > .flex.border-b.pr-5 {
  min-height: 50px;
  border-color: var(--outline-gray-1) !important;
  background: color-mix(in srgb, var(--surface-base) 96%, transparent);
  box-shadow: 0 1px 2px rgb(23 33 31 / 4%);
  backdrop-filter: blur(12px);
}

.ta-crm-shell #app-header header {
  min-height: 49px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.ta-crm-shell #app-header nav,
.ta-crm-shell #app-header [aria-label*="breadcrumb" i] {
  color: var(--ink-gray-7);
  font-size: 13px;
  font-weight: 600;
}

.ta-crm-shell button,
.ta-crm-shell a,
.ta-crm-shell input,
.ta-crm-shell textarea,
.ta-crm-shell select {
  letter-spacing: 0;
}

.ta-crm-shell button[class*="bg-surface-gray-10"],
.ta-crm-shell a[class*="bg-surface-gray-10"] {
  background: var(--ta-primary) !important;
  color: #ffffff !important;
}

.ta-crm-shell button[class*="bg-surface-gray-10"]:hover,
.ta-crm-shell a[class*="bg-surface-gray-10"]:hover {
  background: var(--ta-primary-hover) !important;
}

.ta-crm-shell input:not([type="checkbox"]):not([type="radio"]),
.ta-crm-shell textarea,
.ta-crm-shell select {
  border-color: var(--outline-gray-2) !important;
  border-radius: 5px !important;
  background: var(--surface-base) !important;
  color: var(--ink-gray-9) !important;
}

.ta-crm-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.ta-crm-shell textarea:focus,
.ta-crm-shell select:focus {
  border-color: var(--ta-primary) !important;
  box-shadow: 0 0 0 3px rgb(8 127 112 / 13%) !important;
  outline: none;
}

.ta-crm-shell #app .relative.flex.w-full.flex-1.flex-col.overflow-x-auto {
  margin: 0 20px;
  border: 1px solid var(--outline-gray-1);
  border-radius: 6px;
  background: var(--surface-base);
  box-shadow: 0 1px 2px rgb(23 33 31 / 4%);
}

.ta-crm-shell #app .relative.flex.w-full.flex-1.flex-col.overflow-x-auto .bg-surface-gray-2 {
  background: var(--surface-gray-2) !important;
}

.ta-crm-shell #app .relative.flex.w-full.flex-1.flex-col.overflow-x-auto a.flex.flex-col:hover {
  background: color-mix(in srgb, var(--ta-primary) 4%, var(--surface-base)) !important;
}

.ta-crm-shell #app .relative.flex.w-full.flex-1.flex-col.overflow-x-auto .border-t,
.ta-crm-shell #app .relative.flex.w-full.flex-1.flex-col.overflow-x-auto .border-b {
  border-color: var(--outline-gray-1) !important;
}

.ta-crm-shell #app [data-column] > [data-name] {
  border-color: var(--outline-gray-2) !important;
  border-radius: 6px !important;
  background: var(--surface-base) !important;
  box-shadow: 0 1px 2px rgb(23 33 31 / 5%);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.ta-crm-shell #app [data-column] > [data-name]:hover {
  border-color: color-mix(in srgb, var(--ta-primary) 38%, var(--outline-gray-2)) !important;
  box-shadow: 0 8px 22px rgb(23 33 31 / 8%);
  transform: translateY(-1px);
}

.ta-crm-shell #app [data-column] > [data-name] .border-b {
  border-color: var(--outline-gray-1) !important;
}

.ta-crm-shell #app [role="tablist"] {
  border-bottom: 1px solid var(--outline-gray-1);
  background: var(--surface-base);
}

.ta-crm-shell #app [role="tab"] {
  color: var(--ink-gray-6);
  font-weight: 600;
}

.ta-crm-shell #app [role="tab"][aria-selected="true"] {
  color: var(--ta-primary) !important;
}

.ta-crm-shell #app [role="tabpanel"] {
  background: var(--surface-gray-1);
}

.ta-crm-shell #app .flex.h-full.overflow-hidden > .border-l,
.ta-crm-shell #app .flex.h-full.overflow-hidden > [class*="border-l"] {
  border-color: var(--outline-gray-1) !important;
  background: var(--surface-base);
  box-shadow: -4px 0 18px rgb(23 33 31 / 4%);
}

.ta-crm-shell [role="dialog"] {
  color: var(--ink-gray-9);
}

.ta-crm-shell [role="dialog"] > div,
.ta-crm-shell [data-reka-dialog-content] {
  border-color: var(--outline-gray-2) !important;
  border-radius: 6px !important;
  background: var(--surface-base) !important;
  box-shadow: 0 20px 56px rgb(13 23 21 / 20%);
}

.ta-crm-shell [role="menu"],
.ta-crm-shell [data-reka-popper-content-wrapper] > div {
  border-color: var(--outline-gray-2) !important;
  border-radius: 6px !important;
  box-shadow: 0 14px 36px rgb(13 23 21 / 15%);
}

.ta-crm-shell ::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.ta-crm-shell ::-webkit-scrollbar-track {
  background: transparent;
}

.ta-crm-shell ::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink-gray-5) 45%, transparent);
  background-clip: padding-box;
}

@media (max-width: 767px) {
  .ta-crm-shell #app > .flex.h-screen.w-screen > .flex-1 > .flex.border-b.pr-5 {
    min-height: 46px;
    padding-right: 10px;
  }

  .ta-crm-shell #app-header header {
    min-height: 45px;
  }

  .ta-crm-shell #app .relative.flex.w-full.flex-1.flex-col.overflow-x-auto {
    margin-right: 12px;
    margin-left: 12px;
  }

  .ta-crm-shell #app [data-column] > [data-name]:hover {
    transform: none;
  }
}

/* Guided tutorials */
.ta-tutorial-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: var(--ta-nav);
  box-shadow: 0 8px 24px rgb(23 33 31 / 22%);
  color: #ffffff;
  cursor: pointer;
  font: 700 18px/1 Inter, ui-sans-serif, sans-serif;
}

.ta-tutorial-launcher:hover,
.ta-tutorial-launcher:focus-visible {
  background: var(--ta-primary);
  outline: 3px solid color-mix(in srgb, var(--ta-primary) 25%, transparent);
}

.ta-tutorial-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgb(13 23 21 / 48%);
  backdrop-filter: blur(2px);
}

.ta-tutorial-center {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10021;
  display: flex;
  width: min(460px, 100vw);
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: -16px 0 42px rgb(13 23 21 / 18%);
  color: var(--text-color);
}

.ta-tutorial-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.ta-tutorial-header h2,
.ta-tour-popover h2 {
  margin: 4px 0 6px;
  color: var(--text-color);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.ta-tutorial-header p,
.ta-tour-popover p,
.ta-tutorial-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ta-tutorial-eyebrow,
.ta-tour-kicker {
  color: var(--ta-primary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ta-tutorial-close,
.ta-tour-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--text-color);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.ta-tutorial-close:hover,
.ta-tour-icon-button:hover:not(:disabled) {
  border-color: var(--ta-primary);
  color: var(--ta-primary);
}

.ta-tour-icon-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.ta-tutorial-search {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
}

.ta-tutorial-search label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.ta-tutorial-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: var(--control-bg);
  color: var(--text-color);
  font-size: 14px;
}

.ta-tutorial-search input:focus {
  border-color: var(--ta-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-primary) 14%, transparent);
  outline: none;
}

.ta-tutorial-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 24px;
}

.ta-tutorial-item {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.ta-tutorial-item-copy {
  min-width: 0;
}

.ta-tutorial-item-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ta-tutorial-item h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 15px;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.3;
}

.ta-tutorial-meta {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.ta-tutorial-complete {
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ta-primary) 12%, var(--card-bg));
  color: var(--ta-primary);
  font-size: 10px;
  font-weight: 700;
}

.ta-tutorial-start,
.ta-tour-next,
.ta-tour-retry {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--ta-primary);
  border-radius: 5px;
  background: var(--ta-primary);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.ta-tutorial-start:hover,
.ta-tour-next:hover,
.ta-tour-retry:hover {
  border-color: var(--ta-primary-hover);
  background: var(--ta-primary-hover);
}

.ta-tour-retry {
  background: var(--card-bg);
  color: var(--ta-primary);
}

.ta-tour-retry:hover {
  color: #ffffff;
}

.ta-tutorial-empty {
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.ta-tour-layer {
  position: fixed;
  z-index: 10030;
  background: rgb(13 23 21 / 64%);
  pointer-events: auto;
  transition: inset 160ms ease, width 160ms ease, height 160ms ease;
}

.ta-tour-highlight {
  position: fixed;
  z-index: 10031;
  border: 2px solid #43b9a8;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgb(67 185 168 / 18%);
  pointer-events: none;
  transition: top 140ms ease, left 140ms ease, width 140ms ease, height 140ms ease;
}

.ta-tour-popover {
  position: fixed;
  z-index: 10032;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-wrap: anywhere;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  box-shadow: 0 18px 50px rgb(13 23 21 / 28%);
  color: var(--text-color);
}

.ta-tour-notice {
  margin-top: 12px !important;
  padding: 9px 10px;
  border-left: 3px solid var(--ta-amber);
  border-radius: 0 4px 4px 0;
  background: color-mix(in srgb, var(--ta-amber) 9%, var(--card-bg));
  color: var(--text-color) !important;
  font-size: 12px !important;
}

.ta-tour-popover--center {
  top: 50% !important;
  left: 50% !important;
  width: min(360px, calc(100vw - 32px)) !important;
  transform: translate(-50%, -50%);
}

.ta-tour-progress {
  height: 3px;
  margin: 18px 0 14px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--border-color);
}

.ta-tour-progress span {
  display: block;
  height: 100%;
  background: var(--ta-primary);
  transition: width 180ms ease;
}

.ta-tour-footer,
.ta-tour-controls {
  display: flex;
  align-items: center;
}

.ta-tour-footer {
  justify-content: space-between;
  gap: 10px;
}

.ta-tour-controls {
  gap: 7px;
}

.ta-tour-text-button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.ta-tour-text-button:hover {
  color: var(--text-color);
}

.ta-tour-count {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
}

@media (max-width: 767px) {
  .ta-tutorial-launcher {
    right: 14px;
    bottom: 14px;
  }

  .ta-tutorial-header,
  .ta-tutorial-search {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ta-tutorial-list {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ta-tutorial-item {
    align-items: flex-start;
  }

  .ta-tour-popover {
    max-height: calc(100vh - 32px);
  }
}
