:root {
  --bg: #f5f6f8;
  --sidebar-bg: var(--brand-sidebar-bg, #1a2b44);
  --panel: #ffffff;
  --line: #e2e7f2;
  --text: #2b3674;
  --muted: #6c7999;
  --blue: #4d8fdb;
  --blue-dark: #1e3f8a;
  --sidebar-accordion-duration: .72s;
  --sidebar-accordion-ease: ease-in-out;
}

/* =============================================
   SHARED PORTAL MODAL SYSTEM
   ============================================= */
.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
}

.portal-modal.is-open {
  display: flex;
}

.portal-modal.is-anchored {
  background: rgba(0, 0, 0, 0.05);
  /* Lighter backdrop for anchored modals */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  align-items: flex-start;
  justify-content: flex-start;
}

body.portal-modal-open {
  overflow: hidden;
}

/* Dialog */
.portal-modal-dialog {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  animation: portalModalIn 0.25s ease-out;
  overflow: hidden;
}

.portal-modal.is-anchored .portal-modal-dialog {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

@keyframes portalModalIn {
  from {
    transform: translateY(16px) scale(0.97);
    opacity: 0;
  }

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

/* Size variants */
.portal-modal--xs {
  max-width: 360px;
}

.portal-modal--sm {
  max-width: 480px;
}

.portal-modal--md {
  max-width: 640px;
}

.portal-modal--lg {
  max-width: 860px;
}

.portal-modal--xl {
  max-width: 1100px;
}

/* Header */
.portal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.portal-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.portal-modal-close {
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.portal-modal-close:hover {
  background: #f1f5f9;
  color: #475569;
}

/* Body */
.portal-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* Footer */
.portal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

/* Buttons */
.portal-modal-btn {
  height: 36px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.portal-modal-btn--primary {
  background: #1a56db;
  color: #fff;
}

.portal-modal-btn--primary:hover {
  background: #1e429f;
}

.portal-modal-btn--primary:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.portal-modal-btn--secondary {
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.portal-modal-btn--secondary:hover {
  background: #f8fafc;
}

.portal-modal-btn--danger {
  background: #dc2626;
  color: #fff;
}

.portal-modal-btn--danger:hover {
  background: #b91c1c;
}

* {
  box-sizing: border-box;
}

*[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

html {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

a {
  color: inherit;
  text-decoration: none;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 58px 230px 1fr;
}

.portal-shell.nav-panel-collapsed {
  grid-template-columns: 58px 0 1fr;
}

.portal-shell.passkey-active .sidebar,
.portal-shell.passkey-active .nav-panel {
  filter: saturate(.35) brightness(.62);
  opacity: .82;
  pointer-events: none;
  transition: filter .18s ease, opacity .18s ease;
}

.sidebar {
  background: var(--sidebar-bg);
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 160;
  box-shadow: 1px 0 30px rgba(22, 39, 73, 0.42);
  border-right: 1px solid #c6c6c7;
  overflow: visible;
}

.portal-shell:not(.nav-panel-collapsed) .sidebar {
  box-shadow: none;
}

.sidebar-brand {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(171, 182, 197, 0.18);
}

.brand-logo {
  width: min(196px, calc(100% - 12px));
  height: 56px;
  object-fit: contain;
}

.sidebar-nav {
  padding: 8px 6px;
  overflow-y: auto;
  overflow-x: visible;
  position: relative;
  z-index: 70;
  min-height: 0;
  scrollbar-width: none;
}

.sidebar-shortcuts {
  display: grid;
  align-content: start;
  gap: 4px;
}

.sidebar-shortcut-link {
  min-height: 42px;
}

.sidebar-shortcut-parent {
  position: relative;
}

.sidebar-shortcut-customize {
  margin-top: 10px;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(26, 43, 68, 0), rgba(26, 43, 68, .92) 78%, rgba(26, 43, 68, 1));
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.sidebar-nav[data-can-scroll="1"][data-scroll-bottom="0"]::after {
  opacity: 1;
}

.sidebar-group {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
}

.sidebar-group-items {
  display: grid;
  gap: 2px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    max-height var(--sidebar-accordion-duration) var(--sidebar-accordion-ease),
    opacity var(--sidebar-accordion-duration) var(--sidebar-accordion-ease),
    transform var(--sidebar-accordion-duration) var(--sidebar-accordion-ease);
}

.sidebar-group.active-group .sidebar-group-items {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
}

.nav-group-title {
  width: 100%;
  margin: 6px 0 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #d3dceb;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.nav-group-title svg {
  width: 14px;
  height: 14px;
  stroke: #8c9db6;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--sidebar-accordion-duration) var(--sidebar-accordion-ease);
}

.sidebar-group.active-group .nav-group-title svg {
  transform: rotate(90deg);
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #abb6c5;
  border-radius: 0;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  stroke: #abb6c5;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #edf4ff;
}

.nav-link:hover svg {
  stroke: #edf4ff;
}

.nav-link.active {
  color: var(--brand-sidebar-active, #ffffff);
  font-weight: 600;
}

.nav-link.active svg {
  stroke: var(--brand-sidebar-active, #ffffff);
}

.nav-parent {
  position: relative;
}

.nav-parent .submenu {
  display: grid;
  padding-left: 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    max-height var(--sidebar-accordion-duration) var(--sidebar-accordion-ease),
    opacity var(--sidebar-accordion-duration) var(--sidebar-accordion-ease),
    transform var(--sidebar-accordion-duration) var(--sidebar-accordion-ease);
}

.nav-parent.open .submenu {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
}

.sidebar-footer {
  border-top: 1px solid rgba(171, 182, 197, 0.18);
  padding: 6px;
  display: grid;
  gap: 4px;
  margin-top: auto;
  background: var(--sidebar-bg);
  z-index: 170;
  width: 100%;
}

.sidebar-footer .nav-link,
.sidebar-footer .sidebar-toggle {
  width: 100%;
}

.sidebar-logout-link {
  margin-top: auto;
}

.sidebar-toggle {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #edf4ff;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  justify-self: center;
  align-self: center;
}

.sidebar-footer .sidebar-toggle {
  width: 32px;
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
  stroke: #cbd8ea;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .42s ease;
}

.portal-shell.nav-panel-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.portal-shell.sidebar-compact .nav-group-title,
.portal-shell.sidebar-compact .nav-link span {
  display: none;
}

.portal-shell.sidebar-compact .sidebar-group-items {
  display: grid !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  transform: none !important;
}

.portal-shell.sidebar-compact .sidebar-brand {
  padding: 0;
}

.portal-shell.sidebar-compact .brand-logo {
  width: 26px;
  height: 26px;
}

.portal-shell.sidebar-compact .sidebar-nav {
  padding: 8px 0;
  overflow: visible;
}

.portal-shell.sidebar-compact .nav-link {
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 10px 0;
  position: relative;
}

.portal-shell.sidebar-compact .sidebar-logout-link {
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 10px 0;
  position: relative;
}

.portal-shell.sidebar-compact .nav-link svg {
  margin: 0 auto;
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.portal-shell.sidebar-compact .sidebar-toggle {
  position: relative;
}

.portal-shell.sidebar-compact .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--brand-sidebar-active, #83b4ff);
}

.portal-shell.sidebar-compact .nav-parent .submenu {
  display: none !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  transform: none !important;
}

.portal-shell.sidebar-compact .nav-parent.has-submenu::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 100%;
  width: 16px;
  height: 52px;
}

.portal-shell.sidebar-compact .nav-parent:hover,
.portal-shell.sidebar-compact .nav-parent:focus-within {
  z-index: 320;
}

.portal-shell.sidebar-compact .nav-parent:hover .submenu,
.portal-shell.sidebar-compact .nav-parent:focus-within .submenu {
  display: grid !important;
  position: absolute;
  left: calc(100% + 2px);
  top: 0;
  min-width: 210px;
  padding: 8px 6px 6px;
  border-radius: 6px;
  border: 1px solid #d9dfeb;
  background: #eef2f7;
  box-shadow: 0 8px 22px rgba(19, 36, 66, 0.16);
  z-index: 420;
}

.portal-shell.sidebar-compact .nav-parent .submenu .submenu-header {
  padding: 2px 8px 10px;
  margin: 0 0 4px;
  border-bottom: 1px solid #e4eaf4;
}

.portal-shell.sidebar-compact .nav-parent .submenu .submenu-header strong {
  display: block;
  color: #213656;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.portal-shell.sidebar-compact .nav-parent:hover .submenu .nav-link,
.portal-shell.sidebar-compact .nav-parent:focus-within .submenu .nav-link {
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 7px 8px;
  gap: 8px;
}

.portal-shell.sidebar-compact .nav-parent:hover .submenu .nav-link span,
.portal-shell.sidebar-compact .nav-parent:focus-within .submenu .nav-link span {
  display: inline;
}

.portal-shell.sidebar-compact .nav-parent:hover .submenu .nav-link svg,
.portal-shell.sidebar-compact .nav-parent:focus-within .submenu .nav-link svg {
  margin: 0;
  width: 16px;
  height: 16px;
}

.portal-shell.sidebar-compact .nav-parent:hover .submenu .nav-link:hover,
.portal-shell.sidebar-compact .nav-parent:focus-within .submenu .nav-link:hover,
.portal-shell.sidebar-compact .nav-parent:hover .submenu .nav-link:focus-visible,
.portal-shell.sidebar-compact .nav-parent:focus-within .submenu .nav-link:focus-visible {
  background: #ffffff;
  color: #213a69;
}

.portal-shell.sidebar-compact .nav-parent:hover .submenu .nav-link:hover svg,
.portal-shell.sidebar-compact .nav-parent:focus-within .submenu .nav-link:hover svg,
.portal-shell.sidebar-compact .nav-parent:hover .submenu .nav-link:focus-visible svg,
.portal-shell.sidebar-compact .nav-parent:focus-within .submenu .nav-link:focus-visible svg {
  stroke: #213a69;
}

.portal-shell.sidebar-compact .sidebar-footer .nav-link span {
  display: none;
}

.portal-shell.sidebar-compact .sidebar-footer .nav-link {
  justify-content: center;
}

.portal-shell.sidebar-compact .sidebar-nav .nav-link[data-tooltip]:hover::after,
.portal-shell.sidebar-compact .sidebar-logout-link[data-tooltip]:hover::after,
.portal-shell.sidebar-compact .sidebar-toggle[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e3f8a;
  color: #eef4ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 430;
}

.portal-shell.sidebar-compact .nav-parent:hover>.nav-toggle[data-tooltip]::after,
.portal-shell.sidebar-compact .nav-parent:focus-within>.nav-toggle[data-tooltip]::after {
  display: none;
}

.portal-shell.sidebar-compact .nav-parent .submenu .nav-link {
  color: #415578;
}

.portal-shell.sidebar-compact .nav-parent .submenu .nav-link svg {
  stroke: #4c648b;
}

.portal-shell.sidebar-compact .nav-parent .submenu .nav-link span {
  color: #364d72;
}

.sidebar-brand[data-tooltip] {
  position: relative;
  cursor: pointer;
}

.sidebar-brand[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e3f8a;
  color: #eef4ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 430;
}

.nav-panel {
  background: #ffffff;
  border-right: 1px solid #cacaca;
  min-height: 100vh;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 320;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  box-shadow: 1px 1px 3px rgb(39 70 131 / 20%);
  transition: width .28s ease, opacity .22s ease, transform .28s ease;
}

.nav-panel-head {
  padding: 16px 13px 12px;
  border-bottom: 1px solid #edf1f7;
  display: grid;
  gap: 12px;
}

.nav-panel-ai-search {
  width: 100%;
}

.nav-panel-ai-search.search-wrap {
  position: relative;
  width: calc(100% - 8px);
  margin: 0 4px;
}

.nav-panel-ai-search.search-wrap input {
  width: 100%;
  height: 36px;
  background: #f4f7fe;
  border: 0;
  box-shadow: none;
  padding: 0 12px 0 34px;
}

.nav-panel-ai-search.search-wrap input:hover,
.nav-panel-ai-search.search-wrap input:focus {
  background: #e8eefb;
  color: #374565;
  outline: none;
  box-shadow: none;
}

.nav-panel-ai-search .search-hints {
  left: 0;
  right: 0;
  top: calc(100% + 10px);
}

.nav-panel-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 -9px;
  padding: 10px 9px;
  border-top: 1px solid #edf1f7;
  background: #ffffff;
}

.nav-panel-shortcut {
  min-height: 54px;
  border: 0;
  border-radius: 4px;
  background: #f4f7fe;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 8px;
  color: #374565;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-panel-shortcut:hover {
  transform: none;
  background: #e8eefb;
  box-shadow: none;
}

.nav-panel-shortcut svg {
  width: 20px;
  height: 20px;
  stroke: #51617b;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.nav-panel-shortcut:hover svg {
  transform: scale(1.25);
}

.nav-panel-shortcut span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

.nav-panel-shortcut:nth-child(n) {
  background: var(--brand-nav-panel-bg, #f7f9fd);
}

.nav-panel-shortcut:nth-child(1) svg {
  stroke: #244fd3;
}

.nav-panel-shortcut:nth-child(2) svg {
  stroke: #0d7a67;
}

.nav-panel-shortcut:nth-child(3) svg {
  stroke: #5d31d6;
}

.nav-panel-shortcut:nth-child(4) svg {
  stroke: #bf6410;
}

.nav-panel-shortcut:nth-child(1) span,
.nav-panel-shortcut:nth-child(2) span,
.nav-panel-shortcut:nth-child(3) span,
.nav-panel-shortcut:nth-child(4) span {
  color: #2f3f5f;
}

.nav-panel-groups {
  overflow-y: auto;
  padding: 12px 6px 14px;
  scrollbar-width: thin;
  scrollbar-color: #b7c1d0 transparent;
}

.nav-panel-groups::-webkit-scrollbar {
  width: 6px;
}

.nav-panel-groups::-webkit-scrollbar-thumb {
  background: #b7c1d0;
  border-radius: 999px;
}

.nav-panel-group+.nav-panel-group {
  margin-top: 18px;
}

.nav-panel-group-head {
  width: 100%;
  margin-bottom: 8px;
  padding: 0 12px 0 6px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.nav-panel-group-head span {
  color: #324d76;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nav-panel-group-head svg {
  width: 14px;
  height: 14px;
  stroke: #9eb0c7;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--sidebar-accordion-duration) var(--sidebar-accordion-ease);
}

.nav-panel-group.is-active .nav-panel-group-head svg {
  transform: rotate(90deg);
}

.nav-panel-group-items {
  display: grid;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    max-height var(--sidebar-accordion-duration) var(--sidebar-accordion-ease),
    opacity var(--sidebar-accordion-duration) var(--sidebar-accordion-ease),
    transform var(--sidebar-accordion-duration) var(--sidebar-accordion-ease);
}

.nav-panel-group.is-active .nav-panel-group-items {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
}

.nav-panel-sidebar-links {
  display: grid;
  gap: 2px;
}

.nav-panel-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 0;
  color: #515d6f;
  font-size: 13px;
  transition: background .18s ease, color .18s ease;
  min-width: 0;
}

.nav-panel-nav-link>span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-panel-nav-link:hover {
  background: var(--brand-nav-active-bg, #eef3fb);
  color: var(--brand-primary, #304568);
}

.nav-panel-nav-link.active {
  background: var(--brand-nav-active-bg, #f4f7fe);
  color: var(--brand-primary, #244f86);
  font-weight: 600;
}

.nav-panel-nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nav-panel-nav-icon svg,
.nav-panel-sublink svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-panel-parent {
  display: grid;
  gap: 2px;
}

.nav-panel-parent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.nav-panel-submenu-toggle {
  align-self: stretch;
  width: 26px;
  border: 0;
  background: transparent;
  color: #94a5bc;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-panel-submenu-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--sidebar-accordion-duration) var(--sidebar-accordion-ease);
}

.nav-panel-parent.open .nav-panel-submenu-toggle svg {
  transform: rotate(90deg);
}

.nav-panel-submenu {
  display: grid;
  gap: 2px;
  padding-left: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    max-height var(--sidebar-accordion-duration) var(--sidebar-accordion-ease),
    opacity var(--sidebar-accordion-duration) var(--sidebar-accordion-ease),
    transform var(--sidebar-accordion-duration) var(--sidebar-accordion-ease);
}

.nav-panel-parent.open .nav-panel-submenu {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
}

.nav-panel-sublink {
  font-size: 13px;
}

.nav-panel-footer {
  padding: 10px 9px 12px;
  border-top: 0;
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  gap: 16px;
}

.nav-panel-user-chip {
  min-width: 0;
  width: 100%;
  height: auto;
  padding-top: 16px;
  border-top: 1px solid #edf1f7;
}

.nav-panel-user-chip.user-chip {
  min-width: 0;
}

.nav-panel-user-chip .user-popover {
  min-width: 0;
  width: 100%;
}

.nav-panel-user-chip .user-popover-top {
  padding: 6px 8px;
}

.nav-panel-user-chip .user-popover-top {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  min-width: 0;
}

.nav-panel-user-chip .user-popover-top-copy,
.nav-panel-user-chip .user-popover-name,
.nav-panel-user-chip .user-popover-email {
  min-width: 0;
}

.nav-panel-user-chip .user-popover-name,
.nav-panel-user-chip .user-popover-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-panel-user-chip .user-popover-links {
  border-radius: 0 0 12px 12px;
}

.portal-shell.nav-panel-collapsed .nav-panel {
  width: 0;
  opacity: 0;
  transform: translateX(-14px);
  pointer-events: none;
  border-right-width: 0;
}

@media (max-width: 1200px) {
  .portal-shell {
    grid-template-columns: 58px 196px 1fr;
  }

  .portal-shell.nav-panel-collapsed {
    grid-template-columns: 58px 0 1fr;
  }
}

.portal-main {
  min-width: 0;
}

.topbar {
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  transition: box-shadow .18s ease;
}

.topbar.is-scrolled {
  box-shadow: 0 10px 16px -10px rgba(18, 36, 78, 0.6);
}

body[data-page="disputeiq"] .topbar {
  box-shadow: 0 14px 24px -12px rgba(8, 20, 48, 0.82);
}

.portal-main {
  min-width: 0;
}

.topbar {
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  transition: box-shadow .18s ease;
}

.topbar.is-scrolled {
  box-shadow: 0 10px 16px -10px rgb(18 36 78 / 31%);
}

body[data-page="disputeiq"] .topbar {
  box-shadow: 0 14px 24px -12px rgba(8, 20, 48, 0.82);
}

.consumer-velocity-about,
body[data-page="consumer-velocity-about"] {
  --bg: #dff0ff;
}

body[data-page="consumer-velocity-about"] .portal-main {
  background:
    radial-gradient(circle at 20% 16%, rgba(102, 183, 255, .2), transparent 24%),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, .44), transparent 22%),
    radial-gradient(circle at 84% 78%, rgba(111, 175, 255, .18), transparent 20%),
    linear-gradient(135deg, #dff0ff 0%, #eef7ff 48%, #d7ebff 100%);
}

body[data-page="consumer-velocity-about"] .topbar {
  background: transparent;
  backdrop-filter: none;
}

body[data-page="consumer-velocity-about"] .topbar.is-scrolled {
  background: linear-gradient(135deg, rgba(223, 240, 255, .96) 0%, rgba(238, 247, 255, .96) 48%, rgba(215, 235, 255, .96) 100%);
  backdrop-filter: blur(10px);
}

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

.topbar-left h1 {
  margin: 0;
  font-size: 22px;
  color: #374565;
  font-weight: 600;
}

.header-filters {
  display: none;
  align-items: center;
  gap: 8px;
}

body[data-page="disputeiq"] .header-filters {
  display: flex;
}

.filter-group {
  position: relative;
}

.filter-pill {
  border: 0;
  border-radius: 999px;
  background: #e8edf6;
  color: #7b88a2;
  height: 34px;
  padding: 0 12px;
  cursor: pointer;
}

.filter-pill.is-active {
  background: #dbe7fb;
  color: #2f4d7d;
}

.filter-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #d7dfec;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(21, 35, 61, .14);
  padding: 8px;
  z-index: 40;
}

.filter-popover.open {
  display: block;
}

.filter-popover button,
.filter-popover label {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 7px 6px;
  text-align: left;
  font-size: 12px;
  color: #536381;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-popover button:hover,
.filter-popover label:hover {
  background: #edf3ff;
}

.topbar {
  z-index: 120;
}

.topbar:has(.experience-toggle:hover),
.topbar:has(.experience-toggle:focus-within) {
  z-index: 900;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 8px;
  position: relative;
  overflow: visible;
}

.experience-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid #dbe2ee;
  z-index: 820;
}

.experience-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.experience-toggle-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 27, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 780;
}

.experience-toggle-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667690;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.experience-toggle-trigger:hover {
  background: #eef3fb;
  color: #2f4d7d;
}

.experience-toggle-caret {
  font-size: 11px;
  line-height: 1;
  transform: translateY(-1px);
}

.experience-toggle-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: auto;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(520px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid #d9dfeb;
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 24px rgba(20, 34, 63, .12);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 840;
}

.experience-toggle-trigger {
  position: relative;
  z-index: 840;
}

.experience-toggle:hover .experience-toggle-backdrop,
.experience-toggle:focus-within .experience-toggle-backdrop {
  opacity: 1;
}

.experience-toggle:hover .experience-toggle-menu,
.experience-toggle:focus-within .experience-toggle-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.experience-toggle-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
  border-radius: 12px;
  color: #667690;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.experience-toggle-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.experience-toggle-head span {
  font-size: 14px;
  line-height: 1.2;
}

.experience-toggle-head svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.experience-toggle-panel p {
  margin: 0;
  color: #7585a0;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
}

.experience-toggle-visual {
  width: 100%;
  min-height: 64px;
  border-radius: 12px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(135deg, rgba(244, 248, 255, .95), rgba(232, 239, 249, .88));
  border: 1px solid rgba(214, 223, 238, .8);
}

.experience-toggle-visual.issuer {
  background: linear-gradient(135deg, rgba(244, 240, 255, .96), rgba(235, 243, 255, .9));
}

.experience-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 6px 16px rgba(20, 34, 63, .08);
  position: relative;
  z-index: 1;
}

.experience-chip svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip-blue {
  color: #2e5ea8;
}

.chip-slate {
  color: #586783;
  margin-top: 26px;
}

.chip-violet {
  color: #6b3cc8;
}

.chip-mint {
  color: #1e8b78;
  margin-top: 26px;
}

.experience-orb {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 169, 255, .35), rgba(111, 169, 255, 0) 72%);
}

.experience-graph {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 34px;
}

.experience-graph span {
  width: 7px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, rgba(140, 92, 255, .95), rgba(89, 163, 255, .88));
  box-shadow: 0 4px 12px rgba(91, 99, 255, .18);
}

.experience-graph span:nth-child(1) {
  height: 14px;
}

.experience-graph span:nth-child(2) {
  height: 24px;
}

.experience-graph span:nth-child(3) {
  height: 18px;
}

.experience-toggle-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #7d8ca5;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
}

.experience-toggle-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.experience-toggle-list svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.experience-toggle-panel:hover {
  background: #eef3fb;
  color: #2f4d7d;
}

.experience-toggle-panel:hover p,
.experience-toggle-panel:hover .experience-toggle-list {
  color: #4d607f;
}

.experience-toggle-panel.is-active {
  background: linear-gradient(135deg, #eef3ff, #dfe8ff);
  color: #29477b;
  box-shadow: inset 0 0 0 1px rgba(120, 148, 196, .18);
}

.experience-toggle-panel.is-active p,
.experience-toggle-panel.is-active .experience-toggle-list {
  color: #4d607f;
}

.experience-toggle-panel:last-child {
  background: linear-gradient(135deg, #243756, #1a2b44);
  color: #f4f8ff;
}

.experience-toggle-panel:last-child:hover {
  background: linear-gradient(135deg, #2b4165, #20324f);
  color: #ffffff;
}

.experience-toggle-panel:last-child.is-active {
  background: linear-gradient(135deg, #314a71, #223552);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(145, 176, 227, .18);
}

.experience-toggle-panel:last-child.is-active p,
.experience-toggle-panel:last-child.is-active .experience-toggle-list,
.experience-toggle-panel:last-child:hover p,
.experience-toggle-panel:last-child:hover .experience-toggle-list {
  color: rgba(244, 248, 255, .78);
}

.search-wrap {
  width: 280px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  border: 0;
  background: #f1f4fb;
  border-radius: 999px;
  height: 34px;
  padding: 0 14px 0 36px;
  color: #4a5568;
}

.search-ai-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: #4d6ea8;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  z-index: 2;
}

.search-hints {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(20, 34, 63, .12);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 40;
}

.search-wrap.open .search-hints {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-hints-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7e8799;
  margin: 2px 6px 6px;
}

.search-hints button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #40506f;
  font-size: 13px;
  padding: 7px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.search-hints button:hover {
  background: #eef3fb;
  color: #2e4370;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  stroke: #6a7896;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover {
  background: #eef3fb;
}

.user-chip {
  --user-menu-radius: 999px;
  color: #5b6886;
  font-size: 12px;
  position: relative;
  cursor: pointer;
  min-width: 220px;
  height: 36px;
  display: flex;
  align-items: center;
  z-index: 420;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #1a3e88;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.user-popover {
  position: relative;
  width: 100%;
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  padding: 0;
  z-index: 460;
  overflow: visible;
}

.user-popover-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 6px;
  background: #fff;
  border: 0;
  border-radius: var(--user-menu-radius);
  min-height: 34px;
  position: relative;
  z-index: 2;
}

.topbar .user-chip {
  order: 20;
}

.topbar .user-popover-top {
  padding: 4px 8px 4px 12px;
}

.topbar .user-popover-top-copy {
  order: 1;
  flex: 1 1 auto;
}

.topbar .user-popover-caret {
  order: 2;
  margin-left: 8px;
}

.topbar .user-popover-top .avatar {
  order: 3;
  margin-left: 6px;
}

.user-popover-top .avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
  flex: 0 0 auto;
}

.user-popover-top-copy {
  min-width: 0;
}

.user-popover-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #2f3e61;
  line-height: 1.2;
}

.user-popover-email {
  margin: 2px 0 0;
  font-size: 11px;
  color: #6f7f9d;
  line-height: 1.3;
  word-break: break-word;
}

.user-popover-caret {
  margin-left: auto;
  color: #7a89a6;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
}

.user-popover-links {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  padding: 8px;
  display: grid;
  gap: 2px;
  border: 0;
  border-radius: 0 0 6px 6px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 35, 64, .14);
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height .2s ease, opacity .16s ease, padding .2s ease;
  z-index: 480;
}

.user-chip:hover .user-popover-links,
.user-chip:focus-within .user-popover-links,
.user-chip.is-open .user-popover-links {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px;
}

.user-chip:hover .user-popover-top,
.user-chip:focus-within .user-popover-top,
.user-chip.is-open .user-popover-top {
  border-color: #d5dfef;
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.user-chip:hover .user-popover-caret,
.user-chip:focus-within .user-popover-caret,
.user-chip.is-open .user-popover-caret {
  transform: rotate(180deg) translateY(1px);
}

.user-popover-link,
.user-popover-logout {
  display: block;
  font-size: 12px;
  color: #4b5f84;
  text-decoration: none;
  font-weight: 600;
  padding: 8px;
  border-radius: 4px;
}

.user-popover-link:hover,
.user-popover-logout:hover {
  background: #eef3fb;
  color: #2f4d7d;
  text-decoration: none;
}

.user-popover-logout {
  color: #305eaa;
}

.page-wrap {
  padding: 10px 18px 18px 14px;
}

body[data-page="disputeiq"] .page-wrap {
  padding-top: 0;
}

body[data-page="disputeiq"] .portal-main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="disputeiq"] .page-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
}

body[data-page="disputeiq"] .portal-footer {
  flex: 0 0 auto;
}

body.has-fixed-shell-scroll .portal-main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.has-fixed-shell-scroll .page-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

body.has-fixed-shell-scroll .portal-footer {
  flex: 0 0 auto;
}

body[data-page="chart-alerts"] .portal-main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="chart-alerts"] .page-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body[data-page="chart-alerts"] .portal-footer {
  flex: 0 0 auto;
}

.portal-footer {
  padding: 0 18px 16px 14px;
  display: flex;
  justify-content: flex-end;
}

.portal-footer p {
  margin: 0;
  color: #8a97ae;
  font-size: 11px;
  line-height: 1.4;
}

.grid-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.consumer-velocity-about {
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 16%, rgba(102, 183, 255, .2), transparent 26%),
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, .46), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(111, 175, 255, .18), transparent 22%),
    linear-gradient(135deg, #dff0ff 0%, #eef7ff 48%, #d7ebff 100%);
}

