/* 遗漏王网页版 — 墨色台面风格 */
:root {
  --bg: #e8e4db;
  --bg-deep: #d9d3c7;
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --muted: #6b7585;
  --panel: rgba(255, 252, 247, 0.92);
  --line: rgba(26, 35, 50, 0.12);
  --accent: #b33a2b;
  --accent-soft: #d4654a;
  --ok: #1f6b4a;
  --warn: #9a6b12;
  --shadow: 0 18px 50px rgba(26, 35, 50, 0.12);
  --radius: 14px;
  --font-display: "ZCOOL XiaoWei", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(179, 58, 43, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(26, 35, 50, 0.08), transparent 50%),
    linear-gradient(165deg, var(--bg), var(--bg-deep));
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 50, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

.app {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  animation: rise 0.55s ease both;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
}
.brand-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.top-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.more-menu {
  position: relative;
  display: inline-block;
}
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu .more-body {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 160px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 50;
}
.more-menu .more-body a,
.more-menu .more-body button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border-radius: calc(var(--radius) * 0.6);
  font: inherit;
  cursor: pointer;
}
.more-menu .more-body a:hover,
.more-menu .more-body button:hover { background: var(--line); }
.btn-primary {
  background: var(--ink);
  color: #f7f3ea;
  border-color: transparent;
}
.btn-accent {
  background: var(--accent);
  color: #fff7f2;
  border-color: transparent;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  animation: rise 0.6s 0.05s ease both;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.tab.active {
  background: var(--ink);
  color: #f7f3ea;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem 1.3rem;
  animation: rise 0.65s 0.08s ease both;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (max-width: 800px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .toolbar { grid-template-columns: 1fr; }
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 88px; resize: vertical; }

.view { display: none; }
.view.active { display: block; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: 1fr; }
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #fff, #f6f1e8);
}
.stat .k { color: var(--muted); font-size: 0.8rem; }
.stat .v {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}
.stat .v.num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.85rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #fff;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.card .row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
}
.card .row:first-of-type { border-top: 0; }
.omit {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.stats-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
}
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0.2rem;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
}
.ball.blue {
  background: #2a5f9e;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th, td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
th {
  position: sticky;
  top: 0;
  background: #f3eee4;
  color: var(--ink-soft);
  font-weight: 600;
}
tr:hover td { background: rgba(179, 58, 43, 0.04); }

.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--accent); }

