
/* Utilities. The content security policy forbids inline style attributes
   (style-src 'self'), so every presentational tweak lives here as a class;
   an inline style would be silently dropped by the browser. */
.mt-1 { margin-top: 1rem; }
.mt-125 { margin-top: 1.25rem; }
.mt-15 { margin-top: 1.5rem; }
.mw-28 { max-width: 28rem; }
.cta-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0.9rem 1.2rem; border-radius: 8px; background: var(--crimson); color: #fff; text-decoration: none; font-weight: 700; }
.demo-banner { background: #fff4e5; border-bottom: 1px solid #f0c98f; color: #5a3a00; padding: 0.6rem 1rem; font-size: 0.95rem; line-height: 1.4; }
.demo-banner a { color: var(--crimson-dark); font-weight: 700; }
:root {
  --crimson: #9e1b32;
  --crimson-dark: #7a1426;
  --ink: #141414;
  --ink-soft: #4a4a4a;
  --line: #e4e4e7;
  --bg: #faf9f8;
  --surface: #ffffff;
  --ok: #1c6b3f;
  --warn: #8a5a00;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* 17px base: these screens get read for hours, often on a phone, often by
     someone who is not looking for small print. */
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--crimson); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 2px;
}

header.bar {
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
header.bar .brand { font-weight: 700; letter-spacing: 0.02em; }
header.bar .brand span { color: var(--crimson); }
.business-logo { display: inline-block; max-width: 8rem; height: 2.5rem; object-fit: contain; vertical-align: middle; }
header.bar nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: auto; }
header.bar nav a, header.bar form button {
  color: #fff; text-decoration: none; font-size: 0.95rem;
}
header.bar nav a[aria-current="page"] { border-bottom: 2px solid var(--crimson); }
header.bar form { margin: 0; }
header.bar form button {
  background: none; border: 0; cursor: pointer; padding: 0;
  font: inherit; font-size: 0.95rem; text-decoration: underline;
}


/* A single responsive navigation: desktop links stay visible; on phones
   a native checkbox disclosure is keyboard operable without script or CSP changes.
   All role/package filtering and the original sign-out form remain server-side. */