.dashboard-shell {
  min-height: 0;
  min-width: 0;
  display: grid;
  gap: 12px;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="dashboard"] .dashboard-toolbar {
  position: sticky;
  top: -10px;
  z-index: 13;
  margin: -10px -10px 2px 0;
  padding: 10px 10px 10px 0;
  background: var(--bg);
}

.dashboard-toolbar-spacer {
  flex: 1 1 auto;
}

.dashboard-toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #60718f;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.dashboard-filter:hover,
.dashboard-toolbar-btn:hover,
.dashboard-reset-btn:hover {
  background: #ffffff;
}

.dashboard-date-filter {
  position: relative;
  padding-right: 6px;
}

.dashboard-date-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #31425f;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.dashboard-date-trigger svg {
  width: 14px;
  height: 14px;
  stroke: #657a9e;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-date-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 288px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(18, 35, 64, 0.12);
  display: none;
  gap: 12px;
  z-index: 120;
}

.dashboard-date-filter.open .dashboard-date-popover {
  display: grid;
}

.dashboard-date-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-date-presets button {
  border: 0;
  border-radius: 8px;
  background: #f3f6fb;
  color: #4f6488;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 8px;
  cursor: pointer;
  box-shadow: none;
}

.dashboard-date-presets button.is-active {
  background: #eef3ff;
  color: #243f8f;
}

.dashboard-date-custom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-date-custom label {
  display: grid;
  gap: 6px;
  color: #6a7d99;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-date-custom input {
  border: 0;
  border-radius: 8px;
  background: #f3f6fb;
  color: #31425f;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 10px;
}

.dashboard-filter select {
  border: 0;
  background: transparent;
  color: #31425f;
  font-size: 12px;
  font-weight: 500;
  padding-right: 10px;
}

.dashboard-toolbar-btn,
.dashboard-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f3f6fb;
  color: #31425f;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: none;
}

.dashboard-toolbar-btn svg {
  width: 14px;
  height: 14px;
  stroke: #5d7398;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-action-group {
  display: inline-flex;
  align-items: stretch;
  min-height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.dashboard-action-group:hover {
  background: transparent;
}

.dashboard-action-group .dashboard-toolbar-btn,
.dashboard-action-group .dashboard-reset-btn {
  min-height: 36px;
  border-radius: 0;
  background: transparent;
  gap: 6px;
  padding: 8px 14px;
}

.dashboard-action-group .dashboard-toolbar-btn:hover,
.dashboard-action-group .dashboard-reset-btn:hover {
  background: transparent;
}

.dashboard-action-group .dashboard-reset-btn {
  position: relative;
  border-left: 0;
}

.dashboard-action-group .dashboard-reset-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: #e7ebf3;
}

.dashboard-action-group .dashboard-reset-btn svg,
.dashboard-action-group .dashboard-toolbar-btn svg {
  width: 14px;
  height: 14px;
  stroke: #5d7398;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-recovery-snapshot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.dashboard-recovery-visual {
  display: grid;
  grid-template-columns: 92px;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.dashboard-recovery-ring {
  width: 92px;
  height: 92px;
}

.dashboard-recovery-ring canvas {
  width: 92px !important;
  height: 92px !important;
}

.rail-stat.dashboard-recovery-stat small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-recovery-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}

.dashboard-recovery-stat-dot.is-green {
  background: #17925d;
}

.dashboard-recovery-stat-dot.is-blue {
  background: #2775ca;
}

.dashboard-recovery-stat-dot.is-orange {
  background: #d97706;
}

.dashboard-footer-actions {
  display: flex;
  justify-content: flex-end;
}

.dashboard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-main-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.dashboard-main-layout.layout-balanced .dashboard-primary {
  flex: 1 1 640px;
}

.dashboard-main-layout.layout-balanced .dashboard-sidecards {
  flex: 0 0 280px;
  width: min(100%, 280px);
  max-width: 280px;
}

.dashboard-main-layout.layout-focus .dashboard-primary {
  flex: 1 1 760px;
}

.dashboard-main-layout.layout-focus .dashboard-sidecards {
  flex: 0 0 320px;
  width: min(100%, 320px);
  max-width: 320px;
}

.dashboard-main-layout.layout-stacked .dashboard-primary {
  flex: 1 1 100%;
}

.dashboard-main-layout.layout-stacked .dashboard-sidecards {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-primary {
  flex: 1 1 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.dashboard-sidecards {
  flex: 1 1 280px;
  width: min(100%, 280px);
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.dashboard-main-layout.is-stacked .dashboard-sidecards {
  width: 100%;
  max-width: none;
}

.kpi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.kpi-grid>.card {
  flex: 1 1 220px;
  min-width: 0;
}

.kpi-grid.five>.card {
  flex-basis: 180px;
}

.two-col,
.three-col,
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.two-col>*,
.three-col>*,
.cards-grid>* {
  flex: 1 1 280px;
  min-width: 0;
}

body[data-page="disputeiq"] .grid-main+.cards-grid,
body[data-page="disputeiq"] .cards-grid+.cards-grid {
  margin-top: 12px;
}

body[data-page="disputeiq"] .disputeiq-hero-shell+.grid-main {
  margin-top: 0;
}

body[data-page="disputeiq"] .disputeiq-top-side {
  display: flex;
  justify-content: flex-end;
}

.dashboard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-main-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.dashboard-main-layout.layout-balanced .dashboard-primary {
  flex: 1 1 640px;
}

.dashboard-main-layout.layout-balanced .dashboard-sidecards {
  flex: 0 0 280px;
  width: min(100%, 280px);
  max-width: 280px;
}

.dashboard-main-layout.layout-focus .dashboard-primary {
  flex: 1 1 760px;
}

.dashboard-main-layout.layout-focus .dashboard-sidecards {
  flex: 0 0 320px;
  width: min(100%, 320px);
  max-width: 320px;
}

.dashboard-main-layout.layout-stacked .dashboard-primary {
  flex: 1 1 100%;
}

.dashboard-main-layout.layout-stacked .dashboard-sidecards {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-primary {
  flex: 1 1 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.dashboard-sidecards {
  flex: 1 1 280px;
  width: min(100%, 280px);
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.dashboard-main-layout.is-stacked .dashboard-sidecards {
  width: 100%;
  max-width: none;
}

.kpi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.kpi-grid>.card {
  flex: 1 1 220px;
  min-width: 0;
}

.kpi-grid.five>.card {
  flex-basis: 180px;
}

.two-col,
.three-col,
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.two-col>*,
.three-col>*,
.cards-grid>* {
  flex: 1 1 280px;
  min-width: 0;
}

body[data-page="disputeiq"] .grid-main+.cards-grid,
body[data-page="disputeiq"] .cards-grid+.cards-grid {
  margin-top: 12px;
}

body[data-page="disputeiq"] .disputeiq-hero-shell+.grid-main {
  margin-top: 12px;
}

body[data-page="disputeiq"] .disputeiq-top-side {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(33.333% - 8px);
  width: calc(33.333% - 8px);
  max-width: calc(33.333% - 8px);
  min-width: 0;
  overflow: hidden;
}

body[data-page="disputeiq"] .disputeiq-top-side .card-body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 1220px) {
  .dashboard-sidecards {
    width: 100%;
    max-width: none;
  }
}

.card {
  background: var(--panel);
  border-radius: 6px;
  border: 1px solid #d4dbe5;
  box-shadow: 1px 1px 0px rgb(39 70 131 / 20%);
  padding: 14px;
  position: relative;
}

.dashboard-shell .card.card-span-wide {
  flex: 1 1 calc(50% - 6px);
  min-width: 280px;
}

.dashboard-shell .card.card-span-tall {
  min-height: 320px;
}

.dashboard-shell .card.card-span-full {
  flex: 1 1 100%;
  width: 100%;
  min-width: 100%;
}

.dashboard-shell .dashboard-sidecards .card.card-span-wide,
.dashboard-shell .dashboard-sidecards .card.card-span-full {
  width: 100%;
  max-width: none;
}

.dashboard-shell .card.is-move-highlight {
  box-shadow: 0 0 0 2px rgba(49, 71, 166, 0.18), 1px 1px 3px rgb(39 70 131 / 20%);
}

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

.card-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.card-head-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-header-actions {
  display: flex;
  align-items: center;
}

.card h3 {
  margin: 0;
  font-size: 16px;
  color: #2b3674;
  font-weight: 600;
  min-width: 0;
}

.card-subtitle {
  margin: -2px 0 10px;
  color: #7182a1;
  font-size: 13px;
}

.chart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f7fe;
  color: #60718f;
  font-size: 12px;
  font-weight: 600;
}

.chart-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 16px;
  margin: 0;
  border-radius: 999px;
  background: #cfd8e8;
  position: relative;
  cursor: pointer;
  transition: background .18s ease;
}

.chart-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform .18s ease;
}

.chart-toggle input:checked {
  background: #f59e0b;
}

.chart-toggle input:checked::after {
  transform: translateX(12px);
}

.chart-toggle:hover {
  background: #ebf0fa;
}

.chart-toggle:has(input:checked) {
  background: #fff1dc;
}

.chart-toggle input:checked+span {
  color: #b66a00;
}

.card-menu-btn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  display: grid;
  align-content: center;
  gap: 2px;
  cursor: pointer;
}

.card-menu-btn span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: #a0aabf;
  border-radius: 2px;
}

.card-tools {
  position: relative;
}

.card-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: #fff;
  border: 1px solid #d9dfeb;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(19, 36, 66, .16);
  padding: 6px;
  z-index: 60;
}

.card-menu.open {
  display: grid;
  gap: 2px;
}

.card-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  color: #4f5f7f;
  cursor: pointer;
}

.card-menu button:hover {
  background: #eef3fb;
  color: #2f4d7d;
}

.draggable-card {
  cursor: grab;
}

.draggable-card.dragging {
  opacity: .55;
}

.drop-candidate {
  background: #edf0f4 !important;
}

.drop-target {
  filter: blur(.5px);
  opacity: .5;
}

.kpi-value {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #1f2f5f;
}

.kpi-sub {
  margin: 6px 0 8px;
  color: #7584a1;
  font-size: 12px;
}

.kpi-sparkline {
  display: block;
  width: 100% !important;
  height: 42px !important;
  max-height: 42px !important;
}

.chart-wrap {
  height: 260px;
  min-height: 260px;
  max-height: 260px;
}

.chart-wrap-sm {
  height: 220px;
  min-height: 220px;
  max-height: 220px;
}

.chart-wrap-lg {
  height: 320px;
  min-height: 320px;
  max-height: 320px;
}

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

.dashboard-analytics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.dashboard-analytics-grid > .card {
  flex: 1 1 calc(50% - 6px);
  min-width: 320px;
}

.dashboard-card-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dashboard-card-select::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #6a7894;
  border-bottom: 1.5px solid #6a7894;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.dashboard-card-select select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 92px;
  padding: 3px 18px 3px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f7192;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.dashboard-card-select select:focus {
  outline: none;
  background: transparent;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f4;
  border-radius: 6px;
  background: #fff;
}

.table-wrap .dt-container .dt-layout-row,
.table-wrap .dt-container .dt-layout-cell {
  padding: 0;
  margin: 0;
}

.table-wrap .dt-container .dt-search,
.table-wrap .dt-container .dt-length,
.table-wrap .dt-container .dt-info,
.table-wrap .dt-container .dt-paging {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-size: 12px;
  color: #4f5d78;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf1f8;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f5f8fe;
  color: #516181;
  font-size: 11px;
  text-transform: uppercase;
}

.summary-text {
  margin: 0 0 8px;
  color: #51617e;
  font-size: 13px;
  line-height: 1.4;
}

.disputeiq-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  margin: 0 -18px 0 -14px;
  padding: 10px 18px 16px 14px;
  border-radius: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #092d59 0%, #1f5fb2 58%, #003473 100%);
  border: 1px solid #d4dbe5;
  box-shadow: 1px 1px 0px rgb(39 70 131 / 20%);
  position: relative;
  overflow: hidden;
  overflow-anchor: none;
  transition: padding .32s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, background .32s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.disputeiq-hero-shell>* {
  position: relative;
  z-index: 2;
}

.disputeiq-section-nav {
  --disputeiq-nav-surface: linear-gradient(180deg, #0d427f 0%, #0a3465 100%);
  --disputeiq-nav-shadow: 0 10px 24px -20px rgba(8, 20, 48, 0.82);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -18px 18px -14px;
  padding: 12px 18px 0 14px;
  background: var(--disputeiq-nav-surface);
  transition: margin .32s cubic-bezier(.22, 1, .36, 1), padding .32s cubic-bezier(.22, 1, .36, 1), background .32s ease, box-shadow .28s ease;
  position: relative;
  z-index: 2;
  overflow-anchor: none;
}

body.theme-crypto .disputeiq-section-nav {
  --disputeiq-nav-surface: linear-gradient(180deg, #272045 0%, #231c42 100%);
  --disputeiq-nav-shadow: 0 10px 24px -20px rgba(16, 10, 33, 0.88);
}

body.theme-gaming .disputeiq-section-nav {
  --disputeiq-nav-surface: linear-gradient(180deg, #212430 0%, #1b1f2a 100%);
  --disputeiq-nav-shadow: 0 10px 24px -20px rgba(8, 13, 25, 0.9);
}

body.theme-travel .disputeiq-section-nav {
  --disputeiq-nav-surface: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
  --disputeiq-nav-shadow: 0 12px 24px -20px rgba(19, 56, 40, 0.24);
  border-bottom: 1px solid var(--line);
}

body.theme-travel .disputeiq-section-tab,
body.theme-travel .disputeiq-hero-toggle {
  color: #2f5d49;
}

body.theme-travel .disputeiq-section-tab.is-active,
body.theme-travel .disputeiq-section-tab:hover,
body.theme-travel .disputeiq-hero-toggle:hover,
body.theme-travel .disputeiq-hero-toggle:focus-visible {
  color: #153426;
}

body.theme-travel .disputeiq-section-tab:hover .disputeiq-section-tab-icon,
body.theme-travel .disputeiq-section-tab.is-active .disputeiq-section-tab-icon {
  color: var(--brand-primary);
}

body.theme-travel .disputeiq-section-tab.is-active::after {
  background: var(--brand-primary);
}

.disputeiq-hero-toggle {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: rgba(228, 238, 255, 0.76);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  padding: 8px 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.disputeiq-hero-toggle-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: inherit;
}

.disputeiq-hero-toggle-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.disputeiq-hero-toggle.is-collapsed .disputeiq-hero-toggle-icon svg {
  transform: rotate(0deg);
}

.disputeiq-hero-toggle .disputeiq-hero-toggle-icon svg {
  transform: rotate(180deg);
}

.disputeiq-hero-toggle:hover,
.disputeiq-hero-toggle:focus-visible {
  color: #fff;
  outline: none;
}

.disputeiq-section-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: rgba(228, 238, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 4px 12px;
}

.disputeiq-section-tab-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: inherit;
}

.disputeiq-section-tab-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.disputeiq-section-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  opacity: 0;
  transform: scaleX(0.55);
  transform-origin: center;
  transition: opacity .18s ease, transform .22s ease, background-color .18s ease;
}

.disputeiq-section-tab.is-active {
  color: #fff;
}

.disputeiq-section-tab:hover {
  color: #ffffff;
}

.disputeiq-section-tab:hover .disputeiq-section-tab-icon {
  color: #b9dcff;
}

.disputeiq-section-tab.is-active .disputeiq-section-tab-icon {
  color: #9fd0ff;
}

.disputeiq-section-tab.is-active::after {
  background: #f4f7fe;
  opacity: 1;
  transform: scaleX(1);
}

.disputeiq-tab-panel {
  display: none;
  gap: 12px;
}

.disputeiq-tab-panel.is-active {
  display: grid;
}

.disputeiq-tab-panel {
  display: none;
  gap: 12px;
}

.disputeiq-tab-panel.is-active {
  display: grid;
}

body[data-page="disputeiq"] .disputeiq-hero-shell.is-collapsed {
  padding-top: 6px;
  padding-bottom: 0;
  box-shadow: 0 12px 24px -18px rgba(8, 20, 48, 0.78);
}

body[data-page="disputeiq"] .disputeiq-hero-shell.is-collapsed .disputeiq-hero-main,
body[data-page="disputeiq"] .disputeiq-hero-shell.is-collapsed .disputeiq-hero-signals,
body[data-page="disputeiq"] .disputeiq-hero-shell.is-scroll-collapsed .disputeiq-hero-main,
body[data-page="disputeiq"] .disputeiq-hero-shell.is-scroll-collapsed .disputeiq-hero-signals {
  max-height: 0;
  opacity: 0;
  transform: translateY(-14px) scale(0.985);
  pointer-events: none;
}

body[data-page="disputeiq"] .disputeiq-hero-shell.is-collapsed+.disputeiq-section-nav,
body[data-page="disputeiq"] .disputeiq-hero-shell.is-scroll-collapsed+.disputeiq-section-nav {
  position: sticky;
  top: 0;
  z-index: 13;
  margin-bottom: 18px;
  padding-top: 8px;
  padding-bottom: 0;
  background: var(--disputeiq-nav-surface);
  box-shadow: var(--disputeiq-nav-shadow);
}

body[data-page="disputeiq"] .disputeiq-tab-panel[data-disputeiq-panel="dashboard"],
body[data-page="disputeiq"] .disputeiq-tab-panel[data-disputeiq-panel="lifecycle"],
body[data-page="disputeiq"] .disputeiq-tab-panel[data-disputeiq-panel="market-intelligence"],
body[data-page="disputeiq"] .disputeiq-tab-panel[data-disputeiq-panel="complaints"] {
  padding-top: 18px;
}

body[data-page="disputeiq"] .disputeiq-tab-panel[data-disputeiq-panel="lifecycle"] .chart-wrap-lg {
  height: 250px;
  min-height: 250px;
  max-height: 250px;
}

.disputeiq-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .42;
}

.disputeiq-grid-bg::before {
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(255, 255, 255, .09) 11% 11.25%, transparent 11.25% 100%),
    linear-gradient(0deg, transparent 0 15%, rgba(191, 226, 255, .08) 15% 15.2%, transparent 15.2% 100%);
}

.disputeiq-grid-bg::after {
  background:
    linear-gradient(90deg, rgba(8, 17, 32, 0) 0%, rgba(8, 17, 32, .08) 40%, rgba(8, 17, 32, 0) 100%),
    linear-gradient(180deg, rgba(8, 17, 32, 0) 0%, rgba(8, 17, 32, .05) 50%, rgba(8, 17, 32, 0) 100%);
}

.disputeiq-grid-bg .login-flow-node {
  border-color: rgba(191, 226, 255, .55);
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 0 18px rgba(191, 226, 255, .14);
}

.disputeiq-grid-bg .login-flow-node::before {
  background: linear-gradient(90deg, transparent, rgba(191, 226, 255, .34), transparent);
}

.disputeiq-grid-bg .login-flow-node::after {
  background: linear-gradient(180deg, transparent, rgba(191, 226, 255, .34), transparent);
}

.disputeiq-hero-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 360px);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  max-height: 520px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition: max-height .34s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, transform .34s cubic-bezier(.22, 1, .36, 1);
}

.disputeiq-hero-copy {
  min-height: 230px;
  margin-top: 0;
  padding: 18px;
  border-radius: 14px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.disputeiq-hero-copy::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -2px;
  width: 208px;
  height: 144px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)) 28px 54px / 74px 74px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)) 82px 30px / 82px 82px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02)) 132px 66px / 58px 58px no-repeat;
  filter: drop-shadow(0 22px 28px rgba(4, 14, 34, 0.22));
}

.disputeiq-hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(239, 246, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.disputeiq-hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  letter-spacing: .01em;
}

.disputeiq-hero-copy p {
  max-width: 420px;
  margin: 12px 0 0;
  color: rgba(236, 244, 255, 0.92);
  font-size: 14px;
  line-height: 1.5;
}

.disputeiq-hero-card {
  display: grid;
  gap: 12px;
  margin-top: -14px;
  padding: 20px 16px 16px;
  border-radius: 0 0 12px 12px;
  background: rgb(17 44 80);
  border: 0;
  box-shadow: none;
}

.disputeiq-hero-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 14px;
}

.disputeiq-hero-card-kicker {
  display: block;
  margin-bottom: 4px;
  color: #dcdcdc;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.disputeiq-hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.disputeiq-hero-stat {
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
}

.disputeiq-hero-stat small {
  display: block;
  color: #6980a6;
  font-size: 11px;
}

.disputeiq-hero-stat strong {
  display: block;
  margin-top: 5px;
  color: #173968;
  font-size: 18px;
  line-height: 1.25;
}

.disputeiq-hero-insight {
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef5ff;
}

.disputeiq-hero-insight span {
  display: block;
  margin-bottom: 4px;
  color: #4b6da0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.disputeiq-hero-insight p {
  margin: 0;
  color: #435677;
  font-size: 12px;
  line-height: 1.5;
}

.disputeiq-hero-signals {
  display: flex;
  align-items: flex-start;
  max-height: 520px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition: max-height .34s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, transform .34s cubic-bezier(.22, 1, .36, 1);
}

.disputeiq-hero-ai-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: rgba(220, 230, 244, 0.9);
  font-size: 12px;
  line-height: 1.2;
}

.disputeiq-hero-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #dce6f4;
  flex: 0 0 auto;
}

.disputeiq-hero-ai-badge svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.disputeiq-hero-ai-text {
  color: #dce6f4;
}

.disputeiq-hero-ai-meta small {
  color: rgba(220, 230, 244, 0.72);
  font-size: 11px;
}

.disputeiq-hero-signals {
  display: flex;
  align-items: flex-start;
}

.disputeiq-signal-card {
  width: 100%;
  display: grid;
  gap: 12px;
  align-self: flex-start;
  margin-top: -14px;
  padding: 20px 16px 16px;
  border-radius: 0 0 12px 12px;
  background: rgb(17 44 80);
  border: 0;
  box-shadow: none;
}

.disputeiq-signal-list {
  display: grid;
  gap: 8px;
}

.disputeiq-signal-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  position: relative;
}

.disputeiq-signal-item small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #425a82;
  font-size: 12px;
  font-weight: 600;
}

.disputeiq-signal-item small::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff9e36;
  flex: 0 0 auto;
}

.disputeiq-signal-item strong {
  display: block;
  color: #1a3970;
  font-size: 15px;
  font-weight: 800;
}

.disputeiq-signal-item.is-alert {
  border: 0;
  background: #d0000a;
}

.disputeiq-signal-item.is-alert small {
  color: rgba(255, 255, 255, 0.92);
}

.disputeiq-signal-item.is-alert small::before {
  background: #ffd1d6;
}

.disputeiq-signal-item.is-alert strong {
  color: #fff;
  padding: 2px 0 2px 12px;
  line-height: 1.2;
}

.bar-list {
  display: grid;
  gap: 8px;
}

.bar-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #51617e;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e7eefb;
  overflow: hidden;
}

.bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4c8fe1, #2f7bf6);
}

body[data-page="disputeiq"] .disputeiq-top-side .chip-grid {
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

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

.chip {
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: transparent;
  padding: 9px;
}

body[data-page="disputeiq"] .disputeiq-top-side .chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  height: 100%;
  min-width: 0;
  padding: 8px;
  overflow: hidden;
  background: transparent;
}

.chip small {
  display: block;
  color: #6480ad;
  font-size: 11px;
}

.chip strong {
  display: block;
  margin-top: 3px;
  color: #2e5f9d;
  font-size: 17px;
}

body[data-page="disputeiq"] .disputeiq-top-side .chip small {
  font-size: 13px;
  line-height: 1.2;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-page="disputeiq"] .disputeiq-top-side .chip strong {
  color: #243a6b;
  font-size: 28px;
  line-height: 1.15;
  max-width: 100%;
}

