/* palette: Forest #283F34, Ivory #F6F3EC, Sage #A5B29C, Petal #E4D2CC, Ink #181C19 */
:root {
  --forest: #283F34;
  --ivory: #F6F3EC;
  --sage: #A5B29C;
  --petal: #E4D2CC;
  --ink: #181C19;
  --card: #FFFFFF;
  --line: rgba(24, 28, 25, 0.12);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.5;
}
h1, h2, .wordmark { font-family: 'Cormorant Garamond', Georgia, serif; }

.site-head {
  background: var(--forest);
  color: var(--ivory);
  padding: 15px 20px;
  text-align: center;
}
.wordmark {
  font-size: 40px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1;
}
.wordmark.small { font-size: 26px; }
.tagline {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 30px; font-weight: 600; margin: 8px 0 4px; }
.lede { margin: 0 0 20px; color: rgba(24,28,25,0.75); font-size: 15px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin: 0 0 16px;
}
.card h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  flex: none;
}
.hint { font-size: 13px; color: rgba(24,28,25,0.65); margin: -4px 0 12px; }

.field { display: block; margin: 0 0 14px; }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.label em { font-weight: 400; color: rgba(24,28,25,0.55); font-style: normal; }
input[type=text], input[type=tel], input[type=date], input[type=number], input[type=password], textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* no iOS zoom */
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ivory);
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; }

.vgroup { margin: 0 0 14px; }
.vgroup-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.vrow {
  display: flex;
  align-items: center;
  min-height: 48px;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(24,28,25,0.08);
}
.vrow:last-child { border-bottom: 0; }
.vname { font-size: 15px; }
.vname.has-qty { font-weight: 600; }
.qty-ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.qty-btn {
  font-family: 'Inter', sans-serif;
  width: 34px; height: 34px;
  min-width: 34px; max-width: 34px;
  min-height: 34px; max-height: 34px;
  flex: 0 0 34px;
  align-self: center;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--forest);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.qty-btn:active { background: var(--sage); }
.qty-input {
  width: 84px;
  text-align: center;
  padding: 8px 6px !important;
}
/* hide number spinners */
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input { -moz-appearance: textfield; appearance: textfield; }

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--petal);
  color: var(--ink);
  font-size: 15px;
}
.total-bar strong { font-size: 18px; }

.btn-primary {
  width: 100%;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ivory);
  background: var(--forest);
  border: 0;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  margin-top: 4px;
}
.btn-primary:disabled { opacity: 0.6; }
.btn-ghost {
  font: inherit;
  font-size: 15px;
  background: none;
  border: 1px solid var(--forest);
  color: var(--forest);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  margin-top: 12px;
}
.fine { font-size: 13px; color: rgba(24,28,25,0.6); text-align: center; margin: 10px 0 0; }
.err {
  background: #F8E3DE;
  border: 1px solid #D9A99E;
  color: #6E2B1E;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 0 0 12px;
}

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.done { text-align: center; padding: 28px 20px; }
.done-badge {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ivory);
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.done h2 { justify-content: center; }
.ref-line { font-size: 16px; }
.ref-line strong { letter-spacing: 0.06em; }
.status-link { text-align: center; font-size: 14px; margin-top: 20px; }
.status-link a, .fine a { color: var(--forest); }

.site-foot {
  text-align: center;
  padding: 24px;
  color: var(--forest);
}