.mobile-menu-toggle, .mobile-menu-label, .mobile-till-shortcut { display: none; }
header.bar nav a.nav-locked { color: #d0c7ca; gap: .45rem; }
header.bar nav a.nav-locked small { border: 1px solid #84616a; color: #f0c0c9; border-radius: 999px; font-size: .7rem; font-weight: 600; padding: .1rem .45rem; white-space: nowrap; }
@media (max-width: 48rem) {
  header.bar.signed-in { padding: .8rem 1rem; gap: .6rem; }
  header.bar.signed-in .brand { min-width: 0; width: 100%; overflow-wrap: anywhere; font-size: .98rem; }
  header.bar.signed-in .brand span { color: #f0c0c9; font-weight: 550; }
  header.bar.signed-in .mobile-menu-toggle {
    display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  header.bar.signed-in .mobile-menu-label, header.bar.signed-in .mobile-till-shortcut {
    display: flex; align-items: center; gap: .6rem; justify-content: center;
    min-height: 44px; border-radius: 8px; padding: .55rem .85rem;
    font-size: .9rem; font-weight: 650; color: #fff; text-decoration: none;
  }
  header.bar.signed-in .mobile-menu-label { flex: 1 1 8rem; background: #292929; cursor: pointer; border: 1px solid #656565; justify-content: space-between; }
  header.bar.signed-in .mobile-menu-label .menu-chevron { display: inline-block; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: .2rem; }
  header.bar.signed-in .mobile-menu-toggle:checked + .mobile-menu-label .menu-chevron { transform: rotate(225deg); }
  header.bar.signed-in .mobile-menu-toggle:focus-visible + .mobile-menu-label,
  header.bar.signed-in .mobile-till-shortcut:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  header.bar.signed-in .mobile-till-shortcut { flex: 0 0 auto; background: #9e1b32; }
  header.bar.signed-in nav { display: none; width: 100%; min-width: 0; margin: 0; padding: .45rem; border: 1px solid #535054; border-radius: 12px; background: #242424; max-height: 65dvh; overflow-y: auto; overscroll-behavior: contain; }
  header.bar.signed-in .mobile-menu-toggle:checked ~ nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  header.bar.signed-in nav a, header.bar.signed-in nav form button { min-height: 44px; display: flex; align-items: center; justify-content: flex-start; padding: .55rem .8rem; font-size: .95rem; border-radius: 6px; width: 100%; overflow-wrap: anywhere; }
  header.bar.signed-in nav a.nav-locked { justify-content: space-between; }
  header.bar.signed-in nav a[aria-current="page"] { background: #9e1b32; border-bottom: 0; color: #fff; font-weight: 650; }
  header.bar.signed-in nav a:focus-visible, header.bar.signed-in nav button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  header.bar.signed-in nav form button { text-decoration: none; }
}


main { max-width: 68rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }

h1 { font-size: 1.6rem; margin: 0.4rem 0 0.2rem; }
h2 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.sub { color: var(--ink-soft); margin: 0 0 1.2rem; }

.cards { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.card .label { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.3rem; }
.card .value { font-size: 1.5rem; font-weight: 700; margin: 0; }
.card .value.crimson { color: var(--crimson); }

table { width: 100%; border-collapse: collapse; background: var(--surface); }
caption { text-align: left; color: var(--ink-soft); padding-bottom: 0.4rem; }
th, td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--ink-soft);
}
.empty strong { display: block; color: var(--ink); margin-bottom: 0.25rem; }

.trial-website { margin: 1rem 0 1.3rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.trial-website legend { font-weight: 700; padding: 0 .25rem; }
.trial-radio { display: flex; align-items: center; gap: .5rem; margin: .7rem 0; cursor: pointer; font-weight: 500; }
.trial-radio input { width: auto; margin: 0; flex-shrink: 0; }
.trial-website .website-address { display: none; }
.trial-website:has(input[name="hasWebsite"][value="yes"]:checked) .website-address { display: block; }
.trial-website .website-address label { margin-top: 1rem; }

form.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 28rem;
}
label { display: block; font-weight: 600; margin: 0.9rem 0 0.3rem; }
.trial-acknowledgement input { width: auto; margin: 0 0.35rem 0 0; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
input {
  width: 100%;
  padding: 0.7rem 0.75rem;
  font: inherit;
  border: 1px solid #b9b9bd;
  border-radius: 8px;
  background: #fff;
}
button.primary {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--crimson);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  /* 48px minimum target: this gets tapped on a phone, often one-handed. */
  min-height: 48px;
}
button.primary:hover { background: var(--crimson-dark); }

.notice { border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0 0 1rem; }
.notice.error { background: #fdecef; border: 1px solid #f3c0c9; color: #7a1426; }
.notice.ok { background: #e9f5ee; border: 1px solid #b9ddc8; color: var(--ok); }

.pill { font-size: 0.8rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: #f0f0f2; }
.pill.low { background: #fdecef; color: var(--crimson-dark); }

.split { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }

.centre { max-width: 28rem; margin: 2.5rem auto; }
footer { color: var(--ink-soft); font-size: 0.85rem; text-align: center; padding: 1.5rem 1rem; }

/* Team management. The role and access controls sit inside the table row they
   act on, so an owner changes what someone can do where they are already
   looking, instead of opening a separate page per person. */
.row-form { display: flex; gap: 0.4rem; align-items: center; margin: 0; }
.row-form select { min-width: 8.5rem; }
button.small { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
button.small.danger { background: var(--surface); color: var(--crimson-dark);
  border: 1px solid var(--crimson); }
button.small.danger:hover { background: var(--crimson); color: #fff; }
tr.muted td { opacity: 0.55; }

.stack { display: grid; gap: 0.35rem; }
.stack button { margin-top: 0.75rem; justify-self: start; }

details.card > summary { cursor: pointer; padding: 0.25rem 0; }
details.card[open] > summary { margin-bottom: 0.9rem; }

/* Native disclosure; no JS, new purchase flow or permission changes. */
.package-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.package-card { min-width: 0; padding: 0; overflow-wrap: anywhere; }
details.package-card > summary { display: grid; gap: .55rem; padding: 1rem; list-style: none; min-height: 44px; border-radius: 9px; }
.package-card > summary::-webkit-details-marker { display: none; }
.package-card > summary:focus-visible { outline: 3px solid var(--crimson); outline-offset: -3px; }
.package-name { font-size: 1.12rem; font-weight: 700; }
.package-price { font-size: .97rem; }
.package-details-label { display: flex; align-items: center; justify-content: space-between; gap: .6rem; color: var(--crimson-dark); font-weight: 650; font-size: .9rem; }
.package-chevron { width: .52rem; height: .52rem; border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-right: .2rem; }
.package-hide, .package-card[open] .package-show { display: none; }
.package-card[open] .package-hide { display: inline; }
.package-card[open] .package-chevron { transform: rotate(225deg); }
details.package-card[open] > summary { margin-bottom: 0; }
.package-inclusions { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
.package-inclusions h3 { font-size: 1rem; margin: .7rem 0 .35rem; }
.package-inclusions ul { padding-left: 1.25rem; margin: .5rem 0; }
.package-inclusions li + li { margin-top: .4rem; }
@media (max-width: 36rem) { .package-cards { grid-template-columns: minmax(0, 1fr); } }

ul.hint { color: var(--ink-soft); font-size: 0.85rem; margin: 0.2rem 0 0.4rem 1.1rem; padding: 0; }
ul.hint li { margin: 0.15rem 0; }

/* Visible to a screen reader, not on screen. Each in-row control needs a
   label naming the person it affects; showing it would repeat the name in
   every row. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 40rem) {
  .row-form { flex-wrap: wrap; }
  .row-form select { min-width: 7rem; }
}
/* Dedicated app welcome screen: scoped so existing desktop and POS views
   remain unchanged. Uses the same external stylesheet and CSP. */
body.app-welcome { background: #0a0a0b; color: #f7f7f5; }
.app-welcome main.welcome-shell { min-height: 100vh; min-height: 100svh; max-width: 30rem; padding: 2.5rem 1.5rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.app-welcome .welcome-brand { text-align: center; margin: 1rem auto; }
.app-welcome .welcome-mark { display: block; width: 4rem; height: 4rem; margin: 0 auto 1.2rem; }
.app-welcome .welcome-wordmark { font-size: 1.35rem; font-weight: 750; letter-spacing: .16em; }
.app-welcome .welcome-product { color: #c6c6c9; font-size: .95rem; margin: .3rem 0 0; }
.app-welcome .welcome-message { text-align: center; }
.app-welcome .welcome-message h1 { font-size: clamp(2.15rem, 8vw, 3rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.15; margin: 0 0 .65rem; }
.app-welcome .welcome-message p { color: #c6c6c9; font-size: .95rem; margin: 0; }
.app-welcome .welcome-actions { display: grid; gap: .75rem; }
.app-welcome .welcome-action { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1rem; border-radius: 9px; border: 1px solid #606065; background: transparent; color: #fff; font-weight: 650; text-decoration: none; text-align: center; }
.app-welcome .welcome-action.welcome-primary { background: #9e1b32; border-color: #9e1b32; }
.app-welcome .welcome-action:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.app-welcome .welcome-tagline { color: #b7b7bc; text-align: center; font-size: .8rem; margin: 1.2rem 0 0; }


.pos-layout { display: grid; gap: 1.25rem; }
@media (min-width: 60rem) {
  .pos-layout { grid-template-columns: 1fr 22rem; align-items: start; }
  .pos-basket { position: sticky; top: 1rem; }
}


/* Mobile basket shortcut is a navigation link only. It never completes
   a sale or calculates a payable amount independently of the server. */
.pos-mobile-summary, .pos-catalogue-return { display: none; }
@media (max-width: 59.99rem) {
  .pos-layout { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .pos-layout > section, .pos-basket { min-width: 0; }
  .pos-mobile-summary { display: flex; position: sticky; top: 0; z-index: 3; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .65rem .8rem; border-radius: 10px; color: #fff; background: #1d1f22; }
  .pos-mobile-summary .basket-label { font-size: .78rem; color: #d6d7da; display: block; }
  .pos-mobile-summary strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .pos-mobile-summary a { color: #fff; background: #9e1b32; border-radius: 7px; min-height: 44px; padding: .6rem .8rem; font-size: .9rem; display: inline-flex; align-items: center; text-decoration: none; font-weight: 650; }
  .pos-mobile-summary a:focus-visible, .pos-catalogue-return:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  #basket, #pos-catalogue { scroll-margin-top: 7rem; }
  .pos-catalogue-return { display: inline-flex; min-height: 44px; align-items: center; color: #f4c3cc; font-size: .9rem; margin-bottom: .5rem; }
  .pos-search input { min-width: 0; }
  .line .l-actions { flex-wrap: wrap; }
  .line .l-actions button, .line .l-actions input[type="number"] { min-height: 44px; }
  .pos-pay select, .pos-pay input { min-height: 48px; }
}
.pos-pay.discard button { background: transparent; border: 1px solid #777b81; border-radius: 7px; padding: .55rem .8rem; color: #f4f4f5; min-height: 44px; font: inherit; font-size: .9rem; cursor: pointer; }
@media print { .pos-mobile-summary, .pos-catalogue-return { display: none !important; } }

.pos-search { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.pos-search input { flex: 1; }
.pos-search button {
  padding: 0.7rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid #b9b9bd; border-radius: 8px; background: #fff; min-height: 48px;
}

.tile-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.tile { margin: 0; }
.tile button {
  width: 100%; min-height: 5.4rem; cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.7rem; font: inherit; display: flex; flex-direction: column; gap: 0.25rem;
}
.tile button:hover { border-color: var(--crimson); }
.tile button[disabled] { opacity: 0.55; cursor: not-allowed; }
.tile .t-name { font-weight: 600; line-height: 1.25; }
.tile .t-price { color: var(--crimson); font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .t-meta { font-size: 0.8rem; color: var(--ink-soft); }
.tile .t-meta.out { color: var(--crimson-dark); font-weight: 600; }

.pos-basket {
  background: #1d1f22;
  color: #f4f4f5;
  border-radius: var(--radius);
  padding: 1rem;
}
.pos-basket h2 { margin: 0 0 0.75rem; font-size: 1.05rem; color: #fff; }
.pos-basket .empty-basket { color: #b5b7bb; padding: 1.25rem 0; }

.line { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid #34373c; }
.line .l-name { font-weight: 600; }
.line .l-sub { font-size: 0.82rem; color: #b5b7bb; }
.line .l-total { font-variant-numeric: tabular-nums; font-weight: 700; }
.line .l-actions { grid-column: 1 / -1; display: flex; gap: 0.4rem; align-items: center; }
.line .l-actions form { display: flex; gap: 0.3rem; margin: 0; }
.line .l-actions input[type="number"] {
  width: 4.6rem; padding: 0.35rem 0.45rem; border-radius: 6px;
  border: 1px solid #4a4d53; background: #26282c; color: #fff; font: inherit; font-size: 0.9rem;
}
.line .l-actions button {
  background: #34373c; color: #f4f4f5; border: 0; border-radius: 6px;
  padding: 0.35rem 0.7rem; font: inherit; font-size: 0.85rem; cursor: pointer; min-height: 36px;
}
.line .l-actions button.remove { background: transparent; color: #ff9aa8; text-decoration: underline; padding-left: 0; }

.totals { margin-top: 0.9rem; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; padding: 0.15rem 0; color: #d6d7da; }
.totals div.grand { font-size: 1.35rem; font-weight: 700; color: #fff; border-top: 1px solid #34373c; margin-top: 0.4rem; padding-top: 0.5rem; }

.pos-pay { margin-top: 1rem; }
.pos-pay .pos-split { margin-top: 0.9rem; padding-top: 0.6rem; border-top: 1px solid #34373c; }
.pos-pay .pos-split summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 650; }
.pos-pay .pos-split .hint { color: #c7c9ce; font-size: 0.85rem; }
.pos-pay label { color: #d6d7da; margin: 0.7rem 0 0.25rem; font-size: 0.9rem; }
.pos-pay select, .pos-pay input {
  width: 100%; padding: 0.65rem; border-radius: 8px; border: 1px solid #4a4d53;
  background: #26282c; color: #fff; font: inherit;
}
.pos-pay button.pay {
  margin-top: 0.9rem; width: 100%; min-height: 52px; font: inherit; font-weight: 700;
  font-size: 1.05rem; color: #fff; background: var(--crimson); border: 0; border-radius: 8px; cursor: pointer;
}
.pos-pay button.pay:hover { background: var(--crimson-dark); }
.pos-pay button.pay[disabled] { background: #4a4d53; cursor: not-allowed; }
.pos-pay .discard { margin-top: 0.6rem; text-align: center; }
.pos-pay .discard button { background: none; border: 0; color: #b5b7bb; text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.85rem; }

.receipt {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; max-width: 30rem; margin: 0 auto;
}
.receipt header { text-align: center; border-bottom: 1px dashed var(--line); padding-bottom: 0.9rem; margin-bottom: 0.9rem; }
.receipt h1 { font-size: 1.25rem; margin: 0 0 0.2rem; }
.receipt .r-meta { color: var(--ink-soft); font-size: 0.88rem; }
.receipt table { width: 100%; font-variant-numeric: tabular-nums; }
.receipt td { padding: 0.35rem 0; border: 0; vertical-align: top; }
.receipt td.num { text-align: right; white-space: nowrap; }
.receipt .r-totals { border-top: 1px dashed var(--line); margin-top: 0.6rem; padding-top: 0.6rem; }
.receipt .r-grand { font-size: 1.2rem; font-weight: 700; }
.receipt .r-voided { background: #fdecef; border: 1px solid #f3c0c9; color: var(--crimson-dark); border-radius: 8px; padding: 0.7rem; margin-bottom: 0.9rem; font-weight: 600; }

/* Printing a receipt from the browser's Print command: the receipt alone, black
   on white, no navigation, buttons or void form. */
@media print {
  header.bar, nav, footer, .notice, .centre, form, .skip { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .receipt { box-shadow: none !important; border: 0 !important; margin: 0 auto !important; max-width: 80mm; color: #000; }
  .receipt .r-meta { color: #000; }
}

.status { font-size: 0.8rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-weight: 600; }
.status.completed { background: #e9f5ee; color: var(--ok); }
.status.voided { background: #fdecef; color: var(--crimson-dark); }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 0.4rem; }
.option { display: flex; gap: 0.7rem; align-items: flex-start; min-height: 44px; padding: 0.75rem;
  border: 1px solid var(--line); border-radius: 8px; margin: 0.5rem 0; cursor: pointer; }
.option input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; flex: none; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1rem; }
.toolbar form.search { display: flex; gap: 0.5rem; flex: 1 1 16rem; }
.toolbar form.search input { flex: 1; }
.toolbar .btn, .toolbar button {
  padding: 0.65rem 1rem; font: inherit; font-weight: 600; border-radius: 8px;
  border: 1px solid #b9b9bd; background: #fff; cursor: pointer; min-height: 48px;
  display: inline-flex; align-items: center; text-decoration: none; color: var(--ink);
}
.toolbar .btn.primary {
  background: var(--crimson); border-color: var(--crimson); color: #fff;
}
.toolbar .btn.primary:hover { background: var(--crimson-dark); }

.row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.row-actions a, .row-actions button {
  font: inherit; font-size: 0.9rem; background: none; border: 0; padding: 0;
  color: var(--crimson); text-decoration: underline; cursor: pointer;
}

.archived td { opacity: 0.6; }
.tag { font-size: 0.78rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #f0f0f2; color: var(--ink-soft); }

details.more { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--crimson); }
details.more[open] summary { margin-bottom: 0.5rem; }

.check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1rem 0 0; }
.check input { width: auto; margin-top: 0.3rem; }
.check label { margin: 0; font-weight: 600; }
.check .hint { display: block; font-weight: 400; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.steps li {
  counter-increment: step; position: relative; padding: 0.55rem 0 0.55rem 2.4rem;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.5rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #e9e9ec;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--ink-soft);
}
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now::before { background: var(--crimson); color: #fff; }

.choice { display: grid; gap: 0.6rem; margin: 1rem 0; }
.choice button {
  text-align: left; padding: 1rem; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font: inherit; min-height: 48px;
}
.choice button:hover { border-color: var(--crimson); }
.choice button strong { display: block; }
.choice button span { color: var(--ink-soft); font-size: 0.9rem; }
.choice form { margin: 0; }

.daybar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.daybar a.btn, .daybar button { min-height: 48px; padding: 0.65rem 1rem; border-radius: 8px;
  border: 1px solid #b9b9bd; background: #fff; color: var(--ink); text-decoration: none;
  font: inherit; font-weight: 600; display: inline-flex; align-items: center; }
.daybar a.btn.primary { background: var(--crimson); border-color: var(--crimson); color: #fff; margin-left: auto; }
.daybar form { display: flex; gap: 0.5rem; margin: 0; }
.daybar input[type=date] { min-height: 48px; }
.appt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.appt { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; background: var(--surface); }
.appt .when { font-size: 1.15rem; font-weight: 700; }
.appt .what { font-weight: 600; }
.appt .who, .appt .meta { color: var(--ink-soft); font-size: 0.92rem; }
.appt.closed { opacity: 0.7; }
.appt .status { font-size: 0.78rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: #f0f0f2; margin-left: 0.4rem; }
.appt .status.booked { background: #e7f1fb; color: #1d4f80; }
.appt .status.completed { background: #e9f5ee; color: var(--ok); }
.appt .status.cancelled, .appt .status.no_show { background: #fdecef; color: #7a1426; }
.appt-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.appt-actions form { margin: 0; }
.appt-actions button { min-height: 44px; padding: 0.5rem 0.9rem; border-radius: 8px; font: inherit;
  border: 1px solid #b9b9bd; background: #fff; cursor: pointer; }
.appt-actions button.charge { background: var(--crimson); border-color: var(--crimson); color: #fff; font-weight: 600; }
.appt-actions details summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer;
  color: var(--crimson); text-decoration: underline; }
.appt-actions details form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.appt-actions details input { flex: 1 1 12rem; }
.two { display: grid; gap: 0 0.8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 30rem) { .daybar a.btn.primary { margin-left: 0; width: 100%; justify-content: center; } }

/* Private platform administration — independent of merchant navigation. */
.admin-shell{background:#f5f4f7;color:#20202a;--line:#e1dfe6}
.admin-header{position:sticky;top:0;z-index:20;background:#17151d;color:#fff;box-shadow:0 3px 20px #17151d22}
.admin-top{max-width:90rem;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid #ffffff18}
.admin-brand{display:flex;gap:.7rem;align-items:center;color:#fff;text-decoration:none;font-weight:800;letter-spacing:.08em;font-size:1rem}
.admin-brand small,.admin-identity small{display:block;color:#d7c7d0;font-weight:500;letter-spacing:0;font-size:.75rem}
.admin-monogram{background:#9e1b32;border-radius:10px;display:grid;place-items:center;width:42px;height:42px;font-size:1.4rem}
.admin-identity{text-align:right;line-height:1.3;font-size:.9rem;overflow-wrap:anywhere}
.admin-navigation{max-width:90rem;padding:.45rem 1.5rem;margin:auto;display:flex;gap:.3rem;align-items:center;flex-wrap:wrap}
.admin-navigation a,.admin-navigation button{display:block;color:#f3edf1;text-decoration:none;border-radius:6px;font:600 .84rem/1.35 system-ui;padding:.6rem .75rem;min-height:40px;border:0;background:transparent;cursor:pointer}
.admin-navigation a:hover,.admin-navigation button:hover{background:#ffffff16}
.admin-navigation a[aria-current=page]{background:#9e1b32;color:#fff}
.admin-navigation form{margin:0 0 0 auto}
.admin-navigation button{border:1px solid #ffffff35}
.admin-menu-toggle,.admin-menu-label{display:none}
.admin-main{max-width:90rem;padding:1.75rem 1.5rem 4rem}
.admin-public .admin-main{max-width:34rem;padding-top:3rem}
.admin-eyebrow{font-size:.73rem;font-weight:800;letter-spacing:.16em;color:#9e1b32;margin:0}
.admin-main h1{font-size:clamp(1.8rem,3.5vw,2.6rem);letter-spacing:-.045em;line-height:1.12;margin:.4rem 0 .8rem}
.admin-main h2{font-size:1.3rem;letter-spacing:-.025em;margin:2rem 0 .8rem;scroll-margin-top:10rem}
.admin-intro{color:#55515e}
.admin-main .card,.admin-main .panel,.admin-main .table-wrap{border-radius:12px;box-shadow:0 2px 8px #17151d08}
.admin-main .cards .card h2{margin:0;color:#55515e;font-size:.88rem;letter-spacing:0}
.admin-main .cards .card>p:first-of-type{font-size:1.45rem;font-weight:750;color:#29242e;margin:.5rem 0 0}
.admin-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.75rem}
.admin-tool{position:relative;display:flex;flex-direction:column;gap:.4rem;min-height:112px;padding:1rem 2.2rem 1rem 1rem;background:#fff;border:1px solid #e1dfe6;border-radius:12px;color:#29242e;text-decoration:none;box-shadow:0 2px 8px #17151d08}
.admin-tool:hover{border-color:#9e1b32;background:#fff9fa}.admin-tool strong{font-size:1rem}.admin-tool span{font-size:.84rem;color:#625c6a}.admin-tool .admin-tool-arrow{position:absolute;right:1rem;top:1rem;color:#9e1b32;font-size:1.2rem}
.admin-search{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;padding:1rem;border:1px solid var(--line);border-radius:12px;background:#fff}.admin-search>div{flex:1 1 12rem;min-width:0}.admin-search input,.admin-search select{width:100%;margin:0}.admin-search>a{padding:.65rem}
.admin-shell .table-wrap{max-width:100%;overflow-x:auto}
.admin-navigation a:focus-visible,.admin-navigation button:focus-visible,.admin-brand:focus-visible{outline:2px solid white;outline-offset:2px}
@media(max-width:54rem){.admin-top{padding:.75rem 1rem}.admin-main{padding:1.25rem 1rem 3rem}.admin-brand{font-size:.85rem}.admin-identity{max-width:40%;font-size:.78rem}.admin-menu-toggle{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.admin-menu-label{display:flex;justify-content:space-between;align-items:center;margin:0;padding:.6rem 1rem;min-height:44px;color:#fff;cursor:pointer;font-weight:650}.admin-menu-toggle:focus-visible+.admin-menu-label{outline:2px solid white;outline-offset:-3px}.admin-navigation{display:none;position:absolute;top:100%;left:.5rem;right:.5rem;max-height:calc(100dvh - 8rem);overflow-y:auto;padding:.4rem;background:#24212b;border:1px solid #ffffff20;border-radius:0 0 12px 12px;box-shadow:0 15px 40px #0005}.admin-menu-toggle:checked~.admin-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-navigation a,.admin-navigation button{min-height:44px;font-size:.9rem;width:100%;overflow-wrap:anywhere}.admin-navigation form{margin:0}.admin-search{align-items:stretch}.admin-main h2{scroll-margin-top:8rem}}
@media(max-width:360px){.admin-navigation{grid-template-columns:1fr!important}.admin-identity small{font-size:.65rem}.admin-brand small{font-size:.65rem}}
