.visit-board {
  --visit-paper: #fffaf3;
  --visit-paper-deep: #f7eee6;
  --visit-ink: #241b17;
  --visit-muted: #887970;
  --visit-faint: #aa9b91;
  --visit-rule: #eadbd1;
  --visit-accent: #b94326;
  --visit-accent-soft: #f7e5dc;
  --visit-live: #203a2c;
  position: fixed;
  top: 104px;
  right: 20px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 124px);
  overflow: hidden;
  color: var(--visit-ink);
  background:
    radial-gradient(circle at 100% 0, rgba(229, 101, 61, 0.09), transparent 32%),
    linear-gradient(160deg, rgba(255, 252, 248, 0.98), rgba(255, 248, 241, 0.97));
  border: 1px solid #e2d3c8;
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(69, 43, 31, 0.17),
    0 2px 8px rgba(69, 43, 31, 0.06);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  backdrop-filter: blur(18px);
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.visit-board button,
.visit-board a {
  -webkit-tap-highlight-color: transparent;
}

.visit-board-head {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 4px;
  align-items: center;
  padding-right: 11px;
  border-bottom: 1px solid transparent;
}

.visit-board:not(.is-collapsed) .visit-board-head {
  border-bottom-color: var(--visit-rule);
}

.visit-board-toggle {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 14px 16px 13px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.visit-board-refresh {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  color: #9a8b81;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.visit-board-refresh:hover {
  color: #a94329;
  background: #f8e9e1;
  border-color: #eed7cb;
}

.visit-board-refresh:disabled {
  cursor: wait;
}

.visit-board-refresh svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.visit-board-refresh.is-loading svg {
  animation: visit-refresh-spin 700ms linear infinite;
}

@keyframes visit-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.visit-board-title {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.visit-board-title > i {
  width: 7px;
  height: 7px;
  background: #e5653d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(229, 101, 61, 0.1);
}

.visit-board-toggle > small {
  color: var(--visit-faint);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visit-board[data-state="error"] .visit-board-toggle > small {
  color: #b94326;
}

.visit-board-toggle > svg {
  width: 16px;
  fill: none;
  stroke: var(--visit-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.visit-board.is-collapsed .visit-board-toggle > svg {
  transform: rotate(180deg);
}

.visit-board.is-collapsed .visit-board-body {
  display: none;
}

.visit-board.is-collapsed {
  width: 190px;
}

.visit-board.is-collapsed .visit-board-toggle {
  grid-template-columns: minmax(0, 1fr) auto 16px;
  padding-block: 12px;
}

.visit-board.is-collapsed .visit-board-toggle > small {
  display: none;
}

.visit-board-body {
  min-height: 0;
  padding: 13px 14px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #d9c2b5 transparent;
  scrollbar-width: thin;
}

.visit-live {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px 15px;
  overflow: hidden;
  color: #fffdf9;
  background:
    radial-gradient(circle at 88% 15%, rgba(205, 234, 215, 0.14), transparent 36%),
    linear-gradient(130deg, #1d3527, var(--visit-live));
  border-radius: 12px;
}

.visit-live::after {
  position: absolute;
  right: -24px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.visit-live-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.visit-live-copy > span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 680;
}

.visit-live-copy > span i {
  width: 7px;
  height: 7px;
  background: #74d89a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(116, 216, 154, 0.12);
  animation: visit-online-pulse 2.2s ease-in-out infinite;
}

.visit-live-copy > small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.visit-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 9px;
  margin-top: 3px;
}

.visit-dots i {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.visit-dots i.is-active {
  background: #d8f0df;
}

.visit-dots small {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
}

.visit-live-count {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: end;
}

.visit-live-count b {
  color: #f7dfc8;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 0.9;
  font-variant-numeric: lining-nums tabular-nums;
}

.visit-live-count span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
}

@keyframes visit-online-pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(116, 216, 154, 0.03);
    opacity: 0.74;
  }
}

.visit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(100px, 0.75fr);
  padding: 18px 2px 15px;
  border-bottom: 1px solid var(--visit-rule);
}

.visit-hero-main {
  display: grid;
  align-content: start;
}

.visit-hero-main > span,
.visit-hero-side > span {
  color: var(--visit-muted);
  font-size: 10px;
  font-weight: 580;
}

.visit-hero-main > b {
  margin: 5px 0 3px;
  color: var(--visit-accent);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 34px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}

.visit-hero-main > small {
  min-height: 14px;
  color: var(--visit-faint);
  font-size: 8.5px;
}

.visit-hero-main > small.is-up {
  color: #267a50;
}

.visit-hero-main > small.is-down {
  color: #b54a32;
}

.visit-hero-side {
  display: grid;
  align-content: start;
  padding-left: 16px;
  border-left: 1px solid var(--visit-rule);
}

.visit-hero-side > b {
  margin: 6px 0 4px;
  color: #5d4a40;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.visit-hero-side > small {
  color: var(--visit-faint);
  font-size: 8px;
  line-height: 1.45;
}

.visit-hero-side > small.is-up {
  color: #267a50;
}

.visit-hero-side > small.is-down {
  color: #b54a32;
}

.visit-total-line {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 2px;
  border-bottom: 1px solid var(--visit-rule);
}

.visit-total-line > span {
  display: flex;
  gap: 7px;
  align-items: baseline;
  color: #70594d;
  font-size: 9px;
  font-weight: 650;
}

.visit-total-line > span small {
  color: var(--visit-faint);
  font-size: 7px;
  font-weight: 500;
}

.visit-total-line > span small b {
  color: #80695d;
  font-size: inherit;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.visit-total-line > b {
  color: #5d493f;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  font-weight: 620;
  font-variant-numeric: lining-nums tabular-nums;
}

.visit-kpis {
  padding: 14px 1px 13px;
  border-bottom: 1px solid var(--visit-rule);
}

.visit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.54);
  border: 1px solid var(--visit-rule);
  border-radius: 9px;
}

.visit-kpi {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 10px 9px;
  border-right: 1px solid var(--visit-rule);
  border-bottom: 1px solid var(--visit-rule);
}

.visit-kpi:nth-child(even) {
  border-right: 0;
}

.visit-kpi:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.visit-kpi > span {
  overflow: hidden;
  color: #807064;
  font-size: 8px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-kpi > b {
  color: #4a392f;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 620;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}

.visit-kpi:nth-child(3) > b {
  color: #a34a2f;
}

.visit-kpi:nth-child(5) > b,
.visit-kpi:nth-child(6) > b {
  color: #365543;
}

.visit-kpi > small {
  min-height: 22px;
  overflow: hidden;
  color: var(--visit-faint);
  font-size: 7px;
  line-height: 1.45;
}

.visit-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 11px;
  margin-top: 12px;
  background: rgba(248, 235, 226, 0.72);
  border-left: 3px solid #d16b4c;
  border-radius: 2px 9px 9px 2px;
}

.visit-insight > span {
  color: #a94329;
  font-size: 8px;
  font-weight: 720;
  white-space: nowrap;
}

.visit-insight > p {
  margin: 0;
  color: #6f584c;
  font-size: 8.5px;
  line-height: 1.55;
}

.visit-week,
.visit-rhythm,
.visit-referrers,
.visit-entries,
.visit-recent {
  padding: 14px 1px 13px;
  border-bottom: 1px solid var(--visit-rule);
}

.visit-section-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.visit-section-head > span {
  color: #5e4b40;
  font-size: 10px;
  font-weight: 720;
}

.visit-section-head > small {
  color: var(--visit-faint);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.visit-section-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 8px;
  color: var(--visit-faint);
  font-size: 7px;
  border-top: 1px dashed #eedfd6;
}

.visit-section-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-section-foot b {
  color: #715c50;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.visit-week-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 59px;
  padding: 9px 4px 0;
}

.visit-week-column {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 100%;
  padding: 0;
  cursor: pointer;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 5px;
  transition: background-color 160ms ease;
}

.visit-week-column:hover,
.visit-week-column:focus-visible {
  background: rgba(210, 152, 126, 0.12);
}

.visit-week-column:focus-visible {
  outline: 2px solid rgba(161, 66, 43, 0.5);
  outline-offset: 1px;
}

.visit-week-column::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: #f0e4dc;
}

.visit-week-column i {
  position: relative;
  z-index: 1;
  width: min(22px, 72%);
  min-height: 3px;
  background: #dfb09c;
  border-radius: 4px 4px 1px 1px;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.visit-week-column.is-today i {
  background: #c88670;
}

.visit-week-column.is-selected i {
  background: var(--visit-accent);
  box-shadow: 0 0 0 2px rgba(111, 25, 47, 0.1);
  transform: scaleX(1.08);
}

.visit-week-column:hover i {
  transform: translateY(-1px);
}

.visit-week-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 7px 4px 0;
  color: #b1a198;
  font-size: 7px;
  text-align: center;
}

.visit-week-labels span {
  position: relative;
  padding-bottom: 4px;
  cursor: pointer;
}

.visit-week-labels span::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 8px;
  height: 2px;
  content: "";
  background: var(--visit-accent);
  border-radius: 99px;
  opacity: 0;
  transform: translateX(50%) scaleX(0.4);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.visit-week-labels span:last-child {
  color: #b86d55;
}

.visit-week-labels span.is-selected {
  color: #a94329;
  font-weight: 700;
}

.visit-week-labels span.is-selected::after {
  opacity: 1;
  transform: translateX(50%) scaleX(1);
}

.visit-week-selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 8px;
  padding: 7px 8px;
  margin: 8px 4px 0;
  background: rgba(241, 224, 214, 0.56);
  border-radius: 6px;
}

