/* Same palette as the workshop's customer quote page, so the two feel like
   one product. System fonts only: nothing is fetched from other sites. */
:root {
  --background: #F2F4F7;
  --card: #FFFFFF;
  --ink: #1F2937;
  --ink-muted: #6B7280;
  --primary: #0D1B2A;
  --accent: #00B4A6;
  --accent-soft: #D9F5F1;
  --amber: #B45309;
  --amber-soft: #FEF3D9;
  --border: #E2E5EA;
  --danger: #B91C1C;
  --success: #15803D;
  --success-soft: #DCFCE7;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.loading, .notice { text-align: center; color: var(--ink-muted); padding: 48px 0; }

/* ---- header ---- */
.topbar {
  background: var(--primary);
  color: #fff;
  margin: 0 -16px 16px;
  padding: 18px 16px;
}
.topbar h1 { margin: 0; font-size: 20px; font-weight: 700; }
.topbar .sub { margin: 2px 0 0; font-size: 13px; color: #B8C2CF; }
.topbar .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---- cards & sections ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.card h2 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--ink-muted); }

h2.section {
  margin: 24px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.empty { color: var(--ink-muted); font-size: 14px; margin: 0 0 12px; }

.item .title { font-weight: 600; }
.item .meta { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.item ul { margin: 8px 0 0; padding-left: 20px; }
.item li { margin: 2px 0; }
.item .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.item .total { font-weight: 700; white-space: nowrap; }

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--border);
  color: var(--ink-muted);
  margin-top: 6px;
}
.pill.waiting { background: var(--amber-soft); color: var(--amber); }
.pill.approved { background: var(--success-soft); color: var(--success); }
.pill.soon { background: var(--accent-soft); color: #007A70; }

/* ---- forms & buttons ---- */
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input.code { font-size: 24px; letter-spacing: 0.4em; text-align: center; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}
button.primary, .card button[type="submit"] { width: 100%; margin-top: 12px; }
button:disabled { opacity: 0.6; cursor: default; }
button.ghost, .button.ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  font-weight: 600;
}
.topbar .button.ghost, .topbar button.ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
button.link {
  background: none;
  color: var(--accent);
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
}
.card .linkrow { display: flex; justify-content: space-between; margin-top: 4px; }

a { color: #007A70; font-weight: 600; }

/* `.card p` (above) would otherwise win and turn errors grey. */
.error, .card p.error { color: var(--danger); font-size: 14px; margin: 10px 0 0; min-height: 1.4em; }
.footnote { font-size: 13px; color: var(--ink-muted); margin-top: 24px; text-align: center; }
