html,
body,
#root {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body.ui-redesign-v1 {
  --ui-bg: #eef1eb;
  --ui-surface: #fffefa;
  --ui-surface-soft: #f6f8f3;
  --ui-line: #bcc7bd;
  --ui-line-strong: #9eaca2;
  --ui-text: #111915;
  --ui-muted: #3f4b44;
  --ui-faint: #647067;
  --ui-accent: #1f6f7d;
  --ui-accent-soft: #dcefeb;
  --ui-secondary: #334f9f;
  --ui-secondary-soft: #e5eafe;
  --ui-success: #177b55;
  --ui-warning: #a96824;
  --ui-danger: #b42318;
  background: var(--ui-bg) !important;
  color: var(--ui-text) !important;
  letter-spacing: 0 !important;
}

body.ui-redesign-v1 * {
  letter-spacing: 0 !important;
}

body.ui-redesign-v1 .bg-slate-950,
body.ui-redesign-v1 .bg-\[\#F8FAFC\],
body.ui-redesign-v1 .bg-\[\#F7F8FA\],
body.ui-redesign-v1 .bg-\[\#F2F3F5\] {
  background: var(--ui-bg) !important;
}

body.ui-redesign-v1 .bg-white,
body.ui-redesign-v1 .glass-card {
  background: var(--ui-surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.ui-redesign-v1 .text-white,
body.ui-redesign-v1 .text-\[\#1D2129\],
body.ui-redesign-v1 .text-slate-900,
body.ui-redesign-v1 .text-slate-800 {
  color: var(--ui-text) !important;
}

body.ui-redesign-v1 .text-slate-300,
body.ui-redesign-v1 .text-slate-400,
body.ui-redesign-v1 .text-slate-500,
body.ui-redesign-v1 .text-\[\#4E5969\],
body.ui-redesign-v1 .text-\[\#86909C\] {
  color: var(--ui-muted) !important;
}

body.ui-redesign-v1 ::placeholder {
  color: #6d786f !important;
  opacity: 1 !important;
}

body.ui-redesign-v1 .text-brand,
body.ui-redesign-v1 .text-\[\#165DFF\],
body.ui-redesign-v1 .text-indigo-600 {
  color: var(--ui-accent) !important;
}

body.ui-redesign-v1 .text-emerald-600,
body.ui-redesign-v1 .text-\[\#00B42A\] {
  color: var(--ui-success) !important;
}

body.ui-redesign-v1 .text-rose-500,
body.ui-redesign-v1 .text-rose-600,
body.ui-redesign-v1 .text-\[\#F53F3F\] {
  color: var(--ui-danger) !important;
}

body.ui-redesign-v1 .border,
body.ui-redesign-v1 .border-t,
body.ui-redesign-v1 .border-b,
body.ui-redesign-v1 .border-l,
body.ui-redesign-v1 .border-r,
body.ui-redesign-v1 .border-slate-100,
body.ui-redesign-v1 .border-slate-200,
body.ui-redesign-v1 .border-\[\#E5E6EB\],
body.ui-redesign-v1 .border-\[\#E5E7EB\] {
  border-color: var(--ui-line) !important;
}

body.ui-redesign-v1 [class*='shadow'] {
  box-shadow: none !important;
}

body.ui-redesign-v1 .rounded-\[3rem\],
body.ui-redesign-v1 .rounded-\[2\.5rem\],
body.ui-redesign-v1 .rounded-\[32px\],
body.ui-redesign-v1 .rounded-\[28px\],
body.ui-redesign-v1 .rounded-\[26px\],
body.ui-redesign-v1 .rounded-\[24px\],
body.ui-redesign-v1 .rounded-\[2rem\],
body.ui-redesign-v1 .rounded-3xl,
body.ui-redesign-v1 .rounded-2xl {
  border-radius: 10px !important;
}

body.ui-redesign-v1 .rounded-xl,
body.ui-redesign-v1 .rounded-lg,
body.ui-redesign-v1 .rounded-md {
  border-radius: 8px !important;
}

body.ui-redesign-v1 button {
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease !important;
}

body.ui-redesign-v1 button[class*='bg-slate-900'],
body.ui-redesign-v1 button[class*='bg-black'],
body.ui-redesign-v1 button[class*='bg-[#1D2129]'],
body.ui-redesign-v1 .btn-biz-primary {
  background: var(--ui-text) !important;
  color: #ffffff !important;
  border: 1px solid var(--ui-text) !important;
}

body.ui-redesign-v1 button[class*='bg-[#165DFF]'],
body.ui-redesign-v1 button[class*='bg-brand'],
body.ui-redesign-v1 .bg-\[\#165DFF\] {
  background: var(--ui-accent) !important;
  color: #ffffff !important;
  border-color: var(--ui-accent) !important;
}

body.ui-redesign-v1 button:hover {
  filter: none !important;
}

body.ui-redesign-v1 input,
body.ui-redesign-v1 textarea,
body.ui-redesign-v1 select,
body.ui-redesign-v1 .glass-input {
  background: #ffffff !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 8px !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}

body.ui-redesign-v1 input:focus,
body.ui-redesign-v1 textarea:focus,
body.ui-redesign-v1 select:focus {
  border-color: var(--ui-accent) !important;
  box-shadow: 0 0 0 3px rgba(47, 111, 126, 0.12) !important;
}

body.ui-redesign-v1 aside {
  background: #ffffff !important;
  border-right: 1px solid var(--ui-line) !important;
}

body.ui-redesign-v1 aside .h-20 {
  height: 68px !important;
}

body.ui-redesign-v1 aside button {
  height: 38px !important;
  border-radius: 8px !important;
}

body.ui-redesign-v1 aside button:hover,
body.ui-redesign-v1 aside button[class*='bg-[#F2F3F5]'] {
  background: var(--ui-accent-soft) !important;
  color: var(--ui-text) !important;
}

body.ui-redesign-v1 main {
  background: var(--ui-bg) !important;
}

body.ui-redesign-v1 main > .flex-1,
body.ui-redesign-v1 main > div:last-child {
  background: var(--ui-bg) !important;
}

body.ui-redesign-v1 .sticky .inline-flex {
  border-radius: 8px !important;
  border-color: var(--ui-line) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
}

body.ui-redesign-v1 .bg-rose-50 {
  background: #fff0ee !important;
}

body.ui-redesign-v1 .bg-emerald-50 {
  background: #edf8f2 !important;
}

body.ui-redesign-v1 .bg-indigo-50,
body.ui-redesign-v1 .bg-\[\#F8FAFF\] {
  background: var(--ui-secondary-soft) !important;
}

body.ui-redesign-v1 .bg-slate-50 {
  background: var(--ui-surface-soft) !important;
}

body.ui-redesign-v1 [class*='bg-gradient'],
body.ui-redesign-v1 [class*='bg-[linear-gradient'],
body.ui-redesign-v1 [class*='from-'],
body.ui-redesign-v1 [class*='to-'] {
  background-image: none !important;
}

body.ui-redesign-v1 #root > .min-h-screen.bg-slate-950,
body.ui-redesign-v1 #root > .min-h-screen[class*='bg-slate-950'] {
  background: var(--ui-bg) !important;
  color: var(--ui-text) !important;
}

body.ui-redesign-v1 #root > .min-h-screen > .absolute {
  display: none !important;
}

body.ui-redesign-v1 #root .lg\:col-span-7 {
  color: var(--ui-text) !important;
}

body.ui-redesign-v1 #root .lg\:col-span-7 .inline-flex {
  background: var(--ui-accent-soft) !important;
  border-color: var(--ui-line-strong) !important;
  color: var(--ui-accent) !important;
  border-radius: 999px !important;
}

body.ui-redesign-v1 #root .lg\:col-span-7 h1 {
  color: var(--ui-text) !important;
  font-size: clamp(42px, 5vw, 64px) !important;
  font-weight: 950 !important;
}

body.ui-redesign-v1 #root .lg\:col-span-7 h1 span {
  color: var(--ui-accent) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.ui-redesign-v1 #root .lg\:col-span-7 p {
  color: var(--ui-muted) !important;
  font-weight: 650 !important;
}

body.ui-redesign-v1 #root .lg\:col-span-7 .grid > div {
  background: #ffffff !important;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 10px !important;
  padding: 18px !important;
}

body.ui-redesign-v1 #root .lg\:col-span-7 .grid > div > div:first-child {
  background: var(--ui-surface-soft) !important;
  border-color: var(--ui-line) !important;
}

body.ui-redesign-v1 #root .max-w-md {
  background: #ffffff !important;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 54px rgba(17, 25, 21, 0.13) !important;
}

