﻿/* ============================================================
   Tvoja proslava — dark metallic + champagne-gold design system
   THE single source of truth for public site, admin, auth pages,
   offline page and the datepicker skin.

   RULE (contrast-verified): text on any FILLED GOLD surface is
   always --gold-ink (dark), never white (9.15:1 vs 1.9:1).
   ============================================================ */

/* 1 ─ tokens ------------------------------------------------- */
:root {
  color-scheme: dark;

  /* graphite ramp (page → raised) */
  --bg:        #0f1114;
  --bg-deep:   #0c0e11;
  --surface:   #161a20;
  --surface-2: #1c212a;
  --field:     #12151a;

  /* lines */
  --line:        #2b313c;
  --line-strong: #3a4250;
  --line-gold:   rgba(217, 180, 91, .35);

  /* ink */
  --ink:       #ece9e2;
  --muted:     #a8a396;
  --ink-faint: #6b6f78;

  /* champagne gold */
  --gold:        #d9b45b;
  --gold-bright: #e6c675;
  --gold-deep:   #b3903f;
  --gold-ink:    #1a1608;
  --gold-soft:   rgba(217, 180, 91, .14);
  --gold-faint:  rgba(217, 180, 91, .07);

  /* metallic effects */
  --gold-grad:    linear-gradient(135deg, #e6c675, #d9b45b 45%, #b3903f);
  --sheen:        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 42%);
  --metal-border: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 55%, rgba(217,180,91,.12));

  /* status */
  --ok:        #5dd39e;  --ok-soft:   rgba(93, 211, 158, .12);
  --err:       #f2727d;  --err-soft:  rgba(242, 114, 125, .12);
  --info:      #7fb8e6;  --info-soft: rgba(127, 184, 230, .12);

  --focus-ring: 0 0 0 3px rgba(217, 180, 91, .35);

  --shadow-1:   0 1px 2px rgba(0, 0, 0, .45);
  --shadow-2:   0 6px 18px rgba(0, 0, 0, .45);
  --shadow-pop: 0 10px 30px rgba(0, 0, 0, .55);
  --glow-gold:  0 0 0 1px rgba(217, 180, 91, .25), 0 4px 20px rgba(217, 180, 91, .15);

  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 7px; --r: 10px; --r-lg: 14px; --r-pill: 999px;

  /* legacy aliases — inline template styles reference these names */
  --brand:      var(--gold);
  --brand-soft: var(--gold-soft);
}

