@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0F2846;
  --muted: #6B7280;
  --line: #E5E7EB;
  --brand: #0F2846;
  --accent: #00FAAA;
  --ok: #00FAAA;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--accent);
}

.brand-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 1px;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.brand:hover .brand-dot {
  transform: scale(1.2);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.welcome {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.2s ease;
}

.icon-button:hover {
  background: var(--bg);
}

.layout {
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
  display: grid;
  gap: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.hero {
  background: var(--surface);
}

.label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.section-head {
  margin-bottom: 1.5rem;
}

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

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}

.tile-active {
  background: var(--surface);
}

.tile-placeholder {
  border-style: dashed;
  background: var(--surface);
}

.tile-number {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
}

.timeline-marker {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-item.is-active .timeline-marker {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand);
}

.timeline-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}

.dots {
  margin: 0.5rem 0 0;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-weight: 400;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.actions.stack {
  flex-direction: column;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--bg);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand);
}

.btn-primary:hover {
  background: #00e89a;
  border-color: #00e89a;
}

.btn-primary:disabled {\n  opacity: 0.7;\n  cursor: not-allowed;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 120px;
  height: 120px;
}

.check-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 400;
}

.state {
  font-weight: 500;
  margin: 0.5rem 0 1rem;
  font-size: 0.875rem;
}

.state.done {
  color: var(--ok);
}

.state.pending {
  color: var(--warn);
}

.summary {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.6;
}

.ok {
  color: var(--ok);
  font-weight: 500;
}

.error {
  color: var(--danger);
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.5rem;
}

th {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .topbar-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 0.25rem;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .layout {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .timeline-item {
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
  }
}
