/* Bloom & Thistle — self-contained sales demo styles. */
:root,
[data-theme="standard"] {
  --bg: #f4efe7;
  --bg-alt: #ebe4d8;
  --paper: #fffdf9;
  --ink: #2a3228;
  --ink-soft: #5c6356;
  --muted: #7a8174;
  --accent: #5f7356;
  --accent-deep: #3c4a36;
  --accent-soft: #dce6d4;
  --blush: #c9a396;
  --line: #ddd4c6;
  --line-strong: #c9bead;
  --banner-bg: #3c4a36;
  --banner-ink: #f4efe7;
  --hero-a: #e6eee0;
  --hero-b: #f3e6dc;
  --gold: #b39a70;
  --danger: #8b3a3a;
  --ok: #3d6b4f;
  --shadow: 0 10px 30px rgba(42, 50, 40, 0.08);
  --motif: #5f7356;
}

[data-theme="valentines"] {
  --bg: #f7ecec;
  --bg-alt: #f0dddf;
  --paper: #fff8f7;
  --ink: #3a2428;
  --ink-soft: #6a4a50;
  --muted: #8a6a70;
  --accent: #9b3a48;
  --accent-deep: #6d2430;
  --accent-soft: #f3d4d8;
  --blush: #e4b7b8;
  --line: #e5cfcf;
  --line-strong: #d4b4b8;
  --banner-bg: #6d2430;
  --banner-ink: #f7ecec;
  --hero-a: #f6dfe3;
  --hero-b: #f8ece4;
  --gold: #c4a07a;
  --motif: #9b3a48;
}

[data-theme="mothers"] {
  --bg: #f5efe8;
  --bg-alt: #efe3d8;
  --paper: #fffaf5;
  --ink: #3a2e32;
  --ink-soft: #6a5a60;
  --muted: #8a7a80;
  --accent: #a56b86;
  --accent-deep: #6e4458;
  --accent-soft: #f0dce6;
  --blush: #e8b896;
  --line: #e4d4c8;
  --line-strong: #d4c0b4;
  --banner-bg: #6e4458;
  --banner-ink: #f5efe8;
  --hero-a: #f3e0ea;
  --hero-b: #f8e6d4;
  --gold: #c4a07a;
  --motif: #a56b86;
}

[data-theme="easter"] {
  --bg: #f3f1e6;
  --bg-alt: #e8ebd6;
  --paper: #fffcf4;
  --ink: #2f3628;
  --ink-soft: #5a6250;
  --muted: #7a8270;
  --accent: #7a9a62;
  --accent-deep: #4e6a40;
  --accent-soft: #e4edd4;
  --blush: #f3d56b;
  --line: #d8dcc4;
  --line-strong: #c4c8a8;
  --banner-bg: #4e6a40;
  --banner-ink: #f3f1e6;
  --hero-a: #f7efc8;
  --hero-b: #e6f0d8;
  --gold: #c4a07a;
  --motif: #d4b84a;
}

[data-theme="halloween"] {
  --bg: #f3ebe3;
  --bg-alt: #e8d8c8;
  --paper: #fbf6f0;
  --ink: #2c211c;
  --ink-soft: #5c4a40;
  --muted: #7c6a60;
  --accent: #c56a2a;
  --accent-deep: #4a2030;
  --accent-soft: #f0d8c0;
  --blush: #d9843b;
  --line: #d8c4b0;
  --line-strong: #c4a890;
  --banner-bg: #2c211c;
  --banner-ink: #f3ebe3;
  --hero-a: #ecc9a0;
  --hero-b: #d8b8c4;
  --gold: #c4a07a;
  --motif: #c56a2a;
}

[data-theme="christmas"] {
  --bg: #efe8de;
  --bg-alt: #e2d8cc;
  --paper: #fbf7f0;
  --ink: #1f2a22;
  --ink-soft: #4a5a4c;
  --muted: #6a7a6c;
  --accent: #3f5c42;
  --accent-deep: #7a2e3a;
  --accent-soft: #d8e0d4;
  --blush: #7a2e3a;
  --line: #d0c4b4;
  --line-strong: #b8a890;
  --banner-bg: #1f2a22;
  --banner-ink: #efe8de;
  --hero-a: #d4ddd4;
  --hero-b: #ead8d4;
  --gold: #c4a07a;
  --motif: #7a2e3a;
}

