:root {
  --bg: #4b6f6e;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-soft: rgba(255, 255, 255, 0.78);
  --ink: #182326;
  --muted: #6e7b7d;
  --line: rgba(11, 87, 88, 0.14);
  --teal: #0b5758;
  --teal-deep: #083e41;
  --teal-soft: #e8f2f1;
  --shadow: 0 24px 72px rgba(7, 55, 57, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }

.klock-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(255,255,255,0.18), transparent 20%),
    radial-gradient(circle at 85% 18%, rgba(219,196,135,0.16), transparent 16%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1344px, calc(100% - 26px));
  margin: 15px auto;
}

.frame,
.login-frame {
  background: var(--surface);
  border-radius: 34px;
  overflow: clip;
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.public-frame { display: grid; grid-template-columns: 344px minmax(0, 1fr); min-height: calc(100vh - 30px); }
.admin-frame { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: calc(100vh - 28px); }
.sidebar,
.admin-sidebar,
.login-sidebar {
  background: linear-gradient(180deg, rgba(250,252,251,0.98) 0%, rgba(243,247,245,0.98) 100%);
  border-right: 1px solid var(--line);
}
.sidebar,
.content,
.admin-sidebar,
.admin-content,
.login-sidebar,
.login-panel { padding: 28px; }
.sidebar { display: grid; align-content: start; gap: 18px; }
.content,
.admin-content { display: grid; align-content: start; gap: 18px; }
.content {
  position: relative;
  padding-bottom: 28px;
}

.brand-row { display: flex; align-items: center; gap: 18px; }
.brand-icon {
  width: 49px;
  height: 49px;
  padding: 8px;
  border-radius: 16px;
  object-fit: contain;
  background: linear-gradient(135deg, #ffffff 0%, #eef4f2 100%);
  border: 1px solid rgba(11,87,88,0.18);
}
.brand-logo { width: min(142px, 100%); height: auto; }

.chip-row,
.topbar,
.calendar-header,
.panel-head,
.field-grid { display: flex; gap: 14px; }
.chip-row { flex-wrap: wrap; }
.topbar,
.calendar-header,
.panel-head { align-items: center; justify-content: space-between; }
.topbar { padding: 10px 0 4px; }
.field-grid { align-items: stretch; }

.chip,
.summary-banner,
.btn,
.timeline-step,
.calendar-day,
.slot-button,
.panel-card,
.profile-card,
.info-card,
.summary-card,
.form-card,
.summary-side-card,
.rail-card,
.calendar-card,
.receipt-card {
  border-radius: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
}
.chip-filled { background: var(--teal-soft); color: var(--teal); }
.chip-outline { border: 1px solid var(--line); color: var(--teal); }

.profile-card,
.info-card,
.summary-card,
.form-card,
.summary-side-card,
.rail-card,
.calendar-card,
.panel-card,
.receipt-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(7,55,57,0.08);
}
.profile-card { padding: 18px 18px 20px; }
.summary-card,
.summary-side-card,
.form-card,
.rail-card,
.calendar-card,
.panel-card,
.receipt-card { padding: 18px; }
.profile-photo {
  width: 156px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 24px;
  margin-bottom: 16px;
}

.muted,
.copy,
.small,
.timeline-step small,
.review-block span,
.link-list a,
.empty-note,
.stack-card p { color: var(--muted); }
.copy { line-height: 1.7; }
.small { font-size: 0.94rem; }
.profile-card h2 { margin-top: 4px; }
.profile-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
.bio-wrapper {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.bio-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  max-height: 2.96em;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.bio-wrapper.is-expanded .bio-text {
  max-height: 600px;
}
.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.bio-toggle:hover { opacity: 0.78; }
.bio-toggle-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(11,87,88,0.1);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 220ms ease;
}
.bio-wrapper.is-expanded .bio-toggle-icon { transform: rotate(45deg); }

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
h1, h2, h3 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.04em;
}
h1 { font-size: clamp(2.1rem, 2.6vw, 2.9rem); line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 2vw, 2.45rem); line-height: 1.02; }
h3 { font-size: clamp(1.22rem, 1.5vw, 1.5rem); line-height: 1.18; }
p { margin: 0; }

.timeline { display: grid; gap: 12px; }
.timeline-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
}
.timeline-step strong { display: block; font-size: 0.96rem; }
.timeline-step small { display: block; margin-top: 2px; font-size: 0.78rem; }
.timeline-step.is-active { background: rgba(11, 87, 88, 0.06); }
.timeline-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11,87,88,0.24);
  font-weight: 700;
  color: var(--teal);
}
.timeline-step.is-active .timeline-icon {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: white;
  border-color: transparent;
}

