*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  color: #1a1a1a;
  min-height: 100vh;
}

#monitor {
  max-width: 720px;
  margin: 0 auto;
}

.site-card {
  background: #fff;
  border: 1px solid #e0e0da;
  border-radius: 10px;
  margin-bottom: 6px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.6rem 1.25rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ccc;
}
.indicator.up       { background: #4caf72; }
.indicator.down     { background: #e05252; animation: blink 1s step-end infinite; }
.indicator.checking { background: #f0a500; animation: pulse 1s ease-in-out infinite; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.site-info { flex: 1; min-width: 0; }

.site-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-url {
  font-size: 0.75rem;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
}
.badge.up       { background: #e8f5ee; color: #2d7a4f; }
.badge.down     { background: #fce8e8; color: #b03030; }
.badge.checking { background: #fff3dc; color: #9a6500; }
.badge.pending  { background: #f0f0ec; color: #999; }

.resp-time {
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 54px;
  text-align: right;
}
.resp-time.fast   { color: #4caf72; }
.resp-time.medium { color: #f0a500; }
.resp-time.slow   { color: #e05252; }
.resp-time.none   { color: #ccc; }

.card-detail {
  border-top: 1px solid #f0f0ea;
  padding: 0.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 5px 20px;
}

.detail-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 2px;
}
.detail-value {
  font-size: 0.8rem;
  color: #444;
  word-break: break-word;
}
.detail-value.code-2xx { color: #2d7a4f; font-weight: 600; }
.detail-value.code-3xx { color: #7a6500; font-weight: 600; }
.detail-value.code-4xx { color: #b03030; font-weight: 600; }
.detail-value.code-5xx { color: #b03030; font-weight: 600; }
.detail-value.err      { color: #b03030; }
.detail-value.none     { color: #ccc; }