body[data-page="disputeiq"] .disputeiq-mtd-filter-pill {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

body[data-page="disputeiq"] .disputeiq-mtd-kpis {
  width: 100%;
}

body[data-page="disputeiq"] .disputeiq-mtd-shell {
  margin-top: 12px;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 34px;
}

body[data-page="disputeiq"] .disputeiq-mtd-table {
  width: 100%;
}

body[data-page="disputeiq"] .disputeiq-mtd-shell .managed-table-wrap {
  min-height: 0;
}

body[data-page="disputeiq"] .disputeiq-mtd-cardtype {
  padding-bottom: 6px;
  position: relative;
}

body[data-page="disputeiq"] .disputeiq-mtd-cardtype-body {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

body[data-page="disputeiq"] .disputeiq-mtd-cardtype-chart {
  height: 62px;
  min-height: 62px;
}

body[data-page="disputeiq"] .disputeiq-mtd-cardtype-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

body[data-page="disputeiq"] .disputeiq-mtd-cardtype-legend {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body[data-page="disputeiq"] .disputeiq-mtd-cardtype-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  color: #51617e;
  font-size: 10px;
  line-height: 1.1;
}

body[data-page="disputeiq"] .disputeiq-mtd-cardtype-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

body[data-page="disputeiq"] .disputeiq-mtd-cardtype-item .label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="disputeiq"] .disputeiq-mtd-cardtype-item strong {
  color: #243a6b;
  font-size: 10px;
}

.market-cross {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(72px, auto));
  gap: 10px;
  align-items: center;
  justify-items: center;
  margin-top: 10px;
}

.market-cross-item {
  width: 100%;
  max-width: 180px;
  text-align: center;
  border: 0;
  box-shadow: none;
}

.market-cross-item small {
  display: block;
  color: #6b7a98;
  font-size: 12px;
  line-height: 1.25;
}

.market-cross-item strong {
  display: block;
  margin-top: 6px;
  color: #243a6b;
  font-size: 24px;
  line-height: 1.05;
}

.market-cross-item.is-top {
  grid-column: 2;
  grid-row: 1;
}

.market-cross-item.is-right {
  grid-column: 3;
  grid-row: 2;
}

.market-cross-item.is-bottom {
  grid-column: 2;
  grid-row: 3;
}

.market-cross-item.is-left {
  grid-column: 1;
  grid-row: 2;
}

.market-cross-center {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  width: 74px;
  height: 74px;
}

.market-cross-vertical,
.market-cross-horizontal {
  position: absolute;
  left: 50%;
  top: 50%;
  background: #d9e0ec;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.market-cross-vertical {
  width: 8px;
  height: 74px;
}

.market-cross-horizontal {
  width: 74px;
  height: 8px;
}

.market-matrix {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.market-matrix-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
}

.market-matrix-title {
  color: #51617e;
  font-size: 12px;
  font-weight: 700;
}

.market-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #6b7a98;
  font-size: 11px;
}

.market-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.market-matrix-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.market-matrix-legend .lv1 {
  background: #fff1bf;
}

.market-matrix-legend .lv2 {
  background: #ffd27a;
}

.market-matrix-legend .lv3 {
  background: #ffac55;
}

.market-matrix-legend .lv4 {
  background: #ff7a3d;
}

.market-matrix-legend .lv5 {
  background: #e6452f;
}

.market-matrix-columns {
  display: grid;
  grid-template-columns: 110px repeat(5, minmax(0, 1fr)) 64px;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 10px;
  color: #6b7a98;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.market-matrix-columns span {
  text-align: center;
}

.market-matrix-columns span:first-child,
.market-matrix-columns span:last-child {
  text-align: left;
}

.market-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
  color: #5b6e90;
  font-size: 11px;
}

.market-row .seg {
  font-weight: 600;
  color: #4a5f84;
}

.market-row .cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.market-row .cells span {
  min-height: 36px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.1;
  text-align: center;
  padding: 3px 2px;
}

.market-row .cells span b {
  font-size: 9px;
  color: #7a2d12;
}

.market-row .cells span em {
  font-style: normal;
  font-size: 8px;
  color: #8f3a17;
  margin-top: 1px;
}

.market-row .cells .lv1 {
  background: #fff1bf;
}

.market-row .cells .lv2 {
  background: #ffd27a;
}

.market-row .cells .lv3 {
  background: #ffac55;
}

.market-row .cells .lv4 {
  background: #ff7a3d;
}

.market-row .cells .lv5 {
  background: #e6452f;
}

.market-row .status {
  text-align: right;
  font-weight: 600;
}

.table-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.table-top h4 {
  margin: 0;
  font-size: 15px;
  color: #2b3674;
}

.card .kpi-grid.five+.table-wrap {
  margin-top: 12px;
}

.mini-kpi {
  border: 1px solid #d4dbe5;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  box-shadow: 1px 1px 0px rgb(39 70 131 / 20%);
  min-height: 116px;
  display: flex;
  flex-direction: column;
}

.mini-kpi small {
  color: #6b7a98;
  font-size: 12px;
}

.mini-kpi strong {
  display: block;
  font-size: 20px;
  margin-top: 4px;
  color: #243a6b;
}

.mini-kpi .kpi-sparkline {
  margin-top: auto;
}

.disputeiq-chart-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 999px;
  background: #eff4fb;
}

.disputeiq-chart-toggle {
  border: 0;
  background: transparent;
  color: #5f7192;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
}

.disputeiq-chart-toggle.is-active {
  background: #1f5fb8;
  color: #fff;
}

.disputeiq-chart-note {
  margin: 0 0 10px;
  color: #6f7f9b;
  font-size: 12px;
  font-weight: 600;
}

body[data-page="disputeiq"] .card .kpi-grid.five {
  width: 100%;
  flex-wrap: nowrap;
}

body[data-page="disputeiq"] .card .kpi-grid.five>.mini-kpi {
  flex: 1 1 0;
}

body[data-page="disputeiq"] .table-top .filter-pill {
  margin-left: auto;
}

.disputeiq-stats-list {
  display: grid;
  gap: 10px;
}

.disputeiq-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #e2e8f4;
  border-radius: 6px;
  background: #fff;
}

.disputeiq-stat-row span {
  color: #5f7192;
  font-size: 12px;
}

.disputeiq-stat-row strong {
  color: #243a6b;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.disputeiq-ai-insight {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f6f9ff;
  color: #51617e;
  font-size: 12px;
  line-height: 1.5;
}

.disputeiq-ai-insight strong {
  color: #243a6b;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tabs span {
  border: 1px solid #d8e2f4;
  border-radius: 999px;
  background: #f5f9ff;
  color: #44669c;
  font-size: 12px;
  padding: 5px 10px;
}

.feature-list {
  margin: 0;
  padding-left: 16px;
  color: #52617c;
  display: grid;
  gap: 6px;
}

.rail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.rail-stat {
  border-radius: 8px;
  background: #f5f5f5;
  padding: 8px;
  color: #000;
}

.rail-stat small {
  display: block;
  color: #6480ad;
  font-size: 11px;
}

.rail-stat strong {
  display: block;
  margin-top: 3px;
  color: #000000;
  font-size: 20px;
  line-height: 1;
}

.rail-progress {
  height: 8px;
  border-radius: 999px;
  background: #e7eefb;
  overflow: hidden;
  margin-bottom: 8px;
}

.rail-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4c8fe1, #2f7bf6);
}

.rail-note {
  margin: 0;
  color: #5f7192;
  font-size: 12px;
  line-height: 1.4;
}

.ring-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
}

.ring-layout .ring-chart {
  height: 290px;
  min-height: 290px;
  max-height: 290px;
}

.ring-side {
  display: grid;
  gap: 8px;
  align-content: center;
}

.ring-side-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 7px;
  align-items: center;
  color: #51617e;
  font-size: 12px;
}

.ring-side-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.ring-side-item .label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ring-side-item strong {
  color: #2f4d7d;
  font-size: 12px;
}

@media (max-width: 1080px) {

  .disputeiq-hero-shell,
  .disputeiq-hero-main {
    grid-template-columns: 1fr;
  }

  .disputeiq-section-nav {
    flex-wrap: wrap;
  }
}

.consumer-velocity-page {
  gap: 14px;
  padding: 10px 10px 18px;
}

.cv-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  padding: 0 20px 0 30px;
  min-height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3147a6, #2b429d);
  position: relative;
  margin-left: 18px;
  overflow: visible;
}

.cv-tab {
  min-height: 36px;
  border-radius: 0;
  padding: 7px 19px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: transparent;
  color: rgba(244, 248, 255, .96);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .14s ease, color .14s ease;
}

.cv-tab svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.cv-tab:hover {
  background: rgba(18, 31, 91, .28);
  color: #bfe0ff;
}

.cv-tab-home+.cv-tab:hover {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.cv-tab-home+.cv-tab:hover::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 0;
  bottom: 0;
  width: 26px;
  background: inherit;
  border-radius: 999px 0 0 999px;
  z-index: -1;
}

.cv-tab.active {
  background: rgba(18, 31, 91, .38);
  color: #ffffff;
  box-shadow: none;
}

.cv-tab-home+.cv-tab.active {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.cv-tab-home+.cv-tab.active::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 0;
  bottom: 0;
  width: 26px;
  background: inherit;
  border-radius: 999px 0 0 999px;
  z-index: -1;
}

.cv-tab-home {
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f79d6, #1f6dcb);
  border: 4px solid #ffffff;
  color: #ffffff;
  z-index: 2;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.cv-tab-home svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv-tab-home:hover {
  transform: translateY(-50%) scale(1.12);
  background: linear-gradient(180deg, #3a89ea, #2677d8);
  color: #ffffff;
}

.cv-tab-home.active {
  background: linear-gradient(180deg, #2f79d6, #1f6dcb);
  color: #ffffff;
}

.cv-tabs .cv-tab:last-child {
  border-right: 0;
}

.cv-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 32;
}

.cv-topbar-row .cv-search-open {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #3147a6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}

.cv-topbar-row .cv-search-open svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.cv-topbar-row .cv-search-open:hover {
  background: rgba(18, 31, 91, .38);
  color: #ffffff;
}

.cv-hero-card {
  padding: 18px;
  background: #ffffff;
}

.cv-search-bar-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d9e5f5;
  border-radius: 6px;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.cv-search-bar-copy {
  min-width: 0;
}

.cv-search-bar-copy .cv-summary {
  margin-top: 4px;
  max-width: 760px;
}

.cv-search-bar-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cv-search-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cv-search-statuses span {
  border-radius: 999px;
  background: #edf4ff;
  color: #4e6994;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
}

.cv-search-open {
  min-width: 150px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cv-hero {
  position: relative;
  height: 0;
  overflow: visible;
  z-index: 33;
  margin-top: -150px;
}

.cv-eyebrow {
  margin: 0 0 6px;
  color: #4c6ea8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cv-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.02;
  color: #213b70;
}

.cv-summary {
  max-width: 760px;
  margin-top: 10px;
  font-size: 14px;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cv-hero .cv-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.cv-kpis {
  margin-top: 14px;
}

.cv-kpi {
  background: rgba(255, 255, 255, .86);
}

.cv-kpi span {
  display: block;
  margin-top: 5px;
  color: #7282a0;
  font-size: 11px;
}

.cv-kpi-link {
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.cv-kpi-link:hover {
  box-shadow: 0 8px 18px rgba(24, 57, 127, .08);
  border-color: #cfe0fb;
}

.cv-query-card {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  border-radius: 6px;
  border: 1px solid #d7e3f7;
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 22px rgba(31, 64, 121, .08);
  margin-top: 0;
}

.cv-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 61, 0.22);
  z-index: 30;
}

.cv-query-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cv-query-head small {
  display: block;
  margin-bottom: 5px;
  color: #6483b2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cv-query-head strong {
  display: block;
  color: #254372;
  font-size: 13px;
  line-height: 1.45;
}

.cv-query-grid,
.cv-query-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cv-query-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cv-query-field {
  display: grid;
  gap: 6px;
}

.cv-query-field span {
  color: #607796;
  font-size: 11px;
  font-weight: 700;
}

.cv-query-field input,
.cv-query-field textarea {
  width: 100%;
  border: 1px solid #d3deef;
  border-radius: 12px;
  background: #fbfdff;
  color: #29496f;
  padding: 10px 12px;
  font: inherit;
}

.cv-query-field input {
  height: 42px;
}

.cv-query-field textarea {
  min-height: 82px;
  resize: none;
}

.cv-query-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-query-type {
  border: 1px solid #d7e2f4;
  border-radius: 999px;
  background: #f5f9ff;
  color: #55729d;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cv-query-type.is-active {
  background: #1f4f8f;
  border-color: #1f4f8f;
  color: #fff;
}

.cv-query-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #edf3ff;
  color: #5472a0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cv-query-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv-query-field-address {
  grid-column: 1 / -1;
}

.cv-query-option {
  border-radius: 6px;
  background: rgba(225, 236, 252, .66);
  padding: 10px 12px;
  display: grid;
  gap: 5px;
}

.cv-query-option span {
  color: #657d9d;
  font-size: 11px;
}

.cv-query-option strong {
  color: #1e446f;
  font-size: 12px;
}

.cv-query-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.cv-search-submit.is-loading {
  min-width: 120px;
  pointer-events: none;
  opacity: .96;
}

.cv-search-submit-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cv-search-submit-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .32);
  border-top-color: #ffffff;
  animation: cvSearchSpin .75s linear infinite;
}

.cv-search-results {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d7e3f5;
  background: #f8fbff;
  border-radius: 6px;
  animation: cvResultsReveal .28s ease;
}

.cv-search-results-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.cv-search-results-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #5d7ca8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cv-search-results-head h3 {
  margin: 0;
  color: #223d6a;
  font-size: 24px;
  line-height: 1.1;
}

.cv-search-results-head p {
  margin: 8px 0 0;
  max-width: 760px;
  color: #59708f;
  font-size: 14px;
  line-height: 1.5;
}

.cv-search-results-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e4f7ea;
  color: #2b7a48;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.cv-search-results-summary {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
}

.cv-search-results-profile,
.cv-search-stat,
.cv-search-panel {
  border: 1px solid #dce6f4;
  background: #ffffff;
  border-radius: 6px;
}

.cv-search-results-profile {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.cv-search-results-profile small,
.cv-search-stat small {
  color: #6a82a3;
  font-size: 11px;
  font-weight: 700;
}

.cv-search-results-profile strong {
  color: #21416d;
  font-size: 16px;
}

.cv-search-results-profile span {
  color: #567195;
  font-size: 14px;
  word-break: break-word;
}

.cv-search-results-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cv-search-results-stats-secondary {
  margin-top: -2px;
}

.cv-search-stat {
  padding: 14px;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: visible;
}

.cv-search-stat strong {
  color: #21416d;
  font-size: 22px;
  line-height: 1;
}

.cv-search-stat-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-search-stat-icon,
.cv-search-signal-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eef4ff;
  color: #2a5e9f;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cv-search-stat-icon svg,
.cv-search-signal-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv-search-stat-interactive {
  cursor: default;
}

.cv-search-stat-tooltip,
.cv-search-bar-tooltip {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 8px);
  border-radius: 6px;
  background: rgba(12, 26, 53, 0.94);
  color: #edf4ff;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 20;
}

.cv-search-stat-interactive:hover .cv-search-stat-tooltip,
.cv-search-stat-interactive:focus-within .cv-search-stat-tooltip,
.cv-search-bar:hover .cv-search-bar-tooltip,
.cv-search-bar:focus-within .cv-search-bar-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.cv-search-chart-panel {
  border: 1px solid #dce6f4;
  background: #ffffff;
  border-radius: 6px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.cv-search-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.cv-search-bar {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.cv-search-bar-value {
  color: #23416d;
  font-size: 12px;
  font-weight: 700;
}

.cv-search-bar-track {
  width: 100%;
  height: 132px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f5f8ff, #edf3fb);
  border: 1px solid #e1e9f6;
  display: flex;
  align-items: end;
  padding: 6px;
}

.cv-search-bar-track i {
  display: block;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, #7ba0df, #2c62aa);
}

.cv-search-bar strong {
  color: #617a9c;
  font-size: 11px;
  font-weight: 700;
}

.cv-search-bar-tooltip {
  left: 50%;
  right: auto;
  width: 140px;
  transform: translate(-50%, -4px);
}

.cv-search-bar:hover .cv-search-bar-tooltip,
.cv-search-bar:focus-within .cv-search-bar-tooltip {
  transform: translate(-50%, 0);
}

.cv-search-results-grid {
  display: grid;
  grid-template-columns: 1.1fr .95fr .9fr;
  gap: 12px;
}

.cv-search-panel {
  padding: 14px;
}

.cv-search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cv-search-panel-head h4 {
  margin: 0;
  color: #25477a;
  font-size: 14px;
}

.cv-search-panel-head span {
  color: #6b82a3;
  font-size: 11px;
  font-weight: 700;
}

.cv-search-signal-list,
.cv-search-timeline,
.cv-search-actions-list {
  display: grid;
  gap: 10px;
}

.cv-search-signal,
.cv-search-timeline-item,
.cv-search-action {
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
}

.cv-search-signal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.cv-search-signal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cv-search-signal-top strong,
.cv-search-timeline-item strong {
  color: #23416d;
  font-size: 13px;
}

.cv-search-signal-top em {
  font-style: normal;
  color: #2e6c96;
  font-size: 12px;
  font-weight: 700;
}

.cv-search-signal p,
.cv-search-timeline-item p,
.cv-search-action p {
  margin: 0;
  color: #5d728f;
  font-size: 13px;
  line-height: 1.45;
}

.cv-search-timeline-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.cv-search-timeline-item span {
  color: #5d769a;
  font-size: 12px;
  font-weight: 700;
}

.cv-timeline-chart {
  position: relative;
  min-height: 126px;
  padding: 12px 10px 26px;
}

.cv-timeline-chart-line {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8e6fb, #7ca5db 45%, #3269b3 100%);
}

.cv-timeline-chart-point {
  position: absolute;
  top: 23px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.cv-timeline-chart-point span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 4px solid #5687ca;
  box-shadow: 0 0 0 6px rgba(86, 135, 202, .12);
}

.cv-timeline-chart-point i {
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: #7b9fce;
  display: block;
}

.cv-timeline-chart-point.is-active span {
  border-color: #1f5aa8;
  box-shadow: 0 0 0 8px rgba(62, 112, 185, .18);
}

.cv-timeline-chart-point.is-risk-high span {
  border-color: #c94b4b;
  box-shadow: 0 0 0 6px rgba(201, 75, 75, .14);
}

.cv-timeline-chart-point.is-risk-high i {
  background: #c97a7a;
}

.cv-timeline-chart-point.is-risk-high.is-active span {
  border-color: #b83333;
  box-shadow: 0 0 0 8px rgba(184, 51, 51, .18);
}

.cv-timeline-chart-point label {
  color: #60789b;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.cv-timeline-detail {
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 7px;
}

.cv-timeline-detail small {
  color: #6780a3;
  font-size: 11px;
  font-weight: 700;
}

.cv-timeline-detail strong {
  color: #23416d;
  font-size: 15px;
}

.cv-timeline-detail p {
  margin: 0;
  color: #5d728f;
  font-size: 13px;
  line-height: 1.45;
}

.cv-timeline-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #47658f;
  font-size: 12px;
}

.cv-timeline-detail-meta em {
  font-style: normal;
  font-weight: 700;
}

.cv-search-map {
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.cv-search-map-visual {
  position: relative;
  min-height: 350px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4fb, #e3ebf5);
}

.cv-search-map-canvas {
  position: absolute;
  inset: 0;
}

.cv-search-map-canvas .maplibregl-map {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}

.cv-search-map-canvas .maplibregl-popup-content {
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 10px 20px rgba(21, 35, 61, .14);
}

.cv-search-map-popup strong {
  display: block;
  color: #23416d;
  font-size: 13px;
}

.cv-search-map-popup span {
  display: block;
  margin-top: 4px;
  color: #5d728f;
  font-size: 12px;
}

.cv-search-map-copy strong {
  display: block;
  color: #23416d;
  font-size: 14px;
}

.cv-search-map-copy p {
  margin: 6px 0 4px;
  color: #5d728f;
  font-size: 13px;
  line-height: 1.45;
}

.cv-search-map-copy span {
  color: #60789b;
  font-size: 12px;
  font-weight: 700;
}

.cv-search-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.cv-search-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #587091;
  font-size: 12px;
  font-weight: 700;
}

.cv-search-map-legend-item i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.cv-search-action {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.cv-search-action span {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #4c86d2;
}

.consumer-velocity-overview .card,
.consumer-velocity-overview .mini-kpi,
.consumer-velocity-overview .cv-report-card,
.consumer-velocity-overview .cv-section-tile,
.consumer-velocity-overview .cv-search-bar-card,
.consumer-velocity-overview .cv-query-card,
.consumer-velocity-overview .cv-search-results,
.consumer-velocity-overview .cv-search-results-profile,
.consumer-velocity-overview .cv-search-stat,
.consumer-velocity-overview .cv-search-panel,
.consumer-velocity-overview .cv-search-signal,
.consumer-velocity-overview .cv-search-timeline-item,
.consumer-velocity-overview .cv-search-action,
.consumer-velocity-overview .cv-query-select select,
.consumer-velocity-overview .cv-query-field input,
.consumer-velocity-overview .cv-query-field textarea,
.consumer-velocity-overview .cv-query-option,
.consumer-velocity-overview .filter-pill {
  border-radius: 6px;
}

.cv-primary-grid,
.cv-code-grid,
.cv-ops-grid {
  align-items: start;
}

.cv-capability-list,
.cv-ops-list,
.cv-event-feed {
  display: grid;
  gap: 10px;
}

.cv-capability-item,
.cv-op-item,
.cv-event-item,
.cv-value-column {
  border: 1px solid #dce6f5;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.cv-capability-item h4,
.cv-value-column h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #25477a;
}

.cv-capability-item p,
.cv-op-item p {
  margin: 0;
  color: #586883;
  font-size: 13px;
  line-height: 1.45;
}

.cv-op-item strong {
  display: block;
  margin-bottom: 5px;
  color: #264b82;
  font-size: 13px;
}

.cv-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cv-standards span {
  border-radius: 999px;
  background: #edf4ff;
  border: 1px solid #d7e5fb;
  color: #3d5f93;
  font-size: 12px;
  padding: 6px 10px;
}

.cv-env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.cv-env-grid .rail-stat strong {
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
}

.cv-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #566885;
  font-size: 13px;
}

.cv-code-block {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d7e1f1;
  background: #102548;
}

.cv-code-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #163465;
  color: #dce9ff;
  font-size: 12px;
}

.cv-code-head b {
  color: #ffffff;
  font-weight: 700;
}

.cv-code-block pre {
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #d8e6ff;
  font-size: 12px;
  line-height: 1.55;
}

.cv-event-feed {
  margin-top: 12px;
}

.cv-event-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: #fff;
}

.cv-event-item span {
  color: #5c6c89;
  font-size: 12px;
  font-weight: 700;
}

.cv-event-item strong {
  display: block;
  color: #27406f;
  font-size: 13px;
}

.cv-event-item em {
  display: inline-block;
  margin-top: 4px;
  font-style: normal;
  color: #5772a3;
  font-size: 11px;
}

.cv-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cv-value-column {
  background: linear-gradient(180deg, #fbfdff, #f4f9ff);
}

.fi-page {
  gap: 14px;
  padding: 10px 10px 18px;
}

.fi-dashboard-kpi .card-body {
  display: grid;
  gap: 8px;
}

.fi-dashboard-kpi .kpi-value {
  margin: 0;
}

.fi-dashboard-kpi .kpi-sub {
  margin: 0;
  color: #6f7f9b;
  font-size: 12px;
}

.fi-dashboard-kpi .kpi-sparkline,
.fi-dashboard-sidecards .kpi-sparkline {
  margin-top: 2px;
}

.fi-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fi-standards span {
  border-radius: 999px;
  background: #eef3ff;
  color: #4f6792;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
}

.fi-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 0 0 1px;
  border-bottom: 1px solid #d9e2ef;
  position: sticky;
  top: -10px;
  z-index: 13;
  background-color: var(--bg);
}

.fi-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #5a6880;
  font-size: 13px;
  font-weight: 600;
  padding: 0 0 12px;
  cursor: pointer;
}

.fi-tab-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98a8be;
}

.fi-tab-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fi-tab[data-fi-tab="dashboard"] .fi-tab-icon svg {
  fill: currentColor;
  stroke: none;
}

.fi-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background-color .16s ease;
}

.fi-tab.is-active {
  color: #202e3f;
  font-weight: 700;
}

.fi-tab.is-active .fi-tab-icon {
  color: #2f7bf6;
}

.fi-tab.is-active::after {
  background: #2f7bf6;
}

.fi-tab:hover {
  color: #202e3f;
}

.fi-tab:hover .fi-tab-icon {
  color: #5f738f;
}

.fi-tab-panel {
  display: none;
  gap: 12px;
}

.fi-tab-panel.is-active {
  display: grid;
}

.fi-dashboard-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.fi-dashboard-primary {
  flex: 1 1 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.fi-dashboard-sidecards {
  flex: 0 0 280px;
  width: min(100%, 280px);
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.fi-primary-grid,
.fi-processing-grid {
  align-items: start;
}

.fi-code-grid,
.fi-spec-grid {
  align-items: start;
}

.fi-section-summary {
  margin-bottom: 12px;
}

.fi-mode-grid,
.fi-history-grid,
.fi-repository-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fi-mode-card strong,
.fi-history-card strong,
.fi-repository-card strong {
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.fi-code-block {
  border: 1px solid #dce6f5;
  border-radius: 10px;
  overflow: hidden;
  background: #0f1f35;
}

.fi-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .04);
  color: #d8e4ff;
  font-size: 12px;
}

.fi-code-head span {
  color: #8da8d5;
  font-weight: 700;
}

.fi-code-head b {
  color: #ffffff;
  font-weight: 700;
}

.fi-code-block pre {
  margin: 0;
  padding: 14px;
  overflow: auto;
}

.fi-code-block code {
  color: #e5efff;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
}

.fi-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #566885;
  font-size: 13px;
}

.fi-stage-list,
.fi-feed {
  display: grid;
  gap: 10px;
}

.fi-upload-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fi-upload-topbar strong {
  display: block;
  color: #25477a;
  font-size: 14px;
}

.fi-upload-topbar p {
  margin: 4px 0 0;
  color: #647892;
  font-size: 12px;
}

.fi-upload-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: #eef3ff;
  color: #2448a2;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
}

.fi-upload-trigger input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.fi-stage-card,
.fi-history-card,
.fi-repository-card,
.fi-intelligence-column,
.fi-feed-item {
  border: 1px solid #dce6f5;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.fi-stage-card strong,
.fi-intelligence-column h4 {
  display: block;
  margin: 0 0 6px;
  color: #25477a;
  font-size: 14px;
}

.fi-stage-card p {
  margin: 0;
  color: #586883;
  font-size: 13px;
  line-height: 1.45;
}

.fi-feed-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: #fff;
}

.fi-feed-item span {
  color: #5c6c89;
  font-size: 12px;
  font-weight: 700;
}

.fi-feed-item strong {
  display: block;
  color: #27406f;
  font-size: 13px;
}

