/* Self-hosted Public Sans (variable, weights 100-900) so the brand font no
   longer silently falls back to system-ui. Bundled locally on purpose: no
   third-party font CDN call from a health-clinic page. The latin subset
   covers all Norwegian glyphs (æ ø å, ·, –); latin-ext is a safety net. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/public-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #2d668f;
  --blue-dark: #224f70;
  --navy: #263849;
  --ink: #324250;
  --muted: #5c6b79;
  --line: #dbe4ea;
  --soft-line: #edf2f5;
  --paper: #fbfcfb;
  --surface: #ffffff;
  --cool: #f3f8fa;
  --sand: #f6f1e8;
  --sage: #6f8a7a;
  --warm: #b87948;
  --max: 1320px;
  --pad: 28px;
  --radius: 8px;
  --radius-lg: 14px;
  --button-radius: 6px;
  --soft: #f8fbfc;
  --font: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Type scale. Headings are fluid (the min/max match the old fixed +
     breakpoint sizes) so they scale smoothly instead of jumping at 980/620px.
     The helper sizes give secondary text one source of truth instead of an
     ad-hoc mix of 13/14px. */
  --h1-size: clamp(2.125rem, 0.45rem + 3.5vw, 3.375rem);    /* 34 -> 54 */
  --h1-compact: clamp(1.875rem, 1.45rem + 1.7vw, 2.625rem); /* 30 -> 42, internal tools */
  --h2-size: clamp(1.75rem, 1.3rem + 1.15vw, 2.25rem);      /* 28 -> 36 */
  --lead-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.1875rem); /* 17 -> 19 */
  --text-sm: 0.875rem;   /* 14px - helper / secondary text */
  --text-xs: 0.8125rem;  /* 13px - fine print / captions */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

.split > *,
.grid > * {
  min-width: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 168px;
  height: auto;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 650;
  color: var(--navy);
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
}

.nav a.btn-primary[aria-current="page"] {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--surface);
  color: var(--navy);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--blue);
}

.btn-primary {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.btn-primary:hover {
  background: #1d425d;
  border-color: #1d425d;
}

.btn-soft {
  border-color: rgba(45, 102, 143, 0.28);
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue-dark);
}

.btn-soft:hover {
  background: #eef6f8;
  border-color: rgba(45, 102, 143, 0.42);
}

.btn[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.hero {
  padding: 76px 0 68px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fafb 100%);
  border-bottom: 1px solid var(--line);
}

.hero-home {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 660px;
  align-items: center;
  overflow: hidden;
  background: #f6f3ed;
}

.hero-home::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 34%, rgba(255, 255, 255, 0.56) 49%, rgba(255, 255, 255, 0.08) 67%);
  content: "";
}

.hero-home-media {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero-home-inner {
  width: 100%;
}

.hero-home-copy {
  max-width: 650px;
}

.hero-treatment-list {
  max-width: 630px;
  margin: 20px 0 0;
  color: var(--navy);
  font-size: clamp(0.96rem, 0.86rem + 0.25vw, 1.08rem);
  font-weight: 750;
  line-height: 1.55;
}

.hero-intro {
  max-width: 630px;
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--lead-size);
}

.hero-intro p {
  margin: 0;
}

.hero-intro p + p {
  margin-top: 14px;
}

.grid-2.framework-feature-grid {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.13;
}

h1 {
  max-width: 760px;
  font-size: var(--h1-size);
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2rem, 0.55rem + 3vw, 3rem);
}

.hero-title-line {
  display: block;
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: 21px;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: var(--lead-size);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero .actions .btn-primary {
  min-height: 42px;
  padding-inline: 19px;
}

.hero .actions .btn-soft {
  background: transparent;
}

.portrait {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
}

.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.portrait-tove img {
  aspect-ratio: 4 / 5;
  object-position: 52% 38%;
}

.mood-panel {
  overflow: hidden;
  border: 1px solid rgba(94, 119, 128, 0.16);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(28, 50, 66, 0.08);
}

.mood-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mood-panel .clinic-microscope-image {
  aspect-ratio: 5 / 4;
  object-position: center center;
}

.hero-mood img {
  aspect-ratio: 1 / 1;
}

.hero-mood .biopati-hero-image {
  aspect-ratio: 3 / 2;
  object-position: center center;
}

.content-hero .hero-mood .hbot-hero-image {
  aspect-ratio: 3 / 2;
  object-position: center center;
}

.content-hero .hero-mood .redlight-hero-image {
  aspect-ratio: 3 / 2;
  object-position: center center;
}

.apparatus-main-image img {
  object-fit: contain;
}

.apparatus-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.apparatus-gallery-grid-single {
  max-width: 860px;
  margin-inline: auto;
}

@media (min-width: 981px) {
  .hbot-gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hbot-gallery-grid figure {
    grid-column: span 2;
  }

  .hbot-gallery-grid figure:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

.apparatus-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(28, 50, 66, 0.08);
}

.apparatus-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.apparatus-gallery-grid .apparatus-gallery-portrait img {
  object-fit: contain;
  background: #e9e2d8;
}

.apparatus-gallery-grid figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
}

.hbot-gallery-grid:focus-visible {
  outline: 3px solid rgba(45, 102, 143, 0.65);
  outline-offset: 4px;
}

.section {
  padding: 78px 0;
}

.section.section-home-apparatus {
  padding-top: 0;
}

