:root {
  color-scheme: light;
  --red: #ff1010;
  --red-dark: #cc0000;
  --ink: #0b0b0b;
  --paper: #ffffff;
  --warm: #f3f1ed;
  --soft: #e8e6e1;
  --muted: #686868;
  --line: #d5d3ce;
  --success: #177a49;
  --warning: #a64b00;
  --danger: #b00020;
  --max: 1240px;
  --heading: "Montserrat", Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-family: var(--heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 3.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
fieldset { min-width: 0; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 800;
  line-height: .9;
  text-decoration: none;
  letter-spacing: -.06em;
}
.brand span { font-size: 1.6rem; }
.brand small { margin-top: 7px; color: var(--red); font-size: .58rem; letter-spacing: .13em; }
.site-nav { display: flex; align-items: center; gap: 22px; font-family: var(--heading); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--red); }
.nav-cta { padding: 9px 13px; color: white !important; background: var(--red); }
.admin-link { color: var(--red); }
.nav-toggle { display: none; padding: 10px 12px; border: 1px solid var(--ink); background: white; font-weight: 700; text-transform: uppercase; }
.inline-form { display: inline; margin: 0; }
.text-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.text-button:hover { color: var(--red); }
.text-button.danger { color: var(--danger); }
.flash-stack { position: fixed; z-index: 80; top: 90px; right: 20px; width: min(390px, calc(100% - 40px)); }
.flash { margin-bottom: 8px; padding: 13px 16px; border: 1px solid var(--ink); color: white; background: var(--ink); box-shadow: 4px 4px 0 rgba(0,0,0,.15); }
.flash-error { background: var(--danger); }
.flash-success { background: var(--success); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: min(760px, calc(100vh - 78px));
  background: var(--warm);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 8vw, 100px) max(22px, calc((100vw - var(--max)) / 2)); padding-right: clamp(30px, 6vw, 80px); }