[data-theme="weddings"] {
  --bg: #f4f0ea;
  --bg-alt: #e8e2d8;
  --paper: #fffcf8;
  --ink: #2e2a26;
  --ink-soft: #5c564e;
  --muted: #7c766e;
  --accent: #8a7a64;
  --accent-deep: #5a4e40;
  --accent-soft: #ece6da;
  --blush: #e4d4c8;
  --line: #ddd6cc;
  --line-strong: #c8c0b4;
  --banner-bg: #5a4e40;
  --banner-ink: #f4f0ea;
  --hero-a: #efe8dc;
  --hero-b: #f5ece6;
  --gold: #c4a07a;
  --motif: #8a7a64;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100%;
}

body { min-height: 100vh; }

img, svg { max-width: 100%; display: block; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: var(--accent-deep); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, .serif {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.55em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.example-tag,
.sim-tag {
  display: inline-block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 0.15em 0.6em;
  vertical-align: middle;
}

.demo-banner {
  background: #2a3228;
  color: #f4efe7;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.55rem 1rem;
  letter-spacing: 0.01em;
}
.demo-banner strong { font-weight: 650; }

.seasonal-bar {
  background: var(--banner-bg);
  color: var(--banner-ink);
  padding: 0.7rem 1.2rem;
}
.seasonal-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.seasonal-bar p { margin: 0; font-size: 0.92rem; }
.theme-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.theme-switcher button {
  background: transparent;
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--banner-ink) 40%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.theme-switcher button:hover,
.theme-switcher button[aria-pressed="true"] {
  background: var(--banner-ink);
  color: var(--banner-bg);
  border-color: var(--banner-ink);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.logo-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.logo-text span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  align-items: center;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent-deep);
}
.nav a.nav-admin {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
}
.nav a.nav-admin[aria-current="page"],
.nav a.nav-admin:hover {
  background: var(--accent-deep);
  color: var(--paper);
  border-color: var(--accent-deep);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.6rem 1.2rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-copy .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent-deep);
  margin-bottom: 0.7rem;
}
.same-day-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 1.1rem 0 1.3rem;
  font-size: 0.92rem;
}
.hero-art {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; height: auto; max-height: 380px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent-deep);
  color: var(--paper);
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.2;
}
.btn:hover { filter: brightness(1.08); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 2.4rem 0 1rem;
}
.section-head p { color: var(--ink-soft); margin: 0; max-width: 36rem; }