.section-cool {
  background: var(--cool);
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.section-sand {
  background: var(--sand);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 34px;
}

/* Public marketing headers pair a heading with a supporting line. Keep that
   line grouped beside the heading instead of pushing it to the far right edge,
   where a short heading (e.g. "Pasienterfaringer") left it visually stranded.
   Admin/compact headers keep space-between for their trailing actions/status. */
.section-head:not(.section-head-compact) {
  justify-content: flex-start;
}

.section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid > * {
  min-width: 0;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(28, 50, 66, 0.04);
}

.card-pad {
  padding: 26px;
}

.price-sections {
  display: grid;
  gap: 24px;
}

.price-panel h2 {
  margin-bottom: 10px;
}

.price-group-intro {
  max-width: 760px;
  margin-top: 28px;
}

.price-group-intro h2 {
  margin-bottom: 10px;
}

.price-group-intro p:last-child,
.price-duration {
  margin: 0;
  color: var(--muted);
}

.price-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.price-panel-head > div {
  width: 100%;
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
}

.price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--soft-line);
  text-align: right;
}

.price-table th:first-child {
  text-align: left;
}

.price-table thead th {
  background: var(--cool);
  color: var(--navy);
  font-size: 14px;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody th {
  color: var(--navy);
  font-weight: 700;
}

.price-table td {
  color: var(--navy);
  font-weight: 800;
}

.price-card-grid {
  display: grid;
  gap: 24px;
}

.price-standard {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(420px, 1fr);
  align-items: center;
  gap: 44px;
}

.price-standard .price-list {
  margin-top: 0;
}

.price-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}

.price-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--soft-line);
}

.price-list dt {
  color: var(--muted);
}

.price-list dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.trust-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo-slot {
  width: fit-content;
  min-width: 78px;
  min-height: 46px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b8c8d2;
  border-radius: var(--radius);
  background: #f8fbfc;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Contact sidebar info cards: match the h3-scale card titles used elsewhere. */
.contact-info .card h2 {
  font-size: 21px;
  margin-bottom: 4px;
}

/* Grid cards with a trailing CTA: pin the button to the bottom so CTAs align across a row. */
.card.text-block {
  display: flex;
  flex-direction: column;
}

.card.text-block .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card.text-block p:last-of-type {
  margin-bottom: 22px;
}

.service-card h3 {
  margin-top: 0;
}

.service-card p,
.apparatus-card p,
.text-block p,
.timeline p,
.quote p {
  margin: 10px 0 0;
  color: var(--muted);
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.5;
}

.quote figcaption {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 800;
}

.apparatus-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.apparatus-card .card-pad {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.apparatus-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Let each compact front-page CTA follow its own copy instead of creating
   visibly different empty gaps just to align the buttons across the row. */
.section-home-apparatus .apparatus-card .btn {
  margin-top: 22px;
}

.section-home-apparatus .apparatus-card p {
  margin-bottom: 0;
}

/* Keep a clear minimum gap before the card CTA even when the text fills the card. */
.apparatus-card .list {
  margin-bottom: 28px;
}

/* On apparatbehandlinger.html each card title is an <h2>; at the full 36px
   it reads as a section heading and crowds the card. Step it down so the
   treatment name leads its card without competing with section headings. */
.apparatus-card h2 {
  font-size: 28px;
}

.apparatus-card h2,
.apparatus-card h3 {
  overflow-wrap: anywhere;
}

@media (min-width: 981px) {
  .grid-4 .apparatus-card h3 {
    min-height: 5.2em;
  }

  .grid-4 .apparatus-card p {
    margin-bottom: 22px;
  }
}

.asset-slot {
  min-height: 190px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #f5f8f7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.asset-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.grid-2 .apparatus-card .asset-slot {
  min-height: 240px;
  aspect-ratio: 16 / 10;
}

.badge {
  display: block;
  margin: 16px 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.process-step .step-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(45, 102, 143, 0.18);
  border-radius: var(--radius);
  background: rgba(45, 102, 143, 0.07);
  color: var(--blue);
}

.step-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.text-block p + p {
  margin-top: 16px;
}

.wide-copy {
  max-width: 820px;
}

/* Text-block rhythm: the generic `.text-block p` rule above otherwise
   zeroes the eyebrow's bottom margin (it wins on specificity), leaving
   the kicker glued to the heading. Restore that gap, give the heading
   room before body copy, and separate a trailing CTA from the paragraph
   above it. Card text-blocks keep their pinned-to-bottom CTA via the more
   specific `.card.text-block .btn` rule. */
.text-block .eyebrow {
  margin: 0 0 14px;
}

.text-block h2 + p {
  margin-top: 16px;
}

.content-subheading,
.framework-feature-grid .list + h3,
.framework-feature-grid p + h3 {
  margin-top: 28px;
}

.text-block .btn {
  margin-top: 26px;
}

.list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding-left: 20px;
  position: relative;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.page-hero {
  padding: 56px 0;
  background: var(--cool);
  border-bottom: 1px solid var(--line);
}

.content-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 44px;
  align-items: center;
}

.content-hero .hero-copy {
  max-width: 680px;
}

.biopati-content-hero .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
}

.hbot-content-hero .wrap,
.redlight-content-hero .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
}

.content-hero-plain .wrap {
  display: block;
}

.content-hero-plain .hero-copy {
  max-width: 820px;
}

