:root {
  color-scheme: light;
}

.tuce-startup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #f5f7fb;
  opacity: 1;
  transition: opacity 180ms ease;
}

.tuce-startup--done {
  pointer-events: none;
  opacity: 0;
}

.tuce-startup__content {
  width: min(320px, calc(100vw - 48px));
  text-align: center;
}

.tuce-startup__logo {
  display: block;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.tuce-startup__title {
  margin: 0;
  color: #20283a;
  font: 600 22px/1.35 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.tuce-startup__status {
  min-height: 22px;
  margin: 9px 0 16px;
  color: #68748a;
  font: 14px/22px system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.tuce-startup__track {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #dfe5ef;
}

.tuce-startup__progress {
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: #3f6ff1;
  transition: width 160ms ease;
}

.tuce-startup--error .tuce-startup__progress {
  background: #d94343;
}

.tuce-install-button {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 10020;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #2f78e9;
  border-radius: 6px;
  background: #2878e8;
  color: #fff;
  box-shadow: 0 5px 18px rgba(30, 42, 70, 0.12);
  cursor: pointer;
  font: 500 14px/1 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.tuce-install-button[hidden] {
  display: none !important;
}

.tuce-startup ~ .tuce-install-button {
  visibility: hidden;
}

.tuce-install-button:hover,
.tuce-install-button--ready {
  border-color: #155fc9;
  background: #1769d8;
  color: #fff;
}

.tuce-install-button:focus-visible {
  outline: 3px solid rgba(63, 111, 241, 0.3);
  outline-offset: 2px;
}

.tuce-install-button__icon {
  font-size: 20px;
  line-height: 1;
}

.tuce-shell-notice {
  position: fixed;
  top: 66px;
  left: 50%;
  right: auto;
  transform: translate(-50%, -6px);
  z-index: 10021;
  max-width: min(360px, calc(100vw - 40px));
  padding: 10px 13px;
  border: 1px solid #d9e0eb;
  border-radius: 6px;
  background: #fff;
  color: #303a4e;
  box-shadow: 0 8px 24px rgba(30, 42, 70, 0.16);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  font: 14px/1.5 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.tuce-shell-notice--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tuce-release-notice {
  color: #303a4e;
  font: 14px/1.65 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.tuce-release-notice strong {
  display: block;
  margin-bottom: 10px;
  color: #20283a;
  font-size: 17px;
}

.tuce-release-notice p {
  margin: 7px 0;
}

@media (max-width: 640px) {
  .tuce-install-button {
    top: 8px;
    left: 50%;
    min-height: 36px;
    padding: 0 10px;
  }

  .tuce-shell-notice {
    top: 56px;
    left: 50%;
    right: auto;
    max-width: calc(100vw - 20px);
  }

  .home-top {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .home-top__panel {
    flex: 0 0 auto !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .home-top__hidden {
    position: static !important;
    padding: 0 !important;
  }

  .home-top__countdown {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0;
    padding-right: 0 !important;
  }

  .home-top__countdown .ant-statistic,
  .home-top__countdown .ant-statistic-content {
    width: 100% !important;
    max-width: 100%;
  }

  .home-top__countdown .ant-statistic-content-value {
    display: block !important;
    width: auto !important;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.4;
  }

  .home-top__panel--left > div:first-child > div:first-child {
    flex-wrap: wrap;
  }

  .home-top__panel--left
    > div:first-child
    > div:first-child
    > div:first-child {
    flex: 1 1 100%;
    min-width: 0;
  }

  .home-top__panel--left
    > div:first-child
    > div:first-child
    > div:nth-child(2) {
    width: 100% !important;
    min-height: 34px;
  }

  .home-top__panel--left
    > div:first-child
    > div:first-child
    > div:nth-child(2)
    > div {
    position: static !important;
    width: auto !important;
  }

  .home-top__actions,
  .home-top__meta {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  .home-top__actions .itmeTop,
  .home-top__meta .itmeTop {
    min-width: 88px !important;
    min-height: 34px;
    padding: 6px 8px !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .home-top__actions .itmeTop {
    flex: 1 1 calc(33.333% - 6px) !important;
  }

  .home-top__meta .itmeTop {
    flex: 1 1 calc(50% - 6px) !important;
  }

  .home-filterbar .home-row--between {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px !important;
  }

  .home-filterbar__scroll {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .home-footerbar__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px !important;
    padding: 8px 6px !important;
  }

  .home-footerbar__inner > .home-row,
  .home-footerbar__right {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
  }

  .home-footerbar__text {
    display: none !important;
  }
}

/* Match the PC tool column: only its inner icon list scrolls, invisibly. */
.main-context > .left {
  display: flex !important;
  flex: 0 0 var(--web-left-panel) !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

.main-context > .left > div:first-child {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.main-context > .left > div:first-child > .mobile-from {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.main-context > .left .listMainContext {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}

.main-context > .left .listMainContext::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Preserve the PC icon hit targets in the browser runtime. */
.icon-from img,
.icon-from .ant-image,
.icon-from .ant-image-img {
  pointer-events: auto !important;
  cursor: pointer !important;
}