.fi-feed-item p {
  margin: 4px 0 0;
  color: #5a6c88;
  font-size: 12px;
  line-height: 1.45;
}

.fi-feed-item em {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  color: #5772a3;
  font-size: 11px;
}

.fi-history-card small,
.fi-repository-card small {
  display: block;
  color: #6681ab;
  font-size: 11px;
  margin-bottom: 4px;
}

.fi-history-card span,
.fi-repository-card span {
  display: block;
  margin-top: 4px;
  color: #627591;
  font-size: 12px;
}

.fi-intelligence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fi-intelligence-column {
  background: linear-gradient(180deg, #fbfdff, #f4f9ff);
  border: 1px solid #dce6f5;
  border-radius: 10px;
  padding: 12px;
}

.fi-dashboard-feed {
  gap: 8px;
}

.fi-side-metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #243a6b;
}

.fi-side-metric p {
  margin: 8px 0 0;
  color: #627591;
  font-size: 12px;
  line-height: 1.45;
}

.users-page {
  padding: 0;
}

.users-shell {
  background: #fff;
  border: 1px solid #dfe6f1;
  border-radius: 6px;
  box-shadow: 1px 1px 3px rgb(39 70 131 / 20%);
  overflow: hidden;
}

.users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #dfe6f1;
}

.users-toolbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.users-toolbar-filter {
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.users-toolbar-filter>span {
  color: #2f3745;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.users-toolbar-filter select {
  width: 100%;
  min-width: 190px;
  height: 30px;
  border: 1px solid #d7deea;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 12px;
  color: #334155;
  background: #fff;
}

.users-search {
  width: 300px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid #d7deea;
  border-radius: 4px;
  background: #fff;
}

.users-search svg,
.users-export-btn svg,
.users-add-btn svg,
.users-login-btn svg,
.users-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.users-search svg {
  color: #65758f;
}

.users-search input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  color: #334155;
  font-size: 12px;
}

.users-search input::placeholder {
  color: #9ba9bd;
}

.users-add-btn {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #2f7bf6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.users-export-btn {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d7deea;
  border-radius: 4px;
  background: #fff;
  color: #2d3a4f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.users-export {
  position: relative;
  flex: 0 0 auto;
}

.portal-tabulator-shell {
  display: grid;
  gap: 10px;
  width: 100%;
}

.portal-tabulator-toolbar-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.portal-tabulator-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.portal-tabulator-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-tabulator-menu-wrap {
  position: relative;
}

.portal-tabulator-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
  color: #2d3a4f;
  font-size: 12px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.portal-tabulator-toolbar-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #4e6287;
}

.portal-tabulator-toolbar-btn-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-tabulator-toolbar-btn:hover,
.portal-tabulator-toolbar-btn:focus-visible {
  background: #f4f7fb;
  outline: none;
}

.portal-tabulator-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #e7ecf3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  display: none;
  z-index: 20;
}

.users-export-menu.open {
  display: grid;
}

.portal-tabulator-menu.open {
  display: grid;
}

.portal-tabulator-menu-heading {
  margin: -2px 0 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid #eceff4;
  color: #4f5c6f;
  font-size: 12px;
  font-weight: 400;
}

.portal-tabulator-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 6px;
}

.portal-tabulator-menu-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-tabulator-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2d3a4f;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  padding: 6px 10px;
  cursor: pointer;
}

.users-export-item:hover,
.users-export-item:focus-visible {
  background: #f4f7fb;
  outline: none;
}

.portal-tabulator-menu-item:hover,
.portal-tabulator-menu-item:focus-visible {
  background: #f4f7fb;
  outline: none;
}

.portal-tabulator-menu-item:disabled {
  opacity: 0.55;
  cursor: default;
}

.portal-tabulator-menu-check {
  width: 14px;
  flex: 0 0 14px;
  color: #667281;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-tabulator-menu-check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-tabulator-menu-label {
  flex: 1 1 auto;
}

.portal-tabulator-menu-pin {
  min-width: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667281;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-tabulator-menu-pin:hover,
.portal-tabulator-menu-pin:focus-visible {
  background: #eef4ff;
  outline: none;
}

.portal-tabulator-menu-pin.is-active {
  background: #f0f3f7;
  color: #344050;
}

.portal-tabulator-menu-pin:disabled {
  opacity: 0.45;
  cursor: default;
}

.portal-tabulator-menu-pin-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-tabulator-menu-caret {
  font-size: 14px;
  line-height: 1;
}

.portal-tabulator-submenu-wrap {
  position: relative;
}

.portal-tabulator-submenu-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  width: 10px;
  height: 100%;
}

.portal-tabulator-submenu {
  position: absolute;
  top: 0;
  right: calc(100% - 2px);
  display: none;
  min-width: 122px;
  padding: 10px;
  border: 1px solid #e7ecf3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  z-index: 25;
}

.portal-tabulator-submenu-wrap:hover .portal-tabulator-submenu,
.portal-tabulator-submenu-wrap:focus-within .portal-tabulator-submenu {
  display: grid;
  gap: 4px;
}

.portal-tabulator-pin-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2d3a4f;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 8px;
  cursor: pointer;
}

.portal-tabulator-pin-option:hover,
.portal-tabulator-pin-option:focus-visible {
  background: #eef4ff;
  outline: none;
}

.portal-tabulator-pin-option.is-active {
  background: #f0f3f7;
  color: #344050;
}

.portal-tabulator-pin-diagram,
.portal-tabulator-native-pin-diagram {
  display: inline-grid;
  grid-template-columns: repeat(3, 6px);
  gap: 2px;
}

.portal-tabulator-pin-diagram i,
.portal-tabulator-native-pin-diagram i {
  display: block;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  background: #c7ced8;
}

.portal-tabulator-pin-diagram.is-left i:first-child,
.portal-tabulator-native-pin-diagram.is-left i:first-child,
.portal-tabulator-pin-diagram.is-right i:last-child,
.portal-tabulator-native-pin-diagram.is-right i:last-child {
  background: #49525f;
}

.portal-tabulator-pin-diagram.is-unpin i,
.portal-tabulator-native-pin-diagram.is-unpin i {
  background: #c7ced8;
}

.managed-table-shell {
  display: block;
  position: relative;
  min-height: 0;
  border: 1px solid #d4dbe5;
  box-shadow: 1px 1px 0px rgb(39 70 131 / 20%);
}

.managed-table-wrap {
  border: 0;
  border-radius: 0;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.managed-grid-table-source {
  display: none !important;
}

.portal-tabulator {
  width: 100%;
  min-height: 240px;
  border: 0;
  background: #fff;
  font-size: 12px;
}

.portal-tabulator .tabulator {
  width: max-content;
  min-width: 100%;
  min-height: 240px;
  border: 0;
  background: #fff;
  font-size: 12px;
  color: #333e4f;
  border-radius: 6px;
  box-shadow: none;
  overflow: hidden;
}

.portal-tabulator .tabulator-header {
  border-bottom: 1px solid #dfe6f1;
  background: #f7f9fc;
  color: #222b38;
  font-size: 11px;
  font-weight: 700;
}

.portal-tabulator .tabulator-header .tabulator-col {
  border-right: 1px solid #dbe2ec;
  background: #edeff4;
}

.portal-tabulator .tabulator-header .tabulator-col.tabulator-frozen {
  border-right-color: #f1f4f8;
  border-left-color: #f1f4f8;
}

.portal-tabulator .tabulator-header .tabulator-col:last-child {
  border-right: 0;
}

.portal-tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 8px 10px;
}

.portal-tabulator .tabulator-header .tabulator-col .tabulator-col-title {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.portal-tabulator .tabulator-header .tabulator-col .tabulator-col-sorter {
  margin-left: 6px;
}

.portal-tabulator .tabulator-header .tabulator-col .tabulator-col-sorter .tabulator-arrow {
  display: block;
  transform: scale(0.72);
  transform-origin: center;
  border-left-width: 4px;
  border-right-width: 4px;
  border-bottom-width: 4px;
  border-top-width: 4px;
}

.portal-tabulator .tabulator-header .tabulator-col:hover,
.portal-tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover,
.portal-tabulator .tabulator-header .tabulator-col.tabulator-col-group:hover {
  background: #fff;
  box-shadow: none !important;
}

.portal-tabulator .tabulator-header .tabulator-col:hover .tabulator-col-content,
.portal-tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover .tabulator-col-content,
.portal-tabulator .tabulator-header .tabulator-col.tabulator-col-group:hover .tabulator-col-content {
  background: #fff;
}

.portal-tabulator .tabulator-header .tabulator-col .tabulator-header-popup-button {
  color: #8ea0bc;
  padding: 0 8px 0 0;
}

.portal-tabulator .tabulator-header .tabulator-col:hover .tabulator-header-popup-button {
  color: #6f82a1;
}

.tabulator-menu .portal-tabulator-native-menu-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.tabulator-menu .portal-tabulator-native-menu-label.is-muted {
  opacity: 0.55;
}

.tabulator-menu .portal-tabulator-native-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #667281;
}

.tabulator-menu .portal-tabulator-native-menu-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabulator-menu {
  border: 1px solid #cfd6e1;
  border-radius: 0;
  box-shadow: 1px 1px 2px rgb(15 23 42 / 16%);
  padding: 6px;
  overflow: hidden;
  font-size: 13px;
  color: #333;
}

.tabulator-menu .tabulator-menu-item {
  font-weight: 400;
  box-sizing: border-box;
  padding: 4px 13px 4px 8px;
  position: relative;
  user-select: none;
}

.tabulator-menu .tabulator-menu-separator {
  border-top: 1px solid #e7e7e7;
  margin: 4px 0;
}

.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu::after {
  height: 5px;
  right: 4px;
  width: 5px;
}

.portal-tabulator .tabulator-tableholder {
  overflow: auto;
}

.portal-tabulator .tabulator-footer {
  padding: 10px 12px;
  border-top: 1px solid #e1e7f0;
  background: #fff;
}

.portal-tabulator .tabulator-footer .tabulator-paginator,
.portal-tabulator .tabulator-footer .tabulator-page-size {
  font-size: 12px;
}

.tabulator .tabulator-footer .tabulator-page.active {
  color: #000000;
  font-weight: 700;
}

.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents {
  color: #ccc;
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  padding: 10px;
  text-align: center;
  white-space: normal;
}

.portal-tabulator .tabulator-row {
  background: #fff;
}

.portal-tabulator .tabulator-row .tabulator-cell {
  border-right: 1px solid #e8edf4;
  border-bottom: 1px solid #eef3f8;
  padding: 0 10px;
  background: #fff;
  font-size: 12px;
  line-height: 38px;
  vertical-align: middle;
}

.portal-tabulator .tabulator-row .tabulator-cell>* {
  line-height: normal;
}

.portal-tabulator .tabulator-header .tabulator-frozen,
.portal-tabulator .tabulator-row .tabulator-cell.tabulator-frozen {
  border-right-color: #f1f4f8;
  border-left-color: #f1f4f8;
}

.portal-tabulator .tabulator-row .tabulator-cell:last-child {
  border-right: 0;
}

.managed-table-wrap .dt-container .dt-layout-row,
.managed-table-wrap .dt-container .dt-layout-cell {
  padding: 0;
  margin: 0;
}

.managed-table-wrap .dt-container .dt-search,
.managed-table-wrap .dt-container .dt-length,
.managed-table-wrap .dt-container .dt-info,
.managed-table-wrap .dt-container .dt-paging {
  display: none;
}

.managed-columns-rail {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #dfe6f1;
  background: #fbfcfe;
  color: #2c3441;
  font-size: 12px;
  gap: 8px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
  position: relative;
  z-index: 7;
}

.managed-columns-rail svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
}

.managed-columns-panel {
  position: absolute;
  top: 0;
  right: 34px;
  bottom: 0;
  width: 420px;
  max-width: min(420px, 86vw);
  background: #fff;
  border-left: 1px solid #dfe6f1;
  box-shadow: -12px 0 24px rgba(18, 35, 64, 0.08);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 6;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.managed-columns-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.managed-columns-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #dfe6f1;
}

.managed-columns-collapse {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: #8f98a6;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.managed-columns-search {
  flex: 1 1 auto;
}

.managed-columns-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #bfc9d8;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13px;
  color: #334155;
}

.managed-columns-list {
  overflow: auto;
  padding: 10px 0;
}

.managed-column-option {
  display: grid;
  grid-template-columns: 22px 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  color: #1f2937;
  font-size: 15px;
}

.managed-column-option input {
  width: 18px;
  height: 18px;
  accent-color: #2f7bf6;
}

.managed-column-grip {
  color: #495466;
  font-size: 18px;
  line-height: 1;
}

.managed-column-option.is-hidden {
  display: none;
}

.managed-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #e1e7f0;
  color: #364152;
  font-size: 12px;
  background: #fff;
}

.managed-table-footer-left,
.managed-table-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.managed-table-footer-left label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.managed-table-footer select {
  height: 32px;
  border: 1px solid #d7deea;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  padding: 0 10px;
  font-size: 12px;
}

.managed-table-footer-right button {
  border: 0;
  background: transparent;
  color: #3b4453;
  font-size: 22px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.managed-table-footer strong {
  color: #202833;
}

.users-table-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  position: relative;
  min-height: 0;
}

.users-table-wrap {
  border: 0;
  border-radius: 0;
  min-height: 0;
  overflow: hidden;
}

.users-table-wrap .dt-container .dt-layout-row,
.users-table-wrap .dt-container .dt-layout-cell {
  padding: 0;
  margin: 0;
}

.users-table-wrap .dt-container .dt-search,
.users-table-wrap .dt-container .dt-length,
.users-table-wrap .dt-container .dt-info,
.users-table-wrap .dt-container .dt-paging {
  display: none;
}

.managed-grid-table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order,
.managed-grid-table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order,
.managed-grid-table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order,
.managed-grid-table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order,
.managed-grid-table.dataTable thead>tr>td.dt-orderable-asc span.dt-column-order,
.managed-grid-table.dataTable thead>tr>td.dt-orderable-desc span.dt-column-order,
.managed-grid-table.dataTable thead>tr>td.dt-ordering-asc span.dt-column-order,
.managed-grid-table.dataTable thead>tr>td.dt-ordering-desc span.dt-column-order {
  display: none !important;
}

.managed-grid-table.dataTable thead>tr>th.dt-orderable-asc::before,
.managed-grid-table.dataTable thead>tr>th.dt-orderable-asc::after,
.managed-grid-table.dataTable thead>tr>th.dt-orderable-desc::before,
.managed-grid-table.dataTable thead>tr>th.dt-orderable-desc::after,
.managed-grid-table.dataTable thead>tr>th.dt-ordering-asc::before,
.managed-grid-table.dataTable thead>tr>th.dt-ordering-asc::after,
.managed-grid-table.dataTable thead>tr>th.dt-ordering-desc::before,
.managed-grid-table.dataTable thead>tr>th.dt-ordering-desc::after,
.managed-grid-table.dataTable thead>tr>td.dt-orderable-asc::before,
.managed-grid-table.dataTable thead>tr>td.dt-orderable-asc::after,
.managed-grid-table.dataTable thead>tr>td.dt-orderable-desc::before,
.managed-grid-table.dataTable thead>tr>td.dt-orderable-desc::after,
.managed-grid-table.dataTable thead>tr>td.dt-ordering-asc::before,
.managed-grid-table.dataTable thead>tr>td.dt-ordering-asc::after,
.managed-grid-table.dataTable thead>tr>td.dt-ordering-desc::before,
.managed-grid-table.dataTable thead>tr>td.dt-ordering-desc::after {
  display: none !important;
  content: none !important;
}

.managed-th-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.managed-th-label {
  min-width: 0;
  flex: 0 1 auto;
}

.managed-th-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  margin-left: auto;
}

.managed-sort-icon {
  position: relative;
  width: 10px;
  height: 10px;
  display: none;
  flex: 0 0 10px;
}

.managed-sort-icon::before {
  content: "";
  position: absolute;
  inset: 1px 1px 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #b6c1d0;
}

.managed-grid-table thead th.sort-asc .managed-sort-icon::before {
  inset: 2px 1px 1px;
  border-top: 0;
  border-bottom: 5px solid #6c7a90;
}

.managed-grid-table thead th.sort-asc .managed-sort-icon,
.managed-grid-table thead th.sort-desc .managed-sort-icon {
  display: inline-block;
}

.managed-grid-table thead th.sort-desc .managed-sort-icon::before {
  border-top: 5px solid #6c7a90;
}

.managed-grid-table thead th.sort-asc .managed-sort-icon::before,
.managed-grid-table thead th.sort-desc .managed-sort-icon::before {
  border-bottom-color: #111827;
  border-top-color: #111827;
}

.managed-header-menu-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1afc3;
}

.managed-header-menu-trigger:hover,
.managed-header-menu-trigger:focus-visible {
  color: #5e6f89;
  outline: none;
}

.managed-menu-mark {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.managed-grid-table thead th,
.managed-grid-table thead td {
  padding: 8px 10px;
  height: 22px;
  line-height: 1.1;
  vertical-align: middle;
}

.managed-grid-table.dataTable thead>tr>th,
.managed-grid-table.dataTable thead>tr>td,
.managed-grid-table.dataTable thead>tr>th.dt-orderable-asc,
.managed-grid-table.dataTable thead>tr>th.dt-orderable-desc,
.managed-grid-table.dataTable thead>tr>th.dt-ordering-asc,
.managed-grid-table.dataTable thead>tr>th.dt-ordering-desc {
  padding: 8px 10px !important;
}

.managed-grid-table thead th[data-managed-column-header]:hover {
  background: #eef3f8 !important;
  box-shadow: none !important;
  outline: none !important;
}

.managed-grid-table thead th.sort-asc,
.managed-grid-table thead th.sort-desc {
  background: #eceff3 !important;
}

.managed-grid-table tbody td.is-sort-active-cell,
.managed-grid-table tbody td.is-sort-active-cell.managed-col-fixed-start,
.managed-grid-table tbody td.is-sort-active-cell.managed-col-fixed-start-secondary,
.managed-grid-table tbody td.is-sort-active-cell.managed-col-fixed-end,
.managed-grid-table tbody td.is-sort-active-cell.managed-col-fixed-end-secondary {
  background: #fcfcfd !important;
}

.managed-grid-table thead th,
.managed-grid-table tbody td {
  border-right: 1px solid #e8edf4;
}

.managed-grid-table thead th:last-child,
.managed-grid-table tbody td:last-child {
  border-right: 0;
}

.managed-grid-table thead th.managed-col-fixed-start,
.managed-grid-table tbody td.managed-col-fixed-start,
.managed-grid-table thead th.managed-col-fixed-start-secondary,
.managed-grid-table tbody td.managed-col-fixed-start-secondary {
  position: sticky;
  z-index: 4;
  background: #fff;
  box-shadow: inset -1px 0 0 #d9e1ee, 10px 0 18px rgba(18, 35, 64, 0.04);
}

.managed-grid-table thead th.managed-col-fixed-end,
.managed-grid-table tbody td.managed-col-fixed-end,
.managed-grid-table thead th.managed-col-fixed-end-secondary,
.managed-grid-table tbody td.managed-col-fixed-end-secondary {
  position: sticky;
  z-index: 4;
  background: #fff;
  box-shadow: inset 1px 0 0 #d9e1ee, -10px 0 18px rgba(18, 35, 64, 0.06);
}

.managed-grid-table thead th.managed-col-fixed-start,
.managed-grid-table thead th.managed-col-fixed-start-secondary,
.managed-grid-table thead th.managed-col-fixed-end,
.managed-grid-table thead th.managed-col-fixed-end-secondary {
  z-index: 8;
  background: #f7f9fc;
}

.managed-grid-table.dataTable thead>tr>th:hover,
.managed-grid-table.dataTable thead>tr>td:hover,
.managed-grid-table.dataTable thead>tr>th:focus,
.managed-grid-table.dataTable thead>tr>td:focus,
.managed-grid-table.dataTable thead>tr>th:focus-visible,
.managed-grid-table.dataTable thead>tr>td:focus-visible {
  box-shadow: none !important;
  outline: none !important;
}

.managed-column-menu {
  position: fixed;
  width: 240px;
  background: #fff;
  border: 1px solid #b9c6d7;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  border-radius: 4px;
  overflow: visible;
  z-index: 40;
  display: none;
}

.managed-column-menu.is-open {
  display: block;
}

.managed-column-menu-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d7deea;
}

.managed-column-menu-tab {
  height: 40px;
  border: 0;
  background: #fff;
  color: #2e3b50;
  font-size: 14px;
  cursor: pointer;
  position: relative;
}

.managed-column-menu-tab.is-active {
  color: #2f7bf6;
}

.managed-column-menu-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #2f7bf6;
}

.managed-column-menu-panel {
  display: none;
}

.managed-column-menu-panel.is-active {
  display: block;
}

.managed-column-menu-action {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-top: 1px solid #e3eaf4;
  background: #fff;
  color: #283446;
  font-size: 12px;
  text-align: left;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.managed-column-menu-action:hover,
.managed-column-menu-action:focus-visible {
  background: #eef3f8;
  outline: none;
}

.users-column-menu-arrow,
.partner-ert-column-menu-arrow {
  margin-left: auto;
  font-size: 10px;
  color: #64748b;
}

.managed-column-pin-menu {
  position: absolute;
  top: 42px;
  left: calc(100% - 4px);
  width: 136px;
  background: #fff;
  border: 1px solid #b9c6d7;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  border-radius: 4px;
  display: none;
}

.managed-column-pin-menu.is-open {
  display: block;
}

.managed-column-menu-search {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid #e3eaf4;
}

.managed-column-menu-search input {
  width: 100%;
  height: 30px;
  border: 1px solid #bfc9d8;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 12px;
  color: #334155;
}

.managed-column-menu-list {
  max-height: 280px;
  overflow: auto;
  padding: 6px 0 10px;
}

.managed-column-menu-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  color: #1f2937;
  font-size: 12px;
}

.managed-column-menu-option input {
  width: 16px;
  height: 16px;
  accent-color: #2f7bf6;
}

.managed-column-menu-option.is-hidden {
  display: none;
}

.chart-alerts-page {
  padding: 24px;
  min-width: 0;
  height: 100%;
  min-height: 0;
}

.chart-alerts-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
}

.chart-alerts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chart-alerts-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8cac;
}

.chart-alerts-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  color: #14213d;
}

.chart-alerts-intro {
  margin: 0;
  max-width: 760px;
  color: #5f7192;
  line-height: 1.5;
}

.chart-alerts-backlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9e2f1;
  border-radius: 999px;
  background: #fff;
  color: #2f4b7c;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  flex: 0 0 auto;
}

.chart-alerts-card {
  background: #fff;
  border: 1px solid #dfe7f3;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(20, 33, 61, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.chart-alerts-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e6edf7;
  flex-wrap: wrap;
}

.chart-alerts-card-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #14213d;
}

.chart-alerts-card-head p {
  margin: 0;
  font-size: 13px;
  color: #6f83a6;
}

.chart-alerts-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2d5fb2;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.chart-alerts-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.chart-alerts-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.chart-alerts-table th,
.chart-alerts-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #edf2fa;
  text-align: left;
  vertical-align: middle;
}

.chart-alerts-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8cac;
}

.chart-alerts-table td {
  font-size: 14px;
  color: #20304e;
  overflow-wrap: anywhere;
}

.chart-alerts-table th:nth-child(1),
.chart-alerts-table td:nth-child(1) {
  width: 21%;
}

.chart-alerts-table th:nth-child(2),
.chart-alerts-table td:nth-child(2) {
  width: 31%;
}

.chart-alerts-table th:nth-child(3),
.chart-alerts-table td:nth-child(3) {
  width: 17%;
}

.chart-alerts-table th:nth-child(4),
.chart-alerts-table td:nth-child(4) {
  width: 16%;
}

.chart-alerts-table th:nth-child(5),
.chart-alerts-table td:nth-child(5) {
  width: 15%;
}

.chart-alerts-primary {
  font-weight: 700;
  color: #14213d;
  overflow-wrap: anywhere;
}

.chart-alerts-secondary {
  margin-top: 3px;
  font-size: 12px;
  color: #7a8cac;
}

.chart-alerts-threshold {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4e5;
  color: #b96f00;
  font-size: 12px;
  font-weight: 700;
}

.chart-alerts-actions-cell {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.chart-alerts-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 8px;
}

.chart-alerts-edit,
.chart-alerts-delete {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.chart-alerts-edit {
  border: 1px solid #cfe0ff;
  color: #1d4ed8;
}

.chart-alerts-edit:hover {
  background: #f3f8ff;
}

.chart-alerts-delete {
  border: 1px solid #f0c8c8;
  color: #b42318;
}

.chart-alerts-delete:hover {
  background: #fff5f5;
}

@media (max-width: 840px) {
  .chart-alerts-page {
    padding: 18px 16px;
  }

  .chart-alerts-actions-cell {
    white-space: normal;
  }

  .chart-alerts-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.chart-alerts-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 56px 24px 64px;
  text-align: center;
}

.chart-alerts-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8f0ff 0%, #f9fbff 100%);
  color: #2d5fb2;
  font-size: 24px;
}

.chart-alerts-empty h3 {
  margin: 0;
  font-size: 20px;
  color: #14213d;
}

.chart-alerts-empty p {
  margin: 0;
  max-width: 420px;
  color: #6f83a6;
  line-height: 1.5;
}

body[data-industry="default"] .chart-alerts-backlink {
  background: #fff;
  border-color: #d9e2f1;
  color: #2f4b7c;
}

body[data-industry="default"] .chart-alerts-card {
  background: #fff;
  border-color: #dfe7f3;
  box-shadow: 0 18px 48px rgba(20, 33, 61, 0.08);
}

body[data-industry="default"] .chart-alerts-card-head {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fd 100%);
  border-bottom-color: #e6edf7;
}

body[data-industry="default"] .chart-alerts-count {
  background: #edf4ff;
  color: #2d5fb2;
}

body[data-industry="default"] .chart-alerts-threshold {
  background: #fff4e5;
  color: #b96f00;
}

body[data-industry="crypto"] .chart-alerts-kicker,
body[data-industry="crypto"] .chart-alerts-table th,
body[data-industry="crypto"] .chart-alerts-secondary,
body[data-industry="crypto"] .chart-alerts-card-head p,
body[data-industry="crypto"] .chart-alerts-intro,
body[data-industry="crypto"] .chart-alerts-empty p {
  color: rgba(220, 226, 245, 0.72);
}

