/* ── App Shell ─────────────────────────────────────────── */
.app-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* ── Header ───────────────────────────────────────────── */
.app-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--sand);
}
.app-header h1 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--forest);
  margin-bottom: 8px;
}
.app-header .subtitle {
  font-size: 16px;
  color: var(--ink-muted);
  font-weight: 300;
}

/* ── Project Banner ─────────────────────────────────────── */
.project-banner {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.project-banner-info { flex: 1; }
.project-banner-name {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--forest);
}
.project-banner-address {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.project-banner-type {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--ink-muted);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.project-banner-change {
  font-size: 13px;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.project-banner-change:hover { text-decoration: underline; }

/* ── Progress ───────────────────────────────────────────── */
.checklist-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.checklist-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--sand);
  border-radius: 4px;
  overflow: hidden;
}
.checklist-progress-fill {
  height: 100%;
  background: var(--forest);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.checklist-progress-text {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Checklist Items ────────────────────────────────────── */
.checklist-section { margin-bottom: 36px; }
.checklist-section-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}
.checklist-item:hover {
  box-shadow: 0 2px 12px rgba(26,58,47,0.08);
  border-color: var(--forest-light);
}
.checklist-item.done {
  border-color: var(--forest);
  background: #f4f9f6;
}
.checklist-item.done .check-icon { background: var(--forest); }
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.check-icon.checked { background: var(--forest); border-color: var(--forest); }
.item-info { flex: 1; }
.item-name { font-size: 15px; color: var(--ink); font-weight: 400; }
.item-name.done-text { text-decoration: line-through; color: var(--ink-muted); }
.item-sub { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.item-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.item-badge.missing {
  background: #fde8e6;
  color: var(--terracotta);
}
.item-badge.ready {
  background: #e8f0ec;
  color: var(--forest);
}

/* ── No-Project State (Create Flow) ──────────────────────── */
.create-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.create-intro {
  padding: 48px 40px;
  text-align: center;
  border-bottom: 1px solid var(--sand);
}
.create-intro h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--forest);
  margin-bottom: 12px;
}
.create-intro p {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}
.create-form {
  padding: 40px 40px 48px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.form-label span { color: var(--terracotta); }
input[type="text"], select {
  padding: 12px 16px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}
input[type="text"]:focus, select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(26,58,47,0.1);
}
.form-hint {
  font-size: 12px;
  color: var(--ink-muted);
}
.form-error {
  font-size: 13px;
  color: var(--terracotta);
  font-weight: 500;
  display: none;
}
.form-error.visible { display: block; }
.btn-primary {
  background: var(--forest);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  align-self: flex-start;
}
.btn-primary:hover { background: var(--forest-light); }
.btn-primary:active { transform: scale(0.98); }

/* ── Success State ──────────────────────────────────────── */
.project-created {
  padding: 48px 40px;
  text-align: center;
}
.project-created h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--forest);
  margin-bottom: 12px;
}
.project-created p {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.btn-secondary {
  background: none;
  color: var(--terracotta);
  border: 1px solid var(--sand);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.btn-secondary:hover { border-color: var(--terracotta); }

/* ── Empty States ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 40px;
  color: var(--ink-muted);
}
.empty-state-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--forest);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .app-wrapper { padding: 32px 24px 60px; }
  .project-banner { flex-direction: column; align-items: flex-start; }
  .checklist-progress { flex-direction: column; align-items: stretch; }
  .checklist-progress-text { text-align: center; }
}