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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
}

header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid #21262d;
}

header h1 {
  font-size: 22px;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 8px;
}

.meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 12px;
}

.refresh-note { font-style: italic; }

.progress-bar-wrap {
  position: relative;
  background: #21262d;
  border-radius: 4px;
  height: 18px;
  max-width: 480px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #238636;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-label {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #e6edf3;
  mix-blend-mode: difference;
}

section {
  padding: 24px 32px;
}

section h2 {
  font-size: 16px;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 8px 12px;
  background: #161b22;
  color: #8b949e;
  font-weight: 600;
  border-bottom: 1px solid #21262d;
  white-space: nowrap;
}

td {
  padding: 7px 12px;
  border-bottom: 1px solid #161b22;
  vertical-align: middle;
}

tr:hover td { background: #161b22; }

.svc-name {
  font-weight: 600;
  color: #58a6ff;
  white-space: nowrap;
}

.port {
  color: #8b949e;
  font-family: monospace;
}

.stage-done {
  color: #3fb950;
  text-align: center;
  font-weight: 700;
}

.stage-pending {
  color: #30363d;
  text-align: center;
}

.notes {
  color: #8b949e;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-green  { background: #1a4429; color: #3fb950; }
.badge-red    { background: #4c1b1b; color: #f85149; }
.badge-yellow { background: #3d2f00; color: #d29922; }
.badge-grey   { background: #21262d; color: #8b949e; }

.platform-table { max-width: 480px; }

footer {
  padding: 16px 32px;
  border-top: 1px solid #21262d;
  color: #8b949e;
  font-size: 12px;
}

footer a {
  color: #58a6ff;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }
