/* 屏幕时间：左侧今天 + 右侧近 7 天灰槽柱，明细放在悬停卡片里。
   类名统一 st- 前缀，只作用于本区块。 */

.st-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(26px, 3.4vw, 40px);
}

.st-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 620;
  letter-spacing: -0.02em;
}

.st-src {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.st-src:hover {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

.st-grid {
  display: grid;
  grid-template-columns: minmax(180px, 26%) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.st-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.st-big {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.st-big small {
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

.st-sub {
  margin-top: 14px;
  color: var(--light);
  font-size: 12.5px;
  line-height: 1.8;
}

/* 右栏：7 根柱子 */
.st-chart {
  position: relative;
}

.st-cols {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1vw, 12px);
}

.st-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  color: inherit;
  font: inherit;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.st-col:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 6px;
  border-radius: 4px;
}

.st-val {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.st-col.is-today .st-val {
  color: var(--accent-warm);
}

.st-slot {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: clamp(96px, 12vw, 132px);
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  transition: background-color 0.15s ease;
}

.st-col:hover .st-slot,
.st-col:focus-visible .st-slot {
  background: #eceae4;
}

.st-stack {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
}

.st-seg {
  width: 100%;
}

.st-day {
  color: var(--light);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.st-col.is-today .st-day {
  color: var(--accent-warm);
  font-weight: 600;
}

/* 悬停卡片 */
.st-tip {
  position: absolute;
  z-index: 5;
  min-width: 196px;
  max-width: 280px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(29 29 27 / 9%);
  pointer-events: none;
}

.st-tip[hidden] {
  display: none;
}

.st-tip-head {
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
}

.st-tip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-tip-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}

.st-tip-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.st-tip-list span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.st-tip-list em {
  color: var(--text);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.st-tip-empty {
  color: var(--light);
  font-family: var(--mono);
  font-size: 11.5px;
}

.st-foot {
  margin-top: 16px;
  color: var(--light);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
}

.st-hint {
  padding: 18px 0;
  color: var(--light);
  font-family: var(--mono);
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .st-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .st-head {
    align-items: center;
  }

  .st-slot {
    height: 88px;
  }
}
