:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --green: #16a34a;
  --orange: #ea580c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px;
}
.header-inner h1 { margin: 0; font-size: 20px; font-weight: 700; }
.header-inner p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.main { padding: 16px; }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  margin: 0 auto;
}

.search-icon {
  width: 64px; height: 64px;
  background: #eef2ff;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.card h2 { text-align: center; margin: 0 0 8px; font-size: 20px; }
.subtitle { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; }

form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

button#submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button#submit-btn:hover { background: var(--primary-dark); }
button#submit-btn:disabled { background: #d1d5db; cursor: not-allowed; }

.error-box {
  margin-top: 16px;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 14px;
}

.help {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.help h3 { color: var(--text); font-size: 14px; margin: 0 0 8px; }
.help div { margin-bottom: 4px; }

.back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.result-type { font-size: 13px; color: var(--muted); }
.result-status { font-size: 18px; font-weight: 700; }
.result-due { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.check { color: var(--green); font-size: 24px; }

.not-tracked { text-align: center; padding: 24px 0; color: var(--muted); }

.timeline { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.stage { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.stage:last-child { margin-bottom: 0; }
.stage-dot {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.stage-dot.done { background: #dcfce7; color: var(--green); }
.stage-dot.current { background: #ffedd5; color: var(--orange); }
.stage-dot.upcoming { background: #f3f4f6; color: #9ca3af; }
.stage-name { font-size: 14px; font-weight: 500; }
.stage-name.upcoming { color: #9ca3af; }
.stage-desc { font-size: 12px; color: var(--muted); }
.stage-desc.upcoming { color: #d1d5db; }
.stage-current-badge {
  margin-left: auto;
  background: #ffedd5;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
