:root {
  --blue: #168eea;
  --cyan: #08afe3;
  --ink: #172335;
  --muted: #667386;
  --line: #dce6ee;
  --soft: #f4f9fc;
  --red: #ff3446;
  --green: #16c784;
  --amber: #ffad14;
  --violet: #a743f4;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html.night-mode-preload {
  background: #09121b;
}
html.night-mode-preload body {
  color: #e9f2fb;
  background: #09121b;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 13px;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.quick-grid > *, .tabs > *, .analysis-grid > *, .abc-charts > *, .dragon-grid > *,
.next-trend-grid > *, .missing-grid > *, .stat-type-grid > *, .sum-stats > *,
.association-sections > *, .bias-grid > *, .recovery-grid > * { min-width: 0; }
.quick-grid small, .quick-grid p, .number-core, .notice-strip, .keno-rule,
.dragon-grid p, .prediction-head, .stats-head, .stats-sections, .missing-sections {
  overflow-wrap: anywhere;
}
.ui-icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 18px; vertical-align: middle; }
.shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 58px;
  color: #fff;
  background: #258cea;
  box-shadow: 0 2px 8px rgba(31, 118, 194, .22);
}
.topbar-inner { height: 58px; display: flex; align-items: center; gap: 26px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; white-space: nowrap; }
.logo span {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; font-size: 12px; overflow: hidden;
}
.logo span img { width: 32px; height: 32px; display: block; object-fit: contain; }
.logo strong { font-size: 16px; }
.main-nav { display: flex; align-items: stretch; gap: 2px; height: 100%; }
.main-nav a, .main-nav button {
  display: flex; align-items: center; border: 0; padding: 0 13px;
  color: rgba(255,255,255,.7); background: transparent; font-weight: 700; cursor: pointer;
}
.main-nav .active, .main-nav a:hover, .main-nav button:hover { color: #fff; }
.main-nav .muted-link { color: #ffd15c; }
.user-menu { position: relative; margin-left: auto; }
.user-menu > button {
  height: 38px; min-width: 132px; display: grid; grid-template-columns: 17px minmax(0, 1fr) 14px; align-items: center; gap: 7px;
  padding: 0 10px; border: 1px solid rgba(255,255,255,.38); border-radius: 8px; color: #fff;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); cursor: pointer;
}
.user-menu > button .ui-icon { width: 16px; height: 16px; }
.user-menu > button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; line-height: 38px; }
.user-menu > button .chevron { width: 14px; height: 14px; color: rgba(255,255,255,.78); transition: transform .15s ease; }
.user-menu.open > button .chevron { transform: rotate(180deg); }
.user-dropdown {
  position: absolute; top: 44px; right: 0; z-index: 50; width: 152px; display: none;
  overflow: hidden; border: 1px solid #d9e3eb; border-radius: 10px; color: #111827; background: #fff;
  box-shadow: 0 10px 22px rgba(23, 50, 72, .16);
}
.user-menu.open .user-dropdown { display: block; }
.user-mini { padding: 10px 11px 8px; border-bottom: 1px solid #e6edf2; }
.user-mini strong { font-size: 15px; font-weight: 500; }
.user-mini em { margin-left: 5px; padding: 1px 5px; border-radius: 9px; color: #0aa86f; background: #dff9ed; font-size: 9px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.user-mini span { display: block; margin-top: 5px; color: #475569; font-size: 12px; }
.user-mini span i { margin-left: 5px; padding: 1px 6px; border-radius: 9px; color: #009bd4; background: #e8faff; font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.user-mini span i:first-child { margin-left: 0; }
.menu-checkin-form { padding: 7px 9px; border-bottom: 1px solid #e6edf2; }
.menu-checkin-form button {
  width: 100%; height: 28px; display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; border-radius: 8px; color: #fff; background: #08aee0; font-size: 12px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 10px rgba(8, 174, 224, .18);
}
.menu-checkin-form button .ui-icon { width: 14px; height: 14px; color: #fff; }
.menu-checkin-form button:disabled { color: #789; background: #edf4f8; box-shadow: none; cursor: default; }
.menu-checkin-form button:disabled .ui-icon { color: #8aa0b2; }
.user-dropdown a { min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 11px; font-size: 14px; }
.user-dropdown a:hover { background: #f4f9fc; }
.user-dropdown .ui-icon { width: 16px; height: 16px; color: #111827; }
.user-dropdown .logout-link { color: #ff2f42; }
.user-dropdown .logout-link .ui-icon { color: #ff2f42; }
.account {
  margin-left: auto; padding: 9px 13px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 7px; background: rgba(255,255,255,.12);
}
.page { padding-top: 16px; padding-bottom: 18px; }
.seo-h1 {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; clip-path: inset(50%);
}
.no-draw-chrome .draw-panel,
.no-draw-chrome .feature-banner,
.no-draw-chrome .quick-grid { display: none; }
.algorithm-page .quick-grid { display: none; }
.algorithm-page .feature-banner { margin-bottom: 12px; }
.no-draw-chrome .ad-stack { margin-bottom: 10px; }
.ad-stack { display: grid; gap: 10px; margin-bottom: 14px; }
.ads-hidden [data-ad-banner] { display: none !important; }
.ad {
  min-height: 68px; display: flex; align-items: center; gap: 18px; overflow: hidden;
  padding: 12px 20px; border-radius: 7px; color: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.12);
}
.ad strong { font-size: 24px; }
.ad span { flex: 1; font-weight: 700; }
.ad b { padding: 9px 13px; border: 1px solid currentColor; border-radius: 5px; white-space: nowrap; }
.ad-red { background: #d81420; }
.ad-black { background: #19150f; color: #ffd777; }
.ad-gold { min-height: 46px; background: #8d1c10; color: #fff6b5; }
.draw-panel {
  position: relative; padding: 18px 20px;
  border: 1px solid #bcddeb; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 8px rgba(31, 78, 103, .1);
}
.panel-line {
  position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  background: linear-gradient(90deg, #00b9de 0 60%, #4f7fb5 60%);
}
.draw-title { display: flex; justify-content: space-between; gap: 20px; }
.draw-title strong, .draw-title span { display: block; }
.draw-title strong { font-size: 18px; }
.draw-title span { margin-top: 4px; color: var(--muted); font-size: 16px; }
.draw-title span b { color: var(--ink); }
.draw-actions { position: relative; display: flex; gap: 8px; }
.draw-actions a, .draw-actions button {
  height: 38px; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 13px; border: 1px solid var(--line); border-radius: 7px;
  background: #f9fbfd; box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: pointer;
}
.draw-actions span { margin: 0; color: var(--ink); font-size: 14px; }
.draw-actions button .ui-icon { color: #172335; }
.quick-settings {
  position: absolute; top: 45px; right: 0; z-index: 80; width: 220px; display: none;
  overflow: hidden; border: 1px solid #d5e0e8; border-radius: 8px; background: #fff;
  box-shadow: 0 12px 30px rgba(23, 50, 72, .18);
}
.quick-settings.open { display: block; }
.quick-settings button {
  width: 100%; min-height: 43px; display: flex; justify-content: space-between;
  border: 0; border-bottom: 1px solid #e7edf2; border-radius: 0; background: #fff; box-shadow: none;
}
.quick-settings button:last-child { border-bottom: 0; }
.quick-settings button:hover { background: #f5fbff; }
.quick-settings button b { padding: 4px 7px; border-radius: 5px; color: #1687c8; background: #dff5ff; font-size: 12px; font-weight: 500; }
.quick-settings button span { display: flex; align-items: center; gap: 10px; }
.quick-settings button span .ui-icon { width: 17px; height: 17px; }
.draw-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.countdown {
  --countdown-progress: 0deg;
  --countdown-progress-color: #10bde9;
  position: relative;
  min-width: 174px; height: 64px; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px;
  border: 2px solid #bcecf8; border-radius: 8px; color: var(--cyan); background: #f5fcff;
}
.countdown::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from -90deg, color-mix(in srgb, var(--countdown-progress-color) 100%, transparent) 0deg, color-mix(in srgb, var(--countdown-progress-color) 78%, transparent) calc(var(--countdown-progress) * .45), color-mix(in srgb, var(--countdown-progress-color) 18%, transparent) var(--countdown-progress), transparent var(--countdown-progress) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.countdown > .ui-icon { width: 20px; height: 20px; }
.countdown div { min-width: 0; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.15; }
.countdown div span { display: block; white-space: nowrap; }
.countdown div em { display: inline-block; margin-left: 4px; color: inherit; font-size: 11px; font-style: normal; font-weight: 800; }
.countdown strong { display: block; margin-top: 2px; color: var(--ink); font-size: 18px; }
.countdown.safe { --countdown-progress-color: #16c76f; color: #10b965; border-color: #98efbd; background: #f2fff7; }
.countdown.safe div { color: #13a35a; }
.countdown.safe strong { color: #08a34f; }
.countdown.urgent { --countdown-progress-color: #ff3757; color: #ff2f4f; border-color: #ffc0ca; background: #fff5f6; }
.countdown.urgent div { color: #d92d48; }
.countdown.urgent strong { color: #e6002d; }
.countdown.maintenance { --countdown-progress-color: #ff991f; color: #ff991f; border-color: #ffe1ad; background: #fffaf1; }
.countdown.maintenance div { color: #e87b00; }
.countdown.maintenance strong { color: #ff8500; }
.countdown.maintenance div span { font-size: 10px; letter-spacing: 0; }
.countdown.maintenance div em { margin-left: 3px; font-size: 10px; font-weight: 700; }
.countdown.maintenance strong { font-size: 17px; line-height: 1.05; }
.equation {
  height: 64px; min-height: 64px; display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid #edf1f5; border-radius: 8px; background: #fbfdff;
}
.equation b, .equation strong {
  width: 48px; height: 46px; display: grid; place-items: center;
  border-radius: 8px; background: #edf2f8; font-size: 24px;
}
.equation strong { color: #fff; background: var(--cyan); font-size: 27px; }
.equation i { font-style: normal; font-size: 19px; }
.equation > em { min-width: 34px; height: 34px; padding: 0 8px; font-size: 14px; font-style: normal; }
.equation.masked b, .equation.masked strong { color: transparent; }
.scratch-wrap { position: relative; max-width: 100%; border-radius: 8px; overflow: hidden; touch-action: none; }
.scratch-wrap .equation { margin: 0; }
#scratchCanvas { position: absolute; inset: 0; z-index: 4; display: block; cursor: crosshair; transition: opacity .2s; }
#scratchCanvas.hidden { opacity: 0; pointer-events: none; }
.feature-banner {
  min-height: 86px; display: flex; align-items: center; gap: 22px; margin: 12px 0;
  padding: 14px 22px; border-radius: 7px; color: #fff; background: #6b18d6;
  overflow: hidden;
}
.feature-banner .feature-mark {
  padding: 7px 16px; color: #171717; background: #ffe729;
  font-size: 27px; font-weight: 900; transform: skew(-8deg);
}
.feature-banner strong { font-size: 25px; }
.feature-banner em { margin-left: auto; color: #fff6a4; font-style: normal; font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; margin-bottom: 12px; }
.quick-grid article {
  position: relative; height: 76px; min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid #e4eaef; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 7px rgba(31, 78, 103, .07);
}
.quick-real { display: flex; align-items: center; gap: 12px; width: 100%; }
.quick-real > div { min-width: 0; flex: 1; }
.mipai-summary { display: none; width: 100%; color: #6d7d8c; text-align: center; }
.mipai-summary .ui-icon { width: 15px; height: 15px; margin-right: 4px; }
.mipai-active .quick-real { display: none; }
.mipai-active .mipai-summary { display: block; }
.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; font-size: 19px; }
.quick-icon .ui-icon { width: 20px; height: 20px; }
.quick-icon.violet { color: #9149f4; background: #f1e8ff; }
.quick-icon.cyan { color: #00a9dd; background: #e1f8ff; }
.quick-icon.rose { color: #ff5365; background: #ffe9ec; }
.quick-icon.orange { color: #ff721c; background: #fff0e4; }
.quick-grid small { color: var(--muted); }
.quick-grid p { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin: 5px 0 0; }
.quick-predictions { white-space: nowrap; }
.quick-missing { flex-wrap: nowrap !important; white-space: nowrap; }
.quick-missing .tag { flex: 0 0 auto; padding-left: 4px; padding-right: 4px; font-size: clamp(9px, 2.1vw, 11px); }
.quick-analysis { align-items: stretch !important; }
.mini-stat {
  min-width: 34px; display: grid; justify-items: center; gap: 1px; padding: 3px 5px;
  border-radius: 4px; background: #eef4f8; font-size: 10px;
}
.mini-stat span, .mini-stat em { display: block; font-style: normal; line-height: 1.1; }
.mini-stat em { font-size: 9px; }
.mini-stat.red { color: #ff3347; background: #fff0f2; }
.mini-stat.blue { color: #287df5; background: #edf5ff; }
.mini-stat.violet { color: #9149f4; background: #f3eaff; }
.mini-stat.green { color: #069b6d; background: #e9fbf4; }
.tag { padding: 3px 6px; border-radius: 4px; font-size: 11px; }
.tag.violet { color: #9236ea; background: #f2e8ff; }
.tag.cyan { color: #008fbf; background: #e4f8ff; }
.tag.rose { color: #f03a4c; background: #ffe9ec; }
.tag.orange { color: #f26000; background: #fff0e5; }
.toolbox { border: 1px solid #dbe3ea; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(31, 78, 103, .08); overflow: hidden; overflow-anchor: none; }
.toolbox.is-special-hidden { display: none; }
.tabs { display: grid; grid-template-columns: repeat(8, 1fr); padding: 5px; background: #eaf0f5; }
.tabs button {
  min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 6px; color: #566273;
  background: transparent; cursor: pointer; white-space: nowrap;
}
.tabs button:hover, .tabs button.active {
  color: var(--ink); background: #fff; box-shadow: 0 1px 5px rgba(32, 60, 80, .14);
}
.tab-panel { display: none; padding: 10px; }
.tab-panel.active { display: block; }
.mipai-lock {
  min-height: 680px; display: none; place-items: center; color: #687585; background: #f8fafc;
}
.mipai-lock > div { display: grid; justify-items: center; gap: 8px; text-align: center; }
.mipai-lock strong { color: #172335; font-size: 16px; }
.mipai-lock span { font-size: 13px; }
.lock-eye {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: #edf2f6;
}
.lock-eye::before {
  content: ""; width: 18px; height: 12px; border: 2px solid #657483;
  border-radius: 50% / 65%;
}
.lock-eye::after {
  content: ""; position: absolute; width: 24px; height: 2px; background: #657483; transform: rotate(45deg);
}
.mipai-active .toolbox .tab-panel { display: none; }
.mipai-active .mipai-lock { display: grid; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { height: 45px; padding: 8px 10px; border-bottom: 1px solid #edf2f5; text-align: center; white-space: nowrap; }
th { color: #526075; background: #f3f6f9; }
tbody tr:nth-child(odd) { background: #f4fbfd; }
tbody tr:hover { background: #eaf8fd; }
.badge {
  min-width: 28px; height: 28px; display: inline-grid; place-items: center;
  padding: 0 7px; border-radius: 15px; color: #fff; font-style: normal;
}
.badge.red { background: var(--red); }
.badge.blue { background: #287df5; }
.badge.green { background: var(--green); }
.badge.amber { background: var(--amber); }
.badge.violet { background: var(--violet); }
.badge.orange { background: #ff6b0b; }
.badge.cyan { background: #08afd2; }
.badge.gray { background: #6d7a8d; }
.outline {
  display: inline-block; padding: 4px 9px; border: 1px solid #d6dfe7;
  border-radius: 14px; color: #48566a; background: #fff;
}
.outline.green { color: #0aa56c; border-color: #8ce5bf; background: #e9fff5; }
.outline.amber { color: #db8b00; border-color: #ffd576; background: #fff9e9; }
.outline.violet { color: #9c38e8; border-color: #d7a9f6; background: #fbf2ff; }
.outline.blue { color: #1574dd; border-color: #91c9fb; background: #eef8ff; }
.outline.red { color: #f04151; border-color: #ffafb7; background: #fff3f4; }
.empty { padding: 34px; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 6px; padding: 18px 0 5px; }
.pagination a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; }
.pagination a.active { color: #fff; background: var(--cyan); box-shadow: 0 4px 10px rgba(8,175,227,.28); }
.pagination a.disabled { color: #c4ccd5; pointer-events: none; }
.notice-strip { padding: 11px 13px; border: 1px solid #d8eff7; border-radius: 7px; color: #4a6876; background: #f3fcff; }
.keno-rule { padding: 9px 12px; border: 0; border-radius: 7px; background: #f5f8fb; }
.keno-rule p { margin: 0; color: #34475b; font-size: 11px; line-height: 1.6; }
.keno-legend { display: flex; justify-content: center; gap: 14px; padding: 8px 6px 13px; color: #46586b; font-size: 11px; }
.keno-legend span { white-space: nowrap; }
.keno-legend span::before { content: ""; width: 12px; height: 12px; display: inline-block; margin-right: 4px; border: 1.5px solid currentColor; border-radius: 50%; vertical-align: -2px; }
.keno-legend .group-a { color: #ff6e26; }
.keno-legend .group-b { color: #08a97a; }
.keno-legend .group-c { color: #844cff; }
.keno-row { padding: 12px 12px 11px; border-bottom: 1px solid #e9eef2; }
.keno-row:nth-of-type(odd) { background: #f4fbfd; }
.keno-row header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.keno-row header > div:first-child { min-width: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.keno-row header > div:first-child strong { font-size: 13px; white-space: nowrap; }
.keno-row header span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.keno-result { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.keno-result > b { font-size: 13px; white-space: nowrap; }
.keno-result > i { font-style: normal; }
.keno-result > strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: var(--cyan); font-size: 16px; }
.keno-result .badge { min-width: 26px; height: 26px; padding: 0 5px; font-size: 11px; }
.keno-result button { margin-left: 5px; padding: 0; border: 0; color: #009bd4; background: transparent; font-size: 11px; white-space: nowrap; cursor: pointer; }
.keno-balls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 6px; }
.keno-balls i {
  position: relative;
  width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center;
  border: 2px solid #84d7c3; border-radius: 50%; color: #39736b; font-style: normal; background: #f2fffb;
  font-size: 13px; font-weight: 700;
}
.keno-balls i.group-a { color: #ff5f18; border-color: #ff914f; background: #fff5ed; }
.keno-balls i.group-b { color: #009d70; border-color: #4ed0a8; background: #effff9; }
.keno-balls i.group-c { color: #7540f3; border-color: #a681ff; background: #f6f1ff; }
.keno-balls i.unused { color: #8994a0; border-style: dashed; border-color: #cbd4dc; background: #fafbfc; }
.keno-balls i small { position: absolute; top: -13px; color: currentColor; font-size: 8px; font-weight: 400; }
.keno-balls i.unused small { display: none; }
.keno-calculation { display: none; margin-top: 12px; padding: 10px 12px; border: 1px solid #e2e9ef; border-radius: 8px; background: #fbfcfd; }
.keno-row.expanded .keno-calculation { display: block; }
.calc-line { display: grid; grid-template-columns: 38px 126px minmax(120px, 1fr) 13px 38px 30px 27px; align-items: center; gap: 5px; min-height: 32px; font-size: 11px; }
.calc-line > * { white-space: nowrap; }
.calc-line > span { padding: 5px 7px; border-radius: 5px; font-weight: 700; text-align: center; }
.calc-line small, .calc-line em { color: #687789; font-style: normal; }
.calc-line i { font-style: normal; }
.calc-line mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--calc-dot, #09aee3); font-weight: 800; }
.calc-line mark::first-line { color: #fff; }
.calc-line.group-a { color: #ff5f18; }
.calc-line.group-b { color: #009d70; }
.calc-line.group-c { color: #7540f3; }
.calc-line.group-a { --calc-dot: #ff6a16; }
.calc-line.group-b { --calc-dot: #08b981; }
.calc-line.group-c { --calc-dot: #8350f6; }
.calc-line > span { background: color-mix(in srgb, currentColor 12%, white); }
.calc-line > small, .calc-line > i, .calc-line > em { color: #687789; }
.calc-line > strong { color: #172335; }
.calc-total { margin-top: 5px; padding: 9px; border-radius: 7px; background: #dff5fc; text-align: center; font-size: 13px; white-space: nowrap; }
.calc-total b:nth-of-type(1) { color: #ff5f18; }
.calc-total b:nth-of-type(2) { color: #009d70; }
.calc-total b:nth-of-type(3) { color: #7540f3; }
.calc-total strong { color: #00a5db; font-size: 16px; }
.subtabs { display: flex; justify-content: center; gap: 9px; margin-bottom: 12px; }
.subtabs button {
  min-width: 86px; padding: 8px 12px; border: 0; border-radius: 7px;
  color: var(--muted); background: #eaf0f5; cursor: pointer;
}
.subtabs button:focus { outline: none; }
.subtabs button:focus-visible { box-shadow: 0 0 0 2px rgba(8, 175, 227, .18); }
.subtabs .active { color: #fff; background: var(--cyan); }
.trend-legend {
  display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 10px; padding: 9px 10px;
  border: 1px solid #edf1f4; border-radius: 7px; color: #687586;
}
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.trend-summary { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #73808e; font-size: 12px; }
.trend-summary b { color: #3282cc; }
.trend-legend i { width: 11px; height: 11px; display: inline-block; flex: 0 0 11px; border-radius: 50%; }
.red-dot { background: #f44750; }
.blue-dot { background: #3385ed; }
.forecast-dot { width: 12px !important; height: 12px !important; border: 1.5px dashed #69a7ee; background: #fff; }
.trend-section { margin-top: 10px; }
.trend-section h3, .number-core h3 {
  margin: 0; padding: 9px 0; color: #667386; font-size: 14px; font-weight: 500;
}
.trend-columns {
  min-height: 238px; display: flex; align-items: flex-start; justify-content: flex-start; gap: 2px; overflow: hidden;
  padding: 4px; border: 1px solid #e7edf2; border-radius: 7px; background: #fcfdff;
}
.trend-columns > div {
  width: min(25px, calc((100% - (var(--road-columns, 1) - 1) * 2px) / var(--road-columns, 1)));
  max-width: 25px; min-width: 0; flex: 1 1 0; display: grid; gap: 2px; align-content: start;
}
.trend-columns span {
  width: 100%; min-height: 0; aspect-ratio: 1; display: grid; place-items: center; padding: 1px;
  border-radius: 50%; color: #fff; font-size: 10px; line-height: 1; white-space: nowrap; overflow: hidden;
}
.trend-columns.dense span { font-size: 9px; }
.trend-columns span.multi-value { font-size: clamp(6px, 1.35vw, 8px); letter-spacing: 0; }
.trend-columns.combo-road span { font-weight: 600; }
.trend-columns span.red { background: #f44750; }
.trend-columns span.blue { background: #3385ed; }
.trend-columns span.predicted {
  color: #5f9fe9; border: 1.5px dashed currentColor; background: #fff; opacity: 1;
}
.trend-columns.text span { border-radius: 0; background: transparent; font-weight: 700; }
.trend-columns.text span.red { color: #f44750; }
.trend-columns.text span.blue { color: #3385ed; }
.trend-columns.text span.predicted { border: 1px dashed currentColor; outline: 0; border-radius: 3px; background: #f8fbff; }
.trend-line { min-height: 170px; overflow: hidden; padding: 12px; border: 1px solid #e7edf2; border-radius: 7px; background: #fcfdff; }
.trend-line svg { width: 100%; height: auto; display: block; }
.trend-line polyline { fill: none; stroke: #b7d3f5; stroke-width: 2; }
.trend-line circle.red { fill: #f44750; }
.trend-line circle.blue { fill: #3385ed; }
.trend-line circle.predicted { fill: #fff; stroke: #8eb7f0; stroke-width: 2; stroke-dasharray: 3 2; }
.dragon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.dragon-grid article { padding: 12px; border: 1px solid #e4eaef; border-radius: 7px; background: #fbfdff; }
.dragon-grid article.running { border-color: #92e2c2; background: #f1fff9; }
.dragon-grid header { display: flex; align-items: center; gap: 6px; }
.dragon-grid header .ui-icon { width: 17px; height: 17px; }
.dragon-grid header strong { font-size: 14px; }
.dragon-grid header b { margin-left: auto; font-size: 11px; white-space: nowrap; }
.dragon-grid header em { padding: 3px 7px; border-radius: 10px; color: #657386; background: #e8eef3; font-size: 10px; font-style: normal; }
.dragon-grid article.running header em { color: #078a59; background: #d9f9eb; }
.dragon-grid p { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; margin: 9px 0 0; color: #6e7b8c; }
.dragon-grid p span { padding: 3px 6px; border-radius: 4px; background: #eef3f7; font-size: 11px; }
.dragon-grid article > footer { display: flex; justify-content: space-between; gap: 6px; padding: 10px 0 0; color: #566579; font-size: 11px; }
.dragon-grid article > footer span { color: #08a9dc; font-weight: 800; }
.dragon-grid article > footer b { font-size: 11px; }
.progress { height: 6px; margin-top: 11px; border-radius: 4px; background: #d8f1f7; overflow: hidden; }
.progress i { display: block; height: 100%; background: #7e8a9b; }
.dragon-grid article.running .progress i { background: #14bd7b; }
.number-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 3px 11px; }
.number-toolbar strong { color: #142338; font-size: 15px; line-height: 1.1; }
.number-toolbar label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.number-toolbar input { width: 76px; height: 30px; padding: 5px 8px; border-radius: 5px; font-size: 12px; }
.number-toolbar button { height: 30px; padding: 0 12px; border: 0; border-radius: 5px; color: #fff; background: var(--cyan); box-shadow: 0 4px 10px rgba(7, 171, 220, .2); cursor: pointer; }
.number-picker { padding: 10px 12px 12px; border: 1px solid #e6edf2; border-radius: 7px; background: #fff; }
.number-picker > span { color: #172439; font-size: 13px; font-weight: 700; }
.number-picker > div { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-top: 10px; }
.number-picker button { height: 31px; border: 1px solid #e5ebf0; border-radius: 4px; background: #fff; color: #172439; font-size: 12px; font-weight: 700; cursor: pointer; transition: .15s ease; }
.number-picker button:hover { border-color: #bfeaf5; background: #f3fbff; }
.number-picker button.active { color: #fff; border-color: var(--cyan); background: var(--cyan); box-shadow: 0 5px 12px rgba(7, 171, 220, .2); }
.number-summary { margin: 9px 0; padding: 9px 12px; color: #526778; border: 1px solid #d8eff7; border-radius: 7px; background: #f3fcff; font-size: 12px; line-height: 1.65; }
.number-summary b, .number-summary strong { color: #008fc8; }
.number-core { margin-top: 9px; padding: 0 11px 11px; border: 1px solid #e6edf2; border-radius: 7px; background: #fff; overflow: hidden; }
.number-core > h3 { position: relative; margin: 0 -11px 10px; padding: 10px 12px 9px 24px; border-bottom: 1px solid #edf2f5; color: #142338; font-size: 14px; line-height: 1.2; background: #fbfdff; }
.number-core > h3::before {
  content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 2px; background: var(--cyan);
}
.number-hero-metric { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 7px 0; }
.number-hero-metric > span {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--cyan); font-size: 17px; font-weight: 800;
}
.number-hero-metric div { flex: 1; }
.number-hero-metric div strong, .number-hero-metric div small { display: block; }
.number-hero-metric div strong { color: #142338; font-size: 13px; }
.number-hero-metric div small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.number-hero-metric em { padding: 4px 7px; border-radius: 5px; color: #ef4051; background: #fff0f2; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.analysis-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; }
.analysis-grid article { min-height: 62px; padding: 9px 8px; border: 1px solid #e5ebf0; border-radius: 7px; background: #fbfdff; }
.analysis-grid small, .analysis-grid span { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; }
.analysis-grid strong { display: block; margin: 4px 0; color: #008fc8; font-size: 17px; line-height: 1.1; white-space: nowrap; }
.relation-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.relation-metrics article { padding: 9px 8px; border: 1px solid #e5ebf0; border-radius: 7px; background: #fbfdff; }
.relation-metrics small, .relation-metrics span { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; }
.relation-metrics strong { display: block; margin: 4px 0; color: #2785d8; font-size: 16px; line-height: 1.1; white-space: nowrap; }
.next-trend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.next-trend-grid article { position: relative; min-height: 70px; padding: 10px 9px; border: 1px solid #e6ecf1; border-radius: 7px; background: #fff; overflow: hidden; }
.next-trend-grid article::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.next-trend-grid article.red::after { background: #ff4d5b; }
.next-trend-grid article.blue::after { background: #3487ef; }
.next-trend-grid span, .next-trend-grid small { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; }
.next-trend-grid strong { display: block; margin: 4px 0; font-size: 21px; line-height: 1.05; }
.next-trend-grid .red strong { color: #f34351; }
.next-trend-grid .blue strong { color: #2d7ee7; }
.abc-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.abc-charts > div { padding: 10px; border: 1px solid #edf1f4; border-radius: 7px; background: #fff; }
.abc-charts > div > strong { color: #142338; font-size: 12px; }
.digit-bars { margin-top: 8px; }
.digit-bars div { display: grid; grid-template-columns: 16px minmax(0, 1fr) 38px; align-items: center; gap: 5px; min-height: 20px; }
.digit-bars div span { color: #42556b; font-size: 10px; }
.digit-bars i { height: 8px; border-radius: 3px; background: linear-gradient(90deg, #ffb1b8, #f25a65); }
.abc-charts > div:nth-child(2) .digit-bars i { background: #76aaf2; }
.abc-charts > div:nth-child(3) .digit-bars i { background: #5bc9aa; }
.digit-bars b { min-width: 0; color: #2587ca; font-size: 11px; text-align: right; white-space: nowrap; }
.digit-bars b small { display: block; color: #7c8794; font-size: 9px; font-weight: 400; }
.section-note { margin: -2px 0 9px; color: #7a8795; font-size: 11px; }
.recovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.recovery-grid article { padding: 10px 8px; border: 1px solid #e5ecf1; border-radius: 7px; text-align: center; background: #fbfdff; }
.recovery-grid span, .recovery-grid small { display: block; color: var(--muted); }
.recovery-grid strong { display: block; margin: 4px 0; color: #00a567; font-size: 19px; line-height: 1.1; }
.association-sections { display: grid; gap: 7px; }
.association-sections article { padding: 10px; border: 1px solid #e6ecf1; border-radius: 7px; background: #fff; }
.association-sections article > strong { display: block; margin-bottom: 8px; color: #142338; font-size: 12px; }
.association-sections article > div { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.association-sections article span { padding: 6px 3px; border: 1px solid #edf1f4; border-radius: 6px; text-align: center; background: #fbfdff; }
.association-sections article span b, .association-sections article span small { display: block; }
.association-sections article span b { color: #168cca; font-size: 12px; }
.association-sections article span small { margin-top: 3px; color: #7c8794; font-size: 10px; }
.association-sections em { color: var(--muted); font-style: normal; }
.bias-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bias-grid article { padding: 9px 6px; border: 1px solid #e8edf1; border-radius: 7px; text-align: center; background: #fff; }
.bias-grid b, .bias-grid strong, .bias-grid small { display: block; }
.bias-grid b { color: #ef3748; font-size: 15px; line-height: 1.1; }
.bias-grid strong { margin: 4px 0; font-size: 12px; }
.bias-grid .positive { color: #ef3748; }
.bias-grid .negative { color: #3183e8; }
.bias-grid small { color: var(--muted); font-size: 10px; }
.bar-chart { padding: 12px; border: 1px solid #e6edf2; border-radius: 7px; }
.bar-chart div { display: grid; grid-template-columns: 30px 1fr 35px; align-items: center; gap: 8px; height: 25px; }
.bar-chart i { height: 10px; border-radius: 3px; background: #50b8ef; }
.bar-chart b { color: #1688cc; font-size: 12px; }
.prediction-head, .stats-head {
  display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid #e2eaf0; border-radius: 7px;
}
.prediction-head strong { color: #008fca; }
.prediction-head em { margin-left: auto; color: #f05d68; font-style: normal; font-size: 12px; }
.prediction-head span,
.prediction-head strong,
.prediction-head em {
  font-size: 11px;
  line-height: 1.45;
}
.prediction-table-head {
  display: grid; grid-template-columns: 1fr 80px 1fr 80px 80px; margin-top: 10px;
  padding: 10px 14px; color: #687586; background: #f1f5f8; text-align: center;
}
.prediction-list { margin-top: 10px; }
.prediction-list > div {
  display: grid; grid-template-columns: 1fr 80px 1fr 80px 80px; align-items: center;
  min-height: 48px; padding: 7px 14px; border-bottom: 1px solid #edf2f5; text-align: center;
}
.prediction-list > div:nth-child(odd) { background: #f4fbfd; }
.prediction-list .pending-row { border-left: 3px solid var(--cyan); background: #f1fbff; }
.prediction-list .prediction-pair {
  min-width: 35px; height: 24px; padding: 0 9px; border-radius: 13px; color: #fff; background: #08a9dc;
  font-size: 12px; line-height: 1; white-space: nowrap;
}
.prediction-combo-badges {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.prediction-combo-badges b {
  min-width: 35px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.prediction-combo-badges b.red { background: #ff1f2f; }
.prediction-combo-badges b.blue { background: #2f55ff; }
.prediction-combo-badges i {
  color: #111827;
  font-style: normal;
  font-weight: 800;
}
.prediction-double-groups {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.prediction-double-groups b {
  min-width: 35px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 13px;
  color: #fff;
  background: #08a9dc;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.prediction-double-groups b.red { background: #ff1f2f; }
.prediction-double-groups b.blue { background: #2f55ff; }
.prediction-kill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.prediction-kill img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  image-rendering: auto;
}
.prediction-pair.red { background: #ff1f2f; color: #fff; }
.prediction-pair.blue { background: #2f55ff; color: #fff; }
.prediction-list em { color: #667386; font-style: normal; }
.prediction-hit { font-size: 20px; font-style: normal; }
.prediction-hit .ui-icon { width: 18px; height: 18px; }
.prediction-hit.hit { color: #16be7d; }
.prediction-hit.miss { color: #6b7280; }
.prediction-hit.waiting { color: #7b8795; }
.result-word {
  width: 23px; height: 20px; display: inline-block; justify-self: center;
  color: transparent !important; font-size: 0; line-height: 0; overflow: hidden;
  background-repeat: no-repeat; background-position: center; background-size: 23px 20px;
}
.result-word.hit { background-image: url("icons/result-hit.png"); }
.result-word.miss { background-image: url("icons/result-miss.png"); }
.missing-sections section {
  margin-top: 10px; border: 1px solid #e3e9ee; border-radius: 7px;
  background: #fff; box-shadow: 0 1px 3px rgba(31, 65, 89, .04); overflow: hidden;
}
.missing-sections h3, .stats-sections h3 { position: relative; }
.missing-sections h3 { margin: 0; padding: 10px 13px 10px 25px; border-bottom: 1px solid #e9eef2; background: rgba(244, 247, 250, .7); font-size: 14px; }
.missing-sections h3::before, .stats-sections h3::before {
  content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #24b8e5;
}
.metric-head { display: grid; color: #4f5d70; background: #fafbfc; border-bottom: 1px solid #e7edf2; font-size: 11px; text-align: center; }
.metric-cols-2 .metric-head { grid-template-columns: repeat(4, 1fr); }
.metric-cols-3 .metric-head { grid-template-columns: repeat(6, 1fr); }
.metric-head span { padding: 8px 3px; border-right: 1px solid #edf1f4; white-space: nowrap; }
.metric-grid { display: grid; }
.metric-cols-2 .metric-grid, .metric-cols-2 .stat-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-cols-3 .metric-grid, .metric-cols-3 .stat-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid article {
  min-height: 45px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; text-align: center;
  border-right: 1px solid #edf1f4; border-bottom: 1px solid #edf1f4;
}
.metric-grid article > span { grid-column: 1; justify-self: center; }
.metric-grid article > .metric-value { grid-column: 2; width: max-content; justify-self: center; }
.metric-grid .metric-value small { color: #4d596b; }
.missing-sections b { color: #008fc8; font-size: 13px; font-variant-numeric: tabular-nums; }
.missing-sections b.danger { color: #ef2f41; }
.missing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 0; border-radius: 0; overflow: hidden; }
.missing-grid article { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 43px; padding: 6px 0; border-right: 1px solid #edf1f4; border-bottom: 1px solid #edf1f4; }
.missing-grid article > span:first-child { grid-column: 1; min-width: 36px; justify-self: center; padding: 4px 8px; border-radius: 12px; color: #fff; background: var(--cyan); text-align: center; }
.missing-grid article > .metric-value { grid-column: 2; width: max-content; justify-self: center; display: inline-flex; gap: 3px; padding: 0; border: 0; color: inherit; background: transparent; }
.missing-grid strong { color: #008ec9; }
.missing-grid strong.danger { color: #f02a3c; }
.missing-grid small { color: var(--muted); }
.stats-head > div strong { display: block; color: var(--ink); font-size: 16px; }
.stats-head > div span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.stats-head nav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.stats-head nav a { min-width: 72px; padding: 7px 10px; border-radius: 18px; color: #657386; background: #f0f4f7; text-align: center; font-size: 12px; white-space: nowrap; }
.stats-head nav a.active { color: #fff; background: var(--cyan); }
.stats-head input { width: 138px; padding: 7px; font-size: 12px; }
.stats-head + .notice-strip { font-size: 12px; }
.stats-sections article {
  margin-top: 10px; border: 1px solid #e3e9ee; border-radius: 7px;
  background: #fff; box-shadow: 0 1px 3px rgba(31, 65, 89, .04); overflow: hidden;
}
.stats-sections h3 { margin: 0; padding: 10px 12px 10px 24px; border-bottom: 1px solid #e8eef2; background: rgba(244, 247, 250, .7); font-size: 14px; }
.stat-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-type-grid > span {
  min-width: 0; min-height: 45px; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 6px 0; border-right: 1px solid #edf2f5; border-bottom: 1px solid #edf2f5; white-space: nowrap;
}
.stat-type-grid > span i { grid-column: 1; justify-self: center; }
.metric-value { grid-column: 2; display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; line-height: 16px; }
.metric-value b, .metric-value small { line-height: 16px; }
.stat-type-grid b, .stat-type-grid small { flex: 0 0 auto; white-space: nowrap; }
.stat-type-grid b { color: #008fc8; font-size: 12px; font-variant-numeric: tabular-nums; }
.stat-badge { white-space: nowrap; }
.stat-badge { min-width: 34px; height: 26px; padding: 0 7px; font-size: 11px; }
.stat-badge.wide { min-width: 42px; height: 26px; border-radius: 13px; padding: 0 8px; }
.stat-badge.wide.gray { background: #68778a; }
.stat-type-grid small, .sum-stats small { color: #7b8796; font-size: 10px; }
.sum-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.sum-stats > span {
  min-width: 0; min-height: 43px; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 6px 0; border-right: 1px solid #edf2f5; border-bottom: 1px solid #edf2f5; white-space: nowrap;
}
.sum-stats > span > i { grid-column: 1; justify-self: center; }
.sum-stats .metric-value { width: max-content; justify-self: center; display: inline-flex; grid-template-columns: none; gap: 3px; padding: 0; border: 0; }
.sum-stats i { min-width: 31px; padding: 3px 6px; border-radius: 11px; color: #fff; background: var(--cyan); font-size: 11px; font-style: normal; text-align: center; }
.sum-stats b { color: #008fc7; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hall-panel, .user-panel {
  position: relative; margin-top: 10px; padding: 0; border: 1px solid #dbe3ea; border-radius: 8px;
  background: #fff; box-shadow: 0 2px 7px rgba(31, 78, 103, .08);
}
.hall-toolbar {
  display: grid; grid-template-columns: auto auto auto minmax(190px, 1fr) auto; align-items: center; gap: 10px;
  padding: 14px 16px 12px; border-radius: 8px; background: #fff;
}
.hall-filter { display: contents; }
.hall-filter button, .hall-search, .hall-favorite {
  height: 40px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dce7ee;
  border-radius: 20px; background: #fbfdff; color: #5f6d7d; box-shadow: 0 1px 4px rgba(31,78,103,.04);
}
.hall-filter button { padding: 0 15px; cursor: pointer; }
#typeFilter { grid-column: 1; grid-row: 1; }
#sortFilter { grid-column: 2; grid-row: 1; border-color: #70d5f6; box-shadow: 0 0 0 1px rgba(8,175,227,.18); }
.hall-filter button.active, .hall-favorite.active { color: #008fc8; border-color: #8de1f5; background: #effbff; }
.hall-filter button span { color: inherit; white-space: nowrap; }
.hall-filter button .chevron { width: 14px; height: 14px; color: #9aa5b1; }
.hall-search { grid-column: 4; grid-row: 1; justify-self: stretch; min-width: 0; padding: 0 14px; }
.hall-search .ui-icon { width: 16px; height: 16px; color: #7b8795; }
.hall-search input { height: 32px; padding: 0; border: 0; background: transparent; outline: 0; font-size: 12px; }
.hall-favorite { grid-column: 3; grid-row: 1; justify-content: center; padding: 0 13px; cursor: pointer; }
.hall-favorite .ui-icon { width: 16px; height: 16px; }
.hall-section-nav {
  grid-column: 5; grid-row: 1; display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid #e0e7ed; border-radius: 20px; background: #f7fafc; white-space: nowrap;
}
.hall-section-nav a {
  height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px;
  border-radius: 17px; color: #445367; font-size: 12px;
}
.hall-section-nav a.active { color: #fff; background: #00a9df; box-shadow: 0 3px 8px rgba(0,169,223,.22); }
.hall-section-nav .ui-icon { width: 14px; height: 14px; }
.hall-menu {
  position: absolute; z-index: 20; top: 58px; display: grid; gap: 2px; width: 154px;
  padding: 6px; border: 1px solid #d7e0e7; border-radius: 8px; background: #fff; box-shadow: 0 7px 16px rgba(31,78,103,.2);
}
#typeMenu { left: 16px; }
#sortMenu { left: 172px; width: 186px; }
.hall-menu[hidden] { display: none; }
.hall-menu button {
  height: 38px; padding: 0 10px; border: 0; border-radius: 5px; color: #182234;
  background: transparent; font-size: 14px; text-align: left; cursor: pointer;
}
.hall-menu button:hover, .hall-menu button.selected { color: #009fd4; background: #e4f7fd; }
.algorithm-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 0; padding: 0 16px 12px; }
.algorithm-card {
  position: relative; padding: 12px 12px 8px; border: 1px solid #d8e3eb; border-radius: 14px; background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 2px 8px rgba(31,78,103,.06); overflow: hidden;
}
.algorithm-card:hover, .algorithm-card[data-favorite="1"] { border-color: #13c681; box-shadow: 0 2px 10px rgba(19,198,129,.1); }
.algorithm-card[hidden] { display: none; }
.algorithm-card::before { display: none; }
.algorithm-card header, .algorithm-card footer { display: flex; align-items: center; gap: 8px; color: #73808f; font-size: 11px; }
.algo-id { padding: 3px 7px; border-radius: 5px; color: #142338; background: #eef4f8; font-size: 11px; font-weight: 800; }
.collect-btn, .author-btn, .view-btn {
  height: 27px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 0; border-radius: 14px; background: #eef5fa; color: #536174; cursor: pointer;
}
.collect-btn { margin-left: auto; padding: 0 8px; color: #334155; background: #f3f8fb; font-size: 10px; }
.collect-btn.active { color: #f07a00; background: #fff1dc; }
.collect-btn .ui-icon { width: 13px; height: 13px; }
.algo-title { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.algo-title strong { min-width: 0; padding: 4px 7px; border-radius: 4px; color: #008a60; background: #dff7ec; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.algo-title strong.orange { color: #d45b00; background: #fff0dc; }
.algo-title time { margin-left: auto; color: #9aa5b1; font-size: 11px; white-space: nowrap; }
.algo-rates { display: grid; grid-template-columns: 64px 64px 1fr; grid-template-rows: repeat(2, auto); align-items: center; gap: 4px 8px; margin-top: 13px; }
.algo-rates section { display: grid; justify-items: center; gap: 5px; grid-row: span 2; }
.algo-rates section b {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  color: #00aa78; background: radial-gradient(circle, #fff 0 58%, transparent 59%), conic-gradient(#05bf83 var(--rate-deg, 0deg), #eef3f6 0);
  font-size: 15px; line-height: 1; position: relative;
}
.algo-rates section:first-child b { color: #f5a400; background: radial-gradient(circle, #fff 0 58%, transparent 59%), conic-gradient(#ffae1c var(--rate-deg, 0deg), #eef3f6 0); }
.algo-rates section b { font-weight: 800; }
.algo-rates section b { text-shadow: 0 0 0 currentColor; }
.algo-rates section b { font-variant-numeric: tabular-nums; }
.algo-rates section b { box-shadow: inset 0 0 0 1px #edf2f5; }
.algo-rates section span, .algo-rates div span { display: block; color: #7b8795; font-size: 10px; }
.algo-rates div { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 6px; min-height: 22px; }
.algo-rates div strong { color: #142338; font-size: 12px; text-align: right; }
.algo-streaks { display: grid; gap: 6px; margin-top: 10px; grid-template-columns: repeat(4, 1fr); }
.algo-streaks { grid-template-columns: repeat(4, 1fr); }
.algo-streaks span { padding: 5px 2px; border-radius: 7px; background: transparent; text-align: center; }
.algo-streaks b, .algo-streaks small { display: block; }
.algo-streaks b { color: #00a5d6; font-size: 14px; line-height: 1; }
.algo-streaks span:nth-child(2) b, .algo-streaks span:nth-child(4) b { color: #f13244; }
.algo-streaks small { margin-top: 4px; color: #96a1ad; font-size: 9px; }
.algorithm-card p { display: flex; justify-content: space-around; margin: 8px 0 9px; color: #7a8795; font-size: 10px; }
.algorithm-card p b { color: #00a5d6; }
.algorithm-card p span:last-child b { color: #f13244; }
.algorithm-card footer { margin: 0 -12px -8px; padding: 8px 10px; border-top: 1px solid #eef3f6; background: #fbfdff; }
.author-btn { padding: 0; color: #42546a; background: transparent; }
.author-btn .ui-icon { width: 13px; height: 13px; }
.view-btn { margin-left: auto; padding: 0 8px; color: #66768a; background: #fff; box-shadow: 0 2px 8px rgba(31,78,103,.12); }
.view-btn span, .view-btn i { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.view-btn i { color: #006cff; font-style: normal; }
.view-btn .ui-icon { width: 12px; height: 12px; }
.view-btn b { color: #42546a; font-size: 11px; }
.hall-pages { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 14px 0 3px; }
.hall-pages button, .hall-pages select { height: 32px; border: 1px solid #dce6ee; border-radius: 7px; background: #fff; color: #586678; }
.hall-pages button { padding: 0 11px; }
.hall-pages button.active { border-color: #09aee8; color: #fff; background: #09aee8; box-shadow: 0 4px 10px rgba(9,174,232,.18); }
.hall-pages button:disabled { color: #a2aab5; background: #f3f6f8; }
.hall-pages span { height: 32px; display: inline-flex; align-items: center; padding: 0 8px; color: #6b7786; font-size: 12px; }
.hall-pages select { width: 96px; padding: 0 9px; }
.hall-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 7px 12px 14px;
  color: #9aa5b1;
  font-size: 12px;
}
.hall-stats-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
  white-space: nowrap;
}
.hall-stats-strip .ui-icon { width: 14px; height: 14px; color: #9aa5b1; }
.hall-stats-strip .best { color: #ff9700; font-weight: 700; }
.hall-stats-strip .best .ui-icon { color: #ff9700; }
.user-hero {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 8px;
  color: #fff; background: linear-gradient(120deg, #148fe9, #0bbce0 58%, #16c784);
}
.user-avatar { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: #ff5260; font-weight: 800; }
.user-hero strong, .user-hero span { display: block; }
.user-hero strong { font-size: 20px; }
.user-hero span { margin-top: 3px; color: rgba(255,255,255,.82); }
.user-hero a { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 18px; background: rgba(255,255,255,.18); white-space: nowrap; }
.user-hero a .ui-icon { width: 15px; height: 15px; }
.user-message {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 800;
}
.user-message.success { color: #008f64; border: 1px solid #bcefdc; background: #effdf8; }
.user-message.error { color: #f13244; border: 1px solid #ffd5da; background: #fff2f4; }
.user-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.user-stats article { padding: 12px; border: 1px solid #e2eaf0; border-radius: 8px; background: #fbfdff; }
.user-stats span, .user-stats small { display: block; color: #6d7887; font-size: 11px; }
.user-stats strong { display: block; margin: 5px 0; color: #08a8dc; font-size: 19px; }
.user-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; padding: 7px;
  border: 1px solid #dbe5ec; border-radius: 8px; background: #eaf0f5;
}
.user-tabs a {
  height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 7px; color: #4d5e72; background: #fff; font-weight: 800; box-shadow: 0 1px 4px rgba(31,78,103,.08);
}
.user-tabs .ui-icon { width: 16px; height: 16px; }
.user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.user-card { padding: 14px; border: 1px solid #e2eaf0; border-radius: 8px; background: #fff; }
.user-card h3 { margin: 0 0 8px; color: #142338; font-size: 16px; }
.user-card p, .user-card li { color: #637083; line-height: 1.7; }
.user-card p b { color: #08a8dc; }
.user-card ul { margin: 0; padding-left: 18px; }
.user-inline-form { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 8px; margin-top: 10px; }
.user-inline-form input,
.user-secure-form input {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid #dbe6ee; border-radius: 8px; background: #f8fbfd; outline: 0;
}
.user-inline-form input:focus,
.user-secure-form input:focus { border-color: #56cbed; box-shadow: 0 0 0 3px rgba(0,169,223,.12); }
.user-inline-form button,
.user-secure-form button {
  height: 38px; border: 0; border-radius: 8px; color: #fff; background: var(--cyan); font-weight: 900; cursor: pointer;
}
.order-list,
.notice-list,
.user-algo-list { display: grid; gap: 7px; margin-top: 10px; }
.order-list span,
.notice-list span {
  display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 7px; background: #f4f9fc;
}
.order-list b,
.notice-list b { color: #142338; font-size: 12px; }
.order-list em,
.notice-list em { color: #718096; font-size: 12px; font-style: normal; text-align: right; }
.user-algo-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px;
  padding: 9px 10px; border: 1px solid #eef3f6; border-radius: 8px; background: #fbfdff;
}
.user-algo-list strong { color: #142338; font-size: 13px; }
.user-algo-list span { grid-column: 1; color: #778597; font-size: 11px; }
.user-algo-list em { grid-column: 2; grid-row: 1 / span 2; color: #08a8dc; font-style: normal; font-weight: 900; }
.user-secure-form { display: grid; gap: 8px; }
.user-actions { display: flex; gap: 8px; margin-top: 11px; }
.user-actions button { height: 34px; padding: 0 13px; border: 0; border-radius: 17px; color: #fff; background: var(--cyan); }
.user-actions .light { color: #516073; background: #eef4f8; }
.user-actions .button-link {
  height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 13px;
  border-radius: 17px; color: #fff; background: var(--cyan); font-weight: 900;
}
.user-actions .button-link.light { color: #516073; background: #eef4f8; }
.user-actions .button-link .ui-icon { width: 14px; height: 14px; }
.mini-algo-list { display: grid; gap: 7px; }
.mini-algo-list span { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 7px; background: #f4f9fc; }
.mini-algo-list em { color: #08a8dc; font-style: normal; font-weight: 700; }
.shortcut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shortcut-grid a { padding: 9px 10px; border-radius: 7px; color: #2877d9; background: #edf6ff; text-align: center; }
.user-hero.compact { padding: 14px; }
.user-subnav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.my-algo-toolbar {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px;
  border: 1px solid #dfe8ef; border-radius: 8px; background: #f8fbfd;
}
.my-algo-toolbar a {
  min-width: 72px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: 16px; color: #607287; background: #eef4f8; font-weight: 800;
}
.my-algo-toolbar a.active { color: #fff; background: var(--cyan); }
.my-algo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.my-algo-list article {
  padding: 12px; border: 1px solid #dfe8ef; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 8px rgba(31,78,103,.06);
}
.my-algo-list header,
.my-algo-list footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.my-algo-list header span { padding: 3px 7px; border-radius: 5px; color: #142338; background: #eef4f8; font-size: 11px; font-weight: 900; }
.my-algo-list header em { padding: 3px 7px; border-radius: 11px; color: #7b8795; background: #eef3f6; font-size: 11px; font-style: normal; }
.my-algo-list header em.open { color: #008f64; background: #e6fbf2; }
.my-algo-list h3 { margin: 10px 0 8px; color: #142338; font-size: 16px; }
.my-algo-list p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #657386; }
.my-algo-list p b { padding: 3px 7px; border-radius: 4px; color: #008b60; background: #dff7ec; }
.my-algo-list > article > div { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #edf2f5; border-radius: 8px; overflow: hidden; }
.my-algo-list > article > div span { display: grid; justify-items: center; gap: 3px; padding: 9px 4px; border-right: 1px solid #edf2f5; background: #fbfdff; }
.my-algo-list > article > div span:last-child { border-right: 0; }
.my-algo-list strong { color: #00a86f; font-size: 17px; }
.my-algo-list strong.red { color: #ef233c; }
.my-algo-list strong.cyan { color: #08aade; }
.my-algo-list small { color: #8795a6; font-size: 10px; }
.my-algo-list footer { margin-top: 10px; }
.my-algo-list footer a {
  height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 10px; border-radius: 15px; color: #008fc8; background: #e8f8ff; font-weight: 900;
}
.my-algo-list footer .ui-icon { width: 13px; height: 13px; }
.reward-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.reward-grid article {
  padding: 14px; border: 1px solid #dfe8ef; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 8px rgba(31,78,103,.06);
}
.reward-grid i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #ff7a00; background: #fff1e4; font-style: normal; }
.reward-grid i .ui-icon { width: 18px; height: 18px; }
.reward-grid h3 { margin: 10px 0 6px; color: #142338; font-size: 15px; }
.reward-grid p { min-height: 38px; margin: 0; color: #667386; line-height: 1.6; }
.reward-grid strong { display: block; margin-top: 8px; color: #08aade; font-size: 18px; }
.reward-grid small { display: block; margin-top: 5px; color: #8a96a5; line-height: 1.5; }
.reward-card {
  margin-top: 10px; padding: 14px; border: 1px solid #dfe8ef; border-radius: 8px; background: #fff;
}
.reward-card h3 { margin: 0 0 10px; color: #142338; font-size: 16px; }
.reward-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.reward-steps span { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; background: #f4f9fc; }
.reward-steps b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cyan); }
.reward-steps em { color: #526274; font-style: normal; line-height: 1.45; }
.reward-card p { margin: 10px 0 0; color: #667386; line-height: 1.7; }
.reward-intro {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #d8edf7;
  border-radius: 10px;
  color: #40566f;
  background: #f1fbff;
  line-height: 1.65;
}
.reward-intro p {
  margin: 0;
}
.reward-intro p + p {
  margin-top: 6px;
}
.reward-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.reward-tables article {
  padding: 12px;
  border: 1px solid #dfe8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31,78,103,.06);
}
.reward-tables h4 {
  margin: 0;
  color: #142338;
  font-size: 15px;
}
.reward-tables p {
  margin: 4px 0 9px;
  color: #7a8797;
  font-size: 12px;
}
.reward-tables table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}
.reward-tables th,
.reward-tables td {
  height: 32px;
  padding: 5px 8px;
  border-bottom: 1px solid #edf2f6;
  text-align: center;
  font-size: 12px;
}
.reward-tables th {
  color: #526274;
  background: #f4f8fb;
}
.reward-tables td:first-child {
  color: #142338;
  font-weight: 800;
}
.reward-tables td:last-child,
.reward-card b {
  color: #08aade;
  font-weight: 900;
}
.reward-notes {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #526274;
}
.reward-notes li {
  position: relative;
  padding-left: 13px;
}
.reward-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #08aade;
}
.algorithm-detail {
  margin-top: 10px; padding: 10px; border: 1px solid #dbe3ea; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 7px rgba(31, 78, 103, .08);
}
.detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: #647286; }
.detail-head a { color: #098fca; }
.detail-head span { padding: 4px 8px; border-radius: 12px; background: #eef5fa; font-size: 11px; }
.detail-hero-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px;
  border-radius: 8px; color: #fff; background: linear-gradient(120deg, #147fe5, #08afd9 58%, #17bf87);
}
.detail-hero-card strong, .detail-hero-card p { display: block; margin: 0; }
.detail-hero-card strong { font-size: 22px; }
.detail-hero-card p { margin-top: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: rgba(255,255,255,.82); }
.detail-hero-card button {
  height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border: 1px solid rgba(255,255,255,.28);
  border-radius: 17px; color: #fff; background: rgba(255,255,255,.16); cursor: pointer; white-space: nowrap;
}
.detail-hero-card .detail-author-link {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.detail-hero-card .detail-author-link:hover {
  text-decoration: underline;
}
.detail-hero-card .detail-collect.active {
  color: #fff8df;
  background: rgba(255, 255, 255, .26);
}
.detail-hero-card .ui-icon { width: 15px; height: 15px; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.detail-metrics .metric-rate { grid-column: 1; }
.detail-metrics .metric-current { grid-column: 2; }
.detail-metrics .metric-max { grid-column: 3; }
.detail-metrics .metric-rate:nth-of-type(1),
.detail-metrics .metric-current:nth-of-type(3),
.detail-metrics .metric-max:nth-of-type(5) { grid-row: 1; }
.detail-metrics .metric-rate:nth-of-type(2),
.detail-metrics .metric-current:nth-of-type(4),
.detail-metrics .metric-max:nth-of-type(6) { grid-row: 2; }
.detail-metrics article { min-width: 0; padding: 12px; border: 1px solid #e2eaf0; border-radius: 8px; background: #fbfdff; }
.detail-metrics span, .detail-metrics small { display: block; color: #6d7887; font-size: 11px; }
.detail-metrics strong { display: block; margin: 5px 0; color: #08a8dc; font-size: 22px; line-height: 1; }
.formula-card, .algo-records { margin-top: 10px; padding: 13px; border: 1px solid #e2eaf0; border-radius: 8px; background: #fff; }
.formula-card h3, .algo-records h3 { margin: 0 0 8px; color: #142338; font-size: 16px; }
.formula-card p { margin: 0; color: #5f6e7f; line-height: 1.7; }
.formula-card div { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.formula-card span { padding: 5px 8px; border-radius: 14px; color: #2877d9; background: #edf6ff; font-size: 11px; }
.algo-record-head, .algo-record-row {
  display: grid; grid-template-columns: 1fr 100px 1.2fr 80px 70px; align-items: center; gap: 6px; text-align: center;
}
.algo-record-head { padding: 9px 10px; color: #637083; background: #f2f6f9; font-size: 12px; }
.algo-record-row { min-height: 47px; padding: 7px 10px; border-bottom: 1px solid #edf2f5; }
.algo-record-row:nth-child(odd) { background: #f4fbfd; }
.algo-record-row.pending { border-left: 3px solid var(--cyan); background: #f1fbff; }
.algo-record-row strong { color: #142338; }
.algo-record-row b { color: #263447; white-space: nowrap; }
.algo-record-row em { color: #647286; font-style: normal; }
.algo-record-row i { font-style: normal; }
.algo-record-row i.hit { color: #16b978; font-weight: 700; }
.algo-record-row i.miss { color: #667386; font-weight: 700; }
.algo-record-row i.result-word { margin: 0 auto; }
.algo-record-row .inline-countdown { color: #008fc8; font-weight: 700; }
.algo-record-row .pending-number {
  display: grid;
  justify-items: center;
  gap: 3px;
  line-height: 1.15;
}
.algo-record-row .pending-number span { color: #1f2d3d; }
.algo-record-row .pending-number .inline-countdown {
  font-size: 12px;
  color: #02a7dc;
}
.algo-record-row .pending-refresh,
.algo-record-row .pending-help,
.prediction-list .pending-refresh,
.prediction-list .pending-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0 auto;
}
.algo-record-row button.pending-refresh,
.prediction-list button.pending-refresh {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.algo-record-row .pending-refresh img,
.algo-record-row .pending-help img,
.prediction-list .pending-refresh img,
.prediction-list .pending-help img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.algo-record-row .pending-refresh.spinning img,
.prediction-list .pending-refresh.spinning img { animation: tiny-spin .55s linear; }
@keyframes tiny-spin { to { transform: rotate(360deg); } }
.algo-record-row .prediction-pair { min-width: 35px; height: 24px; padding: 0 9px; border-radius: 13px; color: #fff; background: #08a9dc; font-size: 12px; line-height: 1; white-space: nowrap; }
.algo-record-row .prediction-pair.red { background: #ff1f2f; color: #fff; }
.algo-record-row .prediction-pair.blue { background: #2f55ff; color: #fff; }
.algo-record-row .prediction-combo-badges,
.algo-record-row .prediction-double-groups,
.algo-record-row .prediction-kill {
  justify-self: center;
}
.algo-record-row .prediction-combo-badges b,
.algo-record-row .prediction-double-groups b {
  color: #fff;
  font-weight: 500;
}
.algo-record-row .prediction-combo-badges i {
  color: #111827;
}
.algorithm-create {
  position: relative; display: grid; gap: 12px; margin-top: 10px; padding-bottom: 86px;
}
.create-toast {
  position: fixed; left: 50%; top: 18px; z-index: 95; width: min(500px, calc(100% - 34px));
  min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border: 1px solid #ffe0a1; border-radius: 8px; color: #e97900; background: #fff9eb;
  box-shadow: 0 12px 32px rgba(31,78,103,.18); transform: translateX(-50%);
  font-size: 15px; font-weight: 800;
}
.create-toast.success { color: #009653; border-color: #bdf1d4; background: #edfff5; }
.create-toast button {
  position: absolute; left: -12px; top: -10px; width: 24px; height: 24px; border: 1px solid currentColor;
  border-radius: 50%; color: inherit; background: #fff; font-size: 18px; line-height: 20px; cursor: pointer;
}
.create-toast::before {
  content: "!"; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; background: currentColor; font-size: 14px;
}
.create-toast.success::before { content: "✓"; }
.create-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.create-back {
  display: inline-flex; align-items: center; gap: 12px; color: #122238; font-size: 22px; font-weight: 900;
}
.create-back .ui-icon { width: 22px; height: 22px; color: #24364e; }
.create-nav { margin-left: auto; }
.help-btn {
  width: fit-content; height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px;
  border: 1px solid #8ee3fb; border-radius: 8px; color: #009fda; background: #dff7ff; font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 7px rgba(0,169,223,.12); cursor: pointer;
}
.help-btn .ui-icon { width: 16px; height: 16px; }
.create-card,
.steps-card {
  padding: 16px; border: 1px solid #d9e4ec; border-radius: 16px; background: rgba(255,255,255,.82);
  box-shadow: 0 2px 9px rgba(31,78,103,.08);
}
.create-main-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; }
.algo-name-input,
.algo-type-select,
.remark-label textarea {
  width: 100%; border: 1px solid #dce7ee; border-radius: 12px; color: #142338; background: #f7fbfe; outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.algo-name-input,
.algo-type-select { height: 48px; padding: 0 16px; font-size: 15px; }
.algo-name-input::placeholder, .remark-label textarea::placeholder { color: #93a2b2; }
.algo-type-select { color: #5e6f82; border-color: #dfcf4f; }
.create-flags { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: #5c6b7d; font-weight: 700; }
.create-flags label { display: inline-flex; align-items: center; gap: 6px; }
.create-flags input {
  width: 20px; height: 20px; margin: 0; accent-color: var(--cyan);
}
.create-flag-help { display: grid; gap: 5px; margin-top: 8px; color: #7a8898; font-size: 12px; line-height: 1.45; }
.create-limit { margin-top: 8px; color: #8795a6; font-size: 12px; }
.create-limit b { color: #607287; }
.remark-label { display: grid; gap: 8px; margin-top: 10px; }
.remark-label span { display: flex; justify-content: space-between; gap: 10px; color: #5d6c7e; font-weight: 800; }
.remark-label em { color: #95a3b3; font-style: normal; font-weight: 600; }
.remark-label textarea { min-height: 96px; resize: vertical; padding: 14px 16px; line-height: 1.6; font-size: 14px; }
.steps-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.steps-head strong { color: #33475f; font-size: 16px; }
.steps-head div { display: flex; align-items: center; gap: 8px; }
.steps-head button {
  height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 12px;
  border: 0; border-radius: 17px; color: #607287; background: #f2f6f9; cursor: pointer;
}
.steps-head button .ui-icon { width: 14px; height: 14px; }
.steps-head .ghost.disabled { color: #b3bdc8; opacity: .7; }
.steps-head .add-step { color: #00a8df; background: #e5f8ff; font-weight: 800; }
.step-list { display: grid; gap: 10px; }
.step-item {
  padding: 14px; border: 1px solid #8fe5fb; border-radius: 14px; background: #effbff;
}
.step-item h4 { margin: 0 0 12px; color: #009bd2; font-size: 15px; }
.step-item small { color: #8190a2; font-size: 12px; }
.step-placeholder {
  width: 100%; min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  border: 1px dashed #dbe7ef; border-radius: 10px; color: #9ba8b7; background: #f5fbfe;
  padding: 7px 10px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left;
}
.step-placeholder.editing { border-color: #38cdf5; box-shadow: inset 0 0 0 1px rgba(8,175,227,.16); }
.step-placeholder.has-error {
  border-color: #ff8f9b;
  background: #fff7f8;
  box-shadow: inset 0 0 0 1px rgba(255,72,91,.12);
}
.step-item.has-error {
  border-color: #55d8f7;
  background: #effbff;
}
.formula-chip {
  min-width: 31px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border-radius: 7px; font-size: 13px; font-weight: 900; line-height: 1;
}
.formula-chip.var { color: #00986f; border: 1px solid #a9efda; background: #eafff6; }
.formula-chip.op {
  min-width: 27px;
  padding: 0 7px;
  color: #20324a;
  border: 1px solid #d9e5ee;
  background: #f5f9fc;
  box-shadow: 0 1px 2px rgba(22,43,65,.04);
}
.formula-remove { margin-left: 1px; color: #607287; font-size: 18px; line-height: 1; }
.step-explain { min-height: 17px; margin-top: 7px; color: #77869a; font-size: 12px; }
.step-result {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  margin-top: 7px; padding-top: 7px; border-top: 1px solid #dff1f7; color: #405168; font-size: 13px;
}
.step-result span {
  min-width: 36px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; color: #008fc8; background: #e2f8ff; font-weight: 900;
}
.step-result b { min-width: 0; color: #13233a; overflow-wrap: anywhere; }
.step-result i { color: #77869a; font-style: normal; }
.step-result strong { color: #08aade; font-size: 16px; }
.step-result small { grid-column: 1 / -1; color: #009fd4; font-size: 12px; }
.step-result small.formula-error { color: #ff3347; font-weight: 800; }
.create-actions { display: grid; gap: 10px; }
.scheme-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.scheme-tabs[hidden] { display: none; }
.scheme-tabs button {
  height: 48px;
  border: 0;
  border-radius: 4px;
  color: #172335;
  background: #eaf2f8;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.scheme-tabs button.active {
  color: #fff;
  background: #08aade;
  box-shadow: 0 4px 10px rgba(8,170,222,.16);
}
.create-actions button,
.button-link {
  height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 8px; font-size: 17px; font-weight: 800; cursor: pointer;
}
.create-actions .ui-icon { width: 20px; height: 20px; }
.save-create { color: #fff; background: #08aade; box-shadow: 0 5px 12px rgba(0,169,223,.18); }
.test-create { color: #405168; background: #eef7fc; border: 1px solid #d9e7ef !important; }
.create-test-results {
  padding: 12px; border: 1px solid #d9e4ec; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 9px rgba(31,78,103,.08);
}
.create-test-results h3 { margin: 0 0 10px; color: #142338; font-size: 15px; }
.create-test-results h3 span { color: #65758a; font-weight: 500; }
.test-next {
  min-height: 46px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 9px 12px;
  border: 1px solid #9fe6fa; border-radius: 8px; color: #41536a; background: #effbff;
}
.test-next .ui-icon { width: 16px; height: 16px; color: #08aade; }
.test-next strong { color: #009fd4; }
.test-next em { color: #65758a; font-style: normal; }
.test-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.test-summary article {
  min-height: 112px; display: grid; place-items: center; padding: 12px; border-radius: 8px; background: #f7f9fb; text-align: center;
}
.test-summary article:first-child strong { color: #00a56f; font-size: 34px; line-height: 1; }
.test-summary article:first-child span { color: #536378; }
.test-summary article:last-child {
  grid-template-columns: repeat(2, 1fr); gap: 3px 8px;
}
.test-summary b { color: #00a56f; font-size: 18px; }
.test-summary b.muted { color: #b9c0c9; }
.test-summary b.red { color: #ef233c; }
.test-summary article:last-child span { color: #7c8898; font-size: 11px; }
.test-table > div:first-child,
.test-table section p {
  display: grid; grid-template-columns: 82px minmax(92px, 1fr) minmax(92px, 1fr) 44px; align-items: center; gap: 6px;
}
.test-table > div:first-child {
  padding: 9px 10px; color: #637083; background: #f2f6f9; font-weight: 800;
}
.test-table > div:first-child span { text-align: center; }
.test-table section { border-bottom: 1px solid #edf2f5; }
.test-table section p { min-height: 44px; margin: 0; padding: 8px 10px; }
.test-table section p > b {
  color: #526274;
  font-weight: 500;
  text-align: center;
}
.test-table section strong { color: #061426; text-align: center; }
.test-table section strong.test-value {
  display: grid;
  grid-template-columns: 24px auto;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}
.test-table section strong.test-value b {
  color: #061426;
  font-weight: 900;
  text-align: right;
}
.test-table section strong.test-value i {
  color: #607087;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  text-align: left;
}
.test-table section em {
  display: inline-flex; align-items: center; justify-content: center; justify-self: center; width: 24px; min-width: 24px;
  font-style: normal; font-weight: 900;
}
.test-table section em.hit { color: #fff; }
.test-table section em.miss { color: #fff; }
.test-table section small {
  display: flex; align-items: center; gap: 8px; margin: 0 10px 8px; padding: 7px 10px;
  border-radius: 6px; color: #15243a; background: #f7f9fb; font-weight: 800;
}
.test-table section u {
  display: block;
  margin: 3px 10px 5px;
  color: #8795a6;
  font-size: 12px;
  text-decoration: none;
}
.test-table section small.scheme-b i {
  color: #8c58df;
  background: #f0e9ff;
}
.test-table section small i {
  min-width: 40px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; color: #009fd4; background: #e2f8ff; font-style: normal; font-weight: 700;
}
.create-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); gap: 12px; align-items: start; }
.create-work-main { display: grid; gap: 10px; min-width: 0; }
.formula-tools {
  position: sticky; top: 68px; z-index: 20; border: 1px solid #dce7ef; border-radius: 14px;
  background: rgba(255,255,255,.96); box-shadow: 0 4px 18px rgba(31,78,103,.1); overflow: hidden;
}
.formula-tools::before {
  content: "运算符 & 开奖数据";
  display: block;
  padding: 10px 12px 8px;
  color: #5f7084;
  background: #f7fbfd;
  border-bottom: 1px solid #e7eef4;
  font-size: 12px;
  font-weight: 800;
}
.formula-tool-tabs { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #e7eef4; background: #f7fbfd; }
.formula-tool-tabs button {
  height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; color: #758397; background: transparent; font-size: 13px; font-weight: 800; cursor: pointer;
}
.formula-tool-tabs button.active { color: #009fd4; background: #fff; box-shadow: inset 0 -2px 0 #09aee2; }
.formula-tools .ui-icon { width: 15px; height: 15px; }
.formula-tool-panel { padding: 12px; }
.formula-tool-panel[hidden] { display: none; }
.operator-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.operator-grid button,
.function-grid button,
.draw-data-list button {
  min-height: 32px; border: 0; border-radius: 8px; background: #eef4f8; color: #27374c; font-size: 13px; font-weight: 800; cursor: pointer;
}
.operator-grid button { font-family: Consolas, monospace; font-size: 16px; }
.function-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.function-grid button { padding: 0 10px; background: #f1f7fb; color: #41536a; font-size: 12px; }
.draw-data-head,
.draw-data-list > div { display: grid; grid-template-columns: 1.25fr repeat(4, .75fr); gap: 6px; align-items: center; text-align: center; }
.draw-data-head { margin-bottom: 8px; color: #77869a; font-size: 11px; font-weight: 800; }
.draw-data-list { display: grid; gap: 7px; }
.draw-data-list > div { padding: 6px; border-radius: 10px; background: #f7fbfd; }
.draw-data-list strong { color: #15243a; font-size: 12px; white-space: nowrap; }
.draw-data-list button { width: 30px; height: 30px; min-height: 30px; margin: 0 auto; border-radius: 50%; color: #1d72d2; background: #eaf4ff; }
.draw-data-list .sum-token { color: #fff; background: #08aade; }
.expand-data,
.collapse-tools {
  width: 100%; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; color: #008fc8; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer;
}
.collapse-tools {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  color: #526274;
  border-top: 1px solid #e7eef4;
  background: #f4f8fb;
  font-size: 13px;
  font-weight: 800;
}
.formula-tools.collapsed .formula-tool-tabs,
.formula-tools.collapsed .formula-tool-panel { display: none; }
.formula-tools.collapsed::before { display: none; }
.formula-tools.collapsed .collapse-tools .ui-icon { transform: rotate(180deg); }
.step-placeholder.has-formula { color: #15243a; border-style: solid; border-color: #9ce8fb; background: #fff; }

@media (min-width: 901px) {
  .algorithm-create-page .shell.page {
    width: min(1180px, calc(100% - 28px));
    padding-top: 18px;
  }
  .algorithm-create-page .ad-stack { display: none; }
  .algorithm-create {
    gap: 16px;
    margin-top: 0;
    padding-bottom: 34px;
  }
  .create-head {
    min-height: 54px;
    margin-bottom: 2px;
  }
  .create-back {
    gap: 12px;
    font-size: 24px;
  }
  .create-back em {
    color: #061426;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
  }
  .create-back span {
    margin-left: 10px;
    font-size: 24px;
    font-weight: 900;
  }
  .create-nav {
    height: 50px;
    padding: 4px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(31,78,103,.08);
  }
  .create-nav a {
    min-width: 112px;
    height: 42px;
    border-radius: 22px;
    font-size: 14px;
  }
  .create-head .help-btn {
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 15px;
  }
  .create-card,
  .steps-card,
  .formula-tools {
    border-color: #d8e4ec;
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 10px rgba(31,78,103,.11);
  }
  .create-card {
    padding: 12px 16px 14px;
  }
  .create-main-row {
    grid-template-columns: minmax(0, 1fr) 185px;
    gap: 14px;
  }
  .algo-name-input,
  .algo-type-select {
    height: 54px;
    border-radius: 12px;
    font-size: 16px;
  }
  .algo-type-select {
    border-color: #ffba00;
    background-color: #f9fcfe;
  }
  .remark-label {
    margin-top: 10px;
    gap: 7px;
  }
  .remark-label span {
    color: #34475f;
    font-size: 13px;
  }
  .remark-label textarea {
    min-height: 108px;
    border-radius: 12px;
    font-size: 16px;
  }
  .create-flags {
    gap: 24px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf2f5;
  }
  .create-flags label {
    color: #172335;
    font-size: 15px;
    font-weight: 500;
  }
  .create-flags b {
    font-size: 17px;
  }
  .create-flags span {
    color: #8795a6;
    font-size: 12px;
    font-weight: 500;
  }
  .create-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
  .steps-card {
    min-height: 220px;
    padding: 16px;
  }
  .steps-head {
    margin-bottom: 13px;
  }
  .steps-head strong {
    font-size: 16px;
  }
  .steps-head button {
    height: 44px;
    min-width: 86px;
    border-radius: 12px;
    font-size: 15px;
  }
  .steps-head .add-step {
    min-width: 116px;
  }
  .step-item {
    padding: 16px;
    border-radius: 14px;
  }
  .step-placeholder {
    min-height: 44px;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
  }
  .formula-tools {
    position: static;
    min-height: 176px;
  }
  .formula-tool-tabs {
    display: none;
  }
  .formula-tool-panel {
    padding: 16px;
  }
  .formula-tool-panel[data-tool-panel="ops"] {
    border-bottom: 1px solid #e7eef4;
  }
  .formula-tool-panel[data-tool-panel="ops"]::before,
  .formula-tool-panel[data-tool-panel="data"]::before {
    display: block;
    margin-bottom: 10px;
    color: #8795a6;
    font-size: 13px;
  }
  .formula-tool-panel[data-tool-panel="ops"]::before { content: "运算符"; }
  .formula-tool-panel[data-tool-panel="data"]::before { content: "开奖数据（点击插入变量）"; }
  .operator-grid {
    grid-template-columns: repeat(7, 52px);
    justify-content: start;
    gap: 8px;
  }
  .operator-grid button {
    width: 52px;
    height: 46px;
    border-radius: 8px;
    font-size: 20px;
  }
  .function-grid {
    gap: 8px;
    margin-top: 13px;
  }
  .function-grid button {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
  }
  .draw-data-head,
  .draw-data-list > div {
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 10px;
  }
  .draw-data-head {
    padding: 0 8px;
    font-size: 14px;
  }
  .draw-data-list > div {
    min-height: 45px;
    padding: 6px 8px;
    border-radius: 0;
    background: #fff;
    border-bottom: 1px solid #eef3f7;
  }
  .draw-data-list strong {
    font-size: 13px;
  }
  .draw-data-list button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(22,43,65,.08);
  }
  .expand-data {
    height: 36px;
    margin-top: 5px;
    font-size: 13px;
  }
  .collapse-tools {
    display: none;
  }
  .create-actions {
    display: flex;
    gap: 12px;
    margin-top: 2px;
  }
  .create-actions button {
    width: auto;
    min-width: 92px;
    height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 18px;
  }
  .create-test-results {
    margin-top: 0;
  }
}

.help-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: 5vh 14px; background: rgba(8,18,30,.45); }
.help-modal.open { display: flex; }
.help-dialog {
  position: relative; width: min(760px, 100%); max-height: 86vh; overflow: auto; padding: 18px; border-radius: 14px;
  background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.help-close {
  position: sticky; top: 0; z-index: 3; float: right; margin: -6px -6px 2px 8px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: #f1f5f8; color: #5f7084; font-size: 20px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(31,78,103,.08);
}
.help-dialog h3 { margin: 0 0 12px; color: #142338; font-size: 20px; }
.help-dialog section { padding: 11px 0; border-top: 1px solid #edf2f5; }
.help-dialog h4 { margin: 0 0 8px; color: #0e9ed0; font-size: 15px; }
.help-dialog p, .help-dialog li { color: #526274; line-height: 1.7; }
.help-dialog ul,
.help-dialog ol { margin: 0; padding-left: 18px; }
.help-dialog code {
  display: block; margin: 8px 0; padding: 9px 11px; border: 1px solid #e4edf3; border-radius: 8px;
  color: #009fd4; background: #f5fbfe; font-family: Consolas, "Courier New", monospace; font-size: 13px; font-weight: 800; line-height: 1.65;
}
.help-example { margin-top: 9px; padding: 10px 12px; border: 1px solid #e8f0f5; border-radius: 10px; background: #fbfdfe; }
.help-example strong { color: #142338; font-size: 13px; }
.help-example p { margin: 0; font-size: 12px; }
.help-steps li { padding: 2px 0; }
.help-table { display: grid; grid-template-columns: .8fr 1.7fr .7fr; border: 1px solid #e4edf3; border-radius: 8px; overflow: hidden; font-size: 12px; }
.help-table > * { margin: 0; padding: 8px; border-right: 1px solid #e4edf3; border-bottom: 1px solid #e4edf3; font-style: normal; }
.help-table span { color: #5f7084; background: #f4f8fb; font-weight: 800; }
.help-table b { color: #009fd4; }
.auth-page {
  min-height: calc(100vh - 106px); display: grid; place-items: start center; padding: 34px 0 72px;
}
.auth-card {
  position: relative; width: min(420px, 100%); overflow: hidden; padding: 22px 22px 20px;
  border: 1px solid #cfe1ed; border-radius: 16px; background: rgba(255,255,255,.96);
  box-shadow: 0 12px 32px rgba(35,78,108,.13);
}
.auth-card-line { position: absolute; inset: 0 22px auto; height: 3px; border-radius: 0 0 999px 999px; background: linear-gradient(90deg, #04b7df 0 62%, #5d82bd 62%); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.auth-brand > span {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #ff5260;
  border: 3px solid #fff; box-shadow: 0 5px 14px rgba(255,82,96,.25); font-weight: 900;
}
.auth-brand strong { display: block; color: #142338; font-size: 22px; line-height: 1.15; }
.auth-brand p { margin: 4px 0 0; color: #667588; line-height: 1.45; font-size: 13px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; padding: 5px; border-radius: 13px;
  border: 1px solid #e3edf4; background: #f4f9fc;
}
.auth-tabs a {
  height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  color: #617084; font-size: 14px; font-weight: 900;
}
.auth-tabs a.active { color: #fff; background: #08aade; box-shadow: 0 5px 12px rgba(0,169,223,.24); }
.auth-alert {
  margin-bottom: 14px; padding: 10px 12px; border: 1px solid #ffd2d7; border-radius: 8px; color: #e0182d; background: #fff1f3;
}
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 7px; color: #405168; font-size: 13px; font-weight: 900; }
.auth-input {
  height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px;
  border: 1px solid #dbe6ee; border-radius: 12px; background: #f8fbfd;
}
.auth-input .ui-icon { width: 17px; height: 17px; color: #7b8da2; flex: 0 0 auto; }
.auth-form input {
  width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; outline: 0;
  color: #142338; font-size: 14px;
}
.auth-input:focus-within { border-color: #56cbed; box-shadow: 0 0 0 3px rgba(0,169,223,.12); }
.captcha-field div { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 10px; }
.captcha-image {
  height: 44px; display: block; overflow: hidden; border: 1px solid #bdebf8; border-radius: 12px; background: #ecfbff;
}
.captcha-image img { width: 100%; height: 100%; display: block; }
.auth-form button {
  height: 45px; margin-top: 3px; border: 0; border-radius: 12px; color: #fff; background: #08aade;
  font-size: 16px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 14px rgba(0,169,223,.2);
}
.auth-switch { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #667588; font-size: 13px; }
.auth-switch a { color: #009fda; font-weight: 900; }
.auth-links { display: flex; justify-content: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf2f5; }
.auth-links a {
  height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 15px;
  color: #647286; background: #f6f9fb; font-size: 12px; font-weight: 800;
}
.auth-links .ui-icon { width: 14px; height: 14px; }
.auth-page {
  position: relative;
  min-height: calc(100vh - 118px);
  place-items: start center;
  padding: 44px 0 78px;
}
.auth-page::before {
  content: "";
  position: fixed;
  inset: 58px 0 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(8,170,222,.12), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(35,137,232,.10), transparent 30%),
    linear-gradient(180deg, #f4fbff 0%, #fff 46%, #f8fbfd 100%);
}
.auth-card {
  width: min(438px, calc(100% - 24px));
  padding: 0;
  border: 1px solid rgba(207,225,237,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 42px rgba(27,76,112,.14);
}
.auth-card-line {
  inset: 0 26px auto;
  height: 4px;
  background: linear-gradient(90deg, #06b8df 0 58%, #5d82bd 58%);
}
.auth-brand {
  margin: 0;
  padding: 24px 24px 16px;
}
.auth-brand > span {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff4d61, #ff6f7f);
}
.auth-brand strong {
  color: #101d30;
  font-size: 24px;
  letter-spacing: 0;
}
.auth-brand p {
  max-width: 290px;
  color: #6e7d8f;
  font-size: 12px;
}
.auth-tabs {
  margin: 0 24px 16px;
  padding: 4px;
  border-radius: 12px;
  background: #eef6fb;
}
.auth-tabs a {
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
}
.auth-form {
  gap: 11px;
  padding: 0 24px;
}
.auth-form label {
  gap: 6px;
  color: #31445b;
  font-size: 12px;
}
.auth-input {
  height: 42px;
  border-radius: 10px;
  background: #f6faff;
}
.auth-form input {
  font-size: 13px;
}
.auth-alert {
  margin: 0 24px 13px;
}
.captcha-field div {
  grid-template-columns: 120px minmax(0, 1fr);
}
.captcha-image {
  height: 42px;
  border-radius: 10px;
}
.auth-agree {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 7px !important;
  margin-top: 1px;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.auth-agree input {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px;
  accent-color: #2389e8;
}
.auth-agree span {
  line-height: 1.3;
}
.auth-agree a {
  color: #009fd4;
  font-weight: 900;
}
.auth-form button {
  height: 42px;
  margin-top: 2px;
  border-radius: 10px;
  font-size: 15px;
  background: linear-gradient(135deg, #08aade, #1689e9);
  box-shadow: 0 8px 16px rgba(8,170,222,.22);
}
.auth-switch {
  margin-top: 13px;
  color: #728197;
  font-size: 12px;
}
.auth-links {
  margin: 15px 24px 0;
  padding: 14px 0 20px;
}
.auth-links a {
  height: 28px;
  border-radius: 14px;
  font-size: 11px;
}
footer { display: flex; justify-content: center; gap: 22px; padding: 22px 0 0; color: #8792a1; font-size: 12px; }
.bottom-actions {
  width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 18px; padding: 6px 10px; border-top: 1px solid #e5edf3; border-bottom: 1px solid #e5edf3;
  border-radius: 0; background: #fafcfd;
}
.bottom-actions button,
.bottom-actions a {
  min-width: 0; height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 8px; border: 0; border-radius: 12px; color: #7c8795; background: #f8fbfd; font-size: 11px; white-space: nowrap; cursor: pointer;
}
.bottom-actions button + button,
.bottom-actions button + a,
.bottom-actions a + button,
.bottom-actions a + a { position: relative; }
.bottom-actions button + button::before,
.bottom-actions button + a::before,
.bottom-actions a + button::before,
.bottom-actions a + a::before {
  content: ""; position: absolute; left: -7px; top: 5px; bottom: 5px; width: 1px; background: #e7eef4;
}
.bottom-actions .ui-icon { width: 13px; height: 13px; flex-basis: 13px; }
.bottom-actions button:hover,
.bottom-actions a:hover { color: var(--cyan); background: #f1fbff; }
.legal-standalone {
  background: #f4f8fc;
}
.legal-standalone .page {
  padding-top: 0;
  padding-bottom: 0;
}
.legal-page {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 10px 18px 20px;
  color: #21344a;
  font-size: 14px;
}
.legal-standalone .legal-page {
  margin-top: 0;
  padding-top: 34px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 24px;
  color: #4d5c70;
  font-size: 15px;
}
.legal-back .ui-icon {
  width: 16px;
  height: 16px;
}
.legal-page h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #071423;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}
.legal-page h2 .ui-icon {
  width: 24px;
  height: 24px;
  color: #08aade;
}
.legal-page article {
  margin: 0 0 22px;
}
.legal-page h3 {
  margin: 0 0 9px;
  color: #071423;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}
.legal-page p {
  margin: 0;
  color: #263b52;
  font-size: 14px;
  line-height: 1.68;
}
.legal-note {
  margin-top: 28px !important;
  padding-top: 14px;
  border-top: 1px solid #dfe7ee;
  color: #91a0ae !important;
  font-size: 12px !important;
}
.feedback-page {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 0 16px 22px;
}
.feedback-card {
  padding: 18px;
  border: 1px solid #dfe8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31,78,103,.07);
}
.feedback-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.feedback-card header > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #08aade;
  background: #ecfbff;
}
.feedback-card header .ui-icon {
  width: 24px;
  height: 24px;
}
.feedback-card h2 {
  margin: 0;
  color: #101d30;
  font-size: 22px;
}
.feedback-card p {
  margin: 4px 0 0;
  color: #6b7888;
  line-height: 1.6;
}
.feedback-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}
.feedback-form label {
  display: grid;
  gap: 6px;
  color: #27384d;
  font-weight: 800;
}
.feedback-form label.wide,
.feedback-form button {
  grid-column: 1 / -1;
}
.feedback-form label em {
  color: #8c99a8;
  font-style: normal;
  font-weight: 500;
}
.feedback-form textarea {
  min-height: 150px;
  resize: vertical;
}
.feedback-form button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #08aade;
  font-weight: 900;
  cursor: pointer;
}
.feedback-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 800;
}
.feedback-alert.success {
  color: #00845c;
  border: 1px solid #b8f0d8;
  background: #effdf7;
}
.feedback-alert.error {
  color: #c51f35;
  border: 1px solid #ffd1d8;
  background: #fff5f6;
}
.ai-fab-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 35; }
.ai-fab {
  position: relative; height: 36px;
  padding: 0 13px; border: 0; border-radius: 18px; color: #fff; background: #08aee4;
  box-shadow: 0 6px 14px rgba(0, 155, 210, .26); cursor: pointer; font-size: 12px; font-weight: 700;
}
.ai-fab { display: inline-flex; align-items: center; gap: 5px; }
.ai-fab .ui-icon { width: 15px; height: 15px; }
.ai-fab-close {
  position: absolute; right: -6px; top: -7px; width: 20px; height: 20px; display: grid; place-items: center;
  border: 0; border-radius: 50%; color: #fff; background: #334155; box-shadow: 0 2px 7px rgba(15, 23, 42, .28);
  font-size: 13px; line-height: 1; cursor: pointer;
}
.ai-nudge {
  position: fixed; right: 20px; bottom: 76px; z-index: 36; width: 218px; padding: 9px 34px 9px 12px;
  border: 1px solid #dbe6ef; border-radius: 14px; color: #233246; background: rgba(255,255,255,.98);
  box-shadow: 0 8px 22px rgba(31,78,103,.12); font-size: 11px;
}
.ai-nudge strong { display: block; font-size: 12px; margin-bottom: 4px; line-height: 1.35; }
.ai-nudge p { margin: 0 0 5px; color: #657486; line-height: 1.45; }
.ai-nudge a { color: #00a8df; font-weight: 800; }
.ai-close-pop {
  position: fixed;
  right: 12px;
  bottom: 78px;
  z-index: 60;
  width: min(370px, calc(100vw - 24px));
  padding: 18px 16px 14px;
  border: 1px solid #dbe6ef;
  border-radius: 15px;
  color: #172235;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 28px rgba(20, 50, 72, .18);
  font-size: 13px;
}
.ai-close-pop strong { display: block; margin-bottom: 8px; font-size: 16px; }
.ai-close-pop p { margin: 0 0 15px; color: #536274; line-height: 1.65; }
.ai-close-pop div { display: flex; justify-content: flex-end; gap: 10px; }
.ai-close-pop button {
  height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #d8e2eb;
  background: #fff;
  color: #26364a;
  cursor: pointer;
}
.ai-close-pop .primary {
  border-color: #09aee2;
  color: #fff;
  background: #08aee4;
}
.ai-drawer {
  position: fixed; left: 50%; right: auto; bottom: 72px; z-index: 50; width: min(460px, calc(100vw - 32px)); height: min(650px, calc(100vh - 96px)); max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(22, 53, 76, .18);
  transform: translateX(-50%); translate: none; visibility: hidden; pointer-events: none;
}
.ai-drawer.open { transform: translateX(-50%); translate: none; visibility: visible; pointer-events: auto; }
.ai-drawer.open:not(.wide) { left: 50%; top: auto; right: auto; bottom: 72px; width: min(460px, calc(100vw - 32px)); height: min(650px, calc(100vh - 96px)); border-radius: 14px; }
.ai-drawer.wide { left: 0; right: 0; top: 0; bottom: 0; width: 100vw; height: 100vh; border-radius: 0; transform: none; }
.ai-drawer header { height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #fff; background: #258cea; }
.ai-drawer header strong { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.ai-drawer header .ui-icon { width: 18px; height: 18px; }
.ai-drawer header div { display: flex; align-items: center; gap: 7px; }
.ai-drawer header button {
  width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%;
  color: rgba(255,255,255,.92); background: transparent; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.ai-drawer header button:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.ai-drawer header button .ui-icon { width: 15px; height: 15px; }
.ai-drawer header button .ai-expand-close { display: none; }
.ai-drawer.wide header button .ai-expand-open { display: none; }
.ai-drawer.wide header button .ai-expand-close { display: inline-block; }
.ai-options { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ai-models[hidden] { display: none !important; }
.ai-options span { color: #4b5a6c; font-size: 12px; }
.ai-sources span { flex: 0 0 auto; white-space: nowrap; }
.ai-options button { height: 26px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-size: 12px; }
.ai-options .active { color: #008fc8; border-color: #77d5f2; background: #ebfaff; }
.ai-sources {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 8px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.ai-sources::-webkit-scrollbar { display: none; }
.ai-sources button { flex: 0 0 auto; }
.ai-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 16px; color: var(--muted); background: #fff; overflow: hidden; }
.ai-empty { margin: auto; width: min(350px, 100%); display: grid; justify-items: center; gap: 10px; text-align: center; }
.ai-empty > .ui-icon { width: 42px; height: 42px; color: #9bdff1; }
.ai-body strong { color: #596677; font-size: 14px; }
.ai-empty span { font-size: 12px; color: #9aa7b5; }
.ai-empty button {
  width: 100%; min-height: 42px; border: 1px solid #dfe8ef; border-radius: 11px; color: #566577; background: #f8fbfd;
  text-align: left; padding: 0 14px; cursor: pointer; font-size: 13px;
}
.ai-category-tabs {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ai-category-tabs button {
  width: auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #687586;
  background: #f2f4f6;
  font-size: 12px;
  font-weight: 800;
  padding: 0 9px;
  white-space: nowrap;
}
.ai-category-tabs button .ui-icon { width: 14px; height: 14px; }
.ai-category-tabs button.active {
  color: #111827;
  border-color: #111827;
  background: #fff;
  box-shadow: 0 5px 14px rgba(30, 41, 59, .08);
}
.ai-suggestion-list {
  width: 100%;
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
  transform-origin: bottom center;
}
.ai-suggestion-list.open {
  animation: aiSuggestionsUp .16s ease-out both;
}
.ai-suggestion-list.closing {
  pointer-events: none;
  animation: aiSuggestionsDown .16s ease-in both;
}
.ai-suggestion-row {
  min-height: 34px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #1f2937 !important;
  background: #f3f6f8 !important;
  text-align: left;
  box-shadow: none !important;
}
.ai-suggestion-row:hover { background: #eaf1f6 !important; }
.ai-suggestion-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: 13px;
}
.ai-row-arrow {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #94a3b8;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ai-followups {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 2px 0;
}
.ai-followups[hidden] { display: none !important; }
.ai-followup-chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d8e6ef;
  border-radius: 999px;
  color: #516173;
  background: #f8fbfd;
  font-size: 12px;
  cursor: pointer;
}
.ai-bottom-tools {
  flex: 0 0 auto;
  padding: 10px 16px 8px;
  border-top: 0;
  background: #fff;
}
@keyframes aiSuggestionsUp {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes aiSuggestionsDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px) scale(.985); }
}
.ai-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding-right: 2px; }
.ai-message { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; text-align: left; }
.ai-message span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #08aee4; font-size: 12px; font-weight: 800; }
.ai-message.user span { background: #64748b; }
.ai-message div { padding: 10px 12px; border-radius: 12px; background: #f2f8fb; color: #263447; line-height: 1.65; font-size: 13px; }
.ai-message.user div { background: #eaf5ff; }
.ai-login-card {
  margin: auto; width: min(350px, 100%); padding: 24px; border: 1px solid #dbe6ef; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31,78,103,.08); text-align: left;
}
.ai-login-card > .ui-icon { width: 36px; height: 36px; color: #8adbf0; display: block; margin: 0 auto 12px; }
.ai-login-card p { margin: 8px 0 10px; color: #5f6e7f; line-height: 1.7; }
.ai-login-card a { color: #00a8df; font-weight: 900; }
.ai-drawer form { display: grid; grid-template-columns: minmax(0, 1fr) 50px; gap: 8px; padding: 12px 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.ai-drawer textarea { height: 48px; max-height: 96px; resize: none; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7fafc; font: inherit; outline: none; }
.ai-drawer textarea:focus { border-color: #8eddf3; box-shadow: 0 0 0 3px rgba(8,174,228,.11); }
.ai-drawer form button { border: 0; border-radius: 12px; color: #fff; background: #9fdff2; cursor: pointer; }
.ai-drawer form button .ui-icon { width: 20px; height: 20px; }
.draw-panel:has(.quick-settings.open) { z-index: 40; }
.night-mode {
  --ink: #eef6ff;
  --muted: #91a4b9;
  --line: #2b3948;
  --soft: #17212c;
  color: #e9f2fb;
  background-color: #09121b;
  background-image:
    linear-gradient(rgba(38, 75, 105, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 75, 105, .16) 1px, transparent 1px);
  background-size: 38px 38px;
}
.night-mode .topbar { background: #101b27; border-bottom: 1px solid #263848; box-shadow: 0 2px 10px rgba(0,0,0,.38); }
.night-mode .draw-panel,
.night-mode .quick-grid article,
.night-mode .toolbox,
.night-mode .hall-panel,
.night-mode .user-panel,
.night-mode .algorithm-detail,
.night-mode .algorithm-card,
.night-mode .stats-sections article,
.night-mode .missing-sections section,
.night-mode .number-picker,
.night-mode .number-core,
.night-mode .analysis-grid article,
.night-mode .relation-metrics article,
.night-mode .next-trend-grid article,
.night-mode .abc-charts > div,
.night-mode .recovery-grid article,
.night-mode .association-sections article,
.night-mode .bias-grid article,
.night-mode .dragon-grid article,
.night-mode .prediction-head,
.night-mode .stats-head {
  color: #eaf3fc;
  border-color: #293746;
  background: #151e29;
  box-shadow: 0 2px 8px rgba(0,0,0,.24);
}
.night-mode .panel-line { background: linear-gradient(90deg, #00b9de 0 60%, #6387b8 60%); }
.night-mode .draw-actions a,
.night-mode .draw-actions button,
.night-mode .hall-filter button,
.night-mode .hall-search,
.night-mode .hall-favorite,
.night-mode .hall-section-nav,
.night-mode .subtabs button,
.night-mode .stats-head nav a,
.night-mode input,
.night-mode select,
.night-mode textarea {
  color: #dbe8f4;
  border-color: #344353;
  background: #1b2632;
  box-shadow: none;
}
.night-mode .draw-actions span,
.night-mode .draw-actions button .ui-icon,
.night-mode .draw-title span b,
.night-mode .number-toolbar strong,
.night-mode .number-picker > span,
.night-mode .number-picker button,
.night-mode .number-core > h3,
.night-mode .number-hero-metric div strong,
.night-mode .abc-charts > div > strong,
.night-mode .association-sections article > strong,
.night-mode .stats-head > div strong,
.night-mode .mipai-lock strong { color: #edf6ff; }
.night-mode .countdown { border-color: #00a9db; color: #19c5ef; background: #111c27; }
.night-mode .countdown div { color: #91a4b9; }
.night-mode .countdown strong { color: #f3f8fd; }
.night-mode .countdown.safe { border-color: #1f8f62; color: #32d583; background: #10251d; }
.night-mode .countdown.safe div { color: #8ee7b7; }
.night-mode .countdown.safe strong { color: #d4ffe8; }
.night-mode .countdown.urgent { border-color: #993040; color: #ff6b81; background: #271218; }
.night-mode .countdown.urgent div { color: #ff9aa9; }
.night-mode .countdown.urgent strong { color: #fff0f2; }
.night-mode .countdown.maintenance { border-color: #b77620; background: #211b14; }
.night-mode .equation { border-color: #263543; background: #111a24; }
.night-mode .equation b { color: #f1f7fd; background: #1d2834; }
.night-mode .equation strong { color: #07111a; background: #06b5e4; }
.night-mode .quick-settings {
  color: #eaf3fc; border-color: #3a4857; background: #18232e;
  box-shadow: 0 14px 34px rgba(0,0,0,.55);
}
.night-mode .quick-settings button { color: #eaf3fc; border-color: #32404e; background: #18232e; }
.night-mode .quick-settings button:hover { background: #22303d; }
.night-mode .quick-settings button b { color: #55c9f2; background: #19394a; }
.night-mode .quick-icon.violet { background: #2b2140; }
.night-mode .quick-icon.cyan { background: #123443; }
.night-mode .quick-icon.rose { background: #3b222c; }
.night-mode .quick-icon.orange { background: #3b2a20; }
.night-mode .mini-stat,
.night-mode .tag { filter: saturate(.95) brightness(.92); }
.night-mode .quick-grid .tag,
.night-mode .quick-grid .mini-stat {
  background-color: rgba(255, 255, 255, .12) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.night-mode .quick-grid .tag.violet,
.night-mode .quick-grid .mini-stat.violet { color: #c99bff; background-color: rgba(145, 73, 244, .2) !important; }
.night-mode .quick-grid .tag.cyan,
.night-mode .quick-grid .mini-stat.blue { color: #80c0ff; background-color: rgba(40, 125, 245, .18) !important; }
.night-mode .quick-grid .tag.rose,
.night-mode .quick-grid .mini-stat.red { color: #ff9aa5; background-color: rgba(255, 83, 101, .18) !important; }
.night-mode .quick-grid .tag.orange { color: #ffb47c; background-color: rgba(255, 114, 28, .18) !important; }
.night-mode .quick-grid .mini-stat.green { color: #72e6b9; background-color: rgba(6, 155, 109, .18) !important; }
.night-mode .tabs { background: #1b2632; }
.night-mode .tabs button { color: #91a4b9; }
.night-mode .tabs button:hover,
.night-mode .tabs button.active { color: #fff; background: #090f18; box-shadow: 0 1px 5px rgba(0,0,0,.42); }
.night-mode .tab-panel { background: #151e29; }
.night-mode .mipai-lock { color: #91a4b9; background: #111a24; }
.night-mode .lock-eye { background: #202c38; }
.night-mode th,
.night-mode .prediction-table-head,
.night-mode .metric-head { color: #91a4b9; background: #192532; }
.night-mode th,
.night-mode td,
.night-mode .prediction-list > div,
.night-mode .metric-head,
.night-mode .metric-head span,
.night-mode .metric-grid article,
.night-mode .missing-grid article,
.night-mode .stat-type-grid > span,
.night-mode .sum-stats > span { border-color: #263746; }
.night-mode tbody tr:nth-child(odd),
.night-mode .prediction-list > div:nth-child(odd),
.night-mode .keno-row:nth-of-type(odd) { background: #10202c; }
.night-mode tbody tr:hover { background: #173040; }
.night-mode .outline { color: #c8d7e5; border-color: #455668; background: #1b2632; }
.night-mode .notice-strip,
.night-mode .number-summary { color: #a9c1d3; border-color: #28475a; background: #102431; }
.night-mode .site-announcement {
  color: #cfe0ed;
  border-color: rgba(110, 180, 220, .22);
  background: rgba(255, 255, 255, .08);
}
.night-mode .site-announcement-close {
  color: #cfe0ed;
  background: rgba(255, 255, 255, .12);
}
.night-mode .keno-rule,
.night-mode .keno-calculation,
.night-mode .trend-columns,
.night-mode .trend-line,
.night-mode .trend-legend,
.night-mode .bar-chart,
.night-mode .calc-total { border-color: #293746; background: #111a24; }
.night-mode .keno-rule p,
.night-mode .keno-legend,
.night-mode .calc-line > small,
.night-mode .calc-line > i,
.night-mode .calc-line > em { color: #a9bac9; }
.night-mode .keno-row { border-color: #263746; }
.night-mode .keno-balls i.unused { color: #8190a0; border-color: #4a5968; background: #17212c; }
.night-mode .keno-balls i.group-a { color: #ff9b64; border-color: #ff914f; background: rgba(255, 145, 79, .16); }
.night-mode .keno-balls i.group-b { color: #5ee0ba; border-color: #4ed0a8; background: rgba(78, 208, 168, .15); }
.night-mode .keno-balls i.group-c { color: #b69bff; border-color: #a681ff; background: rgba(166, 129, 255, .16); }
.night-mode .calc-line.group-a { --calc-dot: #ff7a2e; }
.night-mode .calc-line.group-b { --calc-dot: #12c58e; }
.night-mode .calc-line.group-c { --calc-dot: #8d5cff; }
.night-mode .calc-line > strong { color: #eaf3fc; }
.night-mode .algo-rates section b,
.night-mode .my-algo-rate section b,
.night-mode .user-algorithm-page .my-algo-rate section b {
  background: radial-gradient(circle, rgba(17, 29, 40, .82) 0 58%, transparent 59%), conic-gradient(#05bf83 var(--rate-deg, 0deg), rgba(255,255,255,.16) 0) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.night-mode .algo-rates section:first-child b,
.night-mode .my-algo-rate section:first-child b,
.night-mode .user-algorithm-page .my-algo-rate section:first-child b {
  background: radial-gradient(circle, rgba(17, 29, 40, .82) 0 58%, transparent 59%), conic-gradient(#ffae1c var(--rate-deg, 0deg), rgba(255,255,255,.16) 0) !important;
}
.night-mode .forecast-dot,
.night-mode .trend-columns span.predicted,
.night-mode .trend-line circle.predicted { background: #111a24; fill: #111a24; }
.night-mode .dragon-grid article.running { border-color: #28775b; background: #122820; }
.night-mode .dragon-grid p span,
.night-mode .progress { background: #22303d; }
.night-mode .number-picker button { border-color: #344352; background: #1b2632; }
.night-mode .number-picker button:hover { border-color: #36bfe8; background: #173142; }
.night-mode .number-picker button.active { color: #fff; background: var(--cyan); }
.night-mode .number-core > h3,
.night-mode .missing-sections h3,
.night-mode .stats-sections h3 { border-color: #293746; background: #19232e; }
.night-mode .association-sections article span { border-color: #2b3948; background: #19232e; }
.night-mode .prediction-list .pending-row { background: #102a38; }
.night-mode .hall-toolbar { background: #151e29; }
.night-mode .hall-section-nav a { color: #a8bacb; }
.night-mode .hall-section-nav a.active { color: #fff; background: #00a9df; }
.night-mode .hall-menu {
  color: #eaf3fc; border-color: #394958; background: #18232e;
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
}
.night-mode .hall-menu button { color: #dce8f3; }
.night-mode .hall-menu button:hover,
.night-mode .hall-menu button.selected { color: #4ad0f5; background: #183747; }
.night-mode .algorithm-card {
  border-color: rgba(132, 166, 196, .26);
  background: rgba(21, 30, 41, .78);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.night-mode .algorithm-card footer {
  border-color: rgba(132, 166, 196, .18);
  background: rgba(11, 18, 26, .46);
}
.night-mode .algo-id,
.night-mode .collect-btn,
.night-mode .view-btn { color: #c7d7e6; background: rgba(240, 248, 255, .08); box-shadow: none; }
.night-mode .author-btn { color: #b9c9d8; background: transparent; }
.night-mode .my-notice-item {
  border-color: rgba(132, 166, 196, .22);
  background: rgba(21, 30, 41, .78);
  color: #eaf3fc;
}
.night-mode .my-notice-item.unread {
  border-color: rgba(0, 174, 226, .42);
  background: rgba(13, 40, 54, .72);
}
.night-mode .my-notice-item b { color: #58d5f6; }
.night-mode .my-notice-item span { color: #b6c5d4; }
.night-mode .my-notice-item em { color: #8193a6; }
.night-mode .my-notice-actions button,
.night-mode .notice-delete {
  background: rgba(65, 89, 112, .68);
  color: #8adff5;
}
.night-mode .notice-state {
  background: rgba(0, 174, 226, .18);
  color: #7de2ff;
}
.night-mode .algo-title strong {
  color: #8bf3ce;
  background: rgba(92, 255, 188, .14);
}
.night-mode .algo-title strong.orange {
  color: #ffb26b;
  background: rgba(255, 153, 56, .16);
}
.night-mode .create-back,
.night-mode .steps-head strong,
.night-mode .step-item h4 { color: #eaf3fc; }
.night-mode .create-back .ui-icon { color: #eaf3fc; }
.night-mode .create-card,
.night-mode .steps-card,
.night-mode .step-item,
.night-mode .formula-tools {
  color: #eaf3fc; border-color: #293746; background: #151e29; box-shadow: 0 2px 8px rgba(0,0,0,.24);
}
.night-mode .help-btn,
.night-mode .steps-head .add-step { color: #52cff4; border-color: #21566a; background: #123443; }
.night-mode .algo-name-input,
.night-mode .algo-type-select,
.night-mode .remark-label textarea,
.night-mode .step-placeholder,
.night-mode .test-create {
  color: #dce8f3; border-color: #344353; background: #1b2632;
}
.night-mode .step-placeholder { color: #8799aa; border-style: dashed; }
.night-mode .remark-label span,
.night-mode .create-flags,
.night-mode .formula-tools > button { color: #aebfd0; }
.night-mode .steps-head button { color: #aebfd0; background: #202c38; }
.night-mode .tool-chip-row span { color: #6fd8f6; background: #1b2632; }
.night-mode .help-dialog { color: #eaf3fc; border-color: #293746; background: #151e29; }
.night-mode .help-dialog h3,
.night-mode .help-example strong { color: #eef6ff; }
.night-mode .help-dialog p,
.night-mode .help-dialog li { color: #aebfd0; }
.night-mode .help-dialog section,
.night-mode .help-example,
.night-mode .help-dialog code,
.night-mode .help-table,
.night-mode .help-table > * { border-color: #2a3948; }
.night-mode .help-example,
.night-mode .help-dialog code { background: #111a24; }
.night-mode .help-table span { color: #aebfd0; background: #1b2632; }
.night-mode .auth-card {
  color: #eaf3fc; border-color: #293746; background: #151e29; box-shadow: 0 12px 30px rgba(0,0,0,.34);
}
.night-mode .auth-brand strong { color: #eef6ff; }
.night-mode .auth-brand p,
.night-mode .auth-switch,
.night-mode .auth-links a,
.night-mode .auth-form label { color: #aebfd0; }
.night-mode .auth-tabs,
.night-mode .auth-input,
.night-mode .auth-links a { border-color: #344353; background: #1b2632; }
.night-mode .auth-tabs a { color: #aebfd0; }
.night-mode .auth-tabs a.active { color: #fff; background: #06aade; }
.night-mode .auth-input .ui-icon { color: #93a6b9; }
.night-mode .auth-form input { color: #dce8f3; }
.night-mode .auth-form input::placeholder { color: #6e8092; }
.night-mode .captcha-image { border-color: #21566a; background: #123443; filter: brightness(.92) saturate(.95); }
.night-mode .auth-links { border-color: #2a3948; }
.night-mode .user-stats article,
.night-mode .user-card,
.night-mode .user-tabs,
.night-mode .order-list span,
.night-mode .notice-list span,
.night-mode .user-algo-list a,
.night-mode .user-inline-form input,
.night-mode .user-secure-form input {
  color: #eaf3fc; border-color: #293746; background: #151e29;
}
.night-mode .user-tabs { background: #1b2632; }
.night-mode .user-tabs a,
.night-mode .shortcut-grid a,
.night-mode .user-actions .light,
.night-mode .user-actions .button-link.light { color: #dbe8f4; background: #1b2632; }
.night-mode .user-card h3,
.night-mode .order-list b,
.night-mode .notice-list b,
.night-mode .user-algo-list strong { color: #eef6ff; }
.night-mode .user-card p,
.night-mode .user-card li,
.night-mode .order-list em,
.night-mode .notice-list em,
.night-mode .user-algo-list span { color: #aebfd0; }
.night-mode .user-message.success { color: #7eeac3; border-color: #21614d; background: #102820; }
.night-mode .user-message.error { color: #ff97a3; border-color: #67313a; background: #2b1419; }
.night-mode .user-dropdown { color: #eaf3fc; border-color: #394958; background: #18232e; box-shadow: 0 12px 28px rgba(0,0,0,.5); }
.night-mode .user-mini { border-color: #344352; }
.night-mode .user-mini span { color: #a8b8c8; }
.night-mode .user-mini span i { color: #75dbff; background: #183546; }
.night-mode .menu-checkin-form { border-color: #344352; }
.night-mode .menu-checkin-form button:disabled { color: #91a3b4; background: #22303d; }
.night-mode .user-dropdown a:hover { background: #22303d; }
.night-mode .user-dropdown .ui-icon { color: #eaf3fc; }
.night-mode .ai-drawer { color: #eaf3fc; background: #151e29; }
.compact-layout .shell { width: min(860px, calc(100% - 28px)); }

/* Shared admin styles */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(120deg, #1689e9, #08aade);
  box-shadow: 0 6px 18px rgba(20, 116, 188, .18);
}
.top-inner {
  max-width: 1180px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 0 18px;
}
.top .brand {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}
.top .nav {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-left: auto;
}
.top .nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 17px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 800;
}
.top .nav a:hover {
  color: #1474bb;
  background: #fff;
}
.admin-shell { max-width: 1180px; margin: 22px auto; padding: 0 18px; }
.admin-shell > h2 { margin: 18px 0 10px; color: #142338; font-size: 20px; }
.admin-shell .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { padding: 18px; border: 1px solid #dfe8ef; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(31,78,103,.07); }
.card h2 { margin: 0 0 12px; color: #122135; font-size: 18px; }
.card h3 { margin: 18px 0 8px; color: #122135; }
.card p { line-height: 1.65; }
.form-row { display: grid; gap: 7px; margin-bottom: 13px; }
.form-row label { color: #31445b; font-weight: 800; }
.form-row small { color: var(--muted); }
input, textarea, select { width: 100%; border: 1px solid #dce6ed; border-radius: 8px; padding: 11px; background: #fbfdff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #08aade; box-shadow: 0 0 0 3px rgba(8,170,222,.12); }
.btn, .card button { display: inline-block; padding: 10px 14px; border: 0; border-radius: 6px; color: #fff; background: var(--blue); cursor: pointer; }
.btn.light { color: #263447; background: #e5edf3; }
.btn.danger { color: #fff; background: #ef3347; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice { padding: 10px 12px; border: 1px solid #fed7aa; border-radius: 7px; color: #92400e; background: #fff7ed; }
.form-help { margin: -4px 0 14px; color: var(--muted); }
.seo-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 18px; }
.seo-settings section { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #f9fbfd; }
.seo-settings h4 { margin: 0 0 12px; color: var(--ink); font-size: 15px; }
.admin-module-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.admin-module-shortcuts a {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcff 0%, #fff 100%);
  color: #263447;
  text-decoration: none;
}
.admin-module-shortcuts b {
  font-size: 13px;
  color: #08aade;
}
.admin-module-shortcuts span {
  color: #768397;
  font-size: 11px;
  line-height: 1.35;
}
.admin-module-note {
  margin: 7px 0 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: #eef9fd;
  color: #557085;
  font-size: 12px;
  line-height: 1.45;
}
.admin-module-note a { color: #08aade; font-weight: 700; text-decoration: none; }
.reward-rule-card h2 { margin-bottom: 10px; }
.reward-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.reward-rule-grid section {
  padding: 11px;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: #f9fcff;
}
.reward-rule-grid h3 {
  margin: 0 0 5px;
  font-size: 13px;
  color: #172335;
}
.reward-rule-grid p {
  margin: 0 0 7px;
  color: #77859a;
  font-size: 11px;
}
.reward-rule-grid b {
  color: #08aade;
  font-size: 12px;
  line-height: 1.5;
}
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #d9edf7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3fbff, #fff);
  box-shadow: 0 4px 16px rgba(31,78,103,.06);
}
.admin-hero span { color: #08aade; font-size: 12px; font-weight: 900; }
.admin-hero h1 { margin: 4px 0; color: #111f32; font-size: 26px; }
.admin-hero p { margin: 0; color: #667386; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 110px); gap: 9px; }
.admin-stats article { padding: 12px; border-radius: 10px; background: #fff; text-align: center; box-shadow: 0 2px 8px rgba(31,78,103,.06); }
.admin-stats b { display: block; color: #08aade; font-size: 24px; }
.admin-stats span { color: #667386; }
.admin-list { display: grid; gap: 12px; }
.admin-empty { color: #8b98a8; text-align: center; }
.feedback-admin-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.feedback-admin-card header span {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 11px;
  color: #008ec8;
  background: #e9f8ff;
  font-size: 12px;
  font-weight: 900;
}
.feedback-admin-card header em {
  padding: 4px 8px;
  border-radius: 12px;
  color: #ef7a00;
  background: #fff3e0;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.feedback-admin-card.done header em {
  color: #00a66f;
  background: #e9fbf4;
}
.feedback-admin-card > p {
  margin: 10px 0;
  padding: 12px;
  border-radius: 9px;
  color: #33465d;
  background: #f7fafc;
}
.feedback-admin-card footer {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  color: #7b8795;
  font-size: 12px;
}
.admin-login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(8,170,222,.18), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(35,137,232,.14), transparent 34%),
    linear-gradient(180deg, #eef8ff 0%, #fff 58%, #f7fbfd 100%);
}
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.admin-login-card {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid #d9e8f2;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 46px rgba(31,78,103,.16);
}
.admin-login-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff5260, #08aade);
  font-weight: 900;
}
.admin-login-card h1 {
  margin: 0;
  color: #101d30;
  font-size: 24px;
}
.admin-login-card p {
  margin: 7px 0 18px;
  color: #687789;
  line-height: 1.6;
}
.admin-login-card button {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #08aade, #1689e9);
  font-weight: 900;
  cursor: pointer;
}
.admin-login-card > a {
  display: block;
  margin-top: 14px;
  color: #08aade;
  text-align: center;
  font-weight: 800;
}
.admin-body {
  font-size: 13px;
}
.admin-body .top-inner {
  min-height: 52px;
  gap: 12px;
  padding: 0 14px;
}
.admin-body .top .brand {
  font-size: 17px;
}
.admin-body .top .nav {
  gap: 5px;
}
.admin-body .top .nav a {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 14px;
  font-size: 12px;
}
.admin-body .admin-shell {
  margin: 14px auto;
  padding: 0 14px;
}
.admin-body .admin-shell > h2 {
  margin: 12px 0 8px;
  font-size: 17px;
}
.admin-body .card {
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(31,78,103,.055);
}
.admin-body .card h2 {
  margin-bottom: 9px;
  font-size: 16px;
}
.admin-body .card h3 {
  margin: 13px 0 7px;
  font-size: 14px;
}
.admin-body .form-row {
  gap: 5px;
  margin-bottom: 10px;
}
.admin-body .form-row label {
  font-size: 12px;
}
.admin-body .form-row small,
.admin-body .form-help {
  font-size: 12px;
  line-height: 1.45;
}
.admin-body input,
.admin-body textarea,
.admin-body select {
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 13px;
}
.admin-body textarea {
  min-height: 76px;
}
.admin-body .btn,
.admin-body .card button {
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 12px;
}
.admin-body .seo-settings {
  gap: 9px;
  margin: 10px 0 14px;
}
.admin-body .seo-settings section {
  padding: 11px;
}
.admin-body .seo-settings h4 {
  margin-bottom: 8px;
  font-size: 13px;
}
.admin-body .admin-quick-settings {
  grid-template-columns: 1fr;
}
.admin-body .admin-hero {
  gap: 12px;
  margin-bottom: 11px;
  padding: 14px;
  border-radius: 12px;
}
.admin-body .admin-hero h1 {
  margin: 2px 0;
  font-size: 20px;
}
.admin-body .admin-hero p {
  font-size: 12px;
}
.admin-body .admin-stats {
  grid-template-columns: repeat(2, 88px);
  gap: 7px;
}
.admin-body .admin-stats article {
  padding: 9px;
  border-radius: 8px;
}
.admin-body .admin-stats b {
  font-size: 18px;
}
.admin-body .admin-list {
  gap: 9px;
}
.admin-body .feedback-admin-card header {
  gap: 8px;
}
.admin-body .feedback-admin-card header h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.admin-body .feedback-admin-card header span {
  height: 19px;
  padding: 0 7px;
  font-size: 11px;
}
.admin-body .feedback-admin-card header em {
  padding: 3px 7px;
  font-size: 11px;
}
.admin-body .feedback-admin-card > p {
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}
.admin-body .feedback-admin-card footer {
  gap: 7px;
  font-size: 11px;
}
.admin-body .admin-stats.wide {
  grid-template-columns: repeat(4, minmax(76px, 1fr));
}
.admin-ops-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.admin-filter {
  display: flex; align-items: end; gap: 9px; flex-wrap: wrap; margin: 0;
}
.admin-filter label {
  display: grid; gap: 5px; color: #617083; font-size: 12px;
}
.admin-filter select {
  width: 120px; height: 34px; padding: 0 10px; border: 1px solid #d7e2eb; border-radius: 7px; background: #fff;
}
.admin-table-wrap {
  overflow-x: auto; margin-bottom: 14px; border: 1px solid #e3ebf2; border-radius: 8px; background: #fff;
}
.admin-table-wrap.tight { max-height: 420px; }
.admin-data-table { min-width: 900px; font-size: 12px; }
.admin-data-table th,
.admin-data-table td { height: 38px; padding: 7px 8px; }
.admin-data-table td small { display: block; color: #7c8998; font-size: 10px; }
.admin-seed-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.admin-seed-form input,
.admin-seed-form select,
.admin-data-table input,
.admin-data-table select {
  width: 100%;
  min-width: 54px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #d7e2eb;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}
.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #667386;
  font-size: 12px;
}
.admin-check input,
.admin-data-table input[type="checkbox"] {
  width: auto;
  height: auto;
  min-width: 0;
}
.compact-table { min-width: 560px; }
.admin-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 22px; padding: 0 8px;
  border-radius: 12px; color: #fff; font-size: 11px; font-weight: 700;
}
.admin-pill.cyan { background: #08aeea; }
.admin-pill.green { background: #10b981; }
.admin-pill.gray { background: #748195; }
.admin-points { color: #00a6dc; }
.admin-link { color: #048fcb; font-weight: 700; }
.admin-two-col { margin-top: 12px; }
.admin-inline-actions {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.admin-inline-actions form { margin: 0; }
.admin-text-btn {
  height: 24px; padding: 0 7px; border: 1px solid #d9e6ef; border-radius: 6px;
  color: #1687c8; background: #f6fbff; font-size: 11px; cursor: pointer;
}
.admin-text-btn.danger { color: #ef334d; border-color: #ffd2d8; background: #fff7f8; }
.admin-point-form {
  display: grid; grid-template-columns: minmax(120px, 1fr) 92px minmax(110px, 1fr) auto; gap: 7px; margin: 0 0 10px;
}
.admin-point-form input,
.admin-point-form select {
  height: 32px; padding: 0 9px; border: 1px solid #d7e2eb; border-radius: 7px; font-size: 12px; background: #fff;
}
@media (max-width: 720px) {
  .seo-settings { grid-template-columns: 1fr; }
  .admin-module-shortcuts,
  .reward-rule-grid { grid-template-columns: 1fr; }
  .admin-body .admin-stats.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-ops-card { align-items: stretch; }
  .admin-filter, .admin-ops-card form { width: 100%; }
  .admin-filter label { flex: 1 1 120px; }
  .admin-filter select { width: 100%; }
  .admin-point-form { grid-template-columns: 1fr 1fr; }
  .admin-point-form button { grid-column: span 2; }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 20px, 720px); }
  .topbar { height: 52px; }
  .topbar-inner { height: 52px; gap: 10px; }
  .logo strong { display: none; }
  .main-nav { flex: 1; }
  .main-nav a, .main-nav button { padding: 0 8px; font-size: 12px; }
  .user-menu > button { min-width: 112px; height: 34px; grid-template-columns: 16px minmax(0, 1fr) 13px; }
  .user-menu > button span { line-height: 34px; }
  .user-dropdown { top: 40px; width: 150px; }
  .ad { min-height: 58px; padding: 10px 13px; gap: 9px; }
  .ad strong { font-size: 17px; }
  .ad span { font-size: 11px; }
  .ad b { padding: 6px; font-size: 11px; }
  .draw-panel { padding: 18px; }
  .draw-content { margin-top: 24px; }
  .feature-banner { min-height: 72px; gap: 10px; padding: 12px; }
  .feature-banner strong { font-size: 18px; }
  .feature-banner em { font-size: 11px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .user-stats { grid-template-columns: repeat(2, 1fr); }
  .user-tabs { grid-template-columns: repeat(2, 1fr); }
  .user-grid { grid-template-columns: 1fr; }
  .user-subnav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .my-algo-list { grid-template-columns: 1fr; }
  .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reward-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { grid-template-columns: repeat(4, 1fr); }
  .tabs button { min-height: 48px; font-size: 12px; }
  .dragon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .number-picker > div { grid-template-columns: repeat(7, 1fr); }
  .analysis-grid { grid-template-columns: repeat(3, 1fr); }
  .next-trend-grid { grid-template-columns: repeat(2, 1fr); }
  .abc-charts { grid-template-columns: 1fr; }
  .association-sections article > div { grid-template-columns: repeat(5, 1fr); }
  .keno-balls { gap: 14px 6px; }
  .stats-head { align-items: flex-start; flex-direction: column; }
  .stats-head nav { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .hall-toolbar { grid-template-columns: 126px minmax(0, 1fr); }
  #typeFilter { grid-column: 1; grid-row: 1; }
  #sortFilter { grid-column: 2; grid-row: 1; }
  .hall-favorite { grid-column: 1; grid-row: 2; }
  .hall-search { grid-column: 2; grid-row: 2; }
  .hall-section-nav { grid-column: 1 / -1; grid-row: 3; justify-self: end; }
  .algorithm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-stats-strip { gap: 8px 12px; padding: 6px 8px 12px; font-size: 11px; }
  .hall-stats-strip .ui-icon { width: 13px; height: 13px; }
  .algorithm-create { gap: 10px; margin-top: 8px; padding-bottom: 72px; }
  .create-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }
  .create-back {
    grid-column: 1 / -1;
    justify-self: start;
    gap: 8px;
    font-size: 20px;
    white-space: nowrap;
  }
  .create-back em {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
  }
  .create-back span {
    margin-left: 6px;
    font-size: 20px;
    font-weight: 900;
  }
  .create-head .create-nav {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: center;
    max-width: calc(100vw - 104px);
  }
  .create-head .create-nav a {
    min-width: 88px;
    height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }
  .create-head .help-btn {
    grid-column: 2;
    grid-row: 2;
    width: 74px;
    height: 38px;
    justify-content: center;
    padding: 0 10px;
    white-space: nowrap;
  }
  .create-card { display: flex; flex-direction: column; }
  .create-main-row { grid-template-columns: minmax(0, 1fr) 176px; }
  .create-limit { order: 2; }
  .create-flags {
    order: 3;
    gap: 14px;
    margin-top: 9px;
    padding-top: 0;
    border-top: 0;
  }
  .create-flags label {
    gap: 5px;
    font-size: 14px;
  }
  .create-flags b {
    font-size: 14px;
  }
  .create-flags span { display: none; }
  .remark-label {
    order: 4;
    margin-top: 8px;
  }
  .create-workspace { grid-template-columns: 1fr; }
  .formula-tools {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70;
    width: 100%; margin: 0; border-left: 0; border-right: 0; border-bottom: 0;
    border-radius: 14px 14px 0 0;
  }
  .formula-tools.collapsed {
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(31,78,103,.08);
  }
  .formula-tools.collapsed .collapse-tools {
    height: 48px;
    border-top: 0;
    background: #f4f8fb;
    color: #526274;
    font-size: 13px;
  }
  .formula-tools:not(.collapsed) .collapse-tools {
    height: 48px;
    border-top: 1px solid #e7eef4;
    background: #f4f8fb;
    color: #526274;
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  body { font-size: 11px; }
  .shell { width: calc(100% - 14px); }
  .topbar, .topbar-inner { height: 46px; }
  .topbar-inner { gap: 9px; }
  .logo { gap: 6px; }
  .logo span { width: 29px; height: 29px; font-size: 11px; }
  .logo span img { width: 29px; height: 29px; }
  .main-nav a, .main-nav button { padding: 0 7px; font-size: 12px; }
  .user-menu > button { min-width: 92px; height: 32px; padding: 0 7px; grid-template-columns: 15px minmax(0, 1fr) 12px; gap: 5px; }
  .user-menu > button span { line-height: 32px; }
  .user-dropdown { top: 38px; width: 146px; }
  .page { padding-top: 8px; padding-bottom: 12px; }
  .create-main-row { grid-template-columns: minmax(0, 1fr) 154px; gap: 9px; }
  .create-head .create-nav { max-width: calc(100vw - 96px); }
  .create-head .create-nav a {
    min-width: 78px;
    padding: 0 7px;
  }
  .create-head .help-btn {
    width: 62px;
    padding: 0 8px;
  }
  .create-head .help-btn .ui-icon { width: 14px; height: 14px; }
  .ad-stack { gap: 7px; }
  .ad { min-height: 48px; }
  .ad strong { font-size: 14px; }
  .ad span { display: none; }
  .ad b { margin-left: auto; }
  .draw-panel { padding: 12px 11px 11px; }
  .panel-line { left: 16px; right: 16px; }
  .draw-title { gap: 8px; }
  .draw-title strong { font-size: 14px; }
  .draw-title span { margin-top: 3px; font-size: 12px; }
  .draw-actions { gap: 6px; }
  .draw-actions a, .draw-actions button { height: 31px; padding: 0 8px; gap: 5px; }
  .draw-actions span { font-size: 12px; }
  .draw-actions .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .draw-content { flex-direction: row; gap: 7px; margin-top: 13px; }
  .countdown { flex: 0 0 150px; min-width: 0; height: 48px; min-height: 48px; gap: 6px; padding: 5px 9px; border-width: 2px; border-radius: 7px; }
  .countdown > .ui-icon { width: 16px; height: 16px; }
  .countdown div { font-size: 11px; }
  .countdown div em { margin-left: 3px; font-size: 10px; }
  .countdown strong { font-size: 16px; }
  .countdown.maintenance div span,
  .countdown.maintenance div em { font-size: 9px; }
  .countdown.maintenance strong { font-size: 15px; }
  .scratch-wrap { flex: 1 1 auto; min-width: 0; width: auto; }
  .equation { width: 100%; height: 48px; min-height: 48px; gap: 4px; padding: 5px 6px; }
  .equation b, .equation strong { width: 29px; height: 33px; flex: 0 0 29px; border-radius: 7px; font-size: 16px; }
  .equation strong { font-size: 19px; }
  .equation i { flex: 0 0 9px; font-size: 15px; text-align: center; }
  .equation > em { min-width: 23px; height: 26px; padding: 0 5px; font-size: 10px; }
  .feature-banner .feature-mark { padding: 6px 10px; font-size: 20px; }
  .feature-banner strong { font-size: 15px; }
  .quick-grid { gap: 7px; margin-top: 8px; margin-bottom: 8px; }
  .hall-panel, .user-panel { margin-top: 8px; padding: 7px; }
  .algorithm-detail { margin-top: 8px; padding: 7px; }
  .hall-toolbar { grid-template-columns: 124px minmax(0, 1fr); gap: 8px; padding: 10px 10px 8px; }
  .hall-filter { display: contents; }
  .hall-filter button, .hall-search, .hall-favorite { height: 34px; min-width: 0; padding: 0 9px; font-size: 11px; }
  #typeFilter { grid-column: 1; grid-row: 1; }
  #sortFilter { grid-column: 2; grid-row: 1; }
  .hall-favorite { grid-column: 1; grid-row: 2; }
  .hall-search { grid-column: 2; grid-row: 2; min-width: 0; }
  .hall-section-nav { grid-column: 1 / -1; grid-row: 3; width: 100%; justify-content: space-between; }
  .hall-section-nav a { height: 31px; padding: 0 9px; font-size: 10px; }
  .hall-search input { font-size: 11px; }
  .hall-menu { top: 51px; width: 124px; }
  #typeMenu { left: 10px; }
  #sortMenu { left: 142px; width: 160px; }
  .hall-menu button { height: 34px; font-size: 12px; }
  .algorithm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 10px 10px; }
  .algorithm-card { padding: 9px 8px 7px; border-radius: 12px; }
  .algo-id { padding: 2px 5px; font-size: 9px; }
  .collect-btn { height: 23px; padding: 0 5px; font-size: 9px; }
  .collect-btn .ui-icon { width: 11px; height: 11px; }
  .algo-title strong { padding: 3px 5px; font-size: 12px; }
  .algo-title time { font-size: 9px; }
  .algo-rates { grid-template-columns: 46px 46px 1fr; gap: 3px 5px; margin-top: 10px; }
  .algo-rates section b { width: 42px; height: 42px; font-size: 12px; }
  .algo-rates section span, .algo-rates div span { font-size: 9px; }
  .algo-rates div { grid-template-columns: 28px 1fr; min-height: 18px; gap: 4px; }
  .algo-rates div strong { font-size: 10px; }
  .algo-streaks { gap: 5px; }
  .algo-streaks span { padding: 7px 2px; }
  .algo-streaks b { font-size: 12px; }
  .algo-streaks small { font-size: 9px; }
  .algorithm-card p { font-size: 9px; }
  .algorithm-card footer { margin: 0 -8px -7px; padding: 6px 8px; }
  .author-btn, .view-btn { height: 24px; font-size: 10px; }
  .hall-pages { padding-top: 10px; }
  .user-hero { padding: 12px; gap: 9px; }
  .user-avatar { width: 40px; height: 40px; }
  .user-hero strong { font-size: 16px; }
  .user-hero span { font-size: 11px; }
  .user-hero a { padding: 7px 9px; font-size: 11px; }
  .user-stats { gap: 7px; margin-top: 8px; }
  .user-stats article { padding: 10px; }
  .user-stats strong { font-size: 16px; }
  .user-tabs { gap: 6px; margin-top: 8px; padding: 6px; }
  .user-tabs a { height: 38px; font-size: 12px; }
  .user-grid { gap: 8px; margin-top: 8px; }
  .user-card { padding: 12px; }
  .user-card h3 { font-size: 14px; }
  .user-subnav a { height: 32px; font-size: 10px; gap: 3px; }
  .my-algo-toolbar { gap: 6px; padding: 6px; }
  .my-algo-toolbar a { min-width: 0; height: 29px; padding: 0 9px; font-size: 10px; }
  .my-algo-list { gap: 8px; margin-top: 8px; }
  .my-algo-list article { padding: 10px; }
  .my-algo-list h3 { margin: 8px 0 6px; font-size: 13px; }
  .my-algo-list p { gap: 5px; font-size: 10px; }
  .my-algo-list > article > div span { padding: 7px 3px; }
  .my-algo-list strong { font-size: 14px; }
  .my-algo-list footer a { height: 27px; padding: 0 8px; font-size: 10px; }
  .reward-grid { gap: 8px; }
  .reward-grid article { padding: 10px; }
  .reward-grid h3 { font-size: 13px; }
  .reward-grid p { min-height: 0; font-size: 10px; }
  .reward-grid strong { font-size: 14px; }
  .reward-grid small { font-size: 9px; }
  .reward-card { padding: 10px; }
  .reward-card h3 { font-size: 13px; }
  .reward-steps { gap: 6px; }
  .reward-steps span { padding: 8px; font-size: 10px; }
  .reward-card p { font-size: 10px; }
  .user-inline-form { grid-template-columns: minmax(0, 1fr) 70px; gap: 6px; }
  .order-list span, .notice-list span { align-items: flex-start; flex-direction: column; gap: 3px; }
  .order-list em, .notice-list em { text-align: left; }
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero-card { padding: 12px; }
  .detail-hero-card strong { font-size: 17px; }
  .detail-hero-card p { font-size: 11px; }
  .detail-hero-card button { height: 31px; padding: 0 9px; font-size: 11px; }
  .detail-hero-card .detail-author-link { height: auto; padding: 0; font-size: inherit; }
  .detail-metrics { gap: 7px; margin-top: 8px; }
  .detail-metrics article { padding: 10px; }
  .detail-metrics strong { font-size: 18px; }
  .formula-card, .algo-records { margin-top: 8px; padding: 10px; }
  .algo-record-head, .algo-record-row { grid-template-columns: 64px 76px minmax(72px, 1fr) 52px 38px; gap: 4px; padding-left: 6px; padding-right: 6px; }
  .algo-record-head { font-size: 11px; }
  .algo-record-row { min-height: 42px; font-size: 11px; }
  .algo-record-row .prediction-pair { min-width: 30px; height: 22px; padding: 0 7px; font-size: 11px; }
  .algo-record-row .prediction-combo-badges b,
  .algo-record-row .prediction-double-groups b { min-width: 30px; height: 22px; padding: 0 7px; font-size: 11px; color: #fff; }
  .algorithm-create { gap: 9px; padding-bottom: 64px; }
  .create-head { gap: 8px; }
  .create-back { gap: 9px; font-size: 18px; }
  .create-back .ui-icon { width: 18px; height: 18px; }
  .create-nav { padding: 3px; }
  .create-nav a { height: 31px; padding: 0 9px; font-size: 10px; }
  .help-btn { height: 36px; padding: 0 12px; font-size: 12px; }
  .create-card, .steps-card { padding: 12px; border-radius: 14px; }
  .create-main-row { grid-template-columns: minmax(0, 1fr) 154px; gap: 8px; }
  .algo-name-input, .algo-type-select { height: 42px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
  .create-flags { gap: 10px; margin-top: 8px; font-size: 12px; }
  .create-flags input { width: 18px; height: 18px; }
  .remark-label span { font-size: 12px; }
  .remark-label textarea { min-height: 84px; padding: 12px; border-radius: 10px; font-size: 12px; }
  .steps-head { gap: 8px; margin-bottom: 10px; }
  .steps-head strong { font-size: 14px; }
  .steps-head div { gap: 5px; }
  .steps-head button { height: 30px; padding: 0 9px; font-size: 11px; }
  .step-item { padding: 12px; border-radius: 13px; }
  .step-item h4 { margin-bottom: 10px; font-size: 13px; }
  .step-placeholder { min-height: 42px; padding: 7px 9px; font-size: 12px; }
  .create-actions button, .button-link { height: 43px; border-radius: 8px; font-size: 15px; }
  .formula-tools { border-radius: 12px 12px 0 0; }
  .formula-tool-tabs button { height: 38px; font-size: 12px; }
  .formula-tool-panel { padding: 10px; }
  .operator-grid { gap: 5px; }
  .operator-grid button, .function-grid button, .draw-data-list button { min-height: 29px; border-radius: 7px; font-size: 11px; }
  .operator-grid button { font-size: 14px; }
  .function-grid { gap: 5px; margin-top: 8px; }
  .function-grid button { padding: 0 8px; }
  .draw-data-head, .draw-data-list > div { gap: 4px; grid-template-columns: 1.2fr repeat(4, .72fr); }
  .draw-data-list > div { padding: 5px; }
  .draw-data-list strong { font-size: 10px; }
  .draw-data-list button { width: 27px; height: 27px; min-height: 27px; }
  .collapse-tools { height: 36px; }
  .create-toast { top: 22px; min-height: 58px; padding: 10px 14px 10px 38px; font-size: 14px; }
  .create-toast::before { position: absolute; left: 14px; width: 20px; height: 20px; }
  .create-test-results { padding: 10px; }
  .test-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .test-summary article { min-height: 92px; padding: 9px; }
  .test-summary article:first-child strong { font-size: 29px; }
  .test-table > div:first-child,
  .test-table section p { grid-template-columns: 64px minmax(74px, 1fr) minmax(74px, 1fr) 34px; font-size: 12px; }
  .test-table section small { overflow-x: auto; white-space: nowrap; }
  .help-modal { align-items: flex-end; padding: 0; }
  .help-dialog { width: 100%; max-height: 88vh; border-radius: 16px 16px 0 0; padding: 16px; }
  .auth-page { min-height: auto; padding: 28px 0 70px; }
  .auth-card { padding: 18px; border-radius: 14px; }
  .auth-card-line { inset-inline: 18px; }
  .auth-brand { gap: 11px; margin-bottom: 16px; }
  .auth-brand > span { width: 42px; height: 42px; border-width: 2px; }
  .auth-brand strong { font-size: 20px; }
  .auth-brand p { font-size: 12px; }
  .auth-tabs { margin-bottom: 13px; }
  .auth-tabs a { height: 35px; font-size: 13px; }
  .auth-form { gap: 11px; }
  .auth-input, .auth-form button { height: 42px; border-radius: 10px; }
  .auth-form input { height: 100%; }
  .captcha-field div { grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
  .captcha-image { height: 42px; border-radius: 10px; }
  .auth-switch, .auth-links { font-size: 12px; }
  .quick-grid article { height: 63px; min-height: 63px; gap: 8px; padding: 8px; border-radius: 7px; }
  .quick-real { gap: 8px; }
  .quick-icon { width: 30px; height: 30px; border-radius: 7px; }
  .quick-icon .ui-icon { width: 17px; height: 17px; }
  .quick-grid small, .quick-grid p { line-height: 1.25; }
  .quick-grid p { margin-top: 3px; }
  .tag { padding: 2px 5px; font-size: 10px; }
  .mini-stat { min-width: 28px; padding: 2px 4px; font-size: 9px; }
  .mini-stat em { font-size: 8px; }
  .tabs { padding: 4px; }
  .tabs button { min-height: 42px; padding: 4px 2px; font-size: 11px; line-height: 1.15; }
  .tabs button .ui-icon { width: 15px; height: 15px; flex-basis: 15px; }
  th, td { height: 36px; padding: 5px 6px; font-size: 11px; }
  .badge { min-width: 24px; height: 24px; padding: 0 6px; font-size: 11px; }
  .tab-panel { padding: 6px; }
  .keno-row header { gap: 5px; margin-bottom: 17px; }
  .keno-row header > div:first-child { gap: 5px; }
  .keno-row header > div:first-child strong { font-size: 11px; }
  .keno-row header span { font-size: 9px; }
  .keno-result { gap: 3px; }
  .keno-result > b { font-size: 11px; }
  .keno-result > strong { width: 27px; height: 27px; font-size: 14px; }
  .keno-result .badge { min-width: 23px; height: 23px; padding: 0 4px; font-size: 10px; }
  .keno-result button { margin-left: 3px; font-size: 10px; }
  .keno-row header span { display: inline; }
  .keno-balls { gap: 12px 4px; }
  .keno-balls i { width: 29px; height: 29px; flex-basis: 29px; font-size: 11px; }
  .keno-balls i small { top: -12px; font-size: 8px; }
  .keno-calculation { padding: 8px 9px; overflow: hidden; }
  .calc-line {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
    grid-template-rows: auto auto;
    gap: 3px 5px;
    min-width: 0;
    min-height: 50px;
    padding: 4px 0;
    font-size: 10px;
  }
  .calc-line > span { grid-column: 1; grid-row: 1; padding: 4px 6px; }
  .calc-line > small { grid-column: 2 / -1; grid-row: 1; min-width: 0; }
  .calc-line > b { grid-column: 1 / 3; grid-row: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .calc-line > i { grid-column: 3; grid-row: 2; }
  .calc-line > strong { grid-column: 4; grid-row: 2; }
  .calc-line > em { grid-column: 5; grid-row: 2; }
  .calc-line > mark { grid-column: 6; grid-row: 2; width: 25px; height: 25px; }
  .calc-total { min-width: 0; margin-top: 4px; font-size: 12px; }
  .subtabs button { min-width: 0; flex: 1; padding: 8px 5px; }
  .number-toolbar { align-items: flex-start; gap: 9px; flex-direction: column; }
  .number-toolbar label { width: 100%; justify-content: flex-end; font-size: 11px; }
  .number-picker { padding: 9px; }
  .number-picker > div { gap: 4px; }
  .number-picker button { height: 29px; font-size: 11px; }
  .number-summary { padding: 8px 10px; font-size: 11px; }
  .analysis-grid { grid-template-columns: 1fr 1fr; }
  .number-core { padding: 0 8px 9px; }
  .number-core > h3 { margin: 0 -8px 8px; padding: 9px 10px 8px 21px; font-size: 13px; }
  .number-core > h3::before { left: 10px; }
  .number-hero-metric { gap: 8px; padding: 5px 0; }
  .number-hero-metric > span { width: 36px; height: 36px; font-size: 15px; }
  .analysis-grid { gap: 5px; }
  .analysis-grid article { min-height: 58px; padding: 7px; }
  .analysis-grid small, .analysis-grid span { font-size: 9px; }
  .analysis-grid strong { font-size: 15px; }
  .next-trend-grid { gap: 5px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next-trend-grid article { min-height: 66px; padding: 8px 6px; }
  .next-trend-grid strong { font-size: 18px; }
  .abc-charts { gap: 7px; }
  .abc-charts > div { padding: 9px; }
  .digit-bars div { min-height: 21px; }
  .recovery-grid { gap: 5px; }
  .recovery-grid article { padding: 10px 6px; }
  .association-sections { gap: 6px; }
  .association-sections article { padding: 9px; }
  .bias-grid article { padding: 9px 5px; }
  .relation-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
  .relation-metrics article { padding: 7px 6px; }
  .relation-metrics strong { font-size: 14px; }
  .association-sections article > div { grid-template-columns: repeat(5, 1fr); }
  .bias-grid { grid-template-columns: repeat(2, 1fr); }
  .prediction-table-head,
  .prediction-list > div {
    grid-template-columns: 1.05fr 1.2fr 1.45fr .82fr .66fr;
    justify-content: stretch;
    column-gap: 0;
    padding: 7px 5px;
    font-size: 11px;
  }
  .prediction-table-head span,
  .prediction-list > div > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prediction-list .prediction-value {
    overflow: visible;
    justify-self: center;
  }
  .prediction-combo-badges { gap: 5px; }
  .prediction-combo-badges b { min-width: 31px; height: 22px; padding: 0 7px; font-size: 11px; font-weight: 500; }
  .prediction-double-groups { gap: 4px; }
  .prediction-double-groups b { min-width: 30px; height: 22px; padding: 0 7px; font-size: 11px; font-weight: 500; }
  .prediction-list .prediction-pair {
    min-width: 0;
    max-width: none;
    height: 22px;
    padding: 0 7px;
    font-size: 11px;
  }
  .missing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cols-2 .metric-grid, .metric-cols-2 .stat-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cols-3 .metric-grid, .metric-cols-3 .stat-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sum-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-head nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .stats-head nav a { min-width: 0; }
  .stats-head input { width: 100%; grid-column: 1 / -1; }
  .stat-type-grid > span { min-height: 43px; padding: 5px 0; }
  .sum-stats > span { min-height: 42px; padding: 5px 0; }
  .tabs button { min-height: 50px; padding: 5px 3px; white-space: normal; line-height: 1.25; text-align: center; }
  .tabs button .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .bottom-actions { width: 100%; gap: 5px; margin-top: 14px; padding: 6px 4px; }
  .bottom-actions button,
  .bottom-actions a { flex: 1; padding: 0 4px; font-size: 10px; }
  .bottom-actions button + button::before,
  .bottom-actions button + a::before,
  .bottom-actions a + button::before,
  .bottom-actions a + a::before { left: -3px; }
  .bottom-actions .ui-icon { width: 12px; height: 12px; flex-basis: 12px; }
  .legal-page { margin-top: 12px; padding: 8px 16px 18px; }
  .legal-standalone .legal-page { margin-top: 0; padding-top: 30px; }
  .legal-back { margin-bottom: 18px; font-size: 13px; }
  .legal-page h2 { margin-bottom: 20px; font-size: 21px; }
  .legal-page h2 .ui-icon { width: 23px; height: 23px; }
  .legal-page article { margin-bottom: 20px; }
  .legal-page h3 { margin-bottom: 8px; font-size: 16px; }
  .legal-page p { font-size: 13px; line-height: 1.66; }
  .legal-note { font-size: 11px !important; }
  .feedback-page { margin-top: 12px; padding: 0 12px 18px; }
  .feedback-card { padding: 14px; border-radius: 12px; }
  .feedback-card h2 { font-size: 20px; }
  .feedback-form { grid-template-columns: 1fr; gap: 10px; }
  .feedback-form textarea { min-height: 132px; }
  .top-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .top .nav { margin-left: 0; }
  .admin-shell { margin: 14px auto; padding: 0 12px; }
  .admin-shell .grid,
  .admin-hero { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-settings { grid-template-columns: 1fr; }
  .feedback-admin-card footer { flex-direction: column; gap: 3px; }
  .ai-drawer { left: 16px; right: 16px; bottom: 66px; width: auto; height: min(650px, calc(100vh - 92px)); max-width: none; border-radius: 14px; transform: none; }
  .ai-drawer.open:not(.wide) { left: 16px; top: auto; right: 16px; bottom: 66px; width: auto; height: min(650px, calc(100vh - 92px)); border-radius: 14px; transform: none; }
  .ai-drawer.wide { left: 0; right: 0; top: 0; bottom: 0; width: 100vw; height: 100vh; border-radius: 0; transform: none; }
  .ai-options { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .ai-body { padding: 14px 12px; }
  .ai-drawer form { padding: 10px 12px 14px; grid-template-columns: minmax(0, 1fr) 46px; }
  .ai-fab-wrap { right: 12px; bottom: 12px; }
  .ai-nudge { right: 12px; bottom: 68px; width: min(220px, calc(100vw - 24px)); padding: 9px 34px 9px 12px; font-size: 11px; }
}
@media (max-width: 390px) {
  .draw-content { flex-direction: column; }
  .countdown { flex-basis: auto; min-width: 150px; }
  .scratch-wrap { width: min(100%, 310px); }
}

.user-dropdown button.menu-plain {
  width: 100%; min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 11px;
  border: 0; color: #111827; background: #fff; font-size: 14px; text-align: left; cursor: pointer;
}
.user-dropdown button.menu-plain:hover { background: #f4f9fc; }
.hall-section-nav button.nav-plain,
.user-tabs button.tab-plain {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; cursor: pointer;
}
.hall-section-nav button.nav-plain {
  height: 34px; padding: 0 12px; border-radius: 17px; color: #445367; background: transparent; font-size: 12px;
}
.user-tabs button.tab-plain {
  height: 42px; border-radius: 7px; color: #4d5e72; background: #fff; font-weight: 800; box-shadow: 0 1px 4px rgba(31,78,103,.08);
}
.button-link.light.reward-rule-trigger { border: 0; cursor: pointer; }
.my-algo-status {
  margin-top: 8px; padding: 10px 12px; border: 1px solid #dfe8ef; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 8px rgba(31,78,103,.05);
}
.my-algo-status header { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-height: 25px; }
.my-algo-status header > span { height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 10px; color: #526274; background: #eef3f7; font-size: 11px; font-weight: 900; }
.my-algo-status p { margin: 0; color: #6d7887; font-size: 12px; }
.my-algo-status p b { color: #00a66f; }
.my-algo-status button {
  margin-left: auto; height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px;
  border: 0; border-radius: 12px; color: #ff8a00; background: #fff3e0; font-size: 11px; font-weight: 900; cursor: pointer;
}
.my-algo-status button .ui-icon { width: 13px; height: 13px; }
.my-algo-status header > em { color: #ef3347; font-size: 11px; font-style: normal; font-weight: 900; }
.my-algo-status > div { display: flex; align-items: center; gap: 8px 13px; flex-wrap: wrap; margin-top: 8px; color: #526274; font-size: 12px; }
.my-algo-status > div span { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.my-algo-status > div span.has-created b,
.my-algo-status > div span.has-created [data-quota-created] { color: #142338; }
.my-algo-status > div span.has-public i,
.my-algo-status > div span.has-public [data-quota-public] { color: #00a56f; }
.my-algo-status > div b { color: #526274; }
.my-algo-status > div em { color: #142338; font-style: normal; font-weight: 900; }
.my-algo-status > div i { color: #00a56f; font-style: normal; font-weight: 900; }
.my-algo-toolbar button.reward-rule-trigger {
  min-width: 72px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border: 0; border-radius: 16px; color: #607287; background: #eef4f8; font-weight: 800; cursor: pointer;
}
.page-title {
  margin: 0 0 12px;
  color: #111f32;
  font-size: 22px;
  font-weight: 900;
}
.user-settings-page {
  display: grid;
  gap: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.profile-card {
  padding: 22px;
  border: 1px solid #e5edf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(31,78,103,.06);
}
.profile-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #142338;
  font-size: 18px;
}
.profile-card h3 .ui-icon { color: #08aade; }
.profile-card h3 span {
  padding: 3px 8px;
  border-radius: 12px;
  color: #647286;
  background: #f1f4f7;
  font-size: 12px;
}
.member-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.member-info-grid section {
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f9fb;
}
.member-info-grid .ui-icon { grid-row: span 2; color: #718093; }
.member-info-grid span { color: #7c8795; font-size: 12px; }
.member-info-grid strong { color: #263447; font-size: 14px; }
.member-info-grid strong.expired { color: #ff3347; }
.member-info-grid strong.ok { color: #0db978; }
.renew-row {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.renew-row label { color: #263447; font-weight: 800; }
.renew-row div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
}
.renew-row input,
.profile-form input,
.profile-form textarea {
  height: 44px;
  border: 1px solid #dfe8ef;
  border-radius: 10px;
  color: #263447;
  background: #fafcfe;
  font-size: 14px;
}
.renew-row button,
.save-profile {
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #08aade;
  font-weight: 900;
  cursor: pointer;
}
.renew-row p { margin: 0; color: #77869a; font-size: 12px; }
.renew-row a { color: #08aade; font-weight: 800; }
.profile-user-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.profile-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px solid #a9edff;
  border-radius: 50%;
  color: #08aade;
  background: #e9faff;
  font-size: 32px;
  font-weight: 900;
}
.avatar-upload-form {
  margin: 0;
}
.profile-avatar {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar input {
  display: none;
}
.profile-avatar::after {
  content: "上传";
  position: absolute;
  inset: auto 0 0;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(8, 170, 222, .78);
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transition: .18s;
}
.profile-avatar:hover::after {
  opacity: 1;
}
.profile-user-head strong { color: #263447; font-size: 18px; }
.profile-user-head span {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 10px;
  color: #647286;
  background: #f1f4f7;
  font-size: 11px;
  font-weight: 900;
}
.profile-user-head p { margin: 4px 0; color: #657386; }
.profile-user-head button {
  border: 0;
  color: #08aade;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.profile-form { display: grid; gap: 14px; }
.profile-form label { display: grid; gap: 7px; }
.profile-form label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #35475d;
  font-weight: 800;
}
.profile-form em { color: #7f8b9a; font-size: 12px; font-style: normal; font-weight: 600; }
.profile-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}
.privacy-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f9fc;
}
.privacy-toggle > div { display: flex; align-items: center; gap: 10px; }
.privacy-toggle .ui-icon { color: #08aade; }
.privacy-toggle b { display: block; color: #142338; }
.privacy-toggle small { display: block; color: #657386; }
.privacy-toggle label { width: 44px; height: 24px; position: relative; display: block; }
.privacy-toggle input { display: none; }
.privacy-toggle i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d2d8de;
}
.privacy-toggle i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: .2s;
}
.privacy-toggle input:checked + i { background: #08aade; }
.privacy-toggle input:checked + i::before { transform: translateX(20px); }
.save-profile {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 16px;
}

.user-algorithm-page {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.user-algorithm-page .my-algo-status {
  border-radius: 14px;
}
.my-algo-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #8692a1;
}
.my-algo-filter-row span {
  width: 34px;
  flex: 0 0 34px;
  color: #96a0ad;
}
.my-algo-filter-row button {
  height: 38px;
  min-width: 62px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: #607084;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.my-algo-filter-row button.active {
  color: #fff;
  background: #08aade;
  box-shadow: 0 4px 10px rgba(8,170,222,.18);
}
.my-algo-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 20px;
  background: #f3f7fa;
}
.my-algo-switch button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 17px;
  color: #6a7685;
  background: transparent;
  cursor: pointer;
}
.my-algo-switch button.active {
  color: #263447;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31,78,103,.08);
}
.my-section[hidden] {
  display: none !important;
}
.my-notice-empty {
  min-height: 235px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 34px 18px;
  border: 1px solid #dfe8ef;
  border-radius: 14px;
  background: #fff;
  color: #9aa5b1;
  text-align: center;
  box-shadow: 0 2px 10px rgba(31,78,103,.06);
}
.my-notice-empty i {
  color: #c3c8cf;
  font-style: normal;
}
.my-notice-empty i .ui-icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.7;
}
.my-notice-empty strong {
  color: #35475d;
  font-size: 16px;
}
.my-notice-empty span {
  color: #9aa5b1;
  font-size: 13px;
}
.my-notice-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.my-notice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.my-notice-actions button,
.notice-delete {
  border: 0;
  border-radius: 999px;
  background: #eef7fb;
  color: #08aade;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  cursor: pointer;
}
.my-notice-actions button:hover,
.notice-delete:hover {
  background: #dff4fb;
}
.notice-dot {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3348;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
  margin-left: 4px;
}
.my-notice-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: center;
  position: relative;
  padding: 10px 12px;
  border: 1px solid #dfe8ef;
  border-radius: 12px;
  background: #fbfdff;
  color: #172335;
}
.my-notice-item.unread {
  border-color: rgba(0, 174, 226, .32);
  background: linear-gradient(180deg, #f2fbff 0%, #fff 100%);
}
.notice-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  align-self: start;
  margin-top: 3px;
}
.notice-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-right: 86px;
  text-decoration: none;
}
.notice-state {
  position: absolute;
  top: 8px;
  right: 122px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e7f9ff;
  color: #08aade;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.my-notice-item b { color: #08aade; font-size: 13px; }
.my-notice-item span { color: #667386; font-size: 12px; line-height: 1.5; }
.my-notice-item em {
  position: absolute;
  top: 12px;
  right: 66px;
  color: #9aa6b2;
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
  white-space: nowrap;
}
.my-notice-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31,78,103,.05);
}
.my-notice-card > i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #08aade;
  background: #e9faff;
  font-style: normal;
}
.my-notice-card.orange > i {
  color: #ff8700;
  background: #fff2df;
}
.my-notice-card.gray > i {
  color: #7e8b9c;
  background: #f1f4f7;
}
.my-notice-card .ui-icon {
  width: 18px;
  height: 18px;
}
.my-notice-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.my-notice-card header b {
  color: #08aade;
  font-size: 12px;
}
.my-notice-card.orange header b {
  color: #ff8700;
}
.my-notice-card.gray header b {
  color: #6b7787;
}
.my-notice-card time {
  margin-left: auto;
  color: #a4aeb9;
  font-size: 11px;
}
.my-notice-card strong {
  display: block;
  color: #142338;
  font-size: 14px;
}
.my-notice-card p {
  margin: 5px 0 0;
  color: #718093;
  font-size: 12px;
  line-height: 1.55;
}
.my-algo-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid #e5edf3;
  border-radius: 16px;
  background: #fff;
  color: #7f8b9a;
  box-shadow: 0 2px 12px rgba(31,78,103,.06);
}
.my-algo-empty a {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-radius: 10px;
  color: #fff;
  background: #08aade;
  font-weight: 900;
}
.my-algo-card {
  max-width: 260px;
  border-color: #12c984 !important;
  border-radius: 16px !important;
}
.my-algo-card header b {
  padding: 3px 8px;
  border-radius: 10px;
  color: #00a36f;
  background: #dff8ec;
  font-size: 11px;
}
.my-algo-card header i {
  color: #a6b0bd;
  font-style: normal;
}
.my-algo-card header i.delete { color: #ff7b87; }
.my-algo-card h3 {
  display: inline-block;
  margin: 8px 0 10px !important;
  padding: 3px 7px;
  border-radius: 4px;
  color: #c45500 !important;
  background: #fff0de;
}
.my-algo-rate {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1.2fr !important;
  gap: 8px;
  border: 0 !important;
  border-radius: 0 !important;
}
.my-algo-rate section {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.my-algo-rate section b {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00a86f;
  background: radial-gradient(circle, #fff 0 58%, transparent 59%), conic-gradient(#05bf83 var(--rate-deg, 0deg), #eef3f6 0);
  font-size: 15px;
}
.my-algo-rate section:first-child b {
  color: #f2a400;
  background: radial-gradient(circle, #fff 0 58%, transparent 59%), conic-gradient(#ffae1c var(--rate-deg, 0deg), #eef3f6 0);
}
.my-algo-rate p {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 5px 8px !important;
  margin: 0 !important;
  font-size: 10px !important;
}
.my-algo-rate p strong { color: #263447; font-size: 11px; }
.my-algo-mini-stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  margin-top: 8px;
  border: 0 !important;
}
.my-algo-mini-stats span {
  padding: 4px 2px !important;
  border: 0 !important;
  background: transparent !important;
}
.my-algo-mini-stats strong.muted { color: #b5bdc7; }
.my-algo-max {
  display: flex !important;
  justify-content: space-around !important;
  margin: 7px 0 0 !important;
  color: #8b95a2 !important;
  font-size: 10px !important;
}
.my-algo-card footer {
  margin-top: 10px !important;
}
.my-algo-card footer span,
.my-algo-card footer em,
.my-algo-card footer a,
.my-algo-card footer button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 0;
  border-radius: 14px;
  color: #607084;
  background: #f4f8fb;
  font-size: 10px;
  font-style: normal;
  cursor: pointer;
}
.my-algo-card footer a {
  color: #0078ff;
  background: #edf6ff;
}
.my-algo-card footer button {
  color: #607084;
}
.reward-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 14px; background: rgba(8,18,30,.45); }
.reward-modal.open { display: flex; }
.reward-dialog { position: relative; width: min(760px, 100%); max-height: 86vh; overflow: auto; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(0,0,0,.2); }
.reward-dialog > h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: #142338; font-size: 17px; }
.reward-close {
  position: sticky; top: 0; z-index: 3; float: right; margin: -4px -4px 2px 8px;
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 50%; color: #607287; background: #eef4f8; font-size: 18px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(31,78,103,.08);
}
.reward-grid h4,
.reward-card h4 { margin: 0 0 8px; color: #142338; font-size: 15px; }

@media (max-width: 640px) {
  .my-algo-status { padding: 10px; }
  .my-algo-status header { gap: 6px; }
  .my-algo-status button { margin-left: 0; height: 26px; font-size: 10px; }
  .my-algo-status > div { gap: 8px; font-size: 10px; }
  .reward-dialog { max-height: 82vh; padding: 12px; border-radius: 12px; }
  .hall-panel .hall-section-nav { display: none; }
}

.algorithm-create .create-card,
.algorithm-create .steps-card,
.algorithm-create .create-test-results {
  padding: 12px;
  border-radius: 12px;
}
.algorithm-create .algo-name-input,
.algorithm-create .algo-type-select {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}
.algorithm-create .remark-label { gap: 6px; margin-top: 8px; }
.algorithm-create .remark-label span { font-size: 12px; }
.algorithm-create .remark-label textarea {
  min-height: 78px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}
.algorithm-create .create-flags {
  gap: 14px;
  margin-top: 8px;
  padding-top: 7px;
  font-size: 12px;
}
.algorithm-create .create-flags label {
  gap: 5px;
  align-items: center;
}
.algorithm-create .create-flags input {
  width: 16px;
  height: 16px;
}
.algorithm-create .create-flags b {
  font-size: 13px;
}
.algorithm-create .create-flags span {
  font-size: 10px;
  line-height: 1.25;
}
.algorithm-create .steps-head { margin-bottom: 8px; }
.algorithm-create .steps-head strong { font-size: 13px; }
.algorithm-create .steps-head button {
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  font-size: 11px;
}
.algorithm-create .step-list { gap: 8px; }
.algorithm-create .step-item {
  padding: 10px;
  border-radius: 11px;
}
.algorithm-create .step-item h4 {
  margin-bottom: 8px;
  font-size: 12px;
}
.algorithm-create .step-item small,
.algorithm-create .step-explain,
.algorithm-create .step-result small {
  font-size: 10px;
}
.algorithm-create .step-placeholder {
  min-height: 36px;
  padding: 6px 8px;
  gap: 5px;
  border-radius: 8px;
  font-size: 11px;
}
.algorithm-create .formula-chip {
  min-width: 25px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
}
.algorithm-create .formula-chip.op {
  min-width: 23px;
  padding: 0 6px;
}
.algorithm-create .formula-remove {
  font-size: 15px;
}
.algorithm-create .step-result {
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  font-size: 11px;
}
.algorithm-create .step-result span {
  min-width: 30px;
  height: 20px;
  border-radius: 5px;
}
.algorithm-create .step-result strong {
  font-size: 13px;
}
.algorithm-create .create-actions {
  gap: 8px;
}
.algorithm-create .create-actions button {
  height: 40px;
  border-radius: 7px;
  font-size: 14px;
}
.algorithm-create .scheme-tabs { gap: 8px; }
.algorithm-create .scheme-tabs button {
  height: 40px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .algorithm-create .create-card,
  .algorithm-create .steps-card,
  .algorithm-create .create-test-results {
    padding: 10px;
  }
  .algorithm-create .create-main-row {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 7px;
  }
  .algorithm-create .algo-name-input,
  .algorithm-create .algo-type-select {
    height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }
  .algorithm-create .remark-label textarea {
    min-height: 68px;
    font-size: 11px;
  }
  .algorithm-create .create-flags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 7px;
  }
  .algorithm-create .create-flags label {
    min-width: 0;
    padding: 0;
  }
  .algorithm-create .create-flags span {
    display: none;
  }
  .algorithm-create .step-placeholder {
    min-height: 34px;
  }
  .algorithm-create .create-actions button {
    height: 38px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  body { font-size: 12px; }
  .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .page { padding-top: 10px; }
  .draw-panel,
  .toolbox,
  .hall-panel,
  .algorithm-detail,
  .user-panel,
  .create-card,
  .steps-card,
  .create-test-results,
  .number-core,
  .missing-sections article,
  .stats-sections article {
    border-radius: 7px;
  }
  .draw-title strong { font-size: 15px; }
  .draw-title span { font-size: 13px; }
  .draw-actions a,
  .draw-actions button {
    height: 33px;
    padding: 0 9px;
    font-size: 12px;
  }
  .countdown { height: 52px; min-height: 52px; }
  .countdown strong { font-size: 16px; }
  .equation { height: 52px; min-height: 52px; }
  .equation b,
  .equation strong {
    width: 34px;
    height: 36px;
    font-size: 18px;
  }
  .equation strong { font-size: 20px; }
  .equation i { font-size: 15px; }
  .quick-grid article {
    height: 64px;
    min-height: 64px;
    padding: 8px 9px;
    gap: 8px;
  }
  .quick-icon { width: 31px; height: 31px; }
  .quick-icon .ui-icon { width: 17px; height: 17px; }
  .tabs button {
    min-height: 42px;
    gap: 5px;
    font-size: 11px;
  }
  th,
  td {
    height: 36px;
    padding: 5px 6px;
    font-size: 11px;
  }
  .badge {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 11px;
  }
  .keno-row header > div:first-child strong,
  .keno-result > b { font-size: 12px; }
  .keno-result > strong {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .keno-balls i {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 11px;
  }
  .number-core > h3,
  .missing-sections h3,
  .stats-sections h3 {
    font-size: 13px;
  }
  .stat-badge,
  .sum-stats i,
  .tag { font-size: 10px; }
  .stat-type-grid b,
  .sum-stats b,
  .missing-sections b { font-size: 11px; }
  .stat-type-grid small,
  .sum-stats small,
  .metric-head { font-size: 9px; }
  .hall-toolbar { gap: 8px; }
  .hall-filter button,
  .hall-search,
  .hall-favorite {
    height: 33px;
    font-size: 11px;
  }
  .hall-section-nav a {
    height: 32px;
    font-size: 10px;
  }
  .algorithm-card { padding: 9px 8px 7px; }
  .algo-title strong { font-size: 12px; }
  .algo-rates section b {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }
  .user-hero strong { font-size: 16px; }
  .user-card h3 { font-size: 14px; }
  .detail-hero-card strong { font-size: 17px; }
  .detail-metrics strong { font-size: 18px; }
  .create-back,
  .create-back span { font-size: 18px; }
  .create-back em { font-size: 14px; }
  .create-head .create-nav a {
    height: 32px;
    min-width: 78px;
    font-size: 10px;
  }
  .create-head .help-btn {
    height: 34px;
    font-size: 11px;
  }
  .algo-name-input,
  .algo-type-select {
    height: 40px;
    padding: 0 11px;
    font-size: 12px;
  }
  .remark-label textarea {
    min-height: 78px;
    padding: 10px 11px;
    font-size: 12px;
  }
  .scheme-tabs button {
    height: 39px;
    font-size: 13px;
  }
  .steps-head strong { font-size: 13px; }
  .steps-head button {
    height: 29px;
    padding: 0 8px;
    font-size: 10px;
  }
  .step-item { padding: 10px; }
  .step-item h4 { font-size: 12px; }
  .formula-chip {
    min-width: 28px;
    height: 23px;
    padding: 0 6px;
    font-size: 12px;
  }
  .step-result {
    gap: 6px;
    font-size: 12px;
  }
  .step-result span {
    min-width: 32px;
    height: 21px;
  }
  .step-result strong { font-size: 14px; }
  .create-actions button,
  .button-link {
    height: 40px;
    font-size: 14px;
  }
  .test-summary article:first-child strong { font-size: 26px; }
  .test-summary b { font-size: 15px; }
}

@media (max-width: 640px) {
  body { font-size: 10.5px; }
  .shell { width: calc(100% - 12px); }
  .main-nav a,
  .main-nav button {
    padding: 0 6px;
    font-size: 11px;
  }
  .user-menu > button {
    min-width: 86px;
    height: 30px;
    font-size: 11px;
  }
  .draw-panel { padding: 11px 10px 10px; }
  .draw-content { gap: 6px; }
  .countdown {
    flex-basis: 140px;
    height: 46px;
    min-height: 46px;
    padding: 4px 7px;
  }
  .countdown div { font-size: 10px; }
  .countdown strong { font-size: 15px; }
  .equation {
    height: 46px;
    min-height: 46px;
    gap: 3px;
    padding: 4px 5px;
  }
  .equation b,
  .equation strong {
    width: 28px;
    height: 31px;
    flex-basis: 28px;
    font-size: 15px;
  }
  .equation strong { font-size: 18px; }
  .quick-grid { gap: 6px; }
  .quick-grid article {
    height: 58px;
    min-height: 58px;
    padding: 7px;
  }
  .quick-icon {
    width: 28px;
    height: 28px;
  }
  .quick-grid small,
  .quick-grid p,
  .mini-stat,
  .tag { font-size: 9px; }
  .tabs button {
    min-height: 42px !important;
    font-size: 10px;
  }
  .tabs button .ui-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
  th,
  td {
    height: 33px;
    padding: 4px 5px;
    font-size: 10px;
  }
  .keno-balls i {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    font-size: 10px;
  }
  .stats-head nav a,
  .number-picker button,
  .subtabs button { font-size: 10px; }
  .stat-type-grid > span,
  .sum-stats > span {
    min-height: 39px;
    padding: 4px 0;
  }
  .algorithm-list { gap: 7px; }
  .algorithm-card { border-radius: 10px; }
  .create-card,
  .steps-card,
  .create-test-results { padding: 10px; }
  .create-main-row {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 7px;
  }
  .algo-name-input,
  .algo-type-select {
    height: 38px;
    font-size: 11px;
  }
  .create-flags label,
  .remark-label span { font-size: 11px; }
  .scheme-tabs { gap: 8px; }
  .scheme-tabs button {
    height: 37px;
    font-size: 12px;
  }
  .step-placeholder {
    min-height: 38px;
    padding: 6px 8px;
    font-size: 11px;
  }
  .formula-chip {
    min-width: 26px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
  }
  .formula-remove { font-size: 16px; }
  .create-actions button,
  .button-link {
    height: 38px;
    font-size: 13px;
  }
  .formula-tool-tabs button {
    height: 34px;
    font-size: 11px;
  }
  .operator-grid button,
  .function-grid button,
  .draw-data-list button {
    min-height: 27px;
    font-size: 10px;
  }
  .draw-data-list button {
    width: 25px;
    height: 25px;
    min-height: 25px;
  }
  .test-table > div:first-child,
  .test-table section p {
    font-size: 10px;
  }
}

.user-algorithm-page .page-title,
.user-settings-page .page-title {
  margin: 0 0 10px;
  font-size: 20px;
}
.user-algorithm-page .my-algo-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}
.user-algorithm-page .my-algo-card {
  flex: 0 0 246px;
  max-width: 246px;
  padding: 12px;
  font-size: 12px;
}
.user-algorithm-page .my-algo-card header {
  gap: 5px;
}
.user-algorithm-page .my-algo-card header span {
  padding: 2px 6px;
  font-size: 10px;
}
.user-algorithm-page .my-algo-card header em {
  margin-left: auto;
  color: #a8b1bd;
  background: transparent;
  font-size: 10px;
  font-style: normal;
}
.user-algorithm-page .my-algo-card h3 {
  margin: 6px 0 8px !important;
  font-size: 14px;
}
.user-algorithm-page .my-algo-rate section b {
  width: 48px;
  height: 48px;
  border-width: 4px;
  font-size: 14px;
}
.user-algorithm-page .my-algo-rate section span,
.user-algorithm-page .my-algo-mini-stats small,
.user-algorithm-page .my-algo-max {
  font-size: 9px !important;
}
.user-algorithm-page .my-algo-mini-stats {
  margin-top: 6px;
}
.user-algorithm-page .my-algo-mini-stats span {
  gap: 1px;
}
.user-algorithm-page .my-algo-mini-stats strong {
  font-size: 13px;
}
.user-algorithm-page .my-algo-card footer {
  gap: 4px;
  flex-wrap: nowrap;
}
.user-algorithm-page .my-algo-card footer span,
.user-algorithm-page .my-algo-card footer em,
.user-algorithm-page .my-algo-card footer a,
.user-algorithm-page .my-algo-card footer button {
  height: 25px;
  padding: 0 7px;
  font-size: 9px;
}
.profile-card {
  padding: 18px;
}
.member-info-grid section {
  min-height: 54px;
  padding: 10px;
}
.profile-avatar {
  width: 70px;
  height: 70px;
  font-size: 28px;
}
.profile-form {
  gap: 11px;
}

@media (max-width: 640px) {
  .user-algorithm-page .page-title,
  .user-settings-page .page-title {
    font-size: 20px;
  }
  .user-algorithm-page .my-algo-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .user-algorithm-page .my-algo-card {
    flex-basis: 238px;
    max-width: 238px;
  }
  .my-algo-filter-row {
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .my-algo-filter-row button {
    min-width: 56px;
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }
  .member-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .profile-card {
    padding: 14px;
    border-radius: 14px;
  }
  .profile-user-head {
    gap: 12px;
    margin-bottom: 14px;
  }
  .profile-avatar {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }
  .renew-row div {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
}

.user-algorithm-page .my-algo-filter-row {
  flex-wrap: nowrap;
  overflow: visible;
}
.user-algorithm-page .my-algo-filter-row button {
  min-width: 52px;
  padding: 0 9px;
  white-space: nowrap;
}
.user-algorithm-page .my-algo-filter-row:nth-of-type(3) button {
  min-width: 68px;
}
.user-algorithm-page .my-algo-filter-row::-webkit-scrollbar,
.user-algorithm-page .my-algo-list::-webkit-scrollbar {
  display: none;
}
.user-algorithm-page .my-algo-card footer span,
.user-algorithm-page .my-algo-card footer em,
.user-algorithm-page .my-algo-card footer a,
.user-algorithm-page .my-algo-card footer button {
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 640px) {
  .user-algorithm-page .my-algo-filter-row {
    overflow: visible;
  }
  .user-algorithm-page .my-algo-filter-row span {
    width: 28px;
    flex-basis: 28px;
    font-size: 12px;
  }
  .user-algorithm-page .my-algo-filter-row button {
    min-width: 48px;
    height: 33px;
    padding: 0 8px;
    font-size: 12px;
  }
  .user-algorithm-page .my-algo-filter-row:nth-of-type(3) button {
    min-width: 63px;
  }
}

.user-algorithm-page {
  font-size: 11px;
}
.user-algorithm-page .page-title {
  font-size: 18px;
}
.user-algorithm-page .my-algo-status {
  font-size: 11px;
}
.user-algorithm-page .my-algo-status header > span,
.user-algorithm-page .my-algo-status button,
.user-algorithm-page .my-algo-status em {
  font-size: 10px;
}
.user-algorithm-page .my-algo-filter-row {
  font-size: 11px;
}
.user-algorithm-page .my-algo-filter-row button {
  height: 31px;
  min-width: 46px;
  padding: 0 7px;
  border-radius: 9px;
  font-size: 11px;
}
.user-algorithm-page .my-algo-switch button {
  height: 31px;
  font-size: 11px;
}
.user-algorithm-page .my-algo-card {
  flex-basis: 232px;
  max-width: 232px;
  padding: 10px;
  font-size: 10px;
}
.user-algorithm-page .my-algo-card h3 {
  font-size: 12px;
}
.user-algorithm-page .my-algo-rate section b {
  width: 43px;
  height: 43px;
  border-width: 4px;
  font-size: 12px;
}
.user-algorithm-page .my-algo-rate p strong,
.user-algorithm-page .my-algo-mini-stats strong {
  font-size: 11px;
}
.user-algorithm-page .my-algo-card footer span,
.user-algorithm-page .my-algo-card footer em,
.user-algorithm-page .my-algo-card footer a,
.user-algorithm-page .my-algo-card footer button {
  height: 23px;
  padding: 0 6px;
  font-size: 9px;
}

@media (max-width: 640px) {
  .user-algorithm-page .page-title {
    font-size: 18px;
  }
  .user-algorithm-page .my-algo-status {
    padding: 9px;
  }
  .user-algorithm-page .my-algo-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }
  .user-algorithm-page .my-algo-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 8px;
  }
  .user-algorithm-page .my-algo-card header {
    gap: 3px;
  }
  .user-algorithm-page .my-algo-card h3 {
    margin: 5px 0 7px !important;
    font-size: 11px;
  }
  .user-algorithm-page .my-algo-rate {
    grid-template-columns: 44px 44px minmax(0, 1fr) !important;
    gap: 5px;
  }
  .user-algorithm-page .my-algo-rate section b {
    width: 38px;
    height: 38px;
    border-width: 3px;
    font-size: 11px;
  }
  .user-algorithm-page .my-algo-rate p {
    gap: 3px 4px !important;
  }
  .user-algorithm-page .my-algo-mini-stats {
    gap: 2px;
  }
  .user-algorithm-page .my-algo-card footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
  }
  .user-algorithm-page .my-algo-card footer span,
  .user-algorithm-page .my-algo-card footer em,
  .user-algorithm-page .my-algo-card footer a,
  .user-algorithm-page .my-algo-card footer button {
    justify-content: center;
    padding: 0 4px;
    font-size: 8px;
  }
}

@media (max-width: 640px) {
  .reward-intro {
    padding: 10px;
    font-size: 11px;
  }
  .reward-tables {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .reward-tables article {
    padding: 10px;
  }
  .reward-tables h4 {
    font-size: 13px;
  }
  .reward-tables p,
  .reward-tables th,
  .reward-tables td,
  .reward-notes,
  .reward-card p {
    font-size: 11px;
  }
  .reward-tables th,
  .reward-tables td {
    height: 29px;
  }
}

@media (max-width: 640px) {
  .keno-calculation {
    padding: 7px 10px;
    border-radius: 9px;
  }
  .calc-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 5px;
    min-height: 0;
    padding: 2px 0;
    font-size: 10px;
    line-height: 1.35;
  }
  .calc-line + .calc-line {
    margin-top: 2px;
  }
  .calc-line > span {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 5px;
  }
  .calc-line > small {
    flex: 1 1 calc(100% - 50px);
    min-width: 0;
  }
  .calc-line > b {
    flex: 0 1 auto;
    max-width: calc(100% - 112px);
    overflow: visible;
    text-overflow: clip;
    font-size: 11px;
    line-height: 1.45;
  }
  .calc-line > i,
  .calc-line > strong,
  .calc-line > em,
  .calc-line > mark {
    flex: 0 0 auto;
  }
  .calc-line > strong {
    font-size: 12px;
  }
  .calc-line > mark {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .calc-total {
    margin-top: 5px;
    padding: 7px;
    border-radius: 7px;
    font-size: 11px;
  }
  .calc-total strong {
    font-size: 15px;
  }
}

.user-algorithm-page .my-algo-list {
  gap: 10px;
}
.user-algorithm-page .my-algo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #18c98a !important;
  border-radius: 13px !important;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31,78,103,.06);
}
.user-algorithm-page .my-algo-card header {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  color: #8a96a5;
  font-size: 9px;
}
.user-algorithm-page .my-algo-card header span {
  height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 4px;
  color: #253345;
  background: #edf2f6;
  font-size: 9px;
  font-weight: 900;
}
.user-algorithm-page .my-algo-card header b {
  height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 4px;
  color: #03a66f;
  background: #dff8ec;
  font-size: 9px;
  font-weight: 900;
}
.user-algorithm-page .my-algo-card header i {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  color: #8f9aa8;
  font-style: normal;
  cursor: pointer;
  border-radius: 50%;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.user-algorithm-page .my-algo-card header i:hover { background: #eef6fb; color: #0897d0; }
.user-algorithm-page .my-algo-card header i:active { transform: translateY(1px); }
.user-algorithm-page .my-algo-card header i + i {
  margin-left: 2px;
}
.user-algorithm-page .my-algo-card header i.delete {
  color: #ff6d7a;
}
.user-algorithm-page .my-algo-card header em {
  position: absolute;
  top: 28px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #a9b3bf;
  background: transparent;
  font-size: 9px;
  font-style: normal;
}
.user-algorithm-page .my-algo-card header .ui-icon,
.user-algorithm-page .my-algo-card footer .ui-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.user-algorithm-page .my-algo-card h3 {
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 48px);
  height: 21px;
  margin: 2px 0 9px !important;
  padding: 0 7px;
  border-radius: 4px;
  color: #c95b00 !important;
  background: #fff0dc;
  font-size: 12px;
  font-weight: 900;
}
.user-algorithm-page .my-algo-rate {
  display: grid !important;
  grid-template-columns: 48px 48px minmax(0, 1fr) !important;
  align-items: center;
  gap: 7px !important;
  margin-top: 2px;
}
.user-algorithm-page .my-algo-rate section {
  display: grid;
  justify-items: center;
  gap: 3px;
}
.user-algorithm-page .my-algo-rate section b {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00a86f;
  background: radial-gradient(circle, #fff 0 58%, transparent 59%), conic-gradient(#05bf83 var(--rate-deg, 0deg), #eef3f6 0);
  font-size: 12px;
  font-weight: 900;
}
.user-algorithm-page .my-algo-rate section:first-child b {
  color: #f2a400;
  background: radial-gradient(circle, #fff 0 58%, transparent 59%), conic-gradient(#ffae1c var(--rate-deg, 0deg), #eef3f6 0);
}
.user-algorithm-page .my-algo-rate section span {
  color: #91a0ae;
  font-size: 9px !important;
}
.user-algorithm-page .my-algo-rate p {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 5px 6px !important;
  margin: 0 !important;
  color: #748292;
  font-size: 9px !important;
}
.user-algorithm-page .my-algo-rate p strong {
  color: #152237;
  font-size: 10px;
  text-align: right;
}
.user-algorithm-page .my-algo-mini-stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0;
  margin-top: 10px;
}
.user-algorithm-page .my-algo-mini-stats span {
  min-width: 0;
  padding: 0 2px !important;
  border-right: 1px solid #f0f3f6 !important;
}
.user-algorithm-page .my-algo-mini-stats span:last-child {
  border-right: 0 !important;
}
.user-algorithm-page .my-algo-mini-stats strong {
  color: #00a86f;
  font-size: 11px;
  line-height: 1.1;
}
.user-algorithm-page .my-algo-mini-stats strong.muted {
  color: #b5bdc7;
}
.user-algorithm-page .my-algo-mini-stats strong.red {
  color: #f0293d;
}
.user-algorithm-page .my-algo-mini-stats small {
  margin-top: 2px;
  color: #a0aab5;
  font-size: 8px !important;
  white-space: nowrap;
}
.user-algorithm-page .my-algo-max {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 9px 0 0 !important;
  color: #91a0ae !important;
  font-size: 8px !important;
  text-align: center;
}
.user-algorithm-page .my-algo-max b {
  color: #00a86f;
}
.user-algorithm-page .my-algo-max span:last-child b {
  color: #f0293d;
}
.user-algorithm-page .my-algo-card footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 4px;
  margin: 11px -8px -8px;
  padding: 7px 8px 0;
  border-top: 1px solid #edf2f6;
}
.user-algorithm-page .my-algo-card footer span,
.user-algorithm-page .my-algo-card footer em,
.user-algorithm-page .my-algo-card footer a,
.user-algorithm-page .my-algo-card footer button {
  min-width: 0;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 6px;
  border: 0;
  border-radius: 12px;
  color: #526274;
  background: #f5f8fb;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.user-algorithm-page .my-algo-card footer span {
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
}
.user-algorithm-page .my-algo-card footer a {
  color: #006dff;
  background: #eef6ff;
}
.user-algorithm-page .my-algo-card footer .privacy-toggle {
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.user-algorithm-page .my-algo-card footer .privacy-toggle.is-public {
  color: #0085c7;
  background: #e7f8ff;
  box-shadow: inset 0 0 0 1px rgba(28, 183, 230, .16);
}
.user-algorithm-page .my-algo-card footer .privacy-toggle.is-private {
  color: #607084;
  background: #f5f8fb;
}
.user-algorithm-page .my-algo-card footer .privacy-toggle:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .user-algorithm-page .my-algo-card {
    padding: 8px 8px 9px;
  }
  .user-algorithm-page .my-algo-rate {
    grid-template-columns: 40px 40px minmax(0, 1fr) !important;
    gap: 5px !important;
  }
  .user-algorithm-page .my-algo-rate section b {
    width: 38px;
    height: 38px;
    border-width: 3px;
    font-size: 11px;
  }
  .user-algorithm-page .my-algo-card footer {
    margin-left: -8px;
    margin-right: -8px;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }
  .user-algorithm-page .my-algo-card footer span,
  .user-algorithm-page .my-algo-card footer em,
  .user-algorithm-page .my-algo-card footer a,
  .user-algorithm-page .my-algo-card footer button {
    height: 22px;
    padding: 0 4px;
    font-size: 8px;
  }
}

.author-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .58);
}
.author-modal.open {
  display: flex;
}
.author-public[hidden],
.author-anonymous[hidden] {
  display: none !important;
}
.author-dialog {
  position: relative;
  width: min(420px, calc(100vw - 28px));
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
}
.author-dialog h3 {
  margin: 0 -16px 14px;
  padding: 0 16px 14px;
  border-bottom: 1px solid #eef2f5;
  color: #111f32;
  font-size: 16px;
  font-weight: 900;
}
.author-close {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: 0;
  color: #5d6878;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.author-profile-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #edf2f6;
  border-radius: 10px;
  background: #fbfcfe;
}
.author-profile-box > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid #a8eaff;
  border-radius: 50%;
  color: #08aade;
  background: #e9faff;
  font-size: 23px;
  font-weight: 900;
}
.author-profile-box strong {
  color: #111f32;
  font-size: 17px;
  font-weight: 900;
}
.author-profile-box em {
  display: inline-flex;
  align-items: center;
  height: 19px;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid #86efc1;
  border-radius: 10px;
  color: #00a66f;
  background: #eafff5;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.author-bio {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #edf2f6;
  border-radius: 10px;
  color: #5d6878;
  background: #fbfcfe;
}
.author-bio strong {
  display: block;
  margin-bottom: 4px;
  color: #111f32;
  font-size: 13px;
  font-weight: 900;
}
.author-bio p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}
.author-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.author-meta-row span {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #edf2f6;
  border-radius: 10px;
  color: #5c6878;
  background: #fff;
  font-size: 12px;
}
.author-meta-row .ui-icon {
  width: 14px;
  height: 14px;
  color: #91a0ae;
}
.author-meta-row b {
  color: #425166;
}
.author-telegram {
  height: 40px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid #b7e9fb;
  border-radius: 10px;
  color: #5d6878;
  background: #f1fbff;
  font-size: 12px;
}
.author-telegram .ui-icon {
  color: #08aade;
}
.author-telegram b {
  color: #08aade;
  font-weight: 900;
}
.author-donate {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #ffcbd3;
  border-radius: 10px;
  color: #5d6878;
  background: #fff5f7;
}
.author-donate p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 12px;
}
.author-donate .ui-icon {
  color: #ff3555;
}
.author-donate strong {
  display: block;
  color: #9a8790;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}
.author-donate strong[hidden] {
  display: none !important;
}
.author-donate-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.author-donate-qr[hidden] {
  display: none !important;
}
.author-donate-qr img {
  width: 132px;
  height: 132px;
  padding: 6px;
  border: 1px solid #ffd8df;
  border-radius: 10px;
  background: #fff;
}
.author-donate-qr code {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #ffd8df;
  border-radius: 8px;
  color: #d92d48;
  background: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  word-break: break-all;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.author-donate-qr code:hover {
  border-color: #ff8ca0;
  box-shadow: 0 3px 10px rgba(217,45,72,.12);
}
.author-donate-qr code:active {
  transform: scale(.99);
}
.author-copy-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 120;
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  padding: 9px 14px;
  border: 1px solid #bdf1d4;
  border-radius: 8px;
  color: #009653;
  background: #edfff5;
  box-shadow: 0 10px 28px rgba(31,78,103,.16);
  font-size: 13px;
  font-weight: 800;
  transition: opacity .18s ease, transform .18s ease;
}
.author-copy-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.author-anonymous {
  min-height: 168px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px 12px;
  color: #5d6878;
}
.author-anonymous i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #aab2bd;
  background: #f4f5f7;
  font-style: normal;
}
.author-anonymous i .ui-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}
.author-anonymous strong {
  color: #5d6878;
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .author-dialog {
    width: min(400px, calc(100vw - 26px));
    padding: 14px;
    border-radius: 13px;
  }
  .author-dialog h3 {
    margin: 0 -14px 12px;
    padding: 0 14px 12px;
    font-size: 15px;
  }
  .author-close {
    top: 11px;
    right: 10px;
  }
  .author-profile-box {
    padding: 11px;
  }
  .author-bio {
    padding: 9px 11px;
  }
  .author-bio p {
    font-size: 12px;
  }
  .author-anonymous {
    min-height: 160px;
    padding: 26px 10px;
  }
  .author-anonymous i {
    width: 56px;
    height: 56px;
  }
  .author-meta-row span,
  .author-telegram,
  .author-donate p,
  .author-donate strong {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .my-notice-empty {
    min-height: 205px;
    margin-top: 14px;
    padding: 28px 14px;
  }
  .my-notice-empty i .ui-icon {
    width: 42px;
    height: 42px;
  }
  .my-notice-empty strong {
    font-size: 15px;
  }
  .my-notice-empty span {
    font-size: 12px;
  }
  .my-notice-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }
  .my-notice-card > i {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .my-notice-card strong {
    font-size: 13px;
  }
  .my-notice-card p {
    font-size: 11px;
  }
}

.ai-drawer.open {
  translate: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.ai-drawer.wide.open {
  transform: none !important;
}

.site-announcement {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  margin: 0 0 6px;
  padding: 3px 6px 3px 8px;
  border: 1px solid #cdeeff;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1fbff, #fff);
  color: #41536a;
  font-size: 10.5px;
  box-shadow: 0 5px 16px rgba(30, 161, 216, .08);
  overflow: hidden;
}
.site-announcement-icon {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 13px;
}
.site-announcement-icon img {
  width: 13px;
  height: 13px;
  display: block;
  object-fit: contain;
}
.site-announcement .ui-icon {
  width: 15px;
  height: 15px;
  color: #08aeea;
  flex: 0 0 auto;
}
.site-announcement-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.site-announcement-track {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: announcement-scroll 18s linear infinite;
}
.site-announcement a,
.site-announcement b {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.site-announcement-close {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  background: #e8f5fb;
  color: #6a7a8f;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}
.site-announcement-close:hover {
  background: #d7eef9;
  color: #08aeea;
}
@keyframes announcement-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.user-growth-card {
  display: grid;
  gap: 12px;
}
.user-growth-card > header,
.growth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.user-growth-card > header h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 16px;
}
.user-growth-card > header strong {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f8ff;
  color: #00a7dc;
  font-size: 13px;
}
.checkin-btn,
.invite-mini button,
.shop-grid button {
  border: 0;
  border-radius: 9px;
  background: #08aeea;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.checkin-btn {
  min-width: 118px;
  padding: 9px 12px;
}
.checkin-btn:disabled {
  background: #dce6ed;
  color: #78889a;
  cursor: default;
}
.invite-mini {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e2edf3;
  border-radius: 10px;
  background: #f8fbfd;
  font-size: 12px;
}
.invite-mini b {
  color: #12233a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-mini button {
  padding: 6px 9px;
  font-size: 12px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.shop-grid form {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e3edf4;
  border-radius: 10px;
  background: #fff;
}
.shop-grid strong {
  font-size: 13px;
}
.shop-grid span {
  color: #78889a;
  font-size: 11px;
  min-height: 28px;
}
.shop-grid button {
  padding: 7px 8px;
  font-size: 12px;
}
.point-log {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f6fafc;
  font-size: 12px;
}
.point-log > b {
  color: #12233a;
}
.point-log p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #6a7a8f;
}
.point-log em {
  font-style: normal;
  font-weight: 800;
}
.point-log em.plus { color: #00aa6c; }
.point-log em.minus { color: #f23b4f; }

@media (max-width: 640px) {
  .site-announcement {
    min-height: 24px;
    margin: 0 0 6px;
    padding: 3px 6px;
    font-size: 10.5px;
  }
  .user-growth-card > header,
  .growth-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .invite-mini {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .invite-mini button {
    grid-column: 1 / -1;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* Typography normalization: compact, consistent UI scale. */
:root {
  --fs-xxs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
}
body { font-size: var(--fs-base); line-height: 1.45; }
.main-nav a,
.main-nav button,
.draw-actions span,
.tabs button,
.hall-filter-btn,
.hall-search input,
.stats-head nav a,
.number-toolbar label,
.prediction-head,
.ai-options button,
.ai-empty button,
.ai-drawer textarea { font-size: var(--fs-sm); }
.quick-grid small,
.quick-grid p,
.notice-strip,
.keno-rule p,
.keno-legend,
.keno-row header span,
.dragon-grid article > footer,
.metric-head,
.stat-type-grid small,
.sum-stats small,
.algorithm-card header,
.algorithm-card footer,
.algo-id,
.collect-btn,
.my-algo-list small,
.ai-empty span,
.ai-options span,
.ai-nudge,
.draw-data-head { font-size: var(--fs-xs); }
.tag,
.badge,
.stat-badge,
.sum-stats i,
.prediction-badge,
.prediction-pair,
.prediction-combo-badges b,
.prediction-double-groups b,
.dragon-grid header em,
.dragon-grid p span { font-size: var(--fs-xs); font-weight: 800; }
.draw-title strong,
.user-card h3,
.stats-head > div strong,
.missing-sections h3,
.stats-sections h3,
.my-algo-list h3,
.section-title,
.number-toolbar strong { font-size: var(--fs-md); }
.algo-title strong { font-size: var(--fs-sm); }
.draw-title span,
.mipai-lock strong,
.ai-drawer header strong,
.user-mini strong { font-size: var(--fs-md); }
.equation span,
.countdown strong,
.algo-rate-ring strong,
.stat-value-strong { font-size: var(--fs-lg); }
.equation > strong,
.draw-result-total { font-size: var(--fs-xl); }
.equation b,
.equation strong {
  width: 48px;
  height: 46px;
  flex: 0 0 48px;
  font-size: 24px;
  line-height: 1;
}
.equation strong {
  width: 54px;
  flex-basis: 54px;
  font-size: 24px;
}
@media (max-width: 640px) {
  .equation b,
  .equation strong {
    width: 30px;
    height: 32px;
    flex-basis: 30px;
    font-size: 16px;
  }
  .equation strong {
    width: 34px;
    flex-basis: 34px;
    font-size: 16px;
  }
}
.ai-drawer form { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; padding: 10px 14px 14px; }
.ai-drawer textarea {
  height: 42px;
  max-height: 88px;
  padding: 11px 12px;
  border-color: #dce7ef;
  border-radius: 11px;
  background: #f8fbfd;
  line-height: 1.45;
}
.ai-drawer textarea:focus { box-shadow: 0 0 0 2px rgba(8,174,228,.1); }
.ai-drawer form button {
  min-height: 42px;
  border-radius: 11px;
}
.ai-drawer form button .ui-icon { width: 18px; height: 18px; }

/* AI chat bubble style */
.ai-chat {
  gap: 12px;
  padding: 2px 2px 4px;
}
.ai-message {
  display: flex;
  width: 100%;
  align-items: flex-start;
}
.ai-message span {
  display: none;
}
.ai-message div {
  max-width: min(78%, 360px);
  padding: 10px 14px;
  border-radius: 13px;
  color: #3b4656;
  background: #f3f7fb;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: none;
}
.ai-message.user {
  justify-content: flex-end;
}
.ai-message.user div {
  color: #fff;
  background: #08aee4;
  border-radius: 15px 15px 4px 15px;
  font-weight: 800;
}
.ai-message.assistant {
  justify-content: flex-start;
}
.ai-message.assistant div {
  border: 1px solid #dbe5ee;
  border-radius: 13px 13px 13px 4px;
}
.ai-message.loading div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-width: 105px;
  padding: 8px 12px;
  color: #526173;
  line-height: 1;
}
.ai-message.loading div i {
  width: 13px;
  height: 13px;
  border: 2px solid #c8d3dd;
  border-top-color: #526173;
  border-radius: 50%;
  animation: aiSpin .75s linear infinite;
}
.ai-message.loading div b {
  font-size: 12px;
  font-weight: 600;
}
@keyframes aiSpin {
  to { transform: rotate(360deg); }
}