.hero-aside {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.hero-aside .eyebrow {
  margin-bottom: 0;
}

.hero-aside-place {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
}

.hero-aside .btn {
  margin-top: 6px;
}

@media (max-width: 820px) {
  .content-hero .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-aside {
    justify-self: stretch;
  }
}

.product-hero {
  padding: 28px 0 24px;
}

.product-hero .eyebrow {
  margin-bottom: 8px;
}

.product-hero h1 {
  max-width: 780px;
}

.product-hero .lead {
  max-width: 760px;
  margin-top: 10px;
}

.booking-hero {
  padding: 34px 0 30px;
}

.admin-hero {
  padding: 16px 0 14px;
}

/* Internal tools (booking / admin / protokoll) share a compact hero heading,
   distinct from the larger marketing H1, so the working surfaces feel like
   tools rather than landing pages. */
.admin-hero h1,
.booking-hero h1 {
  font-size: var(--h1-compact);
}

.admin-hero .lead {
  margin-top: 6px;
  font-size: 15px;
}

.admin-hero + .prototype-alert .prototype-alert-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.admin-section {
  padding-top: 34px;
}

.crumbs {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.timeline {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step .step-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border: 1px solid rgba(45, 102, 143, 0.18);
  border-radius: var(--radius);
  background: rgba(45, 102, 143, 0.07);
  color: var(--blue);
}

.step .step-icon svg {
  width: 19px;
  height: 19px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(45, 102, 143, 0.65);
  outline-offset: 2px;
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3e2c0;
  color: #5d4422;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 720px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px dashed #d9c6a8;
  border-radius: var(--radius);
  background: #fffaf0;
  color: #6f5538;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.draft-note .demo-tag {
  margin-top: 2px;
}

.section-review {
  background: #f6f8f5;
}

.claim-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.claim-review-card {
  padding: 22px;
  border: 1px solid rgba(125, 87, 55, 0.24);
  border-radius: var(--radius-sm);
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(54, 45, 32, 0.06);
}

.claim-review-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(125, 87, 55, 0.22);
  border-radius: 999px;
  background: rgba(244, 230, 204, 0.55);
  color: #6f563e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.claim-review-card h3 {
  margin-top: 18px;
  font-size: 16px;
}

.claim-review-card h3:first-of-type {
  margin-top: 0;
}

.claim-review-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.62;
}

.demo-stack {
  order: 7;
  display: grid;
  gap: 10px;
}

.demo-stack-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-panel .demo-stack {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
}

.notice {
  max-width: 720px;
  padding: 18px;
  border: 1px solid #d9cbb8;
  border-radius: var(--radius);
  background: #fff8ec;
  color: #6f5538;
  line-height: 1.55;
}

.prototype-alert {
  border-top: 1px solid #f0d9b5;
  border-bottom: 1px solid #f0d9b5;
  background: #fff7e8;
}

.prototype-alert-inner {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  color: #684d2e;
}

.prototype-alert strong,
.prototype-note strong {
  color: #3f2d19;
  font-weight: 850;
}

.prototype-alert span {
  font-size: 15px;
  line-height: 1.55;
}

.compact-alert .prototype-alert-inner {
  grid-template-columns: auto minmax(0, 1fr);
  padding-top: 9px;
  padding-bottom: 9px;
}

.compact-alert strong {
  white-space: nowrap;
}

.compact-alert span {
  font-size: 14px;
}

.prototype-note {
  padding: 14px 16px;
  border: 1px solid #e7d1ad;
  border-radius: var(--radius);
  background: #fffaf0;
  color: #62492b;
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 850;
}

summary::marker {
  color: var(--blue);
}

.collapse-note p,
details.integration-note p {
  padding-top: 8px;
}

.prototype-note p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.prototype-note-compact {
  margin-bottom: 20px;
}

.demo-checklist {
  margin: 18px 0 22px;
  padding: 20px;
  border: 1px solid #cfdfe4;
  border-radius: var(--radius);
  background: #f7fbfc;
}

