/* Screenshot-guided home layouts for 28pc.fun, 28pc.men and jnd28.date.
   Loaded last so the reference geometry wins without changing application logic. */

html[data-site] body[data-page='home'] {
  min-height: 100vh;
  color: #111827;
  background: #f7f9fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

html[data-site] body[data-page='home'] .replica-topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #e9edf3;
  background: rgba(255,255,255,.96);
  color: #171b24;
}

html[data-site] body[data-page='home'] .replica-welcome,
html[data-site] body[data-page='home'] .replica-welcome p,
html[data-site] body[data-page='home'] .replica-online {
  display: flex;
  align-items: center;
}

html[data-site] body[data-page='home'] .replica-welcome { gap: 12px; }
html[data-site] body[data-page='home'] .replica-welcome > span { font-size: 24px; }
html[data-site] body[data-page='home'] .replica-welcome p { align-items: flex-start; flex-direction: column; }
html[data-site] body[data-page='home'] .replica-welcome b { font-size: 15px; line-height: 1.2; }
html[data-site] body[data-page='home'] .replica-welcome small { margin-top: 5px; color: #616875; font-size: 12px; }
html[data-site] body[data-page='home'] .replica-online { gap: 8px; color: #525a67; font-size: 12px; }
html[data-site] body[data-page='home'] .replica-online i,
html[data-site] body[data-page='home'] [class$='page-title'] h1 span i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: #1fb9a8;
  box-shadow: 0 0 0 4px rgba(31,185,168,.1);
}

html[data-site] body[data-page='home'] .site-footer { color: #6b7280; }

/* --------------------------------------------------------------------------
   28pc.fun — reference image 2: pink, lively, polished side-rail dashboard
   -------------------------------------------------------------------------- */

html[data-site='shiqu'] body[data-page='home'] {
  --pink: #ef3d78;
  --pink-2: #ff6f9e;
  --pink-deep: #d92f69;
  --pink-soft: #fff1f6;
  --pink-line: #f5dce5;
  background: #fffafb !important;
  color: #1f2229 !important;
}

@media (min-width: 901px) {
  html[data-site='shiqu'] body[data-page='home'] .site-header {
    position: fixed !important;
    z-index: 20;
    inset: 0 auto 0 0;
    width: 243px !important;
    height: 100vh;
    overflow: hidden;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid #ece9ec !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  html[data-site='shiqu'] body[data-page='home'] .masthead {
    width: 100% !important;
    min-height: 92px !important;
    margin: 0 !important;
    padding: 14px 17px !important;
    justify-content: flex-start !important;
    border: 0 !important;
  }

  html[data-site='shiqu'] body[data-page='home'] .brand {
    gap: 12px !important;
    color: var(--pink) !important;
    font-size: 22px !important;
    letter-spacing: .02em !important;
  }

  html[data-site='shiqu'] body[data-page='home'] .brand img {
    width: 48px !important;
    height: 48px !important;
    filter: sepia(.15) saturate(4.5) hue-rotate(287deg) brightness(1.03);
  }

  html[data-site='shiqu'] body[data-page='home'] .brand small {
    color: #5d5b63 !important;
    font-size: 8px !important;
    letter-spacing: .18em !important;
  }

  html[data-site='shiqu'] body[data-page='home'] .brand-tag { display: none !important; }

  html[data-site='shiqu'] body[data-page='home'] .theme-toggle {
    position: absolute !important;
    right: 14px;
    bottom: 16px;
    left: 14px;
    min-height: 46px;
    justify-content: center;
    border: 1px solid var(--pink-line) !important;
    border-radius: 11px !important;
    color: var(--pink-deep) !important;
    background: var(--pink-soft) !important;
  }

  html[data-site='shiqu'] body[data-page='home'] .nav {
    width: auto !important;
    display: block !important;
    margin: 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  html[data-site='shiqu'] body[data-page='home'] .nav-group,
  html[data-site='shiqu'] body[data-page='home'] .nav-group > div { display: contents !important; }
  html[data-site='shiqu'] body[data-page='home'] .nav-group > span { display: none !important; }

  html[data-site='shiqu'] body[data-page='home'] .nav a {
    width: 100%;
    min-height: 48px !important;
    margin: 1px 0;
    padding: 0 16px !important;
    gap: 15px !important;
    border-radius: 10px !important;
    color: #2b2d33 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  html[data-site='shiqu'] body[data-page='home'] .nav a:hover {
    color: var(--pink-deep) !important;
    background: #fff5f8 !important;
  }

  html[data-site='shiqu'] body[data-page='home'] .nav a[aria-current='page'] {
    color: var(--pink-deep) !important;
    background: #fff0f5 !important;
    font-weight: 700 !important;
  }

  html[data-site='shiqu'] body[data-page='home'] .nav a[aria-current='page']:after { display: none !important; }
  html[data-site='shiqu'] body[data-page='home'] .nav-icon { width: 21px !important; height: 21px !important; }

  html[data-site='shiqu'] body[data-page='home'] main.wrap,
  html[data-site='shiqu'] body[data-page='home'] .site-footer.wrap {
    width: calc(100% - 243px) !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 243px !important;
  }

  html[data-site='shiqu'] body[data-page='home'] main.wrap { padding: 0 28px 34px !important; }
  html[data-site='shiqu'] body[data-page='home'] .site-footer.wrap { padding-right: 28px !important; padding-left: 28px !important; }
  html[data-site='shiqu'] body[data-page='home'] .replica-topbar { margin: 0 -28px 0 !important; }
}

html[data-site='shiqu'] body[data-page='home'] .replica-online i { background: var(--pink); box-shadow: 0 0 0 4px rgba(239,61,120,.1); }

html[data-site='shiqu'] body[data-page='home'] .pink-page-title {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4px 8px;
  position: relative;
}

html[data-site='shiqu'] body[data-page='home'] .pink-page-title:after {
  content: "";
  position: absolute;
  right: 24px;
  top: 19px;
  width: 86px;
  height: 86px;
  opacity: .11;
  transform: rotate(-10deg);
  background: radial-gradient(circle at 50% 15%, var(--pink) 0 8%, transparent 9%),
              conic-gradient(from 5deg, transparent 0 7%, var(--pink) 8% 12%, transparent 13% 19%, var(--pink) 20% 24%, transparent 25% 31%, var(--pink) 32% 36%, transparent 37% 43%, var(--pink) 44% 48%, transparent 49% 100%);
  clip-path: polygon(50% 0,58% 34%,78% 18%,70% 43%,100% 42%,73% 57%,89% 79%,61% 66%,50% 100%,39% 66%,11% 79%,27% 57%,0 42%,30% 43%,22% 18%,42% 34%);
  pointer-events: none;
}

html[data-site='shiqu'] body[data-page='home'] .pink-page-title > div { position: relative; z-index: 1; }
html[data-site='shiqu'] body[data-page='home'] .pink-page-title > div > span { color: var(--pink); font-size: 13px; font-weight: 700; }
html[data-site='shiqu'] body[data-page='home'] .pink-page-title h1 {
  margin-top: 4px !important;
  color: #22252c !important;
  font-size: clamp(29px,3vw,39px) !important;
  font-weight: 760 !important;
  letter-spacing: -.035em !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-page-title p { margin-top: 4px; color: var(--pink); font-size: 14px; }
html[data-site='shiqu'] body[data-page='home'] .pink-page-title > a {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #f2b9cc;
  border-radius: 11px;
  color: var(--pink-deep);
  background: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 650;
}

html[data-site='shiqu'] body[data-page='home'] .pink-overview .result {
  display: grid !important;
  grid-template-columns: 1fr;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-site='shiqu'] body[data-page='home'] .pink-overview .result-top {
  min-height: 32px !important;
  justify-content: center !important;
  gap: 14px !important;
  color: #6e6570 !important;
  font-size: 11px !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .live-status { color: var(--pink-deep) !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-overview .result-top > span:nth-child(2) { margin-left: 0 !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-overview .refresh {
  min-width: 44px !important;
  min-height: 44px !important;
  margin-left: 0 !important;
  color: var(--pink-deep) !important;
}

html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls {
  min-height: 98px;
  gap: 24px !important;
  padding: 4px 0 15px !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls span,
html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls strong {
  width: 76px !important;
  height: 68px !important;
  border: 0 !important;
  border-radius: 15px !important;
  color: #fff !important;
  font-size: 43px !important;
  font-weight: 720 !important;
  background: linear-gradient(145deg,#ff8caf,#ed3e78) !important;
  box-shadow: 0 8px 18px rgba(229,52,111,.18), inset 0 1px rgba(255,255,255,.45) !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls span:nth-of-type(2) { background: linear-gradient(145deg,#ff9dbb,#f55287) !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls span:nth-of-type(3) { background: linear-gradient(145deg,#ff85ae,#e93673) !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls strong {
  width: 96px !important;
  color: var(--pink-deep) !important;
  background: #fff !important;
  border: 2px solid #f3b4c9 !important;
  box-shadow: 0 8px 22px rgba(174,49,91,.08) !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls i { color: var(--pink-deep) !important; font-size: 30px !important; font-weight: 700 !important; }

html[data-site='shiqu'] body[data-page='home'] .pink-overview .result-bottom {
  min-height: 108px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(250px,1.15fr);
  align-items: stretch !important;
  gap: 0 !important;
  margin-top: 3px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #f2dee5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(77,34,50,.07);
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview [data-labels] {
  display: flex !important;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 7px !important;
  padding: 22px;
  border-right: 1px solid #f1e4e8;
  background: linear-gradient(135deg,#fff 25%,#fff7fa);
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .tag {
  padding: 6px 11px !important;
  border-radius: 999px !important;
  color: var(--pink-deep) !important;
  background: var(--pink-soft) !important;
  font-size: 12px !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .countdown {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5c5d65 !important;
  font-size: 12px !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .countdown:before {
  content: "下一期开奖倒计时";
  margin-bottom: 3px;
  color: #292b31;
  font-size: 13px;
  font-weight: 650;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .countdown b {
  margin: 0 !important;
  color: #22252b !important;
  font-size: 43px !important;
  font-weight: 720 !important;
  line-height: 1.15;
  letter-spacing: .12em !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .draw-time {
  margin: 7px 3px 0 !important;
  color: #77717a !important;
  text-align: center !important;
  font-size: 10px !important;
}

html[data-site='shiqu'] body[data-page='home'] .pink-history {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #f0e4e8 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(77,34,50,.06) !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-history .panel-heading {
  min-height: 48px !important;
  padding: 0 15px !important;
  border: 0 !important;
  background: #fff !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-history .panel-heading h2 { color: #25272d !important; font-size: 16px !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .panel-heading h2 svg { color: var(--pink) !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .panel-heading a { color: var(--pink-deep) !important; font-size: 11px !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .table-cue { display: none !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .table-wrap { border: 0 !important; border-top: 1px solid #eee7ea !important; border-radius: 0 !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .history-table { min-width: 720px !important; color: #202228 !important; font-size: 11px !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .history-table th {
  height: 32px;
  padding: 6px 12px !important;
  color: #55515a !important;
  background: #fff8fa !important;
  font-size: 10px !important;
  font-weight: 650 !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-history .history-table td { height: 34px !important; padding: 5px 12px !important; border-color: #f1e9ec !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .history-table tbody tr:nth-child(odd) { background: #fff !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .history-table tbody tr:nth-child(even) { background: #fff8fb !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .mini-balls b { width: 23px !important; height: 23px !important; color: #fff !important; border-radius: 7px !important; background: var(--pink) !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .sum-number { color: var(--pink-deep) !important; font-size: 17px !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-quick-tools { display: none; }

/* --------------------------------------------------------------------------
   28pc.men — reference image 1: clean blue/teal horizontal dashboard
   -------------------------------------------------------------------------- */

html[data-site='guanlan'] body[data-page='home'] {
  --blue: #087fed;
  --teal: #16b39f;
  --violet: #8f51d6;
  --navy: #17334c;
  --blue-line: #e1e6ec;
  background: #f8fafc !important;
  color: #14191f !important;
}

@media (min-width: 901px) {
  html[data-site='guanlan'] body[data-page='home'] .site-header {
    height: 80px;
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e7eb !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: none !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .masthead {
    width: 248px !important;
    min-height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .lottery-brand-mark {
    width: 45px !important;
    height: 45px !important;
    display: grid !important;
    place-items: center;
    border-radius: 50% 50% 44% 50%;
    color: #fff !important;
    background: linear-gradient(145deg,var(--blue),#1267c0) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    transform: rotate(-8deg);
  }
  html[data-site='guanlan'] body[data-page='home'] .brand { color: #1268c7 !important; font-size: 21px !important; }
  html[data-site='guanlan'] body[data-page='home'] .brand small { color: #4a5761 !important; font-size: 8px !important; }
  html[data-site='guanlan'] body[data-page='home'] .brand-tag { display: none !important; }
  html[data-site='guanlan'] body[data-page='home'] .theme-toggle {
    position: absolute;
    right: 20px;
    min-width: 86px;
    min-height: 44px;
    justify-content: center;
    border: 1px solid #dde2e7 !important;
    border-radius: 9px !important;
    color: #26343f !important;
    background: #fff !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .nav {
    width: auto !important;
    flex: 1;
    display: flex !important;
    align-items: center;
    gap: 1px !important;
    margin: 0 94px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .nav-group,
  html[data-site='guanlan'] body[data-page='home'] .nav-group > div { display: contents !important; }
  html[data-site='guanlan'] body[data-page='home'] .nav-group > span { display: none !important; }
  html[data-site='guanlan'] body[data-page='home'] .nav a {
    min-height: 80px !important;
    padding: 0 10px !important;
    justify-content: center;
    color: #30363c !important;
    font-size: 12px !important;
    font-weight: 520 !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .nav-icon { display: none !important; }
  html[data-site='guanlan'] body[data-page='home'] .nav a[aria-current='page'] { color: #096fcf !important; font-weight: 700 !important; }
  html[data-site='guanlan'] body[data-page='home'] .nav a[aria-current='page']:after {
    display: block !important;
    bottom: 10px !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
    height: 3px !important;
    border-radius: 2px;
    background: var(--blue) !important;
  }
  html[data-site='guanlan'] body[data-page='home'] main.wrap {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin-inline: 24px !important;
    padding: 21px 0 30px !important;
  }
}

html[data-site='guanlan'] body[data-page='home'] .replica-topbar-blue,
html[data-site='guanlan'] body[data-page='home'] .blue-page-title { display: none !important; }

html[data-site='guanlan'] body[data-page='home'] .blue-overview .result {
  display: grid !important;
  grid-template-columns: minmax(0,1.9fr) minmax(320px,1fr) !important;
  grid-template-rows: auto auto auto;
  gap: 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #17202a !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-top {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-height: 58px !important;
  padding: 13px 18px 0 !important;
  border: 1px solid var(--blue-line) !important;
  border-bottom: 0 !important;
  border-radius: 14px 14px 0 0 !important;
  color: #4e5965 !important;
  background: #fff !important;
  box-shadow: 0 -3px 18px rgba(21,37,53,.035) !important;
  font-size: 11px !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .live-status { color: var(--blue) !important; font-size: 14px !important; font-weight: 750 !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-top > span:nth-child(2) { color: #3e4852 !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .refresh { min-width: 44px; min-height: 44px; color: #4b5965 !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls {
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-height: 128px;
  gap: 20px !important;
  padding: 5px 18px 15px !important;
  border-right: 1px solid var(--blue-line) !important;
  border-left: 1px solid var(--blue-line) !important;
  background: #fff !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls span,
html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong {
  width: 77px !important;
  height: 77px !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 43px !important;
  font-weight: 720 !important;
  background: linear-gradient(145deg,#2194ff,#0878df) !important;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.35),0 6px 15px rgba(25,120,220,.15) !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls span:nth-of-type(2) { background: linear-gradient(145deg,#27c8b4,#10aa96) !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls span:nth-of-type(3) { background: linear-gradient(145deg,#a963e7,#8143c7) !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong {
  width: 105px !important;
  color: var(--blue) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 59px !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls i { color: #294258 !important; font-size: 30px !important; font-weight: 650 !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .draw-time {
  grid-column: 1 !important;
  grid-row: 3 !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 8px 18px 15px !important;
  border: 1px solid var(--blue-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 14px 14px !important;
  color: #65717c !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(21,37,53,.055) !important;
  text-align: center !important;
  font-size: 10px !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom {
  grid-column: 2 !important;
  grid-row: 1 / 4 !important;
  min-height: 234px;
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 25px !important;
  padding: 24px 20px !important;
  border: 1px solid var(--blue-line) !important;
  border-radius: 14px !important;
  color: #17202a !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(21,37,53,.055) !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom:before {
  content: "下一期开奖";
  position: absolute;
  align-self: flex-start;
  margin: -175px 0 0 0;
  color: #202b35;
  font-size: 15px;
  font-weight: 700;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview [data-labels] { justify-content: center; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .tag { padding: 6px 12px !important; border-radius: 999px !important; color: #0a776c !important; background: #e9f8f5 !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .countdown { display: flex; flex-direction: column; align-items: center; color: #65717c !important; font-size: 11px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .countdown b {
  margin: 4px 0 0 !important;
  color: var(--teal) !important;
  font-size: clamp(44px,5vw,58px) !important;
  font-weight: 680 !important;
  line-height: 1.1;
  letter-spacing: .06em !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history {
  margin-top: 18px;
  padding: 0 7px 7px;
  overflow: hidden;
  border: 1px solid var(--blue-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(21,37,53,.045) !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-history .market-heading { min-height: 50px !important; margin: 0 !important; padding: 0 8px !important; border: 0 !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .market-heading h2 { display: flex; align-items: center; gap: 8px; color: #1f2933 !important; font-size: 16px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .market-heading h2 svg { color: var(--blue) !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .market-heading a { color: #0873db !important; font-size: 11px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .table-cue { display: none !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .table-wrap { border: 1px solid #e3e7ec !important; border-radius: 9px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .history-table { min-width: 720px !important; color: #20262d !important; font-size: 11px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .history-table th { height: 31px; padding: 6px 12px !important; color: #323a43 !important; background: #f6f8fa !important; font-size: 10px !important; font-weight: 700 !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .history-table td { height: 34px !important; padding: 5px 12px !important; border-color: #e7ebef !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .history-table tbody tr:nth-child(even) { background: #f8fafc !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .mini-balls b { width: 23px !important; height: 23px !important; border-radius: 7px !important; color: #fff !important; background: var(--blue) !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .mini-balls b:nth-child(2) { background: var(--teal) !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .mini-balls b:nth-child(3) { background: var(--violet) !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-history .sum-number { color: #0873d1 !important; font-size: 17px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-tools { display: flex; gap: 12px; margin-top: 13px; }
html[data-site='guanlan'] body[data-page='home'] .blue-tools > a { flex: 1; min-height: 62px; display: flex; align-items: center; gap: 11px; padding: 10px 14px; border: 1px solid #e2e7ec; border-radius: 11px; color: #166ab9; background: #fff; font-size: 12px; }
html[data-site='guanlan'] body[data-page='home'] .blue-tools > a > span { flex: 1; }
html[data-site='guanlan'] body[data-page='home'] .blue-tools b { display: block; font-size: 12px; }
html[data-site='guanlan'] body[data-page='home'] .blue-tools small { display: block; margin-top: 2px; color: #7a8490; font-size: 9px; }

/* --------------------------------------------------------------------------
   jnd28.date — reference image 3: blue/teal side rail and recent cards
   -------------------------------------------------------------------------- */

html[data-site='shixu'] body[data-page='home'] {
  --teal-blue: #147bd8;
  --teal-green: #21b7a5;
  --teal-navy: #0b1b43;
  --teal-soft: #f2f7fd;
  --teal-line: #e0e6ed;
  background: #fbfcfe !important;
  color: var(--teal-navy) !important;
}

@media (min-width: 901px) {
  html[data-site='shixu'] body[data-page='home'] .site-header {
    position: fixed !important;
    z-index: 20;
    inset: 0 auto 0 0;
    width: 228px !important;
    height: 100vh;
    overflow: hidden;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid #e2e7ed !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html[data-site='shixu'] body[data-page='home'] .masthead {
    width: 100% !important;
    min-height: 94px !important;
    margin: 0 !important;
    padding: 15px 17px !important;
    justify-content: flex-start !important;
    border: 0 !important;
  }
  html[data-site='shixu'] body[data-page='home'] .brand { gap: 12px !important; color: #0e68bd !important; font-size: 21px !important; }
  html[data-site='shixu'] body[data-page='home'] .brand img { width: 47px !important; height: 47px !important; filter: saturate(1.15) hue-rotate(14deg); }
  html[data-site='shixu'] body[data-page='home'] .brand small { color: #56626f !important; font-size: 8px !important; }
  html[data-site='shixu'] body[data-page='home'] .brand-tag { display: none !important; }
  html[data-site='shixu'] body[data-page='home'] .theme-toggle {
    position: absolute !important;
    right: 13px;
    bottom: 16px;
    left: 13px;
    min-height: 46px;
    justify-content: center;
    border: 1px solid #dfe7ef !important;
    border-radius: 11px !important;
    color: #176fc1 !important;
    background: #f6faff !important;
  }
  html[data-site='shixu'] body[data-page='home'] .nav {
    width: auto !important;
    display: block !important;
    margin: 0 9px !important;
    padding: 0 !important;
    border: 0 !important;
  }
  html[data-site='shixu'] body[data-page='home'] .nav-group,
  html[data-site='shixu'] body[data-page='home'] .nav-group > div { display: contents !important; }
  html[data-site='shixu'] body[data-page='home'] .nav-group > span { display: none !important; }
  html[data-site='shixu'] body[data-page='home'] .nav a {
    width: 100%;
    min-height: 48px !important;
    margin: 1px 0;
    padding: 0 16px !important;
    gap: 14px !important;
    border-radius: 10px !important;
    color: #1f304b !important;
    font-size: 14px !important;
    font-weight: 520 !important;
  }
  html[data-site='shixu'] body[data-page='home'] .nav a:hover { color: #106fca !important; background: #f3f8fe !important; }
  html[data-site='shixu'] body[data-page='home'] .nav a[aria-current='page'] { color: #106fca !important; background: #edf5fe !important; font-weight: 700 !important; }
  html[data-site='shixu'] body[data-page='home'] .nav a[aria-current='page']:after { display: none !important; }
  html[data-site='shixu'] body[data-page='home'] .nav-icon { width: 21px !important; height: 21px !important; }
  html[data-site='shixu'] body[data-page='home'] main.wrap,
  html[data-site='shixu'] body[data-page='home'] .site-footer.wrap {
    width: calc(100% - 228px) !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 228px !important;
  }
  html[data-site='shixu'] body[data-page='home'] main.wrap { padding: 0 28px 36px !important; }
  html[data-site='shixu'] body[data-page='home'] .site-footer.wrap { padding-right: 28px !important; padding-left: 28px !important; }
  html[data-site='shixu'] body[data-page='home'] .replica-topbar { height: 85px; margin: 0 -28px !important; }
}

html[data-site='shixu'] body[data-page='home'] .teal-page-title {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
html[data-site='shixu'] body[data-page='home'] .teal-page-title h1 { color: var(--teal-navy) !important; font-size: 28px !important; font-weight: 750 !important; letter-spacing: -.035em !important; }
html[data-site='shixu'] body[data-page='home'] .teal-page-title h1 span { display: inline-flex; align-items: center; gap: 9px; margin-left: 8px; color: #56616e; font-size: 12px; font-weight: 500; letter-spacing: 0; vertical-align: middle; }
html[data-site='shixu'] body[data-page='home'] .teal-page-title > a { min-height: 42px; display: flex; align-items: center; padding: 0 15px; border: 1px solid #d9e1e9; border-radius: 9px; color: #17304d; background: #fff; font-size: 11px; }

html[data-site='shixu'] body[data-page='home'] .teal-overview { padding: 0 !important; border: 0 !important; background: transparent !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .result {
  display: grid !important;
  grid-template-columns: minmax(0,1.32fr) minmax(330px,1fr) !important;
  grid-template-rows: auto auto auto;
  gap: 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview .result-top {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-height: 76px;
  padding: 16px 19px 0 !important;
  border: 1px solid var(--teal-line) !important;
  border-bottom: 0 !important;
  border-radius: 14px 14px 0 0 !important;
  color: #4d5968 !important;
  background: #fff !important;
  font-size: 11px !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview .live-status { color: #17284b !important; font-size: 15px !important; font-weight: 720 !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .live-status:before { width: 35px !important; height: 35px !important; display: grid !important; background: var(--teal-blue) !important; box-shadow: 0 0 0 8px #eef5fd; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .refresh { min-width: 44px; min-height: 44px; color: #23415f !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .balls {
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-height: 134px;
  gap: 18px !important;
  padding: 3px 20px 14px !important;
  border-right: 1px solid var(--teal-line) !important;
  border-left: 1px solid var(--teal-line) !important;
  background: #fff !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview .balls span,
html[data-site='shixu'] body[data-page='home'] .teal-overview .balls strong {
  width: 99px !important;
  height: 105px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 47px !important;
  font-weight: 720 !important;
  background: linear-gradient(180deg,#47aaf7,#137bd8) !important;
  box-shadow: 0 7px 14px rgba(20,123,216,.16),inset 0 1px rgba(255,255,255,.5) !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview .balls span:nth-of-type(2) { background: linear-gradient(180deg,#42d0bd,#1aaf9d) !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .balls span:nth-of-type(3) { background: linear-gradient(180deg,#47aaf7,#137bd8) !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .balls strong { width: 75px !important; color: var(--teal-blue) !important; background: transparent !important; box-shadow: none !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .balls i { color: #1d4f80 !important; font-size: 25px !important; font-weight: 700 !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .draw-time {
  grid-column: 1 !important;
  grid-row: 3 !important;
  min-height: 78px;
  margin: 0 !important;
  padding: 22px 20px 16px !important;
  border: 1px solid var(--teal-line) !important;
  border-top: 1px solid #edf0f4 !important;
  border-radius: 0 0 14px 14px !important;
  color: #176ec2 !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(12,34,60,.05) !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 650;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview .draw-time:before { content: "和值结果  "; color: #38516b; font-weight: 500; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom {
  grid-column: 2 !important;
  grid-row: 1 / 4 !important;
  min-height: 288px;
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 42px !important;
  padding: 28px 20px !important;
  border: 1px solid var(--teal-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(12,34,60,.05) !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom:before {
  content: "下一期开奖倒计时";
  position: absolute;
  align-self: flex-start;
  margin: -228px 0 0 0;
  color: #17284b;
  font-size: 15px;
  font-weight: 720;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview [data-labels] { justify-content: center; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .tag { padding: 6px 12px !important; border-radius: 999px !important; color: #08786b !important; background: #eaf8f6 !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .countdown { display: flex; flex-direction: column; align-items: center; color: #667181 !important; font-size: 11px !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .countdown b {
  margin: 6px 0 0 !important;
  color: var(--teal-blue) !important;
  font-size: clamp(47px,5vw,61px) !important;
  font-weight: 690 !important;
  line-height: 1.08;
  letter-spacing: .05em !important;
}

html[data-site='shixu'] body[data-page='home'] .teal-recent { margin-top: 29px; }
html[data-site='shixu'] body[data-page='home'] .teal-recent-heading { min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
html[data-site='shixu'] body[data-page='home'] .teal-recent-heading h2 { color: var(--teal-navy) !important; font-size: 23px !important; font-weight: 730 !important; }
html[data-site='shixu'] body[data-page='home'] .teal-recent-heading a { min-height: 40px; display: flex; align-items: center; padding: 0 14px; border: 1px solid #dce3ea; border-radius: 9px; color: #162a47; background: #fff; font-size: 11px; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .archive-ledger {
  display: flex !important;
  gap: 14px;
  margin-top: 9px;
  padding: 0 1px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-record {
  flex: 0 0 160px;
  min-height: 138px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px !important;
  padding: 12px 8px !important;
  scroll-snap-align: start;
  border: 1px solid #e0e6ed !important;
  border-radius: 12px !important;
  color: #152640 !important;
  background: #fff !important;
  box-shadow: 0 6px 15px rgba(14,37,67,.045) !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-record:first-child { border-color: #cfe0f2 !important; background: #f8fbff !important; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-record:before { display: none !important; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-time { order: 1; text-align: center; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-time time { display: none; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-time small { color: #20324c !important; font-size: 10px !important; font-weight: 650; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-issue { order: 2; color: #718093; font-size: 9px !important; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers { order: 3; gap: 4px !important; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--teal-blue);
  font-size: 16px !important;
  font-weight: 700;
}
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers span:nth-of-type(2) { background: var(--teal-green); }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers span:nth-of-type(3) { background: #2a91df; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers i { display: none; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers strong { min-width: 26px !important; color: var(--teal-blue) !important; font-size: 18px !important; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-tags { order: 4; color: #1774c8 !important; font-size: 10px !important; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-tags small { display: none !important; }

html[data-site='shixu'] body[data-page='home'] .teal-filter {
  margin-top: 12px;
  padding: 0 14px 5px;
  border: 1px solid #e0e6ed;
  border-radius: 11px;
  background: #fff;
}
html[data-site='shixu'] body[data-page='home'] .teal-filter .date-switch { margin: 0 !important; border: 0 !important; }
html[data-site='shixu'] body[data-page='home'] .teal-filter .date-switch h2 { color: #152640 !important; }
html[data-site='shixu'] body[data-page='home'] .teal-filter .date-switch button[aria-pressed='true'] { color: #fff !important; background: var(--teal-blue) !important; }

/* Dark mode remains functional while keeping each site's color identity. */
html[data-theme='dark'][data-site] body[data-page='home'] { background: #101820 !important; color: #edf3f7 !important; }
html[data-theme='dark'][data-site] body[data-page='home'] .site-header,
html[data-theme='dark'][data-site] body[data-page='home'] .replica-topbar,
html[data-theme='dark'][data-site] body[data-page='home'] .result-top,
html[data-theme='dark'][data-site] body[data-page='home'] .balls,
html[data-theme='dark'][data-site] body[data-page='home'] .draw-time,
html[data-theme='dark'][data-site] body[data-page='home'] .result-bottom,
html[data-theme='dark'][data-site] body[data-page='home'] .pink-history,
html[data-theme='dark'][data-site] body[data-page='home'] .blue-history,
html[data-theme='dark'][data-site] body[data-page='home'] .ledger-record,
html[data-theme='dark'][data-site] body[data-page='home'] .teal-filter { background: #18242e !important; color: #edf3f7 !important; border-color: #31404c !important; }

/* --------------------------------------------------------------------------
   Responsive: preserve every control, collapse reference layouts cleanly.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  html[data-site] body[data-page='home'] .site-header {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e7ec !important;
    background: #fff !important;
  }
  html[data-site] body[data-page='home'] .masthead {
    width: calc(100% - 24px) !important;
    min-height: 62px !important;
    margin-inline: 12px !important;
    padding: 0 !important;
  }
  html[data-site] body[data-page='home'] .brand { font-size: 19px !important; }
  html[data-site] body[data-page='home'] .brand img { width: 37px !important; height: 37px !important; }
  html[data-site] body[data-page='home'] .brand-tag { display: none !important; }
  html[data-site] body[data-page='home'] .theme-toggle { position: static !important; min-width: 44px !important; min-height: 44px !important; padding: 0 10px !important; }
  html[data-site] body[data-page='home'] .theme-toggle span { display: none !important; }
  html[data-site] body[data-page='home'] .nav {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 5px 8px 7px !important;
    overflow: visible !important;
    border: 0 !important;
    background: #fff !important;
  }
  html[data-site] body[data-page='home'] .nav-group,
  html[data-site] body[data-page='home'] .nav-group > div { display: contents !important; }
  html[data-site] body[data-page='home'] .nav-group > span { display: none !important; }
  html[data-site] body[data-page='home'] .nav a {
    min-width: 0 !important;
    min-height: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 3px 1px !important;
    border-radius: 8px !important;
    color: #283543 !important;
    font-size: 9px !important;
    line-height: 1.2;
  }
  html[data-site] body[data-page='home'] .nav-icon { width: 17px !important; height: 17px !important; display: block !important; }
  html[data-site] body[data-page='home'] .nav a[aria-current='page'] { color: #087bd8 !important; background: #edf5fc !important; }
  html[data-site] body[data-page='home'] .nav a[aria-current='page']:after { display: none !important; }
  html[data-site] body[data-page='home'] main.wrap,
  html[data-site] body[data-page='home'] .site-footer.wrap {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin-inline: 10px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  html[data-site] body[data-page='home'] main.wrap { padding-top: 0 !important; }
  html[data-site] body[data-page='home'] .replica-topbar {
    height: 55px !important;
    margin: 0 -10px !important;
    padding: 0 14px !important;
  }
  html[data-site] body[data-page='home'] .replica-welcome small { font-size: 10px; }
  html[data-site] body[data-page='home'] .replica-online { font-size: 10px; }
  html[data-site='guanlan'] body[data-page='home'] .replica-topbar-blue { display: flex !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-page-title { display: flex !important; min-height: 60px; align-items: center; justify-content: space-between; }
  html[data-site='guanlan'] body[data-page='home'] .blue-page-title h1 { color: #15283a !important; font-size: 20px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-page-title h1 span { display: none; }
  html[data-site='guanlan'] body[data-page='home'] .blue-page-title > a { color: #0874d6; font-size: 10px; }

  html[data-site='shiqu'] body[data-page='home'] .pink-page-title { min-height: 103px; padding: 12px 2px 4px; }
  html[data-site='shiqu'] body[data-page='home'] .pink-page-title h1 { font-size: 27px !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-page-title p { font-size: 11px; }
  html[data-site='shiqu'] body[data-page='home'] .pink-page-title > a { display: none; }
  html[data-site='shiqu'] body[data-page='home'] .pink-page-title:after { right: 5px; width: 68px; height: 68px; }

  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result { grid-template-columns: minmax(0,1fr) !important; gap: 12px 0 !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-top,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result-top { grid-column: 1 !important; grid-row: 1 !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .balls { grid-column: 1 !important; grid-row: 2 !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .draw-time,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .draw-time { grid-column: 1 !important; grid-row: 3 !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom { grid-column: 1 !important; grid-row: 4 !important; min-height: 145px; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom:before,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom:before { position: static; align-self: center; margin: 0; }

  html[data-site='shixu'] body[data-page='home'] .teal-page-title { min-height: 62px; }
  html[data-site='shixu'] body[data-page='home'] .teal-page-title h1 { font-size: 21px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-page-title h1 span { display: none; }
  html[data-site='shixu'] body[data-page='home'] .teal-page-title > a { min-height: 38px; padding: 0 10px; font-size: 9px; }

  html[data-site='shixu'] body[data-page='home'] .teal-overview .balls span,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .balls strong { width: 69px !important; height: 76px !important; font-size: 37px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-overview .balls strong { width: 55px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom { gap: 10px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-recent { margin-top: 20px; }
  html[data-site='shixu'] body[data-page='home'] .teal-recent-heading h2 { font-size: 19px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-filter .date-switch { display: grid !important; }

  html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls { gap: 12px !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls span,
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls strong { width: 58px !important; height: 56px !important; font-size: 34px !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls strong { width: 70px !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls i { font-size: 21px !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .result-bottom { grid-template-columns: 1fr !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview [data-labels] { min-height: 54px; padding: 9px; border: 0; border-bottom: 1px solid #f1e4e8; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .countdown { min-height: 88px; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .countdown b { font-size: 34px !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-history { margin-top: 10px; }
  html[data-site='shiqu'] body[data-page='home'] .pink-quick-tools { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 10px; }
  html[data-site='shiqu'] body[data-page='home'] .pink-quick-tools > a { min-height: 57px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #f1dfe5; border-radius: 10px; color: var(--pink-deep); background: #fff; font-size: 9px; }
  html[data-site='shiqu'] body[data-page='home'] .pink-quick-tools svg { width: 18px; height: 18px; }

  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls { gap: 10px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls span,
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong { width: 59px !important; height: 59px !important; font-size: 34px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong { width: 72px !important; font-size: 42px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls i { font-size: 20px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom { gap: 9px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .countdown b { font-size: 42px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-tools { overflow-x: auto; }
  html[data-site='guanlan'] body[data-page='home'] .blue-tools > a { flex: 0 0 190px; }
}

/* --------------------------------------------------------------------------
   Unified core workspace v2
   Three brands, one clear operating pattern: result card + countdown + table.
   -------------------------------------------------------------------------- */

html[data-site='shiqu'] body[data-page='home'] {
  --home-card: #ffffff;
  --home-border: #f0dfe6;
  --home-shadow: 0 10px 28px rgba(100,38,61,.075);
  --home-accent: #ef3e79;
  --home-accent-2: #f55287;
  --home-accent-3: #e93673;
  --home-soft: #fff7fa;
}
html[data-site='guanlan'] body[data-page='home'] {
  --home-card: #ffffff;
  --home-border: #dfe6ed;
  --home-shadow: 0 10px 28px rgba(21,57,86,.075);
  --home-accent: #1677d2;
  --home-accent-2: #10aa96;
  --home-accent-3: #8143c7;
  --home-soft: #f6f9fc;
}
html[data-site='shixu'] body[data-page='home'] {
  --home-card: #ffffff;
  --home-border: #dce6e4;
  --home-shadow: 0 10px 28px rgba(20,79,72,.07);
  --home-accent: #147fd1;
  --home-accent-2: #18ad98;
  --home-accent-3: #29a58e;
  --home-soft: #f3faf8;
}

@media (min-width: 901px) {
  html[data-site] body[data-page='home'] .home-live-grid .result {
    height: 250px !important;
    min-height: 250px !important;
    display: grid !important;
    grid-template-columns: minmax(0,1.75fr) minmax(310px,.95fr) !important;
    grid-template-rows: 62px 132px 56px !important;
    gap: 0 20px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-top {
    position: static !important;
    z-index: 1 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-height: 62px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    justify-content: flex-start !important;
    transform: none !important;
    border: 1px solid var(--home-border) !important;
    border-bottom: 0 !important;
    border-radius: 14px 14px 0 0 !important;
    background: var(--home-card) !important;
    box-shadow: var(--home-shadow) !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .balls {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 132px !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    border-right: 1px solid var(--home-border) !important;
    border-left: 1px solid var(--home-border) !important;
    background: var(--home-card) !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .draw-time {
    grid-column: 1 !important;
    grid-row: 3 !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1px solid var(--home-border) !important;
    border-top: 0 !important;
    border-radius: 0 0 14px 14px !important;
    background: var(--home-card) !important;
    box-shadow: var(--home-shadow) !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .draw-time::before { display: none !important; }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom {
    position: relative !important;
    grid-column: 2 !important;
    grid-row: 1 / 4 !important;
    width: auto !important;
    height: 250px !important;
    min-height: 250px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 22px 20px 18px !important;
    overflow: hidden !important;
    border: 1px solid var(--home-border) !important;
    border-radius: 14px !important;
    background: var(--home-card) !important;
    box-shadow: var(--home-shadow) !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom::before {
    content: "下一期开奖" !important;
    position: static !important;
    align-self: flex-start !important;
    margin: 0 !important;
    color: #24384b !important;
    font-size: 15px !important;
    font-weight: 720 !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid [data-labels] {
    order: 3 !important;
    width: 100% !important;
    min-height: 34px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .countdown {
    order: 2 !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .countdown::before { display: none !important; }
  html[data-site] body[data-page='home'] .home-live-grid .countdown b {
    margin: 4px 0 0 !important;
    color: var(--home-accent) !important;
    font-size: clamp(48px,5vw,62px) !important;
    line-height: 1 !important;
    letter-spacing: .05em !important;
  }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .result-top { padding-right: 176px !important; }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .home-result-modes {
    position: relative !important;
    z-index: 4 !important;
    top: auto !important;
    right: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
    margin: 0 12px 0 0 !important;
  }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid:has(.home-inline-scratch:not([hidden])) .result,
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .result:has(.home-inline-scratch:not([hidden])) { height: auto !important; }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .home-inline-scratch {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    width: 100% !important;
    margin-top: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   Unified workspace closure v2
   This block intentionally stays last. Older screenshot overlays above used
   site-specific geometry; the shared dashboard contract must win at runtime.
   -------------------------------------------------------------------------- */

html[data-site='shiqu'] body[data-page='home'] .pink-history .panel-heading::before,
html[data-site='guanlan'] body[data-page='home'] .blue-history .market-heading::before {
  display: none !important;
  content: none !important;
}
html[data-site] body[data-page='home'] .home-history-table :is(.panel-heading,.market-heading,.teal-history-heading) h2[hidden] {
  display: none !important;
}
html[data-site] body[data-page='home'] .home-history-table :is(.panel-heading,.market-heading,.teal-history-heading) .c28-enhanced-heading {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: #1f2d3a !important;
  font-size: 16px !important;
  font-weight: 720 !important;
}

@media (min-width: 901px) {
  html[data-site] body[data-page='home'] .home-live-grid .result {
    position: relative !important;
    height: 250px !important;
    min-height: 250px !important;
    grid-template-columns: minmax(0,1.75fr) minmax(310px,.95fr) !important;
    grid-template-rows: 62px 132px 56px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-top {
    position: static !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-height: 62px !important;
    transform: none !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .balls {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 132px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .draw-time {
    grid-column: 1 !important;
    grid-row: 3 !important;
    min-height: 56px !important;
    padding: 0 18px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom {
    position: relative !important;
    grid-column: 2 !important;
    grid-row: 1 / 4 !important;
    width: auto !important;
    height: 250px !important;
    min-height: 250px !important;
    padding: 22px 20px 18px !important;
    gap: 8px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom::before {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
  }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .home-result-modes {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
    margin: 0 12px 0 0 !important;
  }
}

@media (max-width: 900px) {
  html[data-site] body[data-page='home'] .home-live-grid .result {
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: auto !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-top {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-height: 58px !important;
    transform: none !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .balls {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .draw-time {
    grid-column: 1 !important;
    grid-row: 3 !important;
    min-height: 58px !important;
    padding: 0 14px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 5 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 176px !important;
    margin-top: 12px !important;
    padding: 18px 16px 15px !important;
    gap: 8px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom::before {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
  }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .home-result-modes {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
    margin: 0 9px 0 0 !important;
    order: initial !important;
  }
}

html[data-site] body[data-page='home'] .home-history-table {
  margin-top: 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--home-border) !important;
  border-radius: 14px !important;
  background: var(--home-card) !important;
  box-shadow: var(--home-shadow) !important;
}
html[data-site] body[data-page='home'] .home-history-table :is(.panel-heading,.market-heading,.teal-history-heading) {
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 0 !important;
  background: var(--home-card) !important;
}
html[data-site] body[data-page='home'] .home-history-table :is(.panel-heading,.market-heading,.teal-history-heading) h2 {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #1f2d3a !important;
  font-size: 16px !important;
  font-weight: 720 !important;
}
html[data-site] body[data-page='home'] .home-history-table :is(.panel-heading,.market-heading,.teal-history-heading) h2 svg {
  width: 18px !important;
  height: 18px !important;
  color: var(--home-accent) !important;
}
html[data-site] body[data-page='home'] .home-history-table :is(.panel-heading,.market-heading,.teal-history-heading) > a {
  color: var(--home-accent) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}
html[data-site] body[data-page='home'] .home-history-table .table-cue { display: none !important; }
html[data-site] body[data-page='home'] .home-history-table .table-wrap {
  max-width: 100% !important;
  overflow-x: auto !important;
  border: 0 !important;
  border-top: 1px solid var(--home-border) !important;
  border-radius: 0 !important;
}
html[data-site] body[data-page='home'] .home-history-table .history-table {
  width: 100% !important;
  min-width: 720px !important;
  color: #20262d !important;
  font-size: 11px !important;
}
html[data-site] body[data-page='home'] .home-history-table .history-table th {
  height: 32px !important;
  padding: 6px 12px !important;
  color: #46515b !important;
  background: var(--home-soft) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}
html[data-site] body[data-page='home'] .home-history-table .history-table td {
  height: 34px !important;
  padding: 5px 12px !important;
  border-color: var(--home-border) !important;
  line-height: 1.15 !important;
}
html[data-site] body[data-page='home'] .home-history-table .history-table tbody tr:nth-child(even) { background: var(--home-soft) !important; }
html[data-site] body[data-page='home'] .home-history-table .mini-balls b {
  width: 23px !important;
  height: 23px !important;
  color: #fff !important;
  border-radius: 7px !important;
  background: var(--home-accent) !important;
}
html[data-site] body[data-page='home'] .home-history-table .mini-balls b:nth-child(2) { background: var(--home-accent-2) !important; }
html[data-site] body[data-page='home'] .home-history-table .mini-balls b:nth-child(3) { background: var(--home-accent-3) !important; }
html[data-site] body[data-page='home'] .home-history-table .sum-number { color: var(--home-accent) !important; font-size: 17px !important; }
html[data-site='shixu'] body[data-page='home'] .teal-filter { margin-top: 12px !important; }

html[data-theme='dark'][data-site] body[data-page='home'] {
  --home-card: #18242e;
  --home-border: #31404c;
  --home-soft: #1c2a35;
  --home-shadow: none;
}
html[data-theme='dark'][data-site] body[data-page='home'] .home-history-table :is(.panel-heading,.market-heading,.teal-history-heading) h2,
html[data-theme='dark'][data-site] body[data-page='home'] .home-live-grid .result-bottom::before { color: #edf3f7 !important; }
html[data-theme='dark'][data-site] body[data-page='home'] .home-history-table .history-table { color: #e9f0f5 !important; }
html[data-theme='dark'][data-site] body[data-page='home'] .home-history-table .history-table th { color: #d9e3ea !important; }
html[data-theme='dark'][data-site] body[data-page='home'] .home-history-table .history-table tbody tr:nth-child(odd) { background: var(--home-card) !important; }

@media (max-width: 900px) {
  html[data-site] body[data-page='home'] .home-live-grid .result {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: auto !important;
    gap: 0 !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-top {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    transform: none !important;
    border: 1px solid var(--home-border) !important;
    border-bottom: 0 !important;
    border-radius: 13px 13px 0 0 !important;
    background: var(--home-card) !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .balls {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    padding: 12px 8px !important;
    border-right: 1px solid var(--home-border) !important;
    border-left: 1px solid var(--home-border) !important;
    background: var(--home-card) !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .draw-time {
    grid-column: 1 !important;
    grid-row: 3 !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--home-border) !important;
    border-top: 0 !important;
    border-radius: 0 0 13px 13px !important;
    background: var(--home-card) !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .draw-time::before { display: none !important; }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 5 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 176px !important;
    margin-top: 12px !important;
    padding: 18px 16px 15px !important;
    border: 1px solid var(--home-border) !important;
    border-radius: 13px !important;
    background: var(--home-card) !important;
    box-shadow: var(--home-shadow) !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom::before {
    content: "下一期开奖" !important;
    position: static !important;
    align-self: flex-start !important;
    margin: 0 !important;
    color: #24384b !important;
    font-size: 14px !important;
    font-weight: 720 !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .countdown { min-height: 84px !important; padding: 0 !important; }
  html[data-site] body[data-page='home'] .home-live-grid .countdown::before { display: none !important; }
  html[data-site] body[data-page='home'] .home-live-grid .countdown b { color: var(--home-accent) !important; font-size: 43px !important; }
  html[data-site] body[data-page='home'] .home-live-grid [data-labels] {
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .result-top { padding-right: 126px !important; }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .home-result-modes {
    position: relative !important;
    z-index: 4 !important;
    top: auto !important;
    right: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
    margin: 0 9px 0 0 !important;
  }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .home-result-modes button { padding: 4px 7px !important; font-size: 9px !important; }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .home-inline-scratch {
    grid-column: 1 !important;
    grid-row: 4 !important;
    width: 100% !important;
    margin-top: 10px !important;
  }
  html[data-site] body[data-page='home'] .home-history-table { margin-top: 12px !important; }
  html[data-site] body[data-page='home'] .home-history-table .table-cue {
    display: block !important;
    margin: 0 !important;
    padding: 7px 12px !important;
    color: #74808c !important;
    background: var(--home-soft) !important;
    font-size: 9px !important;
  }
}

/* Production inserts the live ad/header normalization after linked styles.
   Keep the horizontal reference header bounded, while leaving the ad available
   on the site's other pages and responsive layouts. */
@media (min-width: 901px) {
  html[data-site='guanlan'] body[data-page='home'] .site-header .c28-brand-row {
    width: 248px !important;
    min-height: 80px !important;
    flex: 0 0 248px !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .site-header .c28-ads {
    display: none !important;
  }
}

/* The live runtime reserves 420px before archive hydration. The reference
   carousel has a compact 138px card row, so override only this home module. */
html[data-site='shixu'] body[data-page='home'] .teal-recent .archive-ledger[data-timeline] {
  min-height: 146px !important;
  scrollbar-width: none !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-recent .archive-ledger[data-timeline]::-webkit-scrollbar {
  display: none;
}

@media (max-width: 430px) {
  html[data-site] body[data-page='home'] .replica-welcome > span { display: none; }
  html[data-site] body[data-page='home'] .replica-online { max-width: 80px; }
  html[data-site] body[data-page='home'] .balls { min-width: 0 !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls { gap: 8px !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls span,
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls strong { width: 49px !important; height: 50px !important; font-size: 30px !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .balls strong { width: 59px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls { gap: 7px !important; padding-right: 8px !important; padding-left: 8px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls span,
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong { width: 48px !important; height: 48px !important; font-size: 29px !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong { width: 58px !important; font-size: 37px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-overview .balls { gap: 8px !important; padding-right: 8px !important; padding-left: 8px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-overview .balls span,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .balls strong { width: 58px !important; height: 66px !important; font-size: 32px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-overview .balls strong { width: 46px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-filter { padding: 0 8px 5px; }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-site] body[data-page='home'] .balls.changed span,
  html[data-site] body[data-page='home'] .balls.changed strong { animation: replica-number-in .34s cubic-bezier(.2,.85,.35,1); }
  @keyframes replica-number-in { from { transform: translateY(6px) scale(.94); opacity: .55; } to { transform: none; opacity: 1; } }
}

/* Final geometry corrections after the full legacy overlay pipeline. */
html[data-site='shiqu'] body[data-page='home'] .brand img {
  filter: none !important;
}

html[data-site='shiqu'] body[data-page='home'] .pink-page-title h1.sr-only,
html[data-site='guanlan'] body[data-page='home'] .blue-page-title h1.sr-only,
html[data-site='shixu'] body[data-page='home'] .teal-page-title h1.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}

html[data-site='shiqu'] body[data-page='home'] .pink-display-title {
  display: block;
  margin-top: 4px;
  color: #22252c;
  font-size: clamp(29px,3vw,39px);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -.035em;
}
html[data-site='guanlan'] body[data-page='home'] .blue-display-title,
html[data-site='shixu'] body[data-page='home'] .teal-display-title {
  color: var(--teal-navy,#15283a);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.035em;
}

html[data-site='shiqu'] body[data-page='home'] .pink-overview .result { position: relative !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-overview .result-top {
  position: absolute !important;
  z-index: 3;
  top: -31px;
  left: 50%;
  width: max-content;
  min-height: 30px !important;
  transform: translateX(-50%);
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .home-result-modes {
  position: absolute !important;
  z-index: 3;
  top: 7px;
  right: 0;
  width: auto !important;
  margin: 0 !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .home-result-modes button {
  min-height: 34px !important;
  padding: 5px 10px !important;
  font-size: 10px !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-overview .home-module-note {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
}
html[data-site='shiqu'] body[data-page='home'] .pink-history .panel-heading:before {
  content: "开奖记录";
  color: #25272d;
  font-size: 16px;
  font-weight: 720;
}
html[data-site='shiqu'] body[data-page='home'] .pink-history .history-table td,
html[data-site='guanlan'] body[data-page='home'] .blue-history .history-table td { line-height: 1.15 !important; }
html[data-site='shiqu'] body[data-page='home'] .pink-history .history-table td:first-child small,
html[data-site='guanlan'] body[data-page='home'] .blue-history .history-table td:first-child small {
  display: inline !important;
  margin-left: 8px !important;
  font-size: 8px !important;
}

html[data-site='guanlan'] body[data-page='home'] .nav a[aria-current='page'] { background: transparent !important; }
html[data-site='guanlan'] body[data-page='home'] .nav a[aria-current='page'] {
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .result {
  min-height: 0 !important;
  height: 250px !important;
  grid-template-rows: 62px 132px 56px !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-top { min-height: 62px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls { min-height: 132px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .draw-time { min-height: 56px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom {
  min-height: 250px !important;
  height: 250px !important;
  padding: 24px 20px !important;
  gap: 14px !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom:before { margin-top: -175px !important; }
html[data-site='guanlan'] body[data-page='home'] .blue-overview .countdown {
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-site='guanlan'] body[data-page='home'] .blue-history .market-heading:before {
  content: "历史开奖记录";
  color: #1f2933;
  font-size: 16px;
  font-weight: 720;
}

html[data-site='shixu'] body[data-page='home'] .teal-overview .result {
  min-height: 0 !important;
  height: 345px !important;
  grid-template-rows: 76px 134px 135px !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview .draw-time {
  min-height: 135px !important;
  padding-top: 48px !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom {
  min-height: 345px !important;
  height: 345px !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom:before { margin-top: -282px !important; }
html[data-site='shixu'] body[data-page='home'] .teal-overview .countdown {
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-record { position: relative !important; padding-bottom: 34px !important; }
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers strong {
  position: absolute !important;
  right: 34px;
  bottom: 11px;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--teal-blue) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-tags {
  position: absolute !important;
  bottom: 11px;
  left: 31px;
}
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers span {
  color: #fff !important;
  background: var(--teal-blue) !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers span:nth-of-type(2) {
  background: var(--teal-green) !important;
}
html[data-site='shixu'] body[data-page='home'] .teal-recent .ledger-numbers span:nth-of-type(3) {
  background: var(--teal-green) !important;
}

@media (max-width: 900px) {
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result { height: auto !important; grid-template-rows: auto !important; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom { height: auto !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-overview .draw-time { min-height: 78px !important; padding-top: 22px !important; }
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom:before,
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom:before { margin-top: 0 !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .result-top { top: -27px; }
  html[data-site='shiqu'] body[data-page='home'] .pink-overview .home-result-modes {
    position: static !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    order: 4;
    margin-top: 7px !important;
  }
  html[data-site='shiqu'] body[data-page='home'] .pink-page-title > a { display: none !important; }
  html[data-site='shiqu'] body[data-page='home'] .pink-display-title {
    max-width: 100%;
    font-size: 26px;
    overflow-wrap: anywhere;
  }
  html[data-site='guanlan'] body[data-page='home'] .blue-display-title,
  html[data-site='shixu'] body[data-page='home'] .teal-display-title { font-size: 21px; }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom {
    position: relative !important;
    min-height: 170px !important;
    padding: 48px 18px 18px !important;
    gap: 10px !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom:before,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .result-bottom:before {
    position: absolute !important;
    top: 17px;
    left: 18px;
    margin: 0 !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview [data-labels],
  html[data-site='shixu'] body[data-page='home'] .teal-overview [data-labels] {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .tag,
  html[data-site='shixu'] body[data-page='home'] .teal-overview .tag {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    padding: 5px 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 10px !important;
  }
}

html[data-site] body[data-page='home'] .home-history-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 !important;
  padding: 14px 18px 16px !important;
  border-top: 1px solid var(--home-border) !important;
  background: var(--home-card) !important;
}
html[data-site] body[data-page='home'] .home-history-pagination button {
  min-width: 88px;
  min-height: 38px;
  padding: 7px 16px;
  border: 1px solid color-mix(in srgb,var(--home-accent) 30%,var(--home-border));
  border-radius: 10px;
  color: var(--home-accent);
  background: var(--home-soft);
  font-weight: 700;
  cursor: pointer;
}
html[data-site] body[data-page='home'] .home-history-pagination button:hover:not(:disabled) {
  color: #fff;
  background: var(--home-accent);
}
html[data-site] body[data-page='home'] .home-history-pagination button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
html[data-site] body[data-page='home'] .home-history-pagination [data-home-page-label] {
  min-width: 250px;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
@media (max-width: 600px) {
  html[data-site] body[data-page='home'] .home-history-pagination {
    gap: 8px;
    padding: 12px 10px 14px !important;
  }
  html[data-site] body[data-page='home'] .home-history-pagination button {
    min-width: 72px;
    padding: 7px 10px;
  }
  html[data-site] body[data-page='home'] .home-history-pagination [data-home-page-label] {
    min-width: 0;
    flex: 1;
    font-size: 11px;
  }
}

/* Unified workspace final cascade guard v2 — keep this block last. */
html[data-site='shiqu'] body[data-page='home'] .pink-history .panel-heading::before,
html[data-site='guanlan'] body[data-page='home'] .blue-history .market-heading::before {
  display: none !important;
  content: none !important;
}

@media (min-width: 901px) {
  html[data-site] body[data-page='home'] .home-live-grid .result {
    position: relative !important;
    height: 250px !important;
    min-height: 250px !important;
    grid-template-columns: minmax(0,1.75fr) minmax(310px,.95fr) !important;
    grid-template-rows: 62px 132px 56px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-top {
    position: static !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-height: 62px !important;
    transform: none !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .balls {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 132px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .draw-time {
    grid-column: 1 !important;
    grid-row: 3 !important;
    min-height: 56px !important;
    padding: 0 18px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom {
    position: relative !important;
    grid-column: 2 !important;
    grid-row: 1 / 4 !important;
    width: auto !important;
    height: 250px !important;
    min-height: 250px !important;
    padding: 22px 20px 18px !important;
    gap: 8px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom::before {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
  }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .home-result-modes {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
    margin: 0 12px 0 0 !important;
  }
}

@media (max-width: 900px) {
  html[data-site] body[data-page='home'] .home-live-grid .result {
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: auto !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-top {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-height: 58px !important;
    transform: none !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .balls {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .draw-time {
    grid-column: 1 !important;
    grid-row: 3 !important;
    min-height: 58px !important;
    padding: 0 14px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 5 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 176px !important;
    margin-top: 12px !important;
    padding: 18px 16px 15px !important;
    gap: 8px !important;
  }
  html[data-site] body[data-page='home'] .home-live-grid .result-bottom::before {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
  }
  html[data-site='shiqu'] body[data-page='home'] .home-live-grid .home-result-modes {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
    margin: 0 9px 0 0 !important;
    order: initial !important;
  }
}