.status-bar {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip-list-scroll {
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.55);
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.recommend-filters {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.recommend-filter-row {
  display: grid;
  grid-template-columns: 11.5rem 1fr 1fr;
  gap: 0.45rem 0.65rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.45);
}
.recommend-filter-row.off {
  opacity: 0.55;
}
.recommend-filter-row .filter-name {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.recommend-filter-row .filter-name label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.recommend-filter-row .filter-tip {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.recommend-filter-row .field {
  margin: 0;
}
@media (max-width: 720px) {
  .recommend-filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .recommend-filter-row .filter-name {
    grid-column: 1 / -1;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 30, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 40;
}
.modal-backdrop.show { display: flex; }
.modal {
  width: min(460px, 100%);
  background: #fffaf3;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.modal h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.modal p { color: var(--muted); margin: 0 0 0.9rem; line-height: 1.5; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.form-check {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0.4rem 0 0.8rem;
}
.form-check label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.4em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -0.05em;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.seo-block {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: rise 0.7s ease both;
  animation-delay: 0.08s;
}
.seo-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.35;
}
.seo-lead {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}
.seo-features {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}
.seo-features li { margin-bottom: 0.35rem; }
.seo-features strong { color: var(--ink); font-weight: 600; }
.seo-keywords {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.contact-block {
  margin-top: 1.1rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: rise 0.7s ease both;
  animation-delay: 0.12s;
}
.contact-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.contact-list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.contact-row {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}
.contact-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.contact-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.contact-row dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.contact-row a {
  color: var(--ink);
  text-decoration-thickness: 1px;
}
.contact-row a:hover { color: var(--accent); }
.contact-note {
  margin: 0.95rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.disclaimer-block {
  margin-top: 1.1rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: rise 0.7s ease both;
  animation-delay: 0.14s;
}
.disclaimer-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.disclaimer-section { margin-bottom: 0.85rem; }
.disclaimer-section:last-child { margin-bottom: 0; }
.disclaimer-subtitle {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.disclaimer-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}
.disclaimer-list li { margin-bottom: 0.35rem; }
.disclaimer-list li:last-child { margin-bottom: 0; }
.disclaimer-list strong { color: var(--ink); font-weight: 600; }

.footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.55;
}
.footer p { margin: 0 0 0.35rem; }
.footer p:last-child { margin-bottom: 0; }
.footer a { color: var(--ink-soft); text-decoration-thickness: 1px; }
.footer a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.footer-copy {
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.footer-note {
  font-size: 0.75rem;
  opacity: 0.9;
}

.friend-links {
  margin-top: 1.1rem;
  padding: 1.05rem 1.2rem 1.1rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  overflow: visible;
}
.friend-links-title {
  width: 100%;
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.friend-links a {
  display: inline-block;
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  position: relative;
}
.friend-links a:hover { border-color: var(--accent); color: var(--accent); }
.friend-links a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(179, 58, 43, 0.06);
}
.friend-links a[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 16.5rem;
  max-width: min(16.5rem, 80vw);
  padding: 0.5rem 0.7rem;
  background: #1a2332;
  color: #f7f3ea;
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: left;
  white-space: normal;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 50;
}
.friend-links a[data-tip]:hover::after,
.friend-links a[data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.9rem;
}
.pay-card {
  margin: 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 0.9rem 1.1rem;
}
.pay-card figcaption {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}
.pay-amount {
  margin: 0.2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.pay-card img {
  width: min(100%, 280px);
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.pay-card .muted { margin: 0.55rem 0 0; font-size: 0.82rem; }
.donate-notice {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: rgba(179, 58, 43, 0.06);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}
.donate-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.donate-steps li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.donate-step-n {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: #f7f3ea;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.donate-steps h3 { margin: 0 0 0.2rem; font-size: 0.98rem; }
.donate-steps p { margin: 0; }
@media (max-width: 700px) {
  .pay-grid { grid-template-columns: 1fr; }
}

#view-chart > .toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.85rem;
}
#view-chart > .toolbar > .field { flex: 0 1 9rem; min-width: 7.5rem; }
#view-chart > .toolbar > .chart-kinds { flex: 1 1 18rem; }
#view-chart > .toolbar > .btn { flex: 0 0 auto; }
.chart-kinds { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-end; }
.chart-line-label input { width: auto; }
.shape-bar { margin: 0.15rem 0 0.35rem; }
.shape-bar[hidden] { display: none; }
table.chart.shape th,
table.chart.shape td { min-width: 34px; width: 34px; }
table.chart.shape.wide th,
table.chart.shape.wide td { min-width: 48px; width: 48px; }
table.chart.shape .sticky,
table.chart.shape.wide .sticky { min-width: 78px; width: 78px; }
table.chart .shape-hit {
  display: inline-flex;
  min-width: 2.4rem;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: #c2410c;
  color: #fff;
  font-size: 10px;
  position: relative;
  z-index: 2;
}
.chart-line-label { display: flex; align-items: center; gap: 0.35rem; min-height: 2.4rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; margin: 0.2rem 0 0.55rem; font-size: 0.82rem; color: var(--ink-soft); }
.chart-legend b { font-weight: 600; }
.chart-scroll {
  position: relative;
  overflow: auto;
  max-height: min(72vh, 860px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
table.chart {
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
}
table.chart th,
table.chart td {
  width: 26px;
  min-width: 26px;
  height: 24px;
  padding: 0;
  text-align: center;
  border-right: 1px solid #eee4d8;
  border-bottom: 1px solid #eee4d8;
  background: transparent;
}
table.chart tbody td { position: relative; z-index: 2; }
table.chart thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f7f4ee;
  font-weight: 600;
  color: var(--ink-soft);
}
table.chart .sticky,
table.chart .sticky-draw {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f7f4ee;
  font-weight: 600;
}
table.chart .sticky {
  min-width: 78px;
  width: 78px;
}
table.chart .sticky-draw {
  left: 79px;
  min-width: 148px;
  width: 148px;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--ink);
}
table.chart thead th.sticky,
table.chart thead th.sticky-draw { z-index: 6; background: #f7f4ee; }
table.chart tbody tr:nth-child(even) td.sticky,
table.chart tbody tr:nth-child(even) td.sticky-draw { background: #fcfaf6; }
table.chart tbody tr:hover td { background: rgba(154, 52, 18, 0.05); }
table.chart tbody tr:hover td.sticky,
table.chart tbody tr:hover td.sticky-draw { background: #f8efe8; }
table.chart td.col-on,
table.chart th.col-on { box-shadow: inset 0 0 0 999px rgba(194, 65, 12, 0.1); }
table.chart tfoot td {
  position: sticky;
  z-index: 4;
  background: #faf7f2;
}
table.chart tfoot tr:nth-child(1) td { bottom: 120px; }
table.chart tfoot tr:nth-child(2) td { bottom: 96px; }
table.chart tfoot tr:nth-child(3) td { bottom: 72px; }
table.chart tfoot tr:nth-child(4) td { bottom: 48px; }
table.chart tfoot tr:nth-child(5) td { bottom: 24px; }
table.chart tfoot tr:nth-child(6) td { bottom: 0; }
table.chart th.extra-head { color: #1e4a8c; }
table.chart td.extra-start,
table.chart th.extra-start { border-left: 2px solid #d9cfc0; }
.chart-kinds button[hidden] { display: none; }
table.chart tfoot td.sticky,
table.chart tfoot td.sticky-draw { z-index: 5; background: #f4efe6; }
table.chart th.hot { color: #9a3412; }
table.chart th.cold { color: #1e4a8c; }
table.chart td.zone-end,
table.chart th.zone-end { border-right: 2px solid #d9cfc0; }
table.chart td.miss { color: #a3acb8; }
table.chart td.miss.long { color: #9a3412; font-weight: 700; }
table.chart .ball-dot {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #c2410c;
  color: #fff;
  font-size: 10px;
  position: relative;
  z-index: 1;
}
table.chart .ball-dot.blue { background: #1e4a8c; }
table.chart .ball-dot.repeat { box-shadow: 0 0 0 2px #e7b008; }
table.chart .ball-dot.wide-num { width: auto; min-width: 28px; padding: 0 3px; border-radius: 9px; }
table.chart .ball-dot.mk-even,
table.chart .ball-dot.mk-comp { background: #57534e; }
table.chart .ball-dot.mk-mod0,
table.chart .ball-dot.mk-down,
table.chart .ball-dot.mk-wave-b { background: #1e4a8c; }
table.chart .ball-dot.mk-mod2,
table.chart .ball-dot.mk-wave-g { background: #3f6212; }
table.chart .ball-dot.mk-flat { background: #a16207; }
table.chart thead th.group { width: auto; min-width: 0; color: var(--ink); }
table.chart thead th.sub { top: 24px; }
table.chart.sum-grid th,
table.chart.sum-grid td { min-width: 40px; width: 40px; }
table.chart.sum-grid .sticky,
table.chart.sum-grid thead th.sticky { min-width: 78px; width: 78px; }
table.chart.sum-grid .sticky-draw,
table.chart.sum-grid thead th.sticky-draw { min-width: 148px; width: 148px; left: 79px; }
table.chart td.metric,
table.chart th.metric { min-width: 46px; width: 46px; color: var(--ink); }
table.chart tfoot td { font-weight: 600; color: var(--ink-soft); }
table.chart tr.latest td { background: rgba(255, 248, 238, 0.82); }
table.chart tr.latest td.sticky,
table.chart tr.latest td.sticky-draw { background: #fff8ee; }
table.chart tr.pick-row td { background: #fffdf8; height: 26px; }
table.chart tr.pick-row td.sticky,
table.chart tr.pick-row td.sticky-draw { background: #fffdf8; }
table.chart .pick-label { color: #9a3412; font-size: 11px; }
table.chart .pick-cell { cursor: pointer; }
table.chart .pick-cell:hover { background: rgba(154, 52, 18, 0.1); }
table.chart .pick-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
}
table.chart .pick-cell.mk-r span { background: #c2410c; }
table.chart .pick-cell.mk-y span { background: #d4a017; color: #3d3208; }
table.chart .pick-cell.mk-b span { background: #1e4a8c; }
table.chart.digits-only .metric { display: none; }
table.chart.shape .sticky-draw,
table.chart.shape.wide .sticky-draw { min-width: 148px; width: 148px; left: 79px; }
.chart-pick-bar {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.65rem 0.55rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.72);
}
.chart-pick-bar[hidden] { display: none; }
.chart-pick-head { display: flex; align-items: center; gap: 0.45rem 0.65rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.chart-pick-head .btn { padding: 0.22rem 0.55rem; font-size: 0.78rem; }
.pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.15rem 0.3rem 0.15rem 0;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.pick-chip .omit { color: var(--ink-soft); }
.pick-chip.mk-r { border-color: #c2410c; background: rgba(194, 65, 12, 0.08); }
.pick-chip.mk-y { border-color: #d4a017; background: rgba(212, 160, 23, 0.16); }
.pick-chip.mk-b { border-color: #1e4a8c; background: rgba(30, 74, 140, 0.1); }
body.chart-focus .seo-block,
body.chart-focus .contact-block,
body.chart-focus .disclaimer-block,
body.chart-focus .friend-links,
body.chart-focus .footer,
body.chart-focus #chartHint { display: none; }
body.chart-focus .app { width: min(1680px, calc(100% - 0.8rem)); padding-top: 0.4rem; }
body.chart-focus .brand-sub { display: none; }
body.chart-focus .topbar { margin-bottom: 0.4rem; }
body.chart-focus .panel > .toolbar .field:nth-child(2),
body.chart-focus .panel > .toolbar .field:nth-child(3) { display: none; }
body.chart-focus .chart-scroll { max-height: calc(100vh - 16rem); }
#chartCustomWrap[hidden] { display: none !important; }
svg.chart-lines { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; }
table.metric-table { font-size: 0.84rem; }
table.metric-table .sum-bar {
  height: 8px;
  min-width: 88px;
  border-radius: 99px;
  background: rgba(154, 52, 18, 0.12);
  overflow: hidden;
}
table.metric-table .sum-bar > i { display: block; height: 100%; background: #c2410c; }
.chart-note { margin: 0.55rem 0 0; }

section.seo-faq {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.2rem 1.15rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
section.seo-faq h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}
section.seo-faq dl { margin: 0; }
section.seo-faq dt { margin: 0.85rem 0 0.25rem; font-weight: 600; }
section.seo-faq dt:first-of-type { margin-top: 0; }
section.seo-faq dd { margin: 0; line-height: 1.65; }