/* 2 ─ base --------------------------------------------------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
}
::selection { background: var(--gold-soft); color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: var(--gold-bright); }
h1 { font-size: 1.4rem; letter-spacing: -.01em; }

/* 3 ─ chrome (public + admin headers, main, footer) ---------- */
header.site, body.admin > header {
  background: linear-gradient(180deg, #171b22, #12151a);
  border-bottom: 1px solid var(--line);
  position: relative;
}
header.site::after, body.admin > header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
}
.head-inner { max-width: 1020px; margin: 0 auto; padding: .8rem 1rem;
              display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.brand {
  font-weight: 800; font-size: 1.25rem; text-decoration: none;
  color: var(--gold);
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline { color: var(--muted); font-size: .85rem; flex: 1; }
.cartlink { font-size: .9rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.cartlink:hover { color: var(--gold-bright); }
/* segmented language pill — one compact control, never wraps */
.langs { display: inline-flex; flex-shrink: 0; white-space: nowrap;
         border: 1px solid var(--line-strong); border-radius: var(--r-pill);
         overflow: hidden; font-size: .78rem; }
.langs a { color: var(--muted); text-decoration: none; padding: .32rem .6rem;
           line-height: 1; }
.langs a + a { border-left: 1px solid var(--line-strong); }
.langs a:hover { color: var(--gold-bright); background: var(--gold-faint); }
.langs a.active { background: var(--gold-soft); color: var(--gold-bright);
                  font-weight: 700; }
.account-link { flex-shrink: 0; }
@media (max-width: 700px) {
  .account-label { display: none; }  /* just the discreet 👤 on phones */
}
main { max-width: 1020px; margin: 1.4rem auto 3rem; padding: 0 1rem; }
footer.site { background: var(--bg-deep); border-top: 1px solid var(--line); margin-top: 2rem; }
.foot-inner { max-width: 1020px; margin: 0 auto; padding: 1.2rem 1rem;
              display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
              color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) {
  .head-inner { align-items: center; gap: .8rem; }
  header.site .tagline { display: none; }
  header.site .brand { flex: 1; }
}

/* admin header specifics */
body.admin > header { display: flex; align-items: center; gap: 1.25rem; padding: .7rem 1.2rem; }
body.admin > header .brand { font-size: 1rem; }
body.admin > header nav { display: flex; gap: 1rem; align-items: center; flex: 1; flex-wrap: wrap; }
body.admin > header nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
body.admin > header nav a:hover { color: var(--gold-bright); }

/* 4 ─ buttons ------------------------------------------------ */
.btn {
  display: inline-block;
  background: var(--gold-grad);
  color: var(--gold-ink);
  font-weight: 600;
  border: 1px solid var(--gold-deep);
  padding: .55rem 1rem;
  border-radius: var(--r-sm);
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--shadow-1);
}
.btn:hover { filter: brightness(1.06);
             box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--glow-gold); }
.btn:active { transform: translateY(1px); filter: brightness(.97); }
.btn.ghost, .btn.secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: none; font-weight: 500;
}
.btn.ghost:hover, .btn.secondary:hover {
  border-color: var(--gold); color: var(--gold-bright); background: var(--gold-faint);
  filter: none; box-shadow: none;
}
.btn.small { padding: .25rem .6rem; font-size: .8rem; }
.btn.danger, .btn.rec {
  background: #a62a35; color: #ffe9eb; border-color: #8f2430; box-shadow: none;
}

/* 5 ─ cards -------------------------------------------------- */
.card {
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-1);
}
.card.flush { padding: 0; overflow: hidden; }
.item-card {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--metal-border) border-box;
  border-radius: 12px;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .35rem;
  transition: box-shadow .15s ease, transform .15s ease;
}
.item-card:hover { transform: translateY(-2px); box-shadow: var(--glow-gold); }
.item-card.bundle { border: 1px solid var(--line-gold); background: var(--surface); }
.item-emoji { font-size: 1.8rem; }
.item-photo { width: calc(100% + 2rem); margin: -1rem -1rem .3rem; height: 150px;
              object-fit: cover; border-radius: 12px 12px 0 0; display: block;
              border-bottom: 1px solid var(--line); }
.item-name { font-weight: 700; }
.item-name a { color: var(--ink); text-decoration: none; }
.item-name a:hover { color: var(--gold-bright); }
.item-cat { font-size: .78rem; color: var(--muted); }
.item-price { font-weight: 600; color: var(--gold-bright); }
.avail { font-size: .85rem; }
.avail.ok { color: var(--ok); }
.avail.none { color: var(--err); }
.avail.low { color: var(--gold-bright); font-weight: 600; }

/* 6 ─ hero --------------------------------------------------- */
.hero {
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(217,180,91,.13), transparent 55%),
    linear-gradient(160deg, #1b202a, #12151a 70%);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-2);
}
.hero h1 { margin: 0 0 .3rem; font-size: 1.55rem; letter-spacing: -.01em; color: var(--ink); }
.hero p { margin: 0; color: var(--muted); }

/* 7 ─ tables (admin) ----------------------------------------- */
table { width: 100%; border-collapse: collapse; background: var(--surface);
        border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line);
         font-size: .92rem; }
th { background: var(--surface-2); color: var(--muted); font-weight: 600;
     font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
     position: sticky; top: 0; z-index: 1; }