body[data-industry="crypto"] .chart-alerts-title,
body[data-industry="crypto"] .chart-alerts-card-head h2,
body[data-industry="crypto"] .chart-alerts-primary,
body[data-industry="crypto"] .chart-alerts-table td,
body[data-industry="crypto"] .chart-alerts-empty h3 {
  color: var(--text, #edf2ff);
}

body[data-industry="crypto"] .chart-alerts-backlink {
  background: rgba(13, 20, 36, 0.92);
  border-color: var(--brand-primary-subtle, rgba(124, 77, 255, 0.18));
  color: var(--text, #edf2ff);
}

body[data-industry="crypto"] .chart-alerts-card {
  background: linear-gradient(180deg, rgba(11, 17, 31, 0.96) 0%, rgba(7, 12, 24, 0.98) 100%);
  border-color: var(--brand-primary-subtle, rgba(124, 77, 255, 0.18));
  box-shadow: 0 0 0 1px var(--brand-primary-subtle, rgba(124, 77, 255, 0.14)), 0 18px 36px rgba(8, 15, 30, 0.26);
}

body[data-industry="crypto"] .chart-alerts-card-head {
  background: linear-gradient(180deg, rgba(32, 21, 64, 0.96) 0%, rgba(18, 14, 32, 0.94) 100%);
  border-bottom-color: rgba(114, 93, 170, 0.3);
  align-items: flex-start;
}

body[data-industry="crypto"] .chart-alerts-count {
  background: var(--brand-primary-subtle, rgba(124, 77, 255, 0.18));
  color: var(--brand-primary, #7c4dff);
}

body[data-industry="crypto"] .chart-alerts-table th,
body[data-industry="crypto"] .chart-alerts-table td {
  border-bottom-color: rgba(108, 122, 160, 0.16);
}

body[data-industry="crypto"] .chart-alerts-threshold {
  background: rgba(30, 202, 184, 0.14);
  color: #59dbc8;
}

body[data-industry="crypto"] .chart-alerts-edit {
  background: rgba(124, 77, 255, 0.12);
  border-color: rgba(124, 77, 255, 0.28);
  color: var(--brand-primary, #7c4dff);
}

body[data-industry="crypto"] .chart-alerts-edit:hover {
  background: rgba(124, 77, 255, 0.18);
}

body[data-industry="crypto"] .chart-alerts-delete {
  background: rgba(127, 29, 29, 0.12);
  border-color: rgba(239, 68, 68, 0.26);
  color: #fca5a5;
}

body[data-industry="crypto"] .chart-alerts-delete:hover {
  background: rgba(127, 29, 29, 0.2);
}

body[data-industry="crypto"] .chart-alerts-empty-icon {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.18) 0%, rgba(30, 202, 184, 0.16) 100%);
  color: var(--brand-primary, #7c4dff);
}

body[data-industry="travel"] .chart-alerts-kicker,
body[data-industry="travel"] .chart-alerts-table th,
body[data-industry="travel"] .chart-alerts-secondary,
body[data-industry="travel"] .chart-alerts-card-head p,
body[data-industry="travel"] .chart-alerts-intro,
body[data-industry="travel"] .chart-alerts-empty p {
  color: rgba(48, 102, 82, 0.7);
}

body[data-industry="travel"] .chart-alerts-title,
body[data-industry="travel"] .chart-alerts-card-head h2,
body[data-industry="travel"] .chart-alerts-primary,
body[data-industry="travel"] .chart-alerts-table td,
body[data-industry="travel"] .chart-alerts-empty h3 {
  color: var(--text, #1f3b2f);
}

body[data-industry="travel"] .chart-alerts-backlink {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(47, 143, 104, 0.18);
  color: var(--brand-primary, #2f8f68);
}

body[data-industry="travel"] .chart-alerts-card {
  background: linear-gradient(180deg, rgba(251, 255, 252, 0.98) 0%, rgba(244, 251, 247, 0.98) 100%);
  border-color: rgba(47, 143, 104, 0.12);
  box-shadow: 0 18px 42px rgba(31, 59, 47, 0.1);
}

body[data-industry="travel"] .chart-alerts-card-head {
  background: linear-gradient(180deg, rgba(238, 250, 244, 0.98) 0%, rgba(230, 247, 240, 0.96) 100%);
  border-bottom-color: rgba(47, 143, 104, 0.14);
  align-items: flex-start;
}

body[data-industry="travel"] .chart-alerts-count {
  background: rgba(47, 143, 104, 0.12);
  color: var(--brand-primary, #2f8f68);
}

body[data-industry="travel"] .chart-alerts-table th,
body[data-industry="travel"] .chart-alerts-table td {
  border-bottom-color: rgba(47, 143, 104, 0.1);
}

body[data-industry="travel"] .chart-alerts-threshold {
  background: rgba(47, 143, 104, 0.1);
  color: #227455;
}

body[data-industry="travel"] .chart-alerts-edit {
  background: rgba(47, 143, 104, 0.08);
  border-color: rgba(47, 143, 104, 0.2);
  color: var(--brand-primary, #2f8f68);
}

body[data-industry="travel"] .chart-alerts-edit:hover {
  background: rgba(47, 143, 104, 0.14);
}

body[data-industry="travel"] .chart-alerts-empty-icon {
  background: linear-gradient(135deg, rgba(47, 143, 104, 0.12) 0%, rgba(153, 224, 193, 0.18) 100%);
  color: var(--brand-primary, #2f8f68);
}

body[data-industry="gaming"] .chart-alerts-kicker,
body[data-industry="gaming"] .chart-alerts-table th,
body[data-industry="gaming"] .chart-alerts-secondary,
body[data-industry="gaming"] .chart-alerts-card-head p,
body[data-industry="gaming"] .chart-alerts-intro,
body[data-industry="gaming"] .chart-alerts-empty p {
  color: rgba(203, 218, 255, 0.7);
}

body[data-industry="gaming"] .chart-alerts-title,
body[data-industry="gaming"] .chart-alerts-card-head h2,
body[data-industry="gaming"] .chart-alerts-primary,
body[data-industry="gaming"] .chart-alerts-table td,
body[data-industry="gaming"] .chart-alerts-empty h3 {
  color: var(--text, #eef4ff);
}

body[data-industry="gaming"] .chart-alerts-backlink {
  background: rgba(32, 40, 67, 0.92);
  border-color: rgba(61, 139, 255, 0.2);
  color: var(--brand-primary, #3d8bff);
}

body[data-industry="gaming"] .chart-alerts-card {
  background: linear-gradient(180deg, rgba(31, 38, 62, 0.98) 0%, rgba(24, 30, 51, 0.98) 100%);
  border-color: rgba(61, 139, 255, 0.16);
  box-shadow: 0 18px 40px rgba(5, 11, 24, 0.28);
}

body[data-industry="gaming"] .chart-alerts-card-head {
  background: linear-gradient(180deg, rgba(47, 61, 95, 0.96) 0%, rgba(39, 49, 78, 0.94) 100%);
  border-bottom-color: rgba(96, 165, 250, 0.16);
}

body[data-industry="gaming"] .chart-alerts-count {
  background: rgba(61, 139, 255, 0.16);
  color: var(--brand-primary, #3d8bff);
}

body[data-industry="gaming"] .chart-alerts-table th,
body[data-industry="gaming"] .chart-alerts-table td {
  border-bottom-color: rgba(96, 165, 250, 0.12);
}

body[data-industry="gaming"] .chart-alerts-threshold {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

body[data-industry="gaming"] .chart-alerts-edit {
  background: rgba(61, 139, 255, 0.12);
  border-color: rgba(61, 139, 255, 0.28);
  color: var(--brand-primary, #3d8bff);
}

body[data-industry="gaming"] .chart-alerts-edit:hover {
  background: rgba(61, 139, 255, 0.18);
}

body[data-industry="gaming"] .chart-alerts-delete {
  background: rgba(127, 29, 29, 0.16);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

body[data-industry="gaming"] .chart-alerts-delete:hover {
  background: rgba(127, 29, 29, 0.24);
}

body[data-industry="gaming"] .chart-alerts-empty-icon {
  background: linear-gradient(135deg, rgba(61, 139, 255, 0.16) 0%, rgba(34, 197, 94, 0.12) 100%);
  color: var(--brand-primary, #3d8bff);
}

.users-table {
  min-width: 1320px;
  font-size: 13px;
}

.users-table thead th,
.users-table-wrap table.dataTable thead>tr>th,
.users-table-wrap table.dataTable thead>tr>td {
  background: #f7f9fc;
  color: #222b38;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  white-space: nowrap;
}

.users-table tbody td,
.users-table-wrap table.dataTable tbody td {
  color: #333e4f;
  vertical-align: middle;
  background: #fff;
}

.users-th-inner {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.users-header-menu-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1afc3;
}

.users-header-menu-trigger:hover,
.users-header-menu-trigger:focus-visible {
  color: #5e6f89;
  outline: none;
}

.users-th-mark {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.users-actions {
  display: inline-flex;
  align-items: center;
  min-height: 100%;
  gap: 10px;
}

.users-actions button,
.users-login-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.users-action-lock {
  color: #6f7480;
}

.users-action-pencil,
.users-login-btn {
  color: #2581b6;
}

.users-action-shield {
  color: #6b46c1;
}

.users-action-card {
  color: #ff8c2a;
}

.users-action-mail {
  color: #47a9e6;
}

.users-login-btn.is-disabled {
  color: #9fc8df;
  cursor: default;
}

.users-table tbody tr:hover td,
.users-table-wrap table.dataTable tbody tr:hover td {
  background: #f8fafc;
}

.users-table tbody tr:hover td.managed-col-fixed-start,
.users-table tbody tr:hover td.managed-col-fixed-start-secondary,
.users-table tbody tr:hover td.managed-col-fixed-end,
.users-table tbody tr:hover td.managed-col-fixed-end-secondary,
.users-table-wrap table.dataTable tbody tr:hover td.managed-col-fixed-start,
.users-table-wrap table.dataTable tbody tr:hover td.managed-col-fixed-start-secondary,
.users-table-wrap table.dataTable tbody tr:hover td.managed-col-fixed-end,
.users-table-wrap table.dataTable tbody tr:hover td.managed-col-fixed-end-secondary {
  background: #f8fafc;
}

.users-status {
  color: #2d3a4f;
  font-weight: 500;
}

.users-email {
  max-width: 168px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.users-columns-rail {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #dfe6f1;
  background: #fbfcfe;
  color: #2c3441;
  font-size: 12px;
  gap: 8px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
  position: relative;
  z-index: 7;
}

.users-columns-rail svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
}

.users-columns-panel {
  position: absolute;
  top: 0;
  right: 34px;
  bottom: 0;
  width: 420px;
  max-width: min(420px, 86vw);
  background: #fff;
  border-left: 1px solid #dfe6f1;
  box-shadow: -12px 0 24px rgba(18, 35, 64, 0.08);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 6;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.users-columns-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.users-columns-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #dfe6f1;
}

.users-columns-collapse {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: #8f98a6;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.users-columns-search {
  flex: 1 1 auto;
}

.users-columns-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #bfc9d8;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13px;
  color: #334155;
}

.users-columns-list {
  overflow: auto;
  padding: 10px 0;
}

.users-column-option {
  display: grid;
  grid-template-columns: 22px 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  color: #1f2937;
  font-size: 15px;
}

.users-column-option input {
  width: 18px;
  height: 18px;
  accent-color: #2f7bf6;
}

.users-column-grip {
  color: #495466;
  font-size: 18px;
  line-height: 1;
}

.users-column-option.is-hidden {
  display: none;
}

.users-column-menu {
  position: fixed;
  width: 240px;
  background: #fff;
  border: 1px solid #b9c6d7;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  border-radius: 4px;
  overflow: visible;
  z-index: 40;
  display: none;
}

.users-column-menu.is-open {
  display: block;
}

.users-column-menu-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d7deea;
}

.users-column-menu-tab {
  height: 40px;
  border: 0;
  background: #fff;
  color: #2e3b50;
  font-size: 16px;
  cursor: pointer;
  position: relative;
}

.users-column-menu-tab.is-active {
  color: #2f7bf6;
}

.users-column-menu-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #2f7bf6;
}

.users-column-menu-panel {
  display: none;
}

.users-column-menu-panel.is-active {
  display: block;
}

.users-column-menu-action {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-top: 1px solid #e3eaf4;
  background: #fff;
  color: #283446;
  font-size: 13px;
  text-align: left;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.users-column-menu-action:hover,
.users-column-menu-action:focus-visible {
  background: #f4f8ff;
  outline: none;
}

.users-column-menu-arrow {
  font-size: 11px;
  color: #475569;
}

.users-column-pin-menu {
  position: absolute;
  top: 42px;
  left: calc(100% - 4px);
  width: 136px;
  background: #fff;
  border: 1px solid #b9c6d7;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  border-radius: 4px;
  display: none;
}

.users-column-pin-menu.is-open {
  display: block;
}

.users-column-menu-search {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid #e3eaf4;
}

.users-column-menu-search input {
  width: 100%;
  height: 30px;
  border: 1px solid #bfc9d8;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 13px;
  color: #334155;
}

.users-column-menu-list {
  max-height: 280px;
  overflow: auto;
  padding: 6px 0 10px;
}

.users-column-menu-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  color: #1f2937;
  font-size: 13px;
}

.users-column-menu-option input {
  width: 16px;
  height: 16px;
  accent-color: #2f7bf6;
}

.users-column-menu-option.is-hidden {
  display: none;
}

.users-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #e1e7f0;
  color: #364152;
  font-size: 12px;
  background: #fff;
}

.users-footer-left,
.users-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.users-footer-left label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.users-footer select {
  height: 32px;
  border: 1px solid #d7deea;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  padding: 0 10px;
  font-size: 12px;
}

.users-footer-right button {
  border: 0;
  background: transparent;
  color: #3b4453;
  font-size: 22px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.users-footer strong {
  color: #202833;
}

.users-action-copy {
  margin: 0 0 12px;
  color: #4c5767;
  font-size: 13px;
  line-height: 1.5;
}

.users-action-list {
  margin: 0;
  padding-left: 18px;
  color: #2f3745;
  line-height: 1.7;
}

.users-action-empty {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.users-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 35, 46, 0.42);
  display: none;
  place-items: center;
  z-index: 380;
}

.users-modal.open {
  display: grid;
}

.users-dialog {
  width: min(600px, 92vw);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.users-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5eaf2;
}

.users-dialog-head h3 {
  margin: 0;
  color: #20242c;
  font-size: 18px;
}

.users-dialog-close {
  border: 0;
  background: transparent;
  color: #20242c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.users-form {
  padding: 18px 20px 20px;
}

.users-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.users-field>span,
.users-radio-group legend {
  color: #2f3745;
  font-size: 13px;
  font-weight: 700;
}

.users-field input,
.users-field select {
  width: 100%;
  height: 32px;
  border: 1px solid #ccd5e2;
  border-radius: 3px;
  padding: 0 10px;
  font-size: 13px;
  color: #2d3748;
  background: #fff;
}

.users-field small {
  color: #ff4d4f;
  font-size: 11px;
}

.users-radio-group {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.users-radio-group p {
  margin: 6px 0 10px;
  color: #4c5767;
  font-size: 12px;
}

.users-radios {
  display: flex;
  align-items: center;
  gap: 18px;
}

.users-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
}

.users-radios input {
  width: 18px;
  height: 18px;
  accent-color: #2f7bf6;
}

.users-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.users-cancel-btn,
.users-submit-btn {
  min-width: 82px;
  height: 34px;
  border-radius: 4px;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.users-cancel-btn {
  background: #d9dde5;
  color: #323a49;
  cursor: pointer;
}

.users-submit-btn {
  background: #eceff4;
  color: #a7afbb;
  cursor: default;
}

.partner-ert-page {
  padding: 0;
}

.partner-ert-shell {
  background: #fff;
  border: 1px solid #d4dbe5;
  border-radius: 6px;
  box-shadow: 1px 1px 0px rgb(39 70 131 / 20%);
  overflow: hidden;
}

.partner-ert-toolbar,
.partner-ert-filterbar,
.partner-ert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
}

.partner-ert-toolbar-actions,
.partner-ert-filterbar,
.partner-ert-footer-left,
.partner-ert-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-ert-btn,
.partner-ert-top-filter select,
.partner-ert-filterbar select,
.partner-ert-date input,
.partner-ert-footer select {
  height: 30px;
  border-radius: 4px;
  font-size: 12px;
}

.partner-ert-btn {
  border: 0;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.partner-ert-btn svg,
.partner-ert-date svg,
.partner-ert-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-ert-btn.is-blue {
  background: #2f7bf6;
}

.partner-ert-btn.is-green {
  background: #36c58f;
}

.partner-ert-top-filter select,
.partner-ert-filterbar select,
.partner-ert-date input,
.partner-ert-footer select {
  border: 1px solid #d7deea;
  background: #fff;
  color: #334155;
  padding: 0 10px;
}

.partner-ert-top-filter select {
  min-width: 160px;
}

.partner-ert-filterbar {
  justify-content: flex-start;
  border-top: 1px solid #e1e7f0;
  border-bottom: 1px solid #e1e7f0;
}

.partner-ert-filterbar label {
  display: inline-flex;
  align-items: center;
}

.partner-ert-filterbar select {
  min-width: 180px;
}

.partner-ert-filterbar label {
  display: inline-flex;
  align-items: center;
}

.partner-ert-filterbar select {
  min-width: 180px;
}

.partner-ert-filterbar .portal-tabulator-toolbar-slot {
  margin-left: auto;
}

.partner-ert-date {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.partner-ert-date input {
  min-width: 196px;
  padding-right: 34px;
}

.partner-ert-date svg {
  position: absolute;
  right: 10px;
  color: #2f7bf6;
  pointer-events: none;
}

.partner-ert-table-shell {
  display: block;
  width: 100%;
  position: relative;
}

.partner-ert-table-wrap {
  border: 0;
  border-radius: 0;
  min-height: 0;
  overflow: auto;
}

.partner-ert-table {
  min-width: 1560px;
  font-size: 11px;
}

.partner-ert-table-wrap .dt-container .dt-layout-row,
.partner-ert-table-wrap .dt-container .dt-layout-cell {
  padding: 0;
  margin: 0;
}

.partner-ert-table-wrap .dt-container .dt-search,
.partner-ert-table-wrap .dt-container .dt-length,
.partner-ert-table-wrap .dt-container .dt-info,
.partner-ert-table-wrap .dt-container .dt-paging {
  display: none;
}

.partner-ert-table-wrap table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order {
  display: none !important;
}

.partner-ert-table-wrap table.dataTable thead>tr>th.dt-orderable-asc::before,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-orderable-asc::after,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-orderable-desc::before,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-orderable-desc::after,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-ordering-asc::before,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-ordering-asc::after,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-ordering-desc::before,
.partner-ert-table-wrap table.dataTable thead>tr>th.dt-ordering-desc::after {
  display: none !important;
  content: none !important;
}

.partner-ert-table thead th,
.partner-ert-table-wrap table.dataTable thead>tr>th,
.partner-ert-table-wrap table.dataTable thead>tr>td {
  background: #f8fafc;
  color: #222b38;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
}

.partner-ert-table tbody td,
.partner-ert-table-wrap table.dataTable tbody td {
  color: #353f4f;
  vertical-align: middle;
  font-size: 12px;
  padding: 3px 10px;
  line-height: 1.35;
  background: #fff;
}

.partner-ert-check {
  width: 34px;
  text-align: center;
}

.partner-ert-check input {
  width: 16px;
  height: 16px;
}

.partner-ert-table thead th:not(.partner-ert-check) {
  position: relative;
  padding-right: 10px;
}

.partner-ert-table thead th[data-col-key="ert-id"],
.partner-ert-table-wrap table.dataTable thead>tr>th[data-col-key="ert-id"] {
  min-width: 88px;
}

.partner-ert-th-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.partner-ert-th-label {
  display: inline-block;
}

.partner-ert-sort-icon {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 0;
  flex: 0 0 10px;
  pointer-events: none;
}

.partner-ert-sort-icon::before {
  content: "";
  position: absolute;
  inset: 2px 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #b6c1d0;
}

.partner-ert-table thead th.sort-asc .partner-ert-sort-icon::before {
  border-top: 0;
  border-bottom: 5px solid #6c7a90;
}

.partner-ert-table thead th.sort-desc .partner-ert-sort-icon::before {
  border-top: 5px solid #6c7a90;
}

.partner-ert-level-cell {
  font-weight: 400;
  white-space: nowrap;
}

.partner-ert-level-cell.warning {
  background: #fff7db;
  color: #9b6a17;
}

.partner-ert-level-cell.notice {
  background: #d8edf9;
  color: #1f6897;
}

.partner-ert-table tbody tr:hover td,
.partner-ert-table-wrap table.dataTable tbody tr:hover td {
  background: #f8fafc;
}

.partner-ert-table tbody tr:hover .partner-ert-level-cell.warning,
.partner-ert-table-wrap table.dataTable tbody tr:hover .partner-ert-level-cell.warning {
  background: #f7efd0;
}

.partner-ert-table tbody tr:hover .partner-ert-level-cell.notice,
.partner-ert-table-wrap table.dataTable tbody tr:hover .partner-ert-level-cell.notice {
  background: #cce6f6;
}

.partner-ert-type,
.partner-ert-content {
  max-width: 0;
}

.partner-ert-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.partner-ert-content {
  min-width: 380px;
  max-width: 380px;
  line-height: 1.45;
}

.partner-ert-actions {
  display: grid;
  grid-template-columns: repeat(5, 20px);
  align-items: center;
  min-height: 100%;
  gap: 10px;
}

.partner-ert-actions button {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.partner-ert-action-slot {
  display: block;
  width: 20px;
  height: 20px;
}

.partner-ert-actions .is-green {
  color: #38c99d;
}

.partner-ert-actions .is-blue {
  color: #2da4ee;
}

.partner-ert-actions .is-muted {
  color: #cfd4dd;
}

.partner-ert-actions .is-teal {
  color: #43d1b2;
}

.partner-ert-actions .is-light {
  color: #cfd4dd;
}

.partner-ert-actions .is-active.is-muted {
  color: #7d8798;
}

.partner-ert-actions .is-active.is-teal {
  color: #1eb89d;
}

.partner-ert-table tbody tr:hover td.managed-col-fixed-start,
.partner-ert-table tbody tr:hover td.managed-col-fixed-start-secondary,
.partner-ert-table tbody tr:hover td.managed-col-fixed-end,
.partner-ert-table tbody tr:hover td.managed-col-fixed-end-secondary,
.partner-ert-table-wrap table.dataTable tbody tr:hover td.managed-col-fixed-start,
.partner-ert-table-wrap table.dataTable tbody tr:hover td.managed-col-fixed-start-secondary,
.partner-ert-table-wrap table.dataTable tbody tr:hover td.managed-col-fixed-end,
.partner-ert-table-wrap table.dataTable tbody tr:hover td.managed-col-fixed-end-secondary {
  background: #f8fafc;
}

.partner-ert-columns-rail {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #dfe6f1;
  background: #fbfcfe;
  color: #2c3441;
  font-size: 12px;
  gap: 8px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
  position: relative;
  z-index: 7;
}

.partner-ert-columns-rail svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
}

.partner-ert-columns-panel {
  position: absolute;
  top: 0;
  right: 34px;
  bottom: 0;
  width: 420px;
  max-width: min(420px, 86vw);
  background: #fff;
  border-left: 1px solid #dfe6f1;
  box-shadow: -12px 0 24px rgba(18, 35, 64, 0.08);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 6;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.partner-ert-columns-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.partner-ert-columns-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #dfe6f1;
}

.partner-ert-columns-collapse {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: #8f98a6;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.partner-ert-columns-search {
  flex: 1 1 auto;
}

.partner-ert-columns-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #bfc9d8;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13px;
  color: #334155;
}

.partner-ert-columns-list {
  overflow: auto;
  padding: 10px 0;
}

.partner-ert-column-option {
  display: grid;
  grid-template-columns: 22px 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  color: #1f2937;
  font-size: 15px;
}

.partner-ert-column-option input {
  width: 18px;
  height: 18px;
  accent-color: #2f7bf6;
}

.partner-ert-column-grip {
  color: #495466;
  font-size: 18px;
  line-height: 1;
}

.partner-ert-column-option.is-hidden {
  display: none;
}

.partner-ert-footer {
  border-top: 1px solid #e1e7f0;
  color: #364152;
  font-size: 12px;
}

.partner-ert-footer-left label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.partner-ert-footer-left>span,
.partner-ert-footer-right,
.partner-ert-footer-right span {
  font-size: 12px;
}

.partner-ert-footer select {
  font-size: 12px;
}

.partner-ert-footer-right button {
  border: 0;
  background: transparent;
  color: #3b4453;
  font-size: 22px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.partner-ert-footer strong {
  color: #202833;
}

.partner-ert-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 35, 46, 0.42);
  display: none;
  place-items: center;
  z-index: 380;
}

.partner-ert-modal.open {
  display: grid;
}

.partner-ert-dialog {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.partner-ert-upload-dialog {
  width: min(560px, 92vw);
}

.partner-ert-add-dialog {
  width: min(600px, 92vw);
}

.partner-ert-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid #e5eaf2;
}

.partner-ert-dialog-head h3 {
  margin: 0;
  color: #20242c;
  font-size: 20px;
}

.partner-ert-dialog-close {
  border: 0;
  background: transparent;
  color: #20242c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.partner-ert-dialog-body,
.partner-ert-form {
  padding: 18px 20px 20px;
}

.partner-ert-upload-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.partner-ert-upload-label {
  color: #384252;
  font-size: 15px;
  padding-top: 12px;
}

.partner-ert-upload-columns {
  margin: 0;
  padding-left: 22px;
  color: #2f3745;
  line-height: 1.8;
}

.partner-ert-upload-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
}

.partner-ert-field-inline span,
.partner-ert-form-row>span {
  color: #384252;
  font-size: 14px;
}

.partner-ert-field-inline b,
.partner-ert-form-row b {
  color: #ff4d4f;
}

.partner-ert-upload-actions {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.partner-ert-file-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  background: #2f7bf6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.partner-ert-file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.partner-ert-file-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-ert-upload-actions small {
  color: #7c8798;
  font-size: 12px;
  font-style: italic;
}

.partner-ert-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.partner-ert-cancel-btn,
.partner-ert-submit-btn {
  min-width: 72px;
  height: 34px;
  border-radius: 4px;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.partner-ert-cancel-btn {
  background: #d9dde5;
  color: #323a49;
  cursor: pointer;
}

.partner-ert-submit-btn {
  background: #eceff4;
  color: #a7afbb;
  cursor: default;
}

.partner-ert-form-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.partner-ert-form-row select,
.partner-ert-form-row textarea {
  width: 100%;
  border: 1px solid #ccd5e2;
  border-radius: 3px;
  font-size: 13px;
  color: #2d3748;
  background: #fff;
}

.partner-ert-form-row select {
  height: 34px;
  padding: 0 10px;
}

.partner-ert-form-row textarea {
  min-height: 90px;
  padding: 10px;
  resize: none;
}

.partner-ert-form-row.is-textarea {
  align-items: start;
}

.partner-ert-form-row.is-textarea>span {
  padding-top: 34px;
}

.partner-ert-submit-btn.is-enabled {
  background: #2f7bf6;
  color: #fff;
  cursor: pointer;
}

.partner-ert-action-body {
  max-height: min(60vh, 540px);
  overflow: auto;
}

.partner-ert-action-copy {
  margin: 0 0 12px;
  color: #425066;
  font-size: 13px;
  line-height: 1.55;
}

.partner-ert-action-grid {
  display: grid;
  gap: 12px;
}

.partner-ert-action-grid p,
.partner-ert-action-grid ul {
  margin: 0;
}

.partner-ert-detail-list,
.partner-ert-history-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
}

.partner-ert-history-list li+li {
  margin-top: 6px;
}

.partner-ert-history-list strong {
  color: #1f2a37;
}

@media (max-width: 1080px) {

  .fi-mode-grid,
  .fi-history-grid,
  .fi-repository-metrics,
  .fi-intelligence-grid {
    grid-template-columns: 1fr;
  }

  .fi-dashboard-sidecards {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }

  .users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-toolbar-left {
    flex-wrap: wrap;
    align-items: center;
  }

  .users-toolbar-filter {
    width: 100%;
  }

  .users-search {
    width: 100%;
  }

  .users-table-shell {
    grid-template-columns: 1fr;
  }

  .users-columns-rail {
    display: none;
  }

  .users-columns-panel {
    right: 0;
    width: min(420px, 100%);
  }

  .users-footer,
  .users-footer-left,
  .users-footer-right {
    flex-wrap: wrap;
  }

  .partner-ert-toolbar,
  .partner-ert-filterbar,
  .partner-ert-footer,
  .partner-ert-toolbar-actions,
  .partner-ert-footer-left,
  .partner-ert-footer-right {
    flex-wrap: wrap;
  }

  .partner-ert-table-shell {
    grid-template-columns: 1fr;
  }

  .partner-ert-columns-rail {
    display: none;
  }

  .partner-ert-columns-panel {
    right: 0;
    width: min(420px, 100%);
  }

  .partner-ert-upload-grid,
  .partner-ert-upload-row,
  .partner-ert-form-row {
    grid-template-columns: 1fr;
  }

  .partner-ert-form-row.is-textarea>span {
    padding-top: 0;
  }
}

.cv-section-grid,
.cv-report-grid,
.cv-troubleshoot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cv-dashboard-row {
  align-items: stretch;
}

.cv-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cv-rail-list,
.cv-alert-feed {
  display: grid;
  gap: 10px;
}

.cv-section-tile,
.cv-report-card,
.cv-trouble-card {
  border: 1px solid #dce6f5;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.cv-action-tile,
.cv-report-link,
.cv-trouble-link {
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.cv-action-tile:hover,
.cv-report-link:hover,
.cv-trouble-link:hover {
  box-shadow: 0 8px 18px rgba(24, 57, 127, .08);
  border-color: #cfe0fb;
}

.cv-section-tile h4,
.cv-trouble-head h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #25477a;
}

.cv-section-tile p,
.cv-report-card p,
.cv-trouble-card p {
  margin: 0;
  color: #586883;
  font-size: 13px;
  line-height: 1.45;
}

.cv-action-tile span {
  display: inline-block;
  margin-top: 12px;
  color: #2f7bf6;
  font-size: 12px;
  font-weight: 700;
}

.cv-report-card small {
  display: block;
  color: #6480ad;
  font-size: 11px;
}

.cv-report-card strong {
  display: block;
  margin: 5px 0 6px;
  color: #25477a;
  font-size: 24px;
  line-height: 1;
}

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

.cv-trouble-head span {
  border-radius: 999px;
  background: #edf4ff;
  border: 1px solid #d7e5fb;
  color: #3d5f93;
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
}

.cv-alert-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f8;
}

.cv-alert-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cv-alert-item span {
  color: #5c6c89;
  font-size: 12px;
  font-weight: 700;
}

.cv-alert-item strong {
  display: block;
  color: #27406f;
  font-size: 13px;
}

.cv-alert-item em {
  display: inline-block;
  margin-top: 4px;
  font-style: normal;
  color: #5772a3;
  font-size: 11px;
}

.cv-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  gap: 24px;
  padding: 34px 34px 28px;
  border-radius: 28px;
  background: transparent;
  border: 0;
  overflow: hidden;
  position: relative;
  box-shadow: none;
}

.cv-about-hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  right: 22%;
  top: -200px;
  background: rgba(255, 255, 255, .42);
  filter: blur(2px);
}

.cv-about-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  right: -100px;
  bottom: -220px;
  background: rgba(111, 175, 255, .18);
}

.cv-about-grid {
  background: transparent;
}

.cv-about-card {
  border-color: rgba(197, 218, 243, .9);
}

.cv-about-copy {
  position: relative;
  z-index: 2;
  padding: 12px 0 6px;
}

.cv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #173860;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cv-eyebrow::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, transparent 6px, #1f3d67 6px 8px, transparent 8px),
    radial-gradient(circle at 68% 34%, #1f3d67 0 2px, transparent 2px);
  border: 2px solid #1f3d67;
  box-sizing: border-box;
}

.cv-about-title {
  margin: 18px 0 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -.04em;
  color: #0f1220;
  max-width: 650px;
}

.cv-about-summary {
  margin: 22px 0 0;
  max-width: 650px;
  color: #334867;
  font-size: 18px;
  line-height: 1.55;
}

.cv-about-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 28px;
  max-width: 650px;
}

.cv-about-actions::before,
.cv-about-actions::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 45, 70, 0), rgba(31, 45, 70, .26));
}

.cv-about-actions::after {
  background: linear-gradient(90deg, rgba(31, 45, 70, .26), rgba(31, 45, 70, 0));
}

.cv-about-actions .filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 52px;
  padding-inline: 20px;
  border-radius: 16px;
  font-size: 15px;
  box-shadow: none;
  text-align: center;
}

.cv-about-actions .filter-pill.is-active {
  background: #1f3f8a;
  color: #eef4ff;
}

.cv-about-actions .filter-pill.is-active:hover {
  background: #173472;
  color: #ffffff;
}

.cv-about-actions .filter-pill:not(.is-active) {
  background: #d9ebff;
  color: #28518e;
}

.cv-about-actions .filter-pill:not(.is-active):hover {
  background: #c7e1ff;
  color: #1f4a83;
}

.cv-about-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  max-width: 480px;
  color: #7d92b4;
}

.cv-about-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cv-about-note-mark {
  display: none;
}

.cv-about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 650px;
}

.cv-about-metric {
  padding: 8px 4px 6px 0;
}

.cv-about-metric-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
}

.cv-about-metric-icon {
  width: 52px;
  height: 30px;
  display: grid;
  place-items: start center;
  background: transparent;
  align-self: start;
  margin-top: 1px;
}

.cv-about-metric-icon svg {
  width: 30px;
  height: 30px;
  stroke: #22508d;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv-about-metric small {
  display: block;
  color: #5f77a0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cv-about-metric strong {
  display: block;
  margin-top: 7px;
  color: #193e76;
  font-size: 22px;
  line-height: 1.14;
}

.cv-about-metric-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-left: 56px;
}