.visit-week-selection > span {
  overflow: hidden;
  color: #8a7265;
  font-size: 7px;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-week-selection > b {
  color: #653e37;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visit-week-selection > small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #927a6d;
  font-size: 7px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-chart-legend {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  padding-top: 8px;
  color: #9b8b81;
  font-size: 7px;
}

.visit-chart-legend span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.visit-chart-legend i {
  width: 6px;
  height: 3px;
  background: var(--visit-accent);
  border-radius: 99px;
}

.visit-chart-legend span:last-child i {
  background: #d7c8bf;
}

.visit-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(2px, 1fr));
  gap: 2px;
  align-items: end;
  height: 67px;
  padding-top: 9px;
}

.visit-chart-hour {
  position: relative;
  display: grid;
  grid-template-columns: minmax(1px, 1fr) minmax(1px, 1fr);
  gap: 1px;
  align-items: end;
  height: 100%;
}

.visit-chart-bar {
  height: var(--visit-bar);
  min-height: 3px;
  background: #dfa38c;
  border-radius: 2px 2px 0 0;
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease;
}

.visit-chart-bar.is-peak {
  background: var(--visit-accent);
}

.visit-chart-bar.is-previous {
  background: #ddd0c8;
}

.visit-chart-hour.is-current::after {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 3px;
  height: 3px;
  content: "";
  background: #2c6e4d;
  border-radius: 50%;
  transform: translateX(50%);
}