tbody tr:hover td { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* 8 ─ forms -------------------------------------------------- */
label { display: block; margin: .7rem 0 .2rem; font-size: .85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=number], input[type=date],
input[type=password], input[type=file], input[type=tel], select, textarea {
  padding: .45rem .6rem; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); font-size: .95rem;
  background: var(--field); color: var(--ink); font-family: var(--font);
}
input[type=text], input[type=email], input[type=password], input[type=file] {
  width: 100%; max-width: 26rem;
}
::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold); box-shadow: var(--focus-ring); outline: none;
}
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset;
  -webkit-text-fill-color: var(--ink);
}
input.tp-date { cursor: pointer; }
.datebar { display: flex; gap: .8rem; align-items: end; flex-wrap: wrap; margin-bottom: 1.2rem; }
.datebar label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }

/* 9 ─ badges, chips, banners --------------------------------- */
.badge { font-size: .75rem; padding: .1rem .5rem; border-radius: var(--r-pill); }
.badge.on { background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(93,211,158,.3); }
.badge.off { background: rgba(255,255,255,.06); color: var(--muted); }
/* problem states (damaged/missing) — must stand out, not read as "inactive" */
.badge.err { background: var(--err-soft); color: var(--err); border: 1px solid rgba(242,114,125,.3); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.chip { font-size: .85rem; padding: .3rem .8rem; border-radius: var(--r-pill);
        border: 1px solid var(--line-strong); background: var(--surface);
        color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-bright); }
.error { color: var(--err); background: var(--err-soft);
         border: 1px solid rgba(242,114,125,.35);
         padding: .5rem .8rem; border-radius: var(--r-sm); margin-bottom: 1rem; }
.msg, .notice { color: var(--ok); background: var(--ok-soft);
                border: 1px solid rgba(93,211,158,.3);
                padding: .5rem .8rem; border-radius: var(--r-sm); margin-bottom: 1rem; }
.success { color: var(--ok); background: var(--ok-soft);
           border: 1px solid rgba(93,211,158,.3);
           padding: .7rem .9rem; border-radius: var(--r-sm); margin-bottom: 1rem; }
.note { background: var(--gold-soft); color: var(--gold-bright);
        border: 1px solid var(--line-gold);
        border-radius: var(--r-sm); padding: .6rem .9rem; font-size: .9rem; }
.muted { color: var(--muted); }

/* 10 ─ gallery ----------------------------------------------- */
.gallery { margin: .8rem 0 1rem; max-width: 560px; }
.gallery-main { width: 100%; height: 300px; object-fit: cover;
                border-radius: 12px; border: 1px solid var(--line); }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .5rem; overflow-x: auto; }
.gallery-thumbs img { width: 84px; height: 62px; object-fit: cover; border-radius: 8px;
                      border: 1px solid var(--line); cursor: pointer; flex: 0 0 auto; }
.gallery-thumbs img:hover { border-color: var(--gold); }

/* 11 ─ layout helpers / utilities ---------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.co-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 720px) { .co-grid { grid-template-columns: 1fr; } }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center;
           gap: .8rem; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: .5rem; }
.grow { flex: 1; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.small { font-size: .85rem; }
.xs { font-size: .78rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.w-narrow { max-width: 640px; }
.link-plain { text-decoration: none; }
.price-approx { font-size: .75rem; font-weight: 400; display: block; color: var(--muted); }
.card-h { margin-top: 0; font-size: 1rem; }
form.inline { display: inline; }

/* 12 ─ datepicker skin (consumed by static/datepicker.js) ---- */
.tp-cal { background: var(--surface-2); border: 1px solid var(--line-strong);
          box-shadow: var(--shadow-pop); }