.cv-about-metric-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  color: #576b8b;
  font-size: 12px;
  line-height: 1.45;
}

.cv-about-metric-item-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.cv-about-metric-item-icon svg {
  width: 14px;
  height: 14px;
  stroke: #5a86c4;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv-about-graphic {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .28), transparent 22%),
    radial-gradient(circle at 20% 24%, rgba(102, 183, 255, .16), transparent 22%),
    linear-gradient(180deg, rgba(157, 205, 255, .22) 0%, rgba(90, 158, 234, .14) 100%);
  overflow: hidden;
  z-index: 2;
}

.cv-about-graphic::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  right: 112px;
  top: -80px;
  background: rgba(255, 255, 255, .26);
}

.cv-about-graphic::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  right: -70px;
  bottom: -150px;
  background: rgba(150, 200, 255, .24);
}

.cv-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  contain: strict;
  opacity: .58;
}

.cv-grid-bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: none;
  transform: translate3d(0, 0, 0);
}

.cv-grid-bg::after {
  content: "";
  position: absolute;
  inset: -12%;
  background: none;
}

.cv-flow-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(69, 124, 214, .62);
  background: rgba(39, 96, 190, .28);
  box-shadow: 0 0 14px rgba(32, 78, 160, .22);
  transform: translate3d(0, 0, 0) scale(var(--s, 1));
  animation:
    node-pulse calc(4.8s + var(--t, 0s)) ease-in-out infinite,
    node-drift calc(56s + var(--t, 0s)) linear infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
  opacity: .65;
}

.cv-flow-node::before,
.cv-flow-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: .52;
}

.cv-flow-node::before {
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 127, 214, .56), transparent);
}

.cv-flow-node::after {
  width: 1px;
  height: 100vh;
  background: linear-gradient(180deg, transparent, rgba(74, 127, 214, .56), transparent);
}

.cv-core-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 112px;
  height: 112px;
  margin-left: -56px;
  margin-top: -56px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f7bf6, #6ea4ec);
  box-shadow: 0 18px 34px rgba(9, 25, 55, .32);
  display: grid;
  place-items: center;
  animation: cvCorePulse 2.6s ease-in-out infinite;
}

.cv-core-icon svg {
  width: 52px;
  height: 52px;
  stroke: #eef5ff;
  stroke-width: 2.2;
  fill: none;
}

.cv-timeline-arc {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -24px;
  z-index: 2;
  pointer-events: none;
  opacity: .88;
}

.cv-timeline-arc img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .96;
}

.cv-timeline-point {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.cv-timeline-point.point-left {
  left: 16.8%;
  bottom: 60px;
}

.cv-timeline-point.point-center {
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
}

.cv-timeline-point.point-right {
  right: 15.2%;
  bottom: 62px;
}

.cv-timeline-point.point-below {
  grid-template-areas:
    "dot"
    "connector"
    "card";
}

.cv-timeline-point.point-above {
  grid-template-areas:
    "card"
    "connector"
    "dot";
}

.cv-timeline-point.point-above .cv-timeline-card {
  order: 1;
}

.cv-timeline-point.point-above .cv-timeline-connector {
  order: 2;
}

.cv-timeline-point.point-above .cv-timeline-dot {
  order: 3;
}

.cv-timeline-point.point-below .cv-timeline-dot {
  order: 1;
}

.cv-timeline-point.point-below .cv-timeline-connector {
  order: 2;
}

.cv-timeline-point.point-below .cv-timeline-card {
  order: 3;
}

.cv-timeline-connector {
  display: none;
}

.cv-timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
  animation: cvTimelinePulse 2.4s ease-in-out infinite;
}

.cv-timeline-card {
  width: 118px;
  min-width: 118px;
  min-height: 106px;
  border-radius: 24px;
  padding: 14px 12px;
  background: rgb(9 24 49 / 89%);
  border: 1px solid rgba(221, 236, 255, .1);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(5, 15, 31, .14);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  transition: transform .18s ease;
  pointer-events: auto;
}

.cv-timeline-card:hover {
  transform: scale(1.13);
}

.cv-timeline-card.card-left {
  width: 126px;
  min-width: 126px;
  min-height: 104px;
}

.cv-timeline-card.card-center {
  width: 138px;
  min-width: 138px;
  min-height: 112px;
}

.cv-timeline-card.card-right {
  width: 130px;
  min-width: 130px;
  min-height: 106px;
}

.cv-timeline-card strong {
  display: block;
  color: #f2f7ff;
  font-size: 11px;
}

.cv-timeline-card span {
  display: block;
  margin-top: 2px;
  color: #c7d7ef;
  font-size: 9px;
  line-height: 1.25;
}

.cv-about-visual-circle {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(215, 233, 255, .7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
  z-index: 2;
}

.cv-about-visual-fill {
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  background: #bad3de;
  overflow: hidden;
}

.cv-about-visual-timeline {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 146%;
  height: 146%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: .42;
  filter: drop-shadow(0 10px 18px rgba(16, 41, 84, .16));
}

.cv-about-visual-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(16, 36, 72, .08) 0%, rgba(16, 36, 72, 0) 28%),
    radial-gradient(circle at 70% 60%, rgba(18, 54, 112, .22), transparent 26%);
}

.cv-about-visual-mark {
  position: absolute;
  width: 250px;
  height: 250px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(21, 49, 95, .18));
  opacity: .98;
  z-index: 2;
}

.cv-about-visual-chip {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #385074;
  font-size: 12px;
  line-height: 1;
  padding: 7px 11px;
  box-shadow: 0 10px 24px rgba(34, 73, 135, .12);
}

.cv-about-visual-chip.chip-top {
  left: 40px;
  top: 112px;
}

.cv-about-visual-chip.chip-mid {
  right: 36px;
  top: 174px;
}

.cv-about-visual-chip.chip-bottom {
  left: 74px;
  bottom: 96px;
}

.cv-dialog-card {
  position: absolute;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 48px rgba(38, 81, 149, .16);
  z-index: 4;
}

.cv-dialog-top {
  left: 22px;
  top: 60px;
  width: 258px;
  overflow: hidden;
}

.cv-dialog-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #efeaff, #eceefe);
  color: #6d65b2;
  font-size: 12px;
}

.cv-dialog-banner strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-dialog-badge {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #726bb4;
}

.cv-dialog-body {
  padding: 14px;
}

.cv-dialog-title-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
}

.cv-dialog-title-row img {
  width: 28px;
  height: 28px;
}

.cv-dialog-title-row strong {
  display: block;
  color: #152e54;
  font-size: 14px;
}

.cv-dialog-title-row span {
  display: block;
  color: #7083a0;
  font-size: 11px;
  margin-top: 2px;
}

.cv-dialog-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-top: 14px;
}

.cv-dialog-stats span {
  display: block;
}

.cv-dialog-stats label {
  display: block;
  color: #7c8faa;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cv-dialog-stats strong {
  display: block;
  margin-top: 4px;
  color: #172f54;
  font-size: 16px;
}

.cv-dialog-bar {
  height: 8px;
  border-radius: 999px;
  background: #edf2fb;
  margin-top: 16px;
  overflow: hidden;
}

.cv-dialog-bar i {
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, #f8b15a, #ffcf8f);
}

.cv-dialog-bottom {
  right: 46px;
  bottom: 184px;
  width: 260px;
  padding: 14px;
}

.cv-dialog-panel {
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfbff, #f6f7ff);
  border: 1px solid #ecefff;
  padding: 14px;
}

.cv-dialog-minihead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7e83ba;
  font-size: 11px;
}

.cv-dialog-minihead b {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ece9ff, #fff7db);
  color: #4b4c71;
  font-size: 14px;
}

.cv-dialog-panel strong {
  display: block;
  margin-top: 10px;
  color: #152e54;
  font-size: 22px;
  line-height: 1.1;
}

.cv-dialog-panel p {
  margin: 8px 0 0;
  color: #6f7f98;
  font-size: 12px;
  line-height: 1.5;
}

.cv-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 2px 2px;
  color: #6b7b97;
  font-size: 11px;
}

.cv-dialog-footer em {
  font-style: normal;
  color: #6e68d1;
  font-weight: 700;
}

.cv-about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.cv-about-card {
  border: 1px solid #dce6f5;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 250, 255, .96));
  padding: 20px;
  box-shadow: 0 14px 32px rgba(73, 108, 159, .08);
}

.cv-about-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cv-about-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #edf4ff, #dceaff);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.cv-about-icon svg {
  width: 20px;
  height: 20px;
  stroke: #2f7bf6;
  stroke-width: 2;
  fill: none;
}

.cv-about-card-head .cv-about-icon {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.cv-about-card h3 {
  margin: 0;
  color: #23467e;
  font-size: 16px;
  line-height: 1.2;
}

.cv-about-card p {
  margin: 0;
  color: #5a6c88;
  font-size: 13px;
  line-height: 1.5;
}

@keyframes cvCorePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 34px rgba(9, 25, 55, .32);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 22px 42px rgba(36, 92, 180, .34);
  }
}

@keyframes cvTimelinePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(63, 157, 87, .14);
  }

  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 7px rgba(63, 157, 87, .08);
  }
}

@keyframes cvNodePulse {

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

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes cvSearchSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes cvResultsReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes cvMarkerBlink {

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

  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

body[data-page="consumer-velocity-overview"] .topbar-left h1,
body[data-page="consumer-velocity-integration"] .topbar-left h1,
body[data-page="consumer-velocity-about"] .topbar-left h1,
body[data-page="consumer-velocity-logs"] .topbar-left h1,
body[data-page="merchant-discovery-views"] .topbar-left h1 {
  max-width: 640px;
}

.merchant-about-page {
  gap: 24px;
}

.merchant-about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  gap: 36px;
  align-items: center;
  padding: 18px 34px 34px;
  border-radius: 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.merchant-about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.merchant-about-copy,
.merchant-about-visual {
  position: relative;
  z-index: 1;
}

.merchant-about-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8b5e31;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.merchant-about-eyebrow-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(176, 118, 58, 0.12);
}

.merchant-about-eyebrow-icon svg {
  width: 18px;
  height: 18px;
  stroke: #9a6330;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.merchant-about-title {
  margin: 18px 0 0;
  max-width: 620px;
  color: #1e2432;
  font-size: clamp(34px, 4vw, 54px);
  line-height: .98;
  letter-spacing: -.05em;
}

.merchant-about-summary {
  margin: 20px 0 0;
  max-width: 620px;
  color: #596272;
  font-size: 18px;
  line-height: 1.6;
}

.merchant-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.merchant-about-button {
  min-width: 170px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.merchant-about-button:hover {
  transform: translateY(-1px);
}

.merchant-about-button.is-primary {
  background: #2f6cb3;
  color: #fff;
}

.merchant-about-button.is-primary:hover {
  background: #245c9d;
}

.merchant-about-button.is-secondary {
  background: #efe6da;
  color: #6a5133;
}

.merchant-about-button.is-secondary:hover {
  background: #e5d8c7;
}

.merchant-about-visual {
  min-height: 520px;
  display: grid;
  align-items: center;
}

.merchant-about-stage {
  position: relative;
  min-height: 580px;
  border-radius: 32px;
  overflow: hidden;
  background: transparent;
}

.merchant-about-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.merchant-about-orb-one {
  width: 320px;
  height: 320px;
  right: -60px;
  top: -60px;
  background: rgba(255, 205, 147, 0.24);
}

.merchant-about-orb-two {
  width: 220px;
  height: 220px;
  left: -56px;
  bottom: -40px;
  background: rgba(255, 255, 255, .08);
}

.merchant-about-browser {
  position: absolute;
  inset: 48px 38px 72px 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 40px rgba(10, 17, 31, 0.26);
  overflow: hidden;
}

.merchant-about-browser-bar {
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #062254;
  color: #e5ebf2;
  font-size: 13px;
}

.merchant-about-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(229, 235, 242, .4);
}

.merchant-about-browser-bar b {
  margin-left: 8px;
  font-weight: 700;
}

.merchant-about-browser-body {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.merchant-about-descriptor {
  padding: 18px 20px;
  border-radius: 20px;
  background: #f1f3f6;
}

.merchant-about-descriptor label,
.merchant-about-signal-card small {
  display: block;
  color: #6f7c8e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.merchant-about-signal-card small {
  color: rgba(255, 255, 255, .82);
}

.merchant-about-descriptor strong {
  display: block;
  margin-top: 7px;
  color: #2b3240;
  font-size: 24px;
  line-height: 1.1;
}

.merchant-about-descriptor small {
  display: block;
  margin-top: 8px;
  color: #6e7480;
  font-size: 13px;
}

.merchant-about-merchant-card {
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #d7dee8;
}

.merchant-about-merchant-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.merchant-about-merchant-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef2f7;
}

.merchant-about-merchant-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #5c6c84;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.merchant-about-merchant-head strong {
  display: block;
  color: #222d3c;
  font-size: 18px;
}

.merchant-about-merchant-head small {
  display: block;
  margin-top: 3px;
  color: #7a8595;
  font-size: 13px;
}

.merchant-about-merchant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.merchant-about-merchant-grid span {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f1f3f6;
}

.merchant-about-merchant-grid label {
  color: #7d8999;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.merchant-about-merchant-grid b {
  color: #3e4f65;
  font-size: 14px;
}

.merchant-about-hotspot {
  position: absolute;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.merchant-about-hotspot:hover,
.merchant-about-hotspot:focus-visible {
  z-index: 8;
}

.merchant-about-hotspot-dot {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #3a7ed8;
  box-shadow: 0 0 0 5px rgba(58, 126, 216, 0.16);
  animation: merchantHotspotPulse 2.1s ease-in-out infinite;
}

.merchant-about-hotspot-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(58, 126, 216, 0.34);
  animation: merchantHotspotRing 2.1s ease-in-out infinite;
}

.merchant-about-hotspot-card {
  position: absolute;
  min-width: 218px;
  max-width: 240px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(19, 28, 43, 0.88);
  color: #f1f5fb;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(7, 12, 23, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9;
}

.merchant-about-hotspot-card small {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.merchant-about-hotspot-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.merchant-about-hotspot-card span {
  display: block;
  margin-top: 8px;
  color: rgba(237, 242, 250, .78);
  font-size: 13px;
  line-height: 1.5;
}

.merchant-about-hotspot:hover .merchant-about-hotspot-card,
.merchant-about-hotspot:focus-visible .merchant-about-hotspot-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.merchant-about-hotspot:focus-visible {
  outline: none;
}

.hotspot-left {
  left: 28px;
  bottom: 84px;
}

.hotspot-left .merchant-about-hotspot-card {
  left: 22px;
  bottom: -18px;
}

.hotspot-right {
  right: 26px;
  top: 174px;
}

.hotspot-right .merchant-about-hotspot-card {
  right: 22px;
  top: -18px;
}

.hotspot-top {
  left: 212px;
  top: 110px;
}

.hotspot-top .merchant-about-hotspot-card {
  left: -18px;
  top: 20px;
}

.hotspot-center {
  left: 262px;
  top: 236px;
}

.hotspot-center .merchant-about-hotspot-card {
  left: 20px;
  top: -18px;
}

.hotspot-bottom {
  right: 118px;
  bottom: 78px;
}

.hotspot-bottom .merchant-about-hotspot-card {
  right: -10px;
  bottom: 20px;
}

.merchant-about-pill {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.9);
  color: #f5f7fb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(30, 56, 95, 0.16);
}

.merchant-about-pill-top {
  top: 24px;
  right: 30px;
}

.merchant-about-pill-bottom {
  left: 28px;
  bottom: 24px;
}

.merchant-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "teams story1 story2 story3"
    "teams merged merged merged";
  gap: 18px;
}

.merchant-story-card {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #ece4da;
  box-shadow: 0 18px 40px rgba(70, 62, 49, 0.06);
}

.merchant-story-card-dark {
  background: linear-gradient(180deg, #233246, #182231);
  border-color: rgba(18, 29, 42, 0.4);
  box-shadow: 0 24px 48px rgba(24, 34, 49, 0.22);
  color: #eef4fb;
  grid-area: teams;
}

.merchant-feature-grid>.merchant-story-card:nth-of-type(2) {
  grid-area: story1;
}

.merchant-feature-grid>.merchant-story-card:nth-of-type(3) {
  grid-area: story2;
}

.merchant-feature-grid>.merchant-story-card:nth-of-type(4) {
  grid-area: story3;
}

.merchant-story-card-dark h3 {
  margin: 16px 0 0;
  font-size: 28px;
  line-height: 1.08;
}

.merchant-story-card-dark p {
  margin: 16px 0 0;
  color: rgba(238, 244, 251, .76);
  font-size: 15px;
  line-height: 1.7;
}

.merchant-story-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}

.merchant-story-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}

.merchant-story-icon-search {
  background: #fdf0de;
}

.merchant-story-icon-clock {
  background: #f5ede4;
}

.merchant-story-icon-network {
  background: #f7eee6;
}

.merchant-story-icon svg,
.merchant-story-item-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.merchant-story-icon-search svg,
.merchant-story-item:nth-child(1) .merchant-story-item-icon svg {
  stroke: #c27f2f;
  stroke-width: 1.9;
}

.merchant-story-icon-clock svg,
.merchant-story-item:nth-child(2) .merchant-story-item-icon svg {
  stroke: #9a6f43;
  stroke-width: 1.9;
}

.merchant-story-icon-network svg,
.merchant-story-item:nth-child(3) .merchant-story-item-icon svg {
  stroke: #b2763a;
  stroke-width: 1.9;
}

.merchant-story-head small {
  display: block;
  color: #8e6f4b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.merchant-story-head strong {
  display: block;
  margin-top: 8px;
  color: #26313f;
  font-size: 24px;
  line-height: 1.14;
}

.merchant-story-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.merchant-story-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #5b6473;
  font-size: 14px;
  line-height: 1.5;
}

.merchant-story-item-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.merchant-value-panel {
  padding: 28px;
  border-radius: 24px;
  min-height: 100%;
}

.merchant-value-panel-dark {
  background: linear-gradient(180deg, #233246, #182231);
  color: #eef4fb;
}

.merchant-value-eyebrow {
  margin: 0;
  color: rgba(238, 244, 251, .68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.merchant-value-panel-dark h3 {
  margin: 16px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

.merchant-value-panel-dark p {
  margin: 16px 0 0;
  color: rgba(238, 244, 251, .76);
  font-size: 15px;
  line-height: 1.7;
}

.merchant-workflow-steps {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.merchant-workflow-steps span {
  position: relative;
  padding: 12px 14px 12px 36px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
}

.merchant-workflow-steps span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #efbf80;
}

.merchant-value-card {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #ece4da;
}

.merchant-value-card-merged {
  grid-area: merged;
  display: grid;
  gap: 20px;
  align-content: start;
}

.merchant-value-card-intro small {
  display: block;
  color: #8e6f4b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.merchant-value-card-intro h3 {
  margin: 8px 0 0;
  color: #283243;
  font-size: 26px;
  line-height: 1.15;
}

.merchant-value-merged-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.merchant-value-merged-item {
  padding: 8px 0;
}

.merchant-value-merged-item h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #283243;
  font-size: 18px;
  line-height: 1.2;
}

.merchant-value-merged-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.merchant-value-merged-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #7757c5;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.merchant-value-merged-item p {
  margin: 10px 0 0;
  color: #617085;
  font-size: 14px;
  line-height: 1.65;
}

.merchant-value-card h3 {
  margin: 0;
  color: #283243;
  font-size: 20px;
  line-height: 1.2;
}

.merchant-value-card p {
  margin: 12px 0 0;
  color: #617085;
  font-size: 14px;
  line-height: 1.65;
}

@keyframes merchantHotspotPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(58, 126, 216, 0.16);
  }

  50% {
    transform: scale(1.14);
    box-shadow: 0 0 0 8px rgba(58, 126, 216, 0.12);
  }
}