.hero-copy h1 { max-width: 8ch; font-size: clamp(3rem, 7.2vw, 6.8rem); }
.hero-copy > p:not(.eyebrow) { max-width: 36rem; font-size: 1.15rem; }
.hero-image {
  min-height: 480px;
  background: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.28)), url("https://primary.jwwb.nl/pexels/72/7206198.jpeg?enable-io=true&enable=upscale&crop=1200:1200") center / cover;
  filter: grayscale(100%);
}
.eyebrow { margin-bottom: 12px; color: var(--red); font-family: var(--heading); font-size: .74rem; font-weight: 800; letter-spacing: .13em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: var(--heading);
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.button:hover, .button:focus-visible { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--ink); }
.button-primary { border-color: var(--red); color: white; background: var(--red); }
.button-primary:hover, .button-primary:focus-visible { box-shadow: 3px 3px 0 var(--red-dark); }
.button-secondary { color: var(--ink); background: white; }
.button-dark { color: white; background: var(--ink); }
.button-danger { border-color: var(--danger); color: var(--danger); background: white; }
.button-full { width: 100%; }
.setup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px max(22px, calc((100vw - var(--max)) / 2));
  color: white;
  background: var(--red);
}
.setup-banner .eyebrow { color: white; }
.setup-banner h2 { margin-bottom: 4px; font-size: 1.6rem; }
.setup-banner p { margin: 0; }
.section { max-width: var(--max); margin: auto; padding: clamp(60px, 9vw, 110px) 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; }
.arrow-link { color: var(--red); font-weight: 700; }
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.machine-card { min-width: 0; border-top: 5px solid var(--ink); background: var(--warm); }
.machine-image-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #202020; }
.machine-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform .3s ease, filter .3s ease; }
.machine-image-wrap:hover .machine-image { transform: scale(1.025); filter: grayscale(20%); }
.machine-image.placeholder { background: #222; }
.status-badge { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; color: white; background: var(--success); font-family: var(--heading); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.status-unavailable { background: var(--red); }
.machine-card-body { padding: 25px; }
.machine-card h3 a { text-decoration: none; }
.machine-card-body > p:not(.eyebrow):not(.status-note) { min-height: 5.2em; color: #3f3f3f; }
.machine-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 700; }
.machine-meta a { color: var(--red); }
.status-note { margin: 15px 0 0; padding: 10px; border-left: 4px solid var(--red); background: white; font-size: .85rem; }
.brand-strip { display: flex; overflow: hidden; align-items: center; justify-content: space-around; gap: 20px; padding: 30px; color: white; background: var(--ink); font-family: var(--heading); font-size: clamp(1rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.brand-strip p { margin: 0; }
.brand-strip span { color: var(--red); }
.page-heading, .admin-heading { padding: clamp(60px, 9vw, 110px) max(22px, calc((100vw - var(--max)) / 2)); background: var(--warm); }
.page-heading h1, .admin-heading h1 { max-width: 10ch; }
.page-heading > p:last-child, .admin-heading > p:last-child { max-width: 650px; }
.detail-hero { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 620px; }
.detail-image { min-height: 480px; background: #222; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 90px); background: var(--warm); }
.detail-copy h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
.lead { font-size: 1.15rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 25px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts div { padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.facts dd { margin: 3px 0 0; font-weight: 700; }
.status-text-available { color: var(--success); }
.status-text-unavailable { color: var(--danger); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .65fr); align-items: start; gap: clamp(40px, 7vw, 90px); }
.prose { max-width: 700px; }
.prose h2 { margin-bottom: 30px; }
.prose h3 { margin-top: 30px; }
.prose li { margin-bottom: 8px; }
.booking-panel { padding: 28px; border: 3px solid var(--ink); background: white; box-shadow: 9px 9px 0 var(--red); scroll-margin-top: 92px; }
.booking-panel h2 { font-size: 1.7rem; }
.availability-form, .booking-form, .form-stack { display: grid; gap: 17px; }
.availability-form { grid-template-columns: 1fr 1fr; margin-bottom: 25px; }
.availability-form .button { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-family: var(--heading); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #979797;
  border-radius: 0;
  color: var(--ink);
  background: white;
}
textarea { resize: vertical; text-transform: none; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(255,16,16,.38); outline-offset: 2px; }
label small, .optional { color: var(--muted); font-family: var(--body); font-size: .72rem; font-weight: 400; text-transform: none; }
.slot-fieldset { margin: 0; padding: 0; border: 0; }
.slot-fieldset legend { margin-bottom: 10px; font-family: var(--heading); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.slot { position: relative; display: block; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: grid; min-height: 54px; place-content: center; padding: 7px 5px; border: 1px solid var(--ink); text-align: center; cursor: pointer; }
.slot span strong { font-family: var(--heading); font-size: .88rem; line-height: 1.2; }
.slot span small { color: var(--muted); font-size: .68rem; }
.slot input:checked + span { border-color: var(--red); color: white; background: var(--red); }
.slot input:checked + span small { color: white; }
.slot input:focus-visible + span { outline: 3px solid rgba(255,16,16,.38); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-family: var(--body); font-size: .87rem; font-weight: 400; text-transform: none; }
.check-row input { flex: 0 0 auto; width: 19px; min-height: 19px; margin-top: 3px; }
.check-row.small { align-self: end; }
.notice { padding: 14px; border-left: 5px solid var(--red); background: var(--warm); }
.notice p { margin: 3px 0 0; }
.notice-warning { border-color: var(--warning); }
.empty-state { grid-column: 1 / -1; padding: 38px; border: 1px dashed #999; text-align: center; }
.empty-state.compact { padding: 22px; }
.empty-state h3, .empty-state p { margin-bottom: 5px; }
.sign-in-prompt { padding-top: 10px; }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.schedule-scroll, .table-scroll { overflow-x: auto; border: 1px solid var(--line); }
.schedule-table, .data-table { width: 100%; border-collapse: collapse; text-align: left; }
.schedule-table { min-width: 1050px; table-layout: fixed; }
.schedule-table th, .schedule-table td, .data-table th, .data-table td { padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule-table thead th, .data-table thead th { color: white; background: var(--ink); font-family: var(--heading); font-size: .72rem; text-transform: uppercase; }
.schedule-table th:first-child { width: 190px; }
.schedule-table thead span { display: block; color: #aaa; }
.schedule-item { display: block; margin-bottom: 5px; padding: 5px 7px; font-size: .72rem; line-height: 1.3; }
.schedule-item.open { color: var(--success); background: #e5f5ed; }
.schedule-item.busy { color: white; background: var(--ink); }
.schedule-item.blocked, .schedule-item.closed { color: var(--danger); background: #f8e3e7; }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-size: .82rem; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; }
.legend-open { background: var(--success); }
.legend-busy { background: var(--ink); }
.legend-blocked { background: var(--red); }
.auth-layout { display: grid; grid-template-columns: 1fr minmax(360px, 520px); gap: clamp(50px, 8vw, 120px); max-width: var(--max); min-height: calc(100vh - 78px); margin: auto; padding: clamp(55px, 9vw, 110px) 22px; }
.auth-intro { align-self: center; }
.auth-intro h1 { max-width: 9ch; }
.auth-intro p:last-child { max-width: 560px; font-size: 1.15rem; }
.form-card { align-self: center; display: grid; gap: 18px; padding: clamp(26px, 5vw, 48px); border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--red); }
.form-card h2 { font-size: 1.8rem; }
.form-foot { margin: 0; text-align: center; }
.account-section { padding-bottom: 55px; }
.booking-list { display: grid; gap: 10px; }
.booking-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 22px; padding: 20px; border: 1px solid var(--line); background: white; }
.booking-date { display: grid; text-align: center; }
.booking-date strong { font-family: var(--heading); font-size: 2rem; line-height: 1; }
.booking-date span { color: var(--red); font-family: var(--heading); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.booking-main h3, .booking-main p { margin-bottom: 4px; }
.booking-main p:not(.eyebrow) { color: var(--muted); font-size: .88rem; }
.booking-actions { display: grid; justify-items: end; gap: 8px; }
.muted-section { max-width: none; background: var(--warm); }
.muted-section > * { max-width: calc(var(--max) - 44px); margin-right: auto; margin-left: auto; }
.subdued { opacity: .72; }
.muted-copy { color: var(--muted); }
.error-page { display: grid; min-height: 70vh; place-content: center; justify-items: start; padding: 30px; }
.error-page h1 { max-width: 10ch; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 25px; padding: 55px max(22px, calc((100vw - var(--max)) / 2)); color: white; background: var(--ink); }
.site-footer p { margin: 5px 0; color: #aaa; }
.footer-links { display: grid; justify-items: end; }
.site-footer > small { grid-column: 1 / -1; color: #777; }
.admin-nav { display: flex; overflow-x: auto; align-items: center; gap: 2px; padding: 0 max(20px, calc((100vw - var(--max)) / 2)); color: white; background: var(--ink); white-space: nowrap; }
.admin-nav strong, .admin-nav a { padding: 11px 13px; font-family: var(--heading); font-size: .68rem; text-decoration: none; text-transform: uppercase; }
.admin-nav strong { color: var(--red); }
.admin-nav a:hover { color: var(--ink); background: white; }
.admin-heading { padding-top: 65px; padding-bottom: 65px; }
.admin-heading h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.admin-content { display: grid; gap: 28px; max-width: var(--max); margin: auto; padding: 45px 22px 90px; }
.admin-two-column { grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); align-items: start; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-grid article { display: grid; gap: 8px; padding: 22px; color: white; background: var(--ink); }
.stat-grid span { font-size: .76rem; text-transform: uppercase; }
.stat-grid strong { font-family: var(--heading); font-size: 2.5rem; }
.stat-grid a { color: var(--red); font-size: .8rem; }
.admin-panel { border: 1px solid var(--line); background: white; }
.admin-panel.form-stack { padding: 24px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.form-stack .panel-title { margin: -24px -24px 2px; }
.panel-title h2 { margin: 0; font-size: 1.25rem; }
.panel-title p { margin-bottom: 4px; }
.admin-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.admin-list p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.admin-list > .muted-copy { padding: 20px; }
.row-actions { display: flex; align-items: center; gap: 12px; }
.tag { display: inline-block; padding: 4px 7px; color: white; background: #777; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.tag-confirmed { background: var(--success); }
.tag-cancelled { background: var(--danger); }
.tag-completed { background: var(--ink); }
.form-section { display: grid; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; }
.form-section h2 { margin: 0; font-size: 1.4rem; }
.form-section > p { margin: -9px 0 0; color: var(--muted); }
.chemistry-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hours-row { display: grid; grid-template-columns: 1fr 120px 120px 90px; align-items: end; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-row label span { font-size: .63rem; }
.table-panel { overflow: hidden; }
.data-table { min-width: 950px; }
.data-table td { font-size: .84rem; }
.data-table small { display: block; color: var(--muted); }
.data-table form { display: flex; align-items: center; gap: 8px; }
.data-table select { min-height: 36px; padding: 5px; }
.filter-links { display: flex; gap: 8px; }
.filter-links a { padding: 7px 11px; border: 1px solid var(--ink); font-size: .78rem; font-weight: 700; text-decoration: none; }

@media (max-width: 960px) {
  .site-header { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); background: white; }
  .site-nav.open { display: grid; }
  .site-nav a, .site-nav .text-button { display: block; width: 100%; padding: 11px 0; text-align: left; }
  .nav-cta { padding-right: 12px !important; padding-left: 12px !important; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 65px 22px; }
  .hero-image { min-height: 52vw; }
  .machine-grid { grid-template-columns: 1fr 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-image { aspect-ratio: 16 / 9; min-height: 0; }
  .detail-layout { grid-template-columns: 1fr; }
  .booking-panel { max-width: 650px; }
  .admin-two-column { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-intro h1 { max-width: 11ch; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { padding: 11px 16px; }
  .brand span { font-size: 1.35rem; }
  .hero-copy h1 { font-size: 3.3rem; }
  .hero-image { min-height: 72vw; }
  .setup-banner, .section-heading, .week-nav { align-items: stretch; flex-direction: column; }
  .machine-grid { grid-template-columns: 1fr; }
  .machine-card-body > p:not(.eyebrow):not(.status-note) { min-height: 0; }
  .brand-strip { justify-content: flex-start; }
  .detail-copy { padding: 42px 22px; }
  .facts { grid-template-columns: 1fr; }
  .detail-layout { padding-right: 16px; padding-left: 16px; }
  .booking-panel { padding: 20px; box-shadow: 6px 6px 0 var(--red); }
  .availability-form, .two-fields, .three-fields, .chemistry-price-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .booking-row { grid-template-columns: 54px 1fr; gap: 12px; }
  .booking-actions { grid-column: 2; grid-template-columns: 1fr auto; width: 100%; justify-items: start; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-items: start; }
  .site-footer > small { grid-column: 1; }
  .stat-grid { grid-template-columns: 1fr; }
  .admin-content { padding-right: 16px; padding-left: 16px; }
  .admin-panel.form-stack { padding: 18px; }
  .form-stack .panel-title { margin: -18px -18px 2px; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row > strong, .hours-row .small { grid-column: 1 / -1; }
  .admin-list article { align-items: flex-start; flex-direction: column; }
  .flash-stack { top: 75px; right: 10px; width: calc(100% - 20px); }
}
/* Compact booking UI */
.language-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}
.language-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.language-form select {
  width: auto;
  min-height: 34px;
  padding: 4px 25px 4px 8px;
  border-color: var(--ink);
  font-family: var(--heading);
  font-size: .7rem;
  font-weight: 800;
}
.hero-compact {
  grid-template-columns: minmax(360px, 42%) minmax(0, 58%);
  min-height: 420px;
  max-height: 560px;
}
.hero-compact .hero-copy {
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-compact .hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  letter-spacing: -.045em;
}
.hero-compact .hero-copy > p:not(.eyebrow) {
  max-width: 32rem;
  font-size: 1rem;
}
.hero-compact .hero-image { min-height: 420px; }
.setup-banner {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 20px 22px;
}
.setup-banner h2 { font-size: 1.25rem; }
.setup-banner p { font-size: .9rem; }
.equipment-section { padding-top: 62px; }
.compact-heading {
  padding-top: 44px;
  padding-bottom: 44px;
}
.compact-heading h1,
.admin-heading.compact-heading h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3rem);
}
.compact-detail {
  min-height: 480px;
}
.compact-detail .detail-copy {
  padding: clamp(34px, 5vw, 64px);
}
.compact-detail .detail-copy h1 {
  max-width: 16ch;
  font-size: clamp(2.15rem, 4.5vw, 3.6rem);
}
.compact-auth {
  min-height: auto;
  padding-top: 60px;
  padding-bottom: 72px;
}
.compact-auth .auth-intro h1 {
  max-width: 13ch;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
}
.page-heading h1,
.admin-heading h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
}
@media (max-width: 960px) {
  .hero-compact {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .hero-compact .hero-image { min-height: 300px; }
  .language-form {
    padding: 8px 0;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .hero-compact .hero-copy { padding: 42px 22px; }
  .hero-compact .hero-copy h1 { font-size: 2.25rem; }
  .hero-compact .hero-image { min-height: 62vw; }
  .setup-banner {
    margin: 16px;
    padding: 18px;
  }
  .compact-heading { padding: 36px 22px; }
  .compact-heading h1,
  .admin-heading.compact-heading h1 { font-size: 2.1rem; }
}

.sr-only {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.chemistry-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.price-matrix { min-width: 720px; }
.price-matrix th:first-child { min-width: 210px; }
.price-matrix input { min-width: 110px; }
.price-matrix label { display: block; }
.admin-panel, .form-section { min-width: 0; }
.table-scroll { max-width: 100%; }
.admin-heading .hero-actions { margin-top: 24px; }

@media (max-width: 760px) {
  .chemistry-admin-grid { grid-template-columns: 1fr; }
}

.schedule-help { margin: -10px 0 16px; color: var(--muted); font-size: .88rem; }
.availability-table { min-width: calc(190px + (250px * var(--schedule-days))); table-layout: fixed; }
.availability-table th:first-child { width: 190px; }
.availability-table thead th:not(:first-child) { width: 250px; }
.availability-table thead th small { display: block; margin-top: 3px; color: #aaa; font-family: var(--body); font-size: .66rem; font-weight: 400; text-transform: none; }
.availability-table tbody th { position: sticky; z-index: 2; left: 0; background: white; }
.availability-table thead th:first-child { position: sticky; z-index: 3; left: 0; }
.availability-table tbody th a { display: block; line-height: 1.25; }
.availability-table tbody th small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; font-weight: 400; }
.availability-table td { padding: 8px; }
.hour-block-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.schedule-hour { display: flex; min-width: 0; min-height: 40px; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 8px; border: 1px solid var(--line); text-decoration: none; }
.schedule-hour time { font-family: var(--heading); font-size: .72rem; font-weight: 800; }
.schedule-hour span { overflow: hidden; font-size: .58rem; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.schedule-hour.open { border-color: #8cc8a8; color: var(--success); background: #e5f5ed; }
.schedule-hour.open:hover, .schedule-hour.open:focus-visible { border-color: var(--success); color: white; background: var(--success); }
.schedule-hour.busy { border-color: var(--ink); color: white; background: var(--ink); }
.schedule-hour.blocked { border-color: #e4a5b0; color: var(--danger); background: #f8e3e7; }
.schedule-hour.past { color: #777; background: #ecebe8; }
.legend-past { background: #aaa; }
.schedule-legend { margin-top: 18px; }

@media (max-width: 640px) {
  .availability-table { min-width: calc(140px + (220px * var(--schedule-days))); }
  .availability-table th:first-child { width: 140px; }
  .availability-table thead th:not(:first-child) { width: 220px; }
}

.booking-step { display: grid; gap: 12px; }
.booking-step + .booking-step, .booking-details { padding-top: 20px; border-top: 1px solid var(--line); }
.booking-step h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.booking-step h2 > span { display: inline-grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; color: white; background: var(--ink); font-size: .72rem; }
.open-date-list { display: flex; overflow-x: auto; gap: 6px; max-width: 100%; padding: 2px 2px 8px; scrollbar-width: thin; }
.open-date-list a { display: grid; min-width: 64px; padding: 7px 6px; border: 1px solid var(--ink); text-align: center; text-decoration: none; }
.open-date-list a span, .open-date-list a small { color: var(--muted); font-family: var(--heading); font-size: .62rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.open-date-list a strong { font-family: var(--heading); font-size: 1.25rem; line-height: 1.2; }
.open-date-list a:hover, .open-date-list a:focus-visible, .open-date-list a.active { border-color: var(--red); color: white; background: var(--red); }
.open-date-list a:hover span, .open-date-list a:hover small, .open-date-list a:focus-visible span, .open-date-list a:focus-visible small, .open-date-list a.active span, .open-date-list a.active small { color: white; }
.booking-help { margin: -3px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.selection-summary { display: grid; gap: 2px; padding: 12px 14px; border-left: 4px solid var(--red); background: var(--warm); }
.selection-summary span { color: var(--muted); font-family: var(--heading); font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.selection-summary strong { font-family: var(--heading); font-size: .86rem; }
.selection-summary small { color: var(--red); font-weight: 700; }
.booking-details { gap: 17px; }
.slot-empty-state { margin-top: 18px; }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }

.machine-workspace {
  display: grid;
  grid-template-areas:
    "overview booking"
    "instructions booking";
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, .72fr);
  align-items: start;
  gap: 32px clamp(28px, 4vw, 54px);
  padding-top: 36px;
  padding-bottom: 76px;
}
.machine-overview {
  grid-area: overview;
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(340px, 1.18fr);
  min-width: 0;
  overflow: hidden;
  background: var(--warm);
}
.machine-overview .detail-image { min-height: 320px; }
.machine-overview .detail-copy { padding: clamp(26px, 3.5vw, 44px); }
.machine-overview .detail-copy h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 3vw, 2.8rem);
}
.machine-overview .lead { font-size: 1rem; }
.machine-overview .facts { margin: 18px 0 0; }
.machine-instructions {
  grid-area: instructions;
  max-width: none;
  padding: 28px 32px;
  border-top: 4px solid var(--ink);
  background: var(--warm);
}
.machine-instructions .eyebrow { margin-bottom: 14px; }
.machine-instructions h2 { margin-bottom: 18px; font-size: clamp(1.4rem, 2vw, 2rem); }
.machine-instructions h3 { margin-top: 22px; }
.machine-booking {
  position: sticky;
  top: 94px;
  grid-area: booking;
  align-self: start;
  width: 100%;
}

@media (max-width: 1100px) {
  .machine-overview { grid-template-columns: 1fr; }
  .machine-overview .detail-image { aspect-ratio: 16 / 8; min-height: 0; }
}

@media (max-width: 900px) {
  .machine-workspace {
    grid-template-areas:
      "overview"
      "instructions"
      "booking";
    grid-template-columns: minmax(0, 1fr);
    padding-top: 28px;
  }
  .machine-booking { position: static; max-width: none; }
}

@media (max-width: 640px) {
  .machine-workspace { gap: 24px; padding-right: 16px; padding-left: 16px; }
  .machine-overview .detail-copy { padding: 24px 22px; }
  .machine-instructions { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
