@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body[data-tuce-mobile-page="home"] {
  padding-bottom: 72px !important;
}

body[data-tuce-mobile-page="home"] div[style*="bottom: 35px"] {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  margin: 8px 12px 12px !important;
  padding: 8px 56px 8px 12px !important;
  background: #f4f6f8 !important;
  z-index: 1 !important;
  white-space: normal !important;
  line-height: 1.5 !important;
}

body[data-tuce-mobile-page="home"] .tuce-mobile-category-trigger {
  bottom: 16px !important;
}

[data-tuce-home-content] {
  display: flex;
  flex-direction: column;
}

[data-tuce-home-find] {
  display: grid;
  order: -1;
  gap: 10px;
  margin: 0 4px 12px;
}

[data-tuce-home-find-row] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

[data-tuce-home-search-wrap] {
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  padding: 0 12px;
  border: 1px solid rgba(22, 40, 68, .12);
  border-radius: 12px;
  background: #fff;
  color: #667085;
  font-size: 13px;
}

[data-tuce-home-search] {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: none;
  background: transparent;
  color: #1c2430;
  font: inherit;
}

[data-tuce-home-quick] {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(22, 40, 68, .12);
  border-radius: 12px;
  background: #fff;
  color: #243044;
  font: inherit;
  font-weight: 560;
  cursor: pointer;
}

[data-tuce-home-find][data-view="recent"] [data-tuce-home-quick="recent"],
[data-tuce-home-find][data-view="favorites"] [data-tuce-home-quick="favorites"] {
  border-color: #1676fd;
  background: #eaf2ff;
  color: #1676fd;
}

[data-tuce-home-heading] {
  margin: 4px 2px 0;
  color: #1c2430;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
}

[data-tuce-home-empty] {
  margin: 0 2px;
  color: #667085;
  font-size: 13px;
}

[data-tuce-home-content] .itme[data-tuce-home-hidden="1"] {
  display: none !important;
}

[data-tuce-home-content] button[data-tuce-home-native-quick] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

@media (min-width: 1024px) {
  html:not([data-tuce-theme-active="dark"]) [data-tuce-mobile-home] {
    background:
      radial-gradient(980px 420px at 0% -8%, rgba(22, 119, 255, .10), transparent 58%),
      radial-gradient(760px 380px at 100% 0%, rgba(99, 102, 241, .07), transparent 52%),
      #f4f6f8 !important;
    color: #1c2430;
    font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  [data-tuce-mobile-home] {
    font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  html:has(body[data-tuce-mobile-page="home"]),
  body[data-tuce-mobile-page="home"] {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  [data-tuce-home-header-inner] {
    padding: 16px 20px 8px !important;
  }

  .tuce-home-banner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  [data-tuce-home-summary-card],
  [data-tuce-home-actions-card] {
    border: 1px solid rgba(22, 40, 68, .08) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
  }

  [data-tuce-home-summary-card] {
    display: flex !important;
    flex: 0 1 420px !important;
    align-items: center !important;
    gap: 16px !important;
    width: auto !important;
    min-width: 300px !important;
    min-height: 72px !important;
    padding: 12px 16px !important;
    white-space: nowrap !important;
  }

  [data-tuce-home-summary-card] .ant-statistic-content-value {
    color: #1676fd !important;
    font-size: 26px !important;
    font-weight: 680 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    white-space: nowrap !important;
  }

  [data-tuce-home-summary-card] .tuce-template-total-bubble {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    height: auto !important;
    min-width: 124px !important;
    margin: 0 0 0 auto !important;
    padding: 8px 18px 8px 14px !important;
    overflow: visible !important;
    border: 0 !important;
    border-left: 1px solid #e8edf3 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  [data-tuce-home-summary-card] .tuce-template-total-label {
    color: #8b95a5 !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase;
  }

  [data-tuce-home-summary-card] .tuce-template-total-value {
    color: #1c2430 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: -.03em !important;
  }

  [data-tuce-home-summary-card] .tuce-template-new-badge {
    top: auto !important;
    bottom: 10px !important;
    right: 8px !important;
    min-width: 22px;
    height: 18px;
    transform: none !important;
    font-size: 10px;
  }

  [data-tuce-home-actions-card] {
    display: flex !important;
    flex: 1 1 520px !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 2px !important;
    width: auto !important;
    min-height: 72px !important;
    padding: 8px 10px !important;
  }

  [data-tuce-home-actions-card] > .flex {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 2px !important;
    width: 100% !important;
  }

  [data-tuce-home-actions-card] .itmeTop {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 34px;
    margin: 0 !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    background: transparent;
    color: #3d4a5c;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -.01em;
    transition: background .16s ease, color .16s ease;
  }

  [data-tuce-home-actions-card] .itmeTop:hover {
    background: #f3f6fb;
    color: #1676fd;
  }

  [data-tuce-home-actions-card] [data-tuce-action-group="library"] + [data-tuce-action-group="prefs"],
  [data-tuce-home-actions-card] [data-tuce-action-group="prefs"] + [data-tuce-action-group="account"],
  [data-tuce-home-actions-card] [data-tuce-action-group="library"] + [data-tuce-action-group="account"] {
    margin-left: 6px;
    padding-left: 14px !important;
    border-left: 1px solid #e8edf3;
  }

  [data-tuce-home-layout] {
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px !important;
  }

  [data-tuce-home-sidebar] {
    display: flex !important;
    flex-direction: column;
    width: 232px !important;
    min-width: 232px !important;
    margin: 0 0 0 16px !important;
    padding: 14px 10px 12px !important;
    border: 1px solid rgba(22, 40, 68, .08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    box-sizing: border-box !important;
  }

  [data-tuce-home-sidebar] > div[style*="padding-left"] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  [data-tuce-home-sidebar] > div[style*="padding-left"]::before {
    content: "Categories";
    display: block;
    padding: 2px 12px 10px;
    color: #8b95a5;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  [data-tuce-home-sidebar] .ant-btn {
    justify-content: flex-start !important;
    text-align: left !important;
    height: 36px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #3d4a5c !important;
    font-size: 13.5px !important;
    font-weight: 520 !important;
    letter-spacing: -.01em;
    transition: background .16s ease, color .16s ease;
  }

  [data-tuce-home-sidebar] .ant-btn > span {
    overflow: visible;
    white-space: nowrap;
  }

  [data-tuce-home-sidebar] .ant-btn-text:hover,
  [data-tuce-home-sidebar] .ant-btn:hover {
    background: #f3f6fb !important;
    color: #1676fd !important;
  }

  [data-tuce-home-sidebar] [data-tuce-cat-active],
  [data-tuce-home-sidebar] .ant-btn-primary {
    background: #eef4ff !important;
    color: #1676fd !important;
    font-weight: 620 !important;
  }

  [data-tuce-home-content] {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 16px 28px !important;
    box-sizing: border-box !important;
  }

  [data-tuce-home-content] .main,
  [data-tuce-home-content] .main_type2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    padding: 4px 4px 20px !important;
    overflow: visible !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  [data-tuce-home-content] .main > div:not(.itme):empty {
    display: none !important;
  }

  [data-tuce-home-content] .itme {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    height: auto !important;
    min-height: 118px !important;
    margin: 0 !important;
    padding: 12px 10px 10px !important;
    overflow: visible;
    border: 1px solid rgba(22, 40, 68, .08);
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    color: #243044;
    font-size: 13px;
    font-weight: 560;
    line-height: 1.25;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }

  [data-tuce-home-content] .itme:hover {
    transform: translateY(-3px);
    border-color: #c5d7f2;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .08);
  }

  [data-tuce-home-content] .itmeImage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto;
    padding: 0 !important;
    border-radius: 12px;
    background: #f5f7fb;
  }

  [data-tuce-home-content] .itmeImage img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
  }

  [data-tuce-home-sidebar] div[style*="bottom: 16px"],
  [data-tuce-home-sidebar] .tuce-multi-window-entry {
    position: static !important;
    display: flex !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding-top: 10px !important;
    border-top: 1px solid #eef1f5;
    z-index: 1 !important;
    visibility: visible !important;
  }

  [data-tuce-home-sidebar] .tuce-multi-window-entry .ant-btn,
  [data-tuce-home-sidebar] div[style*="bottom: 16px"] .ant-btn {
    width: 100% !important;
    justify-content: center !important;
    height: 36px !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    color: #3d4a5c !important;
    font-weight: 560 !important;
  }

  [data-tuce-home-layout] div[style*="bottom: 35px"] {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    margin: 4px 16px 24px !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #8b95a5 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }

  [data-tuce-home-layout] div[style*="bottom: 35px"] span {
    display: inline !important;
    white-space: normal !important;
  }

  html[data-tuce-theme-active="dark"] [data-tuce-home-summary-card],
  html[data-tuce-theme-active="dark"] [data-tuce-home-actions-card],
  html[data-tuce-theme-active="dark"] [data-tuce-home-sidebar],
  html[data-tuce-theme-active="dark"] [data-tuce-home-content] .itme {
    border-color: rgba(255, 255, 255, .08) !important;
    background: rgba(34, 37, 42, .92) !important;
    color: #e7edf5;
  }

  html[data-tuce-theme-active="dark"] [data-tuce-home-sidebar] .ant-btn {
    color: #c5d0dc !important;
  }

  html[data-tuce-theme-active="dark"] [data-tuce-home-sidebar] [data-tuce-cat-active],
  html[data-tuce-theme-active="dark"] [data-tuce-home-sidebar] .ant-btn-primary {
    background: rgba(22, 118, 253, .18) !important;
    color: #8fbaff !important;
  }

  html[data-tuce-theme-active="dark"] [data-tuce-home-summary-card] .tuce-template-total-bubble,
  html[data-tuce-theme-active="dark"] [data-tuce-home-actions-card] [data-tuce-action-group="library"] + [data-tuce-action-group="prefs"],
  html[data-tuce-theme-active="dark"] [data-tuce-home-actions-card] [data-tuce-action-group="prefs"] + [data-tuce-action-group="account"] {
    border-color: rgba(255, 255, 255, .08) !important;
  }

  html[data-tuce-theme-active="dark"] [data-tuce-home-summary-card] .tuce-template-total-value {
    color: #e7edf5 !important;
  }

  html[data-tuce-theme-active="dark"] [data-tuce-home-content] .itmeImage,
  html[data-tuce-theme-active="dark"] [data-tuce-home-actions-card] .itmeTop {
    background: rgba(255, 255, 255, .06);
  }

  html[data-tuce-theme-active="dark"] [data-tuce-home-search-wrap],
  html[data-tuce-theme-active="dark"] [data-tuce-home-quick] {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(34, 37, 42, .92);
    color: #c5d0dc;
  }

  html[data-tuce-theme-active="dark"] [data-tuce-home-search],
  html[data-tuce-theme-active="dark"] [data-tuce-home-heading] {
    color: #e7edf5;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  [data-tuce-home-content] .itme,
  [data-tuce-home-content] .itme:hover,
  [data-tuce-home-sidebar] .ant-btn,
  [data-tuce-home-actions-card] .itmeTop {
    transition: none !important;
    transform: none !important;
  }
}