.tp-cal-nav { background: var(--gold-soft); color: var(--gold-bright); }
.tp-cal-grid button { color: var(--ink); }
.tp-cal-grid button:hover { background: var(--gold-faint); }
.tp-cal-grid button.today { outline: 1px solid var(--line-gold); }
.tp-cal-grid button.sel { background: var(--gold-grad); color: var(--gold-ink); }
.tp-cal-grid button:disabled { color: var(--ink-faint); }

/* 13 ─ PWA install button (admin, post-login) ---------------- */
.pwa-install-btn {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 60;
  background: var(--gold-grad); color: var(--gold-ink);
  border: 0; padding: .7rem 1.1rem; border-radius: var(--r);
  font-size: .95rem; cursor: pointer; box-shadow: var(--shadow-2);
}

/* 14 ─ auth / offline pages ---------------------------------- */
body.centered { display: grid; place-items: center; min-height: 100vh; }
.auth-card { width: min(92vw, 22rem); padding: 2rem; }
.auth-card h1 { font-size: 1.15rem; margin: 0 0 1rem; }
.auth-card input { max-width: none; margin-bottom: 1rem; }
.auth-card .btn { width: 100%; }
.auth-card .btn + form { margin-top: .6rem; }
.transcript { background: var(--surface-2); border: 1px solid var(--line);
              border-radius: var(--r-sm); padding: .5rem .8rem; font-size: .88rem; }
.today-col { background: var(--gold-faint); }

/* 15 ─ admin structure: touch sizing, bottom nav, calendar, cards ------- */
.admin input, .admin select, .admin textarea, .admin .btn {
  min-height: 44px; font-size: 1rem;      /* 16px kills iOS focus-zoom */
}
.admin .btn.small { min-height: 34px; font-size: .8rem; }
.admin main.wide { max-width: 1400px; }
.page-head { display: flex; justify-content: space-between; align-items: center;
             gap: .8rem; flex-wrap: wrap; }

