/* =============================================================================
   OZARI PRINT — STYLES
   Navy #1A2E4A · Purple #7B4FBF · Gold #C9935A
   Warm, calm, conversational. Mobile-first.
   ============================================================================ */

:root {
  --navy:        #1A2E4A;
  --navy-soft:   #243a5b;
  --purple:      #7B4FBF;
  --purple-soft: #9c79d6;
  --gold:        #C9935A;

  --bg:          #FAF8F4;        /* warm paper */
  --surface:     #FFFFFF;
  --surface-2:   #F2EEE6;
  --line:        #E5DFD2;
  --text:        #1A2E4A;
  --muted:       #5d6b7e;
  --error:       #B23A48;
  --success:     #2F7D5B;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow-1: 0 1px 2px rgba(26,46,74,.06), 0 4px 12px rgba(26,46,74,.04);
  --shadow-2: 0 8px 28px rgba(26,46,74,.10);

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand accent strip across the very top — navy → purple → gold */
.accent-strip {
  height: 4px;
  background: linear-gradient(90deg,
    var(--navy) 0%,
    var(--purple) 50%,
    var(--gold) 100%);
}

a { color: var(--purple); }

button {
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
}

.hidden { display: none !important; }
.muted  { color: var(--muted); }
.center { text-align: center; }
.small  { font-size: 14px; }
.error  { color: var(--error); }

/* ---- Brand header ------------------------------------------------------- */
.brand {
  padding: 28px 24px 8px;
  text-align: center;
}
.brand__logo {
  width: 110px;
  height: auto;
  margin: 0 auto 14px;
  display: block;
}
.brand__headline {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 60;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.brand__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

/* Legacy text wordmark styles still used by other components (footer
   pillars, dialog headers if any) — keep these. */
.brand__wordmark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__o       { color: var(--navy); }
.brand__divider { color: var(--gold); margin: 0 8px; }
.brand__service { color: var(--purple); }

/* ---- Layout ------------------------------------------------------------- */
.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 20px 60px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  margin-bottom: 16px;
  position: relative;
}

.card h2 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.back {
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
  margin-bottom: 12px;
  display: inline-block;
}
.back:hover { color: var(--navy); }

/* ---- Service choice grid ------------------------------------------------ */
.choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
}

.choice {
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  transition: border-color .15s, transform .1s;
}
.choice:hover  { border-color: var(--purple-soft); }
.choice:active { transform: translateY(1px); }
.choice__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}
.choice__sub {
  font-size: 13px;
  color: var(--muted);
}

/* ---- Form fields -------------------------------------------------------- */
.field { display: block; margin-bottom: 16px; }
.field__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.field__label em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123, 79, 191, .15);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-group {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.field-group legend {
  font-size: 14px;
  font-weight: 500;
  padding: 0 6px;
  color: var(--navy);
}

.radio, .check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}
.radio input, .check input {
  width: 18px; height: 18px;
  accent-color: var(--purple);
}
.check em { font-style: normal; color: var(--muted); font-size: 13px; }

.extras {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px 14px;
}
.extras summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 500;
  color: var(--navy);
}
.extras[open] summary { margin-bottom: 8px; }