.demo-checklist[open] {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.demo-checklist summary {
  grid-column: 1 / -1;
}

.demo-checklist h2 {
  font-size: 24px;
}

.demo-checklist p {
  margin: 10px 0 0;
  color: var(--muted);
}

.demo-checklist ol {
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
}

.demo-checklist li + li {
  margin-top: 6px;
}

.demo-checklist-compact {
  display: block;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.demo-checklist-compact strong {
  color: var(--navy);
}

.demo-checklist-compact ol {
  margin-top: 8px;
}

.access-mode {
  display: grid;
  gap: 3px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid #d7e4df;
  border-radius: var(--radius);
  background: #f5fbf8;
  color: #365a4e;
}

.access-mode strong {
  color: #24483c;
  font-weight: 850;
}

.access-mode span {
  font-size: 13px;
  line-height: 1.45;
}

.access-request-block {
  padding: 18px;
  border: 1px solid #d7e4df;
  border-radius: var(--radius);
  background: #f8fbf9;
}

.access-request-block form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.access-request-block .btn {
  width: 100%;
}

.access-request-result {
  display: grid;
  gap: 5px;
}

.access-request-result strong,
.access-request-result span,
.access-request-result a {
  display: block;
}

.access-request-result a {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-weight: 800;
}

.access-token-form {
  display: grid;
  gap: 8px;
}

.access-token-form button,
.access-token-card button,
.created-access-link button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.access-token-card {
  gap: 8px;
}

.created-access-link {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #a8cdbb;
  border-radius: var(--radius);
  background: #eef8f2;
  box-shadow: 0 10px 24px rgba(36, 72, 60, 0.08);
}

.created-access-link strong,
.created-access-link span,
.created-access-link a {
  display: block;
}

.created-access-link strong {
  color: var(--navy);
  font-size: 17px;
}

.created-access-link span {
  margin-top: 3px;
  color: #426c55;
  font-size: 13px;
}

.created-access-link a {
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border: 1px solid #c9dfd3;
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-weight: 750;
}

.created-access-link button {
  justify-self: start;
  min-width: 132px;
  background: var(--navy);
  color: #fff;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

.help {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.form-status {
  margin: 0;
  color: var(--navy);
  font-size: var(--text-sm);
  font-weight: 750;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="error"] {
  color: #8c2f24;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.booking-panel,
.booking-workspace,
.booking-step,
.booking-confirm,
.booking-two-col > section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(28, 50, 66, 0.04);
}

.booking-panel,
.booking-workspace {
  min-width: 0;
  padding: 24px;
}

.booking-confirm:focus,
.customer-move-panel:focus,
.customer-cancel-panel:focus,
.customer-move-confirm-panel:focus,
.admin-move-panel:focus {
  outline: 3px solid rgba(82, 132, 148, 0.28);
  outline-offset: 3px;
}

.booking-panel {
  position: sticky;
  top: 98px;
}

.ledger-block {
  margin-top: 24px;
}

.booking-action {
  width: 100%;
  margin-top: 10px;
}

.package-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.package-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.package-card.is-active {
  border-color: var(--blue);
  background: #f8fbfc;
}

.package-card button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.package-card strong,
.package-card span {
  display: block;
}

.package-card span {
  color: var(--muted);
  font-size: 14px;
}

.package-meter {
  height: 8px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-line);
}

.package-meter span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.package-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.package-card dt {
  color: var(--muted);
  font-size: 12px;
}

.package-card dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.package-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.booking-toolbar,
.booking-status,
.booking-confirm,
.appointment-row,
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.booking-status {
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cool);
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.booking-status span {
  color: var(--muted);
  font-size: 14px;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-top: 24px;
}

.booking-step {
  padding: 20px;
}

.booking-step-wide {
  grid-column: 1 / -1;
}

.step-kicker {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 10px;
  margin-top: 14px;
}

.slot {
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.slot strong,
.slot span {
  display: block;
}

.slot span {
  color: var(--muted);
  font-size: 13px;
}

.slot.is-selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.slot.is-selected span {
  color: rgba(255,255,255,0.82);
}

.slot:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
}

.booking-confirm {
  margin-top: 16px;
  padding: 20px;
  border-color: var(--line);
  background: #fff;
}

.booking-confirm.is-ready {
  align-items: flex-start;
  border-color: rgba(46, 111, 157, 0.42);
  background: #f8fbfc;
}

.booking-confirm:not(.is-ready) .btn:disabled {
  border-color: #d5e2e8;
  background: #dce9ef;
  color: #6b7f8b;
  opacity: 0.72;
}

.selection-detail {
  margin: 6px 0 0;
  color: var(--muted);
}

.confirmation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px 18px;
  margin: 14px 0 0;
}

.confirmation-list div {
  padding: 10px 0;
  border-top: 1px solid var(--soft-line);
}

.confirmation-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.confirmation-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.booking-error {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #ecc8bb;
  border-radius: var(--radius);
  background: #fdf1ec;
  color: #8c4a32;
  font-weight: 650;
}

.booking-error.is-success {
  border-color: #c9dfd3;
  background: #edf7f1;
  color: #426c55;
}

.booking-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 16px;
}

.booking-two-col > section {
  min-width: 0;
  padding: 20px;
}

.booking-technical-status {
  margin-top: 0;
}

.private-booking-view .customer-demo-stack,
.private-booking-view .booking-technical-status,
.private-booking-view .booking-internal-note,
.public-booking-link-required .customer-demo-stack,
.public-booking-link-required .booking-technical-status,
.public-booking-link-required .booking-internal-note {
  display: none;
}

.public-booking-link-required .booking-shell {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.public-booking-link-required .booking-panel {
  position: static;
}

.public-booking-link-required .booking-workspace,
.public-booking-link-required .balance-ledger {
  display: none;
}

.private-booking-view .booking-two-col {
  grid-template-columns: 1fr;
}

.public-booking-link-required .access-request-block {
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
}

.public-booking-link-required .access-request-block h3 {
  margin-bottom: 12px;
}

.demo-only-control[hidden] {
  display: none;
}

.appointment-list,
.admin-summary {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.appointment-group {
  display: grid;
  gap: 10px;
}

.appointment-group + .appointment-group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
}

.appointment-group h4 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.appointment-group-history .appointment-row {
  background: #fbfcfb;
}

.appointment-row {
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
  align-items: flex-start;
}

.appointment-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.appointment-row span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.appointment-actions .btn {
  min-height: 38px;
  padding: 9px 12px;
}

.appointment-consequence {
  max-width: 58ch;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.customer-move-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfc;
}

.customer-cancel-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #efd7bc;
  border-radius: var(--radius);
  background: #fff8ef;
}

.customer-cancel-panel strong {
  color: var(--ink);
}

.customer-cancel-panel p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.customer-move-confirm-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #c8ddea;
  border-radius: var(--radius);
  background: #f4f9fc;
}

.customer-move-confirm-panel strong {
  color: var(--ink);
}

.customer-move-confirm-panel .confirmation-list {
  margin-top: 0;
}

.customer-move-confirm-panel .confirmation-list div {
  padding: 8px 0 0;
}

.customer-move-panel label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.customer-move-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.move-slot-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
}

.move-slot-choice span {
  color: var(--ink);
  font-weight: 750;
}

.move-slot-choice.is-disabled {
  opacity: 0.48;
}

.status {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--cool);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.status-completed {
  background: #e8f2ed;
  color: #426c55;
}

.status-booked {
  background: #edf4f7;
  color: var(--blue);
}

.status-cancelled {
  background: #f3f0ea;
  color: #78664e;
}

.status-no_show {
  background: #f7e8e3;
  color: #94523f;
}

.integration-note {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cool);
}

details.integration-note {
  background: #f8fbfc;
}

.integration-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

.summary-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
}

.summary-line:last-child {
  border-bottom: 0;
}

.admin-shell {
  display: grid;
  gap: 14px;
}

.admin-toolbar,
.admin-actions,
.admin-kpis,
.admin-grid,
.admin-row-actions {
  display: flex;
  gap: 12px;
}

.admin-toolbar {
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #f8fbfc;
}

.admin-toolbar h2 {
  font-size: 24px;
}

.admin-utility-bar {
  order: 4;
  padding: 10px 12px;
  background: #fff;
}

