.st-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.st-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.st-header-inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.st-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-primary);
  min-width: 0;
}

.st-brand:hover {
  text-decoration: none;
}

.st-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.st-brand-mark svg {
  width: 16px;
  height: 16px;
}

.st-brand-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.st-brand-name {
  font-size: 15px;
  color: var(--ink-primary);
}

.st-brand-sep {
  color: var(--border-strong);
}

.st-brand-sub {
  font-size: 14px;
  color: var(--ink-secondary);
}

.st-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.st-nav-link {
  font-size: 13.5px;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.st-nav-link:hover {
  color: var(--brand);
  text-decoration: none;
}

.st-main {
  padding: 32px 0 56px;
}

.st-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.st-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.st-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.st-summary-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.st-summary-copy {
  min-width: 0;
}

.st-summary-title {
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink-primary);
}

.st-summary-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

.st-summary-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  flex-shrink: 0;
}

.st-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 7px;
  flex-shrink: 0;
}

.st-dot-ok {
  background: #16a34a;
}

.st-dot-warn {
  background: #d97706;
}

.st-dot-danger {
  background: #dc2626;
}

.st-dot-neutral {
  background: #a1a1aa;
}

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}

.st-btn:hover {
  background: var(--bg-hover);
}

.st-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.st-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 2px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.st-legend-items {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.st-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
}

.st-swatch {
  width: 8px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
}

.swatch-ok { background: #16a34a; }
.swatch-warn { background: #d97706; }
.swatch-danger { background: #dc2626; }
.swatch-empty { background: #e4e4e7; }

.st-service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.st-service-name {
  font-size: 15.5px;
  color: var(--ink-primary);
}

.st-service-desc {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.st-service-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.st-metric-line {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.st-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  white-space: nowrap;
}

.st-tag-ok {
  border-color: #bbf7d0;
  background: var(--ok-bg);
  color: var(--ok);
}

.st-tag-warn {
  border-color: #fde68a;
  background: var(--warn-bg);
  color: var(--warn);
}

.st-tag-danger {
  border-color: #fecaca;
  background: var(--danger-bg);
  color: var(--danger);
}

.st-bars-wrap {
  position: relative;
}

.st-bars-grid {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
  height: 36px;
}

.st-bar {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  height: 36px;
  border-radius: 3px;
  cursor: pointer;
  background: #e4e4e7;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.st-bar.bar-ok { background: #16a34a; }
.st-bar.bar-warn { background: #d97706; }
.st-bar.bar-danger { background: #dc2626; }
.st-bar.bar-empty { background: #e4e4e7; }

.st-bar:hover,
.st-bar.active {
  transform: scaleY(1.08);
  box-shadow: 0 0 0 1.5px #3f3f46;
  z-index: 4;
}

.st-bar:focus-visible {
  transform: scaleY(1.08);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  z-index: 5;
}

.st-bar-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 192px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: #18181b;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  z-index: 15;
  white-space: nowrap;
}

.st-bar.tip-left .st-bar-tip {
  left: 0;
  transform: none;
}

.st-bar.tip-right .st-bar-tip {
  left: auto;
  right: 0;
  transform: none;
}

.st-bar:hover .st-bar-tip,
.st-bar:focus-visible .st-bar-tip {
  opacity: 1;
  visibility: visible;
}

.st-tip-date {
  color: #e4e4e7;
  border-bottom: 1px solid #3f3f46;
  padding-bottom: 4px;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.st-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #d4d4d8;
}

.st-tip-val {
  color: #ffffff;
}

.st-axis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.st-day-readout {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 12.5px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.st-empty-banner {
  padding: 12px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.st-empty-box {
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.st-retry-row {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.st-note-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-note-text {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.st-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 18px 0;
}

.st-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

@media (max-width: 640px) {
  .st-container {
    padding: 0 16px;
  }
  .st-main {
    padding: 20px 0 40px;
  }
  .st-card {
    padding: 16px;
  }
  .st-summary-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .st-summary-meta {
    justify-content: space-between;
  }
  .st-bars-grid {
    gap: 2px;
    height: 30px;
  }
  .st-bar {
    height: 30px;
    border-radius: 2px;
  }
  .st-bar-tip {
    display: none;
  }
}