/* ---- Buttons ------------------------------------------------------------ */
.primary {
  width: 100%;
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: background .15s, transform .1s;
}
.primary:hover    { background: var(--navy-soft); }
.primary:active   { transform: translateY(1px); }
.primary:disabled { background: #c5c0b4; cursor: not-allowed; }
.primary.small {
  width: auto;
  padding: 10px 16px;
  font-size: 14px;
}

.link {
  color: var(--purple);
  background: transparent;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
}
.link:hover { background: rgba(123,79,191,.08); }

/* ---- Dropzone ----------------------------------------------------------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color .15s, background .15s;
  position: relative;
}
/* Visually hide the file input but keep it tappable.
   We don't use the `hidden` attribute because iOS Safari
   handles label-wrapped hidden inputs unreliably. */
.dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--purple);
  background: rgba(123,79,191,.05);
}
.dropzone__icon {
  width: 44px;
  height: 44px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px;
}
.dropzone__title { font-weight: 600; color: var(--navy); }
.dropzone__sub   { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---- Summary ------------------------------------------------------------ */
.summary {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 18px 0;
}
.summary h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.summary__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.summary__lines li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 15px;
}
.summary__total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
}
.summary__note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.fineprint {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* ---- Confirmation ------------------------------------------------------- */
.card--success { text-align: center; }
.success-mark {
  width: 64px; height: 64px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 12px;
}
.ref-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-md);
  padding: 18px;
  margin: 16px 0;
}
.ref-box__label {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.ref-box__ref {
  font-size: 28px;
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---- Footer (see footer block lower down for full styling) ------------ */

/* ---- Loading overlay ---------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,46,74,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.overlay__content {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--r-md);
  text-align: center;
  min-width: 240px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--purple);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   STAFF DASHBOARD
   ========================================================================= */

body.staff {
  background:
    linear-gradient(180deg,
      rgba(123, 79, 191, 0.04) 0%,
      rgba(201, 147, 90, 0.02) 60%,
      transparent 100%),
    #F6F1E9;
  min-height: 100vh;
}

.staff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:
    linear-gradient(135deg,
      var(--navy) 0%,
      #2a3f63 50%,
      var(--purple) 130%);
  color: #fff;
  padding: 16px 22px;
  position: relative;
  box-shadow: 0 2px 10px rgba(26, 46, 74, 0.15);
}
/* Gold accent stripe under the header */
.staff-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--purple) 0%,
    var(--gold) 50%,
    var(--purple) 100%);
}
.staff-header__brand .brand__o      { color: #fff; }
.staff-header__brand .brand__service{
  color: var(--purple-soft);
  background: linear-gradient(90deg, #c9a8f0, #e8c896);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.staff-header__brand .brand__divider{ color: var(--gold); }
.staff-header__brand { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.staff-header__user {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  opacity: 0.85;
}
.staff-header__user .link { color: var(--purple-soft); }

.staff-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

.login-card {
  max-width: 420px;
  margin: 40px auto;
}

.queue-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.tab {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.tab:hover { border-color: var(--purple-soft); color: var(--navy); }
.tab--active {
  background: linear-gradient(135deg, var(--navy) 0%, #2e4774 100%);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(26,46,74,.20);
}
.badge {
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.tab--active .badge {
  background: var(--gold);
  color: #fff;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
  transition: box-shadow .15s, transform .1s;
}
.job:hover { box-shadow: 0 4px 14px rgba(26,46,74,.10); }

/* Colour-coded left border per status — tells you the state at a glance */
.job--received  { border-left: 4px solid #6b8eb8; }
.job--printing  { border-left: 4px solid var(--purple);
                  background: linear-gradient(90deg, rgba(123,79,191,0.04) 0%, var(--surface) 100%); }
.job--ready     { border-left: 4px solid var(--gold);
                  background: linear-gradient(90deg, rgba(201,147,90,0.06) 0%, var(--surface) 100%); }
.job--completed { border-left: 4px solid #4a8a6f; }
.job--paid      { border-left: 4px solid var(--success);
                  opacity: 0.78; }

.job__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.job__ref {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  margin-right: 10px;
  letter-spacing: -0.01em;
}
.job__status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status--received { background: #E2EBF5; color: #2e4d72; }
.status--printing { background: rgba(123,79,191,.16); color: var(--purple); }
.status--ready    { background: rgba(201,147,90,.22); color: #8c6a3f;
                    box-shadow: 0 0 0 2px rgba(201,147,90,.15); }
.status--completed{ background: #E0EBE6; color: #3d6e58; }
.status--paid     { background: #DCEAE2; color: var(--success); }

.job__time {
  font-size: 13px;
  color: var(--muted);
}
.job__customer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.job__specs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.job__notes {
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 14px;
  margin-bottom: 8px;
}
.job__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.job__price {
  font-weight: 600;
  font-size: 17px;
}
.job__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---- Job dialog --------------------------------------------------------- */
.job-dialog {
  width: 92%;
  max-width: 520px;
  border: none;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.job-dialog::backdrop {
  background: rgba(26,46,74,.55);
}
.dialog-close {
  position: absolute;
  top: 8px; right: 14px;
  font-size: 28px;
  color: var(--muted);
  line-height: 1;
}

/* ---- Toast -------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 10000;
}
.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================================
   FILE ANALYSIS UI (customer side)
   ========================================================================= */

/* "Reading your file..." inline spinner */
.analyzing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}
.spinner--inline {
  width: 18px; height: 18px;
  border: 2.5px solid var(--line);
  border-top-color: var(--purple);
  margin: 0;
}

/* File info layout — replaces the simpler row from before */
/* ---- File info card ----------------------------------------------------
   Aggressive defensive layout: container is always block, head is explicit
   flex row with min-width:0 on the name to allow truncation. Long filenames
   truncate to one line with ellipsis. Hover/tap shows the full name via the
   title attribute we set in JS. ----------------------------------------- */
.file-info {
  display: block !important;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.file-info > * { display: block; }       /* every direct child stacks */
.file-info > .file-info__head { display: flex; }   /* head row exception */

.file-info__head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}
.file-info__name {
  flex: 1 1 0%;
  min-width: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  /* Truncate to 1 line with ellipsis — full name shown via title= tooltip */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.file-info__change {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
}

/* Detection result card — green / amber depending on confidence */
.file-info__detect { margin-bottom: 10px; }

.detect-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #fff;
  border-left: 4px solid var(--line);
}
.detect-card--confirmed { border-left-color: var(--success); }
.detect-card--estimated { border-left-color: var(--gold); }

.detect-card__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.detect-card__sub {
  font-size: 13px;
  color: var(--muted);
}

/* Warnings list */
.file-warnings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.file-warnings:empty { margin-bottom: 0; }

.warn {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.4;
  border-left: 3px solid var(--gold);
}
.warn--error { border-left-color: var(--error); }
.warn__icon {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--gold);
}
.warn--error .warn__icon { color: var(--error); }

/* Manual page fallback */
.manual-pages {
  background: #fff;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.manual-pages .field { margin-bottom: 0; }

/* Mini live price on upload step */
.mini-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.mini-price__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.mini-price__value {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

/* Hard rejection message (wrong file type, too big, etc.) */
.file-error {
  background: #fdecee;
  color: #802631;
  border-left: 4px solid var(--error);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* =========================================================================
   STAFF DASHBOARD additions — page edit + detect badge + adjusted tag
   ========================================================================= */

.detect-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  background: var(--surface-2);
  color: var(--muted);
  letter-spacing: 0.01em;
}
.detect-badge--confirmed { color: var(--success);  background: #E5EBE3; }
.detect-badge--estimated { color: #8c6a3f;          background: rgba(201,147,90,.15); }
.detect-badge--manual    { color: var(--muted);     background: var(--surface-2); }
.detect-badge--adjusted  { color: var(--purple);    background: rgba(123,79,191,.10); }

.adj-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(123,79,191,.12);
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.page-edit {
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-edit .field { margin-bottom: 0; }
.page-edit__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

/* =========================================================================
   HOW IT WORKS — visual timeline on the front page
   ========================================================================= */

.how-it-works {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.how-it-works h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin: 0 0 18px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
/* Purple→gold connecting line behind the numbered circles */
.steps::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--purple) 0%,
    var(--gold) 100%);
  z-index: 0;
  opacity: 0.6;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(123, 79, 191, 0.25);
}
.step__body strong {
  font-size: 15px;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}
.step__body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* =========================================================================
   HELP NOTE — friendly fallback for non-tech-y customers
   ========================================================================= */

.help-note {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.help-note strong {
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}
.help-note a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================================
   EXTRAS — small note inside the stapling section
   ========================================================================= */

.extras__note {
  margin: 6px 0 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.extras__note strong {
  color: var(--navy);
}

/* =========================================================================
   CONFIRM COST — total amount on the success screen
   ========================================================================= */

.confirm-cost {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 14px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.confirm-cost__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.confirm-cost__amount {
  font-size: 30px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.confirm-cost__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* QR code on the confirmation page */
.confirm-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.confirm-qr__code {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(26,46,74,.08);
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-qr__code svg {
  width: 100%;
  height: 100%;
}
.confirm-qr__caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  max-width: 280px;
}

/* Privacy notice on customer confirmation — multi-paragraph version */
.privacy-note {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-left: 3px solid var(--purple);
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}
.privacy-note strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 4px;
}
.privacy-note p {
  margin: 0 0 8px;
}
.privacy-note p:last-child {
  margin-bottom: 0;
}
.privacy-note a {
  color: var(--purple);
  font-weight: 500;
}

/* "Printing happens after payment" reminder — bold and confident */
.payment-note {
  margin: 14px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg,
    rgba(123, 79, 191, 0.08) 0%,
    rgba(123, 79, 191, 0.04) 100%);
  border: 1px solid rgba(123, 79, 191, 0.18);
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  text-align: left;
}
.payment-note strong {
  display: block;
  color: var(--purple);
  font-size: 14px;
  margin-bottom: 4px;
}

/* Minimum-charge callout in price summary — visible but not scary */
.min-charge-note {
  background: rgba(201, 147, 90, 0.10);
  border: 1px solid rgba(201, 147, 90, 0.25);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.min-charge-note strong {
  color: #8c6a3f;
  font-size: 13px;
}
.min-charge-note span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.est-note {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}

/* Mini-price improvements — multi-row layout with min-charge hint */
.mini-price__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-price__min {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.mini-price__min:empty {
  display: none;
}

/* Small "(incl. GST)" labels in the price summary */
.summary__total small,
.mini-price__label small {
  font-weight: 400;
  font-size: 0.78em;
  color: var(--muted);
  margin-left: 4px;
  letter-spacing: 0;
  text-transform: none;
}

/* =========================================================================
   FOOTER — links, divider, ABN/GST line
   ========================================================================= */

.footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 24px 20px 40px;
  max-width: 560px;
  margin: 0 auto;
}
.footer p { margin: 4px 0; }
.footer__divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--purple) 50%,
    transparent 100%);
  opacity: 0.4;
  margin: 0 auto 22px;
  max-width: 220px;
}
.footer__pillars {
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.footer__address {
  font-size: 12.5px;
  margin-bottom: 14px;
}
.footer__links {
  margin: 8px 0 14px;
  font-size: 13px;
  line-height: 1.7;
}
.footer__links a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}
.footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__legal {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.footer .dot {
  color: var(--gold);
  margin: 0 4px;
  font-weight: 600;
}

/* =========================================================================
   RESPONSIVE — desktop & tablet adjustments
   Mobile design above (≤640px) is the baseline; everything below is
   progressive enhancement for wider screens. Layout stays the same shape
   (single column, single card stack) but with more breathing room.
   ========================================================================= */

/* ---- Tablet (640px+) --------------------------------------------------- */
@media (min-width: 640px) {
  .container {
    max-width: 620px;
    padding: 28px 28px 80px;
  }

  .card {
    padding: 36px 36px;
    border-radius: 18px;
  }
  .card h2 {
    font-size: 24px;
  }

  /* Brand header: more breathing room */
  .brand {
    padding: 40px 24px 12px;
  }
  .brand__logo {
    width: 130px;
  }
  .brand__headline {
    font-size: 40px;
  }
  .brand__tagline {
    font-size: 16px;
  }

  /* Document specs — group size/colour/sides into a 2-column grid where
     it makes sense. Each .field-group gets a touch more breathing room. */
  .field-group + .field-group {
    margin-top: 22px;
  }

  /* How it works: still vertical but slightly larger */
  .step__num {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .steps::before {
    left: 18px;
  }
  .step__body strong { font-size: 16px; }
  .step__body p     { font-size: 14px; }
}

/* ---- Desktop (1024px+) -------------------------------------------------- */
@media (min-width: 1024px) {
  .container {
    max-width: 720px;
    padding: 40px 40px 100px;
  }

  .card {
    padding: 44px 48px;
  }

  /* Bigger, more confident brand header */
  .brand {
    padding: 56px 24px 16px;
  }
  .brand__logo {
    width: 150px;
    margin-bottom: 18px;
  }
  .brand__headline {
    font-size: 46px;
    margin-bottom: 10px;
  }
  .brand__tagline {
    font-size: 17px;
  }

  /* "How it works" goes horizontal on desktop — three columns side-by-side
     instead of stacked. The connecting line shifts from vertical to subtle.
     This makes the desktop view feel more spread out and less mobile. */
  .steps {
    flex-direction: row;
    gap: 24px;
  }
  .steps::before {
    /* Replace vertical line with a horizontal one */
    left: 16px;
    right: 16px;
    top: 17px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--purple) 0%, var(--gold) 100%);
  }
  .step {
    flex-direction: column;
    flex: 1 1 0;
    gap: 10px;
    text-align: left;
  }
  .step__body strong { font-size: 15px; }
  .step__body p { font-size: 13px; }

  /* Footer — give links a touch more separation */
  .footer { padding: 32px 16px 48px; }

  /* Choice grid (Document/Photo) gets more padding on desktop */
  .choice {
    padding: 28px 22px;
  }
}

/* ---- Larger desktops (1280px+) — slightly bigger but cap there --------- */
@media (min-width: 1280px) {
  .container {
    max-width: 760px;
  }
  .brand__headline {
    font-size: 52px;
  }
}

/* ---- Hover states only on devices that support hover (skip touch) ----- */
@media (hover: hover) and (pointer: fine) {
  .choice:hover {
    border-color: var(--purple);
    transform: translateY(-1px);
    transition: transform 150ms ease, border-color 150ms ease;
  }
  .primary:hover {
    transform: translateY(-1px);
    transition: transform 120ms ease, box-shadow 120ms ease;
  }
}

/* =========================================================================
   RELEASE STATION — focused single-job view shown when team scans a QR
   code (URL has ?ref=NNN). Big buttons, file preview link, action-oriented.
   Optimized for in-store iPad/phone use at the counter.
   ========================================================================= */
.release-pane {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}
.release-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(26, 46, 74, 0.08);
}

.release-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.release-status--received  { background: #e6eef9; color: #2c4a73; }
.release-status--printing  { background: rgba(123,79,191,0.15); color: var(--purple); }
.release-status--ready     { background: rgba(201,147,90,0.18); color: #8c6a3f; }
.release-status--completed { background: rgba(64,160,99,0.15); color: var(--success); }
.release-status--paid      { background: rgba(64,160,99,0.25); color: #246b3a; }

.release-order {
  font-family: var(--font-display, Georgia, serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.release-customer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: 10px;
}
.release-customer strong { font-size: 18px; color: var(--navy); }
.release-customer span   { font-size: 14px; }

.release-section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.release-section:last-of-type { border-bottom: none; }
.release-section__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.release-filename {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.release-file-link {
  display: inline-block;
  color: var(--purple);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.release-file-link:hover { text-decoration: underline; }

.release-specs {
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}

.release-notes {
  background: rgba(201,147,90,0.10);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  border-bottom: none !important;
}
.release-notes .release-section__label { margin-bottom: 4px; }

.release-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
  padding: 18px 20px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
}
.release-amount__label {
  flex: 1 1 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.7;
  text-transform: uppercase;
}
.release-amount__value {
  font-family: var(--font-display, Georgia, serif);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.release-amount__gst { font-size: 12px; opacity: 0.65; }

.release-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.release-action {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.release-action:active { transform: translateY(1px); }
.release-action--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 3px 10px rgba(123, 79, 191, 0.25);
}
.release-action--success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 3px 10px rgba(64, 160, 99, 0.25);
}

.release-secondary {
  text-align: center;
  margin-top: 14px;
}
.release-bottom {
  text-align: center;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .release-card { padding: 36px 36px; }
  .release-order { font-size: 72px; }
  .release-amount__value { font-size: 56px; }
}

/* =========================================================================
   FILE LIST — multi-file upload UI on step 3
   ========================================================================= */
.file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-list__item {
  display: block;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  border: 1px solid var(--line);
}
.file-list__item--error {
  background: rgba(220, 65, 65, 0.06);
  border-color: rgba(220, 65, 65, 0.3);
}

.file-list__row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.file-list__main {
  flex: 1 1 0%;
  min-width: 0;
  display: block;
}
.file-list__name {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.file-list__meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.file-list__error {
  font-size: 13px;
  color: #b22b2b;
  margin-top: 4px;
}
.file-list__delete {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.05);
  color: var(--muted);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 100ms;
}
.file-list__delete:hover { background: rgba(220,65,65,0.15); color: #b22b2b; }

.file-list__warnings {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-list__controls {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.file-list__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 80px;
  min-width: 80px;
}
.file-list__field > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.file-list__field > input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  width: 100%;
}

.add-more {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
}

/* =========================================================================
   PREFILL HINT
   ========================================================================= */
.prefill-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: -8px 0 16px;
  padding: 0 2px;
}
.prefill-hint .link {
  font-size: 12.5px;
  text-decoration: underline;
}

/* =========================================================================
   STATUS LINK on confirmation page
   ========================================================================= */
.status-link {
  display: block;
  text-align: center;
  margin: 16px 0 8px;
  padding: 12px 16px;
  background: rgba(123, 79, 191, 0.08);
  border: 1px solid rgba(123, 79, 191, 0.2);
  border-radius: 10px;
  color: var(--purple);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 100ms;
}
.status-link:hover { background: rgba(123, 79, 191, 0.14); }

/* =========================================================================
   STATS PANE
   ========================================================================= */
.stats-pane {
  padding: 12px 0 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.stat-card--hero {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  grid-column: span 2;
}
@media (max-width: 480px) { .stat-card--hero { grid-column: span 1; } }
.stat-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
}
.stat-card__value {
  font-family: var(--font-display, Georgia, serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.stat-card--hero .stat-card__value { font-size: 38px; }
.stat-card__value small {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
}
.stat-card__value--mix {
  display: flex;
  flex-direction: column;
  font-size: 16px;
}
.stat-card__sub {
  font-size: 12.5px;
  opacity: 0.7;
  margin-top: 4px;
}

/* Multi-file rendering in staff dashboard / release station */
.job-files, .release-files {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.job-files li, .release-files li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.job-files li:last-child, .release-files li:last-child { border-bottom: none; }

.release-files__name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.release-files__num { color: var(--muted); margin-right: 4px; font-weight: 600; }
.release-files__meta { font-size: 13px; margin-top: 2px; }
.release-files__link {
  font-size: 13px;
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 4px;
}
.release-files__link:hover { text-decoration: underline; }
.release-files__deleted { font-size: 13px; color: var(--muted); font-style: italic; }

/* =========================================================================
   ORDER STATUS PAGE (/order.html)
   ========================================================================= */
.status-banner {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border-left: 4px solid var(--purple);
}
.status-banner strong { display: block; font-size: 16px; color: var(--navy); }
.status-banner p { margin: 6px 0 0; }

.status-banner--received  { border-color: #4a7bb8; }
.status-banner--printing  { border-color: var(--purple); background: rgba(123,79,191,0.06); }
.status-banner--ready     { border-color: var(--gold); background: rgba(201,147,90,0.10); }
.status-banner--completed { border-color: var(--success); background: rgba(64,160,99,0.08); }
.status-banner--paid      { border-color: var(--success); }
.status-banner--expired   { border-color: #b22b2b; background: rgba(220,65,65,0.05); }

.status-steps {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.status-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 14px;
}
.status-step__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.status-step--done    { color: var(--success); }
.status-step--done    .status-step__icon { background: var(--success); color: #fff; }
.status-step--current { color: var(--navy); font-weight: 600; }
.status-step--current .status-step__icon { background: var(--purple); color: #fff; }
.status-step--pending { color: var(--muted); }
.status-step--pending .status-step__icon { background: rgba(0,0,0,0.06); color: var(--muted); }

.order-detail {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}
.order-detail__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  padding: 4px 0;
}
.order-detail__row + .order-detail__row {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 4px;
}

.order-files-toggle {
  margin: 16px 0;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 14px;
}
.order-files-toggle summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-files-toggle summary::before { content: '▸'; font-size: 11px; color: var(--muted); }
.order-files-toggle[open] summary::before { content: '▾'; }
.order-files {
  list-style: none;
  padding: 8px 0 0 18px;
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link {
  text-align: center;
  margin: 18px 0;
  font-size: 13px;
}

/* Multi-file Edit Pages — per-file row inside the edit form */
.page-edit__row {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.page-edit__row:last-of-type { border-bottom: none; }
.page-edit__label {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.page-edit__row input {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  background: #fff;
}

/* =========================================================================
   PULL UP TAB — focused order-lookup pane
   ========================================================================= */
.pull-pane {
  padding: 24px 0 32px;
  display: flex;
  justify-content: center;
}
.pull-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(26, 46, 74, 0.06);
}
.pull-card__icon {
  font-size: 36px;
  margin-bottom: 8px;
  filter: saturate(1.1);
}
.pull-card__title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}
.pull-card__sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 22px;
}

.pull-card__input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}
.pull-card__hash {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
}
.pull-card__input {
  width: 180px;
  padding: 12px 16px;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  letter-spacing: -0.01em;
  /* Hide spinner arrows */
  -moz-appearance: textfield;
}
.pull-card__input::-webkit-outer-spin-button,
.pull-card__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pull-card__input::placeholder {
  color: var(--muted);
  opacity: 0.4;
  font-weight: 500;
}
.pull-card__input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123, 79, 191, 0.15);
}
.pull-card__btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 100ms, transform 100ms;
  box-shadow: 0 3px 10px rgba(123, 79, 191, 0.20);
}
.pull-card__btn:hover  { background: #6a3fb0; }
.pull-card__btn:active { transform: translateY(1px); }

.pull-card__error {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: rgba(220, 65, 65, 0.08);
  border: 1px solid rgba(220, 65, 65, 0.25);
  color: #b22b2b;
  border-radius: 8px;
  font-size: 13px;
}

.pull-recent {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.pull-recent__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.pull-recent__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pull-recent__item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  cursor: pointer;
  transition: background 100ms, transform 100ms;
}
.pull-recent__item:hover  { background: rgba(123, 79, 191, 0.08); }
.pull-recent__item:active { transform: scale(0.99); }

.pull-recent__ref {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.pull-recent__name {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pull-recent__status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pull-recent__status--received  { background: #e6eef9; color: #2c4a73; }
.pull-recent__status--printing  { background: rgba(123,79,191,0.15); color: var(--purple); }
.pull-recent__status--ready     { background: rgba(201,147,90,0.18); color: #8c6a3f; }
.pull-recent__status--completed { background: rgba(64,160,99,0.15); color: var(--success); }

.pull-recent__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.pull-recent__empty {
  text-align: center;
  color: var(--muted);
  padding: 16px 0;
  font-size: 14px;
}

@media (max-width: 480px) {
  .pull-recent__item { grid-template-columns: auto 1fr auto; }
  .pull-recent__price { display: none; }
}

/* Push utility tabs (Stats, future ones) to the far right with a separator */
.queue-tabs {
  /* Allow flex children to push apart */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.queue-tabs .tab--utility {
  margin-left: auto;
  position: relative;
}
.queue-tabs .tab--utility::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--line);
}
@media (max-width: 480px) {
  /* On tiny screens, drop the separator and let it wrap naturally */
  .queue-tabs .tab--utility { margin-left: 0; }
  .queue-tabs .tab--utility::before { display: none; }
}