@keyframes merchantHotspotRing {

  0%,
  100% {
    transform: scale(.9);
    opacity: .7;
  }

  50% {
    transform: scale(1.1);
    opacity: .25;
  }
}

@media (max-width: 1180px) {
  .merchant-about-hero {
    grid-template-columns: 1fr;
  }

  .merchant-feature-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "teams"
      "story1"
      "story2"
      "story3"
      "merged";
  }

  .merchant-value-merged-grid {
    grid-template-columns: 1fr;
  }

  .merchant-about-visual {
    min-height: 480px;
  }

  .merchant-about-stage {
    min-height: 580px;
  }
}

@media (max-width: 760px) {
  .merchant-about-hero {
    padding: 24px 20px;
    border-radius: 22px;
    gap: 24px;
    overflow: visible;
  }

  .merchant-about-title {
    font-size: 40px;
    max-width: 100%;
  }

  .merchant-about-summary {
    font-size: 16px;
    max-width: 100%;
  }

  .merchant-about-browser {
    inset: 26px 16px 60px 16px;
    border-radius: 22px;
  }

  .merchant-about-visual {
    min-height: 430px;
    display: flex;
    justify-content: center;
    overflow: visible;
  }

  .merchant-about-stage {
    width: 520px;
    min-height: 580px;
    transform: scale(0.78);
    transform-origin: top center;
  }

  .merchant-about-browser-body {
    padding: 18px;
  }

  .merchant-about-merchant-grid {
    grid-template-columns: 1fr;
  }

  .merchant-about-hotspot-card {
    min-width: 190px;
    max-width: 190px;
    padding: 14px 15px;
  }

  .hotspot-left {
    left: 10px;
    bottom: 76px;
  }

  .hotspot-right {
    right: 10px;
    top: 144px;
  }

  .hotspot-top {
    left: 164px;
    top: 92px;
  }

  .hotspot-center {
    left: 204px;
    top: 214px;
  }

  .hotspot-bottom {
    right: 92px;
    bottom: 70px;
  }

  .merchant-about-pill-top {
    right: 16px;
  }

  .merchant-about-pill-bottom {
    left: 16px;
  }
}

@media (max-width: 520px) {
  .merchant-about-visual {
    min-height: 340px;
  }

  .merchant-about-stage {
    transform: scale(0.62);
  }
}

.login-page {
  margin: 0;
  min-height: 100vh;
  background: #e9eef8;
  color: #2b3674;
  display: grid;
  grid-template-rows: 1fr auto;
}

.login-shell {
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  max-height: 80vh;
  background: transparent;
  box-shadow: none;
  position: relative;
  padding-top: 0;
}

.login-left {
  display: grid;
  place-items: center;
  padding: 28px 36px;
  background: #e9eef8;
}

.login-card {
  width: min(360px, 100%);
  display: grid;
  gap: 10px;
}

.login-logo {
  width: 210px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 6px;
}

.login-card h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.06;
  color: #1b4e9f;
  font-weight: 700;
}

.login-sub {
  margin: 0 0 8px;
  color: #6d7f9f;
  font-size: 14px;
}

.login-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #4f5f7f;
  font-weight: 600;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: #2f3d5f;
  background: #ffffff !important;
  box-shadow: none;
}

.login-card input::placeholder {
  color: #9aa7bf;
}

.login-card .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: #6e7f9e;
  font-weight: 600;
  white-space: nowrap;
  flex-wrap: nowrap;
  grid-template-columns: none;
}

.login-remember input {
  width: 15px;
  height: 15px;
  accent-color: #2f7bf6;
}

.login-card button {
  border: 0;
  border-radius: 10px;
  background: #2f7bf6;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  height: 42px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: none;
}

.login-card button:hover {
  filter: brightness(1.04);
}

.login-divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px 0 4px;
}

.login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(193, 211, 244, 0.4);
}

.login-divider span {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f316a;
  background: #e9eef8;
}

.login-card .login-passkey-btn {
  border: 0;
  border-radius: 10px;
  background: #0e2f67;
  color: #eef5ff;
  font-size: 13px;
  font-weight: 700;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.login-card .login-passkey-btn svg {
  width: 16px;
  height: 16px;
  stroke: #d9e8ff;
  stroke-width: 2;
  fill: none;
}

.login-card .login-passkey-btn:hover {
  border-color: rgba(224, 236, 255, 0.72);
  background: rgba(17, 59, 127, 0.66);
}

.login-card .login-passkey-btn:disabled {
  opacity: .62;
  cursor: default;
}

.login-passkey-status {
  min-height: 16px;
  margin: 2px 0 0;
  color: #d8e7ff;
  font-size: 12px;
}

.login-passkey-status.error {
  color: #ffd0d0;
}

.login-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
}

.hint {
  margin: 4px 0 0;
  color: #76839d;
  font-size: 12px;
}

.login-right {
  position: relative;
  background: linear-gradient(155deg, #0e2f67 0%, #174c9f 46%, #286cc8 100%);
  overflow: hidden;
}

.login-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  contain: strict;
  opacity: .55;
}

.login-grid-bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(56, 189, 248, .08) 11% 11.25%, transparent 11.25% 100%),
    linear-gradient(0deg, transparent 0 15%, rgba(20, 184, 166, .06) 15% 15.2%, transparent 15.2% 100%);
  transform: translate3d(0, 0, 0);
}

.login-grid-bg::after {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(90deg, rgba(8, 17, 32, 0) 0%, rgba(8, 17, 32, .06) 40%, rgba(8, 17, 32, 0) 100%),
    linear-gradient(180deg, rgba(8, 17, 32, 0) 0%, rgba(8, 17, 32, .04) 50%, rgba(8, 17, 32, 0) 100%);
}

.login-flow-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(125, 211, 252, .5);
  background: rgba(56, 189, 248, .18);
  box-shadow: 0 0 14px rgba(56, 189, 248, .18);
  transform: translate3d(0, 0, 0) scale(var(--s, 1));
  animation:
    node-pulse calc(4.8s + var(--t, 0s)) ease-in-out infinite,
    node-drift calc(74s + var(--t, 0s)) linear infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
  opacity: .65;
}

.login-flow-node::before,
.login-flow-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: .52;
}

.login-flow-node::before {
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .5), transparent);
}

.login-flow-node::after {
  width: 1px;
  height: 100vh;
  background: linear-gradient(180deg, transparent, rgba(125, 211, 252, .5), transparent);
}

.login-flow-key {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(225, 240, 255, 0.92);
  text-shadow: 0 1px 6px rgba(7, 21, 44, 0.45);
  pointer-events: none;
}

.login-hero {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  color: #eff5ff;
  padding: 20px;
}

.login-hero img {
  width: 70px;
  height: 70px;
  filter: brightness(0) invert(1);
}

.login-hero h2 {
  margin: 0;
  font-size: 58px;
  line-height: 1;
  letter-spacing: .02em;
}

.login-hero p {
  margin: 0;
  font-size: 16px;
  color: rgba(238, 245, 255, 0.9);
}

.login-footer {
  width: min(980px, calc(100vw - 40px));
  margin: 8px auto 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #7b89a4;
  font-size: 12px;
}

.login-footer span {
  margin-right: auto;
}

.login-footer a {
  color: #6c7ea0;
}

.login-footer a:hover {
  color: #2f4d7d;
}

@keyframes node-pulse {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(calc(var(--s, 1) * .72));
    opacity: .35;
  }

  50% {
    transform: translate3d(0, 0, 0) scale(calc(var(--s, 1) * 1.4));
    opacity: .9;
  }
}

@keyframes node-drift {
  0% {
    translate: -130vw calc(var(--j, 34px) * 0);
  }

  10% {
    translate: -104vw calc(var(--j, 34px) * -1.35);
  }

  20% {
    translate: -78vw calc(var(--j, 34px) * 1.2);
  }

  30% {
    translate: -52vw calc(var(--j, 34px) * -1.05);
  }

  40% {
    translate: -26vw calc(var(--j, 34px) * 1.45);
  }

  50% {
    translate: 0vw calc(var(--j, 34px) * -1.15);
  }

  60% {
    translate: 26vw calc(var(--j, 34px) * 1.32);
  }

  70% {
    translate: 52vw calc(var(--j, 34px) * -1.22);
  }

  80% {
    translate: 78vw calc(var(--j, 34px) * 1.5);
  }

  90% {
    translate: 104vw calc(var(--j, 34px) * -1.1);
  }

  100% {
    translate: 130vw calc(var(--j, 34px) * 1.28);
  }
}

.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 21, 42, 0.35);
  display: none;
  place-items: center;
  z-index: 120;
}

.info-modal.open,
.info-modal.is-open {
  display: grid;
}

.info-dialog {
  width: min(520px, 90vw);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(18, 35, 64, 0.18);
  padding: 14px;
}

.shortcut-dialog {
  width: min(360px, 90vw);
}

.shortcut-picker {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.shortcut-choice {
  display: grid;
  grid-template-columns: 18px 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f7fe;
  color: #42536f;
  font-size: 13px;
  font-weight: 600;
  cursor: grab;
  transition: opacity .18s ease, background .18s ease, color .18s ease;
}

.shortcut-choice.is-dragging {
  opacity: .55;
}

.shortcut-choice input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #b8c5da;
  border-radius: 999px;
  background: #ffffff;
  position: relative;
  cursor: pointer;
}

.shortcut-choice input::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .18s ease, border-color .18s ease;
}

.shortcut-choice input:checked {
  background: #3147a6;
  border-color: #3147a6;
}

.shortcut-choice input:checked::after {
  inset: 2px 5px 4px 5px;
  border-color: #ffffff;
  transform: rotate(45deg) scale(1);
}

.shortcut-choice:not(:has(input:checked)),
.shortcut-choice.is-unchecked {
  background: #f7f9fd;
  color: #8391a8;
}

.shortcut-choice:not(:has(input:checked)) .shortcut-choice-icon svg,
.shortcut-choice:not(:has(input:checked)) .shortcut-choice-drag svg,
.shortcut-choice.is-unchecked .shortcut-choice-icon svg,
.shortcut-choice.is-unchecked .shortcut-choice-drag svg {
  stroke: #9aa8bf;
}

.shortcut-choice-drag svg,
.shortcut-choice-icon svg {
  width: 18px;
  height: 18px;
  stroke: #60748f;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shortcut-choice-label {
  min-width: 0;
}

.shortcut-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.shortcut-dialog-actions .btn-skip,
.shortcut-dialog-actions .btn-create {
  border: 0;
  border-radius: 10px;
  min-width: 120px;
  height: 40px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.shortcut-dialog-actions .btn-skip {
  background: #eef2f8;
  color: #4e607c;
}

.shortcut-dialog-actions .btn-create {
  background: #3147a6;
  color: #ffffff;
}

.dashboard-layout-dialog {
  width: min(440px, 92vw);
}

.dashboard-layout-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dashboard-layout-option {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  border: 1px solid #dbe4f2;
  border-radius: 14px;
  background: #f9fbff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.dashboard-layout-option.is-active {
  border-color: #3147a6;
  background: #eff3ff;
  box-shadow: 0 0 0 2px rgba(49, 71, 166, 0.08);
}

.dashboard-layout-option strong,
.dashboard-layout-option small {
  display: block;
}

.dashboard-layout-option strong {
  color: #26355f;
  font-size: 14px;
  margin-bottom: 3px;
}

.dashboard-layout-option small {
  color: #697b99;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-layout-option-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 18px 36px 36px;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #dbe4f2;
}

.dashboard-layout-option-preview i {
  display: block;
  border-radius: 4px;
  background: #edf3fb;
  box-shadow: inset 0 0 0 1px #dbe4f2;
  min-height: 0;
}

.dashboard-layout-option-preview .preview-kpi {
  grid-row: 1;
  min-height: 18px;
}

.dashboard-layout-option-preview .preview-main {
  grid-column: 1 / span 3;
  grid-row: 2 / span 2;
}

.dashboard-layout-option-preview .preview-side.top {
  grid-column: 4;
  grid-row: 2;
}

.dashboard-layout-option-preview .preview-side.bottom {
  grid-column: 4;
  grid-row: 3;
}

.dashboard-layout-option-preview.focus .preview-main {
  grid-column: 1 / span 4;
  grid-row: 2 / span 2;
}

.dashboard-layout-option-preview.focus .preview-side.top {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.dashboard-layout-option-preview.focus .preview-side.bottom {
  grid-column: 3 / span 2;
  grid-row: 1;
}

.dashboard-layout-option-preview.stacked .preview-main {
  grid-column: 1 / span 4;
  grid-row: 2;
}

.dashboard-layout-option-preview.stacked .preview-stack.one {
  grid-column: 1 / span 2;
  grid-row: 3;
}

.dashboard-layout-option-preview.stacked .preview-stack.two {
  grid-column: 3 / span 2;
  grid-row: 3;
}

.dashboard-layout-option-preview.stacked .preview-side {
  display: none;
}

.dashboard-reset-dialog {
  width: min(360px, 92vw);
}

.dashboard-layout-dialog,
.dashboard-reset-dialog {
  position: relative;
  z-index: 1;
}

.dashboard-layout-modal,
.dashboard-reset-modal {
  z-index: 2600;
}

.dashboard-layout-modal.open,
.dashboard-reset-modal.open {
  background: rgba(12, 21, 42, 0.48);
}

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

.info-head h3 {
  margin: 0;
  font-size: 16px;
  color: #2b3674;
}

.info-head button {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
}

.info-dialog p {
  margin: 0;
  color: #51617e;
  font-size: 13px;
  line-height: 1.5;
}

.info-bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4c5f81;
  font-size: 12px;
  display: grid;
  gap: 4px;
}

.info-visual-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.info-visual {
  border: 1px solid #dde5f3;
  border-radius: 8px;
  background: #f8fbff;
  min-height: 110px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.info-visual svg {
  width: 100%;
  height: 100%;
}

.passkey-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 21, 42, 0.56);
  backdrop-filter: blur(2px);
  display: none;
  place-items: center;
  z-index: 1200;
}

.passkey-modal.open {
  display: grid;
}

.passkey-dialog {
  width: min(860px, 94vw);
  background: linear-gradient(145deg, #fafdff 0%, #f4f8ff 58%, #ecf2ff 100%);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(16, 33, 67, 0.3);
  padding: 26px 26px 20px;
  border: 1px solid rgba(175, 197, 235, 0.46);
  position: relative;
  overflow: hidden;
}

.passkey-ai-flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .62;
}

.passkey-ai-flow::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(30, 63, 138, .24) 11% 11.2%, transparent 11.2% 100%),
    linear-gradient(0deg, transparent 0 15%, rgba(30, 63, 138, .2) 15% 15.2%, transparent 15.2% 100%);
}

.passkey-flow-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(39, 86, 176, .72);
  background: rgba(30, 63, 138, .42);
  box-shadow: 0 0 12px rgba(30, 63, 138, .36);
  transform: translate3d(0, 0, 0) scale(var(--s, 1));
  animation:
    node-pulse calc(4.8s + var(--t, 0s)) ease-in-out infinite,
    node-drift calc(68s + var(--t, 0s)) linear infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
  opacity: .68;
}

.passkey-flow-node::before,
.passkey-flow-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: .42;
}

.passkey-flow-node::before {
  width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 86, 176, .62), transparent);
}

.passkey-flow-node::after {
  width: 1px;
  height: 900px;
  background: linear-gradient(180deg, transparent, rgba(39, 86, 176, .62), transparent);
}

.passkey-dialog::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -90px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(47, 123, 246, .18), rgba(47, 123, 246, 0) 70%);
  pointer-events: none;
}

.passkey-dialog::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(66, 153, 225, .14), rgba(66, 153, 225, 0) 72%);
  pointer-events: none;
}

.passkey-dialog-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  align-items: center;
}

.passkey-dialog-head img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #1d40a0;
  padding: 8px;
}

.passkey-dialog h3 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #233564;
}

.passkey-dialog p {
  margin: 0;
  font-size: 15px;
  color: #4f628b;
  line-height: 1.45;
}

.passkey-dialog-visuals {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pk-visual {
  border-radius: 14px;
  min-height: 122px;
  border: 1px solid #cfdef9;
  background: linear-gradient(165deg, #ffffff, #eef5ff);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(36, 65, 114, 0.12);
  padding-bottom: 30px;
}

.pk-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 44px;
  height: 78px;
  border-radius: 10px;
  border: 2px solid #8ca7d8;
}

.pk-dot {
  position: absolute;
  left: 50%;
  top: 77px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #7d9ad2;
}

.pk-line {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 6px;
  border-radius: 4px;
  background: #d5e2fb;
}

.pk-lock-top {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 38px;
  height: 28px;
  border: 3px solid #86a3d7;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

.pk-lock-body {
  position: absolute;
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
  width: 56px;
  height: 46px;
  border-radius: 10px;
  background: #9eb7e3;
}

.pk-speed-ring {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 99px;
  border: 6px solid #d3e0f8;
  border-top-color: #6f95d8;
}

.pk-speed-needle {
  position: absolute;
  left: 50%;
  top: 54px;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: #5d86cf;
  transform-origin: left center;
  transform: rotate(-34deg);
}

.pk-caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  color: #4a5d84;
}

.passkey-benefits {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  border: 1px solid #d8e5fb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 14px;
  color: #3f537f;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.passkey-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.passkey-benefits li {
  display: grid;
  grid-template-columns: 20px 132px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.pk-benefit-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pk-benefit-icon svg {
  width: 18px;
  height: 18px;
  stroke: #2f63bc;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pk-benefit-title {
  color: #2c4e87;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.pk-benefit-desc {
  color: #3f537f;
  font-size: 13px;
  line-height: 1.35;
}

.passkey-benefits strong {
  color: #2c4e87;
}

.passkey-optional {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  color: #314e83;
  font-size: 13px;
  font-weight: 600;
}

.passkey-dialog .passkey-dialog-note {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  color: #45597f;
}

.passkey-dialog .passkey-dialog-note a {
  color: #2a5eb2;
  text-decoration: underline;
}

.passkey-dialog-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: #3f557f;
}

.passkey-dialog-status.error {
  color: #b42318;
}

.passkey-dialog-actions {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.passkey-dont-ask {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7fa3;
  cursor: pointer;
  margin-right: auto;
  user-select: none;
}

.passkey-dont-ask input[type="checkbox"] {
  accent-color: #2f7bf6;
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.passkey-dialog-actions button {
  border: 0;
  border-radius: 10px;
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.passkey-dialog-actions .btn-create {
  background: linear-gradient(135deg, #2f7bf6, #1f57bc);
  color: #fff;
  box-shadow: none;
}

.passkey-dialog-actions .btn-skip {
  background: rgba(227, 236, 252, 0.9);
  color: #3f557f;
}

@media (max-width: 720px) {
  .passkey-dialog {
    padding: 18px 16px 14px;
  }

  .passkey-dialog h3 {
    font-size: 28px;
  }

  .passkey-dialog-visuals {
    grid-template-columns: 1fr;
  }

  .passkey-dialog-actions {
    justify-content: stretch;
  }

  .passkey-dialog-actions button {
    flex: 1 1 0;
  }
}

.trend-tooltip,
.cardtype-tooltip {
  position: fixed;
  background: #18397f;
  color: #eef4ff;
  border: 1px solid #18397f;
  border-radius: 10px;
  padding: 10px;
  z-index: 520;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  box-shadow: none;
  min-width: 220px;
  max-width: 260px;
}

.trend-tooltip {
  min-width: 300px;
  max-width: 340px;
}

.trend-tooltip.forecast {
  background: #b86e08;
  border-color: #b86e08;
}

.trend-tooltip.open,
.cardtype-tooltip.open {
  opacity: 1;
  pointer-events: auto;
}

.trend-tip-title,
.cardtype-tip-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.trend-tip-grid,
.cardtype-tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.trend-tip-row,
.cardtype-tip-item {
  display: grid;
  grid-template-columns: 16px auto 1fr;
  gap: 6px;
  align-items: center;
  font-size: 11px;
}

.trend-tip-row.is-wide {
  grid-column: 1 / -1;
}

.trend-tip-row.is-wide .value {
  justify-self: start;
  text-align: left;
}

.trend-tip-row.is-wide .value {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trend-mix-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #eef4ff;
  line-height: 1;
}

.trend-tip-row svg,
.cardtype-tip-item svg {
  width: 14px;
  height: 14px;
  stroke: #cbdcff;
  stroke-width: 1.9;
  fill: none;
}

.trend-tip-row .label,
.cardtype-tip-item .label {
  color: #c9d7f5;
}

.trend-tip-row .value,
.cardtype-tip-item .value {
  justify-self: end;
  color: #eef4ff;
  white-space: nowrap;
}

.trend-tip-info {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(238, 244, 255, 0.28);
  display: grid;
  grid-template-columns: 16px auto 1fr;
  gap: 6px;
  align-items: start;
  font-size: 11px;
}

.trend-tip-info svg {
  width: 14px;
  height: 14px;
  stroke: #cbdcff;
  stroke-width: 1.9;
  fill: none;
}

.trend-tip-info .label {
  color: #c9d7f5;
}

.trend-tip-info .value {
  color: #eef4ff;
  white-space: normal;
  text-align: left;
}

.merchant-week-filter-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid #d8e0ee;
  border-radius: 999px;
  background: #f7faff;
  color: #40516f;
  font-size: 13px;
  font-weight: 600;
}

.merchant-week-filter-summary[hidden] {
  display: none;
}

.merchant-week-filter-summary-label strong {
  color: #1f5fb8;
}

.merchant-week-filter-clear {
  border: 0;
  border-radius: 999px;
  background: #1f5fb8;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.merchant-week-filter-clear:hover {
  background: #184f98;
}

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

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid.five,
  .three-col,
  .two-col {
    grid-template-columns: 1fr;
  }

  .dashboard-main-layout.layout-stacked .dashboard-sidecards {
    grid-template-columns: 1fr;
  }

  .cv-topbar-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .experience-toggle {
    width: auto;
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .experience-toggle-menu {
    right: 0;
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 720px) {
  .dashboard-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-filter {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-layout-options {
    grid-template-columns: 1fr;
  }

  .dashboard-date-popover {
    width: min(288px, calc(100vw - 32px));
  }

  .experience-toggle-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-hero {
    position: relative;
    height: auto;
    margin-top: 8px;
  }

  .cv-query-card {
    position: static;
    width: 100%;
  }

  .cv-actions {
    justify-content: flex-start;
  }

  .cv-search-bar-card,
  .cv-query-grid,
  .cv-query-options {
    grid-template-columns: 1fr;
  }

  .cv-search-results-summary,
  .cv-search-results-stats,
  .cv-search-results-grid {
    grid-template-columns: 1fr;
  }

  .cv-search-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-timeline-detail-meta {
    display: grid;
  }

  .cv-search-bar-actions {
    justify-items: start;
  }

  .cv-search-statuses {
    justify-content: flex-start;
  }

  .cv-env-grid,
  .cv-value-grid,
  .cv-section-grid,
  .cv-report-grid,
  .cv-troubleshoot-grid,
  .cv-overview-grid {
    grid-template-columns: 1fr;
  }

  .cv-about-hero {
    grid-template-columns: 1fr;
  }

  .cv-about-metrics,
  .cv-about-grid {
    grid-template-columns: 1fr;
  }

  .cv-about-graphic {
    min-height: 460px;
  }

  .cv-about-visual-circle {
    right: 50%;
    transform: translateX(50%);
  }

  .cv-dialog-bottom {
    right: 28px;
  }

  .cv-grid-lines,
  .cv-grid-lines-b {
    background-size: 26px 26px;
  }
}

@media (max-width: 980px) {
  .login-shell {
    width: calc(100vw - 20px);
    margin-top: 0;
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    padding-top: 0;
  }

  .login-right {
    min-height: 220px;
  }

  .login-card h1 {
    font-size: 34px;
  }

  .login-hero h2 {
    font-size: 44px;
  }

  .login-footer {
    width: calc(100vw - 20px);
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .cv-about-hero {
    padding: 24px 20px 20px;
    border-radius: 22px;
    overflow: visible;
  }

  .cv-about-title {
    font-size: 46px;
    max-width: 100%;
  }

  .cv-about-summary {
    font-size: 16px;
  }

  .cv-about-graphic {
    width: 560px;
    min-height: 420px;
    margin: 0 auto;
    transform: scale(0.78);
    transform-origin: top center;
  }

  .cv-about-visual-circle {
    width: 320px;
    height: 320px;
    top: 34px;
  }

  .cv-about-visual-chip {
    font-size: 11px;
  }

  .cv-about-visual-chip.chip-top {
    left: 26px;
    top: 84px;
  }

  .cv-about-visual-chip.chip-mid {
    right: 24px;
    top: 138px;
  }

  .cv-about-visual-chip.chip-bottom {
    left: 46px;
    bottom: 70px;
  }

  .cv-dialog-top {
    left: 14px;
    top: 46px;
    width: 196px;
  }

  .cv-dialog-bottom {
    right: 14px;
    bottom: 74px;
    width: 220px;
  }

  .cv-dialog-panel strong {
    font-size: 18px;
  }

  .cv-timeline-arc {
    left: -18%;
    right: -18%;
  }
}

@media (max-width: 760px) {
  .cv-about-graphic {
    width: 520px;
    min-height: 420px;
    transform: scale(0.68);
  }
}

@media (max-width: 520px) {
  .cv-about-graphic {
    width: 480px;
    min-height: 400px;
    transform: scale(0.56);
  }

  .cv-about-actions {
    flex-wrap: wrap;
  }
}

.merchant-chargebacks-page,
.pre-chargebacks-page {
  gap: 14px;
}

.case-management-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.case-management-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #4b5563;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: -3px;
}

.case-management-tab strong {
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #6b7280;
}

.case-management-tab.active,
.case-management-tab.is-active {
  color: var(--brand-primary, #4d8fdb);
  border-bottom: 2px solid var(--brand-primary, #4d8fdb);
  background: transparent;
}

.case-management-tab.is-active strong {
  background: #fff;
  color: #4b5563;
}

.case-management-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 0;
  overflow: visible;
  min-height: 100px;
  margin-bottom: 4px;
}

.cm-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 220px;
  padding: 16px 20px 14px;
  background: #fff;
  border: 1px solid #d4dbe5;
  border-top: 3px solid #4b83da;
  border-radius: 4px;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-shadow: 1px 1px 0px rgb(39 70 131 / 20%);
  display: flex;
  flex-direction: column;
  min-height: 98px;
}

.cm-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.cm-card-title,
.cm-card-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.3;
}

.cm-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.cm-card-value,
.cm-card-count {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  line-height: 1.05;
}

.cm-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cm-card-trend {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.cm-trend-svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cm-card-trend.is-up {
  color: #198754;
}

.cm-card-trend.is-down {
  color: #dc2626;
}

.cm-card-trend.is-flat {
  color: #94a3b8;
}

.cm-card-vs {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
  text-align: right;
}

.cm-card .kpi-sparkline {
  margin-top: auto;
}

.merchant-chargebacks-tabs {
  gap: 14px;
  padding-bottom: 0;
  border-bottom: 3px solid #d4dbe5;
}

.merchant-chargebacks-tab {
  padding: 0 2px 12px;
  color: #4b5563;
  font-size: 12px;
  margin-bottom: -3px;
}

.merchant-chargebacks-tab strong {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid #d4dbe5;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #fff;
  color: #6b7280;
  font-weight: 600;
  line-height: 1;
}

.merchant-chargebacks-tab.is-active {
  color: #000;
  border-bottom-color: #2f7bf6;
}

.merchant-chargebacks-tab.is-active strong {
  background: #fff;
  color: #4b5563;
}

.merchant-chargebacks-kpis,
.pre-chargebacks-summary,
.case-management-cards {
  align-items: stretch;
}

.merchant-chargebacks-kpi-sub,
.pre-chargebacks-kpi-sub {
  color: #64748b;
  font-size: 11px;
}

.merchant-chargebacks-shell,
.pre-chargebacks-shell {
  width: 100%;
}

body[data-page="chargebacks"] .page-wrap,
body[data-page="pre-chargebacks"] .page-wrap {
  overflow: hidden;
}

body[data-page="chargebacks"] .merchant-chargebacks-page,
body[data-page="pre-chargebacks"] .pre-chargebacks-page {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="chargebacks"] .merchant-week-filter-summary,
body[data-page="chargebacks"] .merchant-chargebacks-tabs,
body[data-page="chargebacks"] .merchant-chargebacks-kpis,
body[data-page="pre-chargebacks"] .merchant-week-filter-summary,
body[data-page="pre-chargebacks"] .pre-chargebacks-summary {
  flex: 0 0 auto;
  flex-shrink: 0;
}

body[data-page="chargebacks"] .merchant-chargebacks-shell,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="chargebacks"] .merchant-chargebacks-shell .card-body,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell .card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body[data-page="chargebacks"] .merchant-chargebacks-shell .managed-table-shell,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell .managed-table-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body[data-page="chargebacks"] .merchant-chargebacks-shell .managed-table-wrap,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell .managed-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body[data-page="chargebacks"] .merchant-chargebacks-shell .portal-tabulator-shell,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell .portal-tabulator-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="chargebacks"] .merchant-chargebacks-shell .portal-tabulator,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell .portal-tabulator,
body[data-page="chargebacks"] .merchant-chargebacks-shell .portal-tabulator .tabulator,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell .portal-tabulator .tabulator {
  height: 100%;
  min-height: 0;
}

body[data-page="chargebacks"] .merchant-chargebacks-shell .portal-tabulator .tabulator,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell .portal-tabulator .tabulator {
  display: flex;
  flex-direction: column;
}

body[data-page="chargebacks"] .merchant-chargebacks-shell .portal-tabulator .tabulator-tableholder,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell .portal-tabulator .tabulator-tableholder {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body[data-page="chargebacks"] .merchant-chargebacks-shell .portal-tabulator .tabulator-footer,
body[data-page="pre-chargebacks"] .pre-chargebacks-shell .portal-tabulator .tabulator-footer {
  flex: 0 0 auto;
}

.merchant-chargebacks-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.dashboard-top-clients-toolbar {
  margin-bottom: 10px;
}

.merchant-chargebacks-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5e6e8a;
  font-size: 12px;
  font-weight: 600;
}

.merchant-chargebacks-filter select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d6dde8;
  border-radius: 7px;
  background: #fff;
  color: #243a6b;
  font-size: 12px;
}

.merchant-chargebacks-search {
  min-width: 220px;
}

.crypto-ops-page .card-head h3,
.crypto-ops-page .cm-card-title {
  letter-spacing: 0;
}

.crypto-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #215db0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.crypto-pill.is-muted {
  background: #eef2f7;
  color: #53657f;
}

.merchant-chargebacks-status,
.pre-chargebacks-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}

.merchant-chargebacks-status-open,
.pre-chargebacks-status-action {
  background: #e7f0ff;
  color: #215db0;
}

.merchant-chargebacks-status-represented,
.pre-chargebacks-status-resolved {
  background: #e6f6ef;
  color: #16835c;
}

.merchant-chargebacks-status-won,
.pre-chargebacks-status-closed {
  background: #edf4ff;
  color: #274683;
}

.merchant-chargebacks-status-lost,
.pre-chargebacks-status-expired {
  background: #ffecec;
  color: #c44f4f;
}

.merchant-chargebacks-status-past-due {
  background: #fff6dc;
  color: #aa7a00;
}

.merchant-chargebacks-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  width: 100%;
}

