/* Zeta 独处页：三次独处时段的表盘与卡片。只作用于 #soloView。 */

#soloView {
  --sx-ink: rgba(24, 34, 32, 0.9);
  --sx-soft: rgba(30, 44, 41, 0.66);
  --sx-faint: rgba(30, 44, 41, 0.46);
  --sx-hair: rgba(28, 52, 47, 0.1);
  --sx-surface: var(--glass-fill, rgba(250, 252, 248, 0.7));
  --sx-edge: var(--glass-edge, rgba(255, 255, 255, 0.66));
  --sx-shadow: var(--glass-shadow, 0 8px 24px rgba(16, 46, 38, 0.08));
  --sx-filter: var(--glass-filter, blur(22px) saturate(1.5));
}

#soloView .solo-scroll {
  gap: 14px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

/* ---------- 状态色 ---------- */

#soloView .tone-completed { --tone: var(--accent); --tone-ink: var(--accent-ink); }
#soloView .tone-running { --tone: #c99a32; --tone-ink: #6b4f12; }
#soloView .tone-pending { --tone: #d88b52; --tone-ink: #7a4520; }
#soloView .tone-scheduled { --tone: #8a9a96; --tone-ink: #44524f; }
#soloView .tone-idle { --tone: #7f9e95; --tone-ink: #3d5a52; }
#soloView .tone-failed { --tone: #b95750; --tone-ink: #7a2a25; }
#soloView .tone-interrupted { --tone: #c7793c; --tone-ink: #6e3d14; }
#soloView .tone-missed,
#soloView .tone-unknown { --tone: #a3a9a7; --tone-ink: #59605e; }
#soloView .tone-disabled { --tone: #9aa1a0; --tone-ink: #59605e; }
#soloView .tone-loading { --tone: #b8c0be; --tone-ink: #6b7472; }

/* ---------- 日期与表盘 ---------- */

.sx-day,
.sx-slot,
.sx-error-card {
  position: relative;
  border: 1px solid var(--sx-edge);
  border-radius: 24px;
  background: var(--sx-surface);
  box-shadow: var(--sx-shadow);
  -webkit-backdrop-filter: var(--sx-filter);
  backdrop-filter: var(--sx-filter);
}

.sx-day {
  padding: 12px 14px 12px;
}

.sx-date-bar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 6px;
}

.sx-date-step {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--sx-edge);
  border-radius: 50%;
  color: var(--accent-ink);
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.sx-date-step svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sx-date-step:disabled {
  opacity: 0.32;
  cursor: default;
}

.sx-date-pick {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 4px 0;
  cursor: pointer;
  text-align: center;
}