.clock-card {
  min-width: 194px;
  padding: 14px 18px 12px;
  border-radius: 19px;
  background: rgba(11,87,88,0.06);
  border: 1px solid rgba(11,87,88,0.12);
  text-align: right;
}
.clock-card strong, .clock-card span { display: block; }
.clock-card strong { font-size: 1.2rem; }
.clock-card span { margin-top: 4px; color: var(--muted); }

.panel { display: none; }
.panel.is-active { display: block; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(304px, 0.68fr); gap: 28px; padding-top: 14px; }
.hero-copy { display: grid; gap: 18px; align-content: start; max-width: 720px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 2px; }
.info-card { padding: 14px; }
.label {
  margin: 0 0 12px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.link-list,
.showcase-list,
.stack-list,
.quick-grid,
.stack-buttons,
.slot-list { display: grid; gap: 10px; }
.link-list a,
.showcase-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 31px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,87,88,0.1);
  background: rgba(11,87,88,0.05);
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.showcase-item-simple { justify-content: flex-start; }
.showcase-item strong { font-size: 0.72rem; text-transform: uppercase; }
.summary-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 336px;
  padding: 22px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(241,247,246,0.9) 100%),
    linear-gradient(135deg, rgba(11,87,88,0.06) 0%, rgba(11,87,88,0.02) 100%);
}
.summary-box { display: block; padding: 19px 18px; text-decoration: none; border-radius: 22px; }
.summary-box span { display: block; margin-bottom: 8px; color: var(--muted); }
.summary-box strong { font-size: 1.02rem; line-height: 1.35; }
.summary-box-dark { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); color: white; }
.summary-box-dark span { color: rgba(255,255,255,0.74); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(11,87,88,0.05);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-color: transparent;
}
.btn-circle {
  width: 54px;
  min-width: 54px;
  padding: 0;
  border-radius: 999px;
}
.btn-secondary { background: rgba(11,87,88,0.05); }
.full-width { width: 100%; }
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(7,55,57,0.12);
  outline: none;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(11,87,88,0.22);
  background: rgba(11,87,88,0.08);
}

.calendar-stage { display: grid; grid-template-columns: minmax(0, 1.04fr) 336px; gap: 24px; margin-top: 18px; align-items: start; position: relative; }
.calendar-header strong { font-size: 1.8rem; }
.weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.weekdays { margin: 16px 0 12px; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.calendar-day,
.calendar-spacer { min-height: 82px; border-radius: 999px; }
.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8f7 100%);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.calendar-day strong { font-size: 1.45rem; }
.calendar-day small, .calendar-day-meta { color: var(--muted); font-size: 0.72rem; }
.calendar-day.available {
  background: radial-gradient(circle at top, rgba(81, 201, 173, 0.18), rgba(255,255,255,0.98) 58%);
  border-color: rgba(11,87,88,0.1);
}
.calendar-day.booked-heavy {
  background: linear-gradient(180deg, #edf1f1 0%, #e3e9e9 100%);
}
.calendar-day:hover,
.calendar-day:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(11,87,88,0.18);
  box-shadow: 0 16px 30px rgba(7,55,57,0.08);
  outline: none;
}
.calendar-day.selected {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: white;
  box-shadow: 0 20px 34px rgba(8,62,65,0.24);
}
.calendar-day.selected small, .calendar-day.selected .calendar-day-meta { color: rgba(255,255,255,0.74); }