.merchant-chargebacks-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6480ad;
  cursor: pointer;
}

.merchant-chargebacks-actions button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.search-results-page {
  gap: 14px;
}

.search-results-querybar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-results-query-input {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  background: #fff;
}

.search-results-query-input svg {
  width: 18px;
  height: 18px;
  stroke: #6c7d98;
  stroke-width: 2;
  fill: none;
}

.search-results-query-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #243a6b;
  font-size: 14px;
}

.search-results-query-submit {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #1f5fb8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.search-results-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  gap: 16px;
  margin-bottom: 16px;
}

.search-results-hero-main {
  display: grid;
  gap: 12px;
}

.search-results-prompt-label {
  margin: 0 0 8px;
  color: #6c7b96;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.search-results-prompt {
  margin: 0 0 18px;
  color: #213353;
  font-size: 28px;
  line-height: 1.12;
}

.search-results-ai-summary {
  padding: 14px 16px;
  border: 1px solid #d9e2f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7faff, #ffffff);
}

.search-results-ai-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.search-results-ai-summary-head small {
  color: #7b8ca7;
  font-size: 11px;
}

.search-results-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #29539a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.search-results-ai-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.search-results-ai-summary p {
  margin: 0;
  color: #425776;
  font-size: 13px;
  line-height: 1.6;
}

.search-results-refinements {
  padding: 14px 16px;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  background: #fff;
}

.search-results-refinements-title {
  margin: 0 0 10px;
  color: #233564;
  font-size: 13px;
  font-weight: 700;
}

.search-results-refinement-list {
  display: grid;
  gap: 8px;
}

.search-results-refinement-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}

.search-results-refinement-item input {
  margin: 0;
}

.search-results-refinement-copy {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #4c5e7b;
  font-size: 13px;
}

.search-results-refinement-copy strong {
  color: #243a6b;
  font-size: 12px;
}

.search-results-kpi-sub {
  color: #6f7e98;
  font-size: 12px;
}

.chart-drilldown-page {
  gap: 16px;
}

.chart-drilldown-hero-card .card-head,
.chart-drilldown-hero-card .card-subtitle {
  display: none;
}

.chart-drilldown-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.chart-drilldown-kicker {
  margin: 0;
  color: #6b7c96;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.chart-drilldown-head h2 {
  margin: 0;
  color: #223457;
  font-size: 28px;
  line-height: 1.12;
}

.chart-drilldown-subtitle {
  margin: 0;
  color: #667892;
  font-size: 13px;
}

.chart-drilldown-chart-wrap {
  height: 340px;
  min-height: 340px;
  max-height: 340px;
}

.chart-drilldown-toolbar {
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .search-results-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .search-results-querybar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-results-query-submit {
    width: 100%;
  }
}

/* =============================================
   MERCHANT DISCOVERY & CONSUMER VELOCITY
   ============================================= */
.md-topbar-row,
.cv-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.md-search-open,
.cv-search-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--brand-primary, #4d8fdb);
  color: #fff;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(77, 143, 219, 0.3);
  transition: transform .2s ease, box-shadow .2s ease;
}

.md-search-open:hover,
.cv-search-open:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(77, 143, 219, 0.4);
}

.md-search-bar-card,
.cv-search-bar-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff, #f8faff);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.md-eyebrow,
.cv-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue, #4d8fdb);
  margin-bottom: 8px;
}

.md-summary,
.cv-summary {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 680px;
}

.md-search-statuses,
.cv-search-statuses {
  display: flex;
  align-items: center;
  gap: 10px;
}

.md-search-statuses span,
.cv-search-statuses span {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(77, 143, 219, 0.1);
  color: var(--blue, #4d8fdb);
}

.md-query-card,
.cv-query-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--line);
  padding: 24px;
  animation: modalIn .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.md-query-head,
.cv-query-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.md-query-head small,
.cv-query-head small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.md-query-head strong,
.cv-query-head strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.md-query-close,
.cv-query-close {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--muted);
}

.md-query-types,
.cv-query-types {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #f4f7fe;
  padding: 4px;
  border-radius: 10px;
}

.md-query-type,
.cv-query-type {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.md-query-type.is-active,
.cv-query-type.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.md-query-grid,
.cv-query-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.md-query-field span,
.cv-query-field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.md-query-field input,
.cv-query-field input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfdfd;
  font-size: 14px;
}

.md-query-options,
.cv-query-options {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
}

.md-query-option span,
.cv-query-option span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.md-query-option strong,
.cv-query-option strong {
  font-size: 13px;
  font-weight: 700;
}

/* SEARCH RESULTS */
.md-search-results,
.cv-search-results {
  margin-top: 24px;
  animation: fadeIn .4s ease-out;
}

.md-search-results-head,
.cv-search-results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 0 8px;
}

.md-search-results-kicker,
.cv-search-results-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #198754;
  margin-bottom: 8px;
}

.md-search-results-head h3,
.cv-search-results-head h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.md-search-results-head p,
.cv-search-results-head p {
  font-size: 15px;
  color: var(--muted);
}

.md-search-results-badge,
.cv-search-results-badge {
  padding: 8px 16px;
  background: #eefdf5;
  color: #198754;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #d1f7e6;
}

.md-search-results-summary,
.cv-search-results-summary {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.md-search-results-profile,
.cv-search-results-profile {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
}

.md-search-results-profile small,
.cv-search-results-profile small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.md-search-results-profile strong,
.cv-search-results-profile strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.md-search-results-profile span,
.cv-search-results-profile span {
  font-size: 14px;
  color: var(--blue, #4d8fdb);
  word-break: break-all;
}

.md-search-results-stats,
.cv-search-results-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.md-search-stat,
.cv-search-stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
}

.md-search-stat:hover {
  transform: translateY(-2px);
  border-color: var(--blue, #4d8fdb);
}

.md-search-stat-icon,
.cv-search-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f4f7fe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.md-search-stat-icon svg,
.cv-search-stat-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue, #4d8fdb);
  stroke-width: 2;
  fill: none;
}

.md-search-stat small,
.cv-search-stat small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.md-search-stat strong,
.cv-search-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* MERCHANT CARD BOX */
.md-merchant-profile-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
}

.md-merchant-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.md-merchant-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4d8fdb, #1e3f8a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-merchant-avatar svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  stroke-width: 1.5;
  fill: none;
}

.md-merchant-profile-head strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.md-merchant-profile-head span {
  font-size: 14px;
  color: var(--muted);
}

.md-merchant-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  background: #f8faff;
  border-radius: 10px;
}

.md-detail-item label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.md-detail-item b {
  font-size: 14px;
  color: var(--text);
}

.md-descriptor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.md-descriptor-pills span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
}

.md-search-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.md-search-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.md-search-panel-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.md-search-panel-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.md-search-panel-head span {
  font-size: 12px;
  color: var(--muted);
}

.md-search-signal-list {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.md-search-signal {
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--blue, #4d8fdb);
}

.md-search-signal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.md-search-signal-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.md-search-signal-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue, #4d8fdb);
  stroke-width: 2;
  fill: none;
}

.md-search-signal-title strong {
  font-size: 14px;
  font-weight: 700;
}

.md-search-signal em {
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  padding: 2px 8px;
  background: rgba(77, 143, 219, 0.1);
  color: var(--blue, #4d8fdb);
  border-radius: 4px;
}

.md-search-signal p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

@keyframes modalIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.md-search-backdrop,
.cv-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(4px);
  z-index: 490;
}

/* GENERIC FEATURE LIST */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d8fdb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.card-configure-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #2f7bf6;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(47, 123, 246, 0.22);
  background: rgba(47, 123, 246, 0.06);
  transition: background 0.14s, border-color 0.14s;
}

.card-configure-link:hover {
  background: rgba(47, 123, 246, 0.13);
  border-color: rgba(47, 123, 246, 0.4);
}

.cio-threshold-group {
  display: flex !important;
  align-items: center !important;
}

.cio-threshold-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cio-threshold-label svg {
  width: 14px;
  height: 14px;
  margin-right: 2px;
  fill: #fff;
}

/* =============================================
   WATCHLIST ENGINE — Pinned Data Points
   ============================================= */

/* --- Trigger wrapper --- */
.watchlist-trigger-wrap {
  position: relative;
}

/* --- Badge --- */
.watchlist-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 999px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.watchlist-badge--visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Dropdown shell --- */
.wl-dropdown {
  position: absolute;
  top: 100%;
  right: -8px;
  padding-top: 8px;
  width: 420px;
  max-height: 580px;
  display: flex;
  flex-direction: column;
  background: transparent;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.wl-dropdown--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wl-dropdown-inner {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-radius: 12px;
  border: 1px solid rgba(226, 231, 242, 0.8);
  box-shadow: 0 12px 40px rgba(43, 54, 116, 0.16), 0 2px 8px rgba(43, 54, 116, 0.08);
  overflow: hidden;
  max-height: 100%;
  min-height: 0;
}

/* --- Dropdown header --- */
.wl-header {
  display: flex;
  align-items: center;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(226, 231, 242, 0.7);
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.wl-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.wl-header-title svg {
  width: 16px;
  height: 16px;
  stroke: #f59e0b;
  stroke-width: 2.5;
  fill: none;
}

/* --- List & Cards --- */
.wl-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.wl-list::-webkit-scrollbar {
  width: 6px;
}

.wl-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.wl-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: border-color 0.14s, box-shadow 0.14s;
}

.wl-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.wl-card-head {
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.wl-card-head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.wl-card-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wl-card-meta {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wl-card-unpin {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  flex: 0 0 auto;
}

.wl-card-unpin:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* --- Card Body & Insight rendering --- */
.wl-card-body {
  padding: 12px;
  min-height: 80px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wl-card-body--loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-skel {
  height: 12px;
  background: #f1f5f9;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.wl-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: wl-shimmer 1.5s infinite;
}

@keyframes wl-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.wl-skel--text {
  height: 8px;
}

.wl-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.wl-kpi {
  display: flex;
  flex-direction: column;
}

.wl-kpi-val {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.wl-kpi-lbl {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}

.wl-kpi--trend.is-up {
  color: #10b981;
}

.wl-kpi--trend.is-down {
  color: #ef4444;
}

.wl-trend-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  margin-bottom: 2px;
}

.wl-insight-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wl-card-foot {
  padding: 8px 12px 12px;
  border-top: 1px dashed #f1f5f9;
}

.wl-view-source {
  width: 100%;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.wl-view-source:hover {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}

.wl-view-source span {
  transition: transform 0.14s ease;
}

.wl-view-source:hover span {
  transform: translateX(3px);
}

.wl-empty {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wl-empty svg {
  width: 32px;
  height: 32px;
  stroke: #cbd5e1;
  stroke-width: 1.5;
  fill: none;
}

.wl-empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
}

.wl-empty span {
  font-size: 12px;
  color: #94a3b8;
}

.wl-header-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #2b3674);
}

.wl-header-title svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --- Scrollable list --- */
.wl-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.3) transparent;
}

.wl-list::-webkit-scrollbar {
  width: 4px;
}

.wl-list::-webkit-scrollbar-track {
  background: transparent;
}

.wl-list::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 4px;
}

/* --- Empty state --- */
.wl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 20px;
  color: var(--muted, #6c7999);
  text-align: center;
}

.wl-empty svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.4;
}

.wl-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #2b3674);
}

.wl-empty span {
  font-size: 11.5px;
  opacity: 0.7;
  max-width: 220px;
  line-height: 1.5;
}

/* ------------------------------------------------
   PIN CARD
------------------------------------------------ */
.wl-card {
  margin: 0 8px 8px;
  border: 1px solid rgba(226, 231, 242, 0.9);
  border-radius: 12px;
  background: #fff;
  overflow: visible;
  transition: box-shadow 0.15s ease, opacity 0.18s ease, transform 0.18s ease;
}

.wl-card:hover {
  box-shadow: 0 4px 16px rgba(43, 54, 116, 0.1);
}

/* Card head */
.wl-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px 6px;
  border-bottom: 1px solid rgba(226, 231, 242, 0.5);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.wl-card-head-left {
  flex: 1;
  min-width: 0;
}

.wl-card-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text, #2b3674);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wl-card-meta {
  display: block;
  font-size: 10.5px;
  color: var(--muted, #6c7999);
  margin-top: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wl-card-unpin {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: var(--muted, #6c7999);
  cursor: pointer;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.12s, background 0.12s, color 0.12s;
  margin-top: 1px;
}

.wl-card:hover .wl-card-unpin {
  opacity: 1;
}

.wl-card-unpin:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Card body */
.wl-card-body {
  padding: 10px 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Loading skeleton */
.wl-card-body--loading {
  min-height: 60px;
}

.wl-skeleton-row {
  display: flex;
  gap: 8px;
}

.wl-skel {
  height: 28px;
  background: linear-gradient(90deg, #f0f2f8 25%, #e4e7f4 50%, #f0f2f8 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: wl-shimmer 1.4s infinite;
}

.wl-skel--text {
  height: 11px;
  border-radius: 4px;
}

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

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

/* Error state */
.wl-card-error {
  font-size: 11px;
  color: #ef4444;
  display: block;
  padding: 2px 0;
}

/* Insight: KPI row */
.wl-card-body--insight {
  padding: 10px 12px 8px;
}

.wl-kpis {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
}

.wl-kpi {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(245, 247, 253, 0.8);
  gap: 2px;
}

.wl-kpi+.wl-kpi {
  margin-left: 6px;
}

.wl-kpi-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #2b3674);
  line-height: 1.2;
}

.wl-kpi-lbl {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted, #6c7999);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Trend KPI */
.wl-kpi--trend {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.wl-kpi--trend.is-up {
  background: rgba(16, 185, 129, 0.08);
}

.wl-kpi--trend.is-down {
  background: rgba(239, 68, 68, 0.08);
}

.wl-kpi--trend.is-up .wl-kpi-val {
  color: #059669;
}

.wl-kpi--trend.is-down .wl-kpi-val {
  color: #dc2626;
}

.wl-trend-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.wl-kpi--trend.is-up .wl-trend-icon {
  color: #059669;
}

.wl-kpi--trend.is-down .wl-trend-icon {
  color: #dc2626;
}

/* Insight text */
.wl-insight-text {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted, #6c7999);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Card footer */
.wl-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 12px 10px;
  border-top: 1px solid rgba(226, 231, 242, 0.5);
}

.wl-view-source {
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue, #4d8fdb);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.01em;
}

.wl-view-source:hover {
  background: rgba(77, 143, 219, 0.1);
  color: var(--blue-dark, #1e3f8a);
}

.wl-view-source span {
  font-size: 12px;
}

body[data-industry="default"] .wl-dropdown-inner {
  box-shadow: 0 12px 40px rgba(43, 54, 116, 0.16), 0 2px 8px rgba(43, 54, 116, 0.08);
}

body[data-industry="default"] .wl-header {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.9));
}

body[data-industry="default"] .wl-header-title svg {
  color: #f59e0b;
}

body[data-industry="crypto"] .wl-dropdown-inner {
  background: var(--panel, #272045);
  border-color: var(--line, #3a315f);
  box-shadow: 0 0 0 1px var(--brand-primary-subtle, rgba(124, 77, 255, 0.18)), 0 18px 36px rgba(8, 15, 30, 0.26);
}

body[data-industry="crypto"] .wl-header {
  background: linear-gradient(135deg, var(--brand-bg, #231c42), var(--panel, #272045));
  border-bottom-color: var(--line, #3a315f);
}

body[data-industry="crypto"] .wl-header-title,
body[data-industry="crypto"] .wl-card-label,
body[data-industry="crypto"] .wl-kpi-val,
body[data-industry="crypto"] .wl-empty p {
  color: var(--text, #f6f2ff);
}

body[data-industry="crypto"] .wl-header-title svg {
  color: var(--brand-primary, #7c4dff);
}

body[data-industry="crypto"] .wl-card {
  background: var(--panel, #272045);
  border-color: var(--line, #3a315f);
}

body[data-industry="crypto"] .wl-card-head,
body[data-industry="crypto"] .wl-card-foot {
  background: transparent;
  border-color: var(--line, #3a315f);
}

body[data-industry="crypto"] .wl-card-meta,
body[data-industry="crypto"] .wl-kpi-lbl,
body[data-industry="crypto"] .wl-insight-text,
body[data-industry="crypto"] .wl-empty,
body[data-industry="crypto"] .wl-empty span,
body[data-industry="crypto"] .wl-card-unpin {
  color: var(--muted, #b4add3);
}

body[data-industry="crypto"] .wl-kpi {
  background: var(--brand-primary-subtle, rgba(124, 77, 255, 0.18));
}

body[data-industry="crypto"] .wl-view-source {
  background: var(--brand-bg, #231c42);
  border-color: var(--line, #3a315f);
  color: var(--text, #f6f2ff);
}

body[data-industry="crypto"] .wl-view-source:hover {
  background: var(--brand-primary-subtle, rgba(124, 77, 255, 0.18));
  border-color: var(--brand-primary, #7c4dff);
  color: #ffffff;
}

body[data-industry="travel"] .wl-dropdown-inner {
  background: var(--panel, #ffffff);
  border-color: var(--line, #d5e4db);
  box-shadow: 0 16px 32px rgba(47, 143, 104, 0.12), 0 2px 8px rgba(25, 93, 66, 0.08);
}

body[data-industry="travel"] .wl-header {
  background: linear-gradient(135deg, #f7fcf9, var(--panel, #ffffff));
  border-bottom-color: var(--line, #d5e4db);
}

body[data-industry="travel"] .wl-header-title,
body[data-industry="travel"] .wl-card-label,
body[data-industry="travel"] .wl-kpi-val,
body[data-industry="travel"] .wl-empty p {
  color: var(--text, #153426);
}

body[data-industry="travel"] .wl-header-title svg {
  color: var(--brand-primary, #2f8f68);
}

body[data-industry="travel"] .wl-card {
  background: var(--panel, #ffffff);
  border-color: var(--line, #d5e4db);
}

body[data-industry="travel"] .wl-card-head,
body[data-industry="travel"] .wl-card-foot {
  background: transparent;
  border-color: var(--line, #d5e4db);
}

body[data-industry="travel"] .wl-card-meta,
body[data-industry="travel"] .wl-kpi-lbl,
body[data-industry="travel"] .wl-insight-text,
body[data-industry="travel"] .wl-empty,
body[data-industry="travel"] .wl-empty span,
body[data-industry="travel"] .wl-card-unpin {
  color: var(--muted, #5f7d6e);
}

body[data-industry="travel"] .wl-kpi {
  background: var(--brand-chip, #def2e6);
}

body[data-industry="travel"] .wl-view-source {
  background: #f7fcf9;
  border-color: rgba(47, 143, 104, 0.18);
  color: var(--text, #153426);
}

body[data-industry="travel"] .wl-view-source:hover {
  background: var(--brand-chip, #def2e6);
  border-color: var(--brand-primary, #2f8f68);
  color: var(--brand-primary, #2f8f68);
}

body[data-industry="gaming"] .wl-dropdown-inner {
  background: var(--panel, #212430);
  border-color: var(--line, #2f3545);
  box-shadow: 0 18px 38px rgba(18, 24, 39, 0.24), 0 0 0 1px rgba(61, 139, 255, 0.08);
}

body[data-industry="gaming"] .wl-header {
  background: linear-gradient(135deg, #262a36, #212430);
  border-bottom-color: var(--line, #2f3545);
}

body[data-industry="gaming"] .wl-header-title,
body[data-industry="gaming"] .wl-card-label,
body[data-industry="gaming"] .wl-kpi-val,
body[data-industry="gaming"] .wl-empty p {
  color: var(--text, #f5f7fb);
}

body[data-industry="gaming"] .wl-header-title svg {
  color: var(--brand-primary, #3d8bff);
}

body[data-industry="gaming"] .wl-card {
  background: var(--panel, #212430);
  border-color: var(--line, #2f3545);
}

body[data-industry="gaming"] .wl-card-head,
body[data-industry="gaming"] .wl-card-foot {
  background: transparent;
  border-color: var(--line, #2f3545);
}

body[data-industry="gaming"] .wl-card-meta,
body[data-industry="gaming"] .wl-kpi-lbl,
body[data-industry="gaming"] .wl-insight-text,
body[data-industry="gaming"] .wl-empty,
body[data-industry="gaming"] .wl-empty span,
body[data-industry="gaming"] .wl-card-unpin {
  color: var(--muted, #99a2b6);
}

body[data-industry="gaming"] .wl-kpi {
  background: #262a36;
  border: 1px solid #394055;
}

body[data-industry="gaming"] .wl-view-source {
  background: #262a36;
  border-color: #394055;
  color: var(--text, #f5f7fb);
}

body[data-industry="gaming"] .wl-view-source:hover {
  background: var(--brand-primary-subtle, rgba(61, 139, 255, 0.16));
  border-color: var(--brand-primary, #3d8bff);
  color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .wl-dropdown {
    width: calc(100vw - 24px);
    right: 0;
  }
}