body.ui-redesign-v1 #root .max-w-md .w-16.h-16 {
  background: var(--ui-text) !important;
  border-radius: 12px !important;
}

body.ui-redesign-v1 #root .max-w-md input {
  height: 46px !important;
}

body.ui-redesign-v1 #root .max-w-md button.w-full {
  height: 48px !important;
  border-radius: 8px !important;
}

body.ui-redesign-v1 [data-content-patch-hidden='true'] {
  display: none !important;
}

body.dashboard-patch-active {
  background: var(--ui-bg) !important;
  color: var(--ui-text) !important;
}

body.dashboard-patch-active [data-dashboard-switcher='true'] {
  display: none !important;
}

body.dashboard-patch-active [data-dashboard-shell='true'] {
  background: var(--ui-bg) !important;
}

body.dashboard-patch-active [data-dashboard-shell='true'] > .flex-1 {
  padding-top: 10px !important;
}

body.dashboard-patch-active [data-dashboard-shell='true'] .max-w-7xl {
  max-width: 1120px !important;
  padding-bottom: 40px !important;
}

body.dashboard-patch-active [data-dashboard-shell='true'] .space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 16px !important;
}

body.dashboard-patch-active [data-dashboard-shell='true'] .rounded-\[32px\],
body.dashboard-patch-active [data-dashboard-shell='true'] .rounded-\[3rem\],
body.dashboard-patch-active [data-dashboard-shell='true'] .rounded-\[2\.5rem\],
body.dashboard-patch-active [data-dashboard-shell='true'] .rounded-\[2rem\],
body.dashboard-patch-active [data-dashboard-shell='true'] .rounded-3xl,
body.dashboard-patch-active [data-dashboard-shell='true'] .rounded-2xl {
  border-radius: 10px !important;
}

body.dashboard-patch-active [data-dashboard-shell='true'] [class*='shadow'] {
  box-shadow: none !important;
}

body.dashboard-patch-active [data-dashboard-hero='true'] {
  background: #ffffff !important;
  border: 1px solid var(--ui-line-strong) !important;
  color: var(--ui-text) !important;
  padding: 22px !important;
  min-height: auto !important;
  overflow: hidden !important;
}

body.dashboard-patch-active [data-dashboard-hero='true'] .absolute {
  display: none !important;
}

body.dashboard-patch-active [data-dashboard-hero='true'] h1,
body.dashboard-patch-active [data-dashboard-hero='true'] h2,
body.dashboard-patch-active [data-dashboard-hero='true'] h3,
body.dashboard-patch-active [data-dashboard-hero='true'] .text-white {
  color: #17202a !important;
}

body.dashboard-patch-active [data-dashboard-hero='true'] p,
body.dashboard-patch-active [data-dashboard-hero='true'] .text-slate-300,
body.dashboard-patch-active [data-dashboard-hero='true'] .text-slate-400,
body.dashboard-patch-active [data-dashboard-hero='true'] .text-white\/70 {
  color: var(--ui-muted) !important;
}

body.dashboard-patch-active [data-dashboard-card='true'] {
  background: #ffffff !important;
  border: 1px solid var(--ui-line-strong) !important;
  color: var(--ui-text) !important;
  padding: 18px !important;
  min-height: auto !important;
}

body.dashboard-patch-active [data-dashboard-card='true'] [class*='bg-slate-950'],
body.dashboard-patch-active [data-dashboard-card='true'] [class*='bg-slate-900'],
body.dashboard-patch-active [data-dashboard-card='true'] [class*="bg-[#111827]"],
body.dashboard-patch-active [data-dashboard-card='true'] [class*="bg-[#0f172a]"] {
  background: #f8fafc !important;
  color: #17202a !important;
  border: 1px solid #e3e8ef !important;
}

body.dashboard-patch-active [data-dashboard-card='true'] .text-white,
body.dashboard-patch-active [data-dashboard-card='true'] .text-slate-300 {
  color: #17202a !important;
}

body.dashboard-patch-active [data-dashboard-card='true'] .text-slate-400,
body.dashboard-patch-active [data-dashboard-card='true'] .text-slate-500,
body.dashboard-patch-active [data-dashboard-card='true'] .text-\[\#86909C\] {
  color: var(--ui-muted) !important;
}

body.dashboard-patch-active [data-dashboard-card='true'] button {
  border-radius: 8px !important;
}

body.dashboard-patch-active [data-dashboard-secondary='true'] {
  display: none !important;
}

body.dashboard-patch-active aside {
  border-right-color: var(--ui-line-strong) !important;
}

body.dashboard-patch-active aside button {
  border-radius: 8px !important;
}

body.dashboard-patch-active aside button[class*="bg-[#F2F3F5]"] {
  background: #eef2f6 !important;
}

@media (max-width: 1023px) {
  body.dashboard-patch-active #root > .min-h-screen {
    padding: 0 !important;
  }

  body.dashboard-patch-active [data-dashboard-shell='true'] .max-w-7xl {
    max-width: 100% !important;
    width: 100% !important;
  }

  body.dashboard-patch-active [data-dashboard-shell='true'] > .flex-1 {
    padding: 14px !important;
  }

  body.dashboard-patch-active [data-dashboard-hero='true'],
  body.dashboard-patch-active [data-dashboard-card='true'] {
    padding: 16px !important;
  }

  #root > .min-h-screen {
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 100svh !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 24px 16px 36px !important;
  }

  #root .max-w-6xl {
    width: calc(100vw - 72px) !important;
    max-width: 408px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  #root .lg\:col-span-5 {
    width: 100% !important;
    justify-content: flex-start !important;
    transform: translateX(-42px) !important;
  }

  #root .max-w-md {
    max-width: 100% !important;
    width: calc(100vw - 72px) !important;
    border-radius: 30px !important;
    padding: 28px 22px !important;
    box-sizing: border-box !important;
  }

  #root input,
  #root button {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #root .max-w-md .justify-between {
    justify-content: flex-start !important;
    gap: 22px !important;
    flex-wrap: wrap !important;
  }

  #root .mt-16.lg\:hidden {
    margin-top: 18px !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #root .rounded-\[3rem\] {
    border-radius: 30px !important;
  }
}

@media (max-width: 430px) {
  #root > .min-h-screen {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  #root .max-w-md {
    padding: 26px 18px !important;
  }

  #root .max-w-6xl,
  #root .max-w-md {
    width: calc(100vw - 72px) !important;
  }
}
