/* Little Egypt Farmstand (formerly EggQueue) — Design A "warm heritage":
   cream + burnt orange + amber, with deep farm green and soil neutrals.
   Forced light. External stylesheet only. */
:root {
  color-scheme: light;
  --bg: #FFFBF2;
  --card: #FFFFFF;
  --ink: #33261A;
  --dim: #7A6A58;
  --line: #F0E2CC;
  --brand: #EA580C;
  --brand-dark: #C2410C;
  --yolk: #F59E0B;
  --yolk-soft: #FEF3C7;
  --cream: #FFF7E8;
  --green: #2E5339;
  --green-dark: #22402C;
  --green-soft: #E7EFE7;
  --soil: #5B4632;
  --soil-soft: #EFE6D8;
  --ok: #15803D;
  --bad: #B3261E;
  --radius: 16px;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
.hidden { display: none !important; }
.small { font-size: .85rem; color: var(--dim); }
.center { text-align: center; }
h2 { font-size: 1.3rem; margin: 4px 0 14px; }
h3 { margin: 0 0 8px; font-size: 1.05rem; }
p { line-height: 1.55; }

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  border-bottom: 2px solid var(--yolk);
  color: #FFF7E8;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark img { border-radius: 11px; display: block; }
.brand h1 { font-family: var(--font-display); font-size: 1.12rem; margin: 0; line-height: 1.15; color: #FFFBF2; }
.tagline { margin: 0; font-size: .8rem; color: var(--yolk); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.pro-badge { background: var(--yolk); color: #fff; font-weight: 800; font-size: .72rem; padding: 4px 9px; border-radius: 999px; letter-spacing: .05em; }
.demo-badge { background: var(--brand); color: #fff; font-weight: 800; font-size: .72rem; padding: 4px 9px; border-radius: 999px; letter-spacing: .05em; }

main { max-width: 680px; margin: 0 auto; padding: 16px 14px 8px; }
.screen { display: none; }
.screen.active { display: block; }

/* Cards & buttons */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(194, 120, 30, .06);
}
.card.today { border: 2px solid var(--yolk); background: #FFFEF9; }
.card.waiting { opacity: .92; }
.card.paused { opacity: .6; }
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: 11px 18px; border-radius: 12px; text-align: center;
  background: var(--cream); color: var(--ink);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:active { background: var(--green-dark); }
.btn-gold { background: var(--yolk); color: #fff; }
.btn-outline { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-danger { background: #FDECEA; color: var(--bad); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn-block { display: block; width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-row .btn { flex: 1 1 auto; }

/* Queue */
.onhand-card { text-align: center; }
.onhand-num { font-size: 2.6rem; font-weight: 800; color: var(--brand); line-height: 1; }
.onhand-form { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.onhand-form input { width: 110px; text-align: center; font-size: 1.1rem; padding: 9px; border: 1.5px solid var(--line); border-radius: 10px; }
.queue-head { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 8px; }
.queue-head h3 { margin: 0; }
.q-meta { font-size: .85rem; color: var(--dim); }
.q-name { font-size: 1.05rem; font-weight: 700; }
.badge { display: inline-block; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.badge-cadence { background: var(--yolk-soft); color: #92400E; }
.badge-new { background: #DCFCE7; color: var(--ok); }
.badge-skip { background: #F3F4F6; color: var(--dim); }
.owed-line { color: var(--bad); font-weight: 700; font-size: .9rem; }
.ok-line { color: var(--ok); font-weight: 600; font-size: .9rem; }

/* Forms */
.field { margin: 12px 0; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 64px; resize: vertical; }
.inline-form{display:flex;gap:8px;margin-bottom:8px}
.inline-form input{flex:1;padding:12px;font-size:1rem;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-family:inherit;min-width:0}
.inline-form .btn{padding:10px 16px;white-space:nowrap}
.check { display: flex; gap: 9px; align-items: center; margin: 10px 0; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.form-error { color: var(--bad); font-size: .9rem; margin: 8px 0; }

/* Lists / stats */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1.15; }
.stat-lbl { font-size: .8rem; color: var(--dim); font-weight: 600; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.tbl th, table.tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.tbl-wrap { overflow-x: auto; }
.empty { text-align: center; color: var(--dim); padding: 26px 12px; line-height: 1.6; }
.trial-banner { background: var(--yolk-soft); border: 1px solid var(--yolk); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-size: .92rem; }
.sync-error { background: #FDECEA; color: var(--bad); padding: 10px 16px; font-size: .9rem; text-align: center; }
.hero { text-align: left; padding-top: 0; overflow: hidden; }
.hero-photo { display: block; width: calc(100% + 32px); margin: 0 -16px 14px; height: 210px; object-fit: cover; }
.hero-kicker { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--green); }
.hero h2 { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; margin: 0 0 2px; color: var(--soil); }
.hero-sub { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--brand-dark); margin: 0 0 8px; }
.order-banner {
  background: var(--green-soft); border: 1.5px solid var(--green); border-radius: var(--radius);
  padding: 13px 15px; margin-bottom: 16px; font-size: .93rem; line-height: 1.5; color: var(--ink);
}
.order-banner strong { color: var(--green-dark); }
.section-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--soil); margin: 4px 2px 10px; }
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(91, 70, 50, .07); }
.cat-card img { display: block; width: 100%; height: 110px; object-fit: cover; }
.cat-body { padding: 11px 13px 13px; }
.cat-body h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.05rem; color: var(--soil); }
.cat-body p { margin: 0 0 9px; font-size: .88rem; color: var(--dim); line-height: 1.45; }
.chip { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.chip-live { background: var(--green); color: #fff; }
.chip-soon { background: var(--soil-soft); color: var(--soil); border: 1px solid var(--line); }
.seller-card { display: flex; gap: 14px; align-items: flex-start; }
.seller-photo { width: 108px; height: 108px; object-fit: cover; border-radius: 12px; flex: none; }
@media (max-width: 480px) { .seller-card { flex-direction: column; } .seller-photo { width: 100%; height: 150px; } }
.plan-card { border: 2px solid var(--line); }
.plan-card.best { border-color: var(--yolk); }
.plan-price { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details summary { font-weight: 700; cursor: pointer; }
.guide-img { font-size: 1.6rem; }

/* Carton label */
.carton-label {
  border: 2.5px dashed var(--brand); border-radius: 14px; padding: 18px 14px;
  text-align: center; background: #fff; max-width: 420px; margin: 12px auto;
}
.carton-label .cl-farm { font-size: 1.35rem; font-weight: 800; }
.carton-label .cl-big { font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; margin-top: 4px; }
.carton-label .cl-sub { font-size: .9rem; color: var(--dim); margin-top: 4px; }

/* Bottom nav */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  flex: 1; border: none; background: transparent; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 2px 7px; font-size: .68rem; font-weight: 600; color: var(--dim);
}
.nav-btn .nav-ico { display: flex; align-items: center; justify-content: center; height: 24px; }
.nav-btn .nav-ico svg { width: 23px; height: 23px; display: block; }
.nav-btn.active { color: var(--green); }

/* Modal + toast */
#modal-root:empty { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(51, 38, 26, .48);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-sheet {
  background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
}
.modal-sheet h3 { font-size: 1.2rem; }
#toast-root { position: fixed; left: 0; right: 0; bottom: 92px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: .92rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.25); max-width: 92vw; text-align: center; }
.acct-tabs { display: flex; gap: 8px; margin-bottom: 6px; }
.acct-tab { flex: 1; padding: 9px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.acct-tab.active { background: var(--yolk-soft); border-color: var(--yolk); }

.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { display: block; position: absolute; inset: 0; padding: 24px; }
  .bottom-nav, .app-header { display: none; }
}
@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .modal-backdrop { align-items: center; }
  .modal-sheet { border-radius: 20px; }
}

/* ============ LANDING — Example A "Little Egypt Farmstand" (lifted verbatim from the approved eggqueue-redesign-examples artifact) ============ */
/* ================= EXAMPLE A — Little Egypt Farmstand ================= */
.a { background: #FFFBF2; color: #2E241A; font-family: "Karla", system-ui, sans-serif; }
.a-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 2px solid #EAD9C2; background: #FFFBF2; }
.a-logo { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.a-logo .mark { width: 42px; height: 42px; border-radius: 50%; background: #EA580C; display: flex; align-items: center; justify-content: center; flex: none; }
.a-logo .name { font-family: "Bitter", Georgia, serif; font-weight: 800; font-size: 21px; line-height: 1.1; color: #3A2A18; }
.a-logo .name em { font-style: italic; font-weight: 500; color: #B34A12; }
.a-logo .tag { font-size: 12px; color: #8A6B4A; font-weight: 600; }
.a-nav { display: flex; gap: 20px; font-weight: 700; font-size: 14.5px; color: #5C4630; }
.a-nav span { cursor: pointer; }
.a-basket { display: inline-flex; align-items: center; gap: 7px; background: #2F5233; color: #FFF7E8; border: none; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
@media (max-width: 700px) { .a-nav { display: none; } }
.a-banner { background: #2F5233; color: #F4EBD8; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 11px 22px; font-size: 14.5px; font-weight: 600; }
.a-banner .item { display: inline-flex; align-items: center; gap: 7px; }
.a-banner .open { margin-left: auto; background: #F59E0B; color: #33230A; font-weight: 800; font-size: 12.5px; border-radius: 999px; padding: 4px 11px; display: inline-flex; align-items: center; gap: 6px; }
.a-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: #2F5233; }
@media (max-width: 700px) { .a-banner .open { margin-left: 0; } }
.a-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; padding: 30px 22px 8px; align-items: center; }
@media (max-width: 760px) { .a-hero { grid-template-columns: 1fr; } }
.a-hero h3 { font-family: "Bitter", Georgia, serif; font-size: clamp(27px, 4vw, 38px); line-height: 1.14; margin: 0 0 12px; font-weight: 800; color: #33241A; }
.a-hero h3 em { color: #C2520F; }
.a-hero p { font-size: 16px; line-height: 1.6; color: #5C4630; margin: 0 0 18px; max-width: 46ch; }
.a-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.a-btn { border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; border: 2px solid #EA580C; }
.a-btn.solid { background: #EA580C; color: #FFF8EC; }
.a-btn.ghost { background: transparent; color: #B34A12; }
.a-hero .photo { position: relative; }
.a-hero .photo img { width: 100%; height: 300px; object-fit: cover; border-radius: 18px; }
.a-hero .pickup-card { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 251, 242, .96); border: 1.5px solid #EAD9C2; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; max-width: 270px; }
.a-hero .pickup-card strong { font-family: "Bitter", Georgia, serif; display: block; font-size: 14.5px; }
.a-cats { display: flex; flex-wrap: wrap; gap: 9px; padding: 20px 22px 4px; }
.a-chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #DEC9A8; background: #FFFDF7; color: #5C4630; border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 14px; cursor: pointer; }
.a-chip.active { background: #EA580C; border-color: #EA580C; color: #FFF8EC; }
.a-chip svg { flex: none; }
.a-section { padding: 18px 22px 6px; }
.a-section h4 { font-family: "Bitter", Georgia, serif; font-size: 22px; margin: 0 0 4px; color: #33241A; }
.a-section .sub { color: #8A6B4A; font-size: 14.5px; margin: 0 0 16px; font-weight: 600; }
.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .a-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .a-grid { grid-template-columns: 1fr; } }
.a-card { background: #FFFDF7; border: 1.5px solid #EAD9C2; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.a-card .ph { position: relative; }
.a-card .ph img { width: 100%; height: 168px; object-fit: cover; }
.a-card .flag { position: absolute; top: 10px; left: 10px; background: #F59E0B; color: #33230A; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 9px; }
.a-card .body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.a-card h5 { font-family: "Bitter", Georgia, serif; font-size: 16.5px; margin: 0; line-height: 1.3; color: #33241A; }
.a-card .seller { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: #8A6B4A; font-weight: 600; }
.a-card .pricerow { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; }
.a-card .price { font-size: 19px; font-weight: 800; color: #B34A12; }
.a-card .unit { font-size: 13.5px; color: #8A6B4A; font-weight: 600; }
.a-card .reserve { margin-top: auto; background: #EA580C; color: #FFF8EC; border: none; border-radius: 9px; padding: 10px; font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.a-sellers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 8px; }
@media (max-width: 900px) { .a-sellers { grid-template-columns: 1fr; } }
.a-seller { background: #FFFDF7; border: 1.5px solid #EAD9C2; border-radius: 14px; overflow: hidden; }
.a-seller img { width: 100%; height: 150px; object-fit: cover; }
.a-seller .body { padding: 13px 15px 15px; }
.a-seller h5 { font-family: "Bitter", Georgia, serif; font-size: 17px; margin: 0 0 3px; color: #33241A; }
.a-seller .loc { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: #2F5233; margin-bottom: 7px; }
.a-seller p { font-size: 14px; line-height: 1.55; color: #5C4630; margin: 0 0 9px; }
.a-seller .pick { font-size: 13px; font-weight: 800; color: #B34A12; display: inline-flex; align-items: center; gap: 6px; }
.a-foot { margin: 22px; background: #6B4A2F; color: #F7EBD7; border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.a-foot strong { font-family: "Bitter", Georgia, serif; font-size: 16.5px; }
.a-foot span { font-size: 14.5px; line-height: 1.55; }
.a-card[hidden] { display: none; }
.a-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .a-steps { grid-template-columns: 1fr; } }
.a-step { background: #FFFDF7; border: 1.5px solid #EAD9C2; border-radius: 14px; padding: 16px 17px 17px; }
.a-step .num { width: 34px; height: 34px; border-radius: 50%; background: #2F5233; color: #FFF7E8; font-family: "Bitter", Georgia, serif; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.a-step h5 { font-family: "Bitter", Georgia, serif; font-size: 16.5px; margin: 0 0 5px; color: #33241A; }
.a-step p { font-size: 14.5px; line-height: 1.55; color: #5C4630; margin: 0; }
.a-paynote { margin: 16px 0 4px; background: #EDF3E8; border: 1.5px solid #C2D4B8; border-radius: 12px; padding: 13px 16px; font-size: 14.5px; line-height: 1.6; color: #2E241A; }
.a-paynote strong { color: #2F5233; }
.a-sellband { margin: 22px; background: #2F5233; color: #F4EBD8; border-radius: 14px; padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.a-sellband strong { font-family: "Bitter", Georgia, serif; font-size: 19px; display: block; margin-bottom: 5px; }
.a-sellband p { font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 62ch; }
.a-sellband .a-btn { margin-left: auto; flex: none; }
@media (max-width: 700px) { .a-sellband .a-btn { margin-left: 0; } }
.a-faq details { border-top: 1.5px solid #EAD9C2; padding: 13px 2px; }
.a-faq details:last-child { border-bottom: 1.5px solid #EAD9C2; }
.a-faq summary { font-weight: 800; font-size: 15.5px; color: #33241A; cursor: pointer; }
.a-faq details p { font-size: 14.5px; line-height: 1.6; color: #5C4630; margin: 8px 0 3px; max-width: 68ch; }
.a-footer { margin-top: 26px; border-top: 2px solid #EAD9C2; padding: 22px; display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: flex-start; }
.a-footer .fbrand { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.a-footer .fname { font-family: "Bitter", Georgia, serif; font-weight: 800; font-size: 18px; color: #3A2A18; }
.a-footer .fname em { font-style: italic; font-weight: 500; color: #B34A12; }
.a-footer .ftag { font-size: 12.5px; color: #8A6B4A; font-weight: 600; }
.a-footer .fnav { display: flex; flex-wrap: wrap; gap: 8px 17px; font-weight: 700; font-size: 14px; padding-top: 4px; }
.a-footer .fnav a { color: #5C4630; text-decoration: none; }
.a-footer .fineprint { width: 100%; margin: 6px 0 0; font-size: 13px; color: #8A6B4A; font-weight: 600; }

/* ---- Landing integration with the app shell (not part of the mockup) ---- */
#landing { max-width: 1180px; margin: 0 auto; }
#landing img { display: block; }
#landing .a-section { scroll-margin-top: 10px; }
.a-nav a { color: inherit; text-decoration: none; cursor: pointer; }
.a-btn { display: inline-block; text-decoration: none; text-align: center; }
body.landing-open { padding-bottom: 0; }
body.landing-open .app-header,
body.landing-open .bottom-nav,
body.landing-open .screen,
body.landing-open #sync-error { display: none !important; }
body.landing-open main { max-width: none; margin: 0; padding: 0; }

/* ---- Marketplace Phase 1: API-rendered market + seller area ---- */
.a-loading { color: #8A6B4A; font-weight: 600; font-size: 14.5px; }
.a-empty-card { grid-column: 1 / -1; background: #FFFDF7; border: 1.5px dashed #DEC9A8; border-radius: 14px; padding: 22px; }
.a-empty-card h5 { font-family: "Bitter", Georgia, serif; font-size: 18px; margin: 0 0 6px; color: #33241A; }
.a-empty-card p { font-size: 14.5px; line-height: 1.6; color: #5C4630; margin: 0 0 12px; max-width: 68ch; }
.a-card .flag.soldout { background: #6B4A2F; color: #F7EBD7; }
.a-sellers .a-empty-card { grid-column: 1 / -1; }
.fs-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fs-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; }
.fs-listing { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fs-listing img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.fs-listing-main { flex: 1; min-width: 180px; }
.fs-listing-btns { display: flex; gap: 6px; }
.fs-soldout { color: #B34A12; }
.field label.fs-check { display: inline-flex; }

/* ---- Marketplace Phase 2: window chip, basket, checkout, orders, pick list ---- */
.a-banner .open.closed { background: #EFE6D8; color: #5B4632; }
.a-banner .open.closed .dot { background: #B3261E; }
.a-card .reserve:disabled { background: #EFE6D8; color: #8A6B4A; cursor: default; }
.a-card .avail { font-size: 12.5px; color: #8A6B4A; font-weight: 700; }
.fs-warn { color: #B3261E; }
.cart-group { margin: 12px 0; }
.cart-group h4 { margin: 0 0 6px; font-size: .98rem; color: var(--soil); }
.cart-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart-row-main { flex: 1; min-width: 0; }
.qty-stepper { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
.qty-stepper button { width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--cream); font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); }
.qty-stepper span { min-width: 24px; text-align: center; font-weight: 800; }
.cart-row-total { font-weight: 800; min-width: 58px; text-align: right; }
.cart-remove { border: none; background: transparent; color: var(--bad); font: inherit; font-weight: 800; cursor: pointer; padding: 6px; }
.cart-sub { text-align: right; font-size: .9rem; color: var(--dim); padding: 6px 0 2px; }
.cart-total { text-align: right; font-size: 1.08rem; font-weight: 800; margin: 12px 0 4px; color: var(--soil); }
.cart-summary { margin: 10px 0; }
.cart-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.cart-sum-row.total { border-bottom: none; font-weight: 800; font-size: 1.02rem; }
.fs-paynote { background: var(--green-soft); border: 1.5px solid #C2D4B8; border-radius: 12px; padding: 11px 13px; font-size: .92rem; line-height: 1.55; margin: 12px 0; }
.fs-lookup { margin-top: 18px; border-top: 1.5px solid var(--line); padding-top: 12px; }
.fs-lookup h4 { margin: 0 0 8px; font-size: .98rem; }
.confirm-head { text-align: center; font-size: 2.2rem; margin-bottom: 2px; }
.confirm-code { text-align: center; font-size: 1.7rem; font-weight: 800; letter-spacing: .09em; color: var(--green-dark); background: var(--cream); border: 1.5px dashed var(--yolk); border-radius: 12px; padding: 10px; margin: 6px 0 10px; }
.order-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px; margin: 10px 0; }
.order-card-head { margin-bottom: 4px; }
.pick-order { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.pick-head { margin-bottom: 4px; }
.pick-item { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; font-weight: 600; cursor: pointer; }
.pick-item input { width: 20px; height: 20px; accent-color: var(--green); flex: none; margin-top: 1px; }

/* ================= Little Egypt Market rebuild =================
   Seasonal themes: real restyles via variable shifts + decorative
   treatments (CSS/SVG only — no layout changes, no readability loss).
   The active theme key lands on <html data-theme="..."> before paint
   (boot reads the cached value, then /api/config confirms). Seller
   storefront colorways live on .accent-* scopes and are NOT touched
   by the global theme. */
html[data-theme="fall_harvest"] { --bg:#FBF3E4; --cream:#FBEED3; --line:#EBD9B4; --brand:#C2570B; --brand-dark:#9A430A; --yolk:#D97706; --yolk-soft:#FDE9C8; --green:#5B4A1F; --green-dark:#423512; --green-soft:#F1E8CE; }
html[data-theme="winter"] { --bg:#F4F7F7; --cream:#EDF3F2; --line:#D5E0DC; --brand:#9A3B26; --brand-dark:#7C2E1E; --yolk:#B98A2F; --yolk-soft:#F1E7CB; --green:#274435; --green-dark:#1B3126; --green-soft:#E2EDE6; }
html[data-theme="christmas"] { --bg:#FBF6EC; --cream:#F8EFDA; --line:#E8D9B8; --brand:#A61E22; --brand-dark:#84151A; --yolk:#C99700; --yolk-soft:#F7E9BE; --green:#1E5631; --green-dark:#14401F; --green-soft:#E3EFE0; }
html[data-theme="spring"] { --bg:#FAFBF0; --cream:#F3F6DC; --line:#DFE7BC; --brand:#D96C06; --brand-dark:#B55704; --yolk:#E3A008; --yolk-soft:#FBF0C0; --green:#3E6B34; --green-dark:#2C4F24; --green-soft:#EAF2DC; }
html[data-theme="fair_season"] { --bg:#FFFBF0; --cream:#FFF3D6; --line:#F0DCAC; --brand:#B91C1C; --brand-dark:#8F1515; --yolk:#1D4ED8; --yolk-soft:#DBE7FD; --green:#2E5339; --green-dark:#22402C; --green-soft:#E7EFE7; }
/* Decorative strips: holidays dress the frame, never the content. */
html[data-theme="fair_season"] .a-banner { border-top: 10px solid transparent; border-image: repeating-linear-gradient(90deg,#B91C1C 0 26px,#FFFBF0 26px 52px,#1D4ED8 52px 78px) 10; }
html[data-theme="christmas"] .a-banner { box-shadow: inset 0 -6px 0 0 rgba(166,30,34,.25); }
html[data-theme="christmas"] .a-hero h3::after { content:" ❦"; color: var(--brand); }
html[data-theme="fall_harvest"] .a-hero h3::after { content:" 🍂"; }
html[data-theme="spring"] .a-hero h3::after { content:" 🌱"; }
html[data-theme="winter"] .a-hero h3::after { content:" ❄"; color: var(--brand); }
html[data-theme="fair_season"] .a-hero h3::after { content:" 🎪"; }
/* Seasonal photo strip on the landing (real local photos, IMAGE-SOURCES.md) */
.theme-strip { display:none; }
html[data-theme="spring"] .theme-strip.spring,
html[data-theme="winter"] .theme-strip.winter,
html[data-theme="christmas"] .theme-strip.winter { display:block; }
.theme-strip img { width:100%; height:110px; object-fit:cover; border-radius:12px; display:block; }

/* Seller/event colorways (curated accents) */
.accent-heritage { --brand:#EA580C; --green:#2E5339; }
.accent-harvest { --brand:#B45309; --green:#713F12; }
.accent-meadow { --brand:#4D7C0F; --green:#365314; }
.accent-clay { --brand:#B3402A; --green:#7C2D12; }
.accent-sky { --brand:#0369A1; --green:#0C4A6E; }

/* --- market cards: kinds, galleries, ratings, pay badges --- */
.a-card .kindflag { position:absolute; top:10px; right:10px; background:var(--green); color:#fff; font-size:.68rem; font-weight:800; letter-spacing:.04em; padding:3px 8px; border-radius:999px; }
.a-card .kindflag.bulk { background:var(--soil); } .a-card .kindflag.service { background:var(--brand-dark); }
.stars { color:var(--yolk); font-size:.85rem; letter-spacing:.05em; }
.stars .n { color:var(--dim); font-size:.78rem; letter-spacing:0; }
.paybadges { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.paybadges span { font-size:.66rem; font-weight:700; border:1px solid var(--line); border-radius:999px; padding:2px 7px; background:var(--cream); color:var(--soil); }
.gallery { display:flex; gap:6px; overflow-x:auto; padding:4px 0; }
.gallery img { width:74px; height:74px; object-fit:cover; border-radius:10px; flex:0 0 auto; }
.gallery .g-main { width:100%; height:210px; }
.fs-guide { background:var(--yolk-soft); border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:.85rem; margin:8px 0; white-space:pre-wrap; }
.pickup-line { display:block; font-size:.82rem; font-weight:600; color:var(--green); margin:2px 0; }
.pickup-block { background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:8px 10px; margin:8px 0; }
.pickup-block .fs-check { display:flex; margin-top:6px; }
.fs-spot-alert { border-color:#d97706; }
.fs-warn { color:var(--bad); } .fs-soldout { color:var(--bad); }

/* --- events --- */
.a-events { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.a-event { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; text-align:left; width:100%; padding:0; cursor:pointer; font:inherit; }
.a-event img { width:100%; height:130px; object-fit:cover; display:block; }
.a-event .body { padding:12px 14px; } .a-event h5 { margin:0 0 4px; font-size:1rem; }
.a-event .when { color:var(--brand-dark); font-weight:700; font-size:.85rem; }
.a-event .feat { background:var(--yolk); color:#fff; font-size:.66rem; font-weight:800; padding:2px 7px; border-radius:999px; margin-left:6px; }
.ev-cover { width:100%; height:220px; object-fit:cover; border-radius:14px; }
.ev-presenting { background:linear-gradient(135deg,var(--green-dark),var(--green)); color:#fff; border-radius:12px; padding:12px 16px; margin:12px 0; }
.ev-presenting .lbl { font-size:.7rem; letter-spacing:.12em; font-weight:800; opacity:.85; }
.ev-presenting .who { font-family:var(--font-display); font-size:1.3rem; }
.sponsor-row { display:flex; flex-wrap:wrap; gap:10px; align-items:stretch; margin:10px 0; }
.sponsor-chip { display:flex; align-items:center; gap:8px; border:1px solid var(--line); background:var(--cream); border-radius:12px; padding:8px 12px; }
.sponsor-chip img { width:34px; height:34px; object-fit:contain; border-radius:8px; }
.sponsor-chip.big { font-size:1.05rem; padding:12px 16px; border-width:2px; }
.founding { background:var(--yolk); color:#fff; font-size:.64rem; font-weight:800; padding:2px 6px; border-radius:999px; letter-spacing:.05em; }
.transparency { background:var(--green-soft); border-radius:10px; padding:10px 12px; font-size:.9rem; }
.a-sponsors { display:flex; flex-wrap:wrap; gap:10px; }

/* --- storefront --- */
.store-cover { width:100%; height:200px; object-fit:cover; border-radius:14px; }
.store-head { display:flex; gap:14px; align-items:center; margin:12px 0; }
.store-head img { width:76px; height:76px; border-radius:50%; object-fit:cover; border:3px solid var(--line); }
.store-sec { margin:18px 0; } .store-sec h4 { margin:0 0 8px; }

/* --- chat --- */
.chat-list-row { display:flex; justify-content:space-between; gap:10px; width:100%; text-align:left; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin:6px 0; font:inherit; cursor:pointer; }
.unread-dot { background:var(--brand); color:#fff; font-size:.68rem; font-weight:800; min-width:20px; height:20px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; padding:0 5px; }
.chat-body { max-height:46vh; overflow-y:auto; padding:6px 2px; }
.chat-msg { max-width:82%; padding:8px 11px; border-radius:14px; margin:6px 0; font-size:.92rem; }
.chat-msg.mine { background:var(--green); color:#fff; margin-left:auto; border-bottom-right-radius:4px; }
.chat-msg.theirs { background:var(--cream); border:1px solid var(--line); border-bottom-left-radius:4px; }
.chat-msg.hidden-msg { opacity:.55; font-style:italic; }
.chat-when { font-size:.68rem; opacity:.7; margin-top:2px; }
.chat-compose { display:flex; gap:8px; margin-top:8px; } .chat-compose input { flex:1; }
.share-panel { background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:10px 0; font-size:.88rem; }

/* --- payments / invoices --- */
.pay-row { display:flex; justify-content:space-between; gap:10px; border:1px solid var(--line); border-radius:10px; padding:9px 11px; margin:6px 0; font-size:.9rem; align-items:center; }
.pay-row .st { font-weight:800; font-size:.78rem; }
.pay-row .st.ok { color:var(--ok); } .pay-row .st.bad { color:var(--bad); } .pay-row .st.wait { color:var(--dim); }
.inv-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.inv-logo { max-height:56px; max-width:150px; object-fit:contain; }
.inv-table { width:100%; border-collapse:collapse; font-size:.92rem; }
.inv-table td, .inv-table th { padding:6px 4px; border-bottom:1px solid var(--line); text-align:left; }
.inv-table .r { text-align:right; }
.inv-compact { font-size:.85rem; } .inv-compact .inv-table td { padding:3px 4px; }
.invoice-paper { background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; }
@media print { body * { visibility:hidden; } .invoice-paper, .invoice-paper * { visibility:visible; } .invoice-paper { position:absolute; inset:0; border:none; } }

/* --- misc rebuild components --- */
.badge-dot { position:absolute; top:2px; right:8px; background:var(--brand); width:10px; height:10px; border-radius:50%; }
.nav-btn { position:relative; }
.method-picker { display:grid; gap:6px; margin:6px 0; }
.method-picker label { display:flex; gap:8px; align-items:center; border:1px solid var(--line); border-radius:10px; padding:8px 10px; font-size:.9rem; }
.seg { display:flex; gap:6px; flex-wrap:wrap; } .seg button { border:1px solid var(--line); background:var(--card); border-radius:999px; padding:6px 12px; font:inherit; font-size:.85rem; cursor:pointer; }
.seg button.active { background:var(--green); color:#fff; border-color:var(--green); }
.ev-cats { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0; }
.thumb-grid { display:flex; gap:6px; flex-wrap:wrap; } .thumb-grid .th { position:relative; } .thumb-grid img { width:64px; height:64px; object-fit:cover; border-radius:8px; } .thumb-grid button { position:absolute; top:-6px; right:-6px; width:20px; height:20px; border-radius:50%; border:none; background:var(--bad); color:#fff; font-size:.7rem; cursor:pointer; }
.rate-stars button { background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--line); padding:0 2px; } .rate-stars button.on { color:var(--yolk); }

/* Blocker-fix pass (A1–A8): closeout checklist, issues, final weight, Stripe */
.closeout { margin-top:10px; border-top:1px dashed #cbbfa5; padding-top:8px; }
.closeout h5 { margin:0 0 6px; font-size:.95rem; }
.closeout-step { padding:3px 0; font-size:.92rem; }
.issue-panel { margin-top:8px; background:#fdf3e3; border:1px solid #e3cfa3; border-radius:10px; padding:10px 12px; }
.issue-photo { width:74px; height:74px; object-fit:cover; border-radius:8px; border:1px solid #d8c9a4; }
.fw-box { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:6px 0 6px 28px; }
.fs-stripe-element { background:#fff; border:1px solid #d8c9a4; border-radius:8px; padding:10px 12px; margin:8px 0; }
.fs-warn { color:#a33b1f; font-weight:600; }
