:root {
  color-scheme: light;
  --ink: #111c3d;
  --muted: #617197;
  --soft: #edf5ff;
  --line: rgba(102, 129, 190, 0.2);
  --blue: #286dff;
  --blue-2: #48c9ff;
  --violet: #8d5bff;
  --purple: #b251ff;
  --rose: #f04470;
  --orange: #ff9f2f;
  --green: #2bd39c;
  --navy: #08194a;
  --deep: #06102f;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 50px rgba(16, 44, 110, 0.18);
}

/* Runtime-managed announcements and fixed advertising slots. */
.runtime-announcements {
  position: relative;
  z-index: 12;
  overflow: hidden;
  color: #edf5ff;
  background: linear-gradient(90deg, #07173d 0%, #0a2b62 56%, #0b456c 100%);
  border-bottom: 1px solid rgba(101, 194, 255, 0.36);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(3, 17, 48, 0.18);
}

.runtime-announcements::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73, 201, 255, 0.8), transparent);
  content: "";
  pointer-events: none;
}

.runtime-announcements-inner {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 28px;
}

.runtime-announcements-inner > strong {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-shadow: 0 1px 8px rgba(76, 196, 255, 0.22);
  border-right: 1px solid rgba(145, 200, 255, 0.3);
}

.runtime-announcements-inner > strong::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #ff5268;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255, 82, 104, 0.14),
    0 0 15px rgba(255, 82, 104, 0.72);
  content: "";
}

.runtime-announcement-viewport {
  min-width: 0;
  height: 28px;
  flex: 1;
  overflow: hidden;
}

.runtime-announcement-list {
  min-width: 0;
  transition: transform 420ms cubic-bezier(0.22, 0.7, 0.28, 1);
  will-change: transform;
}

.runtime-announcement-list.without-transition {
  transition: none;
}

.runtime-announcement-item {
  min-width: 0;
  height: 28px;
  display: flex;
  align-items: center;
  width: 100%;
  color: rgba(238, 246, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 1px 5px rgba(0, 14, 45, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 160ms ease;
}

.runtime-announcement-item:hover {
  color: #71e1ff;
}

.runtime-ad {
  padding: 12px 28px;
  background: #f2f7fd;
}

.runtime-ad > a,
.runtime-ad > div {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  color: #17294d;
  background: #fff;
  border: 1px solid rgba(101, 132, 188, 0.2);
  border-radius: 6px;
  box-shadow: 0 7px 20px rgba(17, 44, 87, 0.06);
}

.runtime-ad img {
  flex: 0 0 auto;
  width: 148px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}

.runtime-ad span,
.runtime-ad strong,
.runtime-ad em,
.runtime-ad small {
  display: block;
  font-style: normal;
}

.runtime-ad small {
  margin-bottom: 4px;
  color: #8793a8;
  font-size: 10px;
}

.runtime-ad strong {
  font-size: 15px;
}

.runtime-ad em {
  margin-top: 5px;
  color: #687792;
  font-size: 12px;
}

.runtime-ad-site-footer {
  padding-top: 20px;
  padding-bottom: 20px;
}

.runtime-wide-image-ad:not(.runtime-page-image-ad) > a,
.runtime-wide-image-ad:not(.runtime-page-image-ad) > div {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 20 / 3;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #071b4d;
  border-color: rgba(93, 153, 225, 0.28);
  border-radius: 7px;
  box-shadow: 0 12px 34px rgba(8, 31, 84, 0.14);
}

.runtime-wide-image-ad:not(.runtime-page-image-ad) > a::before,
.runtime-wide-image-ad:not(.runtime-page-image-ad) > div::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  background-image:
    linear-gradient(rgba(3, 14, 45, 0.4), rgba(3, 14, 45, 0.4)),
    var(--runtime-ad-image, linear-gradient(#071b4d, #071b4d));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(12px) saturate(0.82);
  transform: scale(1.04);
}

.runtime-wide-image-ad:not(.runtime-page-image-ad) img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

.runtime-wide-image-ad:not(.runtime-page-image-ad) span {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 20px 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(4, 17, 52, 0.86));
}

.runtime-wide-image-ad:not(.runtime-page-image-ad) small,
.runtime-wide-image-ad:not(.runtime-page-image-ad) em {
  color: rgba(255, 255, 255, 0.76);
}

.runtime-wide-image-ad:not(.runtime-page-image-ad) strong {
  color: #fff;
  font-size: 18px;
}

.homepage-text-ads {
  margin: 0 28px 6px;
}

.runtime-text-ads-inner {
  overflow: hidden;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(102, 129, 190, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 44, 110, 0.09);
}

.runtime-text-ad-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px 6px;
}

.homepage-text-ads .runtime-text-ad-grid {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.runtime-page-text-ads {
  margin: 8px 0 18px;
}

.runtime-text-ad-grid a {
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  overflow: hidden;
  color: var(--text-ad-color, #29416f);
  font-size: var(--text-ad-font-size, 14px);
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 4px;
  transition: color 160ms ease, background 160ms ease;
}

.runtime-text-ad-grid a:hover,
.runtime-text-ad-grid a:focus-visible {
  color: #fff;
  background: #3274df;
  outline: none;
}

.runtime-page-image-ad {
  margin: 18px 0 8px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 7px;
}

.runtime-page-image-ad > a,
.runtime-page-image-ad > div {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 20 / 3;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #071b4d;
  border-color: rgba(93, 153, 225, 0.28);
  border-radius: 7px;
  box-shadow: 0 12px 34px rgba(8, 31, 84, 0.14);
}

.runtime-page-image-ad > a::before,
.runtime-page-image-ad > div::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  background-image:
    linear-gradient(rgba(3, 14, 45, 0.4), rgba(3, 14, 45, 0.4)),
    var(--runtime-ad-image, linear-gradient(#071b4d, #071b4d));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(12px) saturate(0.82);
  transform: scale(1.04);
}

.runtime-page-image-ad img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.runtime-page-image-ad span {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 20px 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(4, 17, 52, 0.86));
}

.runtime-page-image-ad small,
.runtime-page-image-ad em {
  color: rgba(255, 255, 255, 0.76);
}

.runtime-page-image-ad strong {
  color: #fff;
  font-size: 18px;
}

.hero-section.has-runtime-carousel > .hero-copy {
  display: none;
}

.hero-section.has-runtime-carousel > .runtime-hero-carousel {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: stretch;
  aspect-ratio: auto;
  z-index: 1;
}

@media (min-width: 1240px) and (max-width: 1319px) {
  .hero-section.has-runtime-carousel {
    grid-template-columns: 486px minmax(0, 1fr) clamp(280px, 25vw, 320px);
  }
}

@media (min-width: 1320px) {
  .hero-section.has-runtime-carousel {
    grid-template-columns: 444px minmax(420px, 1fr) clamp(320px, 22vw, 420px);
  }
}

.runtime-hero-carousel,
.runtime-carousel-track,
.runtime-carousel-slide,
.runtime-carousel-slide > a,
.runtime-carousel-slide > div,
.runtime-carousel-slide picture {
  width: 100%;
  height: 100%;
}

.runtime-hero-carousel {
  position: relative;
  height: auto;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(137, 203, 255, 0.42);
  border-radius: 8px;
  background: #071b4d;
  box-shadow: 0 18px 42px rgba(3, 18, 68, 0.32);
}

.runtime-carousel-slide {
  position: absolute;
  inset: 0;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.runtime-carousel-slide::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: 0;
  background-image:
    linear-gradient(rgba(2, 10, 34, 0.42), rgba(2, 10, 34, 0.42)),
    var(--runtime-carousel-image);
  background-position: var(--runtime-carousel-position, center center);
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(14px) saturate(0.78);
  transform: scale(1.05);
}

.runtime-carousel-slide.active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.runtime-carousel-slide > a,
.runtime-carousel-slide > div,
.runtime-carousel-slide picture {
  display: block;
}

.runtime-carousel-slide > a,
.runtime-carousel-slide > div {
  position: relative;
  z-index: 1;
}

.runtime-carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.runtime-carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: rgba(5, 17, 49, 0.46);
  border-radius: 18px;
  transform: translateX(-50%);
  backdrop-filter: blur(7px);
}

.runtime-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.56);
  border: 0;
  border-radius: 50%;
  transition: width 180ms ease, background 180ms ease;
}

.runtime-carousel-dots button.active {
  width: 24px;
  background: #fff;
  border-radius: 5px;
}