.slot-list { margin-top: 16px; }
.calendar-card,
.rail-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,249,0.95) 100%);
}
.calendar-card {
  position: sticky;
  top: 100px;
  align-self: start;
}
.rail-card {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
}
.slot-list {
  overflow-y: auto;
  flex: 1;
  margin-top: 12px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11,87,88,0.2) transparent;
}
.slot-list::-webkit-scrollbar { width: 5px; }
.slot-list::-webkit-scrollbar-track { background: transparent; }
.slot-list::-webkit-scrollbar-thumb { background: rgba(11,87,88,0.2); border-radius: 999px; }
.slot-button {
  min-height: 72px;
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.slot-button.booked { background: #d9e3e3; color: #173134; }
.slot-button.unavailable { background: #f4f6f5; color: #a2b0b1; }
.slot-button:not(:disabled):hover,
.slot-button:not(:disabled):focus-visible {
  transform: translateY(-1px);
  border-color: rgba(11,87,88,0.18);
  box-shadow: 0 14px 24px rgba(7,55,57,0.08);
  outline: none;
}
.slot-button.selected { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); color: white; border-color: transparent; }
.slot-button-copy {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.slot-button-time {
  font-size: 1rem;
  font-weight: 800;
}
.slot-button-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.slot-button.selected .slot-button-meta {
  color: rgba(255,255,255,0.76);
}
.slot-button-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 999px;
  background: #52caa9;
  box-shadow: 0 0 0 6px rgba(82,202,169,0.12);
}
.slot-button.selected .slot-button-dot {
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.16);
}

.rail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rail-card-head .eyebrow { margin-bottom: 0; }
.auto-select-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(82,202,169,0.16);
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.auto-select-badge::before {
  content: "✦";
  font-size: 0.6rem;
}

.details-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) 334px; gap: 22px; margin-top: 18px; align-items: start; }
.summary-banner {
  padding: 14px 16px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
  border-radius: 16px;
}
.error-banner { background: #f9e6e6; color: #9a3737; }
.form-card {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,249,0.95) 100%);
}
.form-card label { display: grid; gap: 8px; }
.form-card label span { font-weight: 700; }
input, textarea, select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(11,87,88,0.32);
  box-shadow: 0 0 0 4px rgba(11,87,88,0.08);
}
textarea { resize: vertical; }
.hidden { display: none !important; }

.review-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-block span { display: block; margin-bottom: 6px; font-size: 0.86rem; }
.summary-side-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,249,0.95) 100%);
  position: sticky;
  top: 26px;
}

.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-accordion { display: grid; gap: 16px; }
.accordion-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(7,55,57,0.08);
  border-radius: 26px;
  overflow: hidden;
}
.accordion-card[open] {
  box-shadow: 0 18px 36px rgba(7,55,57,0.11);
}
.accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
}
.accordion-summary::-webkit-details-marker {
  display: none;
}
.accordion-summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(11,87,88,0.06);
  color: var(--teal);
  font-size: 1.3rem;
  font-weight: 500;
}
.accordion-card[open] .accordion-summary::after {
  content: "−";
}
.accordion-hint {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.accordion-body {
  padding: 0 20px 20px;
}
.accordion-stack {
  margin-top: 14px;
}
.panel-card-wide { grid-column: 1 / -1; }
.panel-card { padding: 20px; }
.panel-card-inner {
  padding: 16px;
  box-shadow: none;
  background: rgba(255,255,255,0.72);
}
.compact-grid { margin-top: 12px; }
.quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack-buttons { margin: 14px 0; }
.stack-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
}
.showcase-row,
.booking-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.showcase-row a { color: var(--teal); text-decoration: none; font-weight: 700; }
.stack-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.stack-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11,87,88,0.08);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.timeline-step,
.profile-card,
.info-card,
.summary-card,
.form-card,
.summary-side-card,
.rail-card,
.calendar-card,
.panel-card,
.receipt-card,
.stack-card,
.link-list a,
.showcase-item {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.timeline-step:hover,
.profile-card:hover,
.info-card:hover,
.summary-card:hover,
.form-card:hover,
.summary-side-card:hover,
.rail-card:hover,
.calendar-card:hover,
.panel-card:hover,
.receipt-card:hover,
.stack-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(7,55,57,0.11);
}
.timeline-step:hover { border-color: rgba(11,87,88,0.12); }
.link-list a:hover,
.link-list a:focus-visible,
.showcase-item:hover,
.showcase-item:focus-visible {
  background: rgba(11,87,88,0.1);
  border-color: rgba(11,87,88,0.2);
  transform: translateY(-1px);
  outline: none;
}

.login-shell { min-height: 100vh; display: grid; place-items: center; }
.login-frame { width: min(1120px, calc(100% - 30px)); display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.login-sidebar, .login-panel { display: grid; gap: 20px; align-content: start; }
.login-panel { align-content: center; }
.error-text { color: #9a3737; font-weight: 700; }

.receipt-card { margin-top: 22px; }
.receipt-copy { color: var(--muted); line-height: 1.7; }
.receipt-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.receipt-hero h3 {
  margin-top: 4px;
  font-size: clamp(2rem, 2.4vw, 2.8rem);
  line-height: 1.02;
}
.receipt-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  min-width: 136px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 800;
}
.receipt-note {
  margin-top: 16px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(11,87,88,0.06);
  color: var(--teal);
  font-weight: 700;
}
.receipt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 332px;
  gap: 22px;
}
.receipt-main-stack {
  display: grid;
  gap: 18px;
}
.receipt-owner-panel,
.receipt-showcase-panel,
.receipt-summary-panel,
.receipt-meeting-panel {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--line);
}
.receipt-owner-panel {
  display: grid;
  gap: 16px;
}
.receipt-owner-header {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.receipt-owner-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 999px;
}
.receipt-owner-header h4 {
  margin: 4px 0 8px;
  font-size: clamp(1.9rem, 2vw, 2.5rem);
  line-height: 1.02;
}
.receipt-owner-bio {
  font-size: 1rem;
  max-width: 540px;
}
.receipt-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.receipt-chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(11,87,88,0.16);
  background: #fff;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}