/* status + admin shared bits */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 3px 10px;
}
.badge-pending { background: #E4D2CC; color: #181C19; }
.badge-confirmed { background: #A5B29C; color: #181C19; }
.badge-rejected { background: #F6F3EC; color: rgba(24,28,25,0.55); border: 1px solid rgba(24,28,25,0.12); }
table.lines { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
table.lines td { padding: 4px 0; border-bottom: 1px dashed rgba(24,28,25,0.1); }
table.lines td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 8px; margin-top: 10px; }
.row-actions button { flex: 1; font: inherit; font-size: 14px; font-weight: 600; border-radius: 9px; padding: 9px; cursor: pointer; }
.btn-confirm { background: var(--forest); color: var(--ivory); border: 0; }
.btn-reject { background: #FFFFFF; border: 1px solid #A5B29C; color: #181C19; }
.tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.tabs button {
  font: inherit; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink);
}
.tabs button.on { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.muted { color: rgba(24,28,25,0.6); font-size: 13px; }
.order-meta { font-size: 14px; margin: 2px 0; }
.wordmark.plain { font-style: normal; font-size: 26px; font-weight: 500; letter-spacing: 0.02em; }
#link-url { margin: 12px 0 4px; font-size: 13px; }
#link-result .row-actions a { flex: 1; }

@media (min-width: 768px) {
  .wrap { max-width: 720px; padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 720px) {
  .vgroup { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .vgroup-title { grid-column: 1 / -1; }
}

#login-form h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 21px; margin: 0 0 8px; }

.wrap.short { min-height: calc(100vh - 220px); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .wrap.short { padding-top: 64px; justify-content: flex-start; } }
.wrap { padding-top: 32px; }
input[type=date] {
  display: block;
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
}

/* ===== Portal look (matches the Blume ops portal) ===== */
:root { --btn: #7B7E7B; --btn-dark: #5E615E; --ink-2: #3d453f; --ink-3: #5f685f; --hair: color-mix(in srgb, #A5B29C 70%, #F6F3EC); }
html, body { background: var(--ivory); }
body, button, input, textarea, select { font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif; font-weight: 400; letter-spacing: -0.011em; font-synthesis: none; -webkit-text-size-adjust: 100%; }
strong, b, .label, .vname.has-qty, .total-bar strong, .step, .btn-primary, .btn-ghost, .qty-btn, .badge, .vgroup-title { font-weight: 400 !important; }
h1, h2, .card h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; color: var(--ink); }
.card h2 { font-size: 22px; gap: 12px; }
.wrap { max-width: 560px; padding: 28px 16px 56px; }
.card { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 18px 16px; margin: 0 0 14px; box-shadow: none; }
.step { width: 28px; height: 28px; border-radius: 8px; background: var(--btn-dark); color: #fff; font-size: 14px; }
.hint { font-size: 14px; color: var(--ink-3); margin: -4px 0 14px; }
.label { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
input[type=text], input[type=tel], input[type=date], input[type=number], textarea { font-size: 16px; font-weight: 400; padding: 12px 14px; min-height: 48px; border: 1px solid var(--hair); border-radius: 12px; background: var(--ivory); color: var(--ink); }
input:focus, textarea:focus { outline: 1px solid var(--btn-dark); outline-offset: 0; border-color: var(--btn-dark); }
.vgroup-title { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--hair); padding-bottom: 6px; margin-bottom: 6px; }
.vrow { min-height: 52px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, #A5B29C 35%, #F6F3EC); }
.vname { font-size: 15px; color: var(--ink); }
.vname.has-qty { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.qty-ctl { gap: 8px; }
.qty-btn { width: 44px; height: 44px; min-width: 44px; max-width: 44px; min-height: 44px; max-height: 44px; flex: 0 0 44px; border-radius: 12px; border: 0; background: var(--btn); color: #fff; font-size: 20px; }
.qty-btn:active { background: var(--btn-dark); }
.qty-input { width: 80px; text-align: center; padding: 10px 6px !important; }
.total-bar { background: var(--ivory); border: 1px solid var(--hair); border-radius: 12px; color: var(--ink); font-size: 15px; }
.total-bar strong { font-size: 18px; color: var(--ink); }
.btn-primary { background: var(--btn); color: #fff; border-radius: 12px; font-size: 16px; min-height: 48px; padding: 13px 16px; margin-top: 6px; }
.btn-primary:active { background: var(--btn-dark); }
.btn-ghost { background: var(--btn); color: #fff; border: 0; border-radius: 12px; font-size: 14px; min-height: 44px; padding: 10px 18px; }
.done-badge { background: var(--btn-dark); border-radius: 14px; }
.status-link a, .fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.fine, .muted { color: var(--ink-3); }
.err { background: #fff; border: 1px solid var(--hair); color: var(--ink); border-radius: 12px; }
.badge { border-radius: 8px; }
.badge-confirmed { background: var(--btn); color: #fff; }
.site-head { background: var(--ivory); color: var(--ink); }
.site-foot { color: var(--ink-3); }
