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

:root {
  --ink: #0f0f11;
  --paper: #f8f7f4;
  --mid: #6b6b72;
  --accent: #3b5bdb;
  --accent2: #e8f0ff;
  --line: #e2e1de;
  --white: #ffffff;
  --green: #1e7a48;
  --green-bg: #e8f5ee;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 1.5rem 0 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.topbar-label {
  font-size: 0.85rem;
  color: var(--mid);
}

.card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin: 0.5rem 0 2rem;
  box-shadow: 0 8px 32px rgba(15, 15, 17, 0.06);
}

.loading, .error {
  text-align: center;
  color: var(--mid);
  padding: 1.5rem 0;
}

.error {
  color: var(--ink);
}

.error .error-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.error-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.client-name {
  font-size: 0.85rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.etape-label {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: var(--accent2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.progress-fill.is-complete {
  background: var(--green);
}

.progress-percent {
  text-align: right;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.message-box {
  background: var(--accent2);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.message-box.is-complete {
  background: var(--green-bg);
}

.updated-at {
  font-size: 0.82rem;
  color: var(--mid);
}

.footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--mid);
  padding: 0 0 1.5rem;
}

@media (max-width: 380px) {
  .card {
    padding: 1.5rem 1.1rem;
  }
  .etape-label {
    font-size: 1.2rem;
  }
}