.sx-date-pick strong {
  color: var(--sx-ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sx-date-pick small {
  max-width: 100%;
  overflow: hidden;
  color: var(--sx-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 原生日期选择器覆盖在标题上，点击标题即可选日期 */
.sx-date-pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.sx-date-pick input:disabled {
  cursor: default;
}

.sx-date-pick:has(input:focus-visible) {
  border-radius: 14px;
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

.sx-today-button {
  display: block;
  margin: 2px auto 0;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  border-radius: 999px;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, 0.6));
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sx-today-button[hidden],
.sx-disabled-banner[hidden] {
  display: none;
}

.sx-disabled-banner {
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px dashed rgba(89, 96, 94, 0.32);
  border-radius: 14px;
  color: #4f5654;
  background: rgba(225, 228, 227, 0.5);
  font-size: 12px;
  line-height: 1.5;
}

.sx-day-visual {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 4px;
}

.sx-dial {
  width: min(100%, 248px);
  aspect-ratio: 1;
}

.sx-dial-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke: none;
}

.sx-dial-svg text {
  stroke: none;
  font-family: inherit;
}

.sx-ring-night {
  fill: none;
  stroke: rgba(98, 104, 160, 0.16);
  stroke-width: 15;
}

.sx-ring-day {
  fill: none;
  stroke: rgba(236, 196, 112, 0.3);
  stroke-width: 15;
  stroke-linecap: round;
}

.sx-tick {
  stroke: rgba(40, 60, 56, 0.16);
  stroke-width: 1;
  stroke-linecap: round;
}

.sx-tick.is-major {
  stroke: rgba(40, 60, 56, 0.34);
  stroke-width: 1.5;
}

.sx-tick-label {
  fill: var(--sx-faint);
  font-size: 9px;
  font-weight: 700;
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}

.sx-now-hand {
  stroke: color-mix(in srgb, var(--accent) 55%, transparent);
  stroke-width: 1.4;
  stroke-dasharray: 2 3;
  stroke-linecap: round;
}

.sx-now-dot {
  fill: var(--accent);
  stroke: white;
  stroke-width: 1.5;
}

.sx-dial-count {
  fill: var(--sx-ink);
  font-size: 30px;
  font-weight: 700;
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}

.sx-dial-caption {
  fill: var(--sx-faint);
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
  letter-spacing: 0.08em;
}

.sx-dial-slot {
  cursor: pointer;
}

.sx-marker {
  fill: var(--tone);
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.5;
  filter: drop-shadow(0 3px 5px rgba(30, 44, 41, 0.18));
  transition: transform 160ms ease;
}

.sx-dial-slot:hover .sx-marker {
  transform: scale(1.08);
}

.tone-scheduled > .sx-marker,
.tone-loading > .sx-marker,
.tone-disabled > .sx-marker {
  fill: rgba(255, 255, 255, 0.88);
  stroke: var(--tone);
  stroke-width: 1.6;
}

.tone-missed > .sx-marker,
.tone-unknown > .sx-marker {
  fill: rgba(255, 255, 255, 0.7);
  stroke: var(--tone);
  stroke-width: 1.6;
  stroke-dasharray: 3 2.5;
}

.sx-glyph {
  fill: none;
  stroke: white;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.sx-glyph.glyph-night {
  fill: white;
  stroke: none;
}

:is(.tone-scheduled, .tone-loading, .tone-disabled, .tone-missed, .tone-unknown) > .sx-glyph {
  stroke: var(--tone-ink);
}

:is(.tone-scheduled, .tone-loading, .tone-disabled, .tone-missed, .tone-unknown) > .sx-glyph.glyph-night {
  fill: var(--tone-ink);
}

.sx-ray {
  stroke: var(--ray-color);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: 0.85;
}

.sx-ray.is-failed {
  stroke: #b95750;
  stroke-dasharray: 1.5 2;
  opacity: 0.7;
}

.sx-pulse {
  fill: var(--tone);
  opacity: 0.35;
  transform-origin: center;
  transform-box: fill-box;
  animation: sx-pulse 1.8s ease-out infinite;
}

.sx-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sx-stat {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.sx-stat small {
  color: var(--sx-faint);
  font-size: 10px;
  font-weight: 600;
}

.sx-stat strong {
  color: var(--sx-ink);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sx-stat span {
  max-width: 100%;
  overflow: hidden;
  color: var(--sx-faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--sx-faint);
  font-size: 11px;
  text-align: center;
}

.sx-status.is-muted {
  color: #8a4a44;
}

/* ---------- 时段卡片 ---------- */

.sx-slots {
  display: grid;
  gap: 12px;
}

.sx-slot {
  isolation: isolate;
  overflow: hidden;
  padding: 0 0 12px;
  scroll-margin-top: 8px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.sx-slot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 74px;
  z-index: -1;
  background: var(--period-wash);
  pointer-events: none;
}

.sx-slot.period-dawn { --period-wash: linear-gradient(180deg, rgba(248, 206, 170, 0.42), rgba(210, 238, 226, 0.12) 72%, transparent); --period-ink: #8a5530; }
.sx-slot.period-noon { --period-wash: linear-gradient(180deg, rgba(244, 222, 140, 0.4), rgba(176, 216, 232, 0.14) 72%, transparent); --period-ink: #7d6418; }
.sx-slot.period-night { --period-wash: linear-gradient(180deg, rgba(110, 112, 180, 0.3), rgba(176, 146, 204, 0.12) 72%, transparent); --period-ink: #3f3f86; }

.sx-slot.tone-scheduled,
.sx-slot.tone-loading,
.sx-slot.tone-disabled,
.sx-slot.tone-missed {
  opacity: 0.86;
}

.sx-slot.tone-running {
  box-shadow: var(--sx-shadow), 0 0 0 1.5px color-mix(in srgb, var(--tone) 45%, transparent);
}

.sx-slot.is-flash {
  box-shadow: var(--sx-shadow), 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
}

.sx-slot-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 4px;
}

.sx-slot-glyph {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 white;
}

.sx-slot-glyph svg {
  width: 26px;
  height: 26px;
  stroke: none;
}

.sx-slot-glyph .sx-glyph {
  stroke: var(--period-ink);
}

.sx-slot-glyph .sx-glyph.glyph-night {
  fill: var(--period-ink);
}

.sx-slot-title {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.sx-slot-title strong {
  color: var(--sx-ink);
  font-size: 17px;
  font-weight: 700;
}

.sx-slot-title span {
  color: var(--sx-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sx-pill {
  max-width: 132px;
  overflow: hidden;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--tone-ink);
  background: color-mix(in srgb, var(--tone) 18%, rgba(255, 255, 255, 0.72));
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-slot > .sx-slot-head .sx-pill.tone-running::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--tone);
  vertical-align: 1px;
  animation: sx-blink 1.2s ease-in-out infinite;
}

.sx-slot-times {
  margin: 2px 14px 0 64px;
  color: var(--sx-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sx-slot-empty {
  margin: 8px 14px 0 64px;
  color: var(--sx-faint);
  font-size: 13px;
  line-height: 1.6;
}

.sx-slot-body .sx-slot-empty {
  margin: 0;
}

/* 工具步骤链 */

.sx-chain-wrap {
  margin: 12px 0 0;
  padding: 0 14px;
}

.sx-chain {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 2px 2px 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sx-chain::-webkit-scrollbar {
  display: none;
}

.sx-step {
  position: relative;
  flex: none;
  width: 58px;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.sx-step + .sx-step::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(40, 60, 56, 0.12), rgba(40, 60, 56, 0.22));
}

.sx-step-node {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: white;
  background: var(--step-color);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--step-color) 30%, transparent);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease;
}

.sx-step-node:active {
  transform: scale(0.94);
}

.sx-step.is-failed .sx-step-node {
  color: #7a2a25;
  border: 2px dashed #b95750;
  background: rgba(255, 238, 236, 0.92);
  box-shadow: none;
}

.sx-step-label {
  display: block;
  width: 100%;
  padding: 0 2px;
  overflow: hidden;
  text-align: center;
  color: var(--sx-soft);
  font-family: var(--ct-mono, ui-monospace, monospace);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-step.is-failed .sx-step-label {
  color: #a1453f;
}

.sx-server-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.sx-server-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--chip-color) 70%, #1f2b29);
  background: color-mix(in srgb, var(--chip-color) 13%, rgba(255, 255, 255, 0.7));
  font-size: 11px;
  font-weight: 650;
}

.sx-server-chips span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-color);
}

/* 内容 */

.sx-slot-body {
  display: grid;
  gap: 10px;
  margin: 12px 14px 0;
}

.sx-field {
  display: grid;
  gap: 4px;
}

.sx-field-label {
  color: var(--sx-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.sx-summary {
  margin: 0;
  color: var(--sx-ink);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.sx-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sx-topics span {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 11%, rgba(255, 255, 255, 0.66));
  font-size: 12px;
}

.sx-reflection {
  position: relative;
  margin: 0;
  padding: 10px 14px 10px 30px;
  border-radius: 16px;
  color: rgba(52, 40, 50, 0.86);
  background: rgba(240, 226, 234, 0.5);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.sx-reflection::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 10px;
  color: rgba(165, 120, 146, 0.75);
  font-size: 28px;
  line-height: 1;
}

.sx-note {
  margin: 0;
  color: var(--sx-soft);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.sx-note.is-quiet {
  color: var(--sx-faint);
  font-size: 11.5px;
}

.sx-problem {
  margin: 0;
  padding: 8px 11px;
  border-radius: 12px;
  color: #7a2a25;
  background: rgba(244, 216, 212, 0.55);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sx-detail-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 28px);
  min-height: 40px;
  margin: 12px 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  color: var(--accent-ink);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.sx-detail-toggle::after {
  content: "⌄";
  font-size: 13px;
  transition: transform 160ms ease;
}

.sx-detail-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* ---------- 详情 ---------- */

.sx-detail {
  display: grid;
  gap: 10px;
  margin: 10px 14px 0;
  animation: sx-reveal 180ms ease-out;
}

.sx-detail-hint {
  margin: 0;
  color: var(--sx-faint);
  font-size: 12px;
}

.sx-sources {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.sx-sources h4 {
  margin: 0 0 6px;
  color: var(--sx-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.sx-sources ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sx-link {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.sx-link-plain {
  color: var(--sx-faint);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sx-receipts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sx-receipt {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--step-color);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.44);
  scroll-margin: 60px;
  transition: box-shadow 220ms ease;
}

.sx-receipt.is-failed {
  border-left-color: #b95750;
  background: rgba(252, 238, 236, 0.55);
}

.sx-receipt.is-flash {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent);
}

.sx-receipt-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.sx-receipt-index {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--step-color);
  font-size: 11px;
  font-weight: 800;
}

.sx-receipt.is-failed .sx-receipt-index {
  background: #b95750;
}

.sx-receipt-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--sx-ink);
  font-family: var(--ct-mono, ui-monospace, monospace);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-receipt-head .sx-pill {
  padding: 3px 8px;
  font-size: 10px;
}

.sx-receipt-time {
  color: var(--sx-faint);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.sx-args {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 3px 10px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(240, 245, 243, 0.7);
  font-size: 11px;
}

.sx-args dt {
  color: var(--sx-faint);
  font-family: var(--ct-mono, ui-monospace, monospace);
}

.sx-args dd {
  min-width: 0;
  margin: 0;
  color: var(--sx-soft);
}

.sx-result {
  display: grid;
  gap: 6px;
}

.sx-text {
  color: rgba(28, 40, 37, 0.84);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sx-text.is-mono {
  max-height: 260px;
  overflow: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(240, 245, 243, 0.7);
  font-family: var(--ct-mono, ui-monospace, monospace);
  font-size: 11px;
}

.sx-args .sx-text {
  font-size: 11px;
}

.sx-more {
  display: block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  color: var(--accent-ink);
  background: none;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.sx-block-meta {
  margin: 0;
  color: var(--sx-faint);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.sx-structured summary {
  color: var(--sx-soft);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.sx-structured .sx-text {
  margin-top: 6px;
}

/* ---------- 错误 ---------- */

.sx-error-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 18px;
  text-align: center;
}

.sx-error-card strong {
  color: var(--sx-ink);
  font-size: 15px;
}

.sx-error-card p {
  margin: 0;
  color: var(--sx-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sx-retry {
  min-height: 36px;
  margin-top: 6px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.sx-retry.is-inline {
  min-height: 26px;
  margin: 0;
  padding: 0 12px;
  font-size: 11px;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 360px) {
  .sx-day { padding: 10px 10px 10px; }
  .sx-dial { width: min(100%, 220px); }
  .sx-slot-head { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 12px 12px 4px; }
  .sx-slot-glyph { width: 34px; height: 34px; border-radius: 12px; }
  .sx-slot-times,
  .sx-slot-empty { margin-left: 54px; }
  .sx-pill { max-width: 104px; padding: 4px 8px; font-size: 10px; }
  .sx-summary { font-size: 14px; }
}

@media (min-width: 620px) {
  .sx-day-visual {
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
  }

  .sx-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- 动效 ---------- */

@keyframes sx-pulse {
  from { transform: scale(1); opacity: 0.4; }
  to { transform: scale(1.9); opacity: 0; }
}

@keyframes sx-blink {
  50% { opacity: 0.3; }
}

@keyframes sx-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sx-pulse,
  .sx-slot .sx-pill.tone-running::before,
  .sx-detail { animation: none; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .sx-day,
  .sx-slot,
  .sx-error-card {
    background: #f7faf8;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
