/* Mission Card 01 — mobile-first styles (see docs/style.md) */

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

body {
  font-family: system-ui, sans-serif;
  background: #f5f7fa;
  color: #1f2937;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 16px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  height: fit-content;
  margin-top: 32px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.subtitle {
  color: #6b7280;
  margin-bottom: 20px;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 12px;
}

input:focus {
  outline: 2px solid #2563eb;
  border-color: #2563eb;
}

button {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:active {
  background: #1d4ed8;
}

/* Feedback area */
.message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
}

.result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #f0f9ff;
}

.result h2 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  background: #e5e7eb;
  color: #374151;
}

/* Status stage colors (docs/style.md) */
.status-received   { background: #e5e7eb; color: #374151; }
.status-inprogress { background: #dbeafe; color: #1d4ed8; }
.status-ready      { background: #ffedd5; color: #c2410c; }
.status-completed  { background: #dcfce7; color: #15803d; }

/* Progress timeline (Mission Card 02) */
.timeline {
  margin-top: 16px;
  list-style: none;
}

.timeline li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #6b7280;
}

.timeline li + li {
  border-top: 1px dashed #e5e7eb;
}

.timeline .step-icon {
  font-size: 1rem;
}

.timeline li.done {
  color: #15803d;
}

.timeline li.current {
  color: #1d4ed8;
  font-weight: 700;
}

/* Owner view (Mission Card 03) */
.owner-orders {
  list-style: none;
  margin-top: 12px;
}

.owner-order {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.owner-order p {
  margin-bottom: 8px;
}

.owner-order button {
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
}

.owner-order a {
  color: #2563eb;
}

/* Place an order (Mission Card 04) */
.divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 24px 0;
}

#place-order h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.confirmation {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 600;
}

.hidden {
  display: none;
}