.admin-utility-bar .eyebrow {
  margin-bottom: 2px;
}

.admin-utility-bar h2 {
  font-size: 17px;
}

.admin-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-form-status {
  order: 5;
  min-height: 0;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-form-status:empty {
  display: none;
}

.admin-form-status:not(:empty) {
  padding: 10px 12px;
  border: 1px solid #c8ddea;
  border-radius: var(--radius);
  background: #f4f9fc;
  color: var(--navy);
  font-weight: 750;
}

.admin-kpis {
  order: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-mode-nav {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  padding: 6px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #eef5f6;
  width: 100%;
}

.admin-mode-nav button {
  flex: 1 1 150px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.admin-mode-nav button:hover,
.admin-mode-nav button:focus-visible {
  border-color: rgba(54, 94, 110, 0.24);
  color: var(--blue);
}

.admin-mode-nav button.is-active {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(28, 50, 66, 0.08);
}

.admin-workspace-panel {
  order: 2;
  display: grid;
  gap: 18px;
}

.admin-workspace-panel[hidden] {
  display: none;
}

.admin-kpi,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(28, 50, 66, 0.04);
}

.admin-kpi {
  padding: 18px;
}

.admin-kpi span,
.muted {
  color: var(--muted);
}

.admin-kpi strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 32px;
}

.admin-card {
  padding: 22px;
}

.admin-auth-gate {
  display: flex;
  justify-content: center;
}

/* The hidden attribute must win over the flex/grid display rules below. */
.admin-auth-gate[hidden],
[data-admin-app][hidden] {
  display: none;
}

.admin-auth-card {
  width: 100%;
  max-width: 460px;
  text-align: left;
}

.admin-auth-card h2 {
  margin: 6px 0 10px;
}

.admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 12px;
}

.admin-auth-form label {
  font-weight: 600;
  color: var(--navy);
}

.admin-auth-form input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.admin-auth-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.admin-auth-status {
  margin: 0;
  min-height: 1.2em;
  color: #b0413e;
  font-size: 14px;
}

.token-status {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.token-status.is-active {
  background: #e3f1e8;
  color: #1f6b43;
}

.token-status.is-expired {
  background: #fbeede;
  color: #8a5a16;
}

.token-status.is-revoked {
  background: #f7e0df;
  color: #9a3b38;
}

.admin-customer-card {
  padding: 0;
  overflow: hidden;
}

.admin-customer-card > .section-head {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--soft-line);
  background: #fff;
}

.admin-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-card-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.admin-disclosure {
  padding: 18px 20px;
  background: #f8fbfc;
}

.admin-disclosure .section-head {
  margin-top: 16px;
}

.admin-secondary-panel {
  background: #f8fbfc;
}

.admin-secondary-panel > summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 850;
}

.admin-secondary-panel[open] > summary {
  margin-bottom: 12px;
}

.customer-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: #fff;
}

.customer-finder {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #f8fbfc;
}

.customer-directory {
  position: sticky;
  top: 86px;
  max-height: min(620px, calc(100vh - 120px));
}

.customer-finder-head {
  display: grid;
  gap: 10px;
}

.customer-finder-head strong,
.customer-finder-head label {
  display: block;
}

.customer-finder-head strong {
  color: var(--navy);
}

.customer-finder-head label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.customer-finder-head input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.customer-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 2px;
}

.customer-list button {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.customer-list button.is-active {
  border-color: var(--blue);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14, 42, 52, 0.14);
}

.customer-list button.is-active span {
  color: rgba(255,255,255,0.72);
}

.customer-list span,
.customer-profile-head span,
.customer-mini-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.customer-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.customer-profile {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 50, 66, 0.06);
}

.customer-empty-state {
  display: grid;
  min-height: 160px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: #fff;
}

.customer-empty-state strong {
  display: block;
  max-width: 520px;
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 24px;
}

.customer-empty-state p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
}

.customer-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soft-line);
}

.customer-profile-head strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.customer-profile-label {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-ready-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.customer-ready-badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.customer-ready-badge.is-ok {
  background: #e3f1e8;
  color: #1f6b43;
}

.customer-ready-badge.is-missing {
  background: #fbeede;
  color: #8a5a16;
}

.customer-metric-grid,
.customer-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-metric-grid article,
.customer-summary-grid > div {
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.customer-metric-grid span,
.customer-metric-grid small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.customer-metric-grid strong {
  display: block;
  margin: 4px 0;
  color: var(--navy);
  font-size: 24px;
}

.customer-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-summary-grid h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
}

.customer-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-overview-grid,
.customer-tool-grid,
.customer-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-admin-tools {
  padding: 14px 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #f8fbfc;
}

.customer-admin-tools + .customer-admin-tools {
  margin-top: 2px;
}

.customer-admin-tools[open] summary {
  margin-bottom: 14px;
}

.customer-actions {
  margin: 0;
}

.customer-action-panels {
  display: grid;
  gap: 12px;
}

.customer-action-card {
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
}

.customer-action-card-primary {
  border-color: rgba(54, 94, 110, 0.28);
  box-shadow: inset 4px 0 0 var(--blue);
}

.customer-action-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.customer-action-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.customer-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-task-row {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-top: 1px solid var(--soft-line);
  background: #fff;
}

.customer-task-row[hidden] {
  display: none;
}

.customer-mini-grid h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
}

.customer-mini-card {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
}

.adjustment-form {
  display: grid;
  gap: 10px;
}

.adjustment-form label,
.adjustment-form label span {
  display: block;
}

.adjustment-form label span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.adjustment-form input,
.adjustment-form select {
  width: 100%;
  min-height: 40px;
}

