:root {
  --green: #14342B;
  --brass: #B8893B;
  --porcelain: #F3F4EF;
  --ink: #1B1F1D;
  --sage: #6F8F7F;
  --oxblood: #8E2A2A;
  --sage-text: #486354;
  --white: #fff;
  --border: #b5c3ba;
  --font-display: 'Big Shoulders Display', Impact, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --radius: .5rem;
  --shadow: 0 .5rem 2rem #14342b18;
  --container: 75rem;
  --header-offset: 6rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font-family: var(--font-body); line-height: 1.6; overflow-wrap: anywhere; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 1rem; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(2.75rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1rem; }
a { color: var(--green); text-underline-offset: .2em; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--brass) !important; outline-offset: 3px !important; }
[hidden] { display: none !important; }
.tabular-nums, .price, time { font-variant-numeric: tabular-nums; }
.muted { color: var(--sage-text); }
.phone { white-space: nowrap; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
.scroll-target { scroll-margin-top: var(--header-offset); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: .5rem; left: 1rem; transform: translateY(-200%); z-index: 10001; background: var(--porcelain); padding: .75rem; }
.skip-link:focus { transform: none; }
.container, .site-container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: 1rem; }
.stack > * + * { margin-block-start: var(--stack-gap, 1rem); }
.grid { display: grid; gap: var(--grid-gap, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid > *, .nav-container > *, .footer-container > * { min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: var(--radius); background: var(--green); color: var(--white); font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--accent { background: var(--brass); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--green); border-color: currentColor; }
.btn--danger { background: var(--oxblood); color: var(--white); }
.btn:hover { text-decoration: underline; text-underline-offset: .2em; }
.btn:disabled, .btn[aria-disabled='true'] { background: #d9dfd8; color: #4b574e; border-color: var(--border); cursor: not-allowed; text-decoration: none; }
.card { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.field { display: grid; gap: .375rem; }
.field label, .field-label { display: block; font-weight: 600; }
.field input, .field select, .field textarea, .form-control { width: 100%; min-width: 0; min-height: 44px; padding: .7rem .8rem; color: var(--ink); background: var(--white); border: 1px solid var(--sage); border-radius: var(--radius); }
.field textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--sage-text); opacity: 1; }
[aria-invalid='true'] { border-color: var(--oxblood); }
.field-error, .form-error, .errorlist, .auth-modal .error { color: var(--oxblood); font-size: .9rem; }
.errorlist { padding-left: 1.2rem; margin: .25rem 0; }
.chip { display: inline-flex; align-items: center; padding: .2rem .65rem; border: 1px solid currentColor; border-radius: 2rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.chip--held, .chip--refund_pending, .chip--awaiting-completion, .chip--awaiting_completion { background: #f4e7cf; color: #624416; }
.chip--confirmed { background: var(--green); color: var(--white); }
.chip--completed { background: #dce8df; color: var(--green); }
.chip--cancelled { background: #f5e1df; color: var(--oxblood); }
.chip--refunded { background: #e1ebe6; color: #354e40; }
.chip--expired { background: #e4e6e2; color: #49544b; }
.toast-region, .flash-wrap { position: fixed; top: 1rem; right: 1rem; width: min(24rem, calc(100% - 2rem)); z-index: 10000; display: grid; gap: .5rem; pointer-events: none; }
.toast, .flash { padding: 1rem; border-radius: var(--radius); border: 1px solid var(--sage); background: var(--green); color: var(--white); box-shadow: var(--shadow); pointer-events: auto; overflow-wrap: anywhere; }
.toast--error, .toast.error, .flash.error { background: var(--oxblood); }
.toast--success, .toast.success, .flash.success { background: var(--green); }
.toast.warning, .flash.warning { background: var(--brass); color: var(--ink); }
.dialog { width: min(30rem, calc(100% - 2rem)); margin: auto; padding: 1.5rem; color: var(--ink); background: var(--porcelain); border: 1px solid var(--sage); border-radius: var(--radius); box-shadow: var(--shadow); }
.dialog::backdrop { background: #0b201bba; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; }
.table { width: 100%; border-collapse: collapse; background: var(--white); }
.table th, .table td { padding: .9rem; text-align: left; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.table th { background: var(--green); color: var(--white); font-weight: 600; }
.empty-state { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; border: 1px dashed var(--sage); border-radius: var(--radius); }
.empty-state p { color: var(--sage-text); }
/* A hold container has data-expires-at, [data-hold-time], and .hold-bar. */
.hold-bar-track { overflow: hidden; height: .65rem; background: #d9dfd8; border-radius: 2rem; }
.hold-bar, .hold-bar__fill { height: .65rem; max-width: 100%; border-radius: 2rem; background: repeating-linear-gradient(135deg, var(--green) 0 10px, var(--brass) 10px 20px, var(--porcelain) 20px 30px); background-size: 42.43px 42.43px; animation: barber-pole 1s linear infinite; }
.hold-bar:has(.hold-bar__fill) { background: #d9dfd8; animation: none; }
@keyframes barber-pole { to { background-position: 42.43px 0; } }
.slot { display: grid; justify-items: center; gap: .4rem; min-height: 44px; padding: .85rem; border: 1px solid var(--sage); border-radius: var(--radius); color: var(--green); background: var(--white); font-variant-numeric: tabular-nums; cursor: pointer; }
.slot--full { color: #49544b; background: #e4e6e2; border-style: dashed; cursor: not-allowed; }
.slot--selected, .slot[aria-pressed='true'] { border: 2px solid var(--brass); background: var(--green); color: var(--white); }
.chairs { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.chair { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-radius: .2rem .2rem 0 0; position: relative; margin-bottom: .25rem; }
.chair::after { content: ''; position: absolute; inset: 55% -4px -5px; border: 2px solid currentColor; border-top-width: 3px; }
.chair--taken { background: currentColor; }
/* Pair decorative chairs (aria-hidden) with e.g. "2 of 3 chairs free". */
.site-header, .site-footer, .demo-banner, .auth-modal, .rb-chat-panel, .dialog { font-family: var(--font-body); }
.site-header { background: var(--green); color: var(--white); }
.site-header .nav-container { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-block: 1rem; }
.site-logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--porcelain); font: 800 1.8rem/1 var(--font-display); text-decoration: none; }
.site-logo i { font-size: 1.25rem; color: var(--brass); }
.site-header .menu-toggle { margin-left: auto; }
.site-header .btn--ghost { color: var(--porcelain); }
.site-nav { display: none; flex-basis: 100%; align-items: center; gap: 1rem; }
.site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
.site-nav ul { display: flex; flex-direction: column; list-style: none; gap: .25rem; margin: 0; padding: 0; }
.site-nav .nav-link { display: block; color: var(--porcelain); padding: .6rem .25rem; text-decoration: none; }
.site-nav .nav-link:hover { text-decoration: underline; }
.site-auth { display: flex; gap: .75rem; flex-wrap: wrap; }
.site-header .cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--porcelain); width: 44px; min-height: 44px; margin-left: auto; }
.cart-badge { position: absolute; top: -3px; right: -3px; min-width: 1.3rem; padding-inline: .25rem; border-radius: 1rem; background: var(--brass); color: var(--ink); text-align: center; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-banner { padding-block: .75rem; border-bottom: 1px solid var(--brass); background: #e9ddc5; color: var(--ink); font-size: .85rem; }
.demo-banner__heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.demo-banner p { margin: .5rem 0; }
.demo-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.demo-actions form { margin: 0; }
.demo-banner .btn { font-size: .85rem; padding: .5rem .75rem; }
.site-footer { padding-block: 3rem 1.5rem; background: var(--green); color: var(--porcelain); }
.site-footer .footer-container { display: grid; gap: 2rem; }
.site-footer h2 { font-size: 2rem; }
.site-footer h3 { font-size: 1.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--porcelain); }
.site-footer address { font-style: normal; }
.site-footer p { margin-bottom: .5rem; }
.footer-bottom { margin-top: 2rem; border-top: 1px solid var(--sage); padding-top: 1rem; font-size: .85rem; }
.auth-page { width: min(30rem, calc(100% - 2rem)); margin: clamp(2rem, 8vh, 5rem) auto; }
.auth-modal.modal { display: none; position: fixed; inset: 0; z-index: 2000; padding: 1rem; overflow-y: auto; background: #0b201bba; }
.auth-modal .modal-content { position: relative; width: min(100%, 30rem); margin: 5vh auto; padding: 2rem 1.5rem; background: var(--porcelain); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-modal .modal-content .btn { background: var(--green); color: var(--white); border-radius: var(--radius); }
.auth-modal .modal-content .btn:hover { transform: none; box-shadow: none; }
.auth-modal .modal-content h2 { color: var(--green); padding-right: 2rem; }
.auth-modal .modal-content form { display: grid; gap: 1rem; }
.auth-modal .modal-content form input { margin: 0; width: 100%; min-width: 0; padding: .7rem .8rem; border: 1px solid var(--sage); border-radius: var(--radius); background: var(--white); color: var(--ink); font-family: var(--font-body); }
.auth-modal .modal-content form input:focus-visible { outline: 3px solid var(--brass) !important; outline-offset: 3px !important; }
.auth-modal .close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; background: transparent; color: var(--green); font-size: 1.5rem; cursor: pointer; }
.auth-modal .modal-footer { margin-top: 1.5rem; }
.auth-modal .link-btn { border: 0; padding: .5rem; min-height: 44px; background: transparent; color: var(--green); text-decoration: underline; cursor: pointer; }
.auth-modal .forgot { display: inline-block; margin-top: 1rem; }
.rb-chat-btn { position: fixed; right: 1rem; bottom: 1rem; width: 52px; height: 52px; border-radius: 50%; z-index: 1100; }
.rb-chat-panel { position: fixed; right: 1rem; bottom: 5rem; width: min(22rem, calc(100% - 2rem)); max-height: min(32rem, calc(100dvh - 6rem)); display: none; flex-direction: column; z-index: 1100; overflow: hidden; padding: 0; background: var(--porcelain); }
.rb-chat-header { display: flex; justify-content: space-between; align-items: center; padding: .5rem 1rem; background: var(--green); color: var(--porcelain); font-weight: 600; }
.rb-chat-header .btn--ghost { color: var(--porcelain); border: 0; }
.rb-chat-body { padding: 1rem; overflow-y: auto; height: 20rem; min-height: 0; }
.rb-msg { padding: .65rem .85rem; margin-bottom: .75rem; max-width: 90%; border-radius: var(--radius); }
.rb-bot { background: var(--white); border: 1px solid var(--border); }
.rb-user { margin-left: auto; background: var(--green); color: var(--white); }
.rb-chat-input { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); }
.rb-chat-input input { flex: 1; min-width: 0; }
@media (min-width: 768px) {
  .site-header .menu-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: flex; flex-direction: row; flex-basis: auto; flex: 1; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav ul { flex-direction: row; gap: .75rem; flex-wrap: wrap; }
  .site-header .cart-link { margin-left: 0; }
  .site-footer .footer-container { grid-template-columns: 1.1fr .8fr 1.2fr 1fr; }
}
@media (max-width: 767px) {
  #demo-details:not([data-expanded='true']) { display: none; }
  .demo-banner__heading { flex-wrap: wrap; }
  .demo-banner__heading > span { white-space: nowrap; }
  .demo-banner__heading .btn { padding: .25rem .5rem; font-size: .75rem; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table tr { margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
  .table td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .75rem; }
  .table td::before { content: attr(data-label); font-weight: 600; }
  .table td[colspan] { display: block; }
  .booking-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: 'customer status' 'service staff' 'date time' 'price phone' 'actions actions';
    gap: var(--space-3) var(--space-4);
    padding: var(--space-4);
  }
  .booking-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .booking-table td::before { display: block; color: var(--sage-text); font-size: .8rem; font-weight: 400; }
  .booking-table [data-label='Customer'] { grid-area: customer; font-weight: 600; align-self: center; }
  .booking-table [data-label='Status'] { grid-area: status; justify-self: end; align-self: center; width: auto; }
  .booking-table [data-label='Customer']::before, .booking-table [data-label='Status']::before, .booking-table [data-label='Actions']::before { display: none; }
  .booking-table [data-label='Service'] { grid-area: service; }
  .booking-table [data-label='Staff'] { grid-area: staff; }
  .booking-table [data-label='Date'] { grid-area: date; }
  .booking-table [data-label='Time'] { grid-area: time; }
  .booking-table [data-label='Price'] { grid-area: price; }
  .booking-table [data-label='Phone'] { grid-area: phone; font-size: .9rem; }
  .booking-table [data-label='Actions'] { grid-area: actions; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