@media (max-width: 1080px) {
  .hero-section.has-runtime-carousel > .runtime-hero-carousel {
    align-self: start;
    aspect-ratio: 6 / 5;
  }

  .runtime-hero-carousel {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .runtime-carousel-slide::before {
    background-image:
      linear-gradient(rgba(2, 10, 34, 0.42), rgba(2, 10, 34, 0.42)),
      var(--runtime-carousel-mobile-image, var(--runtime-carousel-image));
  }

  .runtime-announcements-inner {
    gap: 12px;
    padding: 7px 14px;
  }

  .runtime-announcements-inner > strong {
    padding-right: 12px;
  }

  .runtime-announcement-item {
    font-size: 12px;
  }

  .runtime-ad {
    padding: 9px 12px;
  }

  .runtime-ad > a,
  .runtime-ad > div {
    min-height: 66px;
    gap: 12px;
    padding: 10px 12px;
  }

  .runtime-ad img {
    width: 92px;
    height: 48px;
  }

  .runtime-page-image-ad {
    margin: 12px 0 6px;
    padding: 0;
  }

  .runtime-page-image-ad > a,
  .runtime-page-image-ad > div {
    min-height: 48px;
    height: auto;
    aspect-ratio: 20 / 3;
    padding: 0;
  }

  .runtime-page-image-ad img {
    width: 100%;
    height: 100%;
  }

  .runtime-page-image-ad span {
    padding: 22px 12px 9px;
  }

  .runtime-page-image-ad strong {
    font-size: 14px;
  }

  .runtime-hero-carousel {
    height: auto;
    min-height: 0;
  }

  .runtime-carousel-dots {
    bottom: 12px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family:
    "Inter",
    "DIN Alternate",
    "Noto Sans SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  background:
    radial-gradient(circle at 74% 20%, rgba(78, 218, 255, 0.28), transparent 30%),
    linear-gradient(180deg, #f5f8ff 0%, #eaf5ff 44%, #e9fbff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-frame {
  width: min(1920px, calc(100% - 16px));
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #061a49 0%, #132b77 46%, #79dcf0 100%);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 35, 84, 0.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 14px 28px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 14, 52, 0.96), rgba(8, 37, 102, 0.96)),
    radial-gradient(circle at 70% 0%, rgba(105, 86, 255, 0.32), transparent 28%);
  border-bottom: 1px solid rgba(121, 172, 255, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 30px);
  min-width: 0;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 42px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
}

.main-nav a.active,
.main-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, #2b8dff, #7862ff 62%, #a956ff);
  box-shadow: 0 0 24px rgba(78, 124, 255, 0.62);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 305px;
}

.homepage-page .search-box {
  display: none;
}

.homepage-page .header-actions {
  min-width: 0;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 80;
  width: 100%;
  max-height: 310px;
  padding: 7px;
  overflow: auto;
  color: #21345d;
  background: #fff;
  border: 1px solid #dce4f2;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(13, 31, 65, 0.2);
}

.site-search-results a,
.site-search-results > span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  color: #263b69;
  font-size: 13px;
  font-weight: 750;
  border-radius: 5px;
}

.site-search-results a:hover { color: #165ed5; background: #f1f6ff; }
.site-search-results > span { color: #7a879f; font-weight: 600; }

.icon-button { position: relative; }
.notification-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  background: #e43d4b;
  border: 2px solid #101e3c;
  border-radius: 9px;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 48px;
  z-index: 85;
  width: min(360px, calc(100vw - 24px));
  max-height: min(480px, calc(100vh - 100px));
  padding: 10px;
  overflow: auto;
  color: #1d315d;
  background: #fff;
  border: 1px solid #dce4f2;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(13, 31, 65, 0.24);
}

.notification-panel > strong { display: block; padding: 7px 9px 11px; font-size: 15px; border-bottom: 1px solid #edf1f7; }
.notification-panel > a,
.notification-panel > div { display: grid; gap: 4px; padding: 11px 9px; color: #273c69; border-bottom: 1px solid #edf1f7; }
.notification-panel > a:hover { background: #f5f8fd; }
.notification-panel b { font-size: 13px; }
.notification-panel span,
.notification-panel p { margin: 0; color: #75839b; font-size: 12px; line-height: 1.6; }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 245px;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 46px 0 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.search-box svg {
  position: absolute;
  right: 17px;
  color: rgba(255, 255, 255, 0.62);
}

.icon-button,
.avatar-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: transparent;
  border: 0;
}

.icon-button svg {
  width: 27px;
  height: 27px;
}

.avatar-button {
  border-radius: 50%;
  background: linear-gradient(135deg, #73a8ff, #4d6cf2);
  box-shadow: 0 0 20px rgba(94, 143, 255, 0.38);
}

.avatar-button svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.3;
}

.avatar-button.user-authenticated {
  background: linear-gradient(135deg, #d73742, #a62531);
  box-shadow: 0 0 0 3px rgba(215, 55, 66, 0.12), 0 0 20px rgba(215, 55, 66, 0.25);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(420px, 1.42fr) minmax(280px, 0.72fr);
  gap: 18px;
  min-height: 360px;
  padding: 24px 28px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 35% 63%, rgba(0, 210, 255, 0.24), transparent 19%),
    radial-gradient(circle at 68% 14%, rgba(170, 70, 255, 0.32), transparent 21%),
    linear-gradient(120deg, rgba(4, 22, 73, 0.96), rgba(11, 54, 142, 0.92) 48%, rgba(28, 24, 116, 0.94));
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(92, 183, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 183, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 48% 45%, #000 0%, transparent 74%);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 36%;
  bottom: 15px;
  width: 42%;
  height: 80px;
  background:
    radial-gradient(ellipse at center, rgba(54, 226, 255, 0.58), transparent 52%),
    repeating-radial-gradient(ellipse at center, rgba(58, 194, 255, 0.38) 0 2px, transparent 2px 16px);
  transform: perspective(500px) rotateX(64deg);
  filter: blur(0.2px);
  opacity: 0.86;
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.hero-sidebar {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  padding: 28px 0 36px 26px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #88f4ff;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 2.65vw, 48px);
  line-height: 1.12;
  font-weight: 950;
  text-shadow: 0 0 24px rgba(92, 190, 255, 0.18);
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: clamp(25px, 2.1vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
}

.hero-desc {
  max-width: 530px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(20, 55, 160, 0.32);
}

.primary-cta {
  background: linear-gradient(135deg, #20b8ff, #356cff 58%, #7c54ff);
}

.secondary-cta {
  background: linear-gradient(135deg, #7569ff, #b241ff);
}

.primary-cta svg,
.secondary-cta svg {
  width: 22px;
  height: 22px;
}

.hero-glow {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 16px #fff,
    0 0 34px #9d6cff,
    0 0 80px #32d6ff;
  pointer-events: none;
}

.hero-glow-a {
  top: 40px;
  left: 74%;
}

.hero-glow-b {
  top: 126px;
  left: 29%;
  width: 8px;
  height: 8px;
  background: #a45dff;
}

.hero-visual {
  align-self: stretch;
  min-width: 0;
  min-height: 330px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  transform: perspective(500px) rotateX(66deg);
  border: 1px solid rgba(77, 215, 255, 0.35);
  box-shadow: 0 0 24px rgba(60, 211, 255, 0.24);
  pointer-events: none;
}

.ring-a {
  bottom: 32px;
  width: 430px;
  height: 150px;
}

.ring-b {
  bottom: 5px;
  width: 570px;
  height: 190px;
  border-color: rgba(157, 102, 255, 0.32);
}

.lottery-ball {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    inset -14px -18px 32px rgba(0, 0, 0, 0.24),
    inset 10px 9px 20px rgba(255, 255, 255, 0.36),
    0 20px 36px rgba(0, 19, 78, 0.28),
    0 0 34px currentColor;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  animation: floatBall 5s ease-in-out infinite;
}

.ball-xl {
  left: 16%;
  top: 52px;
  width: 94px;
  height: 94px;
  font-size: 42px;
}

.ball-lg {
  left: 9%;
  top: 168px;
  width: 82px;
  height: 82px;
  font-size: 36px;
  animation-delay: -1.4s;
}

.ball-md {
  left: 0;
  top: 133px;
  width: 58px;
  height: 58px;
  font-size: 23px;
  animation-delay: -2.1s;
}

.ball-sm {
  left: 27%;
  top: 212px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  animation-delay: -3s;
}

.ball-purple {
  background: radial-gradient(circle at 33% 25%, #fff4ff 0 8%, #d178ff 24%, #8538e7 70%, #4f24a7 100%);
  color: #f0d3ff;
}

.ball-green {
  background: radial-gradient(circle at 34% 25%, #f0fff7 0 8%, #35e0a5 25%, #0a9b6e 70%, #08624e 100%);
  color: #d7fff1;
}

.ball-blue {
  background: radial-gradient(circle at 34% 25%, #f3fbff 0 8%, #58caff 25%, #256bda 70%, #133f9a 100%);
  color: #d9f7ff;
}

.ball-orange {
  background: radial-gradient(circle at 34% 25%, #fff8ee 0 8%, #ffb443 25%, #ea6f1c 70%, #9f3e0c 100%);
  color: #fff2d8;
}

.glass-panel {
  width: min(660px, 100%);
  padding: 22px;
  border: 1px solid rgba(137, 203, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 111, 232, 0.46), rgba(44, 64, 174, 0.46)),
    rgba(4, 22, 82, 0.36);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09) inset,
    0 0 42px rgba(76, 181, 255, 0.38),
    0 22px 55px rgba(8, 23, 85, 0.34);
  backdrop-filter: blur(18px);
}

.live-overview {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (min-width: 1081px) {
  .live-overview {
    width: 80%;
    margin-left: auto;
  }

  .hero-section.has-runtime-carousel .live-overview {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

.live-overview header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.live-overview header p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.live-overview header strong {
  font-size: 22px;
}

.live-overview header span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.number-row,
.mini-number-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.num,
.number-row b,
.ticker-content b,
.compact-numbers span,
.compact-numbers b,
.mini-number-row span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #fff;
  font-weight: 950;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 7px rgba(255, 255, 255, 0.42),
    0 0 12px rgba(255, 255, 255, 0.14);
}

.num.red,
.compact-numbers span,
.ticker-content b.red {
  background: linear-gradient(135deg, #ff6c87, #e92555);
}

.num.blue,
.compact-numbers b,
.ticker-content b {
  background: linear-gradient(135deg, #6fcaff, #316cff);
}

.num.orange,
.mini-number-row span:nth-child(2) {
  background: linear-gradient(135deg, #ffc05f, #ff8035);
}

.num.green {
  background: linear-gradient(135deg, #5be7bd, #16b982);
}

.num.violet,
.mini-number-row span:nth-child(4) {
  background: linear-gradient(135deg, #bb78ff, #7d48ed);
}

.number-row em,
.compact-numbers em,
.ticker-content em {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  font-weight: 900;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.9fr;
  gap: 12px;
  margin-top: 16px;
}

.overview-grid > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.overview-grid small {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.mini-number-row {
  gap: 9px;
}

.mini-number-row span {
  width: 30px;
  height: 30px;
  font-size: 14px;
  background: linear-gradient(135deg, #ff6d86, #e92958);
}

.mini-number-row.cool span {
  background: linear-gradient(135deg, #76d5ff, #5377ff);
}

.donut-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 10px;
}

.donut-card small {
  grid-column: 1 / -1;
}

.donut {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: conic-gradient(#54d7ff 0 var(--a), #9d62ff var(--a) 100%);
  box-shadow: 0 0 28px rgba(87, 214, 255, 0.22);
  mask: radial-gradient(circle, transparent 45%, #000 47%);
}

.donut-labels {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 700;
}

.live-lottery-grid {
  min-height: 0;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.live-lottery-grid > .hero-data-state {
  grid-column: 1 / -1;
  align-self: center;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.live-lottery-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(144, 207, 255, 0.26);
  border-radius: 7px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(25, 52, 143, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.live-lottery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-lottery-head span,
.live-lottery-head small {
  display: block;
}

.live-lottery-head span {
  font-size: 16px;
  font-weight: 900;
}

.live-lottery-head small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

.live-lottery-head > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #ff6b7f, #d82d59);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.live-lottery-card[data-live-lottery="dlt"] .live-lottery-head > i {
  background: linear-gradient(135deg, #5ccfff, #3267e8);
}

.live-draw-block > small,
.live-metric > small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
}

.live-draw-numbers,
.live-stat-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.live-draw-numbers .num {
  width: 26px;
  height: 26px;
  font-size: 11px;
  box-shadow: inset 0 1px 5px rgba(255, 255, 255, 0.36), 0 4px 10px rgba(4, 16, 66, 0.24);
}

.live-draw-numbers em {
  margin: 0 1px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.live-metric-grid {
  min-height: 0;
  display: grid;
  align-content: space-between;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 6px;
}

.live-metric {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.live-hot {
  grid-column: 1 / -1;
}

.live-stat-numbers {
  gap: 5px;
}

.live-stat-numbers b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 950;
}

.live-stat-numbers b.red {
  background: linear-gradient(135deg, #ff7088, #e22b55);
}

.live-stat-numbers b.blue {
  background: linear-gradient(135deg, #6bd3ff, #3869e8);
}

.live-stat-numbers.omission b {
  opacity: 0.78;
  filter: saturate(0.76);
}

.live-odd-even strong {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
}

.live-odd-track {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  background: rgba(93, 218, 255, 0.7);
  border-radius: 5px;
}

.live-odd-track i {
  width: var(--odd);
  height: 100%;
  display: block;
  background: #9d63ff;
}

@media (min-width: 1281px) {
  .live-lottery-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.95fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 14px;
  }

  .live-lottery-head {
    grid-column: 1 / -1;
  }

  .live-draw-block {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .live-metric-grid {
    grid-column: 2;
    grid-row: 2;
    align-content: start;
  }
}

.hero-sidebar {
  display: grid;
  align-content: stretch;
  gap: 10px;
}

.side-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.side-card-title,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.side-card-title span,
.panel-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.side-card-title svg,
.panel-heading h2 svg {
  width: 20px;
  height: 20px;
}

.side-card-title a,
.panel-heading a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.focus-list,
.update-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.focus-list li,
.update-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.focus-list li {
  min-height: 50px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.focus-list li:first-child {
  padding-top: 0;
}

.focus-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.focus-list a,
.update-list span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.focus-list a {
  display: grid;
  gap: 4px;
}

.focus-list a strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.focus-list a small {
  overflow: hidden;
  color: rgba(182, 220, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  padding: 0 7px;
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

.tag.hot {
  background: #ef476f;
}

.tag.data {
  background: #498cff;
}

.tag.analysis {
  background: #6764ff;
}

.tag.tool {
  background: #2fc4a4;
}

.calendar-grid {
  display: block;
}

.draw-calendar-period,
.draw-day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.draw-calendar-period {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.draw-calendar-period strong {
  color: #fff;
  font-size: 12px;
}

.draw-date-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(32px, 1fr));
  gap: 5px;
}

.draw-date-tabs button {
  position: relative;
  min-width: 0;
  height: 57px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(7, 31, 91, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.draw-date-tabs button:hover,
.draw-date-tabs button.active {
  color: #fff;
  background: linear-gradient(145deg, rgba(42, 161, 255, 0.78), rgba(69, 101, 255, 0.82));
  border-color: rgba(145, 218, 255, 0.68);
}

.draw-date-tabs small {
  font-size: 10px;
  font-weight: 700;
}

.draw-date-tabs strong {
  font-size: 15px;
}

.draw-day-detail {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.draw-day-summary strong {
  color: #fff;
  font-size: 13px;
}

.draw-day-summary span {
  color: #8de9ff;
  font-size: 11px;
  font-weight: 800;
}

.draw-time-list {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.draw-time-group {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.draw-time-group time {
  padding-top: 4px;
  color: #8de9ff;
  font-size: 11px;
  font-weight: 900;
}

.draw-time-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.draw-time-group a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.draw-time-group a:hover {
  color: #fff;
  background: rgba(43, 148, 255, 0.44);
}

.ticker-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  height: 48px;
  margin: 0 28px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(90deg, rgba(19, 49, 136, 0.96), rgba(85, 94, 217, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  transform: translateY(1px);
  scroll-margin-top: 12px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.ticker-track {
  overflow: hidden;
  min-width: 0;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  animation: tickerMove 26s linear infinite;
}

.ticker-content span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.ticker-content strong {
  font-size: 14px;
}

.ticker-content b {
  width: 24px;
  height: 24px;
  font-size: 13px;
}

.lottery-carousel {
  position: relative;
  margin: 0 28px 6px;
}

.lottery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.lottery-strip::-webkit-scrollbar {
  display: none;
}

.lottery-strip.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.draw-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  flex: 0 0 calc((100% - 24px) / 4);
  min-width: 360px;
  min-height: 120px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(102, 129, 190, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  user-select: none;
  cursor: pointer;
}

.draw-card.active {
  background: linear-gradient(135deg, #fff, #f5f8ff);
}

.draw-card img,
.lottery-emblem {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.lottery-emblem {
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 950;
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.34), 0 10px 20px rgba(34, 68, 158, 0.2);
}

.lottery-emblem.star {
  background: linear-gradient(135deg, #ffc24b, #f24b73 50%, #6247ff);
}

.lottery-emblem.cyan {
  background: linear-gradient(135deg, #21debd, #2a93ff);
}

.lottery-emblem.blue {
  background: linear-gradient(135deg, #39c9ff, #326dff);
}

.lottery-emblem.violet {
  background: linear-gradient(135deg, #a77cff, #5945f5);
}

.lottery-emblem.teal {
  background: linear-gradient(135deg, #51e3d3, #2387ff);
}

.draw-card h2 {
  margin: 0 0 5px;
  color: #13245a;
  font-size: 17px;
  font-weight: 950;
}

.draw-card p,
.draw-card small {
  margin: 0;
  color: #7887aa;
  font-size: 13px;
  font-weight: 700;
}

.compact-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 7px;
}

.compact-numbers span,
.compact-numbers b {
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-style: normal;
}

.compact-numbers.single b {
  background: linear-gradient(135deg, #ffb347, #ff7c25);
}

.draw-card .draw-detail-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #8393b9;
  background: #f2f6ff;
  border: 0;
  border-radius: 50%;
}

.draw-card .draw-detail-link:hover,
.draw-card .draw-detail-link:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #3b8cff, #7a5cff);
  outline: none;
}

.lottery-scroll-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 68px;
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(105, 82, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 48, 126, 0.28);
  transform: translateY(-50%);
}

.lottery-scroll-btn:hover,
.lottery-scroll-btn:focus-visible {
  background: linear-gradient(135deg, #2bbcff, #6f5cff);
  outline: none;
}

.lottery-scroll-btn.prev {
  left: -8px;
}

.lottery-scroll-btn.prev svg {
  transform: rotate(180deg);
}

.lottery-scroll-btn.next {
  right: -8px;
}

.lottery-scroll-btn:disabled {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.77fr;
  gap: 6px;
  margin: 0 28px 6px;
}

.content-panel,
.news-band {
  min-width: 0;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid rgba(102, 129, 190, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-heading {
  margin-bottom: 14px;
}

.panel-heading h2 {
  color: #14265d;
  font-size: 18px;
}

.panel-heading h2 svg {
  color: #5588ff;
}

.panel-heading a {
  color: #8694b7;
}

.prize-panel table {
  overflow: hidden;
  border-radius: 8px;
  font-size: 14px;
}

.prize-panel th,
.prize-panel td {
  padding: 12px 10px;
  text-align: left;
  white-space: nowrap;
}

.prize-panel th {
  color: #7583a8;
  font-weight: 900;
  background: #eef4ff;
}

.prize-panel td {
  color: #172550;
  font-weight: 700;
  border-top: 1px solid rgba(105, 124, 168, 0.1);
}

.money {
  color: #e11d48 !important;
}

.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-row::-webkit-scrollbar {
  display: none;
}

.tab-row button {
  min-width: 86px;
  height: 32px;
  padding: 0 12px;
  color: #68799f;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.tab-row button.active {
  color: var(--blue);
  background: #eaf2ff;
}

.chart-wrap {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 16px;
  align-items: end;
}

.chart-wrap h3 {
  margin: 0 0 4px;
  color: #263469;
  font-size: 14px;
  font-weight: 900;
}

#trendChart {
  width: 100%;
  min-height: 178px;
  display: block;
}

.metric-stack {
  display: grid;
  gap: 15px;
  margin: 0;
}

.metric-stack div {
  padding: 8px 6px;
  background: #f4f8ff;
  border-radius: 8px;
  text-align: center;
}

.metric-stack dt {
  color: #8390b1;
  font-size: 12px;
  font-weight: 900;
}

.metric-stack dd {
  margin: 3px 0 0;
  color: #13235a;
  font-size: 16px;
  font-weight: 950;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
}

.tool-grid a {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 5px 12px;
  min-height: 82px;
  min-width: 0;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(102, 129, 190, 0.14);
  border-radius: 6px;
  transition: background 160ms ease, transform 160ms ease;
}

.tool-grid a:hover,
.tool-grid a:focus-visible {
  background: #f1f6ff;
  outline: none;
  transform: translateY(-1px);
}

.tool-grid a::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-top: 2px solid #a3afc6;
  border-right: 2px solid #a3afc6;
  transform: rotate(45deg);
}

.tool-grid a:hover::after,
.tool-grid a:focus-visible::after {
  border-color: #3a72e8;
}

.tool-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 8px;
}

.tool-icon.blue {
  background: linear-gradient(135deg, #5dd5ff, #3373ff);
}

.tool-icon.green {
  background: linear-gradient(135deg, #53e4ba, #16b982);
}

.tool-icon.purple {
  background: linear-gradient(135deg, #b779ff, #724dff);
}

.tool-icon.orange {
  background: linear-gradient(135deg, #ffc05f, #ff8035);
}

.tool-icon.gold {
  background: linear-gradient(135deg, #ffe36f, #ff7f46);
}

.tool-icon.cyan {
  background: linear-gradient(135deg, #62d8ff, #3395ff);
}

.tool-icon.violet {
  background: linear-gradient(135deg, #9f7bff, #6d46ea);
}

.tool-icon.rose {
  background: linear-gradient(135deg, #ff85bb, #e93d8d);
}

.tool-grid strong {
  color: #172957;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.tool-grid small {
  display: -webkit-box;
  overflow: hidden;
  color: #7b89aa;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-band {
  margin: 0 28px 14px;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, 1fr);
  gap: 14px;
}

.featured-news,
.news-card {
  min-width: 0;
  background: linear-gradient(145deg, #fff, #f7fbff);
  border: 1px solid rgba(102, 129, 190, 0.18);
  border-radius: 8px;
}

.featured-news {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 12px;
}

.featured-news img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
  border-radius: 8px;
  background: #0d2e84;
}

.featured-news p {
  margin: 0 0 9px;
  color: #13245a;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 950;
}

.featured-news p span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 21px;
  margin-right: 6px;
  color: #fff;
  background: #3d66ff;
  border-radius: 5px;
  font-size: 12px;
}

.featured-news small,
.news-card p {
  color: #657497;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.featured-news footer,
.news-card footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  color: #7483a5;
  font-size: 12px;
  font-style: normal;
}

.featured-news footer em,
.news-card footer em {
  margin-left: auto;
  font-style: normal;
}

.news-card {
  padding: 14px;
}

.news-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 950;
}

.news-icon.red {
  background: linear-gradient(135deg, #ff6c86, #e92555);
}

.news-icon.orange {
  background: linear-gradient(135deg, #ffc15e, #ff8332);
}

.news-icon.rose {
  background: linear-gradient(135deg, #ff87ba, #e9418d);
}

.news-icon.cyan {
  background: linear-gradient(135deg, #60dbff, #338dff);
}

.news-card strong {
  display: block;
  overflow: hidden;
  color: #172650;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px 24px;
  color: rgba(7, 22, 67, 0.78);
  background: linear-gradient(180deg, rgba(238, 251, 255, 0.88), rgba(227, 247, 255, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: #0e235b;
  font-size: 18px;
  font-weight: 950;
}

.site-footer span,
.site-footer p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.trend-page {
  padding: 18px;
  background:
    radial-gradient(circle at 12% 8%, rgba(48, 213, 255, 0.2), transparent 24%),
    radial-gradient(circle at 88% 0%, rgba(255, 86, 142, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(8, 27, 78, 0.86), rgba(230, 249, 255, 0.96) 72%);
}

.trend-workbench {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.trend-toolbar {
  order: 1;
}

.trend-data-note {
  order: 2;
}

.target-analysis-bar {
  order: 2;
}

.daily-quant-brief {
  order: 3;
}

.trend-chart-shell {
  order: 4;
}

.trend-summary-grid {
  order: 5;
}

.quant-signal-panel {
  order: 6;
}

.practical-advice-panel {
  order: 7;
}

.decision-workbench {
  order: 8;
}

.trend-lower-grid {
  order: 9;
}

.trend-table-section {
  order: 10;
}

.trend-toolbar,
.trend-data-note,
.daily-quant-brief,
.trend-chart-shell,
.quant-signal-panel,
.practical-advice-panel,
.decision-module,
.trend-module,
.trend-table-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(124, 155, 220, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trend-workbench > *,
.trend-table-section,
.trend-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.trend-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(640px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.trend-title-block {
  min-width: 0;
}

.trend-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: #3b66c4;
  font-size: 12px;
  font-weight: 900;
}

.trend-back-link svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.trend-title-block h1 {
  margin: 2px 0 4px;
  color: #081f59;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 950;
}

.trend-title-block p {
  max-width: 560px;
  margin: 0;
  color: #66769d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.trend-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.trend-controls [hidden],
.tv-chart-controls [hidden] {
  display: none !important;
}

.analysis-mode-tabs {
  padding: 4px;
  background: #102a60;
  border-color: #1b4388;
  box-shadow: 0 5px 14px rgba(15, 42, 96, 0.18);
}

.analysis-mode-tabs button {
  color: #c9d8f4;
}

.analysis-mode-tabs button.active {
  color: #102a60;
  background: #ffffff;
  border-color: #ffffff;
}

.target-analysis-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 14px;
  background: #f7f9fc;
  border: 1px solid #ccd8e8;
  border-left: 4px solid #168aad;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(24, 48, 92, 0.08);
}

.target-analysis-bar[hidden] {
  display: none;
}

.target-control-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.target-control-group > span,
.target-theory-chip span {
  flex: 0 0 auto;
  color: #71809a;
  font-size: 10px;
  font-weight: 900;
}

.target-control-options,
.target-number-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.target-control-options button,
.target-number-options button {
  min-height: 30px;
  padding: 0 9px;
  color: #53627b;
  background: #ffffff;
  border: 1px solid #d7e0ec;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.target-control-options button:hover,
.target-number-options button:hover {
  color: #0f5f82;
  border-color: #91b8cc;
}

.target-control-options button.active,
.target-number-options button.active {
  color: #ffffff;
  background: #167b9b;
  border-color: #126b88;
  box-shadow: 0 4px 10px rgba(22, 123, 155, 0.2);
}

.target-number-options button {
  width: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.target-theory-chip {
  display: grid;
  gap: 1px;
  margin-left: auto;
  padding: 7px 10px;
  background: #eaf5f7;
  border: 1px solid #c5e0e5;
  border-radius: 7px;
}

.target-theory-chip strong {
  color: #0f627b;
  font-size: 14px;
  font-weight: 950;
}

.target-theory-chip small {
  max-width: 230px;
  color: #687891;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.45;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  padding: 3px;
  background: rgba(239, 246, 255, 0.72);
  border: 1px solid rgba(114, 143, 205, 0.14);
  border-radius: 8px;
}

.segmented-control button {
  min-height: 30px;
  padding: 0 10px;
  color: #536999;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.segmented-control button.active {
  color: #fff;
  background: linear-gradient(135deg, #287cff, #7a5cff 58%, #e04d9d);
  box-shadow: 0 10px 22px rgba(61, 112, 231, 0.25);
}

.segmented-control.compact button {
  min-height: 28px;
  padding: 0 9px;
}

.segmented-control.analysis-mode-tabs {
  gap: 6px;
  min-height: 50px;
  padding: 5px;
  background: #e8f2f7;
  border: 2px solid #176f91;
  box-shadow: 0 8px 20px rgba(16, 70, 107, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.segmented-control.analysis-mode-tabs button,
.segmented-control.analysis-mode-tabs.compact button {
  min-height: 38px;
  padding: 0 18px;
  color: #284d69;
  background: #ffffff;
  border: 1px solid #c7dbe7;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 3px 8px rgba(28, 70, 101, 0.08);
}

.segmented-control.analysis-mode-tabs button:hover {
  color: #0b6381;
  background: #f6fcff;
  border-color: #79adc0;
}

.segmented-control.analysis-mode-tabs button.active {
  color: #ffffff;
  background: #117f9f;
  border-color: #0d6b87;
  box-shadow: 0 8px 18px rgba(17, 127, 159, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.segmented-control.analysis-mode-tabs button:focus-visible {
  outline: 3px solid rgba(17, 127, 159, 0.24);
  outline-offset: 2px;
}

.target-number-group {
  order: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid #d8e3ee;
}

.target-number-group > span {
  color: #365a74;
  font-size: 12px;
}

.target-number-options {
  gap: 4px;
}

.target-number-options button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  color: #304963;
  border: 2px solid #d5e0ec;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(30, 68, 97, 0.07);
}

.target-number-options button:hover {
  color: #0d6684;
  background: #f1fbfd;
  border-color: #6faabc;
}

.target-number-options button.active {
  color: #ffffff;
  background: #0f829f;
  border-color: #0b6b84;
  box-shadow: 0 7px 16px rgba(15, 130, 159, 0.32), 0 0 0 3px rgba(15, 130, 159, 0.1);
}

.trend-data-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 12px;
  color: #5d6f98;
  font-size: 12px;
  font-weight: 760;
  box-shadow: 0 8px 18px rgba(24, 48, 92, 0.06);
}

.daily-quant-brief[hidden] {
  display: none;
}

.trend-data-note strong {
  color: #0b2460;
  font-weight: 950;
}

.daily-quant-brief {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 11px 14px;
  border-left: 4px solid #2563eb;
  box-shadow: 0 8px 18px rgba(24, 48, 92, 0.06);
}

.daily-quant-brief.watch {
  border-left-color: #f59e0b;
}

.daily-quant-brief.stale {
  border-left-color: #e11d48;
}

.daily-brief-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daily-brief-title span,
.daily-brief-title strong,
.daily-brief-title time {
  display: block;
}

.daily-brief-title span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.daily-brief-title strong {
  margin-top: 3px;
  color: #10265d;
  font-size: 15px;
  font-weight: 950;
}

.daily-brief-title time {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.daily-quant-brief > p {
  margin: 0;
  color: #40567f;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 760;
}

.daily-brief-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 5px;
}

.daily-brief-tags span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  min-height: 26px;
  padding: 5px 7px;
  color: #61729a;
  background: #f7fbff;
  border: 1px solid #e1eaf5;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.daily-brief-tags b {
  color: #10265d;
  font-weight: 950;
}

.trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.trend-kpi-card {
  min-width: 0;
  min-height: 74px;
  padding: 11px 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.95)),
    radial-gradient(circle at 85% 12%, rgba(47, 207, 255, 0.16), transparent 38%);
  border: 1px solid rgba(109, 143, 210, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(19, 45, 103, 0.1);
}

.trend-kpi-card.wide {
  grid-column: span 2;
}

.trend-kpi-card span,
.trend-kpi-card small {
  display: block;
  overflow: hidden;
  color: #7484a8;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-kpi-card strong {
  display: block;
  overflow: hidden;
  margin: 5px 0 4px;
  color: #10265d;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-chart-shell {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
}

.trend-chart-shell > * {
  min-width: 0;
}

.trend-chart-head,
.trend-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.trend-chart-head h2,
.trend-module-head h2 {
  margin: 0 0 4px;
  color: #10265d;
  font-size: 16px;
  font-weight: 950;
}

.trend-chart-head p,
.trend-module-head p {
  margin: 0;
  color: #6f7fa3;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #60729c;
  font-size: 12px;
  font-weight: 900;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  background: #f0f6ff;
  border-radius: 999px;
}

.trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.trend-legend i.red {
  background: #ef3f68;
}

.trend-legend i.orange {
  background: #f59e0b;
}

.trend-legend i.blue {
  background: #438cff;
}

.trend-legend i.line {
  width: 18px;
  height: 3px;
  background: linear-gradient(90deg, #31d7ff, #e04d9d);
  border-radius: 999px;
}

.trend-legend i.candle-up {
  background: #ef3f68;
}

.trend-legend i.candle-down {
  background: #16b982;
}

.trend-legend i.ma5 {
  width: 18px;
  height: 3px;
  background: #ff9d2e;
  border-radius: 999px;
}

.trend-legend i.ma20 {
  width: 18px;
  height: 3px;
  background: #7862ff;
  border-radius: 999px;
}

.trend-legend i.distribution-median {
  width: 18px;
  height: 3px;
  background: #0f5eea;
  border-radius: 999px;
}

.trend-legend i.boll {
  width: 18px;
  height: 3px;
  background: #31c8ff;
  border-radius: 999px;
}

.trend-legend i.signal-marker {
  width: 11px;
  height: 11px;
  background: #e11d48;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.trend-legend i.target-fib {
  width: 18px;
  height: 3px;
  background: repeating-linear-gradient(90deg, #ca8a04 0 4px, transparent 4px 7px);
  border-radius: 999px;
}

.trend-legend i.trend-line {
  width: 18px;
  height: 3px;
  background: #0f5eea;
  border-radius: 999px;
}

.trend-legend i.deviation-up {
  width: 14px;
  height: 12px;
  background: rgba(225, 29, 72, 0.72);
  border-radius: 3px;
}

.trend-legend i.deviation-down {
  width: 14px;
  height: 12px;
  background: rgba(5, 150, 105, 0.72);
  border-radius: 3px;
}

.trend-legend i.extreme {
  background: #111f4f;
}

.trend-svg-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}

#lotteryTrendSvg {
  display: block;
  width: 100%;
  min-width: 920px;
  height: auto;
}

.trend-chart-bg {
  fill: #f8fbff;
}

.trend-grid-line {
  stroke: rgba(91, 117, 174, 0.16);
  stroke-width: 1;
}

.trend-issue-line {
  stroke: rgba(91, 117, 174, 0.1);
  stroke-width: 1;
}

.trend-axis-label {
  fill: #7484a8;
  font-size: 12px;
  font-weight: 800;
}

.trend-range-line {
  stroke: rgba(18, 39, 91, 0.14);
  stroke-width: 2;
}

.trend-point {
  stroke: #fff;
  stroke-width: 2.5;
}

.trend-point.red {
  fill: #ef3f68;
}

.trend-point.orange {
  fill: #f59e0b;
}

.trend-point.blue {
  fill: #438cff;
}

.trend-sum-line {
  fill: none;
  stroke: url(#trendSumGradient);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.boll-area {
  fill: url(#bollAreaGradient);
}

.boll-line {
  fill: none;
  stroke: #31bdf6;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  stroke-width: 2;
}

.boll-line.lower {
  stroke: #37c7b7;
}

.ma-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.ma-line.ma5 {
  stroke: #ff9d2e;
}

.ma-line.ma20 {
  stroke: #7862ff;
}

.kline-candle line {
  stroke-width: 2;
}

.kline-candle rect {
  stroke-width: 2;
}

.kline-candle.up line,
.kline-candle.up rect {
  fill: rgba(239, 63, 104, 0.16);
  stroke: #ef3f68;
}

.kline-candle.down line,
.kline-candle.down rect {
  fill: rgba(22, 185, 130, 0.16);
  stroke: #16b982;
}

.kline-extreme {
  fill: #111f4f;
  stroke: #fff;
  stroke-width: 2;
}

.trend-latest-line {
  stroke: #17b5b0;
  stroke-dasharray: 6 6;
  stroke-width: 2;
}

.trend-page {
  background:
    linear-gradient(180deg, #15376d 0, #2e6a9e 330px, #eef5fb 740px),
    #eef5fb;
}

.trend-chart-shell {
  gap: 9px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #d8e2f0;
  box-shadow: 0 14px 34px rgba(24, 48, 92, 0.1);
}

.trend-chart-head {
  align-items: center;
  padding: 0 2px;
}

.trend-chart-head h2 {
  font-size: 16px;
  line-height: 1.25;
}

.trend-chart-head p {
  color: #6b7895;
  font-size: 12px;
  font-weight: 720;
}

.trend-legend {
  gap: 6px;
}

.trend-legend span {
  min-height: 24px;
  padding: 0 8px;
  color: #51617f;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
}

.trend-svg-wrap {
  position: relative;
  overflow: hidden;
  background: #fbfdff;
  border: 1px solid #dde6f2;
  border-radius: 8px;
  scrollbar-width: thin;
}

.tv-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding: 0 2px;
}

.tv-chart-status {
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-chart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.chart-mode-switch,
.chart-signal-switch,
.chart-overlay-toggles {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chart-mode-switch,
.chart-signal-switch {
  padding: 2px;
  background: #f1f5f9;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
}

.chart-mode-switch button,
.chart-signal-switch button {
  min-height: 24px;
  padding: 0 8px;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 850;
}

.chart-mode-switch button[aria-pressed="true"],
.chart-signal-switch button[aria-pressed="true"] {
  color: #0f1f45;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 31, 69, 0.12);
}

.chart-mode-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.chart-overlay-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 6px;
  color: #53627b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.chart-overlay-toggles label:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.chart-overlay-toggles input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #2563eb;
}

.tv-chart-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tv-chart-actions button {
  min-height: 26px;
  padding: 0 9px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
}

.tv-chart-actions button:hover,
.tv-chart-actions button:focus-visible {
  color: #0f1f45;
  background: #eef6ff;
  border-color: #b9c9e2;
  outline: none;
}

.tv-chart-actions button[aria-pressed="true"] {
  color: #0f5eea;
  background: #eaf2ff;
  border-color: #aac4ed;
}

.tradingview-chart {
  position: relative;
  width: 100%;
  height: clamp(520px, 66vh, 720px);
  min-height: 520px;
  background: #fff;
}

.tradingview-chart canvas {
  font-variant-numeric: tabular-nums;
}

.trend-chart-shell:fullscreen {
  overflow: auto;
  padding: 18px;
  background: #f8fbff;
}

.trend-chart-shell:fullscreen .tradingview-chart {
  height: min(72vh, 820px);
}

.tv-floating-tooltip {
  position: absolute;
  z-index: 8;
  display: none;
  width: 248px;
  padding: 12px;
  color: #dce7ff;
  background: rgba(15, 31, 69, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.tv-floating-tooltip.is-visible {
  display: block;
}

.tv-floating-tooltip strong,
.tv-floating-tooltip span {
  display: block;
}

.tv-floating-tooltip strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.tv-floating-tooltip span {
  margin-top: 3px;
  color: #9fb2d6;
  font-size: 11px;
  font-weight: 750;
}

.tv-floating-tooltip dl {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px 10px;
  margin: 11px 0 0;
}

.tv-floating-tooltip dt,
.tv-floating-tooltip dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}

.tv-floating-tooltip dt {
  color: #93a4c5;
  font-weight: 760;
}

.tv-floating-tooltip dd {
  color: #ffffff;
  font-weight: 850;
  text-align: right;
}

#lotteryTrendSvg {
  min-width: 980px;
  color: #0f1f45;
  stroke: none;
}

#lotteryTrendSvg text {
  stroke: none;
  paint-order: fill;
}

.trend-chart-bg {
  fill: #ffffff;
  stroke: none;
}

.trend-plot-area {
  fill: #fbfdff;
  stroke: #dfe8f4;
  stroke-width: 1;
}

.trend-grid-line.horizontal {
  stroke: rgba(100, 116, 139, 0.18);
  stroke-width: 1;
}

.trend-grid-line.vertical {
  stroke: rgba(100, 116, 139, 0.12);
  stroke-width: 1;
}

.trend-axis-label {
  fill: #718096;
  font-size: 11px;
  font-weight: 620;
}

.trend-axis-label.y-right {
  fill: #8a96ab;
}

.trend-axis-label.x-label {
  fill: #7b88a1;
}

.boll-area {
  fill: url(#bollAreaGradient);
}

.boll-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.boll-line.upper,
.boll-line.lower {
  stroke: #2f9fd7;
  stroke-dasharray: 5 5;
  opacity: 0.78;
}

.boll-line.middle {
  stroke: #7c8ba8;
  stroke-dasharray: 2 5;
  opacity: 0.58;
}

.ma-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.ma-line.ma5 {
  stroke: #f59e0b;
}

.ma-line.ma20 {
  stroke: #6366f1;
}

.kline-candle line {
  stroke-width: 1.55;
}

.kline-candle rect {
  stroke-width: 1.7;
}

.kline-candle.up line,
.kline-candle.up rect {
  fill: rgba(225, 29, 72, 0.08);
  stroke: #e11d48;
}

.kline-candle.down line,
.kline-candle.down rect {
  fill: rgba(5, 150, 105, 0.08);
  stroke: #059669;
}

.kline-extreme {
  fill: #172554;
  stroke: #ffffff;
  stroke-width: 2;
}

.trend-latest-line {
  stroke: #0ea5a3;
  stroke-dasharray: 5 6;
  stroke-width: 1.7;
}

.latest-marker rect,
.latest-value-tag rect {
  fill: #0f1f45;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1;
}

.latest-marker text,
.latest-value-tag text {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.chart-crosshair line {
  stroke: rgba(15, 23, 42, 0.36);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.chart-crosshair circle {
  fill: #ffffff;
  stroke: #0f1f45;
  stroke-width: 2;
}

.chart-crosshair rect {
  fill: #0f1f45;
}

.chart-crosshair text {
  fill: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.trend-hover-card {
  position: absolute;
  z-index: 6;
  display: none;
  width: 232px;
  padding: 12px;
  color: #dce7ff;
  background: rgba(15, 31, 69, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.trend-hover-card.is-visible {
  display: block;
}

.trend-hover-card strong,
.trend-hover-card span {
  display: block;
}

.trend-hover-card strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.trend-hover-card span {
  margin-top: 3px;
  color: #9fb2d6;
  font-size: 11px;
  font-weight: 750;
}

.trend-hover-card dl {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px 10px;
  margin: 11px 0 0;
}

.trend-hover-card dt,
.trend-hover-card dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}

.trend-hover-card dt {
  color: #93a4c5;
  font-weight: 760;
}

.trend-hover-card dd {
  color: #ffffff;
  font-weight: 850;
  text-align: right;
}

.signal-strip {
  display: flex;
  gap: 1px;
  min-width: 0;
  min-height: 20px;
  overflow: hidden;
  padding: 0 1px;
}

.signal-strip span {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 20px;
  overflow: hidden;
  background: rgba(43, 123, 255, var(--alpha, 0.24));
  border-radius: 3px;
  opacity: 0.78;
}

.signal-strip span.up {
  background: rgba(225, 29, 72, var(--alpha, 0.24));
}

.signal-strip span.down {
  background: rgba(5, 150, 105, var(--alpha, 0.24));
}

.signal-strip em {
  position: absolute;
  inset: auto 4px 3px auto;
  display: none;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.signal-strip span:hover em {
  display: block;
}

.chart-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 10px;
}

.chart-analysis-grid.is-collapsed {
  display: none;
}

.chart-subpanels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chart-subpanels article,
.chart-inspector {
  min-width: 0;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.target-technical-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.technical-panel {
  display: grid;
  grid-template-rows: auto 92px auto;
}

.technical-panel header strong.positive {
  color: #be123c;
}

.technical-panel header strong.negative {
  color: #047857;
}

.technical-panel footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #71809a;
  font-size: 9px;
  font-weight: 850;
}

.technical-panel footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}

.technical-panel footer i {
  width: 12px;
  height: 2px;
  background: var(--line);
}

.technical-panel footer b {
  margin-left: auto;
  color: #334155;
  font-size: 9px;
}

.target-ema30 {
  background: #0f7ca8;
}

.target-confluence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.target-confluence-grid article {
  min-width: 0;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #e0e9f4;
  border-radius: 7px;
}

.target-confluence-grid span,
.target-confluence-grid strong,
.target-confluence-grid p {
  display: block;
}

.target-confluence-grid span {
  color: #71809a;
  font-size: 10px;
  font-weight: 900;
}

.target-confluence-grid strong {
  margin-top: 4px;
  color: #10265d;
  font-size: 17px;
  font-weight: 950;
}

.target-confluence-grid p,
.target-backtest-summary + p,
.target-backtest-events + p {
  margin: 5px 0 0;
  color: #687795;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 750;
}

.target-backtest-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.target-backtest-summary div {
  min-width: 0;
  padding: 9px;
  background: #f8fbff;
  border: 1px solid #e0e9f4;
  border-radius: 6px;
}

.target-backtest-summary span,
.target-backtest-summary strong {
  display: block;
}

.target-backtest-summary span {
  color: #71809a;
  font-size: 9px;
  font-weight: 850;
}

.target-backtest-summary strong {
  margin-top: 4px;
  color: #10265d;
  font-size: 15px;
  font-weight: 950;
}

.target-backtest-events {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.target-backtest-events span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: #9a5b08;
  background: #fffbeb;
  border-radius: 5px;
  font-size: 9px;
}

.target-backtest-events span.success {
  color: #047857;
  background: #ecfdf5;
}

.target-backtest-events em {
  font-style: normal;
}

.candidate-target-tag {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 6px;
  color: #0f627b;
  background: #e8f5f7;
  border: 1px solid #c7e2e7;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 900;
}

.chart-subpanels header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.chart-subpanels span,
.chart-inspector span {
  color: #7080a4;
  font-size: 11px;
  font-weight: 900;
}

.chart-subpanels strong,
.chart-inspector strong {
  color: #10265d;
  font-size: 15px;
  font-weight: 950;
}

.chart-subpanels svg {
  display: block;
  width: 100%;
  height: 58px;
}

.chart-inspector dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 5px 8px;
  margin: 9px 0 0;
}

.chart-inspector dt,
.chart-inspector dd {
  margin: 0;
  font-size: 11px;
  font-weight: 850;
}

.chart-inspector dt {
  color: #7080a4;
}

.chart-inspector dd {
  color: #10265d;
  text-align: right;
}

.chart-inspector p {
  margin: 8px 0 0;
  color: #61729a;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 760;
}

.chart-inspector .candle-progress {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 6px;
  color: #047857;
  background: #ecfdf5;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
}

.chart-inspector .candle-progress.partial {
  color: #9a5b08;
  background: #fffbeb;
}

.chart-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.multi-cycle-panel,
.candidate-impact-panel {
  min-width: 0;
}

.multi-cycle-panel > header,
.candidate-impact-panel > header {
  margin-bottom: 8px;
}

.multi-cycle-panel h3,
.candidate-impact-panel h3 {
  margin: 0;
  color: #10265d;
  font-size: 14px;
  font-weight: 950;
}

.multi-cycle-panel header p,
.candidate-impact-panel header p {
  margin: 3px 0 0;
  color: #7080a4;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 760;
}

.multi-cycle-panel table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.multi-cycle-panel th,
.multi-cycle-panel td {
  padding: 7px 6px;
  border-bottom: 1px solid #e5edf7;
  color: #10265d;
  font-size: 11px;
  text-align: left;
}

.multi-cycle-panel th {
  color: #64748b;
  background: #f4f8fd;
  font-weight: 900;
}

.multi-cycle-panel tr.active td {
  background: #eef5ff;
}

.multi-cycle-panel td:first-child {
  width: 64px;
}

.multi-cycle-panel td:last-child {
  width: 98px;
}

.multi-cycle-panel td button {
  padding: 0;
  color: #0f5eea;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 950;
}

.multi-cycle-panel td small,
.cycle-conclusion {
  display: block;
}

.multi-cycle-panel td small {
  margin-top: 3px;
  color: #7b8aa8;
  font-size: 9px;
  font-weight: 800;
}

.multi-cycle-panel .matrix-state {
  min-height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 10px;
}

.cycle-conclusion {
  font-size: 11px;
  font-weight: 950;
}

.cycle-conclusion.high { color: #be123c; }
.cycle-conclusion.low { color: #047857; }
.cycle-conclusion.watch { color: #b45309; }
.cycle-conclusion.mixed { color: #7c3aed; }
.cycle-conclusion.normal { color: #31558f; }

.candidate-impact-panel {
  padding-left: 14px;
  border-left: 1px solid #e2e8f0;
}

.impact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.impact-heading span,
.impact-heading strong {
  display: block;
}

.impact-heading span {
  color: #7080a4;
  font-size: 10px;
  font-weight: 850;
}

.impact-heading strong {
  margin-top: 2px;
  color: #10265d;
  font-size: 15px;
  font-weight: 950;
}

.impact-heading b {
  padding: 5px 7px;
  color: #31558f;
  background: #eff6ff;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 950;
}

.impact-heading b.active {
  color: #b45309;
  background: #fffbeb;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.impact-stats div {
  min-width: 0;
  padding: 7px;
  background: #f8fbff;
  border: 1px solid #e2eaf4;
  border-radius: 6px;
}

.impact-stats span,
.impact-stats strong,
.impact-stats small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.impact-stats span,
.impact-stats small {
  color: #7080a4;
  font-size: 9px;
  font-weight: 800;
}

.impact-stats strong {
  margin: 3px 0;
  color: #10265d;
  font-size: 17px;
  font-weight: 950;
}

.target-impact-stats > div {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 92px;
  padding: 9px;
}

.target-impact-stats small {
  align-self: start;
  overflow: visible;
  color: #66789f;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}

.impact-reasons,
.impact-method {
  color: #61729a;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 760;
}

.impact-reasons {
  margin: 8px 0 0;
}

.impact-method {
  display: block;
  margin-top: 6px;
}

.impact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.impact-actions button {
  min-height: 27px;
  padding: 0 9px;
  color: #31558f;
  background: #edf5ff;
  border: 1px solid #d5e2f3;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
}

.impact-actions button[data-impact-action="apply"] {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
}

.impact-actions button:disabled {
  cursor: not-allowed;
  color: #8a98b4;
  background: #e8eef7;
  border-color: #e8eef7;
}

.quant-signal-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(260px, 1fr) minmax(310px, 1.12fr) minmax(260px, 0.9fr);
  gap: 12px;
  padding: 14px;
}

.quant-signal-panel article {
  min-width: 0;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.quant-score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.quant-score-card.strong {
  background: linear-gradient(145deg, rgba(255, 241, 242, 0.98), rgba(248, 251, 255, 0.98));
  border-color: rgba(225, 29, 72, 0.24);
}

.quant-score-card.watch {
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.98), rgba(248, 251, 255, 0.98));
  border-color: rgba(245, 158, 11, 0.24);
}

.quant-score-card.soft {
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.quant-score-ring {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  background:
    radial-gradient(circle at center, #ffffff 0 57%, transparent 58%),
    conic-gradient(#e11d48 calc(var(--score, 0) * 1%), #dbe7f5 0);
  border-radius: 50%;
}

.quant-score-ring strong,
.quant-score-ring span {
  grid-area: 1 / 1;
}

.quant-score-ring strong {
  margin-top: -10px;
  color: #10265d;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.quant-score-ring span {
  margin-top: 30px;
  color: #7080a4;
  font-size: 11px;
  font-weight: 900;
}

.quant-signal-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.quant-signal-panel span {
  color: #7080a4;
  font-size: 12px;
  font-weight: 900;
}

.quant-signal-panel h2,
.quant-signal-panel strong {
  margin: 0;
  color: #10265d;
  font-size: 17px;
  font-weight: 950;
}

.quant-signal-panel p,
.quant-signal-panel small {
  margin: 8px 0 0;
  color: #61729a;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 760;
}

.signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.signal-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #415172;
  background: #edf5ff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.signal-tags b.high {
  color: #be123c;
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.2);
}

.signal-tags b.low {
  color: #047857;
  background: #ecfdf5;
  border-color: rgba(5, 150, 105, 0.2);
}

.quant-backtest-card ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.quant-backtest-card li {
  min-width: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(100, 133, 200, 0.14);
  border-radius: 7px;
}

.quant-backtest-card li span,
.quant-backtest-card li strong,
.quant-backtest-card li em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quant-backtest-card li strong {
  margin-top: 2px;
  font-size: 16px;
}

.quant-backtest-card li em {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.quant-backtest-card li em.success {
  color: #059669;
}

.quant-backtest-card li em.pending {
  color: #e11d48;
}

.practical-advice-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr) minmax(520px, 1.4fr);
  gap: 12px;
  padding: 14px;
}

.advice-main,
.advice-metrics,
.advice-rules section {
  min-width: 0;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.advice-main.danger {
  background: linear-gradient(145deg, #fff1f2, #f8fbff);
  border-color: rgba(225, 29, 72, 0.24);
}

.advice-main.warn,
.advice-main.watch {
  background: linear-gradient(145deg, #fffbeb, #f8fbff);
  border-color: rgba(245, 158, 11, 0.24);
}

.advice-main span,
.advice-metrics span,
.advice-rules b,
.advice-rules span {
  display: block;
  color: #7080a4;
  font-size: 11px;
  font-weight: 900;
}

.advice-main strong {
  display: block;
  margin-top: 6px;
  color: #10265d;
  font-size: 20px;
  font-weight: 950;
}

.advice-main p,
.advice-rules p {
  margin: 8px 0 0;
  color: #61729a;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 760;
}

.advice-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.advice-metrics div {
  min-width: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(100, 133, 200, 0.13);
  border-radius: 7px;
}

.advice-metrics strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #10265d;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advice-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.advice-rules strong {
  display: block;
  margin-top: 4px;
  color: #10265d;
  font-size: 15px;
  font-weight: 950;
}

.decision-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr) minmax(360px, 1.1fr);
  gap: 12px;
}

.decision-module {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
}

.strategy-module {
  grid-column: span 3;
}

.confluence-matrix,
.backtest-detail,
.candidate-scorer,
.event-replay,
.similar-cases-panel,
.strategy-builder {
  margin-top: 12px;
}

.confluence-matrix table,
.backtest-detail table,
.event-replay table,
.similar-cases-panel table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.confluence-matrix th,
.confluence-matrix td,
.backtest-detail th,
.backtest-detail td,
.event-replay th,
.event-replay td,
.similar-cases-panel th,
.similar-cases-panel td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(117, 141, 193, 0.15);
  color: #17295e;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.confluence-matrix th,
.backtest-detail th,
.event-replay th,
.similar-cases-panel th {
  color: #6a7aa0;
  background: #edf5ff;
  font-weight: 950;
}

.matrix-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.matrix-state.high,
.candidate-result.danger {
  color: #be123c;
  background: #fff1f2;
}

.matrix-state.low,
.candidate-result.ok {
  color: #047857;
  background: #ecfdf5;
}

.matrix-state.watch,
.candidate-result.warn {
  color: #b45309;
  background: #fffbeb;
}

.matrix-state.normal {
  color: #31558f;
  background: #eff6ff;
}

.matrix-summary,
.replay-summary,
.similar-summary {
  margin-top: 10px;
  padding: 10px;
  background: #f7fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.matrix-summary strong,
.matrix-summary span,
.replay-summary strong,
.replay-summary span,
.replay-summary p {
  display: block;
}

.matrix-summary strong,
.replay-summary strong {
  color: #10265d;
  font-size: 14px;
  font-weight: 950;
}

.matrix-summary span,
.replay-summary span,
.replay-summary p,
.decision-empty,
.candidate-actions span,
.strategy-builder p {
  margin: 5px 0 0;
  color: #61729a;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 760;
}

.backtest-stats,
.strategy-result {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.backtest-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.candidate-coverage-audit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.candidate-coverage-audit div {
  padding: 10px;
  background: #f0fdf4;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 8px;
}

.candidate-coverage-audit span,
.candidate-coverage-audit strong {
  display: block;
}

.candidate-coverage-audit span {
  color: #55738a;
  font-size: 11px;
  font-weight: 900;
}

.candidate-coverage-audit strong {
  margin-top: 4px;
  color: #047857;
  font-size: 18px;
  font-weight: 950;
}

.coverage-method {
  margin: 8px 0 0;
  color: #61729a;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 760;
}

.backtest-stats div,
.strategy-result div {
  padding: 10px;
  background: #f7fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.backtest-stats span,
.strategy-result span {
  display: block;
  color: #7080a4;
  font-size: 11px;
  font-weight: 900;
}

.backtest-stats strong,
.strategy-result strong {
  display: block;
  margin-top: 4px;
  color: #10265d;
  font-size: 18px;
  font-weight: 950;
}

.cooldown-bars {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.cooldown-bars span {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  color: #61729a;
  font-size: 11px;
  font-weight: 850;
}

.cooldown-bars i {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, #0ea5e9 var(--bar, 0), #e8f0fb 0);
  border-radius: 999px;
}

.cooldown-bars i.fail {
  background: linear-gradient(90deg, #e11d48 var(--bar, 0), #e8f0fb 0);
}

.backtest-detail td.success {
  color: #059669;
}

.backtest-detail td.pending,
.similar-cases-panel td.pending {
  color: #e11d48;
}

.similar-cases-panel td.success {
  color: #059669;
}

.similar-cases-panel td:last-child span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  white-space: nowrap;
}

.case-sparkline {
  display: block;
  width: 100%;
  height: 24px;
}

.similar-locate {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  color: #0f5eea;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-warning {
  margin: 0 0 10px;
  padding: 8px 10px;
  color: #9a5b08;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.similar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.similar-summary div {
  min-width: 0;
  padding: 9px;
  background: #ffffff;
  border: 1px solid rgba(100, 133, 200, 0.14);
  border-radius: 7px;
}

.similar-summary span,
.similar-summary strong {
  display: block;
}

.similar-summary span {
  color: #7080a4;
  font-size: 11px;
  font-weight: 900;
}

.similar-summary strong {
  margin-top: 4px;
  color: #10265d;
  font-size: 17px;
  font-weight: 950;
}

.candidate-scorer textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 10px;
  color: #10265d;
  background: #f8fbff;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.candidate-charge-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  color: #10265d;
  background: transparent;
  border: 0;
}

.candidate-charge-dialog::backdrop {
  background: rgba(12, 24, 52, 0.62);
  backdrop-filter: blur(4px);
}

.candidate-charge-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(82, 111, 180, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(9, 27, 68, 0.28);
}

.candidate-charge-heading {
  padding: 24px 26px 18px;
}

.candidate-charge-heading p {
  margin: 0 0 6px;
  color: #2f6bff;
  font-size: 11px;
  font-weight: 950;
}

.candidate-charge-heading h2 {
  margin: 0;
  color: #10265d;
  font-size: 22px;
}

.candidate-charge-heading span {
  display: block;
  margin-top: 10px;
  color: #61749e;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
}

.candidate-charge-balance {
  margin: 0 26px;
  padding: 12px 14px;
  color: #31558f;
  background: #f4f8ff;
  border: 1px solid #dce8fb;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
}

.candidate-charge-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 26px 24px;
}

.candidate-charge-actions button {
  min-height: 42px;
  color: #53678f;
  background: #edf3fb;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
}

.candidate-charge-actions button.primary {
  color: #ffffff;
  background: #2f6bff;
}

.candidate-charge-actions button:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.24);
  outline-offset: 2px;
}

.candidate-actions,
.candidate-filters,
.strategy-controls,
.replay-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.candidate-actions button,
.candidate-filters button,
.strategy-controls button,
.replay-tabs button {
  min-height: 30px;
  padding: 0 12px;
  color: #ffffff;
  background: #2f6bff;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.candidate-actions button[data-candidate-sort],
.candidate-filters button {
  color: #526793;
  background: #edf5ff;
}

.candidate-actions button.active,
.candidate-filters button.active {
  color: #ffffff;
  background: #2f6bff;
}

.candidate-actions button:disabled {
  cursor: not-allowed;
  color: #8a98b4;
  background: #e8eef7;
  opacity: 0.78;
}

.replay-tabs button {
  color: #526793;
  background: #edf5ff;
}

.replay-tabs button.active {
  color: #ffffff;
  background: #2f6bff;
}

.replay-tabs {
  max-height: 78px;
  overflow: auto;
}

.candidate-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.candidate-export-status {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #31558f;
  font-size: 11px;
  font-weight: 900;
}

.candidate-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.candidate-summary div {
  padding: 9px;
  background: #f7fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.candidate-summary span,
.candidate-summary strong {
  display: block;
}

.candidate-summary span {
  color: #7080a4;
  font-size: 11px;
  font-weight: 900;
}

.candidate-summary strong {
  margin-top: 3px;
  color: #10265d;
  font-size: 18px;
  font-weight: 950;
}

.candidate-result {
  display: grid;
  grid-template-columns: 54px 82px 1fr;
  gap: 4px 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.candidate-result strong {
  grid-row: span 2;
  color: #10265d;
  font-size: 22px;
  font-weight: 950;
}

.candidate-result span {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-result p,
.candidate-result small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.candidate-result span {
  color: #10265d;
  font-size: 13px;
  font-weight: 950;
}

.candidate-result p,
.candidate-result small {
  color: #61729a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.candidate-result .candidate-metrics {
  color: #31558f;
  font-weight: 900;
}

.strategy-library {
  display: grid;
  gap: 10px;
}

.strategy-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.strategy-library-head span,
.strategy-library-head strong {
  display: block;
}

.strategy-library-head span {
  color: #7080a4;
  font-size: 11px;
  font-weight: 900;
}

.strategy-library-head strong {
  margin-top: 3px;
  color: #10265d;
  font-size: 16px;
  font-weight: 950;
}

.strategy-library-head button {
  min-height: 30px;
  padding: 0 12px;
  color: #ffffff;
  background: #2f6bff;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.strategy-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 8px;
}

.strategy-preset-grid button {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 10px;
  color: #526793;
  background: #f7fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
  text-align: left;
}

.strategy-preset-grid button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2f6bff, #7a5cff);
  border-color: transparent;
}

.strategy-preset-grid strong,
.strategy-preset-grid span,
.strategy-preset-grid i {
  display: block;
}

.strategy-preset-grid strong {
  color: inherit;
  font-size: 13px;
  font-weight: 950;
}

.strategy-preset-grid span {
  color: currentColor;
  opacity: 0.82;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 760;
}

.strategy-preset-grid i {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: inherit;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  opacity: 0.8;
}

.strategy-controls label {
  display: grid;
  gap: 4px;
  color: #7080a4;
  font-size: 11px;
  font-weight: 900;
}

.strategy-controls input,
.strategy-controls select {
  width: 86px;
  min-height: 30px;
  padding: 0 8px;
  color: #10265d;
  background: #f8fbff;
  border: 1px solid #dbe6f3;
  border-radius: 7px;
  font-weight: 900;
}

.strategy-controls select {
  width: 92px;
}

.strategy-billing-note {
  flex: 1 1 100%;
  color: #6b7da4;
  font-size: 11px;
  font-weight: 800;
}

.strategy-controls button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.strategy-run-status {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  color: #31558f;
  background: #f7fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.strategy-run-status.fresh {
  background: linear-gradient(135deg, #ecfdf5, #f7fbff);
  border-color: rgba(5, 150, 105, 0.24);
  box-shadow: inset 3px 0 0 #10b981;
}

.strategy-run-status strong,
.strategy-run-status span {
  display: block;
}

.strategy-run-status strong {
  color: #10265d;
  font-size: 13px;
  font-weight: 950;
}

.strategy-run-status span {
  color: #61729a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.strategy-rating {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.strategy-rating.ok {
  color: #047857;
  background: #ecfdf5;
}

.strategy-rating.warn,
.strategy-rating.watch {
  color: #b45309;
  background: #fffbeb;
}

.strategy-rating.danger {
  color: #be123c;
  background: #fff1f2;
}

.strategy-rating strong,
.strategy-rating span {
  display: block;
}

.strategy-rating strong {
  color: inherit;
  font-size: 16px;
  font-weight: 950;
}

.strategy-rating span {
  color: #61729a;
  font-size: 12px;
  font-weight: 760;
}

.strategy-result {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 10px;
}

.strategy-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.strategy-events span {
  display: inline-grid;
  gap: 2px;
  min-width: 86px;
  padding: 8px 10px;
  background: #f7fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.strategy-events b,
.strategy-events em {
  color: #10265d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.strategy-events em {
  color: #61729a;
  font-size: 11px;
}

.strategy-events .success em {
  color: #059669;
}

.strategy-events .pending em {
  color: #e11d48;
}

.trend-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 16px;
}

.trend-module,
.trend-table-section {
  padding: 18px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.heatmap-grid.position-mode {
  display: grid;
  grid-template-columns: 1fr;
}

.position-heat-section {
  min-width: 0;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.position-heat-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  color: #10265d;
  font-size: 13px;
}

.position-heat-section h3 strong {
  color: #31558f;
  font-size: 12px;
}

.position-heat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 6px;
}

.heat-cell {
  min-height: 74px;
  padding: 10px;
  background:
    linear-gradient(150deg, rgba(239, 63, 104, var(--heat-alpha, 0.14)), rgba(49, 215, 255, var(--cool-alpha, 0.14))),
    #f7fbff;
  border: 1px solid rgba(100, 133, 200, 0.18);
  border-radius: 8px;
}

.heat-cell strong,
.heat-cell span,
.heat-cell small {
  display: block;
}

.heat-cell strong {
  color: #112a65;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.heat-cell span {
  margin-top: 7px;
  color: #ef3f68;
  font-size: 12px;
  font-weight: 900;
}

.heat-cell small {
  margin-top: 3px;
  color: #5f7199;
  font-size: 11px;
  font-weight: 850;
}

.insight-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.insight-list li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 4px 10px;
  min-height: 74px;
  padding: 12px;
  background: #f7fbff;
  border: 1px solid rgba(100, 133, 200, 0.16);
  border-radius: 8px;
}

.insight-list span {
  color: #7080a4;
  font-size: 12px;
  font-weight: 900;
}

.insight-list strong {
  overflow: hidden;
  color: #10265d;
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: #61729a;
  font-size: 12px;
  line-height: 1.48;
  font-weight: 720;
}

.trend-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.trend-table {
  min-width: 860px;
}

.trend-table th,
.trend-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(117, 141, 193, 0.15);
  color: #17295e;
  text-align: left;
  font-size: 13px;
  font-weight: 850;
}

.trend-table th {
  color: #6a7aa0;
  background: #edf5ff;
  font-weight: 950;
}

.trend-number-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.trend-number-row em {
  color: #8ba0c9;
  font-style: normal;
  font-weight: 950;
}

.trend-ball {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
}

.trend-ball.red {
  background: linear-gradient(135deg, #ff7793, #e91f55);
}

.trend-ball.orange {
  background: linear-gradient(135deg, #ffc15e, #ff7c25);
}

.trend-ball.blue {
  background: linear-gradient(135deg, #6bbcff, #347aff);
}

.floating-disclaimer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(480px, calc(100vw - 32px));
  padding: 26px 28px 22px;
  color: #fff;
  background: rgba(63, 143, 244, 0.9);
  border: 2px solid #2f7eff;
  border-radius: 10px;
  box-shadow:
    0 18px 46px rgba(22, 72, 167, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  transition:
    opacity 0.22s ease,
    scale 0.22s ease;
  will-change: transform;
}

.floating-disclaimer.is-config-pending {
  visibility: hidden;
  pointer-events: none;
}

.floating-disclaimer.is-hidden {
  opacity: 0;
  scale: 0.96;
  pointer-events: none;
}

.floating-disclaimer p {
  max-width: 410px;
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 32, 100, 0.24);
}

.floating-disclaimer strong {
  font-weight: 950;
}

.floating-disclaimer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
}

.floating-disclaimer button:hover,
.floating-disclaimer button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.floating-disclaimer button span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  font-size: 23px;
  line-height: 1;
}

.floating-disclaimer button b {
  font: inherit;
}

.regular-page {
  display: grid;
  gap: 14px;
  padding: 18px 22px 28px;
}

.regular-hero,
.regular-control-panel,
.regular-chart-section,
.regular-module {
  min-width: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(116, 151, 210, 0.24);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(9, 34, 82, 0.1);
}

.regular-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 18px;
  padding: 22px 24px;
}

.regular-hero h1 {
  margin: 8px 0 6px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.regular-hero p,
.regular-chart-head p,
.regular-module p {
  margin: 0;
  color: #5d6f98;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.regular-source-card {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 16px;
  background: linear-gradient(135deg, rgba(40, 109, 255, 0.1), rgba(43, 211, 156, 0.1));
  border: 1px solid rgba(78, 125, 210, 0.18);
  border-radius: 8px;
}

.regular-source-card span,
.regular-chart-meta span,
.regular-feature-grid span {
  color: #6e7fa4;
  font-size: 12px;
  font-weight: 800;
}

.regular-source-card strong {
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.regular-source-card small {
  color: #53658d;
  font-weight: 800;
}

.regular-source-card a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.regular-source-card em { color: #647698; font-size: 12px; font-style: normal; font-weight: 800; }

.hero-data-state { color: #61749a !important; font-size: 14px !important; font-weight: 800; }
.data-loading-row { min-height: 52px; display: flex; align-items: center; color: #7584a0; }
.news-loading { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; color: #7584a0; font-weight: 800; background: #f7f9fd; border: 1px dashed #d7dfed; border-radius: 8px; }

.regular-control-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.regular-control-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.regular-control-row .segmented-control {
  justify-content: flex-start;
}

.regular-mode-row {
  display: block;
}

.regular-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  overflow: visible;
}

.regular-mode-tabs button {
  flex: 0 0 auto;
}

.regular-chart-section {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.regular-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.regular-chart-head h2,
.regular-module h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 22px;
}

.regular-chart-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 260px;
}

.regular-chart-meta span {
  padding: 8px 10px;
  color: #1d3263;
  background: #f4f8ff;
  border: 1px solid rgba(104, 132, 190, 0.18);
  border-radius: 8px;
}

.regular-chart-wrap {
  overflow: auto;
  min-height: 720px;
  max-height: 1300px;
  border: 1px solid rgba(104, 132, 190, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(40, 109, 255, 0.2), rgba(43, 211, 156, 0.14)) border-box;
}

.regular-chart-wrap.has-shrink-console {
  overflow: visible;
  min-height: 0;
  max-height: none;
}

.regular-chart-wrap.has-sim-console {
  overflow: visible;
  min-height: 0;
  max-height: none;
  background:
    radial-gradient(circle at 16% 10%, rgba(43, 211, 156, 0.12), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(178, 81, 255, 0.12), transparent 36%),
    #fff;
}

.regular-chart-wrap.has-lucky-console {
  overflow: visible;
  min-height: 0;
  max-height: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 190, 66, 0.16), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(178, 81, 255, 0.12), transparent 34%),
    #fff;
}

.regular-trend-table {
  min-width: 980px;
  font-size: 13px;
}

.regular-trend-table th,
.regular-trend-table td {
  height: 34px;
  padding: 6px 8px;
  color: #1b2e5e;
  text-align: center;
  border: 1px solid rgba(110, 136, 185, 0.16);
  white-space: nowrap;
}

.regular-trend-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #edf4ff;
  font-weight: 900;
}

.regular-trend-table tbody th,
.regular-trend-table .regular-date {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f8fbff;
  font-weight: 900;
}

.regular-trend-table .regular-date {
  left: 88px;
  min-width: 96px;
}

.regular-basic-table th:first-child,
.regular-basic-table td:first-child {
  min-width: 88px;
}

.regular-basic-table td,
.regular-basic-table th {
  min-width: 36px;
}

.regular-number-cell {
  min-width: 150px;
  color: var(--navy);
  font-weight: 900;
}

.regular-trend-table td.miss {
  color: #99a6c1;
  font-size: 12px;
}

.regular-trend-table td.hit {
  background: rgba(240, 68, 112, 0.08);
}

.regular-hit-ball {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  color: #fff;
  background: linear-gradient(135deg, #ff4875, #ff7e4c);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(240, 68, 112, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.regular-mini-ball {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin: 1px;
  padding: 0 5px;
  color: #23406f;
  background: #eaf2ff;
  border: 1px solid rgba(77, 122, 214, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.regular-mini-ball.hot {
  color: #fff;
  background: linear-gradient(135deg, #ff4875, #ff7e4c);
  border-color: rgba(240, 68, 112, 0.35);
}

.regular-mini-ball.muted {
  color: #6f7d9b;
  background: #f3f6fb;
}

.regular-value-bar {
  position: relative;
  height: 26px;
  overflow: hidden;
  background: #f3f7ff;
  border: 1px solid rgba(95, 126, 190, 0.16);
  border-radius: 8px;
}

.regular-value-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 4px;
  background: linear-gradient(90deg, rgba(43, 141, 255, 0.2), rgba(43, 211, 156, 0.26));
}

.regular-value-bar span {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  color: #1b2e5e;
  font-size: 12px;
  font-weight: 900;
}

.regular-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
  min-width: 620px;
  padding: 14px;
}

.regular-number-stat {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid rgba(104, 132, 190, 0.18);
  border-radius: 8px;
}

.regular-number-stat.hot {
  background: rgba(240, 68, 112, 0.08);
  border-color: rgba(240, 68, 112, 0.22);
}

.regular-number-stat.cold {
  background: rgba(40, 109, 255, 0.07);
  border-color: rgba(40, 109, 255, 0.2);
}

.regular-number-stat strong {
  color: var(--navy);
  font-size: 24px;
}

.regular-number-stat span,
.regular-number-stat small {
  color: #5b6e98;
  font-size: 12px;
  font-weight: 800;
}

.regular-number-stat i {
  height: 6px;
  overflow: hidden;
  background: rgba(97, 113, 151, 0.14);
  border-radius: 999px;
}

.regular-number-stat i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: inherit;
}

.regular-tool-layout {
  display: grid;
  gap: 14px;
  min-width: 760px;
  padding: 14px;
}

.regular-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.regular-tool-grid.spacious {
  min-width: 720px;
  padding: 14px;
}

.regular-tool-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.95));
  border: 1px solid rgba(104, 132, 190, 0.18);
  border-radius: 8px;
}

.regular-tool-card.wide {
  grid-column: span 2;
}

.regular-tool-card span,
.regular-tool-card small {
  color: #62749c;
  font-size: 12px;
  font-weight: 850;
}

.regular-tool-card strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 22px;
  font-weight: 950;
}

.regular-tool-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.regular-tool-card p b {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  color: #fff;
  background: linear-gradient(135deg, #286dff, #7b61ff);
  border-radius: 999px;
  font-size: 12px;
}

.regular-tool-card i {
  height: 7px;
  overflow: hidden;
  background: rgba(97, 113, 151, 0.14);
  border-radius: 999px;
}

.regular-tool-card i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: inherit;
}

.shrink-console {
  display: grid;
  gap: 14px;
  min-width: 1080px;
  padding: 14px;
}

.shrink-toolbar,
.shrink-stat-row,
.shrink-section,
.shrink-details,
.shrink-result-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(104, 132, 190, 0.18);
  border-radius: 8px;
}

.shrink-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.shrink-toolbar strong,
.shrink-section-title h3,
.shrink-result-card strong {
  color: var(--navy);
  font-weight: 950;
}

.shrink-toolbar span,
.shrink-section-title p,
.shrink-result-card span {
  color: #66789e;
  font-size: 12px;
  font-weight: 850;
}

.shrink-toolbar-actions,
.shrink-mini-actions,
.shrink-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.shrink-toolbar button,
.shrink-mini-actions button,
.shrink-result-actions button {
  min-height: 30px;
  padding: 0 12px;
  color: #1d3263;
  background: #f7faff;
  border: 1px solid rgba(104, 132, 190, 0.24);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.shrink-toolbar button:first-child,
.shrink-result-actions button:first-child {
  color: #fff;
  background: linear-gradient(135deg, #286dff, #b251ff);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(78, 111, 255, 0.18);
}

.shrink-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.shrink-stat-row article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid rgba(104, 132, 190, 0.14);
}

.shrink-stat-row article:last-child {
  border-right: 0;
}

.shrink-stat-row span {
  color: #66789e;
  font-size: 12px;
  font-weight: 850;
}

.shrink-stat-row strong {
  color: var(--navy);
  font-size: 22px;
  font-weight: 950;
}

.shrink-limit-note {
  margin: -4px 0 0;
  padding: 9px 12px;
  color: #61739b;
  background: rgba(235, 243, 255, 0.72);
  border: 1px solid rgba(104, 132, 190, 0.14);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.shrink-section,
.shrink-details {
  padding: 14px;
}

.shrink-details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 950;
}

.shrink-details[open] summary {
  margin-bottom: 12px;
}

.shrink-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.shrink-section-title h3,
.shrink-section-title p {
  margin: 0;
}

.shrink-position-grid,
.shrink-grid {
  display: grid;
  gap: 10px;
}

.shrink-position-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shrink-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shrink-rule {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: linear-gradient(145deg, #f9fbff, #f4f8ff);
  border: 1px solid rgba(104, 132, 190, 0.16);
  border-radius: 8px;
}

.shrink-rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shrink-rule-head strong {
  color: #1d3263;
  font-weight: 950;
}

.shrink-subgroup {
  display: grid;
  gap: 7px;
}

.shrink-subgroup + .shrink-subgroup {
  padding-top: 10px;
  border-top: 1px dashed rgba(104, 132, 190, 0.2);
}

.shrink-subgroup > span {
  color: #66789e;
  font-size: 12px;
  font-weight: 900;
}

.shrink-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shrink-chip-grid.compact {
  gap: 5px;
}

.shrink-chip input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.shrink-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0 9px;
  color: #52668f;
  background: #fff;
  border: 1px solid rgba(104, 132, 190, 0.22);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.shrink-chip input:checked + span {
  color: #fff;
  background: linear-gradient(135deg, #286dff, #b251ff);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(72, 113, 255, 0.16);
}

.shrink-chip-grid.two-code .shrink-chip span {
  min-width: 42px;
}

.shrink-inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shrink-inline-fields label,
.shrink-switch {
  display: grid;
  gap: 5px;
  color: #66789e;
  font-size: 12px;
  font-weight: 900;
}

.shrink-inline-fields input,
.shrink-inline-fields select {
  min-height: 34px;
  padding: 0 10px;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(104, 132, 190, 0.24);
  border-radius: 8px;
  font-weight: 900;
}

.shrink-switch {
  display: inline-flex;
  align-items: center;
  grid-auto-flow: column;
  justify-content: start;
  margin-bottom: 8px;
}

.shrink-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 10px;
}

.shrink-result-grid.single {
  grid-template-columns: 1fr;
}

.shrink-result-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.shrink-result-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shrink-result-card textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 12px;
  color: var(--navy);
  background: #f8fbff;
  border: 1px solid rgba(104, 132, 190, 0.2);
  border-radius: 8px;
  font: 900 13px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.shrink-preview-table {
  min-width: 760px;
}

.shrink-table-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.lucky-console {
  display: grid;
  gap: 14px;
  min-width: 1060px;
  padding: 16px;
}

.lucky-toolbar,
.lucky-tabs,
.lucky-playground,
.lucky-result-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(104, 132, 190, 0.18);
  border-radius: 8px;
}

.lucky-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 210, 82, 0.28), transparent 32%),
    linear-gradient(135deg, #071f58, #184ea4 72%, #7957ff);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 36px rgba(8, 30, 82, 0.16);
}

.lucky-toolbar span {
  color: rgba(255, 231, 158, 0.9);
  font-size: 12px;
  font-weight: 950;
}

.lucky-toolbar strong {
  display: block;
  margin: 4px 0;
  font-size: 28px;
  font-weight: 950;
}

.lucky-toolbar p {
  margin: 0;
  color: rgba(238, 247, 255, 0.86);
  font-weight: 800;
}

.lucky-count-tabs,
.lucky-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lucky-count-tabs {
  justify-content: flex-end;
  min-width: 340px;
}

.lucky-count-tabs button,
.lucky-tabs button,
.lucky-actions button,
.lucky-result-panel button,
.lucky-result-item button {
  min-height: 34px;
  padding: 0 12px;
  color: #1d3263;
  background: #f7faff;
  border: 1px solid rgba(104, 132, 190, 0.24);
  border-radius: 8px;
  font-weight: 950;
}

.lucky-count-tabs button {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lucky-count-tabs button.active,
.lucky-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #286dff, #b251ff);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(78, 111, 255, 0.2);
}

.lucky-tabs {
  padding: 10px;
  background: linear-gradient(145deg, #fffaf0, #f5f8ff);
  border-color: rgba(255, 126, 86, 0.22);
}

.lucky-tabs button {
  flex: 1 1 110px;
}

.lucky-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) minmax(330px, 0.46fr);
  gap: 14px;
  align-items: start;
}

.lucky-playground {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.lucky-wheel-shell {
  display: grid;
  place-items: center;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 210, 88, 0.18), transparent 42%),
    linear-gradient(180deg, #fff, #fffaf1);
  border: 1px solid rgba(255, 173, 64, 0.18);
  border-radius: 8px;
}

.lucky-wheel {
  --wheel-radius: 205px;
  position: relative;
  width: 570px;
  height: 570px;
  border: 18px solid #ff704e;
  border-radius: 50%;
  box-shadow:
    0 20px 48px rgba(172, 73, 32, 0.16),
    inset 0 0 0 7px rgba(255, 247, 196, 0.74),
    inset 0 0 0 118px rgba(255, 255, 255, 0.07);
  transform-origin: 50% 50%;
  transition: filter 0.22s ease;
}

.lucky-wheel::before {
  position: absolute;
  inset: -34px;
  content: "";
  border: 12px solid rgba(203, 211, 226, 0.26);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.lucky-wheel::after {
  position: absolute;
  inset: 105px;
  content: "";
  background: radial-gradient(circle at 36% 28%, #fff, #ffb163 24%, #ff5e35 70%);
  border: 12px solid #fff6cf;
  border-radius: 50%;
  box-shadow:
    inset 0 -16px 26px rgba(211, 61, 30, 0.24),
    0 12px 26px rgba(138, 65, 15, 0.18);
}

.lucky-wheel.spinning {
  filter: drop-shadow(0 18px 32px rgba(255, 112, 50, 0.2));
  will-change: transform;
}

.lucky-console.is-working .lucky-tabs button,
.lucky-console.is-working .lucky-count-tabs button,
.lucky-console.is-working .lucky-wheel > button:not(.lucky-wheel-center),
.lucky-console.is-working .lucky-actions button {
  pointer-events: none;
}

.lucky-console.is-working .lucky-wheel-center,
.lucky-console.is-working .lucky-actions button:first-child {
  opacity: 0.82;
  cursor: progress;
}

.lucky-wheel > button:not(.lucky-wheel-center) {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 86px;
  min-height: 96px;
  padding: 0;
  color: #f6312d;
  background: transparent;
  border: 0;
  font-weight: 950;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--wheel-radius) * -1)) rotate(calc(var(--angle) * -1));
  z-index: 2;
}

.lucky-wheel > button:not(.lucky-wheel-center) b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.94), transparent 16%),
    linear-gradient(135deg, #ff9b4c, #fb4e49);
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(140, 47, 25, 0.16);
  font-size: 22px;
}

.lucky-wheel > button:not(.lucky-wheel-center) span {
  color: inherit;
  font-size: 16px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lucky-wheel > button:not(.lucky-wheel-center).active b {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), transparent 16%),
    linear-gradient(135deg, #286dff, #b251ff);
  box-shadow: 0 10px 22px rgba(78, 111, 255, 0.28);
}

.lucky-wheel > button:not(.lucky-wheel-center).active span {
  color: #fff;
}

.lucky-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  padding: 0;
  color: #fff;
  background:
    radial-gradient(circle at 36% 26%, #fff, #ffb064 18%, #ff5d35 54%, #e72c28);
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(138, 65, 15, 0.2);
  font-size: 18px;
  font-weight: 950;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.lucky-input-panel {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 360px;
  padding: 32px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 210, 88, 0.2), transparent 30%),
    linear-gradient(145deg, #fffaf2, #f4f8ff);
  border: 1px solid rgba(255, 173, 64, 0.2);
  border-radius: 8px;
}

.lucky-input-icon {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  color: #fff;
  background: linear-gradient(135deg, #ff704e, #b251ff);
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(255, 112, 78, 0.22);
  font-size: 42px;
  font-weight: 950;
}

.lucky-input-panel strong {
  color: var(--navy);
  font-size: 24px;
  font-weight: 950;
}

.lucky-input-panel p {
  margin: 8px 0 18px;
  color: #66789e;
  font-weight: 850;
}

.lucky-input-panel input {
  width: min(420px, 100%);
  min-height: 46px;
  padding: 0 14px;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(104, 132, 190, 0.24);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
}

.lucky-input-panel input.invalid {
  border-color: rgba(240, 68, 112, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 68, 112, 0.1);
}

.lucky-input-panel small {
  display: block;
  min-height: 20px;
  margin-top: 7px;
  color: #f04470;
  font-size: 12px;
  font-weight: 900;
}

.lucky-tip {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  color: #1d3263;
  background: #fffaf0;
  border: 1px solid rgba(255, 173, 64, 0.22);
  border-radius: 8px;
  font-weight: 900;
}

.lucky-tip b {
  color: #f04470;
  white-space: nowrap;
}

.lucky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lucky-actions button:first-child,
.lucky-result-panel > button {
  color: #fff;
  background: linear-gradient(135deg, #286dff, #b251ff);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(78, 111, 255, 0.2);
}

.lucky-actions button:disabled,
.lucky-result-panel > button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.lucky-privacy {
  margin: 0;
  color: #66789e;
  font-size: 12px;
  font-weight: 850;
}

.lucky-result-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  min-height: 420px;
}

.lucky-result-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lucky-result-panel span,
.lucky-result-panel p,
.lucky-result-item small {
  color: #66789e;
  font-size: 12px;
  font-weight: 850;
}

.lucky-result-panel strong {
  color: var(--navy);
  font-weight: 950;
}

.lucky-result-list {
  display: grid;
  gap: 9px;
  max-height: 620px;
  overflow: auto;
}

.lucky-result-item {
  display: grid;
  gap: 7px;
  padding: 12px;
  background:
    radial-gradient(circle at 92% 0%, rgba(43, 211, 156, 0.12), transparent 34%),
    #f8fbff;
  border: 1px solid rgba(104, 132, 190, 0.16);
  border-radius: 8px;
  animation: luckyResultIn 0.28s ease-out;
}

.lucky-result-item strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 22px;
}

.lucky-result-item div {
  display: flex;
  gap: 7px;
}

.lucky-result-item button {
  min-height: 28px;
  font-size: 12px;
}

@keyframes luckyResultIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sim-draw-console {
  display: grid;
  gap: 14px;
  min-width: 980px;
  padding: 16px;
}

.sim-draw-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 30, 83, 0.96), rgba(21, 67, 148, 0.92)),
    radial-gradient(circle at 84% 12%, rgba(67, 205, 255, 0.24), transparent 34%);
  border: 1px solid rgba(96, 154, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(8, 30, 82, 0.18);
}

.sim-draw-hero span {
  color: rgba(164, 217, 255, 0.86);
  font-size: 12px;
  font-weight: 950;
}

.sim-draw-hero strong {
  display: block;
  margin: 4px 0;
  font-size: 28px;
  font-weight: 950;
}

.sim-draw-hero p {
  margin: 0;
  color: rgba(238, 247, 255, 0.86);
  font-weight: 800;
}

.sim-draw-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sim-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.sim-draw-controls button,
.sim-latest-card button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, #286dff, #b251ff);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(78, 111, 255, 0.24);
  font-weight: 950;
}

.sim-draw-controls button:nth-of-type(2) {
  background: linear-gradient(135deg, #20c997, #2f80ed);
}

.sim-draw-controls button:nth-of-type(3) {
  color: #1d3263;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.sim-draw-controls button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.sim-draw-stage {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(460px, 1.2fr);
  gap: 14px;
}

.sim-machine,
.sim-result-board,
.sim-pool,
.sim-latest-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(104, 132, 190, 0.18);
  border-radius: 8px;
}

.sim-machine {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(119, 205, 255, 0.2), transparent 42%),
    linear-gradient(180deg, #f8fbff, #eef6ff);
}

.sim-machine::before {
  position: absolute;
  inset: 24px 48px auto;
  height: 72px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0.65;
  transform: rotate(-8deg);
}

.sim-drum {
  position: relative;
  display: grid;
  place-items: center;
  width: 270px;
  height: 270px;
  border: 14px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 16%),
    radial-gradient(circle at center, rgba(214, 239, 255, 0.88), rgba(108, 176, 255, 0.36));
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.82),
    inset 0 -28px 48px rgba(42, 99, 190, 0.16),
    0 24px 60px rgba(30, 70, 140, 0.2);
}

.sim-drum i {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #ff6c87, #e92555);
  border-radius: 50%;
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.42),
    0 8px 16px rgba(47, 72, 126, 0.18);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  transform:
    rotate(calc(var(--i) * 20deg))
    translateY(-102px)
    rotate(calc(var(--i) * -20deg));
  animation: simOrbit 6s linear infinite;
  animation-delay: var(--delay);
}

.sim-drum i:nth-child(3n) {
  background: linear-gradient(135deg, #6fcaff, #316cff);
}

.sim-drum i:nth-child(4n) {
  background: linear-gradient(135deg, #5be7bd, #16b982);
}

.sim-drum i:nth-child(5n) {
  background: linear-gradient(135deg, #ffc05f, #ff8035);
}

.sim-live-ball {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #ffffff, #55c8ff 18%, #286dff 58%, #142d83);
  border: 8px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  box-shadow:
    inset 0 4px 18px rgba(255, 255, 255, 0.5),
    0 20px 38px rgba(43, 102, 210, 0.32);
  font-size: 34px;
  font-weight: 950;
}

.sim-draw-console.is-drawing .sim-live-ball {
  animation: simPulse 0.42s ease-in-out infinite alternate;
}

.sim-machine-base {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(9, 34, 82, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.sim-machine-base strong,
.sim-machine-base span {
  color: #fff;
  font-weight: 900;
}

.sim-machine-base span {
  color: rgba(234, 244, 255, 0.78);
  font-size: 12px;
}

.sim-draw-stage {
  grid-template-columns: minmax(620px, 1.15fr) minmax(360px, 0.85fr);
}

.sim-machine {
  min-height: 590px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(7, 21, 73, 0.98), rgba(7, 43, 132, 0.96) 58%, rgba(16, 91, 174, 0.98)),
    radial-gradient(circle at 48% 34%, rgba(63, 202, 255, 0.32), transparent 38%);
  border-color: rgba(116, 191, 255, 0.26);
  box-shadow:
    inset 0 0 90px rgba(38, 148, 255, 0.22),
    0 24px 58px rgba(5, 26, 78, 0.18);
}

.sim-machine::before {
  inset: auto 0 0;
  height: 190px;
  background:
    linear-gradient(180deg, transparent 0 22%, rgba(6, 33, 100, 0.78) 23% 100%),
    linear-gradient(135deg, transparent 0 14%, rgba(4, 23, 80, 0.8) 15% 30%, transparent 31%),
    linear-gradient(45deg, transparent 0 44%, rgba(4, 24, 84, 0.88) 45% 58%, transparent 59%);
  opacity: 0.86;
  transform: none;
  z-index: 0;
}

.sim-machine::after {
  position: absolute;
  right: -12%;
  bottom: -24%;
  left: -12%;
  height: 280px;
  content: "";
  background: radial-gradient(ellipse at center, rgba(51, 146, 255, 0.46), rgba(18, 54, 156, 0.12) 58%, transparent 70%);
  z-index: 0;
}

.sim-star-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(98, 218, 255, 0.72) 0 1px, transparent 1.8px);
  background-position: 0 0, 34px 22px;
  background-size: 54px 54px, 82px 82px;
  opacity: 0.38;
  z-index: 0;
}

.sim-brand-orbit {
  position: absolute;
  top: 18px;
  right: 22px;
  left: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 4;
  pointer-events: none;
}

.sim-brand-orbit span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: rgba(230, 241, 255, 0.72);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.2), transparent 24%),
    rgba(5, 15, 43, 0.68);
  border: 1px solid rgba(179, 218, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.24);
  font-size: 11px;
  font-weight: 950;
}

.sim-brand-orbit span.active {
  color: #fff;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(135deg, #ffb93e, #ff7a25);
  border-color: rgba(255, 226, 164, 0.7);
}

.sim-bowl-ring {
  position: absolute;
  top: 104px;
  left: 50%;
  width: 430px;
  height: 362px;
  border: 4px solid rgba(244, 64, 160, 0.86);
  border-right-color: rgba(97, 218, 255, 0.82);
  border-bottom-color: rgba(49, 182, 255, 0.48);
  border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(87, 210, 255, 0.42));
  transform: translateX(-55%) rotate(-7deg);
  z-index: 1;
}

.sim-glass-bowl {
  position: absolute;
  top: 92px;
  left: 50%;
  width: 430px;
  height: 360px;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 50% 72%, rgba(28, 143, 255, 0.38), transparent 54%),
    rgba(24, 84, 198, 0.22);
  border: 2px solid rgba(184, 236, 255, 0.72);
  border-radius: 50%;
  box-shadow:
    inset 12px 0 24px rgba(255, 255, 255, 0.2),
    inset -20px -24px 44px rgba(7, 41, 139, 0.54),
    0 28px 58px rgba(0, 11, 55, 0.32);
  transform: translateX(-55%);
  z-index: 2;
}

.sim-glass-bowl::before,
.sim-glass-bowl::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: 7;
}

.sim-glass-bowl::before {
  top: 44px;
  right: 72px;
  width: 82px;
  height: 248px;
  border-right: 3px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  transform: rotate(15deg);
}

.sim-glass-bowl::after {
  top: 32px;
  left: 50px;
  width: 52px;
  height: 182px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: rotate(12deg);
}

.sim-bowl-cap {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 172px;
  height: 32px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.88), transparent 13%),
    linear-gradient(90deg, #2bd6ff, #74f0ff 48%, #2aa8ff);
  border-radius: 50%;
  box-shadow:
    inset 0 -7px 12px rgba(14, 91, 179, 0.35),
    0 0 24px rgba(71, 222, 255, 0.72);
  transform: translateX(-50%);
  z-index: 9;
}

.sim-drum {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 4;
}

.sim-drum i {
  top: var(--y);
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background:
    radial-gradient(circle at 30% 24%, #ffffff 0 8%, #ff9b9f 9% 22%, #f03847 46%, #b50f24 100%);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow:
    inset -5px -8px 12px rgba(114, 0, 15, 0.3),
    0 8px 15px rgba(0, 11, 54, 0.28);
  font-size: 13px;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: simFloat 3.4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.sim-drum i:nth-child(3n),
.sim-drum i:nth-child(4n),
.sim-drum i:nth-child(5n) {
  background:
    radial-gradient(circle at 30% 24%, #ffffff 0 8%, #ff9b9f 9% 22%, #f03847 46%, #b50f24 100%);
}

.sim-draw-console.is-drawing .sim-drum i {
  animation: simMix 0.78s cubic-bezier(0.38, 0, 0.28, 1) infinite;
  animation-delay: var(--delay);
}

.sim-bowl-wave {
  position: absolute;
  right: 22px;
  bottom: 44px;
  left: 22px;
  height: 126px;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.6) 0 5px, transparent 6px),
    radial-gradient(circle at 54% 24%, rgba(111, 249, 255, 0.62) 0 5px, transparent 6px),
    radial-gradient(circle at 80% 34%, rgba(255, 255, 255, 0.55) 0 4px, transparent 5px),
    linear-gradient(180deg, rgba(67, 235, 255, 0.88), rgba(24, 148, 242, 0.96));
  border-radius: 48% 52% 42% 58% / 38% 42% 58% 62%;
  box-shadow:
    inset 0 10px 28px rgba(255, 255, 255, 0.34),
    inset 0 -18px 30px rgba(0, 72, 196, 0.42),
    0 -8px 20px rgba(76, 220, 255, 0.28);
  transform: rotate(-2deg);
  z-index: 5;
}

.sim-bowl-brand {
  position: absolute;
  right: 0;
  bottom: 72px;
  left: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0, 78, 160, 0.46),
    0 0 18px rgba(96, 236, 255, 0.46);
  z-index: 6;
}

.sim-live-ball {
  position: absolute;
  right: 56px;
  bottom: 86px;
  width: 68px;
  height: 68px;
  background:
    radial-gradient(circle at 31% 24%, #ffffff 0 8%, #ff9fa5 9% 24%, #f23f51 50%, #ab0d27 100%);
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset -8px -10px 16px rgba(110, 0, 23, 0.32),
    0 16px 28px rgba(1, 13, 55, 0.28),
    0 0 20px rgba(255, 78, 96, 0.24);
  font-size: 24px;
  transform-origin: center;
  z-index: 8;
}

.sim-live-ball.back {
  background:
    radial-gradient(circle at 31% 24%, #ffffff 0 8%, #92d8ff 9% 24%, #2f86ff 50%, #153ab5 100%);
  box-shadow:
    inset -8px -10px 16px rgba(0, 26, 110, 0.32),
    0 16px 28px rgba(1, 13, 55, 0.28),
    0 0 20px rgba(72, 176, 255, 0.24);
}

.sim-draw-console.is-drawing .sim-live-ball {
  animation: simPulse 0.3s ease-in-out infinite alternate;
}

.sim-live-ball.is-revealing {
  animation: simBallDrop 0.52s cubic-bezier(0.23, 0.78, 0.25, 1.08);
}

.sim-draw-console.is-drawing .sim-live-ball.is-revealing {
  animation: simBallDrop 0.52s cubic-bezier(0.23, 0.78, 0.25, 1.08);
}

.sim-side-tube {
  position: absolute;
  overflow: visible;
  filter: drop-shadow(0 16px 24px rgba(0, 13, 69, 0.38));
  pointer-events: none;
}

.sim-tube-rim,
.sim-tube-body,
.sim-tube-glint {
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: round;
}

.sim-tube-rim {
  stroke: url("#simTubeRim");
  stroke-width: 80px;
  opacity: 0.82;
}

.sim-tube-body {
  stroke: url("#simTubeBody");
  stroke-width: 68px;
}

.sim-tube-glint {
  stroke: rgba(194, 230, 255, 0.28);
  stroke-width: 5px;
}

.sim-tube-outlet-rim {
  fill: #6f72e8;
  filter: drop-shadow(0 0 12px rgba(99, 220, 255, 0.5));
}

.sim-tube-outlet-body {
  fill: url("#simOutletBody");
}

.sim-tube-outlet-collar {
  fill: rgba(91, 99, 226, 0.94);
  stroke: rgba(154, 171, 255, 0.76);
  stroke-width: 2px;
}

.sim-tube-outlet-glint {
  fill: none;
  stroke: rgba(255, 255, 255, 0.52);
  stroke-linecap: round;
  stroke-width: 5px;
}

.sim-tube-clamps rect {
  fill: url("#simClampBody");
  filter: drop-shadow(0 4px 6px rgba(27, 10, 105, 0.38));
  stroke: rgba(186, 134, 255, 0.7);
  stroke-width: 1px;
}

.sim-tube-mouth-rim {
  fill: #7669e7;
}

.sim-tube-mouth {
  fill: #081f5f;
  stroke: rgba(166, 173, 255, 0.52);
  stroke-width: 2px;
}

.sim-draw-console.is-drawing .sim-tube-glint {
  animation: simTubeGlint 1.2s ease-in-out infinite alternate;
}

.sim-output-rail {
  position: absolute;
  right: 72px;
  bottom: 82px;
  left: 64px;
  height: 58px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(91, 113, 220, 0.98), rgba(24, 55, 145, 0.98) 36%, rgba(8, 34, 105, 0.98) 72%, rgba(48, 70, 171, 0.98));
  border: 4px solid rgba(132, 124, 245, 0.96);
  border-top-color: rgba(173, 164, 255, 0.98);
  border-radius: 999px;
  box-shadow:
    inset 0 8px 12px rgba(211, 220, 255, 0.3),
    inset 0 -12px 18px rgba(0, 13, 76, 0.48),
    0 0 24px rgba(103, 98, 241, 0.34);
  z-index: 2;
}

.sim-output-rail::before {
  position: absolute;
  top: 7px;
  right: 30px;
  left: 30px;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(219, 226, 255, 0.48), transparent);
  border-radius: 999px;
}

.sim-power-button {
  position: absolute;
  left: 50%;
  bottom: 130px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 26%, #fff 0 10%, #ff8ef1 11% 20%, #705bff 45%, #2856ff 100%);
  border: 4px solid rgba(172, 230, 255, 0.84);
  border-radius: 50%;
  box-shadow:
    inset 0 -12px 18px rgba(4, 31, 135, 0.34),
    0 0 28px rgba(99, 234, 255, 0.46),
    0 18px 32px rgba(0, 12, 76, 0.28);
  cursor: pointer;
  transform: translateX(-72%);
  z-index: 7;
}

.sim-power-button span {
  font-size: 34px;
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(0, 22, 92, 0.34);
}

.sim-power-button:disabled {
  cursor: wait;
  filter: saturate(1.2);
}

.sim-draw-console.is-drawing .sim-power-button {
  animation: simButtonGlow 0.76s ease-in-out infinite alternate;
}

.sim-hand-pointer {
  position: absolute;
  left: calc(50% + 5px);
  bottom: 112px;
  width: 74px;
  height: 56px;
  background: linear-gradient(135deg, #fff, #d9f5ff);
  border: 2px solid rgba(0, 104, 210, 0.16);
  border-radius: 22px 22px 18px 28px;
  box-shadow: 0 12px 22px rgba(0, 15, 76, 0.26);
  transform: rotate(-28deg);
  z-index: 8;
}

.sim-hand-pointer::before {
  position: absolute;
  top: -13px;
  left: 8px;
  width: 18px;
  height: 34px;
  content: "";
  background: linear-gradient(180deg, #fff, #dcf6ff);
  border-radius: 12px;
  transform: rotate(-12deg);
}

.sim-hand-pointer::after {
  position: absolute;
  right: -18px;
  bottom: 10px;
  width: 28px;
  height: 15px;
  content: "";
  background: linear-gradient(90deg, #fff, #dff7ff);
  border-radius: 12px;
  transform: rotate(22deg);
}

.sim-draw-console.is-drawing .sim-hand-pointer {
  animation: simHandTap 0.76s ease-in-out infinite alternate;
}

.sim-drop-hint {
  position: absolute;
  right: 34px;
  bottom: 198px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(2, 17, 57, 0.52);
  border: 1px solid rgba(184, 232, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(0, 12, 54, 0.2);
  z-index: 6;
}

.sim-drop-hint span {
  color: rgba(198, 232, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.sim-drop-hint b {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.sim-machine-base {
  right: 28px;
  bottom: 22px;
  left: 28px;
  align-items: center;
  padding: 13px 16px;
  background: rgba(3, 18, 62, 0.74);
  border-color: rgba(161, 221, 255, 0.2);
  backdrop-filter: blur(12px);
  z-index: 5;
}

.sim-brand-orbit,
.sim-hand-pointer,
.sim-drop-hint,
.sim-bowl-brand,
.sim-drum {
  display: none !important;
}

.sim-machine {
  min-height: 680px;
}

.sim-bowl-ring {
  top: 58px;
  width: 500px;
  height: 420px;
  border-width: 3px;
  border-color: rgba(115, 205, 255, 0.68);
  border-left-color: rgba(238, 75, 168, 0.78);
  transform: translateX(-50%) rotate(-5deg);
}

.sim-glass-bowl {
  top: 56px;
  width: 500px;
  height: 420px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 18%),
    radial-gradient(circle at 52% 58%, rgba(55, 165, 255, 0.34), transparent 54%),
    rgba(22, 83, 194, 0.2);
  transform: translateX(-50%);
}

.sim-ball-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 4;
}

.sim-bowl-wave {
  right: 38px;
  bottom: 40px;
  left: 38px;
  height: 84px;
  opacity: 0.92;
  background:
    radial-gradient(circle at 16% 26%, rgba(124, 255, 255, 0.86) 0 7px, transparent 8px),
    radial-gradient(circle at 34% 70%, rgba(255, 255, 255, 0.64) 0 5px, transparent 6px),
    radial-gradient(circle at 58% 24%, rgba(80, 255, 246, 0.8) 0 7px, transparent 8px),
    radial-gradient(circle at 82% 62%, rgba(255, 255, 255, 0.56) 0 5px, transparent 6px),
    linear-gradient(180deg, rgba(92, 234, 255, 0.96), rgba(15, 156, 245, 0.98) 62%, rgba(8, 91, 211, 0.98));
  border-top: 1px solid rgba(208, 254, 255, 0.8);
  z-index: 6;
}

.sim-live-ball {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: 64px;
  height: 64px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.76);
  z-index: 8;
}

.sim-draw-console.is-drawing .sim-live-ball {
  opacity: 1;
  animation: simBallRevealPulse 0.36s ease-in-out infinite alternate;
}

.sim-live-ball.is-revealing,
.sim-draw-console.is-drawing .sim-live-ball.is-revealing {
  opacity: 1;
  animation: simBallRevealPop 0.46s cubic-bezier(0.18, 0.84, 0.27, 1.12);
}

.sim-power-button {
  bottom: 92px;
  width: 82px;
  height: 82px;
  transform: translateX(-50%);
}

.sim-power-button span {
  font-size: 30px;
}

.sim-draw-console.is-drawing .sim-power-button {
  animation: simButtonGlowCentered 0.72s ease-in-out infinite alternate;
}

.sim-machine-base {
  top: 18px;
  right: auto;
  bottom: auto;
  left: 20px;
  display: grid;
  gap: 2px;
  width: auto;
  padding: 9px 12px;
  z-index: 6;
}

.sim-machine-base span[data-sim-status] {
  color: rgba(218, 241, 255, 0.82);
  font-size: 11px;
}

.sim-side-tube {
  top: 72px;
  left: calc(50% + 60px);
  width: 220px;
  height: 530px;
  z-index: 5;
}

.sim-output-rail {
  right: 38px;
  bottom: 22px;
  left: 38px;
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 18px;
  overflow: visible;
  z-index: 4;
}

.sim-track-balls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sim-track-ball {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: radial-gradient(circle at 31% 24%, #fff 0 8%, #ff9fa5 9% 24%, #f23f51 50%, #ab0d27 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow:
    inset -6px -8px 12px rgba(110, 0, 23, 0.3),
    0 8px 16px rgba(1, 13, 55, 0.3);
  font-size: 16px;
  font-weight: 950;
}

.sim-track-ball.back {
  background: radial-gradient(circle at 31% 24%, #fff 0 8%, #92d8ff 9% 24%, #2f86ff 50%, #153ab5 100%);
  box-shadow:
    inset -6px -8px 12px rgba(0, 26, 110, 0.3),
    0 8px 16px rgba(1, 13, 55, 0.3);
}

.sim-track-ball.is-entering {
  animation: simTrackBallEnter 1.05s cubic-bezier(0.18, 0.76, 0.2, 1) both;
}

.sim-track-balls.dense {
  gap: 3px;
}

.sim-track-balls.dense .sim-track-ball {
  flex-basis: 23px;
  width: 23px;
  height: 23px;
  font-size: 9px;
}

.sim-result-board {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
}

.sim-result-lane {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(145deg, #f9fbff, #f1f7ff);
  border: 1px solid rgba(104, 132, 190, 0.16);
  border-radius: 8px;
}

.sim-result-lane strong {
  color: var(--navy);
  font-weight: 950;
}

.sim-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-slot-wrap {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.sim-slot-wrap span {
  color: #66789e;
  font-size: 11px;
  font-weight: 850;
}

.sim-slot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, #ff6c87, #e92555);
  border-radius: 50%;
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.42),
    0 10px 18px rgba(229, 37, 85, 0.18);
  font-size: 18px;
  font-weight: 950;
}

.sim-slot.back {
  background: linear-gradient(135deg, #6fcaff, #316cff);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.42),
    0 10px 18px rgba(49, 108, 255, 0.18);
}

.sim-slot.spinning {
  animation: simSlotSpin 0.18s ease-in-out infinite alternate;
}

.sim-slot.locked {
  animation: simSlotPop 0.34s ease-out;
}

.sim-latest-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 90% 0%, rgba(43, 211, 156, 0.16), transparent 32%),
    #fff;
}

.sim-latest-card > span {
  color: #66789e;
  font-size: 12px;
  font-weight: 900;
}

.sim-latest-card strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 28px;
  font-weight: 950;
}

.sim-latest-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-latest-card small {
  padding: 7px 9px;
  color: #61739b;
  background: #f3f7ff;
  border: 1px solid rgba(104, 132, 190, 0.16);
  border-radius: 8px;
  font-weight: 900;
}

.sim-latest-card b {
  color: var(--navy);
}

.sim-latest-card button {
  justify-self: start;
}

.sim-pool {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.sim-pool strong {
  color: var(--navy);
  font-weight: 950;
}

.sim-pool p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.sim-pool-ball {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff6c87, #e92555);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.sim-pool-ball.back {
  background: linear-gradient(135deg, #6fcaff, #316cff);
}

.sim-history-table {
  min-width: 760px;
}

@keyframes simOrbit {
  from {
    transform:
      rotate(calc(var(--i) * 20deg))
      translateY(-102px)
      rotate(calc(var(--i) * -20deg));
  }

  to {
    transform:
      rotate(calc(var(--i) * 20deg + 360deg))
      translateY(-102px)
      rotate(calc(var(--i) * -20deg - 360deg));
  }
}

@keyframes simPulse {
  from {
    transform: scale(0.96);
    filter: saturate(1);
  }

  to {
    transform: scale(1.04);
    filter: saturate(1.25);
  }
}

@keyframes simFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-5deg);
  }

  35% {
    transform: translate(calc(-50% + 10px), calc(-50% - 8px)) rotate(9deg);
  }

  70% {
    transform: translate(calc(-50% - 8px), calc(-50% + 9px)) rotate(-10deg);
  }
}

@keyframes simMix {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  30% {
    transform: translate(calc(-50% + 34px), calc(-50% - 26px)) rotate(128deg) scale(0.96);
  }

  68% {
    transform: translate(calc(-50% - 30px), calc(-50% + 28px)) rotate(258deg) scale(1.05);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

@keyframes simBallDrop {
  0% {
    opacity: 0.9;
    transform: translate(-84px, -96px) scale(0.72) rotate(-160deg);
  }

  55% {
    opacity: 1;
    transform: translate(22px, 10px) scale(1.08) rotate(80deg);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@keyframes simBallRevealPulse {
  from {
    transform: translate(-50%, -50%) scale(0.92);
    filter: saturate(1);
  }

  to {
    transform: translate(-50%, -50%) scale(1.04);
    filter: saturate(1.18);
  }
}

@keyframes simBallRevealPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.38) rotate(-18deg);
  }

  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.16) rotate(8deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes simTrackBallEnter {
  0% {
    opacity: 0;
    transform: translate(var(--track-entry-x, 470px), var(--track-entry-y, -390px)) rotate(0deg) scale(0.72);
  }

  12% {
    opacity: 0.9;
  }

  58% {
    opacity: 1;
    transform: translate(var(--track-entry-x, 470px), var(--track-exit-y, -34px)) rotate(640deg) scale(0.96);
  }

  68% {
    transform: translate(var(--track-entry-x, 470px), 0) rotate(760deg) scale(1);
  }

  86% {
    transform: translate(var(--track-mid-x, 150px), 0) rotate(1040deg) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(1260deg) scale(1);
  }
}

@keyframes simTubeGlint {
  from {
    opacity: 0.42;
  }

  to {
    opacity: 0.88;
  }
}

@keyframes simButtonGlow {
  from {
    box-shadow:
      inset 0 -12px 18px rgba(4, 31, 135, 0.34),
      0 0 24px rgba(99, 234, 255, 0.36),
      0 18px 32px rgba(0, 12, 76, 0.28);
    transform: translateX(-72%) scale(0.98);
  }

  to {
    box-shadow:
      inset 0 -12px 18px rgba(4, 31, 135, 0.34),
      0 0 38px rgba(99, 234, 255, 0.7),
      0 18px 32px rgba(0, 12, 76, 0.28);
    transform: translateX(-72%) scale(1.04);
  }
}

@keyframes simButtonGlowCentered {
  from {
    box-shadow:
      inset 0 -12px 18px rgba(4, 31, 135, 0.34),
      0 0 20px rgba(99, 234, 255, 0.34),
      0 18px 32px rgba(0, 12, 76, 0.28);
    transform: translateX(-50%) scale(0.98);
  }

  to {
    box-shadow:
      inset 0 -12px 18px rgba(4, 31, 135, 0.34),
      0 0 34px rgba(99, 234, 255, 0.64),
      0 18px 32px rgba(0, 12, 76, 0.28);
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes simHandTap {
  from {
    transform: translate(0, 0) rotate(-28deg);
  }

  to {
    transform: translate(-7px, -8px) rotate(-24deg);
  }
}

@keyframes simSlotSpin {
  from {
    filter: blur(0.45px) saturate(1.1);
    transform: translateY(-2px) scale(0.94);
  }

  to {
    filter: blur(0) saturate(1.3);
    transform: translateY(2px) scale(1.03);
  }
}

@keyframes simSlotPop {
  0% {
    transform: scale(0.82);
  }

  70% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

.prize-map-page {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.prize-map-hero,
.prize-info-section,
.prize-map-section,
.prize-map-note {
  border: 1px solid rgba(191, 216, 244, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.92)),
    #fff;
  box-shadow: 0 14px 34px rgba(15, 54, 110, 0.12);
}

.prize-map-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 24px;
}

.prize-map-hero h1 {
  margin: 10px 0 6px;
  color: #061f55;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
}

.prize-map-hero p {
  max-width: 760px;
  margin: 0;
  color: #58709d;
  font-size: 17px;
  font-weight: 800;
}

.prize-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.prize-map-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.prize-lottery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 780px;
}

.prize-lottery-tabs button {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #24406f;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 0 12px;
}

.prize-lottery-tabs button small {
  border-radius: 999px;
  background: #eaf4ff;
  color: #4771a5;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
}

.prize-lottery-tabs button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #2b7aff, #b33dff);
  color: #fff;
  box-shadow: 0 12px 22px rgba(57, 110, 255, 0.24);
}

.prize-lottery-tabs button.active small {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.prize-lottery-tabs button.pending:not(.active) {
  color: #7a8cac;
}

.prize-map-toolbar button {
  min-height: 42px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #24406f;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 0 15px;
}

.prize-map-toolbar button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #2b7aff, #b33dff);
  color: #fff;
  box-shadow: 0 12px 22px rgba(57, 110, 255, 0.24);
}

.prize-map-toolbar button.is-disabled,
.prize-map-toolbar button:disabled {
  border-color: #dce6f3;
  background: #f7f9fc;
  color: #8798b5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.prize-map-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.prize-kpi-card {
  display: grid;
  gap: 8px;
  min-height: 104px;
  border: 1px solid rgba(202, 222, 246, 0.95);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #edf6ff);
  padding: 16px;
}

.prize-kpi-card span,
.section-kicker,
.rank-panel-head p,
.selected-province-summary dt {
  color: #6d82aa;
  font-size: 13px;
  font-weight: 900;
}

.prize-kpi-card strong {
  color: #061f55;
  font-size: 26px;
  line-height: 1;
}

.prize-kpi-card small {
  color: #58709d;
  font-size: 13px;
  font-weight: 800;
}

.prize-kpi-card.muted {
  background: linear-gradient(145deg, #ffffff, #f5f8fc);
}

.prize-kpi-card.error {
  grid-column: 1 / -1;
  background: #fff7f7;
}

.prize-info-section,
.prize-map-section {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.prize-section-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
}

.prize-section-head h2 {
  margin: 5px 0 4px;
  color: #061f55;
  font-size: 27px;
}

.prize-section-head span {
  color: #5b719d;
  font-size: 15px;
  font-weight: 800;
}

.prize-source-link {
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f7fbff;
  color: #2456ca;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.prize-info-layout,
.china-map-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.prize-table-panel,
.prize-rank-panel,
.china-map-panel,
.city-detail-panel {
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  background: rgba(250, 253, 255, 0.86);
}

.prize-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.prize-detail-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.prize-detail-table th,
.prize-detail-table td {
  border-bottom: 1px solid #e4edf8;
  color: #09275d;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.prize-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eaf3ff;
  color: #60769f;
  font-size: 13px;
}

.prize-detail-table td:nth-child(7) {
  max-width: 440px;
  color: #5b719d;
  font-size: 13px;
  line-height: 1.45;
}

.prize-rank-panel,
.city-detail-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.rank-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.rank-panel-head p {
  margin: 0;
}

.rank-panel-head strong {
  color: #061f55;
  font-size: 20px;
}

.province-rank-list,
.city-rank-list {
  display: grid;
  gap: 9px;
}

.province-rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid #d7e5f6;
  border-radius: 8px;
  background: #fff;
  color: #08255a;
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
}

.province-rank-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf5ff;
  color: #31568c;
  font-weight: 900;
}

.province-rank-item strong,
.province-rank-item em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-weight: 900;
}

.province-rank-item i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(75, 137, 255, 0.16), rgba(172, 67, 255, 0.12));
}

.province-rank-item.active {
  border-color: #6e72ff;
  box-shadow: 0 8px 18px rgba(79, 111, 255, 0.18);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.map-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  border: 1px solid #d6e5f5;
  border-radius: 8px;
  background: #fff;
  color: #5d7198;
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
}

.map-legend i {
  width: 18px;
  height: 10px;
  border-radius: 10px;
  background: var(--c);
}

.china-map-panel {
  min-height: 700px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(109, 189, 255, 0.28), transparent 30%),
    linear-gradient(180deg, #f9fcff, #eef7ff);
}

#chinaPrizeMap {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  min-height: 680px;
}

.map-ocean {
  fill: rgba(241, 248, 255, 0.86);
  stroke: none;
}

.map-grid-lines line {
  stroke: rgba(120, 158, 205, 0.18);
  stroke-width: 1;
}

.china-province {
  cursor: pointer;
  outline: none;
  stroke: #ffffff;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition:
    fill 0.2s ease,
    filter 0.2s ease,
    stroke 0.2s ease;
}

.china-province:not(.has-data) {
  pointer-events: none;
}

.china-province.has-data:hover,
.china-province.active,
.china-province.has-data:focus-visible {
  filter: drop-shadow(0 8px 14px rgba(6, 31, 85, 0.26));
  stroke: #071f55;
  stroke-width: 2.1;
}

.province-marker {
  cursor: pointer;
  outline: none;
}

.province-marker .marker-halo {
  fill: rgba(255, 255, 255, 0.48);
  stroke: rgba(45, 137, 220, 0.14);
  stroke-width: 1;
}

.province-marker .marker-core {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(47, 147, 223, 0.72);
  stroke-width: 2;
  filter: drop-shadow(0 8px 12px rgba(36, 105, 166, 0.14));
}

.province-marker .marker-label {
  fill: #e31b4f !important;
  font-size: 14px;
  font-weight: 400 !important;
  pointer-events: none;
  stroke: none !important;
  text-anchor: middle;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.province-marker.active .marker-halo {
  fill: rgba(255, 240, 246, 0.7);
  stroke: rgba(255, 71, 119, 0.18);
}

.province-marker.active .marker-core {
  fill: #fff6f9;
  stroke: #ff4777;
}

.province-marker.active .marker-label {
  fill: #e31b4f !important;
}

.selected-province-summary {
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.selected-province-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.selected-province-summary div {
  display: grid;
  gap: 4px;
}

.selected-province-summary dd {
  margin: 0;
  color: #061f55;
  font-size: 18px;
  font-weight: 900;
}

.city-rank-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.city-rank-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c7cff, #ae42ff);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.city-rank-item strong,
.city-rank-item em {
  color: #061f55;
  font-style: normal;
  font-weight: 900;
}

.city-rank-item small {
  display: block;
  margin-top: 3px;
  color: #6a7fa8;
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  margin: 0;
  color: #6a7fa8;
  font-weight: 800;
}

.prize-empty-panel {
  display: grid;
  gap: 8px;
  border: 1px dashed #c6d8ef;
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
}

.prize-empty-panel strong {
  color: #09275d;
  font-size: 17px;
}

.prize-empty-panel span {
  color: #63789f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.map-empty-state circle {
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(47, 147, 223, 0.3);
  stroke-width: 2;
}

.map-empty-state text {
  fill: #143367;
  font-weight: 900;
  text-anchor: middle;
}

.map-empty-state text:first-of-type {
  font-size: 30px;
}

.map-empty-state text:last-of-type {
  fill: #63789f;
  font-size: 18px;
}

.prize-map-note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}

.prize-map-note strong {
  color: #061f55;
  white-space: nowrap;
}

.prize-map-note span {
  color: #5b719d;
  font-weight: 800;
}

@media (max-width: 900px) {
  .shrink-console {
    min-width: 0;
    width: 100%;
  }

  .shrink-position-grid,
  .shrink-grid.two,
  .shrink-result-grid,
  .shrink-stat-row {
    grid-template-columns: 1fr;
  }

  .shrink-toolbar,
  .shrink-section-title {
    align-items: start;
    flex-direction: column;
  }

  .sim-draw-console {
    min-width: 0;
    width: 100%;
  }

  .sim-draw-hero,
  .sim-machine-base {
    align-items: start;
    flex-direction: column;
  }

  .sim-draw-stage {
    grid-template-columns: 1fr;
  }

  .lucky-console {
    min-width: 0;
    width: 100%;
  }

  .lucky-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .lucky-count-tabs {
    justify-content: flex-start;
    min-width: 0;
  }

  .lucky-layout {
    grid-template-columns: 1fr;
  }

  .lucky-wheel-shell {
    min-height: 560px;
  }

  .lucky-wheel {
    --wheel-radius: 180px;
    width: 500px;
    height: 500px;
  }

  .lucky-wheel > button:not(.lucky-wheel-center) {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--wheel-radius) * -1)) rotate(calc(var(--angle) * -1));
  }
}

@media (max-width: 600px) {
  .lucky-wheel-shell { min-height: 390px; padding: 24px 8px; }
  .lucky-wheel { --wheel-radius: clamp(102px, 32vw, 150px); width: min(390px, calc(100vw - 54px)); height: auto; aspect-ratio: 1; border-width: 10px; }
  .lucky-wheel::before { inset: -20px; border-width: 7px; }
  .lucky-wheel::after { inset: 28%; border-width: 7px; }
  .lucky-wheel > button:not(.lucky-wheel-center) { width: 58px; min-height: 68px; gap: 2px; }
  .lucky-wheel > button:not(.lucky-wheel-center) b { width: 40px; height: 40px; font-size: 15px; }
  .lucky-wheel > button:not(.lucky-wheel-center) span { font-size: 10px; }
  .lucky-wheel-center { width: 86px; height: 86px; }
}

.regular-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.regular-info-grid[hidden] {
  display: none;
}

.regular-module {
  min-width: 0;
  padding: 18px;
}

.regular-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.regular-feature-grid button {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px 12px;
  color: #1d3263;
  text-align: left;
  background: #f6f9ff;
  border: 1px solid rgba(104, 132, 190, 0.18);
  border-radius: 8px;
}

.regular-feature-grid button.is-ready {
  background: linear-gradient(135deg, rgba(40, 109, 255, 0.1), rgba(178, 81, 255, 0.08));
  border-color: rgba(72, 113, 255, 0.28);
}

.regular-feature-grid button.active {
  border-color: rgba(40, 109, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(40, 109, 255, 0.16);
}

.regular-feature-grid strong {
  font-size: 13px;
}

.regular-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: #65769e;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .regular-hero,
  .regular-info-grid {
    grid-template-columns: 1fr;
  }

  .regular-control-row,
  .regular-chart-head {
    display: grid;
  }

  .regular-chart-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .regular-page {
    padding: 14px;
  }

  .regular-hero,
  .regular-chart-section,
  .regular-module {
    padding: 14px;
  }

  .regular-chart-wrap {
    min-height: 520px;
    max-height: 760px;
  }

}

@keyframes floatBall {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-42%);
  }
}

@media (min-width: 721px) {
  .hero-copy h1 {
    white-space: nowrap;
  }
}

@media (max-width: 1420px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .homepage-text-ads .runtime-text-ad-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hero-section {
    grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  }

  .hero-sidebar {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-panel {
    grid-column: 1 / -1;
  }

  .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .news-layout {
    grid-template-columns: repeat(4, 1fr);
  }

  .featured-news {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .app-frame {
    width: 100%;
    border-radius: 0;
  }

  .site-header {
    padding: 14px 18px;
  }

  .header-actions {
    min-width: 0;
  }

  .search-box {
    width: 210px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .hero-copy {
    padding: 18px 0 0;
  }

  .hero-sidebar {
    grid-template-columns: 1fr;
  }

  .ticker-bar,
  .lottery-carousel,
  .homepage-text-ads,
  .dashboard-grid,
  .news-band {
    margin-right: 18px;
    margin-left: 18px;
  }

  .draw-card {
    flex-basis: calc((100% - 8px) / 2);
    min-width: 320px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1081px) and (max-width: 1420px) {
  .hero-section {
    grid-template-columns: minmax(280px, 0.9fr) minmax(380px, 1.25fr) minmax(250px, 0.72fr);
  }

  .hero-sidebar {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1081px) {
  .hero-section {
    min-height: 330px;
    gap: 12px;
    padding: 18px 20px 16px;
  }

  .hero-copy {
    padding: 18px 0 24px 14px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 2.4vw, 40px);
  }

  .hero-subtitle {
    font-size: clamp(21px, 1.75vw, 30px);
  }

  .hero-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 18px;
  }

  .primary-cta,
  .secondary-cta {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  .primary-cta svg,
  .secondary-cta svg {
    width: 19px;
    height: 19px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .glass-panel {
    width: min(560px, 100%);
    padding: 16px;
  }

  .live-overview header {
    margin-bottom: 14px;
  }

  .live-overview header p,
  .live-overview header span {
    font-size: 12px;
  }

  .live-overview header strong {
    font-size: 18px;
  }

  .number-row,
  .mini-number-row {
    gap: 8px;
  }

  .hero-visual .number-row b,
  .hero-visual .number-row .num {
    width: 34px;
    height: 34px;
  }

  .overview-grid {
    gap: 8px;
    margin-top: 12px;
  }

  .overview-grid > div {
    padding: 12px;
  }

  .overview-grid small {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .mini-number-row {
    gap: 7px;
  }

  .mini-number-row span {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .donut-card {
    grid-template-columns: 62px 1fr;
    gap: 8px;
  }

  .donut {
    width: 62px;
    height: 62px;
  }

  .donut-labels {
    gap: 5px;
    font-size: 11px;
  }

  .ring-a {
    width: 340px;
    height: 118px;
  }

  .ring-b {
    width: 460px;
    height: 150px;
  }

  .ball-xl {
    width: 78px;
    height: 78px;
    font-size: 34px;
  }

  .ball-lg {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }

  .ball-md {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .ball-sm {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .hero-sidebar .side-card {
    padding: 14px;
  }

  .hero-sidebar .side-card-title {
    margin-bottom: 10px;
  }

  .hero-sidebar .side-card-title span {
    font-size: 16px;
  }

  .hero-sidebar .side-card-title svg {
    width: 18px;
    height: 18px;
  }

  .hero-sidebar .focus-list li {
    min-height: 42px;
    padding: 6px 0;
    gap: 8px;
  }

  .hero-sidebar .focus-list a strong {
    font-size: 12px;
    line-height: 1.25;
    -webkit-line-clamp: 1;
  }

  .hero-sidebar .focus-list a small {
    font-size: 10px;
  }

  .hero-sidebar .tag {
    min-width: 36px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
  }

  .hero-sidebar .draw-calendar-period {
    margin-bottom: 7px;
  }

  .hero-sidebar .draw-date-tabs {
    gap: 4px;
  }

  .hero-sidebar .draw-date-tabs button {
    height: 48px;
  }

  .hero-sidebar .draw-date-tabs strong {
    font-size: 13px;
  }

  .hero-sidebar .draw-day-detail {
    margin-top: 8px;
    padding-top: 8px;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .search-box {
    display: none;
  }

  .main-nav {
    gap: 8px;
  }

  .main-nav a {
    min-width: auto;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .hero-visual {
    min-height: 430px;
  }

  .ball-xl {
    left: 13%;
    top: 20px;
  }

  .ball-lg {
    left: 62%;
    top: 30px;
  }

  .ball-md,
  .ball-sm {
    display: none;
  }

  .glass-panel {
    align-self: end;
    padding: 18px;
  }

  .live-overview {
    height: auto;
    min-height: 480px;
  }

  .live-lottery-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .donut-card {
    grid-template-columns: 86px 1fr;
  }

  .ticker-bar {
    grid-template-columns: 1fr;
    height: auto;
    gap: 8px;
    padding: 12px;
  }

  .dashboard-grid,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .draw-card {
    flex-basis: 100%;
    min-width: min(310px, 100%);
    min-height: 108px;
  }

  .lottery-scroll-btn {
    width: 36px;
    height: 56px;
  }

  .chart-wrap {
    grid-template-columns: 1fr;
  }

  .metric-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .homepage-text-ads .runtime-text-ad-grid,
  .runtime-page-text-ads .runtime-text-ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-news {
    grid-template-columns: 1fr;
  }

  .featured-news img {
    height: 150px;
  }

  .site-footer {
    display: grid;
    padding: 16px 18px 22px;
  }

  .floating-disclaimer {
    padding: 18px 18px 16px;
  }

  .floating-disclaimer p {
    font-size: 16px;
  }

  .floating-disclaimer button {
    font-size: 15px;
  }
}

@media (max-width: 1420px) {
  .trend-toolbar {
    grid-template-columns: 1fr;
  }

  .trend-controls,
  .segmented-control {
    justify-items: start;
    justify-content: flex-start;
  }

  .trend-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .target-analysis-bar {
    align-items: stretch;
    padding: 10px;
  }

  .target-control-group {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .target-number-group {
    display: flex;
    padding-top: 9px;
  }

  .target-number-options button {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .target-number-options {
    width: 100%;
  }

  .target-theory-chip {
    width: 100%;
    margin-left: 0;
  }

  .daily-quant-brief {
    grid-template-columns: minmax(190px, 0.4fr) minmax(320px, 1fr);
  }

  .daily-brief-tags {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
  }

  .quant-signal-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practical-advice-panel {
    grid-template-columns: 1fr;
  }

  .decision-workbench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-module {
    grid-column: span 2;
  }
}

@media (min-width: 1181px) and (max-width: 1420px) {
  .trend-toolbar {
    grid-template-columns: minmax(260px, 0.5fr) minmax(640px, 1fr);
  }

  .trend-controls,
  .segmented-control {
    justify-content: flex-end;
  }
}

@media (max-width: 1080px) {
  .trend-lower-grid {
    grid-template-columns: 1fr;
  }

  .quant-signal-panel {
    grid-template-columns: 1fr;
  }

  .chart-analysis-grid {
    grid-template-columns: 1fr;
  }

  .chart-decision-grid {
    grid-template-columns: 1fr;
  }

  .candidate-impact-panel {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid #e2e8f0;
    border-left: 0;
  }

  .advice-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .advice-rules {
    grid-template-columns: 1fr;
  }

  .decision-workbench {
    grid-template-columns: 1fr;
  }

  .strategy-module {
    grid-column: span 1;
  }

  .trend-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .trend-page {
    padding: 14px;
  }

  .trend-toolbar,
  .trend-chart-shell,
  .quant-signal-panel,
  .practical-advice-panel,
  .trend-module,
  .trend-table-section {
    padding: 14px;
  }

  .trend-title-block h1 {
    font-size: 24px;
  }

  .trend-data-note {
    display: grid;
  }

  .daily-quant-brief {
    grid-template-columns: 1fr;
    padding: 11px;
  }

  .daily-brief-tags {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-summary-grid {
    grid-template-columns: 1fr;
  }

  .trend-kpi-card.wide {
    grid-column: span 1;
  }

  .trend-chart-head,
  .trend-module-head {
    display: grid;
  }

  .trend-legend {
    justify-content: flex-start;
  }

  .chart-subpanels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .target-technical-panels {
    grid-template-columns: 1fr;
  }

  .technical-panel {
    grid-template-rows: auto 76px auto;
  }

  .target-confluence-grid,
  .target-backtest-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-subpanels article {
    padding: 7px 6px;
  }

  .chart-subpanels header {
    display: grid;
    gap: 2px;
    margin-bottom: 5px;
  }

  .chart-subpanels strong {
    font-size: 13px;
  }

  .chart-subpanels svg {
    height: 44px;
  }

  #lotteryTrendSvg {
    min-width: 780px;
  }

  .tradingview-chart {
    height: 420px;
    min-height: 420px;
  }

  .tv-chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tv-chart-status {
    overflow: visible;
    white-space: normal;
  }

  .tv-chart-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .chart-overlay-toggles {
    flex-wrap: wrap;
  }

  #multiCycleMatrix {
    overflow: visible;
  }

  .multi-cycle-panel table {
    display: block;
    min-width: 0;
  }

  .multi-cycle-panel thead {
    display: none;
  }

  .multi-cycle-panel tbody {
    display: grid;
    gap: 6px;
  }

  .multi-cycle-panel tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 7px;
    background: #f8fbff;
    border: 1px solid #e2eaf4;
    border-radius: 6px;
  }

  .multi-cycle-panel tr.active {
    border-color: #b9d1f4;
  }

  .multi-cycle-panel th,
  .multi-cycle-panel td,
  .multi-cycle-panel td:first-child,
  .multi-cycle-panel td:last-child {
    width: auto;
  }

  .multi-cycle-panel td {
    padding: 5px;
    border: 0;
  }

  .multi-cycle-panel td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #7b8aa8;
    font-size: 9px;
    font-weight: 850;
  }

  .multi-cycle-panel td:first-child,
  .multi-cycle-panel td:last-child {
    grid-column: 1 / -1;
  }

  .multi-cycle-panel td:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid #e5edf7;
  }

  .multi-cycle-panel td:first-child::before {
    margin: 0 auto 0 0;
  }

  .multi-cycle-panel td:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e5edf7;
  }

  .multi-cycle-panel td:last-child::before {
    margin: 0 auto 0 0;
  }

  .impact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-chart-actions {
    flex-wrap: wrap;
  }

  .quant-score-card {
    grid-template-columns: 1fr;
  }

  .quant-backtest-card ul {
    grid-template-columns: 1fr;
  }

  .backtest-stats,
  .candidate-coverage-audit,
  .candidate-summary,
  .similar-summary,
  .strategy-result {
    grid-template-columns: 1fr;
  }

  .advice-metrics {
    grid-template-columns: 1fr;
  }

  .candidate-result {
    grid-template-columns: 1fr;
  }

  .heatmap-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }
}

@media (max-width: 1420px) {
  .prize-map-hero {
    grid-template-columns: 1fr;
  }

  .prize-map-actions,
  .prize-lottery-tabs,
  .prize-map-toolbar {
    justify-items: start;
    justify-content: flex-start;
  }

  .prize-lottery-tabs {
    max-width: none;
  }

  .prize-info-layout,
  .china-map-layout {
    grid-template-columns: 1fr;
  }

  .china-map-panel {
    min-height: 640px;
  }

  #chinaPrizeMap {
    height: 660px;
    min-height: 620px;
  }
}

@media (max-width: 900px) {
  .prize-map-page {
    padding: 14px;
  }

  .prize-map-hero,
  .prize-section-head,
  .prize-map-note {
    display: grid;
  }

  .prize-map-toolbar,
  .prize-lottery-tabs,
  .map-legend {
    justify-content: flex-start;
  }

  .prize-map-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prize-kpi-card strong {
    font-size: 22px;
  }
}

@media (max-width: 620px) {
  .prize-map-kpis {
    grid-template-columns: 1fr;
  }

  .prize-info-section,
  .prize-map-section {
    padding: 14px;
  }

  .prize-map-toolbar button {
    flex: 1 1 calc(50% - 8px);
  }

  .china-map-panel {
    min-height: 500px;
  }

  #chinaPrizeMap {
    height: 520px;
    min-height: 500px;
  }
}

/* 开奖可视化 */
.visualization-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 76px);
  padding: 18px 22px 30px;
  background: #f2f5f9;
}

.viz-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.68fr);
  align-items: center;
  gap: 28px;
  min-height: 156px;
  padding: 24px 28px;
  overflow: hidden;
  color: #fff;
  background: #0b234f;
  border: 1px solid rgba(107, 165, 235, 0.28);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 42, 86, 0.14);
}

.viz-command::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 184, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 184, 235, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.viz-title-block,
.viz-latest {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.viz-command .trend-back-link {
  margin-bottom: 9px;
  color: #8fd8ff;
}

.viz-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.viz-kicker {
  margin: 0 0 3px;
  color: #55d1c1;
  font-size: 10px;
  font-weight: 950;
}

.viz-title-row h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 950;
}

.viz-title-row p:last-child {
  max-width: 630px;
  margin: 8px 0 0;
  color: rgba(232, 242, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.viz-live-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: rgba(230, 241, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.viz-live-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42d4ae;
  box-shadow: 0 0 0 4px rgba(66, 212, 174, 0.13);
}

.viz-live-state i.error {
  background: #ed6070;
  box-shadow: 0 0 0 4px rgba(237, 96, 112, 0.13);
}

.viz-latest {
  display: grid;
  gap: 14px;
  min-height: 104px;
  padding: 17px 18px;
  background: rgba(4, 18, 48, 0.54);
  border: 1px solid rgba(130, 185, 235, 0.24);
  border-radius: 7px;
}

.viz-latest-head,
.viz-latest-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.viz-latest-head span {
  color: #a6c0df;
  font-size: 12px;
  font-weight: 800;
}

.viz-latest-head strong {
  color: #eef6ff;
  font-size: 12px;
  font-weight: 900;
}

.viz-latest-main time {
  flex: 0 0 auto;
  color: #8ca8c8;
  font-size: 11px;
  font-weight: 800;
}

.viz-result-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.viz-result-ball {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #fff;
  background: #50647f;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset -4px -5px 8px rgba(0, 0, 0, 0.14);
}

.viz-result-ball.red {
  background: #df5065;
}

.viz-result-ball.blue {
  background: #2683bf;
}

.viz-result-ball.violet {
  background: #7658c7;
}

.viz-loading-line {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  animation: vizPulse 1.1s ease-in-out infinite alternate;
}

.viz-loading-line.short {
  width: 64%;
}

.viz-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #dfe6ef;
  border-bottom: 1px solid #dfe6ef;
}

.viz-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.viz-control-group > span {
  flex: 0 0 auto;
  color: #77859b;
  font-size: 11px;
  font-weight: 900;
}

.viz-controls .segmented-control {
  justify-content: flex-start;
  background: #f4f7fa;
  border-color: #e4e9ef;
}

.viz-controls .segmented-control button.active {
  background: #234e8c;
  box-shadow: 0 6px 14px rgba(35, 78, 140, 0.2);
}

.viz-data-stamp {
  margin-left: auto;
  color: #8490a2;
  font-size: 10px;
  font-weight: 750;
}

.viz-data-stamp strong {
  color: #334861;
  font-size: 12px;
}

.viz-module-nav {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  overflow: hidden;
}

.viz-module-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 46px;
  color: #52647d;
  border-right: 1px solid #e7ebf0;
  font-size: 11px;
  font-weight: 900;
}

.viz-module-nav a:last-child {
  border-right: 0;
}

.viz-module-nav a:hover {
  color: #153f77;
  background: #f3f7fb;
}

.viz-module-nav svg {
  width: 17px;
  height: 17px;
  color: #2f8e9f;
}

.viz-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.viz-kpi {
  position: relative;
  min-height: 104px;
  padding: 16px 17px 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-top: 3px solid #3b76a7;
  border-radius: 7px;
}

.viz-kpi.hot {
  border-top-color: #df5d6c;
}

.viz-kpi.teal {
  border-top-color: #23a58f;
}

.viz-kpi.violet {
  border-top-color: #7658d1;
}

.viz-kpi > span {
  display: block;
  color: #78869a;
  font-size: 11px;
  font-weight: 850;
}

.viz-kpi > strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 7px;
  color: #172c46;
  font-family: "DIN Alternate", "Inter", sans-serif;
  font-size: 26px;
  line-height: 1;
}

.viz-kpi > strong small {
  color: #65758c;
  font-family: inherit;
  font-size: 11px;
}

.viz-kpi p {
  margin: 8px 0 0;
  overflow: hidden;
  color: #8a95a5;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viz-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.viz-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  box-shadow: 0 7px 20px rgba(35, 52, 74, 0.055);
  scroll-margin-top: 158px;
}

.viz-span-8 {
  grid-column: span 8;
}

.viz-span-6 {
  grid-column: span 6;
}

.viz-span-4 {
  grid-column: span 4;
}

.viz-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 12px 15px;
  border-bottom: 1px solid #e7ebf0;
}

.viz-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.viz-card-title p {
  margin: 0 0 2px;
  color: #8d98a7;
  font-size: 8px;
  font-weight: 950;
}

.viz-card-title h2 {
  margin: 0;
  color: #182b43;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.viz-card-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #157c91;
  background: #e7f5f7;
  border-radius: 7px;
}

.viz-card-icon svg {
  width: 18px;
  height: 18px;
}

.viz-card-icon.coral {
  color: #ca5364;
  background: #faecee;
}

.viz-card-icon.violet {
  color: #694fc0;
  background: #efebfa;
}

.viz-card-icon.amber {
  color: #b77519;
  background: #faf1df;
}

.viz-card-icon.green {
  color: #20866c;
  background: #e7f4ef;
}

.viz-card-icon.blue {
  color: #2c65a7;
  background: #e9f0f8;
}

.viz-card-meta {
  max-width: 48%;
  overflow: hidden;
  color: #7f8c9e;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viz-card-body {
  min-width: 0;
  padding: 12px 14px 14px;
}

.viz-svg-wrap {
  width: 100%;
  min-width: 0;
}

.viz-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  overflow: visible;
}

.viz-svg-wrap svg rect:not(.viz-plot-bg) {
  stroke: none;
}

.dna-svg-wrap svg {
  max-height: 355px;
}

.macd-svg-wrap svg {
  max-height: 390px;
}

.omission-svg-wrap svg {
  max-height: 290px;
}

.matrix-svg-wrap svg {
  max-height: 430px;
}

.tail-svg-wrap svg {
  max-height: 350px;
}

.route-svg-wrap svg {
  max-height: 280px;
}

.viz-plot-bg {
  fill: #f8fafc;
  stroke: #e7ecf1;
  stroke-width: 1;
}

.viz-grid-line {
  stroke: #e8edf2;
  stroke-width: 0.8;
}

.viz-grid-line.strong {
  stroke: #cad4df;
  stroke-width: 1;
}

.viz-axis-label {
  fill: #8b97a6;
  stroke: none;
  font-family: "DIN Alternate", "Inter", sans-serif;
  font-size: 8px;
  font-weight: 700;
}

.viz-axis-label.strong {
  fill: #52647a;
  font-weight: 900;
}

.viz-pane-label {
  fill: #68788b;
  stroke: none;
  font-size: 9px;
  font-weight: 850;
}

.viz-metric-line,
.viz-dif-line,
.viz-dea-line {
  fill: none;
  stroke: #7357d5;
  stroke-width: 2;
  stroke-linejoin: round;
}

.viz-dif-line {
  stroke: #2383b8;
  stroke-width: 1.8;
}

.viz-dea-line {
  stroke: #e39732;
  stroke-width: 1.8;
}

.viz-chart-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 31px;
  margin-top: 7px;
  color: #8490a0;
  font-size: 9px;
  font-weight: 800;
}

.viz-chart-caption.split {
  justify-content: space-between;
}

.viz-chart-caption > strong {
  color: #394b61;
  font-size: 10px;
}

.viz-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.viz-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.viz-legend i,
.viz-omission-badges i {
  width: 7px;
  height: 7px;
  background: var(--legend);
  border-radius: 2px;
}

.viz-insight-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.viz-insight-pills > span {
  padding: 5px 7px;
  color: #7e8b9c;
  background: #f3f6f8;
  border: 1px solid #e5eaef;
  border-radius: 4px;
  font-size: 9px;
}

.viz-insight-pills strong {
  color: #2c415b;
}

.viz-rank-head,
.viz-rank-row {
  display: grid;
  grid-template-columns: 54px minmax(100px, 1fr) 54px;
  align-items: center;
  gap: 8px;
}

.viz-rank-head {
  padding: 0 2px 7px 26px;
  color: #9aa4b1;
  font-size: 8px;
  font-weight: 900;
}

.viz-rank-head span:last-child {
  text-align: right;
}

.viz-rank-list {
  display: grid;
  gap: 5px;
}

.viz-rank-row {
  position: relative;
  min-height: 31px;
}

.viz-rank-index {
  position: absolute;
  left: 1px;
  color: #a2abb7;
  font-size: 9px;
  font-weight: 900;
}

.viz-rank-ball {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 19px;
  color: #fff;
  background: #4a637f;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 950;
}

.viz-rank-row.hot .viz-rank-ball {
  background: #d85667;
}

.viz-rank-row.cold .viz-rank-ball {
  background: #2b87b3;
}

.viz-rank-bar {
  position: relative;
  height: 22px;
  overflow: hidden;
  background: #f2f5f8;
  border-radius: 3px;
}

.viz-rank-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 2px;
  background: #8698aa;
  opacity: 0.28;
}

.viz-rank-row.hot .viz-rank-bar i {
  background: #df5d6c;
}

.viz-rank-row.cold .viz-rank-bar i {
  background: #318cb3;
}

.viz-rank-bar b {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 7px;
  color: #364b62;
  font-size: 9px;
}

.viz-rank-bar small {
  margin-left: 3px;
  color: #8e99a6;
  font-weight: 750;
}

.viz-rank-row > strong {
  color: #637287;
  font-size: 9px;
  text-align: right;
}

.viz-rank-row.hot > strong {
  color: #cd4d60;
}

.viz-rank-row.cold > strong {
  color: #247ba4;
}

.viz-status-dot {
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: #8394a6;
}

.viz-status-dot.hot {
  background: #d85667;
}

.viz-status-dot.cold {
  background: #2b87b3;
}

.viz-mini-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: #f1f4f7;
  border: 1px solid #e2e7ec;
  border-radius: 6px;
}

.viz-mini-tabs button {
  min-height: 26px;
  padding: 0 9px;
  color: #6e7c8e;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
}

.viz-mini-tabs button.active {
  color: #fff;
  background: #5c4dad;
}

.viz-omission-badges {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 5px;
}

.viz-omission-badges span {
  display: grid;
  grid-template-columns: 7px 1fr;
  align-items: center;
  gap: 3px 5px;
  min-width: 0;
  padding: 6px;
  background: #f5f7f9;
  border-radius: 4px;
}

.viz-omission-badges b {
  color: #2f4258;
  font-size: 10px;
}

.viz-omission-badges small {
  grid-column: 2;
  color: #8793a2;
  font-size: 8px;
}

.viz-matrix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: center;
  gap: 9px;
}

.viz-matrix-value,
.viz-heat-value {
  fill: #34485d;
  stroke: none;
  font-size: 7px;
  font-weight: 900;
  pointer-events: none;
}

.viz-matrix-value.light,
.viz-heat-value.light {
  fill: #fff;
}

.viz-matrix-summary {
  display: grid;
  align-self: stretch;
  align-content: center;
  gap: 8px;
  padding: 12px;
  background: #f5f7f9;
  border-left: 2px solid #2ca58e;
}

.viz-matrix-summary > span {
  color: #8994a3;
  font-size: 9px;
  font-weight: 900;
}

.viz-matrix-summary > strong {
  color: #273c54;
  font-size: 12px;
  line-height: 1.5;
}

.viz-heat-legend {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 6px;
  margin-top: 12px;
}

.viz-heat-legend i {
  grid-column: 1 / -1;
  height: 7px;
  background: linear-gradient(90deg, #f2f6f8, #53c1ad, #e55369);
  border-radius: 2px;
}

.viz-heat-legend small {
  color: #8994a3;
  font-size: 8px;
}

.viz-heat-legend small:last-child {
  text-align: right;
}

.tail-pills {
  justify-content: flex-start;
  margin-top: 4px;
}

.viz-pattern-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 10px;
  color: #8792a1;
  font-size: 9px;
  font-weight: 850;
}

.viz-pattern-current strong {
  color: #344a62;
  font-size: 10px;
}

.viz-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.viz-pattern-metric {
  display: grid;
  min-width: 0;
  padding: 10px;
  background: #f6f8fa;
  border: 1px solid #e8ecf0;
  border-radius: 5px;
}

.viz-pattern-metric > span {
  color: #7f8c9c;
  font-size: 9px;
  font-weight: 850;
}

.viz-pattern-metric > strong {
  margin-top: 6px;
  color: #263a52;
  font-family: "DIN Alternate", "Inter", sans-serif;
  font-size: 19px;
  line-height: 1;
}

.viz-pattern-metric > small {
  margin-top: 5px;
  overflow: hidden;
  color: #96a0ad;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viz-pattern-metric > i {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  background: #e5e9ed;
  border-radius: 2px;
}

.viz-pattern-metric > i b {
  display: block;
  height: 100%;
  background: var(--pattern-color);
}

.viz-zone-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  overflow: hidden;
  background: #dfe5eb;
  border: 1px solid #dfe5eb;
  border-radius: 5px;
}

.viz-zone-row > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 10px;
  background: #fff;
}

.viz-zone-row span {
  color: #7c8999;
  font-size: 9px;
  font-weight: 900;
}

.viz-zone-row strong {
  color: #263b52;
  font-size: 14px;
}

.viz-zone-row small {
  margin-left: auto;
  color: #9aa3af;
  font-size: 8px;
}

.viz-route-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}

.viz-route-summary > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 7px;
  padding: 8px 9px;
  background: #f5f7f9;
  border-top: 2px solid var(--route-color);
  border-radius: 4px;
}

.viz-route-summary > div.balance {
  --route-color: #52657c;
}

.viz-route-summary span {
  color: #7f8b9a;
  font-size: 8px;
  font-weight: 900;
}

.viz-route-summary strong {
  justify-self: end;
  color: #2d4157;
  font-size: 13px;
}

.viz-route-summary small {
  grid-column: 1 / -1;
  color: #9aa3af;
  font-size: 8px;
}

.viz-skeleton {
  min-height: 250px;
  background: linear-gradient(90deg, #f1f4f7 20%, #f8fafb 50%, #f1f4f7 80%);
  background-size: 200% 100%;
  border-radius: 5px;
  animation: vizSkeleton 1.15s linear infinite;
}

.viz-error-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  padding: 25px;
  color: #7b8797;
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 7px;
  text-align: center;
}

.viz-error-state strong {
  color: #34475d;
}

.viz-error-state button {
  min-height: 34px;
  margin-top: 5px;
  padding: 0 15px;
  color: #fff;
  background: #2e6099;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.viz-disclaimer {
  margin: 0;
  padding: 3px 0;
  color: #8994a3;
  font-size: 10px;
  text-align: center;
}

@keyframes vizPulse {
  to {
    opacity: 0.42;
  }
}

@keyframes vizSkeleton {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 1420px) {
  .viz-command {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  }

  .viz-control-lottery {
    flex: 1 1 100%;
  }

  .viz-data-stamp {
    margin-left: 0;
  }

  .viz-span-8,
  .viz-span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 1100px) {
  .viz-command {
    grid-template-columns: 1fr;
  }

  .viz-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-module-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .viz-module-nav a:nth-child(4) {
    border-right: 0;
  }

  .viz-module-nav a:nth-child(-n + 4) {
    border-bottom: 1px solid #e7ebf0;
  }

  .viz-span-8,
  .viz-span-6,
  .viz-span-4 {
    grid-column: 1 / -1;
  }

  .viz-matrix-layout {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
}

@media (max-width: 720px) {
  .visualization-page {
    gap: 10px;
    padding: 10px;
  }

  .viz-command {
    gap: 17px;
    min-height: 0;
    padding: 18px 15px;
  }

  .viz-title-row {
    display: grid;
  }

  .viz-title-row h1 {
    font-size: 25px;
  }

  .viz-live-state {
    padding: 0;
  }

  .viz-latest {
    padding: 13px;
  }

  .viz-latest-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .viz-result-ball {
    width: 29px;
    height: 29px;
  }

  .viz-controls {
    display: grid;
    padding: 11px;
  }

  .viz-control-group {
    display: grid;
    align-items: start;
  }

  .viz-controls .segmented-control {
    justify-content: flex-start;
  }

  .viz-controls .segmented-control button {
    flex: 1 1 auto;
  }

  .viz-data-stamp {
    line-height: 1.5;
  }

  .viz-module-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-module-nav a,
  .viz-module-nav a:nth-child(4) {
    border-right: 1px solid #e7ebf0;
    border-bottom: 1px solid #e7ebf0;
  }

  .viz-module-nav a:nth-child(2n) {
    border-right: 0;
  }

  .viz-module-nav a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .viz-kpis {
    grid-template-columns: 1fr;
  }

  .viz-kpi {
    min-height: 92px;
  }

  .viz-card-head,
  .viz-card-head-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .viz-card-head {
    min-height: 62px;
    padding: 11px 12px;
  }

  .viz-card-meta {
    max-width: 100%;
    padding-left: 44px;
    text-align: left;
  }

  .viz-card-body {
    padding: 9px;
  }

  .viz-card-head-wrap .viz-mini-tabs {
    align-self: stretch;
  }

  .viz-mini-tabs button {
    flex: 1;
  }

  .viz-chart-caption.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .viz-insight-pills {
    justify-content: flex-start;
  }

  .viz-rank-head,
  .viz-rank-row {
    grid-template-columns: 50px minmax(80px, 1fr) 48px;
  }

  .viz-matrix-layout {
    grid-template-columns: 1fr;
  }

  .viz-matrix-summary {
    min-height: 72px;
    border-top: 2px solid #2ca58e;
    border-left: 0;
  }

  .viz-heat-legend {
    max-width: 180px;
  }

  .viz-pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-zone-row > div {
    display: grid;
    gap: 2px;
  }

  .viz-zone-row small {
    margin-left: 0;
  }

  .viz-route-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-omission-badges {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viz-loading-line,
  .viz-skeleton {
    animation: none;
  }
}

/* 开奖可视化报告版 */
body[data-page="visualization"] {
  background: #f5f1e6;
}

body[data-page="visualization"] .app-frame {
  overflow: clip;
}

.visualization-page {
  gap: 18px;
  padding: 24px 28px 42px;
  background:
    linear-gradient(rgba(244, 238, 222, 0.72), rgba(248, 246, 239, 0.94)),
    #f7f3e9;
}

.visualization-page > * {
  width: min(1480px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.viz-command {
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.65fr);
  min-height: 132px;
  padding: 22px 26px;
  color: #27313a;
  background: rgba(255, 253, 247, 0.96);
  border-color: #e4dcc5;
  box-shadow: 0 12px 30px rgba(81, 65, 31, 0.08);
}

.viz-command::before {
  display: none;
}

.viz-command .trend-back-link {
  margin-bottom: 6px;
  color: #987a26;
}

.viz-kicker {
  color: #a28428;
  font-size: 11px;
}

.viz-title-row h1 {
  color: #302f2b;
  font-size: 28px;
}

.viz-title-row p:last-child {
  margin-top: 6px;
  color: #777163;
}

.viz-live-state {
  color: #747064;
}

.viz-live-state i {
  background: #2d9876;
  box-shadow: 0 0 0 4px rgba(45, 152, 118, 0.12);
}

.viz-latest {
  min-height: 88px;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-color: #e8e0ca;
  box-shadow: inset 3px 0 0 #d5aa36;
}

.viz-latest-head span,
.viz-latest-main time {
  color: #897f69;
}

.viz-latest-head strong {
  color: #51462f;
}

.viz-result-ball {
  width: 29px;
  height: 29px;
}

.viz-controls {
  padding: 13px 17px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid #e5decb;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(75, 61, 31, 0.045);
}

@media (min-width: 1101px) {
  .visualization-page .viz-controls {
    position: sticky;
    top: 76px;
    z-index: 30;
    backdrop-filter: blur(14px);
  }
}

.viz-control-group > span {
  color: #847b68;
}

.viz-controls .segmented-control {
  background: #f7f3e8;
  border-color: #e7dfca;
}

.viz-controls .segmented-control button {
  color: #736b5a;
}

.viz-controls .segmented-control button.active {
  color: #fff;
  background: #a9872c;
  box-shadow: 0 6px 14px rgba(135, 105, 24, 0.2);
}

.viz-data-stamp {
  color: #8c846f;
}

.viz-data-stamp strong {
  color: #5e5032;
}

.viz-module-nav {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  background: #fffdf8;
  border-color: #e4dcc6;
  box-shadow: 0 7px 18px rgba(75, 61, 31, 0.04);
}

.viz-module-nav a {
  color: #625e53;
  border-color: #ebe4d4;
}

.viz-module-nav a:hover {
  color: #735b1e;
  background: #fbf6e7;
}

.viz-module-nav svg {
  color: #b08c2d;
}

.viz-kpis {
  gap: 0;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid #e3dcc9;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(75, 61, 31, 0.04);
}

.viz-kpi,
.viz-kpi.hot,
.viz-kpi.teal,
.viz-kpi.violet {
  min-height: 88px;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  border-right: 1px solid #ebe4d4;
  border-radius: 0;
}

.viz-kpi:last-child {
  border-right: 0;
}

.viz-kpi > span {
  color: #89816f;
}

.viz-kpi > strong {
  color: #34352f;
  font-size: 24px;
}

.viz-kpi p {
  color: #989180;
}

.viz-classic-section {
  display: grid;
  gap: 18px;
  scroll-margin-top: 150px;
}

.viz-classic-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px 20px;
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid #e2dac5;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(75, 61, 31, 0.055);
}

.viz-classic-heading > span {
  padding: 7px 12px;
  color: #766b53;
  background: #faf5e5;
  border: 1px solid #e8ddbd;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.viz-classic-heading .viz-card-title h2 {
  font-size: 19px;
}

.viz-classic-grid {
  display: grid;
  gap: 22px;
}

.viz-classic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 13px 14px;
  background: #f3eddd;
  border: 1px solid #d8c99f;
  border-top: 3px solid #b48a24;
  border-radius: 8px;
  box-shadow: 0 9px 22px rgba(75, 61, 31, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.viz-classic-tabs button {
  position: relative;
  min-height: 42px;
  padding: 9px 15px 9px 28px;
  color: #554b38;
  background: #fffdf8;
  border: 1px solid #d8c99f;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(83, 67, 31, 0.08);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.viz-classic-tabs button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  width: 7px;
  height: 7px;
  background: #c3a45b;
  border: 2px solid #f4ead1;
  border-radius: 50%;
  transform: translateY(-50%);
}

.viz-classic-tabs button:hover {
  color: #62480d;
  background: #fff9e9;
  border-color: #bd9a42;
  box-shadow: 0 6px 14px rgba(109, 82, 20, 0.14);
  transform: translateY(-1px);
}

.viz-classic-tabs button.active {
  color: #fff;
  background: #9a741b;
  border-color: #7d5b0c;
  box-shadow: 0 7px 16px rgba(126, 91, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.viz-classic-tabs button.active::before {
  background: #fff4be;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(255, 241, 174, 0.18);
}

.viz-classic-tabs button:focus-visible {
  outline: 3px solid rgba(44, 119, 179, 0.28);
  outline-offset: 2px;
}

.viz-classic-card {
  scroll-margin-top: 150px;
}

.viz-classic-card .viz-card-head {
  box-shadow: inset 3px 0 0 #d7ab35;
}

.viz-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.viz-card,
.viz-span-8,
.viz-span-6,
.viz-span-4 {
  grid-column: 1 / -1;
  background: rgba(255, 254, 250, 0.98);
  border-color: #e2dac5;
  box-shadow: 0 14px 34px rgba(75, 61, 31, 0.075);
}

.viz-card-head {
  min-height: 72px;
  padding: 14px 20px;
  border-bottom-color: #e9e2d2;
}

.viz-card-title {
  gap: 12px;
}

.viz-card-title p {
  margin-bottom: 3px;
  color: #999078;
  font-size: 9px;
}

.viz-card-title h2 {
  color: #31322d;
  font-size: 18px;
}

.viz-card-icon,
.viz-card-icon.coral,
.viz-card-icon.violet,
.viz-card-icon.amber,
.viz-card-icon.green,
.viz-card-icon.blue {
  width: 39px;
  height: 39px;
  color: #a8872c;
  background: #fbf5e4;
  border: 1px solid #eadcae;
  border-radius: 50%;
}

.viz-card-meta {
  color: #8c836f;
  font-size: 11px;
}

.viz-card-body {
  min-height: 360px;
  padding: 22px 24px 24px;
}

.viz-card[aria-busy="true"] .viz-card-body {
  opacity: 0.78;
}

.viz-mini-tabs {
  background: #f6f1e4;
  border-color: #e5dcc6;
}

.viz-mini-tabs button {
  color: #786f5c;
}

.viz-mini-tabs button.active {
  background: #9c7c29;
}

.viz-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(410px, 0.9fr);
  align-items: stretch;
  min-height: 390px;
}

.viz-report-chart {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 4px 24px 4px 0;
}

.viz-detail-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  max-height: 445px;
  overflow: hidden;
  background: #fffef9;
  border-left: 1px solid #e8e0cc;
}

.viz-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 43px;
  padding: 0 14px;
  color: #5d543f;
  background: #faf6e9;
  border-bottom: 1px solid #ebe3d0;
}

.viz-detail-title strong {
  font-size: 12px;
  font-weight: 950;
}

.viz-detail-title span {
  color: #9a8e73;
  font-size: 9px;
  font-weight: 850;
}

.viz-report-table-wrap {
  min-width: 0;
  overflow: auto;
  scrollbar-color: #c9ab58 #f5f0e2;
  scrollbar-width: thin;
}

.viz-report-table {
  min-width: 540px;
  color: #504d46;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.viz-report-table th,
.viz-report-table td {
  height: 36px;
  padding: 7px 10px;
  border-bottom: 1px solid #eee8dc;
  text-align: center;
  white-space: nowrap;
}

.viz-report-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 39px;
  color: #6f644c;
  background: #f8f2df;
  font-size: 9px;
  font-weight: 950;
}

.viz-report-table tbody tr:nth-child(even) {
  background: rgba(249, 246, 238, 0.68);
}

.viz-report-table tbody tr:hover {
  background: #fff7dc;
}

.viz-report-table td:first-child {
  color: #3f413b;
  font-weight: 900;
}

.viz-report-table td.positive {
  color: #197356;
  font-weight: 950;
}

.viz-report-table td.negative {
  color: #9a6727;
  font-weight: 950;
}

.viz-report-table td.neutral {
  color: #7e786b;
  font-weight: 850;
}

.viz-pointer-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  max-width: min(320px, calc(100vw - 16px));
  padding: 8px 10px;
  color: #fff;
  background: rgba(43, 40, 33, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  box-shadow: 0 8px 22px rgba(33, 28, 18, 0.2);
  font-size: 11px;
  line-height: 1.45;
  pointer-events: none;
}

.viz-pointer-tooltip[hidden] {
  display: none;
}

.viz-report-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 28px;
  padding-left: 52px;
  color: #756e60;
  font-size: 10px;
  font-weight: 850;
}

.viz-report-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.viz-report-legend i {
  width: 17px;
  height: 8px;
  background: var(--legend);
  border-radius: 2px;
}

.viz-report-legend i.line {
  height: 0;
  background: transparent;
  border-top: 2px dashed var(--legend);
  border-radius: 0;
}

.distribution-svg-wrap svg {
  max-height: 370px;
}

.viz-theory-line {
  fill: none;
  stroke: #55699f;
  stroke-width: 1.7;
  stroke-dasharray: 6 5;
  stroke-linejoin: round;
}

.viz-report-chart .viz-svg-wrap svg {
  max-height: 410px;
  min-height: 250px;
}

.viz-report-chart .dna-svg-wrap svg {
  max-height: 350px;
}

.viz-report-chart .omission-svg-wrap svg {
  max-height: 360px;
}

.viz-report-chart .route-svg-wrap svg {
  max-height: 340px;
}

.viz-chart-caption {
  color: #8a8272;
}

.viz-insight-pills > span {
  color: #817865;
  background: #faf6e9;
  border-color: #eae1cc;
}

.viz-insight-pills strong {
  color: #5a4a25;
}

.viz-matrix-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
  max-width: 620px;
  margin: 0 auto;
  padding: 10px 14px;
  background: #faf7ed;
  border-left: 3px solid #35a188;
}

.viz-matrix-foot > span {
  color: #918875;
  font-size: 9px;
  font-weight: 900;
}

.viz-matrix-foot > strong {
  color: #394a42;
  font-size: 11px;
}

.viz-matrix-foot .viz-heat-legend {
  grid-column: 1 / -1;
  max-width: 200px;
  margin-top: 2px;
}

.viz-pattern-current {
  margin-top: 2px;
  padding: 6px 4px 9px;
  border-top: 1px solid #eee7d7;
}

.viz-pattern-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.viz-pattern-quick-grid > div {
  display: grid;
  min-width: 0;
  padding: 8px 9px;
  background: #faf8f2;
  border-top: 2px solid var(--pattern-color);
}

.viz-pattern-quick-grid span {
  color: #8a8272;
  font-size: 8px;
  font-weight: 850;
}

.viz-pattern-quick-grid strong {
  margin-top: 4px;
  color: #363a36;
  font-size: 14px;
}

.viz-pattern-quick-grid small {
  margin-top: 3px;
  overflow: hidden;
  color: #9b9487;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viz-zone-row {
  margin-top: 6px;
  border-color: #e8e0cf;
  background: #e8e0cf;
}

.viz-zone-row > div {
  background: #fffdf8;
}

.viz-route-summary > div {
  background: #faf8f2;
}

.viz-disclaimer {
  color: #8f8778;
}

@media (max-width: 1240px) {
  .viz-command {
    grid-template-columns: 1fr;
  }

  .viz-report-layout {
    grid-template-columns: 1fr;
  }

  .viz-module-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .viz-module-nav a,
  .viz-module-nav a:nth-child(4) {
    border-right: 1px solid #e7ebf0;
  }

  .viz-module-nav a:nth-child(5n) {
    border-right: 0;
  }

  .viz-report-chart {
    padding: 4px 0 18px;
  }

  .viz-detail-pane {
    max-height: 360px;
    border-top: 1px solid #e8e0cc;
    border-left: 0;
  }

  .viz-pattern-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .visualization-page {
    gap: 11px;
    padding: 10px;
  }

  .viz-command {
    padding: 17px 14px;
  }

  .viz-module-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-module-nav a,
  .viz-module-nav a:nth-child(4),
  .viz-module-nav a:nth-child(5n) {
    border-right: 1px solid #e7ebf0;
    border-bottom: 1px solid #e7ebf0;
  }

  .viz-module-nav a:nth-child(2n) {
    border-right: 0;
  }

  .viz-module-nav a:last-child {
    border-bottom: 0;
  }

  .viz-title-row h1 {
    font-size: 23px;
  }

  .viz-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .viz-kpi,
  .viz-kpi.hot,
  .viz-kpi.teal,
  .viz-kpi.violet {
    min-height: 86px;
    padding: 12px;
    border-right: 1px solid #ebe4d4;
    border-bottom: 1px solid #ebe4d4;
  }

  .viz-kpi:nth-child(2n) {
    border-right: 0;
  }

  .viz-kpi:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .viz-dashboard {
    gap: 13px;
  }

  .viz-classic-section,
  .viz-classic-grid {
    gap: 13px;
  }

  .viz-classic-tabs {
    gap: 6px;
    padding: 8px;
    border-top-width: 2px;
  }

  .viz-classic-tabs button {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 88px;
    min-height: 40px;
    padding: 7px 7px 7px 20px;
    font-size: 10px;
  }

  .viz-classic-tabs button::before {
    left: 7px;
    width: 6px;
    height: 6px;
  }

  .viz-classic-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .viz-classic-heading > span {
    white-space: normal;
  }

  .viz-card-head {
    min-height: 64px;
    padding: 11px 12px;
  }

  .viz-card-title h2 {
    font-size: 16px;
  }

  .viz-card-icon,
  .viz-card-icon.coral,
  .viz-card-icon.violet,
  .viz-card-icon.amber,
  .viz-card-icon.green,
  .viz-card-icon.blue {
    width: 34px;
    height: 34px;
  }

  .viz-card-body {
    min-height: 250px;
    padding: 12px;
  }

  .viz-report-layout {
    min-height: 0;
  }

  .viz-report-chart {
    padding-bottom: 12px;
  }

  .viz-report-chart .viz-svg-wrap svg {
    min-height: 190px;
  }

  .viz-report-legend {
    padding-left: 34px;
  }

  .viz-detail-pane {
    max-height: 560px;
  }

  .viz-report-table {
    width: 100%;
    min-width: 0;
    font-size: 11px;
  }

  .viz-report-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .viz-report-table,
  .viz-report-table tbody,
  .viz-report-table tr,
  .viz-report-table td {
    display: block;
  }

  .viz-report-table tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
  }

  .viz-report-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: #fffef9;
    border: 1px solid #e9e1ce;
    border-radius: 6px;
  }

  .viz-report-table tbody tr:nth-child(even) {
    background: #fbf8ef;
  }

  .viz-report-table td,
  .viz-report-table td:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    height: auto;
    min-height: 34px;
    padding: 7px 9px;
    overflow-wrap: anywhere;
    border-right: 1px solid #eee7d7;
    border-bottom: 1px solid #eee7d7;
    text-align: right;
    white-space: normal;
  }

  .viz-report-table td:nth-child(2n) {
    border-right: 0;
  }

  .viz-report-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #968b72;
    font-size: 9px;
    font-weight: 850;
  }

  .viz-report-table td:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .viz-pattern-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-matrix-foot {
    margin-top: 5px;
  }
}

.mobile-nav-toggle,
.mobile-quant-nav,
.mobile-section-toggle {
  display: none;
}

.sim-history-scroll {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.app-download-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 96;
  width: 374px;
  overflow: hidden;
  color: #173557;
  background: #fff;
  border: 1px solid rgba(28, 69, 116, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(12, 39, 73, 0.22);
}

.app-download-panel[hidden],
.app-download-reopen[hidden] {
  display: none;
}

.app-download-panel > header {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  color: #fff;
  background: #0d315f;
}

.app-download-panel > header strong {
  min-width: 0;
  flex: 1;
  display: block;
  letter-spacing: 0;
  font-size: 17px;
}

.app-download-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0 0 3px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  font-size: 29px;
  line-height: 1;
}

.app-download-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.app-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.app-download-card {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 14px;
  text-align: center;
}

.app-download-card + .app-download-card {
  border-left: 1px solid #e0e7f0;
}

.app-download-card > strong {
  font-size: 14px;
}

.app-download-card > small {
  min-height: 32px;
  color: #697b91;
  font-size: 11px;
  line-height: 1.45;
}

.app-download-qr {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e1ec;
}

img.app-download-qr,
.app-download-qr img,
.app-download-qr a {
  width: 132px;
  height: 132px;
  display: block;
}

.app-download-qr img,
img.app-download-qr {
  object-fit: contain;
}

.app-download-qr.unavailable {
  color: #7a8798;
  background: #f1f4f8;
  border-style: dashed;
  font-size: 14px;
  font-weight: 800;
}

.app-download-reopen {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: #0d315f;
  border: 1px solid #2a5e9c;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(12, 39, 73, 0.24);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .site-header {
    row-gap: 0;
    min-height: 68px;
    padding: 10px 14px;
  }

  .mobile-nav-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
  }

  .mobile-nav-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    width: 100%;
    max-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 220ms ease, padding 220ms ease, opacity 160ms ease, transform 180ms ease;
  }

  .site-header.mobile-nav-open .main-nav {
    max-height: 320px;
    padding: 10px 0 4px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    min-height: 44px;
    height: 44px;
    justify-content: flex-start;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 13px;
  }

  .main-nav a.active {
    border-color: rgba(150, 198, 255, 0.42);
  }

  .floating-disclaimer {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    gap: 10px;
    padding: 14px 16px 12px;
    border-width: 1px;
    border-radius: 8px;
    transform: none !important;
    will-change: auto;
  }

  .floating-disclaimer p {
    max-width: none;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }

  .floating-disclaimer button {
    width: 100%;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
  }

  .segmented-control button,
  .segmented-control.compact button,
  .viz-mini-tabs button {
    min-height: 40px;
  }

  .viz-module-nav a {
    min-height: 48px;
  }

  .regular-tool-layout,
  .regular-tool-grid.spacious {
    width: 100%;
    min-width: 0;
    padding: 10px;
  }

  .regular-tool-grid,
  .regular-tool-grid.spacious {
    grid-template-columns: minmax(0, 1fr);
  }

  .regular-tool-card.wide {
    grid-column: span 1;
  }

  .regular-tool-card strong {
    font-size: 19px;
  }

  .regular-chart-wrap.has-sim-console {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .sim-draw-console {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
    overflow: hidden;
  }

  .sim-draw-hero {
    width: 100%;
    min-width: 0;
    gap: 12px;
    padding: 14px;
  }

  .sim-draw-hero > div:first-child {
    min-width: 0;
  }

  .sim-draw-hero strong {
    font-size: 22px;
  }

  .sim-draw-hero p {
    font-size: 12px;
    line-height: 1.55;
  }

  .sim-draw-controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .sim-sound-toggle {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .sim-draw-controls button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
  }

  .sim-draw-stage,
  .sim-result-board,
  .sim-pool {
    width: 100%;
    min-width: 0;
  }

  .sim-machine {
    width: 100%;
    min-width: 0;
    min-height: 500px;
  }

  .sim-bowl-ring,
  .sim-glass-bowl {
    top: 86px;
    left: 50%;
    width: min(300px, calc(100% - 20px));
    height: auto;
    aspect-ratio: 430 / 360;
    transform: translateX(-50%);
  }

  .sim-side-tube {
    top: 66px;
    left: calc(50% + 12px);
    width: 120px;
    height: 350px;
  }

  .sim-output-rail {
    right: 16px;
    bottom: 18px;
    left: 16px;
    height: 66px;
    padding: 0 12px;
  }

  .sim-power-button {
    bottom: 88px;
    width: 66px;
    height: 66px;
  }

  .sim-power-button span {
    font-size: 24px;
  }

  .sim-hand-pointer {
    display: none;
  }

  .sim-machine-base {
    top: 12px;
    left: 12px;
  }

  .sim-slot-grid {
    gap: 6px;
  }

  .sim-slot {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .sim-latest-card strong {
    font-size: 22px;
  }

  .sim-pool-ball {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
  }

  .sim-history-scroll {
    width: 100%;
  }

  .sim-history-table {
    min-width: 620px;
  }

  .mobile-quant-nav {
    position: sticky;
    top: 68px;
    z-index: 32;
    display: flex;
    gap: 6px;
    padding: 7px;
    overflow-x: auto;
    background: rgba(239, 247, 255, 0.97);
    border: 1px solid rgba(112, 145, 210, 0.2);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(16, 44, 101, 0.12);
    scrollbar-width: none;
  }

  .mobile-quant-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-quant-nav button {
    min-width: 68px;
    min-height: 40px;
    flex: 1 0 auto;
    padding: 0 12px;
    color: #294b83;
    background: #fff;
    border: 1px solid #d6e2f3;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-section-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    justify-self: end;
    padding: 0;
    background: #f3f7ff;
    border: 1px solid #d6e2f3;
    border-radius: 50%;
  }

  .mobile-section-toggle::before {
    width: 9px;
    height: 9px;
    content: "";
    border-right: 2px solid #315a97;
    border-bottom: 2px solid #315a97;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 180ms ease;
  }

  .mobile-section-toggle[aria-expanded="true"]::before {
    transform: translateY(2px) rotate(225deg);
  }

  .mobile-section-collapsible {
    scroll-margin-top: 124px;
  }

  .mobile-section-collapsible > .trend-module-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .mobile-section-collapsible.is-mobile-collapsed > :not(.trend-module-head) {
    display: none;
  }

  .app-download-panel {
    right: 12px;
    bottom: 164px;
    width: calc(100% - 24px);
    max-width: 390px;
  }

  .app-download-panel > header {
    min-height: 58px;
    padding-left: 16px;
  }

  .app-download-grid {
    padding: 14px 8px;
  }

  .app-download-card {
    padding: 0 8px;
  }

  .app-download-qr,
  img.app-download-qr,
  .app-download-qr img,
  .app-download-qr a {
    width: 112px;
    height: 112px;
  }

  .app-download-reopen {
    right: 12px;
    bottom: 164px;
  }
}

/* Mobile layout refinements. Desktop rules above remain unchanged. */
@media (max-width: 720px) {
  html,
  body,
  .app-frame {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    min-height: 64px;
    gap: 8px;
    padding: 9px 12px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 18px;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-button,
  .avatar-button,
  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .site-header.mobile-nav-open .main-nav {
    max-height: 340px;
    padding-top: 9px;
  }

  .main-nav a {
    min-width: 0;
    min-height: 42px;
    height: 42px;
    padding: 0 11px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .runtime-announcements-inner {
    min-height: 38px;
    gap: 9px;
    padding: 5px 12px;
  }

  .runtime-announcements-inner > strong {
    padding-right: 9px;
    font-size: 12px;
  }

  .runtime-announcement-item {
    font-size: 11px;
  }

  .runtime-page-image-ad {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 20 / 3;
    overflow: hidden;
  }

  .runtime-page-image-ad > a,
  .runtime-page-image-ad > div {
    min-height: 0;
  }

  .runtime-page-text-ads {
    width: 100%;
    max-width: 100%;
  }

  .runtime-page-text-ads .runtime-text-ad-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 4px;
  }

  .runtime-page-text-ads .runtime-text-ad-grid a {
    min-width: 0;
    min-height: 34px;
    padding: 5px 3px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-download-panel,
  .app-download-reopen {
    bottom: 16px;
  }

  .floating-disclaimer:not(.is-hidden) ~ .app-download-panel,
  .floating-disclaimer:not(.is-hidden) ~ .app-download-reopen {
    bottom: 150px;
  }

  .floating-disclaimer {
    gap: 8px;
    padding: 11px 13px 10px;
  }

  .floating-disclaimer p {
    font-size: 12px;
    line-height: 1.45;
  }

  .floating-disclaimer button {
    min-height: 40px;
    font-size: 12px;
  }

  /* Homepage */
  .hero-section,
  .hero-section.has-runtime-carousel {
    gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  .hero-section.has-runtime-carousel > .runtime-hero-carousel {
    width: 100%;
    aspect-ratio: 6 / 5;
  }

  .runtime-carousel-dots {
    bottom: 10px;
    padding: 6px 9px;
  }

  .hero-visual,
  .hero-sidebar,
  .live-overview,
  .live-lottery-grid,
  .live-lottery-card {
    width: 100%;
    min-width: 0;
  }

  .hero-visual {
    min-height: 0;
  }

  .live-overview {
    min-height: 0;
    padding: 14px;
  }

  .live-overview header {
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
  }

  .live-overview header p {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .live-overview header strong {
    font-size: 18px;
    white-space: nowrap;
  }

  .live-overview header span {
    font-size: 10px;
  }

  .live-lottery-grid {
    gap: 9px;
  }

  .live-lottery-card {
    gap: 8px;
    padding: 11px;
  }

  .live-metric {
    padding: 7px;
  }

  .live-metric-grid {
    gap: 5px;
  }

  .hero-sidebar {
    gap: 10px;
  }

  .hero-sidebar .side-card {
    padding: 14px;
  }

  .ticker-bar,
  .lottery-carousel,
  .homepage-text-ads,
  .dashboard-grid,
  .news-band {
    margin-right: 12px;
    margin-left: 12px;
  }

  .dashboard-grid {
    gap: 10px;
  }

  .content-panel {
    min-width: 0;
    padding: 14px;
  }

  .prize-panel table,
  .prize-panel tbody,
  .prize-panel tr,
  .prize-panel td {
    display: block;
    width: 100%;
  }

  .prize-panel thead {
    display: none;
  }

  .prize-panel tbody {
    display: grid;
    gap: 8px;
  }

  .prize-panel tr {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: 5px 8px;
    padding: 10px;
    background: #f8fbff;
    border: 1px solid #e2eaf5;
    border-radius: 6px;
  }

  .prize-panel td {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .prize-panel td:nth-child(4),
  .prize-panel td:nth-child(5) {
    color: #de3155;
    font-weight: 900;
  }

  .prize-panel td:nth-child(4)::before {
    content: "注数 ";
    color: #8593aa;
  }

  .prize-panel td:nth-child(5)::before {
    content: "奖金 ";
    color: #8593aa;
  }

  .prize-panel td:nth-child(4) {
    grid-column: 1 / 2;
  }

  .prize-panel td:nth-child(5) {
    grid-column: 2 / -1;
  }

  .prize-panel td[colspan] {
    grid-column: 1 / -1;
  }

  /* Prize map */
  .prize-map-page,
  .prize-map-page > *,
  .prize-map-hero,
  .prize-map-hero > *,
  .prize-map-actions,
  .prize-lottery-tabs,
  .prize-map-toolbar,
  .prize-info-section,
  .prize-map-section,
  .prize-info-layout,
  .china-map-layout,
  .prize-table-panel,
  .prize-rank-panel,
  .china-map-panel,
  .city-detail-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .prize-map-page {
    gap: 11px;
    padding: 12px;
  }

  .prize-map-hero,
  .prize-info-section,
  .prize-map-section {
    gap: 12px;
    padding: 14px;
  }

  .prize-map-hero h1 {
    margin-top: 8px;
    font-size: 26px;
  }

  .prize-map-hero p,
  .prize-section-head span {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.55;
  }

  .prize-lottery-tabs,
  .prize-map-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .prize-lottery-tabs button,
  .prize-map-toolbar button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
  }

  .prize-lottery-tabs button small {
    padding: 2px 5px;
    font-size: 9px;
  }

  .prize-map-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .prize-kpi-card {
    min-height: 88px;
    gap: 6px;
    padding: 12px;
  }

  .prize-kpi-card strong {
    font-size: 20px;
  }

  .prize-section-head {
    gap: 9px;
  }

  .prize-section-head h2 {
    font-size: 21px;
  }

  .prize-table-wrap {
    max-height: 440px;
    overscroll-behavior: contain;
  }

  .prize-detail-table {
    min-width: 760px;
  }

  .china-map-panel {
    min-height: 0;
    overflow: hidden;
  }

  #chinaPrizeMap {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1000 / 760;
  }

  .city-rank-list,
  .province-rank-list {
    max-height: 430px;
    padding-right: 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .map-legend {
    gap: 6px;
  }

  .map-legend span {
    font-size: 10px;
  }

  /* Common trend and tool pages */
  .regular-page,
  .trend-page {
    padding: 12px;
  }

  .regular-hero,
  .regular-control-panel,
  .regular-chart-section,
  .regular-module,
  .trend-toolbar,
  .trend-chart-shell,
  .quant-signal-panel,
  .practical-advice-panel,
  .trend-module,
  .trend-table-section {
    border-radius: 7px;
  }

  .regular-hero,
  .regular-chart-section,
  .regular-module,
  .trend-toolbar,
  .trend-chart-shell,
  .quant-signal-panel,
  .practical-advice-panel,
  .trend-module,
  .trend-table-section {
    padding: 13px;
  }

  .regular-hero h1,
  .trend-title-block h1 {
    font-size: 23px;
  }

  .regular-hero p,
  .trend-title-block > p {
    font-size: 12px;
    line-height: 1.55;
  }

  .regular-source-card {
    min-width: 0;
    padding: 13px;
  }

  .regular-source-card strong {
    font-size: 20px;
  }

  .regular-control-panel {
    padding: 12px;
  }

  .regular-control-row,
  .trend-controls {
    gap: 10px;
  }

  .regular-control-row .segmented-control,
  .trend-controls .segmented-control {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .regular-control-row .segmented-control button,
  .trend-controls .segmented-control button {
    width: 100%;
    min-width: 0;
    padding: 0 5px;
    font-size: 11px;
  }

  .trend-controls .analysis-mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .regular-chart-head {
    gap: 9px;
  }

  .regular-chart-head h2 {
    font-size: 20px;
  }

  .regular-chart-wrap {
    min-height: 480px;
    max-height: min(70vh, 680px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .regular-trend-table th,
  .regular-trend-table td {
    height: 38px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .regular-trend-table th:first-child,
  .regular-trend-table td:first-child,
  .regular-trend-table th:nth-child(2),
  .regular-trend-table td:nth-child(2) {
    position: sticky;
    z-index: 3;
    background: #f8fbff;
  }

  .regular-trend-table thead th:first-child,
  .regular-trend-table thead th:nth-child(2) {
    z-index: 5;
    background: #eaf3ff;
  }

  .regular-trend-table th:first-child,
  .regular-trend-table td:first-child {
    left: 0;
    width: 78px;
    min-width: 78px;
  }

  .regular-trend-table th:nth-child(2),
  .regular-trend-table td:nth-child(2) {
    left: 78px;
    width: 88px;
    min-width: 88px;
    box-shadow: 4px 0 8px rgba(16, 48, 96, 0.08);
  }

  .mobile-quant-nav {
    top: 64px;
    padding: 6px;
  }

  .mobile-quant-nav button {
    min-height: 38px;
  }

  .target-analysis-bar,
  .daily-quant-brief,
  .tv-chart-toolbar,
  .candidate-actions,
  .candidate-filters,
  .strategy-controls {
    min-width: 0;
  }

  .candidate-charge-dialog {
    width: calc(100% - 24px);
    max-width: 420px;
  }

  .candidate-charge-card {
    padding: 18px;
  }

  .candidate-charge-actions button {
    min-height: 44px;
  }

  .sim-machine {
    min-height: 470px;
  }

  .sim-bowl-ring,
  .sim-glass-bowl {
    top: 80px;
    width: min(286px, calc(100% - 18px));
  }

  .sim-side-tube {
    height: 330px;
  }

  /* Visualization */
  .visualization-page {
    padding: 10px;
  }

  .viz-command,
  .viz-controls,
  .viz-classic-section,
  .viz-card {
    max-width: 100%;
    min-width: 0;
  }

  .viz-command {
    padding: 15px 13px;
  }

  .viz-title-row h1 {
    font-size: 23px;
  }

  .viz-title-row p:last-child {
    font-size: 12px;
    line-height: 1.55;
  }

  .viz-controls .segmented-control {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .viz-controls .segmented-control button {
    width: 100%;
    min-width: 0;
    padding: 0 5px;
    font-size: 11px;
  }

  .viz-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-card-body {
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .brand strong {
    font-size: 17px;
  }

  .header-actions {
    gap: 3px;
  }

  .icon-button,
  .avatar-button,
  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
  }

  .runtime-page-text-ads .runtime-text-ad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .regular-control-row .segmented-control,
  .trend-controls .segmented-control,
  .viz-controls .segmented-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
