:root {
  --sans: "AiDianQuYaYuan", "Manrope", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --el-font-family: var(--sans);
  color-scheme: dark;
  --ink: #edf4f8;
  --ink-soft: #c5d3df;
  --muted: #8da3b8;
  --line: rgba(113, 145, 171, .2);
  --panel: rgba(20, 35, 50, .78);
  --panel-strong: #142436;
  --deep: #0b1621;
  --rail: #101f2d;
  --mint: #50d3b1;
  --red: #e65368;
  --blue: #3886c9;
  --green: #28a47e;
  --gold: #e6b94e;
  --mono: "DM Mono", "Cascadia Code", monospace;
  --el-color-primary: #50d3b1;
  --el-color-primary-light-3: #36a98f;
  --el-color-primary-light-5: #278472;
  --el-color-primary-light-7: #225c56;
  --el-color-primary-light-8: #204b49;
  --el-color-primary-light-9: #1b3439;
  --el-color-primary-dark-2: #3eb495;
  --el-bg-color: #142436;
  --el-bg-color-overlay: #192b3d;
  --el-text-color-primary: #edf4f8;
  --el-text-color-regular: #c5d3df;
  --el-text-color-secondary: #8da3b8;
  --el-border-color: #2a4054;
  --el-border-color-light: #253a4e;
  --el-fill-color-blank: #172a3d;
  --el-fill-color-light: #1b3044;
  --el-fill-color: #20364b;
}