.visit-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--visit-rule);
}

.visit-audience > section {
  min-width: 0;
  padding: 13px 11px 13px 1px;
}

.visit-audience > section + section {
  padding-right: 1px;
  padding-left: 12px;
  border-left: 1px solid var(--visit-rule);
}

.visit-distribution {
  display: grid;
  gap: 7px;
  padding-top: 10px;
}

.visit-dist-row {
  display: grid;
  gap: 4px;
}

.visit-dist-row > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.visit-dist-row > div span {
  overflow: hidden;
  color: #6b574b;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-dist-row > div b {
  color: #a08778;
  font-size: 7.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.visit-dist-row > i {
  display: block;
  height: 3px;
  overflow: hidden;
  background: #f1e5dd;
  border-radius: 99px;
}

.visit-dist-row > i span {
  display: block;
  height: 100%;
  background: #ca6b4b;
  border-radius: inherit;
}

.visit-dist-row[data-index="1"] > i span {
  background: #678c75;
}

.visit-dist-row[data-index="2"] > i span {
  background: #c99b55;
}

.visit-dist-row[data-index="3"] > i span {
  background: #8d9ba2;
}

.visit-dist-empty {
  margin: 0;
  color: var(--visit-faint);
  font-size: 8px;
}

.visit-axis {
  display: flex;
  justify-content: space-between;
  padding-top: 7px;
  color: #b5a79e;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}

.visit-referrer-list {
  display: grid;
  gap: 0;
  padding: 7px 0 0;
  margin: 0;
  list-style: none;
}

.visit-referrer-list li:not(.visit-path-empty) {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 27px;
  border-bottom: 1px dashed #eee1d9;
}

.visit-referrer-list li:last-child {
  border-bottom: 0;
}

.visit-referrer-list li > i {
  color: #b6a399;
  font-size: 7px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.visit-referrer-list li > span {
  overflow: hidden;
  color: #67544a;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-referrer-list li > b {
  color: #937a6d;
  font-size: 8px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.visit-paths {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
  margin: 0;
  list-style: none;
}

.visit-path {
  display: grid;
  gap: 5px;
}

.visit-path-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.visit-path-head > span {
  overflow: hidden;
  color: #67554a;
  font-size: 9px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-path-head > b {
  color: #866f62;
  font-size: 8.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.visit-path > i {
  display: block;
  height: 3px;
  overflow: hidden;
  background: #f1e5dc;
  border-radius: 99px;
}

.visit-path > i > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d88869, #e56742);
  border-radius: inherit;
}

.visit-path-empty {
  padding: 5px 0 2px;
  color: var(--visit-faint);
  font-size: 9px;
}

.visit-recent-list {
  display: grid;
  gap: 7px;
  padding: 9px 0 0;
  margin: 0;
  list-style: none;
}

.visit-recent-list li:not(.visit-path-empty) {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.visit-recent-list time {
  color: #ad9385;
  font-size: 7.5px;
  font-variant-numeric: tabular-nums;
}

.visit-recent-list li > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.visit-recent-list b {
  overflow: hidden;
  color: #665247;
  font-size: 8.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-recent-list small {
  overflow: hidden;
  color: #b1a198;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-votes {
  padding: 14px 1px 13px;
  border-bottom: 1px solid var(--visit-rule);
}

.visit-votes-copy {
  margin: 7px 0 9px;
  color: #8f7f75;
  font-size: 8px;
  line-height: 1.5;
}

.visit-vote-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.visit-vote-option {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px 9px 8px;
  color: var(--visit-ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid #eadbd1;
  border-radius: 9px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.visit-vote-option:hover {
  background: #fffaf5;
  border-color: #d9a38e;
  transform: translateY(-1px);
}

.visit-vote-option:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.visit-vote-option.is-selected {
  background: #fff0e7;
  border-color: #c96748;
  box-shadow: inset 3px 0 0 #b94326;
}

.visit-vote-head {
  display: flex;
  gap: 6px;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
}

.visit-vote-head b {
  overflow: hidden;
  color: #59453a;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-vote-head em {
  color: #a08a7d;
  font-size: 7px;
  font-style: normal;
  font-weight: 650;
}

.visit-vote-option.is-selected .visit-vote-head em {
  color: #a94329;
}

.visit-vote-option > small {
  min-height: 21px;
  overflow: hidden;
  color: #a09188;
  font-size: 7px;
  line-height: 1.45;
}

.visit-vote-option > i {
  display: block;
  height: 3px;
  overflow: hidden;
  background: #f0e3da;
  border-radius: 99px;
}

.visit-vote-option > i span {
  display: block;
  height: 100%;
  background: #d47a5d;
  border-radius: inherit;
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.visit-vote-option:nth-child(2) > i span {
  background: #73957f;
}

.visit-vote-option:nth-child(3) > i span {
  background: #c69a57;
}

.visit-vote-option:nth-child(4) > i span {
  background: #8c9ca4;
}

.visit-vote-count {
  color: #b1a198;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}

.visit-vote-suggest {
  width: 100%;
  padding: 7px 2px 0;
  color: #a94329;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 8px;
  cursor: pointer;
}

.visit-vote-suggest:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visit-vote-status {
  min-height: 13px;
  margin: 4px 1px 0;
  color: #a3968d;
  font-size: 7.5px;
  line-height: 1.45;
}

.visit-vote-status.is-success {
  color: #267a50;
}

.visit-vote-status.is-error {
  color: #b43f27;
}

.visit-vote-loading {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  padding: 4px 0;
}

.visit-vote-loading i {
  height: 39px;
  background: linear-gradient(90deg, #f3e8df, #fffaf5, #f3e8df);
  background-size: 220% 100%;
  border-radius: 9px;
  animation: visit-vote-loading 1.4s ease-in-out infinite;
}

@keyframes visit-vote-loading {
  50% {
    background-position: 100% 0;
  }
}

.visit-compact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 11px 0;
  border-bottom: 1px solid var(--visit-rule);
}

.visit-compact-stats > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 0 8px;
  border-right: 1px solid var(--visit-rule);
}

.visit-compact-stats > div:first-child {
  padding-left: 1px;
}

.visit-compact-stats > div:last-child {
  padding-right: 1px;
  border-right: 0;
}

.visit-compact-stats span {
  color: var(--visit-faint);
  font-size: 7.5px;
}

.visit-compact-stats b {
  overflow: hidden;
  color: #5c493f;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.visit-comments {
  padding: 12px 1px 2px;
}

.visit-comments-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.visit-comments-head > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #5e4b40;
  font-size: 10px;
  font-weight: 720;
}

.visit-comments-head > span i {
  width: 6px;
  height: 6px;
  background: #d46545;
  border-radius: 2px;
  transform: rotate(45deg);
}

.visit-danmaku-toggle {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px 5px;
  color: #8b7468;
  font: inherit;
  font-size: 8px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.visit-danmaku-toggle:hover {
  color: #a33d25;
  background: #f7e7de;
}

.visit-danmaku-toggle svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.visit-board[data-danmaku="hidden"] .visit-danmaku-toggle svg {
  opacity: 0.45;
}

.visit-quick-form {
  padding-top: 9px;
}

.visit-quick-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visit-quick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.visit-quick-row input {
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 0 10px;
  color: #3e2f28;
  font: inherit;
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid #e7d6cb;
  border-radius: 8px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.visit-quick-row input::placeholder {
  color: #b2a39a;
}

.visit-quick-row input:focus {
  background: #fffdf9;
  border-color: #d58a6d;
  box-shadow: 0 0 0 3px rgba(185, 67, 38, 0.08);
}

.visit-quick-row input[aria-invalid="true"] {
  border-color: #b94326;
  box-shadow: 0 0 0 3px rgba(185, 67, 38, 0.08);
}

.visit-quick-row button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #fffaf3;
  background: #a94329;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.visit-quick-row button:hover {
  background: #8e351e;
  transform: translateY(-1px);
}

.visit-quick-row button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.visit-quick-row button.is-loading svg {
  animation: visit-send-pulse 900ms ease-in-out infinite;
}

.visit-quick-row button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

@keyframes visit-send-pulse {
  50% {
    opacity: 0.45;
    transform: translateX(2px);
  }
}

.visit-quick-status {
  min-height: 13px;
  margin: 6px 1px 0;
  color: #a3968d;
  font-size: 7.5px;
  line-height: 1.45;
}

.visit-quick-status.is-success {
  color: #267a50;
}

.visit-quick-status.is-error {
  color: #b43f27;
}

.visit-board-link {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 15px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 9px 11px;
  margin-top: 11px;
  color: #96351f;
  text-decoration: none;
  background:
    linear-gradient(100deg, rgba(255, 243, 235, 0.96), rgba(255, 249, 245, 0.9));
  border: 1px solid #efd4c7;
  border-radius: 11px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.visit-board-link:hover {
  background: #ffede3;
  border-color: #dba38c;
  transform: translateY(-1px);
}

.visit-board-link-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #a33d25;
  background: #f8ded0;
  border-radius: 9px;
}

.visit-board-link-icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.visit-board-link-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.visit-board-link-copy b {
  font-size: 10px;
  font-weight: 720;
}

.visit-board-link-copy small {
  overflow: hidden;
  color: #987a6c;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-board-link > svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.visit-note {
  margin: 9px 2px 0;
  color: #a3968d;
  font-size: 7.5px;
  line-height: 1.55;
}

.visit-board-toggle:focus-visible,
.visit-board-link:focus-visible,
.visit-danmaku-toggle:focus-visible,
.visit-board-refresh:focus-visible,
.visit-vote-option:focus-visible,
.visit-vote-suggest:focus-visible,
.visit-quick-row input:focus-visible,
.visit-quick-row button:focus-visible {
  outline: 2px solid #a94329;
  outline-offset: 2px;
}

.visit-danmaku {
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow: hidden;
  pointer-events: none;
}

.visit-danmaku[hidden] {
  display: none !important;
}

.visit-danmaku-stage {
  position: absolute;
  inset: 0;
}

.visit-danmaku-item {
  --visit-tone: #573b30;
  position: absolute;
  top: calc(100vh - 42px);
  left: 0;
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  max-width: min(72vw, 560px);
  padding: 6px 10px;
  overflow: hidden;
  color: var(--visit-tone);
  white-space: nowrap;
  background: rgba(255, 250, 243, 0.84);
  border: 1px solid rgba(204, 166, 148, 0.58);
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(74, 43, 30, 0.09);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  backdrop-filter: blur(8px);
  animation: visit-danmaku-scroll var(--visit-duration) linear var(--visit-delay) infinite;
  will-change: transform;
}

.visit-danmaku-item:nth-child(2) {
  top: calc(100vh - 76px);
}

.visit-danmaku-item:nth-child(3) {
  top: calc(100vh - 110px);
}

.visit-danmaku-item:nth-child(n + 4) {
  display: none;
}

.visit-danmaku-item[data-tone="1"] {
  --visit-tone: #255a40;
  background: rgba(241, 251, 244, 0.84);
  border-color: rgba(122, 171, 141, 0.5);
}

.visit-danmaku-item[data-tone="2"] {
  --visit-tone: #2d4e58;
  background: rgba(242, 249, 250, 0.82);
  border-color: rgba(131, 169, 177, 0.44);
}

.visit-danmaku-item[data-tone="3"] {
  --visit-tone: #784321;
  background: rgba(255, 245, 227, 0.85);
  border-color: rgba(204, 160, 96, 0.5);
}

.visit-danmaku-item b {
  color: inherit;
  font-size: 9px;
  font-weight: 760;
  opacity: 0.7;
}

.visit-danmaku-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes visit-danmaku-scroll {
  from {
    transform: translateX(calc(100vw + 100%));
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 760px) {
  .visit-board {
    top: 72px;
    right: 10px;
    width: min(340px, calc(100vw - 20px));
    max-height: calc(100vh - 84px);
  }

  .visit-board.is-collapsed {
    width: min(190px, calc(100vw - 20px));
  }

  .visit-board-toggle {
    flex: 0 0 auto;
    padding: 12px 14px 11px;
  }

  .visit-hero-main > b {
    font-size: 31px;
  }

  .visit-live-count b {
    font-size: 34px;
  }

  .visit-danmaku-item {
    max-width: 82vw;
    padding: 5px 9px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .visit-board {
    right: 8px;
    width: calc(100vw - 16px);
  }

  .visit-board.is-collapsed {
    width: min(186px, calc(100vw - 16px));
  }

  .visit-board-body {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visit-live-copy > span i {
    animation: none;
  }

  .visit-board-toggle > svg,
  .visit-board-refresh svg,
  .visit-board,
  .visit-chart-bar,
  .visit-board-link,
  .visit-quick-row button {
    transition: none;
  }

  .visit-quick-row button.is-loading svg {
    animation: none;
  }

  .visit-board-refresh.is-loading svg {
    animation: none;
  }

  .visit-vote-loading i {
    animation: none;
  }

  .visit-danmaku-item {
    animation: none;
    top: calc(100vh - 52px);
    right: 12px;
    left: auto;
    max-width: calc(100vw - 24px);
    transform: none;
  }

  .visit-danmaku-item:nth-child(n + 2) {
    display: none;
  }
}

/* ============================================================
   合并模式：今日访问看板直接嵌入右侧「今日追问」侧栏，
   不再悬浮遮挡。具体纸感覆写见 paper-skin.css。
   ============================================================ */
.visit-board.visit-board--rail {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  max-height: none;
}
