/* 28pc.bid homepage semantic color and icon enhancement. */
html[data-theme] body[data-page='home'] {
  --icon-blue: #1e6fc7;
  --icon-blue-soft: #eaf3ff;
  --icon-teal: #087d75;
  --icon-teal-soft: #e5f7f3;
  --icon-orange: #b9571f;
  --icon-orange-soft: #fff0e5;
  --icon-purple: #6846bd;
  --icon-purple-soft: #f1ebff;
  --icon-navy: #183957;
}

html[data-theme] body[data-page='home'] .c28-enhance-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke: currentColor;
}

html[data-theme] body[data-page='home'] .nav-draw {
  --group-color: var(--icon-blue);
  --group-soft: var(--icon-blue-soft);
}

html[data-theme] body[data-page='home'] .nav-analysis {
  --group-color: var(--icon-purple);
  --group-soft: var(--icon-purple-soft);
}

html[data-theme] body[data-page='home'] .nav-play {
  --group-color: var(--icon-orange);
  --group-soft: var(--icon-orange-soft);
}

html[data-theme] body[data-page='home'] .nav-help {
  --group-color: var(--icon-teal);
  --group-soft: var(--icon-teal-soft);
}

html[data-theme] body[data-page='home'] .feature-group .feature-group-label,
html[data-theme] body[data-page='home'] .feature-group .nav-icon {
  color: var(--group-color) !important;
}

html[data-theme] body[data-page='home'] .feature-group > div > a {
  position: relative;
  overflow: hidden;
  border-color: transparent !important;
  background: #fff !important;
}

html[data-theme] body[data-page='home'] .feature-group > div > a::after {
  content: '';
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--group-color);
  opacity: 0.28;
}

html[data-theme] body[data-page='home'] .feature-group > div > a:hover {
  background: var(--group-soft) !important;
  color: var(--group-color) !important;
}

html[data-theme] body[data-page='home'] .feature-group > div > a[aria-current='page'],
html[data-theme] body[data-page='home'] .feature-group > div > a.active {
  border-color: var(--group-color) !important;
  background: var(--group-color) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgb(24 57 87 / 15%);
}

html[data-theme] body[data-page='home'] .feature-group > div > a[aria-current='page'] .nav-icon,
html[data-theme] body[data-page='home'] .feature-group > div > a.active .nav-icon {
  color: #fff !important;
}