.receipt-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.receipt-section-head h4 {
  margin: 4px 0 0;
  font-size: 1.5rem;
  line-height: 1.1;
}
.receipt-section-meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11,87,88,0.06);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.receipt-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.receipt-showcase-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(11,87,88,0.12);
  text-decoration: none;
  color: var(--ink);
}
.receipt-pdf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.receipt-capability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(11,87,88,0.09);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  width: fit-content;
}
.receipt-showcase-card strong {
  font-size: 1rem;
  line-height: 1.2;
}
.receipt-showcase-card small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.receipt-summary-panel {
  display: grid;
  align-content: start;
  gap: 2px;
}
.receipt-summary-group {
  padding: 16px 0;
  border-bottom: 1px solid rgba(11,87,88,0.1);
}
.receipt-summary-group:last-of-type {
  border-bottom: 0;
}
.receipt-summary-group span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.receipt-summary-group strong {
  display: block;
  font-size: 1.03rem;
  line-height: 1.4;
}
.receipt-world-grid {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.receipt-world-card {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(11,87,88,0.05);
  border: 1px solid rgba(11,87,88,0.1);
}
.receipt-world-card span,
.receipt-world-card strong,
.receipt-world-card small {
  display: block;
}
.receipt-world-card span,
.receipt-world-card small {
  color: var(--muted);
}
.receipt-world-card strong {
  margin: 4px 0;
  font-size: 1rem;
}
.receipt-action-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.receipt-meeting-panel {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 22px;
}
.receipt-meeting-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}
.receipt-meeting-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: fit-content;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.owner-email {
  margin-top: 6px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--teal);
  word-break: break-word;
}

/* ── Week availability widget ── */
.avail-week-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}
.avail-week-label-mobile { display: none; }
.avail-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.avail-day-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
  text-align: left;
}
.avail-day-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(11,87,88,0.2);
  box-shadow: 0 8px 18px rgba(7,55,57,0.08);
}
.avail-day-chip:disabled { cursor: default; opacity: 0.68; }
.avail-day-chip.avail-day-past { opacity: 0.45; }
.avail-day-chip.avail-day-selected {
  background: rgba(11,87,88,0.08);
  border-color: rgba(11,87,88,0.22);
}
.avail-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.avail-dot-open  { background: #52caa9; box-shadow: 0 0 0 4px rgba(82,202,169,0.18); }
.avail-dot-booked { background: #e05353; box-shadow: 0 0 0 4px rgba(224,83,83,0.12); }
.avail-dot-closed { background: #c9d0d1; }

/* ── Meeting format banner ── */
.meeting-format-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: white;
  font-weight: 700;
  font-size: 0.96rem;
}

/* ── Booking confirmation card ── */
.receipt-booking-card {
  display: flex;
  margin: 18px 0 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: white;
  overflow: hidden;
}
.receipt-booking-row {
  flex: 1;
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border-right: 1px solid rgba(255,255,255,0.16);
}
.receipt-booking-row:last-child { border-right: none; }
.receipt-booking-row > span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}
.receipt-booking-row > strong {
  font-size: 1.06rem;
  line-height: 1.25;
}
.receipt-world-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.receipt-next-section {
  margin-top: 18px;
  border-top: 1px solid rgba(11,87,88,0.1);
  padding-top: 16px;
}
.receipt-next-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
.receipt-format-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(11,87,88,0.15);
  background: rgba(11,87,88,0.05);
  color: var(--teal);
  font-weight: 700;
}
.receipt-format-btn:hover,
.receipt-format-btn:focus-visible {
  background: rgba(11,87,88,0.1);
  border-color: rgba(11,87,88,0.22);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(7,55,57,0.07);
}

.progress-dock {
  position: sticky;
  top: 15px;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(11,87,88,0.12);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 28px rgba(7,55,57,0.1);
  backdrop-filter: blur(12px);
  z-index: 6;
}
.progress-dock-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}
.progress-fraction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  min-width: 68px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.progress-dock-copy strong {
  display: block;
  font-size: 1rem;
}
.progress-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}
.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11,87,88,0.08);
}
.progress-fill {
  display: block;
  width: 33.33%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b5758 0%, #2e8a8c 100%);
  transition: width 220ms ease;
}