.adjustment-form button {
  min-height: 40px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.section-head-compact {
  margin-bottom: 16px;
}

.appointment-overview-grid,
.admin-operations-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.appointment-overview-grid article,
.admin-operations-summary article,
.admin-empty-workspace {
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #f8fbfc;
}

.appointment-overview-grid span,
.appointment-overview-grid small,
.admin-operations-summary span,
.admin-operations-summary small,
.admin-empty-workspace span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.appointment-overview-grid strong,
.admin-operations-summary strong,
.admin-empty-workspace strong {
  display: block;
  margin: 4px 0;
  color: var(--navy);
  font-size: 22px;
}

.admin-calendar-list {
  display: grid;
  gap: 22px;
}

.admin-calendar-section {
  display: grid;
  gap: 12px;
}

.admin-calendar-section-head {
  display: grid;
  gap: 4px;
}

.admin-calendar-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-calendar-section h3,
.admin-date-group h4 {
  margin: 0;
  color: var(--navy);
}

.admin-date-group {
  display: grid;
  gap: 10px;
}

.admin-date-group h4 {
  padding-top: 4px;
  font-size: 16px;
  text-transform: capitalize;
}

.admin-appointment-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(180px, 1.1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-appointment-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.admin-row-actions {
  flex-wrap: wrap;
}

.admin-appointment-open {
  display: flex;
  justify-content: flex-end;
}

.admin-detail-open {
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfc;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.admin-detail-open:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.admin-row-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.admin-row-actions .admin-status-completed {
  border-color: rgba(73, 125, 90, 0.3);
  color: #2f6f43;
}

.admin-row-actions .admin-status-cancelled {
  color: var(--muted);
}

.admin-row-actions .admin-status-noshow {
  border-color: rgba(163, 96, 47, 0.34);
  color: #9a5a27;
}

.admin-row-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.admin-move-row td {
  background: var(--soft);
}

.admin-move-row {
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--soft);
}

.admin-move-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 14px;
  align-items: end;
}

.admin-move-panel strong,
.admin-move-panel span,
.admin-move-panel label {
  display: block;
}

.admin-move-panel label span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-move-panel select,
.admin-move-panel input {
  width: 100%;
  min-height: 40px;
}

.admin-package-card {
  gap: 12px;
}

.status-row-cancelled {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-action-grid {
  grid-template-columns: minmax(280px, 560px);
}

.admin-form-grid-wide {
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-form h3 {
  margin: 0;
}

.admin-primary-action {
  border-color: rgba(54, 94, 110, 0.34);
  background: #f8fbfc;
  box-shadow: inset 4px 0 0 var(--blue);
}

.selected-customer-note {
  margin: -4px 0 2px;
  padding: 10px 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #f8fbfc;
  color: var(--muted);
  font-size: 14px;
}

.selected-customer-note.is-blocked {
  border-color: rgba(163, 96, 47, 0.24);
  background: #fff8ed;
}

.admin-primary-action.is-blocked {
  border-color: var(--soft-line);
  box-shadow: inset 4px 0 0 #d7e3e8;
}

.admin-primary-action select:disabled,
.admin-primary-action input:disabled {
  border-color: #d8e5eb;
  background: #eef5f7;
  color: #718590;
  opacity: 1;
}

.admin-primary-action button:disabled {
  border-color: #cddde4;
  background: #d8e7ec;
  color: #718590;
  opacity: 1;
}

.grant-form-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(110px, 0.7fr);
}

.admin-dialog {
  width: min(680px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(14, 42, 52, 0.28);
}

.admin-dialog::backdrop {
  background: rgba(14, 42, 52, 0.44);
}

.admin-dialog .admin-form {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 22px;
}

.dialog-head,
.dialog-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-head h2 {
  margin: 0;
  color: var(--navy);
}

.dialog-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dialog-actions {
  justify-content: flex-end;
}

/* Appointment detail modal: full info + status/move actions for one booking. */
.appointment-dialog {
  width: min(560px, calc(100vw - 32px));
}

.appointment-dialog-body {
  padding: 22px;
}

.appointment-dialog .dialog-head {
  margin-bottom: 18px;
}

.appointment-dialog .dialog-head h2 {
  text-transform: capitalize;
}

.appointment-detail-time {
  margin: 4px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.appointment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.appointment-detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.appointment-detail-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.appointment-detail-grid dd span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.appointment-detail-actions {
  margin-top: 18px;
}

.appointment-detail-actions-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.appointment-detail-closed {
  margin: 18px 0 0;
}

.admin-confirm-panel {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #c8ddea;
  border-radius: var(--radius);
  background: #f4f9fc;
}

.admin-confirm-panel[hidden] {
  display: none;
}

.admin-confirm-panel:focus {
  outline: 3px solid rgba(82, 132, 148, 0.28);
  outline-offset: 3px;
}

.admin-confirm-panel strong {
  color: var(--ink);
}

.admin-confirm-panel p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-confirm-panel-danger {
  border-color: #efd7bc;
  background: #fff8ef;
}

.admin-reset-confirm {
  margin-top: -4px;
  margin-bottom: 18px;
}

.appointment-dialog .admin-row-actions button {
  min-height: 40px;
  padding: 0 14px;
}

.appointment-dialog .admin-move-row {
  margin-top: 4px;
}

.appointment-dialog .admin-move-panel {
  grid-template-columns: 1fr;
  gap: 12px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.blocked-period-list {
  display: grid;
  gap: 10px;
}

.blocked-period-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--cool);
}

.blocked-period-card span,
.blocked-period-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.blocked-period-card button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.admin-internal-time-work {
  margin-top: 18px;
}

.internal-time-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
}

.internal-time-resources[hidden] {
  display: none;
}

.internal-time-resources legend {
  padding: 0 6px;
  color: var(--navy);
  font-weight: 750;
}

.internal-time-repeat-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: end;
}

.internal-time-repeat-row label,
.internal-time-repeat-row input {
  width: 100%;
}

.internal-time-repeat-row .check-row {
  width: auto;
  min-height: 42px;
}

.internal-time-repeat-row .check-row input {
  width: 18px;
}

.internal-time-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 720px) {
  .internal-time-repeat-row {
    grid-template-columns: 1fr;
  }

  .internal-time-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .internal-time-actions {
    justify-content: flex-start;
  }
}

