/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
  padding: 2rem;
}

/* === HEADER === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #21262d;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0f6fc;
}

#auth-area {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#auth-area input {
  background: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  width: 170px;
}

#auth-area input::placeholder { color: #484f58; }

#auth-area button {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #238636;
  background: #238636;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
}

#auth-area button:hover { background: #2ea043; }

/* === PANEL === */
.panel {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.panel h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b949e;
  margin-bottom: 1rem;
  font-weight: 500;
}

.test-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #21262d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.test-row:last-child { border-bottom: none; }

.test-row .icon   { flex: 0 0 1.5rem; text-align: center; }
.test-row .label  { flex: 0 0 300px; color: #8b949e; }
.test-row .detail { flex: 1; word-break: break-all; }

/* status colors */
.test-row .icon.icon-ok   { color: #3fb950; }
.test-row .icon.icon-fail { color: #f85149; }
.test-row .icon.icon-wait { color: #d29922; }

/* === BUTTONS === */
.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.buttons button {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #21262d;
  color: #c9d1d9;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.buttons button:hover:not(:disabled) {
  background: #30363d;
}

.buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  #auth-area { flex-wrap: wrap; }
  .test-row .label { flex: 0 0 180px; }
  .buttons { grid-template-columns: 1fr; }
}