.admin-body .brand-row {
  gap: 16px;
}

.admin-body .brand-icon {
  width: 43px;
  height: 43px;
  padding: 7px;
  border-radius: 14px;
}

.admin-body .brand-logo {
  width: min(137px, 100%);
}

.admin-body .sidebar,
.admin-body .content,
.admin-body .admin-sidebar,
.admin-body .admin-content {
  padding: 24px;
}

.admin-body .profile-card h2 {
  font-size: 1.7rem;
  line-height: 1.02;
}

.admin-body .profile-card .copy {
  font-size: 0.96rem;
  line-height: 1.55;
}

.admin-body .topbar h1 {
  font-size: 2.2rem;
  line-height: 1.04;
}

.admin-body .accordion-summary h3 {
  font-size: 1.12rem;
}

.admin-body .panel-card h3 {
  font-size: 1.15rem;
}

.admin-body .calendar-stage {
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}

.admin-body .calendar-card,
.admin-body .rail-card {
  padding: 18px;
}

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

.admin-body .calendar-header {
  margin-bottom: 8px;
}

.admin-body .calendar-header strong {
  font-size: 1.22rem;
}

.admin-body .weekdays,
.admin-body .calendar-grid {
  gap: 10px;
}

.admin-body .weekdays {
  margin: 10px 0 12px;
  font-size: 0.82rem;
}

.admin-body .calendar-day,
.admin-body .calendar-spacer {
  min-height: 72px;
}

.admin-body .calendar-day {
  padding: 8px 6px;
}

.admin-body .calendar-day strong {
  font-size: 1.2rem;
}

.admin-body .calendar-day small {
  font-size: 0.66rem;
  line-height: 1.2;
}

.admin-body .calendar-day.past {
  opacity: 0.5;
  background: #f6f8f8;
}

.admin-body .calendar-day.past:hover {
  transform: none;
  box-shadow: none;
}

.admin-body .rail-card {
  display: grid;
  gap: 12px;
  /* Reset sticky/height constraints from the public .rail-card rule */
  position: static;
  max-height: none;
  overflow: visible;
  align-self: auto;
}

.admin-body .rail-card .eyebrow {
  margin-bottom: 2px;
}

.admin-body .quick-grid {
  gap: 8px;
}

.admin-body .quick-action-btn {
  min-height: 62px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 12px;
  text-align: left;
  border-radius: 14px;
  border: 1.5px solid rgba(11,87,88,0.18);
  background: rgba(11,87,88,0.04);
  color: var(--teal);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.admin-body .quick-action-btn small {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
}
.admin-body .quick-action-btn .quick-btn-icon {
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 2px;
}
.admin-body .quick-action-btn:hover {
  background: rgba(11,87,88,0.09);
  border-color: rgba(11,87,88,0.32);
  transform: translateY(-1px);
}
.admin-body .quick-action-btn[data-action="clear"] {
  border-color: rgba(192,57,43,0.22);
  background: rgba(192,57,43,0.04);
  color: #c0392b;
}
.admin-body .quick-action-btn[data-action="clear"] small { color: rgba(192,57,43,0.65); }
.admin-body .quick-action-btn[data-action="clear"]:hover {
  background: rgba(192,57,43,0.1);
  border-color: rgba(192,57,43,0.42);
}

.admin-body .stack-buttons { margin: 0; gap: 8px; }

.admin-body .stack-buttons .btn {
  min-height: 46px;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 14px;
  border-radius: 14px;
}

.btn-block-range {
  background: rgba(192,57,43,0.06);
  color: #c0392b;
  border: 1.5px solid rgba(192,57,43,0.28);
}
.btn-block-range:hover {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.48);
}

.admin-body .compact-grid {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(11,87,88,0.04);
  border: 1px solid rgba(11,87,88,0.1);
}

.admin-body .compact-grid label span {
  font-size: 0.88rem;
}

.admin-body .compact-grid select,
.admin-body .compact-grid input {
  padding: 11px 12px;
  border-radius: 14px;
}

.admin-body .summary-banner {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.admin-body #adminSlotList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  /* Scroll only the slot list; rail-card keeps static height */
  max-height: clamp(260px, 42vh, 480px);
  overflow-y: auto;
  overflow-x: hidden;
  flex: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(11,87,88,0.2) transparent;
  padding-right: 2px;
}
.admin-body #adminSlotList::-webkit-scrollbar { width: 5px; }
.admin-body #adminSlotList::-webkit-scrollbar-track { background: transparent; }
.admin-body #adminSlotList::-webkit-scrollbar-thumb { background: rgba(11,87,88,0.2); border-radius: 999px; }