@font-face {
  font-family: "AiDianQuYaYuan";
  src: url("assets/fonts/AiDianQuYaYuan.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
html { min-width: 360px; scroll-behavior: smooth; }
body {
  min-width: 360px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 87% 4%, rgba(32, 75, 112, .24), transparent 32%),
    radial-gradient(ellipse at 35% 0%, rgba(30, 109, 99, .12), transparent 34%),
    linear-gradient(145deg, #0e1b28, var(--deep) 62%, #0d1925);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
[v-cloak] { display: none; }
#app { min-height: 100vh; }
.file-protocol {
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.file-protocol #app { display: none; }
.file-protocol-notice {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}
.file-protocol .file-protocol-notice { display: grid; }
.file-protocol-card {
  width: min(100%, 650px);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(113, 145, 171, .28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20, 35, 50, .96), rgba(13, 27, 40, .96));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .3);
}
.file-protocol-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 11px;
  background: #087d6c;
  transform: rotate(-4deg);
}
.file-protocol-mark i { width: 5px; height: 16px; border-radius: 5px; background: #eaf5f2; transform: rotate(4deg); }
.file-protocol-mark i:nth-child(2) { height: 22px; background: #6de0c1; }
.file-protocol-mark i:nth-child(3) { height: 12px; background: #e8bf5f; }
.file-protocol-card h1 { margin: 0; color: var(--ink); font-size: clamp(22px, 4vw, 29px); line-height: 1.35; }
.file-protocol-card p { max-width: 54ch; margin: 12px 0 0; color: var(--ink-soft); line-height: 1.8; }
.file-protocol-card ol { display: grid; gap: 12px; margin: 26px 0 0; padding-left: 22px; color: var(--ink-soft); line-height: 1.8; }
.file-protocol-card li::marker { color: var(--gold); font-weight: 700; }
.file-protocol-card code {
  padding: 3px 7px;
  border: 1px solid rgba(113, 145, 171, .22);
  border-radius: 5px;
  background: rgba(8, 18, 27, .72);
  color: #dbe8ef;
  font-family: var(--mono);
  font-size: .9em;
  overflow-wrap: anywhere;
}
.file-protocol-card a { color: #6de0c1; text-underline-offset: 3px; }
.file-protocol-card a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.file-protocol-card .file-protocol-note { margin-top: 24px; color: var(--muted); font-size: 13px; }

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 164px;
  min-height: 100vh;
  padding: 22px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 34px;
  border-right: 1px solid rgba(113, 145, 171, .2);
  background: linear-gradient(180deg, rgba(17, 33, 47, .98), rgba(14, 27, 40, .96));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand > span:last-child { display: grid; gap: 3px; }
.brand strong { color: #f0f5f8; font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.brand small { color: #7891a6; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
  background: #087d6c;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255,255,255,.14);
  transform: rotate(-4deg);
}
.brand-mark i { display: block; width: 5px; height: 16px; border-radius: 5px; background: #eaf5f2; transform: rotate(4deg); }
.brand-mark i:nth-child(2) { height: 22px; background: #6de0c1; }
.brand-mark i:nth-child(3) { height: 12px; background: #e8bf5f; }
.side-nav { display: grid; gap: 6px; }
.side-nav-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a3b6c7;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.side-nav-link::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border: 1px solid #69849a;
  border-radius: 2px;
  content: "";
  transform: rotate(45deg);
}
.side-nav-link[aria-current="page"], .side-nav-link:hover, .side-nav-link:focus-visible {
  color: #edf4f8;
  border-color: rgba(80, 211, 177, .17);
  background: rgba(80, 211, 177, .075);
  outline: none;
}
.side-nav-link[aria-current="page"]::before, .side-nav-link:hover::before, .side-nav-link:focus-visible::before {
  border-color: var(--mint);
  background: var(--mint);
}
.topbar-right {
  margin-top: auto;
  display: grid;
  justify-items: start;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
}
.source-link { color: #d9e4eb; font-size: 11px; font-weight: 650; text-decoration: none; }
.source-link span { margin-left: 3px; color: var(--mint); }

.shell {
  width: min(1500px, calc(100vw - 164px));
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: max(164px, calc((100vw - 1500px + 164px) / 2));
  padding: 24px 24px 20px;
}
.intro {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 22px;
  padding-bottom: 18px;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 7px;
  color: #eff5f8;
  font-size: clamp(27px, 2.2vw, 36px);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 750;
}
h1 span { color: var(--mint); }
.intro-description { margin: 0; color: #8da3b8; font-size: 12px; }
.latest-draw {
  min-width: 0;
  min-height: 76px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(113, 145, 171, .22);
  border-radius: 11px;
  background: linear-gradient(125deg, rgba(25, 44, 62, .88), rgba(18, 32, 47, .74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 28px rgba(0,0,0,.11);
}
.latest-meta { display: grid; align-content: center; gap: 4px; white-space: nowrap; }
.latest-kicker { display: flex; align-items: center; gap: 6px; color: #8da3b8; font-size: 9px; }
.latest-kicker i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(80, 211, 177, .55); }
.latest-meta b { color: #eaf1f6; font-size: 12px; }
.latest-open-date { color: #8299ae; font: 9px var(--mono); }
.latest-balls { min-width: 0; display: flex; justify-content: center; align-items: center; gap: clamp(7px, .75vw, 12px); }
.latest-facts { display: grid; grid-template-columns: repeat(2, max-content); gap: 7px; }
.latest-facts span { min-width: 70px; min-height: 22px; padding: 4px 9px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(106, 140, 166, .18); border-radius: 6px; color: #a5b8c8; background: rgba(48, 71, 92, .26); font-size: 8px; line-height: 1; white-space: nowrap; }
.ball {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  line-height: 1;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.36), inset 0 -2px 4px rgba(10,26,39,.16), 0 3px 7px rgba(0,0,0,.18);
}
.ball::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 48%;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(180deg, rgba(255,255,255,.3), transparent);
  content: "";
  pointer-events: none;
}
.ball b, .ball small { position: relative; z-index: 1; }
.ball.red { background: var(--red); }
.ball.blue { background: var(--blue); }
.ball.green { background: var(--green); }
.ball.special { outline: 2px solid var(--gold); outline-offset: 2px; }
.latest-ball { width: 40px; height: 40px; gap: 3px; }
.latest-ball b { font: 500 12px var(--mono); }
.latest-ball small { font-size: 8px; opacity: .92; }

.workspace { margin-top: 0; }
.records-column {
  overflow: hidden;
  border: 1px solid rgba(98, 130, 157, .27);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(22, 39, 56, .92), rgba(17, 31, 46, .88));
  box-shadow: 0 16px 38px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.035);
}
.section-heading {
  min-height: 78px;
  padding: 13px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(113, 145, 171, .13);
  background: linear-gradient(180deg, rgba(30, 49, 68, .44), rgba(20, 35, 50, .15));
}
.heading-title { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
h2 { margin: 0; color: #eaf1f6; font-size: 17px; line-height: 1.35; letter-spacing: -.025em; }
.result-count { color: #8da3b8; font-size: 10px; }
.filter-bar { min-width: 0; display: flex; align-items: stretch; gap: 7px; }
.filter-bar > .el-input, .filter-bar > .el-select, .filter-bar > .el-date-editor { height: 38px; min-height: 38px; }
.search-input { width: min(300px, 28vw); }
.search-input .el-input__prefix-inner { height: 100%; display: flex; align-items: center; justify-content: center; }
.search-glyph { position: relative; width: 14px; height: 14px; flex: 0 0 14px; display: block; color: #8da3b8; }
.search-glyph::before { position: absolute; top: 1px; left: 1px; width: 7px; height: 7px; border: 1.6px solid currentColor; border-radius: 50%; content: ""; }
.search-glyph::after { position: absolute; top: 8px; left: 9px; width: 1.6px; height: 5px; border-radius: 2px; background: currentColor; content: ""; transform: rotate(-45deg); transform-origin: top center; }
.result-select { width: 112px; flex: 0 0 112px; }
.date-filter { width: 210px; flex: 0 0 210px; }
.filter-bar .el-input__wrapper,
.filter-bar .el-select__wrapper,
.filter-bar .el-date-editor.el-input__wrapper {
  height: 38px;
  min-height: 38px;
  border: 1px solid rgba(87, 119, 146, .27);
  border-radius: 7px;
  background: rgba(13, 26, 39, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.filter-bar .el-input__inner, .filter-bar .el-select__selected-item, .filter-bar .el-range-input { color: #dce7ef; font-size: 10px; }
.filter-bar .el-input__inner::placeholder, .filter-bar .el-range-input::placeholder { color: #7f96ab; }
.filter-bar .el-input__wrapper.is-focus,
.filter-bar .el-select__wrapper.is-focused {
  border-color: rgba(80, 211, 177, .55);
  box-shadow: 0 0 0 2px rgba(80, 211, 177, .11);
}

.table-wrap { border-top: 0; }
.table-head, .draw-row {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) 118px;
  align-items: center;
  column-gap: 12px;
  padding-right: 16px;
  padding-left: 16px;
}
.table-head {
  min-height: 31px;
  color: #8da3b8;
  background: rgba(10, 21, 32, .38);
  font-size: 9px;
}
.table-head span:nth-child(2), .table-head span:nth-child(3) { text-align: center; }
.draw-row {
  width: 100%;
  min-height: 82px;
  padding-block: 8px;
  border: 0;
  border-bottom: 1px solid rgba(113, 145, 171, .13);
  background: rgba(24, 42, 59, .3);
  text-align: left;
  line-height: 1.2;
}
.draw-row:nth-of-type(even) { background: rgba(30, 48, 66, .26); }
.draw-row:last-of-type { border-bottom: 0; }
.draw-id { min-width: 0; display: grid; gap: 4px; }
.draw-id b { color: #e5edf3; font-size: 11px; font-weight: 700; white-space: nowrap; }
.draw-id small { color: #879eb3; font: 9px var(--mono); white-space: nowrap; }
.number-sequence {
  min-width: 0;
  padding-block: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}
.regular-balls { display: flex; align-items: center; gap: clamp(5px, .4vw, 8px); }
.number-unit { flex: 0 0 44px; display: grid; justify-items: center; align-content: center; gap: 5px; }
.table-ball { width: 30px; height: 30px; }
.table-ball b { font: 500 11px var(--mono); }
.ball-note, .ball-traits, .ball-special-label { display: block; font-size: 10px; line-height: 1.1; text-align: center; white-space: nowrap; }
.ball-note { color: #afc0ce; }
.ball-traits { color: #8299ae; letter-spacing: .05em; }
.ball-special-label { color: var(--mint); font-weight: 700; letter-spacing: .04em; }
.number-divider { align-self: flex-start; margin: 10px -2px 0; color: #7b94a9; font: 12px var(--mono); }
.special-cell { display: inline-flex; padding-left: 1px; }
.special-cell .table-ball { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.2); }
.properties {
  width: 112px;
  justify-self: center;
  align-self: center;
  align-content: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}
.properties span {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 4px 3px;
  border: 1px solid rgba(87, 119, 146, .19);
  border-radius: 5px;
  color: #a3b7c8;
  background: linear-gradient(145deg, rgba(31, 50, 69, .8), rgba(23, 39, 55, .78));
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.pagination-row {
  min-height: 46px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(113, 145, 171, .14);
  background: rgba(12, 24, 36, .25);
}
.page-hint { color: #8299ae; font-size: 9px; white-space: nowrap; }
.pagination-row .el-pagination {
  --el-pagination-button-bg-color: rgba(31, 50, 68, .78);
  --el-pagination-hover-color: #74e4c7;
  --el-pagination-text-color: #b7c7d5;
  --el-pagination-button-color: #b7c7d5;
}
.pagination-row .el-pagination.is-background .el-pager li:not(.is-active) { color: #b4c5d4; background: rgba(31, 50, 68, .8); }
.pagination-row .el-pagination.is-background .el-pager li.is-active { color: #08271f; background: var(--mint); }
.pagination-row .el-pagination button:disabled { color: #60788d; background: rgba(24, 39, 54, .75); }

.records-heading-group { min-width: 0; display: flex; align-items: center; gap: 16px; }
.records-view-tabs { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid rgba(87, 119, 146, .2); border-radius: 7px; background: rgba(10, 21, 32, .35); }
.records-view-tabs a { min-height: 27px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 5px; color: #8da3b8; font-size: 9px; text-decoration: none; white-space: nowrap; }
.records-view-tabs a[aria-current="page"] { color: #09271f; background: var(--mint); font-weight: 750; }
.records-view-tabs a:focus-visible { outline: 2px solid #9af2da; outline-offset: 2px; }
.records-view-tabs a span { color: inherit; opacity: .76; font: 9px var(--mono); }
.prediction-records-panel { min-height: 320px; display: flex; flex-direction: column; }
.prediction-records-heading { min-height: 52px; padding: 8px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(113, 145, 171, .14); }
.prediction-records-heading > p { margin: 0; color: #8199ad; font-size: 9px; line-height: 1.45; }
.prediction-records-heading .scope-control { flex: 0 0 auto; }
.prediction-record-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; scrollbar-color: rgba(113, 145, 171, .3) transparent; scrollbar-width: thin; }
.used-prediction-record { padding: 11px 15px 10px; border-bottom: 1px solid rgba(113, 145, 171, .13); }
.used-prediction-record:last-child { border-bottom: 0; }
.used-prediction-summary { min-width: 0; display: grid; grid-template-columns: minmax(140px, .55fr) minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.used-prediction-title { min-width: 0; display: grid; gap: 4px; }
.used-prediction-title b { color: #e8f0f5; font-size: 11px; }
.used-prediction-title small, .used-prediction-meta { color: #8199ad; font-size: 8px; }
.used-prediction-result { min-width: 0; display: flex; align-items: center; justify-content: center; gap: clamp(4px, .45vw, 7px); }
.used-result-ball { width: 29px; height: 29px; }
.used-result-ball b { font: 500 9px var(--mono); }
.used-prediction-status { padding: 4px 7px; border: 1px solid rgba(80, 211, 177, .19); border-radius: 5px; color: #8bdfc7; background: rgba(25, 75, 67, .17); font-size: 8px; white-space: nowrap; }
.used-prediction-meta { margin: 6px 0 5px; }
.used-prediction-toggle { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(80, 211, 177, .23); border-radius: 6px; color: #8fe2cc; background: rgba(25, 75, 67, .17); font: 600 11px var(--sans); white-space: nowrap; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, color .16s ease; }
.used-prediction-toggle:hover { border-color: rgba(80, 211, 177, .5); color: #c5f4e8; background: rgba(25, 75, 67, .32); }
.used-prediction-toggle:focus-visible { outline: 2px solid #9af2da; outline-offset: 3px; }
.used-prediction-toggle-icon { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.used-prediction-toggle[aria-expanded="true"] .used-prediction-toggle-icon { transform: translateY(2px) rotate(225deg); }
.used-prediction-kinds { margin-top: 9px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.used-prediction-kind { min-width: 0; padding: 8px 9px; border: 1px solid rgba(103, 135, 160, .15); border-radius: 7px; background: rgba(14, 28, 41, .36); }
.used-prediction-kind h4 { margin: 0 0 5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #c6d5df; font-size: 9px; }
.used-prediction-tier { padding: 5px 0; border-top: 1px solid rgba(113, 145, 171, .11); }
.used-prediction-tier-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.used-prediction-tier-label b { color: #7ddbc3; font-size: 8px; }
.used-prediction-tier-label span { color: #98aebe; font-size: 8px; }
.used-prediction-tier .candidate-token-list { margin-top: 4px; gap: 3px; }
.used-prediction-tier .prediction-token { min-width: 22px; height: 19px; padding: 0 4px; font-size: 7px; }
.used-prediction-tier .zodiac-token { min-width: 22px; font-size: 8px; }
.prediction-record-empty { min-height: 190px; flex: 1 1 auto; padding: 24px; display: grid; align-content: center; justify-items: center; gap: 7px; text-align: center; }
.prediction-record-empty b { color: #c6d5df; font-size: 11px; }
.prediction-record-empty span { max-width: 340px; color: #8199ad; font-size: 9px; line-height: 1.5; }
.prediction-record-pagination { margin-top: auto; border-top: 0; }
.load-state {
  margin-top: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20,35,50,.78);
}
.error-state {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 22px;
  border: 1px solid rgba(214, 102, 110, .25);
  border-radius: 10px;
  color: #f0c2c5;
  background: rgba(77, 31, 40, .4);
}
.error-state span, .error-state small { color: #b9949a; }
.el-popper, .el-select__popper.el-popper, .el-picker__popper.el-popper {
  color: #eaf1f6;
  border-color: #2b4053;
  background: #192b3d;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.el-select-dropdown, .el-picker-panel { color: #eaf1f6; background: #192b3d; }
.el-select-dropdown__item { color: #a9bdcf; }
.el-select-dropdown__item.is-hovering { background: #22384d; }
.el-select-dropdown__item.is-selected { color: #68dcbf; }
.el-date-table td.available:hover { color: #68dcbf; }
.el-date-table td.current:not(.disabled) .el-date-table-cell__text { color: #09251f; background: var(--mint); }
.el-date-table td.today .el-date-table-cell__text { color: #68dcbf; }

@media (min-width: 1501px) {
  .table-head, .draw-row { grid-template-columns: 154px minmax(0, 1fr) 142px; padding-right: 18px; padding-left: 18px; }
  .number-unit { flex-basis: 48px; }
  .table-ball { width: 32px; height: 32px; }
  .regular-balls { gap: 8px; }
  .properties { width: 118px; }
}
@media (max-width: 1120px) and (min-width: 721px) {
  .topbar { width: 72px; padding: 18px 8px 14px; align-items: center; gap: 28px; }
  .brand > span:last-child { display: none; }
  .side-nav { width: 100%; }
  .side-nav-link { justify-content: center; padding: 0; font-size: 0; }
  .side-nav-link::before { width: auto; height: auto; flex-basis: auto; border: 0; border-radius: 0; color: #a3b6c7; content: attr(data-short); font: 700 11px var(--sans); transform: none; }
  .topbar-right { align-items: center; justify-items: center; }
  .source-link { font-size: 0; }
  .source-link span { margin: 0; font-size: 13px; }
  .shell { width: calc(100vw - 72px); margin-left: 72px; padding: 18px 18px 16px; }
  .intro { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: 14px; }
  .latest-draw { grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 9px 10px; }
  .latest-ball { width: 30px; height: 30px; }
  .latest-balls { gap: clamp(3px, .4vw, 5px); }
  .latest-facts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .latest-facts span { min-width: 0; padding: 4px 3px; font-size: 8px; }
  .section-heading { flex-wrap: wrap; min-height: 0; padding: 11px 12px; }
  .filter-bar { flex: 1 1 100%; }
  .search-input { width: auto; min-width: 0; flex: 1 1 auto; }
  .result-select { width: 102px; flex-basis: 102px; }
  .date-filter { width: 190px; flex-basis: 190px; }
  .table-head, .draw-row { grid-template-columns: 112px minmax(0, 1fr) 112px; column-gap: 8px; padding-right: 10px; padding-left: 10px; }
  .number-sequence { gap: 4px; }
  .number-unit { flex-basis: 38px; }
  .ball-note, .ball-traits, .ball-special-label { font-size: 8px; }
  .regular-balls { gap: 2px; }
  .table-ball { width: 30px; height: 30px; }
  .properties { width: 104px; }
  .properties span { font-size: 8px; }
  .pagination-row { padding-right: 10px; padding-left: 10px; }
}
@media (max-width: 720px) {
  .topbar {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 52px;
    height: 52px;
    padding: 0 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(113, 145, 171, .2);
  }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand strong { font-size: 13px; }
  .brand small { display: none; }
  .side-nav { display: flex; align-items: center; gap: 2px; }
  .side-nav-link { min-height: 32px; padding: 0 5px; gap: 4px; font-size: 9px; }
  .side-nav-link::before { width: 5px; height: 5px; flex-basis: 5px; }
  .topbar-right { flex: 0 0 auto; margin: 0 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 10px; }
  .source-link { font-size: 10px; }
  .shell { width: 100%; min-height: 0; margin: 0; padding: 12px 12px 16px; }
  .intro { grid-template-columns: 1fr; gap: 12px; padding-bottom: 13px; }
  h1 { margin-bottom: 4px; font-size: 26px; }
  .intro-description { font-size: 11px; }
  .latest-draw { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "balls" "facts"; gap: 8px; padding: 9px 10px; }
  .latest-meta { grid-area: meta; display: flex; align-items: baseline; gap: 8px; }
  .latest-kicker, .latest-meta b, .latest-open-date { font-size: 8px; }
  .latest-balls { grid-area: balls; justify-content: space-between; gap: clamp(3px, 1.6vw, 6px); }
  .latest-ball { width: clamp(30px, 8.7vw, 36px); height: clamp(30px, 8.7vw, 36px); }
  .latest-ball b { font-size: 10px; }
  .latest-ball small { font-size: 7px; }
  .latest-facts { grid-area: facts; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .latest-facts span { min-width: 0; min-height: 20px; padding: 3px 2px; font-size: 8px; }
  .section-heading { min-height: 0; padding: 10px; display: grid; gap: 9px; }
  .heading-title { justify-content: space-between; }
  h2 { font-size: 15px; }
  .filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 6px; }
  .search-input { grid-column: 1 / -1; width: 100%; }
  .result-select { width: 100%; }
  .date-filter { grid-column: 1 / -1; width: 100%; }
  .filter-bar > .el-input, .filter-bar > .el-select, .filter-bar > .el-date-editor,
  .filter-bar .el-input__wrapper, .filter-bar .el-select__wrapper, .filter-bar .el-date-editor.el-input__wrapper { height: 38px; min-height: 38px; }
  .table-head { display: none; }
  .draw-row {
    position: relative;
    min-height: 126px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "meta" "numbers";
    row-gap: 8px;
    column-gap: 0;
    padding: 8px 10px;
  }
  .draw-id { grid-area: meta; display: grid; align-content: start; gap: 4px; padding-right: 116px; }
  .draw-id b { font-size: 10px; }
  .draw-id small { font-size: 9px; }
  .number-sequence { grid-area: numbers; justify-self: start; gap: 4px; }
  .number-unit { flex-basis: 40px; gap: 5px; }
  .regular-balls { gap: 2px; }
  .table-ball { width: clamp(27px, 8vw, 32px); height: clamp(27px, 8vw, 32px); }
  .table-ball b { font-size: 9px; }
  .ball-note, .ball-traits, .ball-special-label { font-size: 8px; line-height: 1.2; }
  .number-divider { margin-top: 8px; font-size: 10px; }
  .special-cell { padding: 0; }
  .special-cell .table-ball { width: clamp(27px, 8vw, 32px); height: clamp(27px, 8vw, 32px); }
  .properties { position: absolute; top: 50%; right: 10px; grid-area: auto; width: 108px; gap: 2px; align-self: center; transform: translateY(-50%); }
  .properties span { min-height: 18px; padding: 3px 2px; font-size: 8px; }
  .pagination-row { min-height: 0; padding: 9px 10px; flex-direction: column; align-items: flex-start; gap: 7px; }
  .pagination-row .el-pagination { max-width: 100%; flex-wrap: wrap; }
}
@media (max-width: 390px) {
  .topbar { padding-right: 10px; padding-left: 10px; }
  .shell { padding-right: 9px; padding-left: 9px; }
  .latest-meta { gap: 5px; }
  .latest-balls { justify-content: space-between; }
  .latest-ball { width: 29px; height: 29px; }
  .latest-ball small { font-size: 6px; }
  .draw-row { min-height: 126px; }
  .draw-id { padding-right: 112px; }
  .properties { right: 9px; width: 104px; }
  .number-sequence { gap: 3px; }
  .number-unit { flex-basis: 40px; }
  .regular-balls { gap: 1px; }
  .table-ball, .special-cell .table-ball { width: 26px; height: 26px; }
  .table-ball b { font-size: 8px; }
  .ball-note { font-size: 8px; }
}
@media (min-width: 721px) and (max-height: 900px) {
  .shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 12px;
  }
  .intro { flex: 0 0 auto; padding-bottom: 12px; }
  .latest-draw { min-height: 68px; padding: 8px 16px; }
  .workspace { flex: 1 1 auto; min-height: 0; }
  .records-column { height: 100%; min-height: 0; display: flex; flex-direction: column; }
  .section-heading { flex: 0 0 auto; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
  .table-wrap { --table-head-height: 28px; flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: var(--table-head-height) repeat(var(--page-size), minmax(0, 1fr)); }
  .table-head { min-height: var(--table-head-height); }
  .draw-row { min-height: 0; }
  .table-wrap > .el-empty { grid-row: 2 / -1; min-height: 0; }
  .pagination-row { flex: 0 0 42px; min-height: 42px; padding-top: 3px; padding-bottom: 3px; }
}
@media (min-width: 721px) and (max-height: 850px) {
  .number-unit { gap: 5px; }
  .table-ball { width: 28px; height: 28px; }
  .ball-note, .ball-traits, .ball-special-label { font-size: 9px; line-height: 1.2; }
}
@media (min-width: 721px) and (max-height: 800px) {
  .section-heading { min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .filter-bar > .el-input, .filter-bar > .el-select, .filter-bar > .el-date-editor,
  .filter-bar .el-input__wrapper, .filter-bar .el-select__wrapper, .filter-bar .el-date-editor.el-input__wrapper {
    height: 34px;
    min-height: 34px;
  }
  .table-wrap { --table-head-height: 24px; }
  .number-unit { gap: 5px; }
  .table-ball { width: 26px; height: 26px; }
  .ball-note, .ball-traits, .ball-special-label { font-size: 8px; line-height: 1.2; }
  .number-divider { margin-top: 7px; }
  .pagination-row { flex-basis: 38px; min-height: 38px; }
}
@media (min-width: 721px) and (max-height: 680px) {
  .shell { padding-top: 12px; padding-bottom: 8px; }
  .intro { padding-bottom: 8px; }
  .latest-draw { min-height: 58px; padding-top: 6px; padding-bottom: 6px; }
  .section-heading { padding-top: 7px; padding-bottom: 7px; }
  .table-wrap { --table-head-height: 22px; }
  .number-unit { gap: 5px; }
  .table-ball { width: 22px; height: 22px; }
  .ball-note, .ball-traits, .ball-special-label { font-size: 7px; line-height: 1.2; }
  .number-divider { margin-top: 6px; }
  .pagination-row { flex-basis: 36px; min-height: 36px; }
}
@media (min-width: 721px) and (max-height: 600px) {
  .latest-draw { min-height: 52px; }
  .section-heading { padding-top: 5px; padding-bottom: 5px; }
  .filter-bar > .el-input, .filter-bar > .el-select, .filter-bar > .el-date-editor,
  .filter-bar .el-input__wrapper, .filter-bar .el-select__wrapper, .filter-bar .el-date-editor.el-input__wrapper {
    height: 30px;
    min-height: 30px;
  }
  .table-wrap { --table-head-height: 20px; }
  .table-ball { width: 20px; height: 20px; }
  .ball-note, .ball-traits, .ball-special-label { font-size: 6.5px; line-height: 1.15; }
  .pagination-row { flex-basis: 34px; min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .latest-draw, .records-column, .predict-heading, .predict-context, .prediction-summary-row, .current-prediction, .prediction-history { background: #142436; backdrop-filter: none; }
}

.predict-page { min-width: 0; margin-top: 0; padding: 0; color: var(--ink); }
.predict-heading-copy { min-width: 0; }
.predict-heading-copy p { margin: 5px 0 0; color: #8da3b8; font-size: 10px; }
.scope-control { display: flex; align-items: center; gap: 9px; }
.scope-control > span { color: #8299ae; font-size: 9px; }
.scope-tabs { display: inline-flex; flex: 0 0 auto; gap: 4px; padding: 3px; border: 1px solid rgba(87, 119, 146, .22); border-radius: 8px; background: rgba(10, 21, 32, .4); }
.scope-tabs a { min-width: 58px; padding: 7px 12px; border-radius: 5px; color: #8da3b8; font-size: 10px; font-weight: 700; text-align: center; text-decoration: none; transition: background-color .16s ease, color .16s ease; }
.scope-tabs a.active { color: #09271f; background: var(--mint); }
.scope-tabs a:focus-visible, .prediction-summary-row:focus-visible, .back-to-predictions:focus-visible, .prediction-history-row summary:focus-visible { outline: 2px solid #9af2da; outline-offset: 2px; }
.predict-context {
  min-height: 48px; padding: 8px 16px; display: flex; align-items: center; gap: 11px;
  border-right: 1px solid rgba(98, 130, 157, .2); border-bottom: 1px solid rgba(98, 130, 157, .2); border-left: 1px solid rgba(98, 130, 157, .2);
  color: #9eb1c1; background: rgba(13, 26, 39, .42); font-size: 10px;
}
.context-status { display: inline-flex; align-items: center; gap: 6px; color: #b8c7d2; white-space: nowrap; }
.context-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(230, 185, 78, .45); }
.predict-context strong { color: #e9f2f7; font: 600 11px var(--mono); white-space: nowrap; }
.context-divider { width: 1px; height: 18px; background: rgba(113, 145, 171, .24); }
.predict-context small { margin-left: auto; color: #7f96ab; font-size: 9px; }
.prediction-list { display: grid; gap: 9px; margin-top: 11px; }
.prediction-summary-row {
  min-width: 0; min-height: 128px; padding: 15px 17px; position: relative;
  display: grid; grid-template-columns: minmax(175px, .72fr) minmax(225px, 1fr) minmax(300px, 1.2fr) 94px;
  align-items: center; gap: 16px; border: 1px solid rgba(98, 130, 157, .24); border-radius: 9px;
  color: inherit; background: linear-gradient(115deg, rgba(22, 39, 56, .9), rgba(17, 31, 46, .8)); text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.prediction-summary-row:hover { border-color: rgba(80, 211, 177, .46); background: linear-gradient(115deg, rgba(24, 47, 62, .96), rgba(17, 34, 49, .9)); }
.summary-row-module { min-width: 0; display: flex; align-items: center; gap: 11px; }
.module-glyph { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid rgba(80, 211, 177, .23); border-radius: 9px; color: #83dfc7; background: rgba(28, 84, 73, .2); font-size: 14px; font-weight: 700; }
.zodiac-glyph { border-color: rgba(230, 185, 78, .24); color: #e6c46f; background: rgba(93, 71, 27, .19); }
.summary-row-module h3 { margin: 0; color: #ecf3f7; font-size: 13px; line-height: 1.45; }
.summary-row-module p { margin: 4px 0 0; color: #8199ad; font-size: 9px; }
.summary-row-label { margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.summary-row-label b { color: #c6d5df; font-size: 10px; }
.summary-row-label small { color: #788fa4; font-size: 9px; white-space: nowrap; }
.preview-tokens, .candidate-token-list { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.preview-tokens { margin: 0; gap: 5px; }
.prediction-token {
  min-width: 29px; height: 27px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(115, 148, 174, .25); border-radius: 6px; color: #d5e2eb;
  background: linear-gradient(145deg, rgba(33, 56, 75, .84), rgba(22, 41, 58, .76)); font: 500 10px var(--mono); line-height: 1;
}
.zodiac-token { font-family: var(--sans); font-size: 11px; font-weight: 700; }
.summary-tier-strip { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.summary-tier-strip span { min-width: 0; min-height: 34px; padding: 5px 6px; display: grid; justify-items: center; align-content: center; gap: 2px; border: 1px solid rgba(98, 130, 157, .16); border-radius: 5px; background: rgba(18, 34, 49, .56); }
.summary-tier-strip small { color: #8199ad; font-size: 9px; white-space: nowrap; }
.summary-tier-strip b { color: #dbe8ef; font: 500 10px var(--mono); white-space: nowrap; }
.summary-row-action { display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--mint); font-size: 9px; font-weight: 700; white-space: nowrap; }
.summary-row-action b { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(80, 211, 177, .22); border-radius: 6px; font: 12px var(--mono); }
.prediction-detail-heading { padding: 12px 0 10px; }
.back-to-predictions { padding: 4px 0; border: 0; color: #91a7b8; background: transparent; font: 10px var(--sans); cursor: pointer; }
.back-to-predictions:hover { color: var(--mint); }
.detail-heading-main { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.detail-heading-main h3 { margin: 0; color: #ecf3f7; font-size: 17px; letter-spacing: -.025em; }
.detail-heading-main p { margin: 5px 0 0; color: #8199ad; font-size: 9px; }
.model-mark { flex: 0 0 auto; padding: 5px 8px; border: 1px solid rgba(80, 211, 177, .2); border-radius: 5px; color: #8edbc5; background: rgba(25, 75, 67, .18); font-size: 9px; }
.current-prediction, .prediction-history { overflow: hidden; border: 1px solid rgba(98, 130, 157, .26); border-radius: 10px; background: linear-gradient(145deg, rgba(22, 39, 56, .9), rgba(17, 31, 46, .84)); }
.current-prediction-heading { padding: 13px 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.current-kicker { color: #8da3b8; font-size: 9px; }
.current-prediction-heading h3 { margin: 3px 0 0; color: #edf4f8; font-size: 14px; }
.pending-draw { display: inline-flex; align-items: center; gap: 6px; color: #9bb2c0; font-size: 9px; }
.pending-draw i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(230, 185, 78, .5); }
.candidate-tiers { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.candidate-tier { min-width: 0; padding: 12px 15px; display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 4px 16px; border: 0; border-top: 1px solid rgba(98, 130, 157, .16); border-radius: 0; background: transparent; }
.candidate-tier-heading { grid-column: 1; grid-row: 1 / 2; margin: 0; display: grid; justify-items: start; align-content: center; gap: 7px; }
.candidate-tier-heading > div { display: grid; gap: 3px; }
.candidate-tier-heading b { color: #e7eff4; font-size: 11px; }
.candidate-tier-heading small { color: #879eb2; font-size: 8px; }
.tier-rate-track { display: none; }
.candidate-token-list { gap: 4px; }
.candidate-token-list .prediction-token { min-width: 27px; height: 24px; padding: 0 6px; font-size: 9px; }
.candidate-token-list .zodiac-token { min-width: 28px; font-family: var(--sans); font-size: 10px; }
.prediction-history { margin-top: 12px; }
.prediction-history-heading { min-height: 52px; padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(113, 145, 171, .14); }
.prediction-history-heading > div { display: grid; gap: 3px; }
.prediction-history-heading h3 { margin: 0; color: #e9f1f5; font-size: 12px; }
.prediction-history-heading small, .prediction-history-heading span { color: #8199ad; font-size: 8px; }
.prediction-history-row { border-bottom: 1px solid rgba(113, 145, 171, .12); }
.prediction-history-row:last-child { border-bottom: 0; }
.prediction-history-row summary { min-height: 46px; padding: 7px 14px; display: flex; align-items: center; gap: 16px; list-style: none; cursor: pointer; }
.prediction-history-row summary::-webkit-details-marker { display: none; }
.history-date { min-width: 128px; display: grid; gap: 3px; }
.history-date b { color: #dbe6ee; font: 500 9px var(--mono); }
.history-date small { color: #849bb0; font-size: 8px; }
.history-tier-statuses { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.history-tier-statuses span { padding: 4px 6px; border: 1px solid rgba(110, 139, 163, .16); border-radius: 4px; color: #aab9c6; background: rgba(32, 49, 65, .46); font-size: 8px; white-space: nowrap; }
.history-tier-statuses span.is-hit, .prediction-history-body strong.is-hit { border-color: rgba(80, 211, 177, .25); color: #8fe2cc; background: rgba(25, 75, 67, .18); }
.history-toggle { margin-left: auto; color: #7891a6; font: 13px var(--mono); transition: transform .16s ease; }
.prediction-history-row[open] .history-toggle { transform: rotate(45deg); }
.prediction-history-body { padding: 0 14px 11px; display: grid; gap: 6px; }
.history-actual { padding: 7px 9px; display: flex; align-items: baseline; gap: 10px; border-radius: 5px; color: #9fb2c1; background: rgba(10, 22, 34, .45); font-size: 8px; }
.history-actual b { flex: 0 0 auto; color: #d1dfe8; }
.history-actual span { font: 9px var(--mono); }
.history-candidate-row { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.history-candidate-row > b { color: #a8bac8; font-size: 8px; }
.compact-tokens { max-height: 58px; overflow: hidden; }
.compact-tokens .prediction-token { min-width: 22px; height: 20px; padding: 0 4px; font-size: 8px; }
.compact-tokens .zodiac-token { min-width: 23px; font-size: 9px; }
.compact-tokens .is-hit-token { border-color: rgba(230, 185, 78, .56); color: #f0ce78; background: rgba(100, 77, 24, .2); }
.prediction-history-body strong { padding: 4px 6px; border: 1px solid rgba(110, 139, 163, .16); border-radius: 4px; color: #aab9c6; font-size: 8px; font-weight: 600; white-space: nowrap; }
.prediction-disclaimer { margin: 9px 2px 0; color: #71889c; font-size: 9px; line-height: 1.5; }

@media (min-width: 721px) and (max-height: 900px) {
  .predict-page { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(113, 145, 171, .32) transparent; scrollbar-width: thin; }
}
@media (max-width: 1120px) and (min-width: 721px) {
  .prediction-summary-row { grid-template-columns: 152px minmax(0, 1fr); gap: 12px 16px; }
  .summary-row-module { grid-column: 1; grid-row: 1; }
  .summary-row-candidates { grid-column: 2; grid-row: 1; }
  .summary-row-performance { grid-column: 2; grid-row: 2; }
  .summary-row-action { grid-column: 1; grid-row: 2; justify-content: flex-start; }
}
@media (max-width: 720px) {
  .predict-page { padding-bottom: 0; }
  .predict-heading { min-height: 0; padding: 12px 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .predict-heading-copy { grid-column: 1 / -1; }
  .predict-heading .heading-title { align-items: baseline; }
  .predict-heading-copy p { margin-top: 4px; max-width: 280px; font-size: 8px; line-height: 1.45; }
  .daily-prediction-context { align-items: flex-start; flex-direction: column; gap: 7px; padding: 9px 10px; }
  .daily-context-meta { justify-content: flex-start; text-align: left; line-height: 1.4; }
  .daily-context-meta > span + span { padding-left: 7px; }
  .scope-control { grid-column: 1 / -1; justify-content: space-between; }
  .scope-control > span { font-size: 8px; }
  .scope-tabs a { min-width: 44px; padding: 7px 8px; font-size: 9px; }
  .predict-context { min-height: 44px; padding: 8px 10px; gap: 7px; font-size: 9px; flex-wrap: wrap; }
  .predict-context small { margin-left: 0; width: 100%; padding-left: 2px; font-size: 8px; }
  .context-divider { height: 15px; }
  .prediction-list { gap: 8px; margin-top: 8px; }
  .prediction-summary-row { min-height: 0; padding: 13px 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; }
  .summary-row-module { grid-column: 1 / -1; grid-row: 1; padding-right: 76px; }
  .summary-row-candidates { grid-column: 1 / -1; grid-row: 2; }
  .summary-row-performance { grid-column: 1 / -1; grid-row: 3; }
  .summary-row-action { position: absolute; top: 16px; right: 12px; font-size: 8px; }
  .summary-row-action b { width: 21px; height: 21px; }
  .module-glyph { width: 33px; height: 33px; flex-basis: 33px; }
  .summary-row-module h3 { font-size: 12px; }
  .summary-row-label { margin-bottom: 6px; }
  .summary-tier-strip { gap: 4px; }
  .summary-tier-strip span { min-height: 36px; padding: 4px 3px; }
  .summary-tier-strip small { font-size: 8px; }
  .summary-tier-strip b { font-size: 9px; }
  .detail-heading-main h3 { font-size: 15px; }
  .detail-heading-main p { max-width: 250px; line-height: 1.45; }
  .model-mark { padding: 4px 6px; font-size: 8px; }
  .candidate-tier { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; }
  .candidate-tier-heading { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; }
  .candidate-tier-heading > div { display: flex; align-items: baseline; gap: 8px; }
  .candidate-token-list { grid-column: 1; grid-row: 2; }
  .prediction-history-heading { min-height: 54px; padding: 9px 10px; align-items: flex-start; }
  .prediction-history-row summary { min-height: 56px; padding: 7px 9px; gap: 8px; }
  .history-date { min-width: 78px; }
  .history-tier-statuses { justify-content: flex-start; gap: 3px; }
  .history-tier-statuses span { padding: 3px 4px; font-size: 7px; }
  .history-candidate-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 5px; }
  .prediction-history-body { padding-right: 9px; padding-left: 9px; }
  .prediction-history-heading > span { max-width: 130px; padding-top: 2px; text-align: right; line-height: 1.4; }
}
@media (max-width: 390px) {
  .side-nav-link { padding: 0 3px; gap: 3px; font-size: 8px; }
  .scope-tabs a { min-width: 39px; padding-right: 6px; padding-left: 6px; }
  .prediction-history-row summary { gap: 6px; }
  .history-date { min-width: 72px; }
  .history-toggle { display: none; }
}

.prediction-audit-intro {
  min-height: 44px;
  margin-top: 10px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--mint);
  border-radius: 0 8px 8px 0;
  color: #c1d0da;
  background: rgba(25, 85, 72, .35);
  font-size: 10px;
}
.audit-intro-status { display: inline-flex; align-items: center; gap: 7px; color: #83e0c8; font-weight: 750; white-space: nowrap; }
.audit-intro-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(80, 211, 177, .46); }
.daily-prediction-context {
  min-height: 58px;
  margin-top: 10px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  border: 1px solid rgba(80, 211, 177, .2);
  border-left: 3px solid var(--mint);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(100deg, rgba(25, 75, 67, .24), rgba(18, 36, 52, .46));
}
.daily-prediction-context.is-outdated { border-left-color: var(--gold); border-color: rgba(230, 185, 78, .2); }
.daily-context-primary, .daily-context-meta { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 11px; }
.daily-context-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(80, 211, 177, .46); }
.is-outdated .daily-context-mark { background: var(--gold); box-shadow: 0 0 8px rgba(230, 185, 78, .35); }
.daily-context-primary strong { color: #91e4cf; font-size: 10px; }
.is-outdated .daily-context-primary strong { color: #e5c775; }
.daily-context-primary b { color: #edf4f8; font: 600 12px var(--mono); }
.daily-context-date, .daily-context-meta { color: #91a7b8; font-size: 9px; }
.daily-context-meta { justify-content: flex-end; text-align: right; }
.daily-context-meta > span + span { padding-left: 10px; border-left: 1px solid rgba(113, 145, 171, .2); }
.daily-context-link { flex: 0 0 auto; color: #79dcca; font-size: 9px; text-decoration: none; white-space: nowrap; }
.daily-context-link:hover { color: #a2f2df; }
.daily-context-link b { margin-left: 3px; font: 10px var(--mono); }
.source-refresh-ok { color: #83d7bd; }
.source-refresh-fallback { color: #e3bc6e; }
.daily-prediction-missing { margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--gold); border-radius: 0 7px 7px 0; color: #d7bf82; background: rgba(89, 68, 28, .18); font-size: 10px; }
.prediction-audit-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 31rem), 1fr)); align-items: stretch; gap: 14px; }
.prediction-audit-card {
  min-width: 0;
  padding: 18px 19px 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(98, 130, 157, .27);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 39, 56, .94), rgba(17, 31, 46, .9));
}
.audit-card-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.audit-card-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.audit-card-title > div { min-width: 0; }
.audit-card-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid rgba(80, 211, 177, .24); border-radius: 9px; color: #8ce2cd; background: rgba(28, 84, 73, .22); font-size: 14px; font-weight: 800; }
.zodiac-audit-icon { border-color: rgba(230, 185, 78, .24); color: #e7ca78; background: rgba(93, 71, 27, .2); }
.audit-card-title h3 { margin: 0; color: #edf4f8; font-size: 15px; letter-spacing: -.02em; }
.audit-card-title p { margin: 4px 0 0; color: #8299ad; font-size: 9px; }
.audit-method-tag { flex: 0 0 auto; padding: 5px 8px; border: 1px solid rgba(105, 139, 165, .2); border-radius: 6px; color: #93a9bb; background: rgba(34, 52, 69, .48); font-size: 9px; }
.audit-card-period { margin-top: 13px; color: #9eb1c1; font-size: 10px; }
.audit-actual-line { min-height: 38px; margin-top: 9px; padding: 6px 9px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(99, 130, 156, .14); border-radius: 7px; color: #a5b8c7; background: rgba(10, 22, 34, .33); font-size: 9px; }
.audit-actual-line > b { flex: 0 0 auto; color: #c7d5df; font-weight: 650; }
.audit-actual-values { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.audit-actual-number, .audit-actual-zodiac { min-width: 25px; height: 23px; padding: 0 6px; display: inline-grid; place-items: center; border: 1px solid rgba(118, 149, 172, .22); border-radius: 5px; color: #e1ebf1; background: rgba(37, 58, 76, .72); font: 500 10px var(--mono); }
.audit-actual-zodiac { min-width: 24px; font-family: var(--sans); font-size: 11px; font-weight: 700; }
.audit-tier-list { margin-top: 9px; display: grid; gap: 7px; }
.audit-tier { min-width: 0; padding: 8px 9px 9px; border: 1px solid rgba(103, 135, 160, .15); border-radius: 9px; background: rgba(31, 50, 68, .57); }
.audit-tier-heading { min-height: 20px; display: flex; align-items: center; gap: 7px; }
.audit-tier-heading > b { color: #7ddbc3; font-size: 11px; }
.audit-tier-count { color: #8299ad; font-size: 9px; }
.audit-result-badge { margin-left: auto; min-width: 42px; padding: 4px 6px; border-radius: 5px; font-size: 9px; font-weight: 800; text-align: center; white-space: nowrap; }
.audit-result-badge.is-hit { color: #60dfa9; background: rgba(20, 94, 62, .33); }
.audit-result-badge.is-miss { color: #f0787f; background: rgba(119, 43, 53, .27); }
.audit-candidate-list { min-width: 0; margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.audit-number-ball { width: 29px; height: 29px; }
.audit-number-ball b { font: 500 10px var(--mono); }
.audit-number-ball.is-audit-hit { outline: 2px solid #62d8b5; outline-offset: 2px; box-shadow: 0 0 10px rgba(80, 211, 177, .24), inset 0 1px 2px rgba(255,255,255,.36), inset 0 -2px 4px rgba(10,26,39,.16), 0 3px 7px rgba(0,0,0,.18); }
.audit-zodiac-list { min-height: 29px; }
.audit-zodiac-token { min-width: 29px; height: 29px; padding: 0 6px; display: inline-grid; place-items: center; border: 1px solid rgba(116, 149, 174, .2); border-radius: 6px; color: #d7e4ec; background: rgba(18, 34, 49, .72); font-size: 12px; font-weight: 700; }
.audit-zodiac-token.is-audit-hit { border-color: rgba(80, 211, 177, .8); color: #9af0d8; background: rgba(24, 109, 87, .27); box-shadow: 0 0 8px rgba(80, 211, 177, .12); }
.audit-card-link { min-height: 48px; margin-top: auto; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(113, 145, 171, .15); color: #79dcca; font-size: 10px; text-decoration: none; }
.audit-card-link:hover { color: #a2f2df; }
.audit-card-link b { font: 13px var(--mono); }

@media (max-width: 1200px) and (min-width: 721px) {
  .prediction-audit-card { padding-right: 12px; padding-left: 12px; }
  .audit-number-ball { width: 25px; height: 25px; }
  .audit-candidate-list { gap: 3px; }
}
@media (max-width: 1000px) and (min-width: 721px) {
  .prediction-audit-grid { grid-template-columns: minmax(0, 1fr); }
  .prediction-audit-card { padding-right: 18px; padding-left: 18px; }
  .audit-number-ball { width: 29px; height: 29px; }
  .audit-candidate-list { gap: 4px; }
}

@media (min-width: 721px) and (max-height: 760px) {
  .shell { padding-top: clamp(8px, 1.6vh, 12px); padding-bottom: 7px; }
  .intro { padding-bottom: clamp(5px, 1vh, 8px); }
  .latest-draw { min-height: clamp(46px, 8vh, 58px); padding-top: clamp(5px, 1vh, 7px); padding-bottom: clamp(5px, 1vh, 7px); }
  .predict-page { padding-bottom: 0; }
  .predict-heading { min-height: 0; padding-top: clamp(7px, 1.25vh, 11px); padding-bottom: clamp(7px, 1.25vh, 11px); }
  .predict-context { min-height: clamp(35px, 5vh, 43px); padding-top: clamp(5px, .9vh, 7px); padding-bottom: clamp(5px, .9vh, 7px); }
  .prediction-audit-intro { min-height: 0; margin-top: clamp(5px, .9vh, 8px); padding-top: clamp(5px, .9vh, 7px); padding-bottom: clamp(5px, .9vh, 7px); }
  .prediction-audit-grid { margin-top: clamp(6px, 1vh, 9px); gap: clamp(8px, 1vw, 12px); }
  .prediction-audit-card { padding: clamp(9px, 1.35vh, 13px) clamp(10px, 1.25vw, 16px) 0; }
  .audit-card-period { margin-top: clamp(7px, 1vh, 10px); }
  .audit-actual-line { min-height: clamp(30px, 4.5vh, 35px); margin-top: clamp(5px, .8vh, 7px); padding-top: 4px; padding-bottom: 4px; }
  .audit-actual-number, .audit-actual-zodiac { height: clamp(19px, 3.1vh, 22px); }
  .audit-tier-list { margin-top: clamp(5px, .8vh, 7px); gap: clamp(4px, .7vh, 6px); }
  .audit-tier { padding: clamp(4px, .75vh, 6px) 7px; }
  .audit-candidate-list { margin-top: clamp(4px, .65vh, 6px); }
  .audit-number-ball { width: clamp(20px, 3.15vh, 24px); height: clamp(20px, 3.15vh, 24px); }
  .audit-number-ball b { font-size: clamp(8px, 1.25vh, 9px); }
  .audit-zodiac-token { min-width: clamp(24px, 3.5vh, 27px); height: clamp(24px, 3.5vh, 27px); }
  .audit-card-link { min-height: clamp(34px, 5vh, 41px); padding-top: 7px; padding-bottom: 7px; }
}
@media (min-width: 721px) and (max-height: 620px) {
  .shell { padding-top: 6px; padding-bottom: 5px; }
  .intro { padding-bottom: 4px; }
  .latest-draw { min-height: 42px; padding-top: 3px; padding-bottom: 3px; }
  .predict-heading-copy p { margin-top: 3px; font-size: 9px; }
  .predict-context { min-height: 31px; padding-top: 3px; padding-bottom: 3px; }
  .predict-context small { font-size: 8px; }
  .prediction-audit-intro { margin-top: 4px; padding-top: 4px; padding-bottom: 4px; font-size: 9px; }
  .prediction-audit-grid { margin-top: 5px; gap: 7px; }
  .prediction-audit-card { padding: 7px 9px 0; border-radius: 9px; }
  .audit-card-icon { width: 27px; height: 27px; flex-basis: 27px; }
  .audit-card-title h3 { font-size: 13px; }
  .audit-card-title p { margin-top: 2px; font-size: 8px; }
  .audit-card-period { margin-top: 5px; font-size: 9px; }
  .audit-actual-line { min-height: 26px; margin-top: 4px; padding: 2px 6px; }
  .audit-actual-number, .audit-actual-zodiac { min-width: 20px; height: 18px; }
  .audit-tier-list { margin-top: 4px; gap: 3px; }
  .audit-tier { padding: 3px 5px; border-radius: 6px; }
  .audit-tier-heading { min-height: 16px; }
  .audit-tier-heading > b { font-size: 9px; }
  .audit-tier-count, .audit-result-badge { font-size: 8px; }
  .audit-result-badge { min-width: 36px; padding: 2px 4px; }
  .audit-candidate-list { margin-top: 3px; gap: 3px; }
  .audit-number-ball { width: 19px; height: 19px; }
  .audit-number-ball b { font-size: 7px; }
  .audit-zodiac-token { min-width: 22px; height: 22px; font-size: 10px; }
  .audit-card-link { min-height: 29px; padding-top: 5px; padding-bottom: 5px; font-size: 9px; }
}
@media (max-width: 720px) {
  .prediction-audit-intro { min-height: 0; margin-top: 8px; padding: 9px 10px; align-items: flex-start; flex-direction: column; gap: 5px; font-size: 9px; line-height: 1.4; }
  .prediction-audit-grid { margin-top: 9px; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .prediction-audit-card { padding: 13px 11px 0; border-radius: 11px; }
  .audit-card-icon { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
  .audit-card-title { gap: 8px; }
  .audit-card-title h3 { font-size: 13px; }
  .audit-card-title p { font-size: 8px; }
  .audit-method-tag { padding: 4px 6px; font-size: 8px; }
  .audit-card-period { margin-top: 10px; font-size: 9px; }
  .audit-actual-line { min-height: 34px; margin-top: 7px; padding: 5px 7px; gap: 6px; font-size: 8px; }
  .audit-actual-number, .audit-actual-zodiac { min-width: 22px; height: 21px; padding: 0 4px; font-size: 9px; }
  .audit-actual-zodiac { font-size: 10px; }
  .audit-tier-list { margin-top: 7px; gap: 6px; }
  .audit-tier { padding: 7px 7px 8px; border-radius: 7px; }
  .audit-number-ball { width: clamp(25px, 7.3vw, 29px); height: clamp(25px, 7.3vw, 29px); }
  .audit-number-ball b { font-size: 9px; }
  .audit-candidate-list { gap: 4px; }
  .audit-zodiac-token { min-width: 27px; height: 27px; font-size: 11px; }
  .audit-card-link { min-height: 42px; padding: 9px 0; font-size: 9px; }
}
@media (prefers-reduced-transparency: reduce) {
  .prediction-audit-card, .audit-tier { background: #142436; }
}

/* Compact audit layout: one clear label, one candidate row, one result. */
.predict-heading-copy p { margin-top: 4px; font-size: 9px; }
.prediction-audit-grid { margin-top: 8px; gap: 12px; }
.prediction-audit-card { padding: 12px 15px 0; border-radius: 11px; background: rgba(20, 35, 50, .76); }
.audit-card-heading { padding-bottom: 8px; border-bottom: 1px solid rgba(113, 145, 171, .14); }
.audit-card-title { width: 100%; }
.audit-card-title h3 { font-size: 14px; }
.audit-tier-list { margin-top: 0; gap: 0; }
.audit-tier {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(113, 145, 171, .12);
  border-radius: 0;
  background: transparent;
}
.audit-tier:first-child { border-top: 0; }
.audit-tier-heading { grid-column: 1; grid-row: 1; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.audit-tier-heading > b { color: #91dfcc; font-size: 10px; }
.audit-result-badge { min-width: 0; margin-left: 0; padding: 2px 5px; border-radius: 4px; font-size: 8px; }
.audit-result-badge.is-hit { color: #71ddb5; background: rgba(20, 94, 62, .24); }
.audit-result-badge.is-miss { color: #df8389; background: rgba(119, 43, 53, .2); }
.audit-candidate-list { grid-column: 2; grid-row: 1; justify-content: flex-start; margin-top: 0; gap: 4px; }
.audit-number-ball { width: 28px; height: 28px; }
.audit-number-ball b { font-size: 9px; }
.audit-number-ball.is-audit-hit { outline-offset: 1px; }
.audit-zodiac-token { min-width: 27px; height: 27px; border-radius: 5px; font-size: 11px; }
.audit-card-link { min-height: 36px; padding: 7px 0; font-size: 9px; }
@media (max-width: 1000px) and (min-width: 721px) {
  .prediction-audit-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 721px) and (max-height: 760px) {
  .prediction-audit-grid { gap: 8px; }
  .prediction-audit-card { padding: 8px 12px 0; }
  .audit-card-heading { padding-bottom: 5px; }
  .audit-tier { grid-template-columns: 48px minmax(0, 1fr); padding: 5px 0; }
  .audit-tier-heading { gap: 3px; }
  .audit-number-ball { width: 24px; height: 24px; }
  .audit-number-ball b { font-size: 8px; }
  .audit-candidate-list { gap: 3px; }
  .audit-zodiac-token { min-width: 23px; height: 23px; font-size: 10px; }
  .audit-card-link { min-height: 30px; padding: 5px 0; }
}
@media (min-width: 721px) and (max-height: 620px) {
  .prediction-audit-card { padding: 5px 9px 0; }
  .audit-card-heading { padding-bottom: 3px; }
  .audit-tier { grid-template-columns: 42px minmax(0, 1fr); padding: 3px 0; }
  .audit-tier-heading { gap: 2px; }
  .audit-tier-heading > b { font-size: 8px; }
  .audit-result-badge { padding: 1px 3px; font-size: 7px; }
  .audit-number-ball { width: 19px; height: 19px; }
  .audit-number-ball b { font-size: 7px; }
  .audit-zodiac-token { min-width: 20px; height: 20px; font-size: 9px; }
  .audit-card-link { min-height: 25px; padding: 3px 0; }
}
@media (max-width: 720px) {
  .prediction-audit-grid { margin-top: 7px; gap: 8px; }
  .prediction-audit-card { padding: 9px 10px 0; border-radius: 9px; }
  .audit-card-heading { padding-bottom: 6px; }
  .audit-card-title h3 { font-size: 12px; }
  .audit-tier { grid-template-columns: 44px minmax(0, 1fr); gap: 7px; padding: 6px 0; }
  .audit-number-ball { width: clamp(22px, 6.5vw, 25px); height: clamp(22px, 6.5vw, 25px); }
  .audit-number-ball b { font-size: 8px; }
  .audit-candidate-list { gap: 3px; }
  .audit-zodiac-token { min-width: 23px; height: 23px; font-size: 10px; }
  .audit-card-link { min-height: 30px; padding: 5px 0; }
}

@media (min-width: 721px) {
  .shell.predict-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
  .predict-shell .predict-page { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
  .predict-shell .prediction-audit-grid { min-height: 0; flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
  .predict-shell .prediction-audit-card { min-height: 0; height: 100%; }
  .predict-shell .audit-tier-list { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-evenly; }
  .predict-shell .audit-tier { min-height: 0; flex: 1 1 0; }
  .predict-shell .prediction-disclaimer { margin-top: auto; padding-top: 7px; }
}

.audit-tier { grid-template-columns: 52px minmax(0, 1fr) auto; }
.audit-tier-heading { grid-column: 1; grid-row: 1; }
.audit-candidate-list { grid-column: 2; grid-row: 1; }
.audit-result-badge {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  min-width: 54px;
  height: 25px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(118, 149, 172, .22);
  border-radius: 6px;
  font-size: 8px;
}
.audit-result-badge::before { width: 5px; height: 5px; border-radius: 50%; content: ""; }
.audit-result-badge.is-hit { border-color: rgba(80, 211, 177, .24); }
.audit-result-badge.is-hit::before { background: #62d8b5; box-shadow: 0 0 6px rgba(80, 211, 177, .35); }
.audit-result-badge.is-miss { border-color: rgba(230, 83, 104, .2); }
.audit-result-badge.is-miss::before { background: #d96f7b; }
@media (min-width: 721px) and (max-height: 760px) {
  .audit-tier { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .audit-result-badge { min-width: 49px; height: 22px; padding: 0 6px; }
}
@media (min-width: 721px) and (max-height: 620px) {
  .audit-tier { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .audit-result-badge { min-width: 44px; height: 19px; gap: 3px; padding: 0 4px; font-size: 7px; }
  .audit-result-badge::before { width: 4px; height: 4px; }
}
@media (max-width: 720px) {
  .audit-tier { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .audit-result-badge { min-width: 45px; height: 22px; padding: 0 5px; gap: 4px; }
}

@media (min-width: 721px) {
  .prediction-detail-layout { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 12px; }
  .prediction-detail-layout > .current-prediction,
  .prediction-detail-layout > .prediction-history { min-height: 0; height: 100%; margin: 0; display: flex; flex-direction: column; }
  .prediction-detail-layout > .prediction-history { min-height: 412px; }
  .current-prediction { container-name: candidate-panel; container-type: inline-size; }
  .current-prediction-heading, .prediction-history-heading { flex: 0 0 auto; }
  .current-prediction-heading { min-height: 50px; }
  .current-prediction-heading > div { display: flex; align-items: center; gap: 10px; }
  .current-prediction-heading h3 { margin: 0; }
  .candidate-tiers { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
  .candidate-tier { min-height: 0; flex: 1 1 0; grid-template-columns: 92px minmax(0, 1fr); padding: 8px 12px; gap: 4px 10px; }
  .candidate-tier:nth-child(1) { flex-grow: .8; }
  .candidate-tier:nth-child(2) { flex-grow: 1.1; }
  .candidate-tier:nth-child(3) { flex-grow: 1.4; }
  .candidate-tier:nth-child(4) { flex-grow: 1.8; }
  .candidate-tier-heading { grid-column: 1; grid-row: 1 / 2; }
  .tier-rate-track { width: min(100%, 64px); height: 3px; display: block; overflow: hidden; border-radius: 999px; background: rgba(113, 145, 171, .18); }
  .tier-rate-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, rgba(80, 211, 177, .62), #50d3b1); }
  .current-prediction .candidate-token-list { grid-column: 2; grid-row: 1; align-self: center; align-content: center; }
  .number-tiers .candidate-token-list { display: grid; grid-template-columns: repeat(8, 27px); }
  .number-tiers .candidate-token-list .prediction-token { justify-self: start; }
  .prediction-history-heading { min-height: 68px; }
  .prediction-history-list {
    --history-row-height: calc(100% / 9);
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-auto-rows: var(--history-row-height);
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-color: rgba(113, 145, 171, .32) transparent;
    scrollbar-width: thin;
  }
  .prediction-history-row { min-height: 0; scroll-snap-align: start; }
  .prediction-history-row summary { height: 100%; min-height: 0; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .prediction-detail-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 8px; }
  .candidate-tier { grid-template-columns: 80px minmax(0, 1fr); padding-right: 8px; padding-left: 8px; gap: 4px 6px; }
  .candidate-tier-heading { gap: 5px; }
  .candidate-tier-heading > div { gap: 2px; }
  .history-date { min-width: 92px; }
  .prediction-history-row summary { gap: 7px; padding-right: 9px; padding-left: 9px; }
  .history-tier-statuses { justify-content: flex-start; gap: 3px; }
  .history-tier-statuses span { padding: 3px 4px; font-size: 7px; }
}
@container candidate-panel (min-width: 560px) {
  .number-tiers .candidate-tier:nth-child(3) .candidate-token-list { grid-template-columns: repeat(12, 27px); }
  .number-tiers .candidate-tier:nth-child(4) .candidate-token-list { grid-template-columns: repeat(12, 27px); }
}
@container candidate-panel (min-width: 640px) {
  .number-tiers .candidate-tier:nth-child(2) .candidate-token-list { grid-template-columns: repeat(16, 27px); }
  .number-tiers .candidate-tier:nth-child(4) .candidate-token-list { grid-template-columns: repeat(16, 27px); }
}
@media (min-width: 721px) and (max-height: 760px) {
  .prediction-detail-layout { gap: 8px; }
  .current-prediction-heading { padding-right: 10px; padding-left: 10px; }
  .candidate-tier { padding-top: 5px; padding-bottom: 5px; }
  .prediction-history-heading { min-height: 68px; padding: 7px 10px; }
  .prediction-history-row summary { min-height: 0; padding-top: 5px; padding-bottom: 5px; }
}
@media (min-width: 721px) and (max-height: 820px) {
  .candidate-tier { padding-top: 4px; padding-bottom: 4px; }
  .current-prediction .candidate-token-list { row-gap: 2px; }
  .current-prediction .candidate-token-list .prediction-token { height: 22px; }
}

/* Keep nine even rows while collapsed; switch to a natural accordion when details open. */
@media (min-width: 721px) {
  .prediction-history-list:has(.prediction-history-row[open]) {
    display: block;
    scroll-snap-type: none;
  }
  .prediction-history-list:has(.prediction-history-row[open]) .prediction-history-row { scroll-snap-align: none; }
  .prediction-history-list:has(.prediction-history-row[open]) .prediction-history-row:not([open]) {
    height: var(--history-row-height);
  }
  .prediction-history-list:has(.prediction-history-row[open]) .prediction-history-row summary {
    height: 100%;
    min-height: 0;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .prediction-history-row[open] {
    height: calc(100% - var(--history-row-height) - var(--history-row-height));
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .prediction-history-row[open] > summary {
    height: auto;
    min-height: 46px;
    flex: 0 0 46px;
    border-bottom: 1px solid rgba(80, 211, 177, .18);
    background: rgba(80, 211, 177, .045);
  }
  .prediction-history-row[open] .prediction-history-body {
    min-height: 0;
    flex: 1 1 auto;
    padding: 10px 14px 12px;
    gap: 7px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(113, 145, 171, .28) transparent;
    scrollbar-width: thin;
  }
  .history-actual {
    min-height: 31px;
    padding: 6px 9px;
    border: 1px solid rgba(113, 145, 171, .13);
    background: rgba(10, 22, 34, .42);
  }
  .history-candidate-row {
    min-height: 34px;
    padding: 5px 7px;
    border: 1px solid rgba(113, 145, 171, .12);
    border-radius: 6px;
    background: rgba(25, 42, 58, .42);
  }
}

@media (min-width: 721px) and (max-height: 900px) {
  .prediction-records-panel { min-height: 0; flex: 1 1 auto; }
}

@media (min-width: 721px) {
  .records-expanded-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-top: clamp(8px, 1.8vh, 18px);
    padding-bottom: clamp(6px, 1.2vh, 12px);
    display: flex;
    flex-direction: column;
  }
  .records-expanded-shell .intro { flex: 0 0 auto; padding-bottom: clamp(6px, 1.2vh, 12px); }
  .records-expanded-shell .latest-draw { min-height: clamp(48px, 8.5vh, 76px); }
  .records-expanded-shell .workspace { min-height: 0; flex: 1 1 auto; }
  .records-expanded-shell .records-column { height: 100%; min-height: 0; display: flex; flex-direction: column; }
  .records-expanded-shell .section-heading { min-height: clamp(52px, 8.5vh, 78px); padding-top: clamp(7px, 1.3vh, 13px); padding-bottom: clamp(7px, 1.3vh, 12px); flex: 0 0 auto; }
  .records-expanded-shell .prediction-records-panel { min-height: 0; flex: 1 1 auto; }
  .records-expanded-shell .prediction-record-list { min-height: 0; flex: 1 1 auto; --next-record-preview-height: 68px; }
  .records-expanded-shell .used-prediction-record.is-expanded { min-height: calc(100% - var(--next-record-preview-height)); display: flex; flex-direction: column; }
  .records-expanded-shell .used-prediction-record.is-expanded .used-prediction-kinds { flex: 1 0 auto; }
}

@media (min-width: 721px) and (max-width: 960px) {
  .records-expanded-shell .prediction-record-list { --next-record-preview-height: 100px; }
}

@media (max-width: 720px) {
  .records-heading-group { align-items: flex-start; flex-direction: column; gap: 8px; }
  .records-view-tabs a { min-height: 26px; padding-right: 8px; padding-left: 8px; }
  .prediction-records-panel { min-height: 360px; }
  .prediction-records-heading { align-items: flex-start; flex-direction: column; gap: 7px; padding: 9px 10px; }
  .prediction-records-heading .scope-control { width: 100%; justify-content: space-between; }
  .prediction-record-list { flex: 0 1 auto; max-height: 70vh; }
  .prediction-records-panel.has-expanded-record .prediction-record-list { max-height: 70dvh; }
  .used-prediction-record.is-expanded { min-height: max(0px, calc(70dvh - 91px)); display: flex; flex-direction: column; }
  .used-prediction-record.is-expanded .used-prediction-kinds { flex: 1 0 auto; }
  .used-prediction-record { padding: 10px; }
  .used-prediction-summary { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .used-prediction-title { grid-column: 1; grid-row: 1; }
  .used-prediction-title small { font-size: 8px; }
  .used-prediction-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .used-prediction-toggle { grid-column: 3; grid-row: 1; min-height: 30px; padding: 0 8px; font-size: 10px; }
  .used-prediction-result { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 7px; }
  .used-result-ball { width: 30px; height: 30px; }
  .used-prediction-kinds { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .used-prediction-kind { padding: 8px; }
  .prediction-record-empty { min-height: 180px; padding: 20px 12px; }
  .daily-prediction-context { align-items: flex-start; flex-direction: column; gap: 7px; padding: 9px 10px; }
  .daily-context-meta { justify-content: flex-start; text-align: left; line-height: 1.4; }
  .daily-context-meta > span + span { padding-left: 7px; }
}

/* Type scale for records: draw data first, supporting metadata second. */
body { font-size: 16px; }
.brand strong { font-size: 16px; }
.brand small { font-size: 10px; letter-spacing: .06em; }
.side-nav-link { font-size: 13px; }
.source-link, .topbar-right { font-size: 12px; }
.intro-description { font-size: 14px; }
.latest-kicker { font-size: 11px; }
.latest-meta b { font-size: 14px; }
.latest-open-date { font-size: 11px; }
.latest-facts span { font-size: 10px; }
.latest-ball b { font-size: clamp(11px, .68vw, 14px); }
.latest-ball small { font-size: clamp(8px, .5vw, 10px); }
.records-column h2 { font-size: 20px; }
.records-column .result-count { font-size: 12px; }
.filter-bar .el-input__inner, .filter-bar .el-select__selected-item, .filter-bar .el-range-input { font-size: 12px; }
.table-head { font-size: 11px; }
.draw-id b { font-size: 13px; }
.draw-id small { font-size: 11px; }
.table-ball b { font-size: 13px; }
.properties span { font-size: 11px; }
.page-hint { font-size: 11px; }
.records-view-tabs a { min-height: 32px; padding-right: 12px; padding-left: 12px; font-size: 12px; }
.records-view-tabs a span { font-size: 11px; }
.prediction-records-heading > p { font-size: 12px; }
.prediction-records-heading .scope-control > span { font-size: 12px; }
.prediction-records-heading .scope-tabs a { min-width: 70px; padding: 9px 14px; font-size: 13px; }
.used-prediction-record { padding: 13px 18px 12px; }
.used-prediction-summary { gap: 16px; }
.used-prediction-title b { font-size: 15px; }
.used-prediction-title small, .used-prediction-meta { font-size: 11px; }
.used-prediction-result { gap: clamp(6px, .5vw, 9px); }
.used-result-ball { width: 40px; height: 40px; gap: 2px; }
.used-result-ball b { font-size: 12px; }
.used-result-ball small { font: 600 10px var(--sans); opacity: .96; }
.used-prediction-status { padding: 5px 9px; font-size: 11px; }
.used-prediction-meta { margin: 8px 0 7px; }
.used-prediction-kinds { margin-top: 8px; gap: 12px; }
.used-prediction-kind { padding: 9px 10px; }
.used-prediction-kind h4 { margin-bottom: 7px; font-size: 13px; }
.used-prediction-kind h4 small { font-size: 11px; }
.used-prediction-tier { padding: 6px 0; }
.used-prediction-tier-label b, .used-prediction-tier-label span { font-size: 11px; }
.used-prediction-tier .candidate-token-list { gap: 5px; }
.used-prediction-tier .compact-tokens { max-height: none; overflow: visible; }
.used-prediction-tier .candidate-number-pair {
  width: 34px;
  min-width: 34px;
  height: 37px;
  padding: 3px 2px;
  flex-direction: column;
  gap: 1px;
  border-radius: 7px;
}
.used-prediction-tier .candidate-number-pair b { color: #e8f0f5; font: 600 12px/1 var(--mono); }
.used-prediction-tier .candidate-number-pair small { color: #9bc9bd; font: 600 10px/1 var(--sans); }
.used-prediction-tier .candidate-number-pair.is-hit-token b,
.used-prediction-tier .candidate-number-pair.is-hit-token small { color: #f0ce78; }
.used-prediction-tier .candidate-number-pair,
.used-prediction-tier .zodiac-token { height: 35px; min-height: 35px; }
.used-prediction-tier .zodiac-token { min-width: 31px; font-size: 13px; }
.prediction-record-empty b { font-size: 14px; }
.prediction-record-empty span { font-size: 12px; }
.pagination-row .el-pagination, .pagination-row .el-pager li { font-size: 12px; }

@media (max-width: 720px) {
  .used-prediction-record { padding: 13px 11px; }
  .used-prediction-title b { font-size: 14px; }
  .used-prediction-title small, .used-prediction-meta { font-size: 10px; }
  .used-prediction-summary { gap: 8px; }
  .used-prediction-result { gap: clamp(4px, 1.4vw, 7px); }
  .used-result-ball { width: clamp(32px, 9vw, 38px); height: clamp(32px, 9vw, 38px); }
  .used-result-ball b { font-size: 11px; }
  .used-result-ball small { font-size: 9px; }
  .used-prediction-kinds { gap: 9px; }
  .used-prediction-kind { padding: 10px; }
  .used-prediction-kind h4 { font-size: 12px; }
  .used-prediction-tier .candidate-number-pair { width: 32px; min-width: 32px; height: 35px; }
  .used-prediction-tier .candidate-number-pair b { font-size: 11px; }
  .used-prediction-tier .candidate-number-pair small { font-size: 9px; }
  .used-prediction-tier .candidate-number-pair,
  .used-prediction-tier .zodiac-token { height: 35px; min-height: 35px; }
  .used-prediction-tier .zodiac-token { min-width: 29px; font-size: 12px; }
  .prediction-records-heading > p { font-size: 11px; }
}

/* Candidate tiers: treat the ranked animals as the focus, with backtest figures as context. */
@media (min-width: 721px) {
  .candidate-tier {
    position: relative;
    grid-template-columns: 124px minmax(0, 1fr);
    flex: 1 1 0;
    gap: 7px 14px;
    padding: 9px 14px;
    background: linear-gradient(90deg, rgba(26, 73, 67, .13), transparent 42%);
  }
  .candidate-tier:nth-child(1) { flex-grow: .8; }
  .candidate-tier:nth-child(2) { flex-grow: 1.1; }
  .candidate-tier:nth-child(3) { flex-grow: 1.4; }
  .candidate-tier:nth-child(4) { flex-grow: 1.8; }
  .candidate-tier::before {
    position: absolute;
    inset: 11px auto 11px 0;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(80, 211, 177, .2), rgba(80, 211, 177, .72), rgba(80, 211, 177, .2));
    content: "";
  }
  .candidate-tier-heading { gap: 7px; }
  .candidate-tier-heading > div { gap: 5px; }
  .candidate-tier-heading b {
    width: max-content;
    min-height: 23px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(80, 211, 177, .25);
    border-radius: 6px;
    color: #a9eadb;
    background: rgba(21, 71, 64, .32);
    font-size: 11px;
  }
  .candidate-tier-heading small { color: #9bb0bd; font-size: 9px; line-height: 1.35; }
  .tier-rate-track { width: min(100%, 92px); height: 4px; }
  .current-prediction .candidate-tiers:not(.number-tiers) .candidate-token-list {
    min-height: 48px;
    padding: 5px 10px;
    justify-content: center;
    column-gap: 7px;
    row-gap: 5px;
    border: 1px solid rgba(94, 151, 142, .16);
    border-radius: 9px;
    background: rgba(8, 24, 32, .28);
  }
  .current-prediction .candidate-tiers:not(.number-tiers) .candidate-token-list .zodiac-token {
    min-width: 36px;
    height: 34px;
    padding: 0 8px;
    border-color: rgba(100, 190, 169, .3);
    border-radius: 9px;
    color: #c1efe3;
    background: linear-gradient(150deg, rgba(33, 91, 79, .56), rgba(22, 52, 58, .8));
    box-shadow: inset 0 1px 0 rgba(210, 255, 240, .08), 0 2px 5px rgba(0, 0, 0, .14);
    font-size: 13px;
  }
}

@container candidate-panel (max-width: 520px) {
  .candidate-tier { grid-template-columns: 78px minmax(0, 1fr); gap: 5px 8px; padding: 6px 8px; }
  .candidate-tier-heading { gap: 5px; }
  .candidate-tier-heading > div { gap: 3px; }
  .candidate-tier-heading b { min-height: 21px; padding: 2px 6px; font-size: 10px; }
  .candidate-tier-heading small { font-size: 8px; }
  .tier-rate-track { width: min(100%, 64px); height: 3px; }
  .current-prediction .candidate-tiers:not(.number-tiers) .candidate-token-list { min-height: 42px; padding: 4px; gap: 4px; }
  .current-prediction .candidate-tiers:not(.number-tiers) .candidate-token-list .zodiac-token { min-width: 29px; height: 29px; padding: 0 5px; border-radius: 8px; font-size: 11px; }
}

@media (max-width: 720px) {
  .candidate-tier { padding: 11px 10px; gap: 8px; }
  .candidate-tier-heading b { min-height: 22px; padding: 2px 7px; border: 1px solid rgba(80, 211, 177, .25); border-radius: 6px; color: #a9eadb; background: rgba(21, 71, 64, .32); }
  .candidate-tier-heading small { color: #9bb0bd; font-size: 9px; }
  .current-prediction .candidate-tiers:not(.number-tiers) .candidate-token-list { min-height: 44px; padding: 5px 7px; gap: 5px; border: 1px solid rgba(94, 151, 142, .16); border-radius: 8px; background: rgba(8, 24, 32, .28); }
  .current-prediction .candidate-tiers:not(.number-tiers) .candidate-token-list .zodiac-token { min-width: 31px; height: 31px; border-color: rgba(100, 190, 169, .3); border-radius: 8px; color: #c1efe3; background: linear-gradient(150deg, rgba(33, 91, 79, .56), rgba(22, 52, 58, .8)); font-size: 12px; }
}

/* Prediction detail: give each tier room for its candidates and align audit outcomes. */
@media (min-width: 721px) {
  .prediction-detail-layout {
    min-height: 458px;
    height: 458px;
    flex: 0 0 458px;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: stretch;
    gap: 14px;
  }
  .prediction-detail-layout > .current-prediction,
  .prediction-detail-layout > .prediction-history {
    height: 100%;
    min-height: 458px;
    margin: 0;
  }
  .prediction-detail-layout > .current-prediction { overflow: hidden; }
  .candidate-tiers { min-height: 0; flex: 1 1 auto; }
  .candidate-tier {
    min-height: 82px;
    flex: 1 1 auto;
    grid-template-columns: minmax(104px, 116px) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    align-content: center;
    gap: 4px 12px;
    padding: 7px 12px;
    background: linear-gradient(90deg, rgba(26, 73, 67, .13), rgba(26, 73, 67, .025) 68%, transparent);
  }
  .candidate-tier:nth-child(n) { flex-grow: 1; }
  .candidate-tier-heading { grid-row: 1 / 2; gap: 5px; }
  .candidate-tier-heading > div { gap: 2px; }
  .candidate-tier-heading small { font-size: 8px; white-space: nowrap; }
  .candidate-tier-heading b { min-height: 22px; padding: 2px 7px; }
  .current-prediction .candidate-token-list {
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
    padding: 4px 8px;
    align-self: center;
    align-content: center;
    justify-content: flex-start;
    gap: 4px 5px;
    border: 1px solid rgba(94, 151, 142, .16);
    border-radius: 8px;
    background: rgba(8, 24, 32, .28);
  }
  .current-prediction .candidate-tiers:not(.number-tiers) .candidate-token-list .zodiac-token {
    min-width: 30px;
    height: 30px;
    padding: 0 5px;
    border-radius: 8px;
    font-size: 11px;
  }
  .number-tiers .candidate-token-list {
    display: flex;
    grid-template-columns: none;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .number-tiers .candidate-token-list .prediction-token { flex: 0 0 27px; justify-self: auto; }
  .prediction-history-heading {
    min-height: 68px;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(28, 52, 68, .48), rgba(22, 39, 56, .12));
  }
  .current-prediction-heading,
  .prediction-history-heading {
    min-height: 68px;
    padding: 10px 14px;
    align-items: center;
  }
  .prediction-history-heading h3 { font-size: 13px; }
  .prediction-history-heading small { font-size: 8px; }
  .prediction-history-heading > span { text-align: right; line-height: 1.45; }
  .prediction-history-list {
    --history-row-height: calc(100% / 9);
    height: 0;
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-auto-rows: var(--history-row-height);
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
  .prediction-history-row { min-height: 0; }
  .prediction-history-row summary {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(76px, .95fr) repeat(4, minmax(42px, .72fr)) 20px;
    gap: 5px;
    padding: 5px 9px;
    transition: background-color .16s ease;
  }
  .prediction-history-row:hover summary { background: rgba(73, 108, 128, .11); }
  .prediction-history-row[open] summary { background: rgba(80, 211, 177, .055); }
  .history-date { min-width: 0; gap: 3px; }
  .history-date b { font-size: 8px; }
  .history-date small { font-size: 7px; }
  .history-tier-statuses { display: contents; }
  .history-tier-statuses span {
    min-width: 0;
    padding: 4px 3px;
    display: inline-flex;
    justify-content: center;
    border-radius: 5px;
    font-size: 7px;
    text-align: center;
  }
  .history-toggle {
    width: 20px;
    height: 20px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(113, 145, 171, .17);
    border-radius: 50%;
    color: #95adbd;
    font-size: 11px;
  }
  .prediction-history-row[open] .history-toggle { border-color: rgba(80, 211, 177, .28); color: #83dfc7; }
}

@media (min-width: 721px) and (max-width: 760px) {
  .prediction-detail-layout { height: auto; min-height: 0; flex: 0 0 auto; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .prediction-detail-layout > .current-prediction { height: auto; min-height: 0; }
  .prediction-detail-layout > .prediction-history { height: 458px; min-height: 458px; }
  .prediction-history-list { height: 0; }
  .candidate-tier { grid-template-columns: 116px minmax(0, 1fr); }
  .current-prediction .candidate-tiers:not(.number-tiers) .candidate-token-list .zodiac-token { min-width: 32px; }
}

@media (min-width: 1001px) {
  .history-date b { font-size: 9px; }
  .history-tier-statuses span { padding: 4px 5px; font-size: 8px; }
}

@media (max-width: 720px) {
  .prediction-detail-layout { display: block; }
  .prediction-detail-layout > .current-prediction,
  .prediction-detail-layout > .prediction-history { height: auto; min-height: 0; }
  .prediction-detail-layout > .prediction-history { min-height: 360px; margin-top: 12px; }
  .prediction-history-list { height: auto; max-height: 68vh; overflow-y: auto; }
}

/* Keep both overview cards and their full candidate lists visible on compact desktops. */
@media (min-width: 721px) and (max-width: 1000px) {
  .predict-shell .prediction-audit-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    flex: 0 0 auto;
  }
  .predict-shell .prediction-audit-card { padding: 5px 10px 0; }
  .predict-shell .audit-card-heading { padding-bottom: 3px; }
  .predict-shell .audit-tier-list { margin-top: 2px; gap: 0; }
  .predict-shell .audit-tier {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 5px;
    padding: 2px 0;
  }
  .predict-shell .audit-tier-heading { min-height: 16px; gap: 2px; }
  .predict-shell .audit-tier-heading > b { font-size: 8px; }
  .predict-shell .audit-candidate-list { margin-top: 0; gap: 2px; }
  .predict-shell .audit-number-ball { width: 18px; height: 18px; }
  .predict-shell .audit-number-ball b { font-size: 7px; }
  .predict-shell .audit-zodiac-token { min-width: 20px; height: 20px; padding: 0 4px; font-size: 9px; }
  .predict-shell .audit-card-link { min-height: 23px; padding: 3px 0; font-size: 8px; }
}

.prediction-audit-intro { flex-wrap: wrap; }
.prediction-audit-intro > span:last-child { flex: 1 1 100%; color: #95aabb; }

.special-trait-inline { min-width: 0; min-height: 25px; padding: 4px 6px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid rgba(80, 211, 177, .16); border-radius: 5px; background: rgba(8, 22, 33, .32); white-space: nowrap; }
.special-trait-inline small { color: #8299aa; font-size: 8px; }
.special-trait-inline b { color: #91e4cf; font-size: 10px; font-weight: 700; }
.special-trait-inline em { color: #9bb1bd; font: 500 8px var(--mono); font-style: normal; }

.prediction-board-grid { min-width: 0; margin-top: 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: stretch; gap: 0; }
.prediction-board-card {
  min-width: 0;
  padding: 16px 18px 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.prediction-number-card { border-right: 1px solid rgba(113, 145, 171, .15); }
.prediction-zodiac-card { padding-left: 18px; }
.prediction-board-heading { min-height: 44px; padding-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(113, 145, 171, .13); }
.prediction-board-heading.has-special-size,
.prediction-board-heading.has-special-parity { gap: 8px; }
.prediction-board-heading-copy h3 { white-space: nowrap; }
.prediction-board-heading > div { min-width: 0; }
.prediction-board-kicker { color: #8da3b8; font-size: 9px; }
.prediction-board-heading h3 { margin: 3px 0 0; color: #edf4f8; font-size: 15px; letter-spacing: -.02em; }
.prediction-board-status { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(113, 145, 171, .12); color: #9eb1c1; font-size: 10px; }
.prediction-board-status b { color: #e6c775; font-weight: 650; }
.prediction-board-tiers { display: grid; }
.prediction-board-tier { min-width: 0; min-height: 52px; padding: 8px 0; display: grid; grid-template-columns: 67px minmax(0, 1fr); align-items: start; gap: 8px; border-bottom: 1px solid rgba(113, 145, 171, .12); }
.prediction-board-tier:last-child { border-bottom: 0; }
.prediction-board-tier-label { display: grid; gap: 3px; }
.prediction-board-tier-label b { color: #86ddc7; font-size: 11px; }
.prediction-board-tier-label small { color: #71899c; font-size: 8px; white-space: nowrap; }
.prediction-board-tokens { min-width: 0; display: grid; grid-template-columns: repeat(16, 28px); align-items: center; justify-content: start; justify-items: start; gap: 5px; }
.prediction-number-tiers .prediction-board-tokens { grid-template-columns: repeat(16, minmax(0, 1fr)); align-content: start; justify-items: center; column-gap: 16px; row-gap: 10px; }
.prediction-board-tokens .prediction-number-candidate { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.prediction-board-tokens .prediction-number-token { width: clamp(27px, calc(2vw - 4px), 36px); height: clamp(27px, calc(2vw - 4px), 36px); flex: 0 0 auto; padding: 0; border-radius: 50%; font-size: 10px; }
.prediction-board-tokens .prediction-number-token b { font: 500 clamp(10px, .62vw, 13px)/1 var(--mono); }
.prediction-board-tokens .prediction-number-zodiac { color: #9bc9bd; font: 600 clamp(8px, .46vw, 10px)/1 var(--sans); text-align: center; white-space: nowrap; }
.prediction-board-tokens .prediction-zodiac-token { position: relative; width: 44px; min-width: 44px; height: 58px; padding: 6px 3px 5px; display: grid; grid-template-rows: 22px 1fr; justify-items: center; align-content: center; gap: 3px; border: 1px solid rgba(215, 182, 108, .4); border-radius: 7px 7px 12px 12px; color: #ead59d; background: linear-gradient(165deg, rgba(65, 57, 37, .4), rgba(21, 48, 50, .72)); box-shadow: inset 0 0 0 2px rgba(215, 182, 108, .06); font: 700 12px/1 var(--sans); }
.prediction-board-tokens .prediction-zodiac-token::before { position: absolute; top: 3px; width: 8px; height: 3px; border-radius: 3px; background: rgba(215, 182, 108, .54); content: ""; }
.prediction-board-tokens .talisman-animal { width: 19px; height: 19px; margin-top: 3px; display: block; flex: 0 0 auto; background: #d7b66c; mask: var(--animal-icon) center / contain no-repeat; -webkit-mask: var(--animal-icon) center / contain no-repeat; }
.prediction-board-tokens .prediction-zodiac-token b { font: 700 12px/1 var(--sans); }
.prediction-zodiac-tiers .prediction-board-tier { grid-template-columns: 56px minmax(0, 1fr); }
.prediction-zodiac-tiers .prediction-board-tokens { display: flex; flex-wrap: wrap; align-content: start; align-items: flex-start; justify-content: flex-start; gap: 8px; }
.prediction-board-link { min-height: 44px; margin-top: auto; padding: 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(113, 145, 171, .15); color: #79dcca; font-size: 10px; text-decoration: none; }
.prediction-board-link:hover { color: #a2f2df; }
.prediction-board-link:focus-visible { outline: 2px solid #9af2da; outline-offset: 3px; }
.prediction-board-link b { font: 13px var(--mono); }
.predict-page > .prediction-disclaimer { margin: 0; padding: 10px 16px; border-top: 1px solid rgba(113, 145, 171, .13); color: #8299ae; background: rgba(10, 21, 32, .2); font-size: 10px; }
@media (min-width: 1601px) {
  .predict-shell .prediction-board-grid { min-height: 0; flex: 1 1 auto; grid-template-rows: minmax(0, 1fr); }
  .predict-shell .prediction-board-card { min-height: 0; height: 100%; }
  .predict-shell .prediction-board-tiers { min-height: 0; flex: 1 1 auto; grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .predict-shell .prediction-board-tier { min-height: 0; }
}
@media (max-width: 1180px) {
  .prediction-board-grid { grid-template-columns: minmax(0, 1fr); }
  .prediction-board-card { min-height: 0; }
  .prediction-number-card { border-right: 0; border-bottom: 1px solid rgba(113, 145, 171, .15); }
  .prediction-zodiac-card { padding-left: 18px; }
  .prediction-board-tier { grid-template-columns: 72px minmax(0, 1fr); }
  .prediction-board-tiers { flex: 0 0 auto; grid-template-rows: none; }
}
@media (min-width: 1181px) and (max-width: 1600px) {
  .prediction-board-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .prediction-board-tier { min-height: 0; }
  .prediction-number-tiers .prediction-board-tokens { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .prediction-number-tiers .prediction-board-tier:nth-child(1),
  .prediction-zodiac-tiers .prediction-board-tier:nth-child(1) { min-height: 74px; }
  .prediction-number-tiers .prediction-board-tier:nth-child(2),
  .prediction-zodiac-tiers .prediction-board-tier:nth-child(2) { min-height: 106px; }
  .prediction-number-tiers .prediction-board-tier:nth-child(3),
  .prediction-zodiac-tiers .prediction-board-tier:nth-child(3) { min-height: 154px; }
  .prediction-number-tiers .prediction-board-tier:nth-child(4),
  .prediction-zodiac-tiers .prediction-board-tier:nth-child(4) { min-height: 202px; }
}
@media (max-width: 720px) {
  .special-trait-inline { min-height: 23px; padding: 3px 4px; gap: 3px; }
  .special-trait-inline small,
  .special-trait-inline em { font-size: 7px; }
  .special-trait-inline b { font-size: 9px; }
  .prediction-board-grid { margin-top: 0; gap: 0; }
  .prediction-board-card { padding: 13px 11px 0; border-radius: 0; }
  .prediction-zodiac-card { padding-left: 11px; }
  .predict-page > .prediction-disclaimer { padding: 9px 11px; font-size: 9px; }
  .prediction-board-heading h3 { font-size: 13px; }
  .prediction-board-status { margin: 8px 0; font-size: 9px; }
  .prediction-board-tier { min-height: 48px; grid-template-columns: 54px minmax(0, 1fr); padding: 9px 0; gap: 5px; }
  .prediction-board-tier-label b { font-size: 10px; }
  .prediction-board-tier-label small { font-size: 8px; }
  .prediction-board-tokens { grid-template-columns: repeat(8, 1fr); gap: 5px; }
  .prediction-number-tiers .prediction-board-tokens { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 16px; row-gap: 10px; }
  .prediction-board-tokens .prediction-number-token { max-width: 40px; }
  .prediction-board-tokens .prediction-number-token b { font-size: 11px; }
  .prediction-board-tokens .prediction-number-zodiac { font-size: 9px; }
  .prediction-board-tokens .prediction-zodiac-token { width: 42px; min-width: 42px; height: 56px; }
  .prediction-board-tokens .talisman-animal { width: 18px; height: 18px; }
  .prediction-zodiac-tiers .prediction-board-tier { grid-template-columns: 47px minmax(0, 1fr); }
  .prediction-board-link { min-height: 39px; font-size: 9px; }
}
@media (prefers-reduced-transparency: reduce) {
  .prediction-board-card { background: transparent; }
}
.baseline-single-line {
  min-height: 58px;
  margin: 8px 0 3px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.baseline-single-line b { color: #91e4cf; font: 600 21px var(--mono); }
.baseline-single-line span { color: #9db1c0; font-size: 10px; }
.baseline-tier-list { margin-top: 5px; }
.baseline-tier-row {
  min-height: 36px;
  padding: 7px 2px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(113, 145, 171, .13);
}
.baseline-tier-row > b { color: #91dfcc; font-size: 10px; }
.baseline-tier-row > span { min-width: 0; color: #9aafbf; font-size: 9px; }
.baseline-tier-row > strong { color: #edf4f8; font: 500 10px var(--mono); white-space: nowrap; }
.baseline-note { margin: 7px 0 8px; color: #7f96a9; font-size: 9px; line-height: 1.55; }
.baseline-zodiac-summary { margin: 10px 0 6px; display: grid; gap: 5px; }
.baseline-zodiac-summary b { color: #e5c775; font-size: 11px; }
.baseline-zodiac-summary span { color: #91a7b8; font-size: 9px; line-height: 1.5; }
.baseline-zodiac-details { margin-top: 7px; border-top: 1px solid rgba(113, 145, 171, .13); }
.baseline-zodiac-details summary { width: fit-content; padding: 8px 0 6px; color: #79dcca; font-size: 9px; cursor: pointer; list-style: none; }
.baseline-zodiac-details summary::-webkit-details-marker { display: none; }
.baseline-zodiac-details summary::before { margin-right: 6px; color: #7891a6; content: "+"; font: 11px var(--mono); }
.baseline-zodiac-details[open] summary::before { content: "−"; }
.baseline-zodiac-details summary:focus-visible { outline: 2px solid #9af2da; outline-offset: 3px; }
.baseline-zodiac-row { min-height: 27px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid rgba(113, 145, 171, .09); }
.baseline-zodiac-row b { color: #d7e4ec; font-size: 9px; }
.baseline-zodiac-row span { color: #839bad; font-size: 8px; }
.baseline-zodiac-row strong { color: #dce8ef; font: 500 9px var(--mono); }
.zodiac-audit-card .audit-card-title { width: auto; }
.candidate-tier-heading small { color: #9bb0bf; }

@media (min-width: 721px) and (max-height: 760px) {
  .baseline-single-line { min-height: 41px; margin-top: 4px; }
  .baseline-single-line b { font-size: 18px; }
  .baseline-tier-row { min-height: 29px; padding: 4px 2px; }
  .baseline-zodiac-summary { margin-top: 6px; gap: 3px; }
  .baseline-zodiac-details summary { padding: 5px 0 3px; }
}
@media (max-width: 720px) {
  .baseline-single-line { min-height: 46px; margin-top: 5px; gap: 8px; }
  .baseline-single-line b { font-size: 18px; }
  .baseline-single-line span { font-size: 9px; }
  .baseline-tier-row { min-height: 33px; grid-template-columns: 47px minmax(0, 1fr) auto; gap: 6px; padding: 6px 1px; }
  .baseline-tier-row > b, .baseline-tier-row > span, .baseline-tier-row > strong { font-size: 8px; }
  .baseline-note { font-size: 8px; }
  .baseline-zodiac-summary b { font-size: 10px; }
  .baseline-zodiac-summary span { font-size: 8px; }
  .baseline-zodiac-row { min-height: 25px; }
}

/* Pair number and zodiac tiers by order so each row shares its taller column's height. */
.used-prediction-kinds { grid-template-rows: repeat(5, auto); column-gap: 12px; row-gap: 0; }
.used-prediction-kind { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 5; }
.used-prediction-kind:first-child { grid-column: 1; }
.used-prediction-kind:last-child { grid-column: 2; }
.used-prediction-kind h4 { min-height: 25px; margin-bottom: 0; align-self: center; }
.used-prediction-tier { display: grid; grid-template-rows: auto auto; align-content: start; }

@media (max-width: 720px) {
  .used-prediction-kinds { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 9px; }
  .used-prediction-kind { display: block; grid-column: 1; grid-row: auto; grid-template-rows: none; }
}

@media (min-width: 721px) and (max-width: 960px) {
  .used-prediction-summary { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .used-prediction-title { grid-column: 1; grid-row: 1; }
  .used-prediction-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .used-prediction-toggle { grid-column: 3; grid-row: 1; }
  .used-prediction-result { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 7px; }
}

.used-trait-inline { min-width: 0; display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: #a9bdc9; font-size: 10px; font-weight: 500; white-space: nowrap; }
.used-trait-label { color: #91a7b8; font-size: 9px; }
.used-trait-inline > b { padding: 3px 5px; border: 1px solid rgba(113, 145, 171, .15); border-radius: 4px; color: #9db1c0; background: rgba(10, 22, 34, .35); font: 600 9px var(--mono); }
.used-trait-inline > b.is-favored { border-color: rgba(80, 211, 177, .26); color: #9ce6d3; background: rgba(25, 75, 67, .22); }
.used-trait-inline > small { padding: 3px 5px; border-radius: 4px; font-size: 9px; }
.used-trait-inline > small.is-trait-hit { color: #f0d185; background: rgba(128, 99, 38, .22); }
.used-trait-inline > small.is-trait-miss { color: #9aafbf; background: rgba(83, 103, 120, .16); }
@media (max-width: 720px) {
  .used-prediction-kind h4 { gap: 5px; }
  .used-trait-inline { gap: 3px; }
  .used-trait-inline > b, .used-trait-inline > small { padding: 3px 4px; }
}
