:root {
  --brand: #155e63;
  --brand-contrast: #f5f7fb;
  --text: #0b1724;
  --muted: #5c6a7a;
  --border: #dfe4ea;
  --success: #1b9c85;
  --warning: #f2a365;
  --danger: #d9534f;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: var(--text);
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: var(--brand);
}

#app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.shell {
  width: min(1100px, 100%);
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 15px 40px rgba(17, 24, 39, 0.07);
  border-radius: 16px;
  padding: 2rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d7373, #2db7a3);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand h1 {
  margin: 0;
  font-size: 1.35rem;
}

.header .actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.button {
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.button.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 20px rgba(21, 94, 99, 0.2);
}

.button.secondary {
  background: var(--brand-contrast);
  color: var(--brand);
  border: 1px solid #c6d8d9;
}

.button.danger {
  background: var(--danger);
  color: white;
}

.button:active {
  transform: translateY(1px);
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: #eff3f8;
  color: var(--muted);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #f4fbf9;
  color: #0c3d36;
  border: 1px solid #cde7df;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  background: #fbfdff;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.empty {
  padding: 1rem;
  background: #f1f5f9;
  border: 1px dashed #cdd5df;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.auth-panel {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.auth-panel h2 {
  margin-bottom: 0.5rem;
}

.steps {
  text-align: left;
  margin: 1.25rem auto;
  padding: 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.steps li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.timeline-entry {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
}

.timeline-entry .label {
  color: var(--muted);
  font-weight: 600;
}

.timeline-entry .value {
  font-weight: 700;
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header .actions {
    width: 100%;
    justify-content: space-between;
  }
}