.admin-body #adminSlotList .slot-button {
  min-height: 50px;
  font-size: 0.95rem;
}

.admin-body .stack-card {
  padding: 14px;
}

.admin-body .showcase-row strong {
  font-size: 1rem;
}

.admin-body .form-card {
  gap: 14px;
}

.integration-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.integration-actions .btn {
  flex: 0 0 auto;
}

.admin-body .field-grid {
  gap: 12px;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  padding: 13px 14px;
  border-radius: 16px;
}

.admin-body textarea {
  min-height: 120px;
}

/* ─── Telegram webhook card ─────────────────────────────────────────────── */
.telegram-webhook-card {
  background: linear-gradient(135deg, rgba(11,87,88,0.06) 0%, rgba(11,87,88,0.02) 100%);
  border: 1.5px solid rgba(11,87,88,0.18);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
}
.telegram-webhook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.telegram-webhook-url {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-family: "SF Mono", "Fira Mono", "Consolas", monospace;
  color: var(--teal);
  word-break: break-all;
  line-height: 1.4;
}
.telegram-webhook-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Telegram guide card ───────────────────────────────────────────────── */
.telegram-guide-card {
  background: linear-gradient(135deg, rgba(11,87,88,0.05) 0%, rgba(11,87,88,0.02) 100%);
  border: 1px solid rgba(11,87,88,0.14);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
}
.telegram-guide-intro {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}
.telegram-guide-footer {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}
.telegram-cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.telegram-cmd-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
}
.telegram-cmd-item code {
  display: block;
  font-family: "SF Mono", "Fira Mono", "Consolas", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(11,87,88,0.07);
  padding: 4px 8px;
  border-radius: 7px;
  line-height: 1.4;
}
.telegram-cmd-item span {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ─── Settings section divider ──────────────────────────────────────────── */
.settings-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.settings-divider::before,
.settings-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ─── Admin topbar hint ─────────────────────────────────────────────────── */
.admin-topbar-hint {
  margin: -10px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── Admin section hint ─────────────────────────────────────────────────── */
.admin-section-hint {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── Booking card action row ─────────────────────────────────────────────── */
.booking-email-line { font-size: 0.9rem; }
.booking-agenda { font-size: 0.88rem; font-style: italic; }
.booking-actions { margin-top: 10px; }

.btn-cancel-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(192, 57, 43, 0.3);
  background: rgba(192, 57, 43, 0.06);
  color: #c0392b;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.btn-cancel-sm:hover {
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.5);
}

/* ─── Cancel booking modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 30, 32, 0.52);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }

.modal-card {
  background: #fff;
  border-radius: 26px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  display: grid;
  gap: 14px;
  box-shadow: 0 28px 80px rgba(7, 55, 57, 0.22);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-head h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.modal-body-text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-danger {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
.btn-danger:hover { background: #a93226; border-color: #a93226; }
.btn-danger:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .public-frame,
  .admin-frame,
  .hero-grid,
  .calendar-stage,
  .details-grid,
  .admin-grid,
  .login-frame { grid-template-columns: 1fr; }
  .calendar-card,
  .rail-card,
  .summary-side-card {
    position: static;
    max-height: none;
  }
  .slot-list {
    overflow-y: visible;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 18px, 1560px); margin: 10px auto; }
  .sidebar, .content, .admin-sidebar, .admin-content, .login-sidebar, .login-panel, .panel-card { padding: 20px; }
  .field-grid, .info-grid, .quick-grid { display: grid; grid-template-columns: 1fr; }
  .brand-row { gap: 12px; }
  .brand-icon { width: 46px; height: 46px; border-radius: 14px; }
  .brand-logo { width: min(132px, 100%); }
  .accordion-summary {
    align-items: start;
  }
  .accordion-hint {
    white-space: normal;
    text-align: right;
  }
  .admin-body .admin-info-grid,
  .receipt-layout,
  .receipt-showcase-grid,
  .receipt-booking-card,
  .receipt-world-row,
  .admin-body #adminSlotList { grid-template-columns: 1fr; }
  .receipt-booking-card { flex-direction: column; }
  .receipt-booking-row { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.16); }
  .receipt-booking-row:last-child { border-bottom: none; }
  .receipt-hero,
  .receipt-owner-header {
    display: grid;
    grid-template-columns: 1fr;
  }
  .receipt-owner-avatar {
    width: 120px;
    height: 120px;
  }
  .receipt-section-head {
    display: grid;
    grid-template-columns: 1fr;
  }
  .receipt-status-pill {
    min-height: 56px;
    min-width: 112px;
    justify-self: start;
  }
  .progress-dock {
    padding: 12px 14px;
    border-radius: 18px;
    top: 10px;
  }
  .progress-dock-copy {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
  }
  .progress-fraction {
    width: 52px;
    min-width: 52px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.88rem;
  }
  .integration-actions { display: grid; grid-template-columns: 1fr; }
}

/* ─── Phone (≤640px) ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* ═══ SHELL & FRAME: edge-to-edge ═══ */
  .shell { width: 100%; margin: 0; }
  .klock-body .shell .frame {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
  .public-frame { min-height: 100svh; }

  /* ═══ SIDEBAR: compact identity header ═══
     We show brand + chips + profile card only.
     The timeline is hidden — it duplicates the progress dock inside the content area.
  */
  .sidebar {
    padding: 14px 16px 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    gap: 10px;
    background: linear-gradient(180deg, rgba(250,252,251,0.99) 0%, rgba(243,247,245,0.99) 100%);
  }

  /* Brand row: unchanged, looks good */
  .brand-icon { width: 44px; height: 44px; border-radius: 14px; }
  .brand-logo  { width: 120px; }

  /* Chips: slimmer pills in one row */
  .chip-row { flex-wrap: nowrap; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { min-height: 26px; font-size: 0.73rem; padding: 0 10px; white-space: nowrap; }

  /* Profile card: CSS grid — photo on left spanning both rows, name + title stacked right */
  .profile-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 1px;
    padding: 12px 14px;
    align-items: center;
  }
  .profile-photo {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    margin-bottom: 0;
    object-fit: cover;
    object-position: center 10%;
    align-self: center;
  }
  .profile-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.7rem;
    align-self: end;
    margin-bottom: 0;
    line-height: 1.3;
  }
  .profile-card h2 {
    grid-column: 2;
    grid-row: 2;
    font-size: 1.14rem;
    margin-top: 0;
    align-self: start;
    letter-spacing: -0.03em;
  }

  /* Bio & timeline: hidden on mobile */
  .bio-wrapper { display: none; }
  .timeline    { display: none; }

  /* ═══ CONTENT AREA ═══ */
  .content { padding: 14px 16px; gap: 12px; }

  /* Topbar: single row — "Tue 21 Apr" left, clock right */
  .topbar { padding: 2px 0 0; gap: 8px; flex-wrap: nowrap; align-items: stretch; }
  .topbar > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .topbar > div:first-child .eyebrow { white-space: nowrap; margin-bottom: 2px; font-size: 0.65rem; }
  #liveDayLabel { font-size: 0.9rem; font-weight: 800; white-space: nowrap; }
  .clock-card {
    min-width: 116px;
    padding: 9px 12px 8px;
    flex-shrink: 0;
    border-radius: 16px;
  }
  .clock-card strong { font-size: 0.96rem; }
  .clock-card span   { font-size: 0.72rem; margin-top: 2px; }

  /* Progress dock: compact — hidden on Screen 1 (week avail IS the entry point),
     shown on Screen 2 & 3 so user knows where they are in the flow */
  .progress-dock {
    position: static;         /* don't sticky on mobile — it eats space */
    top: auto;
    padding: 10px 12px;
    border-radius: 16px;
    gap: 6px;
  }
  .progress-hint   { font-size: 0.78rem; }
  .progress-fraction { width: 44px; min-width: 44px; height: 32px; border-radius: 10px; font-size: 0.8rem; }
  .progress-dock-copy strong { font-size: 0.92rem; }

  /* Hide progress dock on Screen 1 — redundant when week avail is the hero CTA */
  .content:has([data-step-panel="1"].is-active) .progress-dock { display: none; }

  /* ═══ SCREEN 1: week availability as the hero ═══ */

  /* Panel head on Screen 1 — reduced to a single eyebrow line */
  .content:has([data-step-panel="1"].is-active) [data-step-panel="1"] .panel-head {
    padding-bottom: 2px;
  }
  .content:has([data-step-panel="1"].is-active) [data-step-panel="1"] .panel-head h1 {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
  }

  /* hero-grid: flex column so we can reorder */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
  }

  /* Summary card floats to top of Screen 1 */
  .summary-card {
    order: 1;
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 0;
    gap: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* Week avail block: hero of Screen 1 */
  .avail-week-block {
    order: -1;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-soft);
    box-shadow: 0 8px 24px rgba(7,55,57,0.07);
    padding: 16px 14px 14px;
    margin: 0;
  }
  /* Swap label text on mobile */
  .avail-week-label-full   { display: none; }
  .avail-week-label-mobile { display: inline; }
  .avail-week-block .label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 10px;
    display: block;
  }

  /* Day chips: two-row grid, full tap targets */
  .avail-week-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }
  .avail-day-chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 11px 10px 9px;
    min-height: 58px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.25;
  }
  .avail-dot { width: 8px; height: 8px; min-width: 8px; }

  /* Session info: slim card */
  .summary-box:not(.summary-box-dark) {
    padding: 12px 14px;
    border-radius: 16px;
    margin-top: 8px;
    border: 1px solid var(--line);
    background: white;
  }
  /* Email CTA: keep its dark gradient, just adjust sizing */
  .summary-box-dark {
    padding: 12px 14px;
    border-radius: 16px;
    margin-top: 8px;
  }
  .summary-box span   { font-size: 0.76rem; margin-bottom: 4px; }
  .summary-box strong { font-size: 0.9rem; }

  /* Hero copy: goes below — description + links + CTA */
  .hero-copy { order: 2; gap: 12px; }
  .hero-copy > h3 { font-size: 1rem; }
  .hero-copy > p  { font-size: 0.87rem; line-height: 1.55; }
  .info-grid { gap: 10px; }
  .info-card { padding: 12px; }

  /* ═══ HEADINGS (general) ═══ */
  h1 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  h3 { font-size: clamp(1rem, 4vw, 1.25rem); }

  /* ═══ SCREEN 2: calendar ═══ */
  [data-step-panel="2"] .panel-head { padding-bottom: 6px; }
  [data-step-panel="2"] .panel-head h1 { font-size: 1.35rem; }

  .calendar-stage { margin-top: 6px; gap: 12px; }
  .calendar-card  { padding: 14px 10px; }
  .calendar-header strong { font-size: 1.3rem; }
  .calendar-header .btn-circle { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }

  /* Weekday headers */
  .weekdays { gap: 3px; margin: 8px 0 5px; font-size: 0.6rem; letter-spacing: 0.02em; }
  .weekdays span { text-align: center; }

  /* Calendar cells: short square tiles, not tall narrow pills */
  .calendar-grid { gap: 4px; }
  .calendar-day,
  .calendar-spacer { min-height: 52px; border-radius: 12px; }
  .calendar-day { gap: 2px; padding: 5px 2px; }
  .calendar-day strong { font-size: 1rem; }
  .calendar-day small,
  .calendar-day-meta { font-size: 0.58rem; }

  /* ── Slot grid: 2 columns so all slots fit without deep scrolling ── */
  .slot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    overflow-y: visible;
    max-height: none;
  }
  .slot-button {
    min-height: 54px;
    padding: 8px 8px 7px;
    border-radius: 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
  }
  .slot-button-copy { justify-items: center; gap: 2px; }
  .slot-button-time { font-size: 0.92rem; font-weight: 800; }
  .slot-button-meta { font-size: 0.62rem; }
  .slot-button-dot  { display: none; }   /* clean look in compact grid */
  .slot-button.selected { box-shadow: 0 8px 22px rgba(8,62,65,0.26); }
  .rail-card { padding: 14px; }

  /* ═══ SCREEN 3: booking form ═══ */
  [data-step-panel="3"] .panel-head h1 { font-size: 1.35rem; }
  .details-grid  { margin-top: 10px; gap: 12px; }
  .form-card     { gap: 12px; padding: 14px; }
  input, textarea, select { padding: 12px 14px; border-radius: 14px; }
  .btn.full-width   { min-height: 50px; font-size: 0.96rem; }
  .summary-side-card { position: static; padding: 14px; }

  /* Receipt */
  .receipt-booking-row { padding: 14px 14px; }
  .receipt-world-row   { grid-template-columns: 1fr; gap: 6px; }
}

/* ─── Very small phones (≤380px) ─────────────────────────────────────────── */
@media (max-width: 380px) {
  .content { padding: 12px; }
  .sidebar { padding: 11px 12px 13px; }
  .avail-day-chip { min-height: 52px; padding: 9px 8px 7px; font-size: 0.78rem; }
  .calendar-day,
  .calendar-spacer { min-height: 44px; }
  .calendar-day strong { font-size: 0.9rem; }
  .calendar-day small,
  .calendar-day-meta { font-size: 0.52rem; }
  .weekdays { font-size: 0.55rem; gap: 2px; }
  .calendar-grid { gap: 3px; }
  .clock-card { min-width: 104px; }
}