html[data-theme] body[data-page='home'] .equation b:nth-of-type(1) {
  background: linear-gradient(145deg, #4aa7f4, #1e6fc7) !important;
  box-shadow: inset 0 -7px 14px rgb(12 66 117 / 12%), 0 10px 22px rgb(30 111 199 / 18%) !important;
}

html[data-theme] body[data-page='home'] .equation b:nth-of-type(2) {
  background: linear-gradient(145deg, #39c69a, #13885f) !important;
  box-shadow: inset 0 -7px 14px rgb(11 88 59 / 12%), 0 10px 22px rgb(19 136 95 / 18%) !important;
}

html[data-theme] body[data-page='home'] .equation b:nth-of-type(3) {
  background: linear-gradient(145deg, #9a76ea, #6846bd) !important;
  box-shadow: inset 0 -7px 14px rgb(60 35 122 / 12%), 0 10px 22px rgb(104 70 189 / 18%) !important;
}

html[data-theme] body[data-page='home'] .equation em {
  background: linear-gradient(145deg, #f39a4b, #c65b20) !important;
  box-shadow: inset 0 -7px 14px rgb(125 49 13 / 12%), 0 10px 22px rgb(198 91 32 / 19%) !important;
}

html[data-theme] body[data-page='home'] .live-labels > * {
  display: inline-flex !important;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 11px !important;
  border: 1px solid transparent !important;
  font-weight: 760;
}

html[data-theme] body[data-page='home'] .live-labels > :nth-child(1) {
  border-color: #cfe3fb !important;
  background: var(--icon-blue-soft) !important;
  color: var(--icon-blue) !important;
}

html[data-theme] body[data-page='home'] .live-labels > :nth-child(2) {
  border-color: #d9cff9 !important;
  background: var(--icon-purple-soft) !important;
  color: var(--icon-purple) !important;
}

html[data-theme] body[data-page='home'] .live-labels > :nth-child(3) {
  border-color: #ffd4b8 !important;
  background: var(--icon-orange-soft) !important;
  color: var(--icon-orange) !important;
}

html[data-theme] body[data-page='home'] .live-labels > :nth-child(4) {
  border-color: #c3e9e2 !important;
  background: var(--icon-teal-soft) !important;
  color: var(--icon-teal) !important;
}

html[data-theme] body[data-page='home'] .history-panel .section-heading::before {
  content: none !important;
}

html[data-theme] body[data-page='home'] .history-panel .section-heading .c28-enhanced-heading,
html[data-theme] body[data-page='home'] .workspace > aside .panel h2 {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
}

html[data-theme] body[data-page='home'] .history-panel .section-heading .c28-enhanced-heading {
  margin: 0;
  color: var(--icon-blue);
  font-size: 21px;
  font-weight: 820;
}

html[data-theme] body[data-page='home'] .history-panel .data-table th {
  border-color: #2a4a68 !important;
  background: var(--icon-navy) !important;
  color: #f5f9fd !important;
}

html[data-theme] body[data-page='home'] .history-panel .data-table tbody tr:first-child td {
  background: #f1f7ff !important;
}

html[data-theme] body[data-page='home'] .tool-cards > a {
  --tool-color: var(--icon-blue);
  --tool-soft: var(--icon-blue-soft);
  display: flex !important;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px !important;
  border-color: #cfe3fb !important;
  background: #f8fbff !important;
  color: var(--tool-color) !important;
}

html[data-theme] body[data-page='home'] .tool-cards > a:nth-child(2) {
  --tool-color: var(--icon-purple);
  --tool-soft: var(--icon-purple-soft);
  border-color: #d9cff9 !important;
  background: #fbf9ff !important;
}

html[data-theme] body[data-page='home'] .tool-cards > a:nth-child(3) {
  --tool-color: var(--icon-orange);
  --tool-soft: var(--icon-orange-soft);
  border-color: #ffd4b8 !important;
  background: #fffaf6 !important;
}

html[data-theme] body[data-page='home'] .tool-cards > a > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--tool-soft);
  color: var(--tool-color);
}

html[data-theme] body[data-page='home'] .tool-cards > a > span .c28-enhance-icon {
  width: 19px;
  height: 19px;
}

html[data-theme] body[data-page='home'] .tool-cards > a h2 {
  margin: 0;
  color: inherit;
}

html[data-theme] body[data-page='home'] .tool-cards > a:hover {
  border-color: var(--tool-color) !important;
  background: var(--tool-soft) !important;
  color: var(--tool-color) !important;
  box-shadow: 0 10px 22px rgb(24 57 87 / 9%);
}

html[data-theme] body[data-page='home'] .workspace > aside .panel {
  border-top: 4px solid var(--panel-color, var(--icon-teal)) !important;
}

html[data-theme] body[data-page='home'] .workspace > aside .panel:nth-of-type(1) {
  --panel-color: var(--icon-purple);
  background: linear-gradient(180deg, #fbf9ff, #fff 38%) !important;
}

html[data-theme] body[data-page='home'] .workspace > aside .panel:nth-of-type(1) h2 {
  color: var(--icon-purple);
}

html[data-theme] body[data-page='home'] .workspace > aside .panel:nth-of-type(2) {
  --panel-color: var(--icon-orange);
  background: linear-gradient(180deg, #fff9f4, #fff 38%) !important;
}

html[data-theme] body[data-page='home'] .workspace > aside .panel:nth-of-type(2) h2 {
  color: var(--icon-orange);
}

html[data-theme] body[data-page='home'] .workspace > aside .panel:nth-of-type(3) {
  --panel-color: var(--icon-teal);
  background: linear-gradient(180deg, #f4fbfa, #fff 38%) !important;
}

html[data-theme] body[data-page='home'] .workspace > aside .panel:nth-of-type(3) h2 {
  color: var(--icon-teal);
}

html[data-theme='dark'] body[data-page='home'] .feature-group > div > a,
html[data-theme='dark'] body[data-page='home'] .tool-cards > a,
html[data-theme='dark'] body[data-page='home'] .workspace > aside .panel {
  background: #182229 !important;
}

html[data-theme='dark'] body[data-page='home'] .feature-group > div > a:hover {
  background: #223039 !important;
}

html[data-theme='dark'] body[data-page='home'] .history-panel .data-table tbody tr:first-child td {
  background: #17283a !important;
}

@media (max-width: 650px) {
  html[data-theme] body[data-page='home'] .live-labels > * {
    min-height: 27px;
    gap: 4px;
    padding: 4px 7px !important;
  }

  html[data-theme] body[data-page='home'] .tool-cards > a {
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme] body[data-page='home'] .feature-group > div > a,
  html[data-theme] body[data-page='home'] .tool-cards > a {
    transition: none !important;
  }
}