.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 1rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.product-card { display: flex; flex-direction: column; gap: 0.7rem; padding: 0; overflow: hidden; }
.product-art {
  height: 160px;
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}
.product-art svg { height: 130px; width: auto; }
.product-body { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.product-body .price {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.15rem;
}
.muted { color: var(--ink-soft); }
.tiny { font-size: 0.8rem; color: var(--muted); }
.price-note { font-size: 0.75rem; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  margin-top: 1rem;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h3 { font-size: 1rem; }
.site-footer a { text-decoration: none; }
.legal {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.form-grid { display: grid; gap: 0.8rem; }
.form-row { display: grid; gap: 0.3rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  width: 100%;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

/* Designer */
.designer {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: start;
}
.designer-preview-wrap {
  position: sticky;
  top: 5.5rem;
}
.preview-stage {
  background: linear-gradient(180deg, var(--hero-a), var(--hero-b) 55%, var(--paper));
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.preview-stage svg { width: 100%; height: auto; max-height: 460px; }
.preview-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; font-size: 0.9rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.choice {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  min-width: 6.5rem;
  text-align: left;
}
.choice small { display: block; color: var(--muted); font-size: 0.75rem; }
.choice[aria-pressed="true"],
.choice.is-on {
  border-color: var(--accent-deep);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-deep);
}
.palette-dots { display: flex; gap: 4px; margin-top: 4px; }
.palette-dots i {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block; border: 1px solid rgba(0,0,0,0.1);
}

.flower-list { display: grid; gap: 0.45rem; }
.flower-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
}
.flower-row .swatch {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--line);
}
.flower-row .qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.flower-row .qty button {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  cursor: pointer;
}
.flower-row .qty input {
  width: 3rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.25rem;
}
.stems-hint { font-size: 0.75rem; color: var(--muted); }

.price-box, .owner-sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
}
.price-box .big {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 2rem;
}
.totals { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.totals th, .totals td { text-align: left; padding: 0.35rem 0.25rem; border-bottom: 1px solid var(--line); }
.totals td:last-child, .totals th:last-child { text-align: right; }
.totals .emphasis td { font-weight: 650; border-bottom: none; padding-top: 0.6rem; }

/* Admin */
.admin-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.admin-tabs button {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.admin-tabs button[aria-pressed="true"] {
  background: var(--accent-deep);
  color: var(--paper);
  border-color: var(--accent-deep);
}
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  background: var(--accent-soft);
}
.status.confirmed { background: #dce8dc; color: var(--ok); }
.status.new { background: #f3e6c8; color: #6a4e16; }

.order-detail { display: grid; gap: 1rem; }
.order-detail .grid-2 { align-items: start; }

/* Receptionist */
.recv {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}
.chat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-head {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: var(--bg-alt);
}
.chat-log {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow-y: auto;
  max-height: 420px;
}
.bubble {
  max-width: 85%;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  font-size: 0.95rem;
}
.bubble.bot {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.bubble.user {
  background: var(--accent-deep);
  color: var(--paper);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.bubble .who { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; }
.chip {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.chip:hover { background: var(--accent-soft); }
.chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.chat-input input { flex: 1; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.55rem 0.9rem; }

.call-meta { font-size: 0.9rem; }
.call-meta dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.3rem 0.6rem; margin: 0; }
.call-meta dt { color: var(--muted); }

/* Pricing */
.price-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tier { text-align: left; }
.tier .figure {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.45rem;
  margin: 0.3rem 0 0.6rem;
}

.toast {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--accent-deep);
  color: var(--paper);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 80;
  max-width: 22rem;
}

.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.3rem 0; }

.empty { color: var(--muted); padding: 1rem 0; font-style: italic; }

.back-link { font-size: 0.9rem; margin-bottom: 0.8rem; display: inline-block; }

@media (max-width: 900px) {
  .hero, .designer, .recv, .grid-4, .grid-3, .footer-inner, .price-tiers, .form-split, .order-detail .grid-2 {
    grid-template-columns: 1fr;
  }
  .designer-preview-wrap { position: static; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav.is-open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media print {
  .demo-banner, .seasonal-bar, .site-header, .site-footer, .btn, .theme-switcher, .menu-toggle { display: none !important; }
}

/* Accounts, tracking, dashboard, map, stock, photo reorder */
.nav a.nav-account {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
}
.nav a.nav-account[aria-current="page"],
.nav a.nav-account:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.timeline li {
  position: relative;
  flex: 1 1 6rem;
  min-width: 6rem;
  padding: 0 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.timeline li span {
  display: block;
  padding-top: 0.7rem;
}
.timeline li::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  position: relative;
  z-index: 1;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 0;
  top: 5px;
  height: 2px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--accent-deep); }
.timeline li.is-done::before { background: var(--accent); border-color: var(--accent-deep); }
.timeline li.is-done::after { background: var(--accent); }
.timeline li.is-current { font-weight: 650; color: var(--ink); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}
.kpi .figure {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.8rem;
  margin: 0.2rem 0 0;
}
.chart { width: 100%; height: auto; }
.chart-bar { fill: var(--accent); }
.chart-label { font-size: 7px; fill: var(--muted); font-family: "Segoe UI", sans-serif; }
.donut-wrap { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; }
.legend { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.legend li { display: flex; align-items: center; gap: 0.45rem; margin: 0.25rem 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 7.5rem 1fr 2.5rem; gap: 0.5rem; align-items: center; margin: 0.4rem 0; font-size: 0.9rem; }
.bars .bar { background: var(--bg-alt); border-radius: 999px; height: 10px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.alert-list { margin: 0; padding-left: 1.1rem; }

.map-card { padding: 0.6rem; }
.map { width: 100%; height: auto; background: #e7eee4; border-radius: 12px; }
[data-theme="valentines"] .map { background: #f3e4e6; }
[data-theme="christmas"] .map { background: #dce4dc; }
[data-theme="halloween"] .map { background: #efe0d0; }
.map-bg { fill: color-mix(in srgb, var(--hero-a) 80%, #d5ddd0); }
.map-label { font-size: 3.2px; fill: #7a8174; font-family: "Segoe UI", sans-serif; }
.map-river { stroke: #a8c4c8; stroke-width: 1.4; }
.route-line { stroke: var(--accent-deep); stroke-width: 0.7; stroke-dasharray: 1.2 0.8; fill: none; }
.shop-pin circle { fill: var(--accent-deep); stroke: #fff; stroke-width: 0.6; }
.shop-pin text, .stop-pin .pin-label { font-size: 3px; fill: var(--ink); font-family: "Segoe UI", sans-serif; }
.stop-pin circle { fill: var(--paper); stroke: var(--accent-deep); stroke-width: 0.7; }
.stop-pin text:not(.pin-label) { font-size: 3.4px; font-weight: 700; fill: var(--accent-deep); font-family: "Segoe UI", sans-serif; }

tr.is-low td { background: #f7efd6; }
tr.is-short td { background: #f6e4e0; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.photo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.7rem 0.9rem;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.photo-card.is-on { box-shadow: inset 0 0 0 2px var(--accent-deep); }
.photo-card strong { display: block; margin-top: 0.5rem; font-size: 0.95rem; }
.polaroid {
  display: block;
  background: #f6f0e6;
  padding: 0.5rem 0.5rem 1rem;
  transform: rotate(-1.2deg);
  border: 1px solid #e0d6c6;
}
.photo-card:nth-child(even) .polaroid { transform: rotate(1.1deg); }
.analyse-log { padding-left: 1.1rem; }
.analyse-log li { color: var(--muted); margin: 0.3rem 0; }
.analyse-log li.is-on { color: var(--ink); }

.status-flow { flex-wrap: wrap; }
.chip.is-on, .status-flow .chip.is-on {
  background: var(--accent-deep);
  color: var(--paper);
  border-color: var(--accent-deep);
}

.status.making { background: #e4dff0; color: #44366a; }
.status.ready { background: #dce8dc; color: var(--ok); }
.status.out { background: #dce6f2; color: #2a4460; }
.status.delivered, .status.collected { background: #dce8dc; color: var(--ok); }

.chat.is-call .chat-head { background: #2a3228; color: #f4efe7; }
.chat.is-call .bubble.bot { background: #eef2ea; }

@media (max-width: 900px) {
  .kpi-grid, .photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .kpi-grid, .photo-grid { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 1fr; }
}

.logo-text strong { white-space: nowrap; }
.nav {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.nav-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}
.nav-tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  flex: 0 0 auto;
}
.site-header { z-index: 40; }
.preview-stage { min-height: 360px; }
.preview-stage svg { max-height: 380px; }
.map { aspect-ratio: 100 / 64; height: auto; }
#owner-sheet { scroll-margin-top: 6.5rem; }
.route-line { stroke-width: 1.1; stroke-dasharray: 1.6 1; }
.shop-pin text, .stop-pin .pin-label { font-size: 3.2px; }
.stop-pin text:not(.pin-label) { font-size: 3.6px; }
@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .nav-primary, .nav-tools { flex-wrap: wrap; justify-content: flex-start; }
}

/* Real photographs */
.hero-art { overflow: hidden; border-radius: 18px; min-height: 320px; align-self: stretch; }
.hero-photo, .product-photo, .polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-art .hero-photo {
  height: 100%;
  min-height: 360px;
  max-height: 460px;
  object-position: center 40%;
  border-radius: 16px;
}
.product-art {
  height: 200px;
  padding: 0;
  background: #ece6dc;
  overflow: hidden;
}
.product-art .product-photo { width: 100%; height: 200px; object-fit: cover; }
.polaroid img { height: 180px; object-fit: cover; }

/* Tidy dome arrangement made from photo cutouts */
.preview-stage {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.preview-stage .arrangement,
.product-art .arrangement,
.card .arrangement {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  margin: 0 auto;
}
.arrangement-vessel {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(40, 30, 20, 0.22));
}
.arrangement-vessel.is-vase { width: 30%; bottom: 3%; }
.arrangement-vessel.is-wrap { width: 54%; bottom: 1%; }
.arrangement-vessel.is-box { width: 72%; bottom: 1%; }
.arrangement-head {
  position: absolute;
  height: auto;
  transform: translate(-50%, -55%) rotate(var(--rot, 0deg));
  transform-origin: 50% 55%;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(40, 30, 20, 0.28));
}
.arrangement-head.kind-foliage { z-index: 3; opacity: 0.96; }
.arrangement-empty {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 30%;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}
.lead-price { font-size: 1.05rem; max-width: 46rem; }
table.compare td, table.compare th { vertical-align: top; }
table.compare td:first-child { width: 22%; }

@media (max-width: 900px) {
  .hero-art .hero-photo { min-height: 240px; max-height: 320px; }
}
