:root {
  --v8-web-violet: #76699b;
  --v8-web-mint: #78aa9f;
  --v8-web-gold: #dfc778;
  --v8-web-line: rgba(64, 58, 71, 0.1);
}

.v8-web .weekly-portrait-head > span {
  color: var(--v8-web-violet);
  font-size: 10px;
  font-weight: 560;
}

.v8-web .weekly-portrait-head h3 {
  margin-block: 6px;
  font-size: 25px;
  font-weight: 540;
}

.v8-web .weekly-portrait-grid {
  gap: 34px;
  margin-top: 20px;
}

.v8-web .weekly-portrait-grid[data-weekly-state="empty"],
.v8-web .weekly-portrait-grid[data-weekly-state="landing"] {
  grid-template-columns: minmax(400px, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
}

.v8-web .weekly-tide {
  padding: 16px 18px 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(222, 199, 120, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(243, 240, 246, 0.78), rgba(244, 248, 246, 0.72));
  border: 1px solid rgba(92, 82, 108, 0.08);
  border-radius: 8px;
}

.v8-web .weekly-tide-chart {
  height: 126px;
  padding: 0;
}

.v8-web .weekly-tide-chart svg {
  height: 126px;
}

.v8-web .weekly-tide-mist {
  fill: url("#desktopWeeklyTideMist");
}

.v8-web .weekly-tide-line {
  stroke-width: 2.5;
}

.v8-web .weekly-tide-line.is-emerging {
  stroke-dasharray: 3 6;
  stroke-width: 2;
  opacity: 0.72;
}

.v8-web .weekly-tide-line.is-gap {
  stroke-dasharray: 2 7;
  opacity: 0.52;
}

.v8-web .weekly-tide-halo {
  fill: rgba(111, 181, 168, 0.2);
}

.v8-web .weekly-tide-dot {
  fill: #fffdf8;
  stroke: var(--v8-web-violet);
  stroke-width: 2.4;
}

.v8-web .weekly-release-link {
  fill: none;
  stroke: rgba(111, 181, 168, 0.74);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.v8-web .weekly-after-dot {
  fill: #79b3a7;
  stroke: #fbfaf6;
  stroke-width: 1.6;
}

.v8-web .weekly-day-buttons {
  gap: 0;
  margin-top: 2px;
}

.v8-web .weekly-day-buttons button {
  min-height: 50px;
  padding-block: 3px;
  background: transparent;
  border-radius: 0;
}

.v8-web .weekly-day-buttons button i {
  position: relative;
  width: 19px;
  height: 19px;
  margin-bottom: 6px;
  overflow: hidden;
  background: #e7e3eb;
  border: 1px solid rgba(103, 93, 145, 0.08);
  border-radius: 50%;
}

.v8-web .weekly-day-buttons button i::after {
  position: absolute;
  top: -1px;
  right: -3px;
  width: 16px;
  height: 19px;
  content: "";
  background: #f7f5f7;
  border-radius: 50%;
}

.v8-web .weekly-day-buttons button.has-report i {
  background: linear-gradient(145deg, #f0d98e, #bea871);
  border-color: rgba(185, 154, 77, 0.22);
  box-shadow: 0 0 12px rgba(222, 199, 120, 0.24);
}

.v8-web .weekly-day-buttons button.has-report i::after,
.v8-web .weekly-day-buttons button.active i::after {
  display: none;
}

.v8-web .weekly-day-buttons button.active {
  color: #4f4762;
  font-weight: 560;
  background: transparent;
}

.v8-web .weekly-day-buttons button.active i {
  background: #82b6aa;
  border-color: rgba(85, 142, 130, 0.22);
  box-shadow: 0 0 0 5px rgba(111, 169, 155, 0.12), 0 0 16px rgba(111, 169, 155, 0.18);
}

.v8-web .weekly-day-buttons button.active:not(.has-report) i {
  background: #e7e3eb;
  border-color: rgba(111, 169, 155, 0.36);
}

.v8-web .weekly-day-buttons button.active:not(.has-report) i::after {
  display: block;
  background: #f7f5f7;
}

.v8-web .weekly-day-detail {
  min-height: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(64, 58, 71, 0.07);
}

.v8-web .weekly-sparse-note {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 5px 15px;
  padding: 24px 4px;
}

.v8-web .weekly-sparse-moon {
  position: relative;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: linear-gradient(145deg, #e9d490, #c9b16d);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(223, 199, 120, 0.22);
}

.v8-web .weekly-sparse-moon::after {
  position: absolute;
  top: -3px;
  right: -13px;
  width: 45px;
  height: 50px;
  content: "";
  background: #fcfbf8;
  border-radius: 50%;
}

.v8-web .weekly-sparse-note strong {
  color: #494250;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: 21px;
  font-weight: 540;
  line-height: 1.5;
}

.v8-web .weekly-sparse-note p {
  margin: 5px 0 0;
  color: #7c7580;
  font-size: 13px;
  line-height: 1.75;
}

.v8-web .weekly-sparse-note button {
  grid-column: 2;
  justify-self: start;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  background: #665b87;
  border: 0;
  border-radius: 7px;
}

.v8-web .weekly-portrait-boundary {
  padding-top: 13px;
  border-top: 1px solid rgba(64, 58, 71, 0.07);
}

@media (max-width: 980px) {
  .v8-web .weekly-portrait-grid[data-weekly-state] {
    grid-template-columns: 1fr;
  }
}