.site-footer {
  padding: 48px 0 28px;
  background: var(--navy);
  color: rgba(255,255,255,0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 36px;
}

.site-footer a {
  color: rgba(255,255,255,0.84);
  text-decoration: none;
}

.site-footer h3 {
  color: #fff;
  font-size: 16px;
}

.footer-logo {
  width: 180px;
  margin-bottom: 18px;
  padding: 8px;
  border-radius: var(--radius);
  background: #fff;
}

.footer-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.fineprint {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.58);
  font-size: var(--text-xs);
}

@media (max-width: 1180px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-shell,
  .booking-grid,
  .booking-two-col,
  .admin-grid,
  .admin-form-grid,
  .admin-form-grid-wide,
  .customer-dashboard,
  .customer-metric-grid,
  .customer-summary-grid,
  .customer-task-row,
  .customer-mini-grid,
  .customer-secondary-actions,
  .admin-appointment-card,
  .admin-move-panel {
    grid-template-columns: 1fr;
  }

  .customer-directory {
    position: static;
    max-height: none;
  }

  .customer-list {
    max-height: 288px;
  }

  .admin-appointment-open {
    justify-content: flex-start;
  }

  .booking-panel {
    position: static;
    order: 2;
  }

  .booking-workspace {
    order: 1;
  }

  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-overview-grid,
  .customer-tool-grid,
  .customer-history-grid {
    grid-template-columns: 1fr;
  }

  .customer-task-row {
    padding: 18px;
  }
}

.protocol-shell {
  display: grid;
  gap: 18px;
}

.protocol-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}

.protocol-intro-card {
  display: grid;
  gap: 12px;
}

.protocol-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.protocol-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.protocol-steps li > span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.protocol-steps strong {
  display: block;
  color: var(--navy);
}

.protocol-steps p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.protocol-scope-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.protocol-scope-list li {
  position: relative;
  padding-left: 28px;
  color: var(--navy);
  line-height: 1.45;
}

.protocol-scope-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}

.protocol-scope-list li.is-yes::before {
  content: "\2713";
  color: var(--blue);
}

.protocol-scope-list li.is-no::before {
  content: "\2715";
  color: var(--muted);
}

.protocol-status {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3e2c0;
  color: #5d4422;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.protocol-mobile-bar {
  display: none;
}

.protocol-mobile-bar-jump {
  flex: 1;
  display: grid;
  gap: 1px;
  text-align: left;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}

.protocol-mobile-bar-jump strong {
  font-size: 15px;
}

.protocol-mobile-bar-jump span {
  font-size: 12px;
  color: var(--muted);
}

.protocol-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.protocol-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}

.protocol-items {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.protocol-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
}

.protocol-item.is-selected {
  border-color: rgba(45, 102, 143, 0.55);
  background: #f8fbfc;
}

.protocol-item-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.protocol-item p {
  margin: 0;
}

.protocol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.protocol-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--cool);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.protocol-source {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.protocol-selection {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.selected-items {
  display: grid;
  gap: 10px;
}

.selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fff;
}

.selected-item strong,
.selected-item span {
  display: block;
}

.selected-item span {
  color: var(--muted);
  font-size: 13px;
}

.selected-actions {
  display: flex;
  gap: 6px;
}

.selected-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.selected-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.protocol-output-tools {
  display: grid;
  gap: 6px;
}

#protocol-output {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.protocol-notes p {
  margin: 12px 0 0;
}

@media (max-width: 1180px) {
  .protocol-intro,
  .protocol-layout,
  .protocol-filter-grid {
    grid-template-columns: 1fr;
  }

  .protocol-selection {
    position: static;
  }

  .protocol-mobile-bar:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(38, 56, 73, 0.12);
  }

  .protocol-mobile-bar .btn {
    flex: 0 0 auto;
  }

  body.has-protocol-bar {
    padding-bottom: 82px;
  }
}

@media (max-width: 620px) {
  .price-table {
    min-width: 0;
    table-layout: fixed;
  }

  .price-table th,
  .price-table td {
    padding: 12px 7px;
    font-size: 12px;
  }

  .price-table th:first-child {
    width: 40%;
  }

  .protocol-item-main,
  .selected-item {
    align-items: flex-start;
    flex-direction: column;
  }
}


