/* Gezellig Male Grooming. Shared styles for every page.
   Palette: the shop's own charcoal and forest green, with white type. Dark first, light variant below. */
:root {
  --bg: #1a1a1a;
  --surface: #222222;
  --surface-2: #2b2b2b;
  --fg: #f2f2ee;
  --muted: #a3a8a3;
  --line: #363936;
  --accent: #3f7552;        /* green fills: buttons, boxes */
  --accent-text: #62a878;   /* green used as text and line art on charcoal */
  --accent-fg: #ffffff;
  --ok: #8fe0a8;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f4f1; --surface: #ffffff; --surface-2: #e7eae5; --fg: #1a1a1a; --muted: #5a615b; --line: #d3d8d1;
    --accent: #2f6a45; --accent-text: #2f6a45; --accent-fg: #ffffff; --ok: #1c7a4a; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f4f1; --surface: #ffffff; --surface-2: #e7eae5; --fg: #1a1a1a; --muted: #5a615b; --line: #d3d8d1;
  --accent: #2f6a45; --accent-text: #2f6a45; --accent-fg: #ffffff; --ok: #1c7a4a; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.wrap { max-width: 1100px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }
.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; margin: 0; text-wrap: balance; letter-spacing: .01em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 5.5vw, 3rem); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
section[id] { scroll-margin-top: 60px; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.mark { font-weight: 800; letter-spacing: .08em; text-decoration: none; font-size: .95rem; }
.mark span { color: var(--accent-text); }
.links { display: flex; align-items: center; gap: 22px; font-size: .88rem; font-weight: 500; }
.links a.l { text-decoration: none; color: var(--muted); }
.links a.l:hover { color: var(--fg); }
@media (max-width: 560px) { .links { gap: 14px; } .links a.l:not(.keep) { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-fg); border: 0; padding: 12px 20px; border-radius: 4px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.sm { padding: 9px 14px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .88rem; padding-block: 18px 0; }
.back:hover { color: var(--fg); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.motif { position: absolute; inset: 0; color: var(--accent-text); opacity: .38; -webkit-mask-image: radial-gradient(70% 90% at 88% 15%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 88% 15%, #000, transparent 75%); pointer-events: none; }
.motif svg { width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; padding-block: clamp(40px, 8vw, 96px) clamp(36px, 6vw, 72px); display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(2.5rem, 13vw, 8rem); font-weight: 900; letter-spacing: -.01em; line-height: .98; overflow-wrap: anywhere; }
.hero h1 .g { color: var(--accent-text); display: block; }
.hero h1 .m { display: block; font-size: .62em; letter-spacing: 0; margin-top: .08em; }
.hero-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
@media (max-width: 760px) { .hero-row { grid-template-columns: 1fr; } }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.45rem); max-width: 34ch; margin: 0 0 22px; border-left: 3px solid var(--accent); padding-left: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: flex; flex-direction: column; gap: 14px; background: var(--accent); color: var(--accent-fg); border-radius: 14px; padding: 20px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.facts span { opacity: .85; font-size: .85rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .8rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); }
.status.open .dot { background: #b8f5c8; box-shadow: 0 0 0 4px rgba(184,245,200,.28); }

/* Definition */
.def { padding-block: clamp(56px, 9vw, 110px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .def { grid-template-columns: 1fr; } }
.word { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; font-size: clamp(2.8rem, 9vw, 5rem); line-height: 1; margin: 0 0 12px; }
.ipa { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.def p { margin: 0 0 16px; max-width: 58ch; }
.def p.big { font-size: 1.2rem; line-height: 1.55; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillars div { background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pillars h3 { font-size: .9rem; letter-spacing: .08em; color: var(--accent-text); }
.pillars span { color: var(--muted); font-size: .88rem; }

/* Menu */
.menu { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(48px, 8vw, 96px) 0; }
.menu-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.menu-head p { margin: 0; color: var(--muted); max-width: 44ch; font-size: .92rem; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 8px; }
.tabs button { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .88rem; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 18px 4px; cursor: pointer; }
.row:hover .name { color: var(--accent-text); }
.box { width: 22px; height: 22px; border: 1.5px solid var(--muted); border-radius: 3px; display: grid; place-items: center; margin-top: 2px; }
.row[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.box svg { width: 14px; height: 14px; opacity: 0; }
.row[aria-pressed="true"] .box svg { opacity: 1; }
.name { font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.25; color: var(--accent-text); }
.sub { display: block; color: var(--muted); font-size: .88rem; margin-top: 6px; max-width: 54ch; line-height: 1.5; }
.price { font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.bar { position: sticky; bottom: env(safe-area-inset-bottom, 0px); background: var(--surface-2); border-top: 1px solid var(--line); margin-top: 8px; }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.sum { display: flex; flex-direction: column; min-width: 0; }
.sum b { font-family: var(--font-mono); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.sum span { color: var(--muted); font-size: .82rem; }
.bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Products */
.prod-head { padding-block: clamp(20px, 4vw, 40px) 28px; display: flex; flex-direction: column; gap: 14px; }
.prod-head p { margin: 0; color: var(--muted); max-width: 52ch; font-size: 1.02rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; padding-bottom: clamp(36px, 6vw, 72px); }
.prod { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.prod .art { background: var(--surface-2); color: var(--accent-text); display: grid; place-items: center; padding: 22px 0 12px; border-bottom: 1px solid var(--line); }
.prod .art svg { width: 110px; height: 128px; display: block; }
.prod .info { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.prod .tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prod .pname { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prod h3 { font-size: 1rem; letter-spacing: .03em; }
.prod .pprice { font-family: var(--font-mono); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.prod-note { border-top: 1px solid var(--line); padding-block: 28px 32px; color: var(--muted); max-width: 60ch; }
.prod-note p { margin: 0; }
.prod-note b { color: var(--fg); font-weight: 700; }
.back-bottom { padding-bottom: 56px; }

/* Visit */
.visit { border-top: 1px solid var(--line); padding-block: clamp(48px, 8vw, 96px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); }
@media (max-width: 800px) { .visit { grid-template-columns: 1fr; } }
.visit > div { min-width: 0; }
.hours { width: 100%; border-collapse: collapse; margin: 22px 0 0; font-family: var(--font-mono); font-size: .92rem; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today { color: var(--accent-text); }
.drinks { margin-top: 22px; background: var(--accent); color: var(--accent-fg); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.drinks b { font-weight: 800; font-size: 1rem; }
.drinks span { opacity: .92; font-size: .92rem; }
.contact { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.contact .item { display: flex; flex-direction: column; gap: 6px; }
.contact .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact .val { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.02rem; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: .88rem; margin-top: 18px; max-width: 48ch; }
.toast { min-height: 1.2em; font-size: .82rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.foot-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.foot-r { margin-left: auto; width: min(100%, 340px); display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 700px) { .foot-r { margin-left: 0; width: 100%; } }
.maplink { align-self: flex-end; color: var(--accent-text); font-weight: 600; text-decoration: none; font-size: .82rem; }
.maplink:hover { text-decoration: underline; }

/* Map photo card: Google Maps screenshot, zoomed on the shop, opens full size */
.mapcard { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; text-align: left; }
.mapcard img { position: absolute; width: 200%; max-width: none; height: auto; left: -45%; top: -36%; display: block; }
.ring { position: absolute; left: 50.7%; top: 48%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid var(--accent); animation: pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(.45); opacity: .95; } 100% { transform: scale(1.5); opacity: 0; } }
.chip { position: absolute; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--fg); border-radius: 6px; padding: 3px 8px; font-size: .72rem; pointer-events: none; }
.chip.cap { left: 10px; top: 10px; display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; }
.chip.cap b { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.chip.cap span { color: var(--muted); }
.chip.hint { left: 10px; bottom: 10px; color: var(--muted); }
.chip.credit { right: 10px; bottom: 10px; color: var(--muted); font-size: .66rem; }
[hidden] { display: none !important; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.lb-body { width: min(1100px, 100%); max-height: calc(100% - 56px); overflow: auto; border-radius: 10px; background: var(--surface-2); }
.lb-body img { display: block; width: max(100%, 820px); max-width: none; height: auto; }
.lb-bar { width: min(1100px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: .8rem; }
.lb-bar button { background: #fff; color: #111; border: 0; border-radius: 4px; padding: 9px 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; opacity: .9; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Additions for the multi-page site ---- */
.mark i { font-style: normal; }
@media (max-width: 560px) { .mark i { display: none; } }
.links a.l[aria-current="page"] { color: var(--fg); }
.foot-links a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.prod .art.photo { padding: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.prod .art.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Loyalty teaser on the home page */
.loyal { padding-block: clamp(48px, 8vw, 96px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 800px) { .loyal { grid-template-columns: 1fr; } }
.loyal > div { min-width: 0; }
.loyal p { margin: 16px 0 22px; max-width: 46ch; color: var(--muted); font-size: 1.05rem; }
.mini { background: var(--accent); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 420px; }
.mini i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .6rem; color: #fff; text-transform: uppercase; text-align: center; line-height: 1.1; }
.mini i.on { background: #fff; border: 2px solid #fff; color: var(--accent); }
.mini i.rw { border-style: solid; border-color: #fff; }

/* Shop photos. Hidden until photos are added. */
.gallery { padding-block: 0 clamp(48px, 8vw, 96px); }
.gallery h2 { margin: 10px 0 22px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 6px; background: var(--surface-2); }

/* ---- Loyalty card, staff and owner pages ---- */
.app { max-width: 520px; margin-inline: auto; padding: 28px 16px 64px; display: flex; flex-direction: column; gap: 18px; }
.app.wide { max-width: 900px; }
.app h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.app .intro { margin: 0; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel h2 { font-size: 1rem; letter-spacing: .06em; }
.panel p { margin: 0; color: var(--muted); font-size: .95rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.app input[type="text"], .app input[type="password"] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px; width: 100%; min-width: 0; }
.app input:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.app input.pin { font-family: var(--font-mono); font-size: 1.3rem; letter-spacing: .3em; text-align: center; }
.app input.code { font-family: var(--font-mono); }
.brow { display: flex; flex-wrap: wrap; gap: 8px; }
.brow .btn { flex: 1 1 auto; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.msg { min-height: 1.3em; font-size: .9rem; color: var(--muted); }
.msg.bad { color: var(--bad); }
.msg.good { color: var(--ok); }
.steps { margin: 0; padding-left: 1.2em; color: var(--muted); display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.small { font-size: .85rem; color: var(--muted); }

.pass { background: var(--accent); color: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pass-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.brand { font-weight: 900; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.brand small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .16em; opacity: .8; margin-top: 5px; }
.tally { text-align: right; font-weight: 900; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tally small { display: block; font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-top: 5px; }
.stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); display: grid; place-items: center; min-width: 0; }
.stamp.on { border: 2px solid #fff; background: #fff; color: #2f6a45; }
.stamp svg { width: 46%; height: 46%; }
.stamp.reward { font-weight: 800; font-size: .54rem; letter-spacing: .02em; text-transform: uppercase; text-align: center; line-height: 1.1; padding: 2px; border-style: solid; border-color: #fff; }
.rewards { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.rewards li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.25); }
.rewards li:last-child { border-bottom: 0; padding-bottom: 0; }
.rewards b { font-weight: 800; }
.rewards span { opacity: .85; text-align: right; font-size: .8rem; }
.qr-panel { background: #fff; color: #1a1a1a; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#qr { width: 200px; height: 200px; display: grid; place-items: center; text-align: center; font-size: .85rem; color: #5a615b; }
#qr img, #qr canvas { width: 200px !important; height: 200px !important; display: block; }
.qr-panel.dim #qr { opacity: .25; }
.qr-status { font-weight: 700; font-size: .92rem; text-align: center; }
.qr-code { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .08em; color: #1a1a1a; }
.pass-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pass-foot span { display: block; opacity: .8; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; }
.pass-foot b { font-family: var(--font-mono); font-weight: 500; font-size: .88rem; }

.visits { list-style: none; margin: 0; padding: 0; }
.visits li { display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.visits li:last-child { border-bottom: 0; }
.visits .n { font-family: var(--font-mono); color: var(--accent-text); font-weight: 500; }
.visits .w { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.visits .w b { font-weight: 600; font-size: .95rem; }
.visits .w span { color: var(--muted); font-size: .85rem; }

.who { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.who button { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.who button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.who button:disabled { opacity: .45; cursor: not-allowed; }
.result { border-radius: 10px; padding: 14px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 3px; }
.result b { font-weight: 800; font-size: 1.1rem; }
.result.good { border-color: var(--accent-text); } .result.good b { color: var(--accent-text); }
.result.bad { border-color: var(--bad); } .result.bad b { color: var(--bad); }
.result.warn { border-color: var(--warn); } .result.warn b { color: var(--warn); }
.signed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.signed b { font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stats div { background: var(--accent); color: #fff; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.stats b { font-size: 1.8rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: .82rem; opacity: .9; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.people .p { display: flex; flex-direction: column; min-width: 0; }
.people .p b { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.people .p span { color: var(--muted); font-size: .85rem; }
.people .off b { color: var(--muted); text-decoration: line-through; }
.people .set { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.people .set input { flex: 1 1 140px; }
.scroll { overflow-x: auto; }
.log { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 820px; }
.log th { text-align: left; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.log td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.log td.mono { font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; }
.log tr.void td { color: var(--muted); text-decoration: line-through; }
.log tr.void td:last-child { text-decoration: none; }
.log button { background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.log button.sure { border-color: var(--bad); color: var(--bad); }
:root { --bad: #e58a82; --warn: #d9a441; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bad: #b3261e; --warn: #8a5a00; } }
:root[data-theme="light"] { --bad: #b3261e; --warn: #8a5a00; }

/* Service picker and reward working on the staff page */
.pick { display: flex; flex-direction: column; gap: 10px; }
.plabel { font-weight: 800; font-size: .95rem; }
.pgroup { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 6px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); gap: 8px; }
.chip-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; min-width: 0; }
.chip-btn span { font-weight: 600; font-size: .88rem; line-height: 1.25; }
.chip-btn b { font-family: var(--font-mono); font-weight: 500; font-size: .85rem; color: var(--muted); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-btn[aria-pressed="true"] b { color: #fff; }
.quote { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.qrow { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.qrow span { color: var(--muted); }
.qrow b { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.qrow.strong { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.qrow.strong span { color: var(--fg); font-weight: 700; }
.qrow.strong b { font-size: 1.15rem; color: var(--accent-text); }
.visits .w span.rw { color: var(--accent-text); font-weight: 600; }

.tick { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: .92rem; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font-body) !important; color: var(--fg) !important; }
.tick input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.tick input:disabled + span { opacity: .5; }
.app input[type="email"] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px; width: 100%; min-width: 0; }
.signed h2 { margin: 0; }
.legal { max-width: 720px; }
.legal h2 { font-size: 1.05rem; margin-top: 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.found { list-style: none; margin: 0; padding: 0; }
.found li { border-bottom: 1px solid var(--line); }
.found li:last-child { border-bottom: 0; }
.found button { width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 4px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.found button:hover b { color: var(--accent-text); }
.found b { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.found span { color: var(--muted); font-size: .85rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: 6px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--accent); color: #fff; }
.restore { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; color: #1a1a1a; border-radius: 12px; padding: 16px; text-align: center; }
.restore #rqr { width: 200px; height: 200px; display: grid; place-items: center; font-size: .85rem; }
.restore #rqr img, .restore #rqr canvas { width: 200px !important; height: 200px !important; }
.restore .small { color: #4a514b; }
.restore code { font-size: .72rem; word-break: break-all; }