/* bottom navigation (installed-PWA, one-handed) */
.bottom-nav { display: none; }
@media (max-width: 899px) {
  body.admin > header nav { display: none; }
  .admin main { padding-bottom: 5.5rem; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: linear-gradient(180deg, #171b22, #12151a);
    border-top: 1px solid var(--line);
    height: 3.6rem; padding-bottom: env(safe-area-inset-bottom);
    align-items: stretch;
  }
  .bottom-nav a, .bottom-nav summary {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: .1rem; text-decoration: none;
    color: var(--muted); font-size: .68rem; cursor: pointer; list-style: none;
  }
  .bottom-nav a .ic, .bottom-nav summary .ic { font-size: 1.25rem; }
  .bottom-nav a.active { color: var(--gold-bright); }
  .bottom-nav .nav-add {
    flex: 0 0 4.4rem; align-self: center;
  }
  .bottom-nav .nav-add span {
    display: grid; place-items: center; width: 3rem; height: 3rem;
    margin: 0 auto; border-radius: 50%;
    background: var(--gold-grad); color: var(--gold-ink);
    font-size: 1.5rem; font-weight: 700;
    box-shadow: var(--shadow-2); transform: translateY(-0.9rem);
  }
  .more-menu { position: relative; flex: 1; }
  .more-menu summary::-webkit-details-marker { display: none; }
  .more-menu[open] .more-panel {
    position: absolute; bottom: calc(100% + .4rem); right: .4rem;
    background: var(--surface-2); border: 1px solid var(--line-strong);
    border-radius: var(--r); box-shadow: var(--shadow-pop);
    padding: .4rem; min-width: 11rem; display: flex; flex-direction: column;
  }
  .more-panel a, .more-panel button {
    display: block; width: 100%; text-align: left; padding: .7rem .9rem;
    color: var(--ink); text-decoration: none; background: none; border: 0;
    font-size: .95rem; border-radius: var(--r-sm); cursor: pointer;
  }
  .more-panel a:hover, .more-panel button:hover { background: var(--gold-faint); }
  .pwa-install-btn { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
}

/* calendar agenda / board */
/* week navigation: ONE pill (arrows + day strip), fixed at the bottom on
   phones — thumb reach above the bottom-nav bar */
.cal-nav { display: flex; align-items: center; gap: .1rem;
           background: var(--surface-2); border: 1px solid var(--line-strong);
           border-radius: 999px; padding: .25rem .3rem; margin: .3rem 0 .9rem;
           width: fit-content; max-width: 100%; box-shadow: var(--shadow-2); }
.cal-arrow { flex: 0 0 auto; display: grid; place-items: center;
             min-width: 40px; min-height: 44px; border-radius: 50%;
             text-decoration: none; color: var(--gold-bright);
             font-size: 1.45rem; line-height: 1; padding-bottom: 2px; }
.cal-arrow:hover, .cal-arrow:active { background: var(--gold-faint); }
.cal-today-jump { flex: 0 0 auto; align-self: center; text-decoration: none;
                  background: var(--gold-grad); color: var(--gold-ink);
                  font-size: .78rem; font-weight: 700; border-radius: 999px;
                  padding: .5rem .7rem; margin: 0 .15rem; }
.cal-strip { display: flex; gap: .1rem; align-items: stretch; min-width: 0;
             overflow-x: auto; scrollbar-width: none; }
.cal-strip::-webkit-scrollbar { display: none; }
.cal-strip a { display: flex; flex-direction: column; align-items: center;
               justify-content: center; gap: .05rem;
               font-size: .66rem; line-height: 1.1; color: var(--muted);
               text-decoration: none; padding: .2rem .15rem;
               border-radius: 999px; border: 1px solid transparent;
               position: relative; min-width: 2.2rem; min-height: 44px; }
.cal-strip a .dnum { font-size: .82rem; font-weight: 600; }
.cal-strip a.is-today { background: var(--gold-soft); border-color: var(--line-gold);
                        color: var(--gold-bright); }
.cal-strip a.has-events::after { content: ''; position: absolute; left: 50%;
  transform: translateX(-50%); bottom: 3px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold); }
@media (max-width: 899px) {
  .cal-nav { position: fixed; z-index: 65; left: 50%; transform: translateX(-50%);
             bottom: calc(4.8rem + env(safe-area-inset-bottom));
             margin: 0; max-width: calc(100vw - .8rem); }
  body.admin main.wide { padding-bottom: 9.5rem; }
}
@media (min-width: 900px) {
  .cal-nav { position: sticky; top: .5rem; z-index: 40; }
}
.cal-week { display: block; }
.cal-day { background: var(--sheen), var(--surface); border: 1px solid var(--line);
           border-radius: var(--r); padding: .8rem .9rem; margin-bottom: .8rem;
           scroll-margin-top: .8rem; }
.cal-day.is-today { border-color: var(--line-gold); background: var(--gold-faint); }
.cal-day-head { display: flex; justify-content: space-between; align-items: baseline;
                gap: .6rem; font-weight: 700; }
.cal-day.is-empty { padding: .45rem .9rem; }
.cal-day.is-empty .cal-day-head { font-weight: 500; color: var(--muted); }
.cal-counts { font-size: .78rem; color: var(--muted); font-weight: 500; }
.cal-group { font-size: .8rem; color: var(--muted); margin: .7rem 0 .3rem;
             text-transform: uppercase; letter-spacing: .04em; }
/* delivery vs return must read differently at a glance: gold vs blue,
   truck vs return arrow — echoed on the entry's left edge */
.cal-group.out, .c-out { color: var(--gold-bright); }
.cal-group.in, .c-in { color: var(--info); }
.cal-entry { display: flex; align-items: stretch; gap: .5rem;
             border: 1px solid var(--line); border-radius: var(--r-sm);
             background: var(--surface-2); margin-bottom: .45rem; }
.cal-entry.out { border-left: 3px solid var(--gold); }
.cal-entry.in { border-left: 3px solid var(--info); }
.cal-entry-main { flex: 1; display: flex; flex-direction: column; gap: .15rem;
                  padding: .55rem .7rem; text-decoration: none; color: var(--ink);
                  min-width: 0; }
.cal-entry-main:hover { background: var(--gold-faint); border-radius: var(--r-sm); }
.cal-entry-top { display: flex; justify-content: space-between; gap: .5rem;
                 align-items: center; }
.cal-entry-name { font-weight: 600; font-size: .92rem; }
.cal-entry-items { font-size: .8rem; overflow: hidden; display: -webkit-box;
                   -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-entry-call { flex: 0 0 44px; display: grid; place-items: center;
                  min-height: 44px; text-decoration: none; font-size: 1.1rem;
                  border-left: 1px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.cal-entry-call:hover { background: var(--gold-faint); }
@media (min-width: 900px) {
  .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
  .cal-day { margin-bottom: 0; }
  .cal-strip { display: none; }
}

/* delivery day-sheet — screen: dark run-sheet; print: clean ink-saving paper */
.ds-nav { display: flex; align-items: center; gap: .5rem; margin: .3rem 0 1rem;
          flex-wrap: wrap; }
.ds-nav input[type=date] { min-height: 44px; }
.ds-head { display: flex; justify-content: space-between; align-items: baseline;
           gap: .8rem; flex-wrap: wrap; border-bottom: 2px solid var(--line-strong);
           padding-bottom: .4rem; margin-bottom: .8rem; }
.ds-head h2 { margin: 0; font-size: 1.15rem; }
.ds-section { margin-bottom: 1.4rem; }
.ds-stop { display: flex; gap: .7rem; padding: .7rem .2rem;
           border-bottom: 1px solid var(--line); break-inside: avoid; }
.ds-stop.delivery { border-left: 4px solid var(--gold); padding-left: .7rem; }
.ds-stop.return { border-left: 4px solid var(--info); padding-left: .7rem; }
.ds-when { flex: 0 0 auto; text-align: center; min-width: 3.4rem; }
.ds-num { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem;
          border-radius: 50%; background: var(--surface-2); font-size: .8rem;
          font-weight: 700; }
.ds-time { display: block; font-weight: 700; font-size: .95rem; margin-top: .2rem; }
.ds-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.ds-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ds-top strong { font-size: 1.02rem; }
.ds-tel { min-height: 44px; padding: .3rem .7rem; }
.ds-ref { color: var(--muted); text-decoration: none; font-size: .8rem; margin-left: auto; }
.ds-addr { font-size: .95rem; }
.ds-items { font-size: .9rem; color: var(--muted); }
.ds-flags { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .15rem;
            font-size: .9rem; }
.ds-collect { font-weight: 700; color: var(--gold-bright); }
.ds-paid { color: var(--ok); }
.ds-deposit { font-weight: 600; color: var(--info); }
.ds-note { color: var(--muted); }
@media print {
  header, .bottom-nav, .no-print, .ds-ref { display: none !important; }
  :root { color-scheme: light; }
  body, body.admin, main { background: #fff !important; color: #000 !important;
                           padding: 0 !important; max-width: none !important; }
  .ds-head { border-color: #000; }
  .ds-head h2, .ds-top strong, .ds-time, .ds-collect, .ds-deposit,
  .ds-addr, .ds-items, .ds-note, .ds-paid, .cal-group { color: #000 !important; }
  .ds-stop { border-bottom: 1px solid #999; }
  .ds-stop.delivery { border-left: 4px solid #000; }
  .ds-stop.return { border-left: 4px solid #000; border-left-style: dashed; }
  .ds-num { background: #eee !important; color: #000 !important;
            border: 1px solid #000; }
  .ds-tel { border: 1px solid #000 !important; color: #000 !important; }
  .ds-collect { text-decoration: underline; }
  .cal-group { border: 0; font-size: 1rem; }
}

/* bookings list: cards on phone, table on desktop */
.booking-cards { display: none; }
@media (max-width: 899px) {
  .booking-cards { display: block; }
  .table-desktop { display: none; }
  .chip-row { display: flex; gap: .5rem; overflow-x: auto; white-space: nowrap;
              padding-bottom: .3rem; scrollbar-width: none; margin-bottom: 1rem; }
  .chip-row::-webkit-scrollbar { display: none; }
}
@media (min-width: 900px) {
  .chip-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
}
.booking-card { display: flex; flex-direction: column; gap: .3rem;
                background: var(--sheen), var(--surface);
                border: 1px solid var(--line); border-radius: var(--r);
                padding: .8rem .9rem; margin-bottom: .7rem; }
.booking-card .bc-link { text-decoration: none; color: var(--ink);
                         display: flex; flex-direction: column; gap: .3rem; }
.booking-card .bc-top { display: flex; justify-content: space-between;
                        align-items: center; gap: .5rem; }
.booking-card .bc-items { font-size: .82rem; color: var(--muted);
                          overflow: hidden; display: -webkit-box;
                          -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tel-pill { display: inline-flex; align-items: center; gap: .3rem;
            border: 1px solid var(--line-strong); border-radius: var(--r-pill);
            padding: .35rem .8rem; text-decoration: none; color: var(--ink);
            font-size: .85rem; min-height: 40px; }
.tel-pill:hover { border-color: var(--gold); color: var(--gold-bright); }

/* form ergonomics */
.item-row { display: flex; gap: .6rem; margin-bottom: .45rem; align-items: center; }
.item-row select { flex: 1; min-width: 0; }
.item-row input[type=number] { width: 5.5rem; }
.radio-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }
.radio-pill { display: flex; gap: .45rem; align-items: center; margin: 0;
              border: 1px solid var(--line-strong); border-radius: var(--r-pill);
              padding: .5rem .95rem; min-height: 44px; cursor: pointer;
              color: var(--ink); font-size: .95rem; }
.radio-pill:has(input:checked) { border-color: var(--gold);
  background: var(--gold-soft); color: var(--gold-bright); }
.icon-btn { min-width: 44px; min-height: 44px; }

/* 16 ─ sales UX: sticky add bar, cross-sell headers ---------- */
.xsell-h { font-size: 1.05rem; margin: 1.6rem 0 .7rem; }
@media (max-width: 700px) {
  .addbar {
    position: sticky; bottom: 0; z-index: 30;
    background: var(--surface);
    margin: 0 -1.2rem -1rem; padding: .7rem 1.2rem;
    padding-bottom: calc(.7rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-gold);
    border-radius: 0 0 var(--r) var(--r);
  }
}

/* Phase 3 — reviews + event galleries (public) */
.wrap { max-width: 1020px; margin: 0 auto; padding: 1rem; }
.foot-links { display: inline-flex; gap: .9rem; align-items: center; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold-bright); }
.reviews-avg { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.stars { color: var(--gold-bright); letter-spacing: .05em; }
.review-card { padding: .8rem .9rem; margin-bottom: .7rem; }
.event-gallery { margin-bottom: 1.6rem; }
.event-grid { display: grid; gap: .5rem;
              grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.event-thumb { display: block; border-radius: var(--r-sm); overflow: hidden;
               border: 1px solid var(--line); }
.event-thumb img { width: 100%; height: 130px; object-fit: cover; display: block; }
.event-thumb:hover { border-color: var(--gold); }
.gallery-thumb-admin { position: relative; border-radius: var(--r-sm);
                       overflow: hidden; border: 1px solid var(--line); }
.gallery-thumb-admin img { width: 100%; height: 130px; object-fit: cover; display: block; }
.gallery-thumb-admin form { position: absolute; top: .3rem; right: .3rem; margin: 0; }