@media (max-width: 980px) {
  .bar,
  .section-head,
  .fineprint {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 10px;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .nav .btn {
    min-height: 36px;
    padding: 8px 12px;
  }

  .price-panel-head,
  .price-standard {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-standard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .price-standard .price-list {
    width: 100%;
    margin-top: 20px;
  }

  .hero-grid,
  .split,
  .process-grid,
  .claim-review-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .booking-shell,
  .booking-grid,
  .booking-two-col {
    grid-template-columns: 1fr;
  }

  .grid-2.framework-feature-grid {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    position: static;
  }

  .prototype-alert-inner {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .demo-checklist {
    grid-template-columns: 1fr;
  }

  .demo-checklist[open] {
    grid-template-columns: 1fr;
  }

}

/* The general 980px collapse is useful for dense application views, but public
   marketing cards and the footer still have enough room for columns on tablets. */
@media (min-width: 621px) and (max-width: 980px) {
  .section-home-apparatus .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-home-apparatus .asset-slot {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .portrait-tove {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .hbot-gallery-grid figure:last-child:nth-child(odd) {
    width: calc((100% - 20px) / 2);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(140px, 0.7fr) minmax(0, 1fr);
    gap: 28px;
  }

  .fineprint {
    align-items: center;
    flex-direction: row;
  }
}

@media (min-width: 621px) and (max-width: 699px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .fineprint {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 18px;
  }

  .site-header {
    position: static;
  }

  .bar {
    min-height: auto;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .grid-2 .apparatus-card .asset-slot {
    min-height: 0;
  }

  .section-home-apparatus .asset-slot {
    aspect-ratio: 4 / 3;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 120px;
  }

  .brand small {
    display: none;
  }

  .nav {
    font-size: 13px;
    gap: 8px;
    padding-bottom: 6px;
  }

  .nav a {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: var(--button-radius);
    background: var(--surface);
  }

  .nav .btn {
    min-height: 34px;
  }

  .hero {
    padding: 28px 0 34px;
  }

  .hero-home {
    display: block;
    min-height: 0;
    padding: 0 0 34px;
    overflow: visible;
  }

  .hero-home::after {
    display: none;
  }

  .hero-home-media {
    position: relative;
    z-index: auto;
    height: 290px;
  }

  .hero-home-media img {
    object-position: 70% 38%;
  }

  .hero-home-inner {
    position: relative;
    z-index: 1;
    margin-top: -28px;
  }

  .hero-home-copy {
    padding: 24px 18px 4px;
    border: 1px solid rgba(94, 119, 128, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 36px rgba(28, 50, 66, 0.1);
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero .lead {
    margin-top: 16px;
  }

  .hero-treatment-list {
    margin-top: 16px;
  }

  .hero-intro {
    margin-top: 20px;
    font-size: 1rem;
  }

  .hero .actions {
    margin-top: 22px;
    gap: 14px;
  }

  .framework-feature-grid .list li {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--soft-line);
  }

  .framework-feature-grid .list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hbot-gallery-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 300px);
    justify-content: start;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .hbot-gallery-grid figure {
    scroll-snap-align: start;
  }

  .page-hero {
    padding: 42px 0;
  }

  .section {
    padding: 54px 0;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero .hero-mood img {
    aspect-ratio: 21 / 8;
  }

  .content-hero .hero-mood img {
    aspect-ratio: 16 / 10;
  }

  .slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-toolbar,
  .booking-confirm,
  .appointment-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-move-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-confirm .btn {
    width: 100%;
  }

  .confirmation-list {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form-status {
    text-align: left;
  }

  .admin-form-status:not(:empty) {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 20;
    margin: 0;
    box-shadow: 0 12px 28px rgba(14, 42, 52, 0.2);
  }

  .admin-kpis,
  .appointment-overview-grid,
  .admin-operations-summary,
  .admin-form-grid,
  .admin-grid,
  .customer-dashboard,
  .customer-metric-grid,
  .customer-summary-grid,
  .customer-task-row,
  .customer-mini-grid,
  .customer-overview-grid,
  .customer-tool-grid,
  .customer-history-grid,
  .customer-secondary-actions,
  .admin-appointment-card,
  .admin-move-panel {
    grid-template-columns: 1fr;
  }

  .admin-detail-open {
    width: 100%;
  }

  .appointment-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Site header: skip link + zero-JS responsive menu.
   Desktop keeps the normal inline nav (a plain element, so it
   sizes reliably). On narrow screens a hidden, keyboard-focusable
   checkbox drives a hamburger dropdown. Scoped to .nav-menu.
   ============================================================ */

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 14px;
}

.legal-copy {
  max-width: 820px;
}

.legal-copy h2 {
  margin-top: 2rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.fineprint {
  gap: 12px 28px;
  flex-wrap: wrap;
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
}

/* The checkbox is absent on desktop (no phantom tab stop). */
.nav-toggle-checkbox {
  display: none;
}

/* The toggle button is hidden on desktop; the nav shows inline. */
.nav-toggle {
  display: none;
}

@media (max-width: 980px) {
  /* Public header stays one row: brand left, menu button right. */
  .bar:has(.nav-menu) {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  /* Visually hidden but keyboard-focusable; the label toggles it. */
  .nav-toggle-checkbox {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: var(--button-radius);
    background: var(--surface);
    color: var(--navy);
    font-size: 14px;
    font-weight: 760;
    cursor: pointer;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle {
    border-color: var(--blue);
    color: var(--blue);
  }

  /* Mirror the global focus ring onto the label. */
  .nav-toggle-checkbox:focus-visible ~ .nav-toggle {
    outline: 3px solid rgba(45, 102, 143, 0.65);
    outline-offset: 2px;
  }

  .nav-toggle-icon {
    position: relative;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  .nav-toggle-icon::before {
    top: -6px;
  }

  .nav-toggle-icon::after {
    top: 6px;
  }

  /* Closed: hide the link list. */
  .nav-menu > .nav {
    display: none;
  }

  /* Open: right-aligned dropdown panel with stacked links. */
  .nav-toggle-checkbox:checked ~ .nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: max-content;
    min-width: 220px;
    max-width: min(82vw, 300px);
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(38, 56, 73, 0.16);
    overflow: visible;
    white-space: normal;
  }

  .nav-toggle-checkbox:checked ~ .nav a {
    flex: 1 1 auto;
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 10px 13px;
    border: 0;
    border-radius: var(--button-radius);
    background: transparent;
    font-size: 15px;
  }

  .nav-toggle-checkbox:checked ~ .nav a:hover,
  .nav-toggle-checkbox:checked ~ .nav a[aria-current="page"] {
    background: var(--cool);
    color: var(--blue);
  }

  /* The contact CTA keeps its filled style and spans the panel. */
  .nav-toggle-checkbox:checked ~ .nav a.btn-primary {
    margin-top: 4px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
  }
}
