@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Lexend:wght@300;400;500&display=swap");

:root {
  /* Second Unit design language: wall white, ink, hairlines, one blue */
  --ink: #1a1a1a;
  --grey: #6b6b68;
  --faint: #9a9a96;
  --hair: #d9d9d5;
  --hair-strong: #c4c4bf;
  --surface: #ffffff;
  --wall: #fcfcfb;
  --panel: #f7f8fa;
  --night: #141414;
  --blue: #1a73e8;
  --blue-ink: #0b4daa;
  --blue-sky: #6daff4;
  --violet: #7c5cfa;
  --rose: #c8324f;
  --amber: #f2a33a;
  --blue-tint: #f4f8fe;
  --blue-tint-line: #dbe7fb;
  --violet-wash: #efebff;
  --rose-wash: #fce8ec;
  --amber-wash: #fdf1dc;
  --shadow: 0 30px 60px -20px rgba(15, 26, 43, 0.35);
  --card-shadow: 0 20px 40px -28px rgba(26, 115, 232, 0.35);
  --display: "Lexend", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-card: 16px;
  --r-field: 12px;
  --r-tile: 12px;
  --sidebar-width: 284px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
}

.sprite {
  display: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  border-right: 1px solid var(--hair);
  background: #ffffff;
  backdrop-filter: blur(18px);
}

.brand-block {
  padding: 6px 8px 17px;
  border-bottom: 1px solid var(--hair);
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo-dashboard {
  width: min(232px, 100%);
}

.mobile-menu-button {
  position: fixed;
  top: 26px;
  right: 16px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--night);
  border-radius: var(--r-tile);
  background: var(--night);
  color: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 26, 43, 0.08);
}

@media (min-width: 861px) {
  .mobile-menu-button {
    display: none;
  }
}

.nav-stack {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--r-tile);
  background: transparent;
  color: var(--grey);
  font-weight: 500;
  text-align: left;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(26, 115, 232, 0.08);
}

.nav-item.is-active {
  color: var(--surface);
  background: var(--night);
  border-color: var(--night);
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(15, 26, 43, 0.16);
}

.sidebar-card {
  margin-top: auto;
  padding: 13px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background:
    linear-gradient(120deg, rgba(26, 115, 232, 0.08), transparent 52%),
    var(--panel);
}

.mini-label,
.eyebrow,
.field-label,
.table-label {
  color: var(--grey);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
}

.link-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 9px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
}

.workspace {
  min-width: 0;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--hair);
  background: rgba(252, 252, 251, 0.88);
  backdrop-filter: blur(18px);
}

.title-zone {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
}

h1 {
  margin-bottom: 0;
  font-size: 1.72rem;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.32rem;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: #ffffff;
  color: var(--grey);
}

.search-box:focus-within {
  border-color: var(--night);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.16);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.primary-button,
.ghost-button,
.icon-button,
.danger-button,
.quiet-button,
.segment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: var(--r-tile);
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
  text-decoration: none;
}

.primary-button span,
.ghost-button span,
.danger-button span,
.quiet-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-button {
  padding: 0 14px;
  border: 1px solid var(--blue-ink);
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 22px rgba(26, 115, 232, 0.28);
}

.primary-button:hover {
  background: var(--blue-ink);
}

.ghost-button,
.quiet-button,
.segment-button {
  padding: 0 12px;
  border: 1px solid var(--hair);
  background: #ffffff;
  color: var(--ink);
}

.ghost-button:hover,
.quiet-button:hover,
.segment-button:hover {
  border-color: var(--hair-strong);
  background: var(--surface);
}

.danger-button {
  padding: 0 12px;
  border: 1px solid rgba(200, 50, 79, 0.3);
  background: var(--rose-wash);
  color: var(--rose);
}

.icon-button {
  width: 38px;
  padding: 0;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--ink);
}

.profile-pill {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
}

.avatar,
.member-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--night);
  color: white;
  font-size: 0.76rem;
  font-weight: 500;
}

.avatar {
  width: 30px;
  height: 30px;
}

.content {
  padding: 26px;
}

.public-route .app-shell {
  display: block;
  min-height: 100vh;
}

.public-route .sidebar,
.public-route .topbar,
.public-route .mobile-menu-button {
  display: none;
}

.public-route .workspace {
  max-width: none;
}

.public-route .content {
  padding: 0;
}

.public-page {
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 48px) 48px;
}

.confirmation-page {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 18px clamp(16px, 3vw, 42px) 42px;
  background: var(--surface);
}

.confirmation-header {
  width: min(1040px, 100%);
  margin-inline: auto;
  padding: 8px 0 18px;
  display: flex;
  justify-content: center;
}

.confirmation-logo {
  display: block;
  width: min(210px, 58vw);
  height: auto;
}

.confirmation-main {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 30px;
  width: min(640px, 100%);
  margin: 26px auto 0;
  padding-bottom: 64px;
}

.confirmation-status {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.confirmation-check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
}

.confirmation-check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.confirmation-status h1 {
  margin: 0;
  color: #0d2742;
  font-size: 1.52rem;
  line-height: 1.24;
  font-weight: 500;
}

.confirmation-status p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
}

.confirmation-card {
  width: min(452px, 100%);
  padding: 22px 20px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 26, 43, 0.04);
}

.confirmation-card h2 {
  margin: 0 0 16px;
  color: #0d2742;
  font-size: 1.28rem;
  line-height: 1.34;
  font-weight: 500;
}

.confirmation-detail-list {
  display: grid;
  gap: 12px;
}

.confirmation-detail {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #0d2742;
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1.35;
}

.confirmation-detail .icon {
  width: 18px;
  height: 18px;
  color: #0d2742;
  stroke-width: 2.1;
}

.confirmation-zoom-button {
  width: 100%;
  margin-top: 18px;
}

.confirmation-actions {
  min-height: 26px;
}

.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-page-header,
.public-hero,
.public-booking-layout {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.public-page-header {
  display: flex;
  align-items: center;
  min-height: 70px;
  margin-bottom: 28px;
}

.public-page-logo {
  display: block;
  width: min(290px, 80vw);
  height: auto;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.public-hero-copy h1 {
  margin: 0 0 14px;
  font-size: 4rem;
  line-height: 0.98;
}

.public-hero-copy p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--grey);
  font-size: 1.04rem;
}

.public-hero-note,
.public-info-panel {
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 26, 43, 0.05);
}

.public-hero-note {
  padding: 16px;
}

.public-hero-note strong {
  display: block;
  margin: 8px 0 5px;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 500;
}

.public-hero-note p {
  margin: 0;
  color: var(--grey);
}

.public-booking-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
}

.public-info-panel {
  padding: 18px;
}

.public-info-panel h2 {
  margin-bottom: 14px;
}

.public-info-list {
  display: grid;
  gap: 12px;
}

.public-info-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--grey);
  font-weight: 500;
}

.public-booking-column {
  min-width: 0;
}

.public-booking-page {
  display: grid;
  align-items: start;
  padding: 38px clamp(16px, 4vw, 54px) 58px;
}

.public-booking-shell {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(430px, 1.18fr);
  width: min(1040px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(15, 26, 43, 0.08);
}

.public-event-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 610px;
  padding: 30px 28px;
  border-right: 1px solid var(--hair);
  background: var(--panel);
}

.public-event-logo {
  display: block;
  width: 188px;
  max-width: 82%;
  height: auto;
  margin-bottom: 44px;
}

.public-event-copy {
  display: grid;
  gap: 9px;
}

.public-event-copy .eyebrow {
  margin: 0;
}

.public-event-title {
  margin: 0;
  color: var(--ink);
  font-size: 2.08rem;
  line-height: 1.12;
  font-weight: 500;
}

.public-event-description {
  max-width: 420px;
  margin: 0;
  color: var(--grey);
  font-size: 0.98rem;
  line-height: 1.56;
  white-space: pre-line;
}

.public-detail-list {
  display: grid;
  gap: 15px;
  margin: 28px 0;
}

.public-detail {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
}

.public-detail .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--blue);
  stroke-width: 2;
}

.public-event-note {
  margin: auto 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.56;
}

.public-scheduler-panel {
  min-width: 0;
  padding: 30px 28px 28px;
  background: #ffffff;
}

.public-scheduler-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.public-scheduler-heading h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.34rem;
  line-height: 1.22;
  font-weight: 500;
}

.public-date-pill {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--panel);
  color: var(--grey);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.public-card-compact {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-card-compact .booking-flow {
  padding: 0;
}

.public-card-compact .mini-label {
  display: block;
  margin-bottom: 9px;
}

.public-card-compact .date-strip {
  margin: 0 0 18px;
}

.public-card-compact .date-button {
  background: #ffffff;
}

.public-card-compact .date-button:hover,
.public-card-compact .slot-button:hover {
  border-color: var(--hair-strong);
  background: #fff;
}

.public-card-compact .date-button.is-selected {
  border-color: var(--night);
  background: var(--night);
}

.public-card-compact .slot-grid {
  gap: 9px;
  margin-bottom: 18px;
}

.public-card-compact .slot-button {
  min-height: 42px;
  background: #fff;
  font-weight: 500;
}

.public-card-compact .slot-button.is-selected {
  border-color: var(--blue-ink);
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-weight: 500;
}

.public-card-compact .field input,
.public-card-compact .field textarea {
  background: #fff;
}

.public-card-compact .field textarea {
  min-height: 80px;
}

.public-card-compact .primary-button {
  width: 100%;
  min-height: 42px;
}

.single-event-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--surface);
}

.single-event-summary strong {
  display: block;
  font-weight: 500;
}

.single-event-summary small {
  color: var(--grey);
  font-weight: 500;
}

.public-confirmation .ghost-button {
  width: 100%;
}

.confirmation-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.confirmation-copy {
  margin-bottom: 16px;
  color: var(--grey);
}

.public-page-centered {
  display: grid;
  place-items: center;
}

.public-not-found {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(520px, 100%);
}

.view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.section-stack {
  display: grid;
  gap: 18px;
}

.panel,
.event-card,
.booking-card,
.workflow-card,
.person-card,
.settings-panel {
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 26, 43, 0.05);
}

.panel {
  padding: 18px;
}

.panel-header,
.card-header,
.booking-header,
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-header p,
.card-header p,
.booking-header p,
.modal-header p {
  margin: 4px 0 0;
  color: var(--grey);
}

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

.stat-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--panel);
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.stat-card span:last-child {
  display: block;
  margin-top: 7px;
  color: var(--grey);
  font-weight: 500;
}

.accent-moss {
  border-top: 4px solid var(--blue);
}

.accent-cobalt {
  border-top: 4px solid var(--violet);
}

.accent-rose {
  border-top: 4px solid var(--rose);
}

.accent-amber {
  border-top: 4px solid var(--amber);
}

.event-list,
.booking-list,
.workflow-list,
.people-grid,
.settings-grid {
  display: grid;
  gap: 12px;
}

.event-card,
.booking-card,
.workflow-card,
.person-card,
.settings-panel {
  padding: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.event-main {
  min-width: 0;
}

.event-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.event-color {
  width: 11px;
  height: 40px;
  border-radius: 999px;
  background: var(--blue);
  flex: 0 0 11px;
}

.event-title-row h3,
.booking-card h3 {
  overflow-wrap: anywhere;
}

.meta-row,
.card-actions,
.chip-row,
.booking-meta,
.workflow-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-row {
  margin-top: 10px;
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
}

.meta-chip,
.status-chip,
.route-chip,
.slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
  color: var(--grey);
  font-size: 0.82rem;
  font-weight: 500;
}

button.meta-chip {
  font: inherit;
  cursor: pointer;
}

button.meta-chip:hover,
button.meta-chip:focus-visible {
  border-color: var(--blue);
  color: var(--blue-ink);
  outline: 0;
}

.event-link-chip {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.status-chip.active,
.route-chip {
  border-color: var(--blue-tint-line);
  background: var(--blue-tint);
  color: var(--blue-ink);
}

.status-chip.paused {
  border-color: rgba(200, 50, 79, 0.2);
  background: var(--rose-wash);
  color: var(--rose);
}

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

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  width: 100%;
  height: 100%;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  background: #e4e4e0;
  transition: background 160ms ease, border-color 160ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.booking-widget {
  position: sticky;
  top: 96px;
}

.public-card {
  overflow: hidden;
  padding: 0;
}

.panel.public-card-compact {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 18px;
  color: var(--surface);
  background: var(--blue);
}

.public-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--r-tile);
  background: rgba(255, 255, 255, 0.1);
}

.public-badge img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.public-card-top h2 {
  margin-bottom: 2px;
}

.public-card-top p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.booking-flow {
  padding: 16px;
}

.public-booking-page .eyebrow,
.public-booking-page .mini-label,
.public-booking-page .field-label {
  text-transform: uppercase;
}

.event-select-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.event-select {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 11px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--surface);
  text-align: left;
}

.event-select strong {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.event-select small {
  color: var(--grey);
  font-weight: 500;
}

.event-select.is-selected {
  border-color: var(--night);
  box-shadow: inset 4px 0 0 var(--blue);
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 7px;
  margin: 12px 0 14px;
}

.date-button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  padding: 6px 2px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--surface);
  color: var(--ink);
}

.date-button small {
  color: var(--grey);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
}

.date-button strong {
  font-size: 1.12rem;
  font-weight: 500;
}

.date-button.is-selected {
  border-color: var(--night);
  background: var(--night);
  color: white;
}

.date-button.is-selected small {
  color: rgba(255, 255, 255, 0.72);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.availability-empty {
  grid-column: 1 / -1;
  min-height: 46px;
  padding: 12px;
  border: 1px dashed var(--hair-strong);
  border-radius: var(--r-tile);
  background: var(--panel);
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
}

.slot-button {
  min-height: 42px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

.slot-button.is-selected {
  border-color: var(--blue-ink);
  background: var(--blue-tint);
  color: var(--blue-ink);
}

.slot-button:disabled {
  color: var(--faint);
  background: var(--panel);
  text-decoration: line-through;
}

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

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

.field {
  display: grid;
  gap: 7px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 11px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--panel);
}

.toggle-row strong {
  display: block;
  margin-top: 2px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--surface);
  color: var(--ink);
  outline: 0;
}

.field input,
.field select {
  height: 42px;
  padding: 0 11px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
  padding: 10px 11px;
}

.field textarea.description-editor {
  min-height: 154px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--night);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.16);
}

.schedule-board {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--panel);
}

.timeline-time {
  color: var(--grey);
  font-weight: 500;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  border: 1px dashed var(--hair-strong);
  border-radius: var(--r-tile);
  background: var(--panel);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.empty-state p {
  max-width: 380px;
  margin: 0;
  color: var(--grey);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.integration-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.integration-panel h3 {
  margin-top: 3px;
}

.integration-panel p {
  margin: 4px 0 0;
  color: var(--grey);
}

.calendar-check-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin-top: -2px;
  color: var(--grey);
  font-size: 0.8rem;
  font-weight: 500;
}

.calendar-check-row .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.calendar-check-row.is-synced {
  color: var(--blue-ink);
}

.segments {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--panel);
}

.segment-button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--grey);
}

.segment-button.is-active {
  background: var(--night);
  color: var(--surface);
}

.booking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.booking-card.cancelled {
  opacity: 0.72;
}

.booking-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.booking-person .member-avatar {
  width: 34px;
  height: 34px;
}

.booking-meta {
  margin-top: 10px;
  color: var(--grey);
  font-weight: 500;
}

.availability-table {
  display: grid;
  gap: 9px;
}

.availability-row {
  display: grid;
  grid-template-columns: 120px 70px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--panel);
}

.time-range {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(96px, 1fr);
  gap: 8px;
}

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

.person-card {
  display: grid;
  gap: 18px;
}

.person-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person-load {
  display: grid;
  gap: 10px;
}

.person-load-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
}

.people-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 130px;
}

.people-empty h3 {
  margin: 0 0 4px;
}

.people-empty p {
  max-width: 520px;
  margin: 0;
  color: var(--grey);
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: var(--r-tile);
  background: var(--blue-tint);
  color: var(--blue-ink);
}

.admin-gate {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 620px;
}

.admin-gate h2 {
  margin: 2px 0 6px;
}

.admin-gate p {
  max-width: 440px;
  margin: 0 0 16px;
  color: var(--grey);
}

.admin-login-form {
  display: grid;
  gap: 12px;
  max-width: 360px;
}

.member-avatar {
  width: 42px;
  height: 42px;
  background: var(--blue);
}

.member-avatar.cobalt {
  background: var(--violet);
}

.member-avatar.rose {
  background: var(--rose);
}

.capacity-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececea;
}

.capacity-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.workflow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.workflow-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-tile);
  background: var(--violet-wash);
  color: var(--violet);
}

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

.settings-panel {
  display: grid;
  gap: 13px;
}

.google-calendar-panel {
  display: grid;
  gap: 14px;
}

.google-calendar-status {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: min(260px, 100%);
  color: var(--grey);
  font-weight: 500;
  text-align: right;
}

.google-calendar-status small {
  max-width: 300px;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  width: 34px;
  height: 34px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--hair);
}

.swatch.is-active {
  box-shadow: 0 0 0 3px var(--night);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 14, 22, 0.6);
}

.modal-layer[hidden] {
  display: none;
}

.modal {
  width: min(650px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: var(--r-tile);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-radio {
  position: relative;
}

.color-radio input {
  position: absolute;
  opacity: 0;
}

.color-radio span {
  display: block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--hair);
}

.color-radio input:checked + span {
  box-shadow: 0 0 0 3px var(--night);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  transform: translateY(18px);
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-tile);
  background: var(--night);
  color: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .view-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-widget {
    position: static;
  }

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

  .public-booking-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 0;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
    min-width: 0;
    max-width: 100vw;
    overflow: hidden;
  }

  .brand-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: none;
    min-height: 68px;
    padding: 4px 56px 4px 0;
    border-bottom: 0;
  }

  .brand-logo-dashboard {
    width: min(256px, 100%);
  }

  .mobile-menu-button {
    position: fixed;
    top: 26px;
    right: 16px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--hair);
    border-radius: var(--r-tile);
    background: var(--night);
    color: var(--surface);
    box-shadow: 0 8px 20px rgba(15, 26, 43, 0.08);
  }

  .mobile-menu-button:hover,
  .sidebar.is-menu-open .mobile-menu-button {
    border-color: var(--night);
    background: var(--blue);
    color: var(--surface);
  }

  .nav-stack {
    display: none;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid var(--hair);
    border-radius: var(--r-tile);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 26, 43, 0.08);
  }

  .sidebar.is-menu-open .nav-stack {
    display: grid;
  }

  .nav-item {
    width: 100%;
  }

  .sidebar-card {
    display: none;
  }

  .topbar {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    min-width: 0;
    max-width: 100vw;
  }

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

  .topbar-actions {
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
  }

  .content {
    padding: 16px;
    min-width: 0;
    max-width: 100vw;
  }

  .public-page {
    padding: 18px 16px 36px;
  }

  .public-booking-page {
    padding: 16px;
  }

  .public-booking-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-event-panel {
    min-height: auto;
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }

  .public-event-logo {
    width: 178px;
    margin-bottom: 28px;
  }

  .public-event-title {
    font-size: 1.94rem;
    line-height: 1.16;
  }

  .public-event-note {
    margin-top: 22px;
  }

  .public-scheduler-panel {
    padding: 24px 22px 22px;
  }

  .confirmation-page {
    padding: 16px 14px 34px;
  }

  .confirmation-header {
    padding-bottom: 8px;
  }

  .confirmation-logo {
    width: min(184px, 64vw);
  }

  .confirmation-main {
    gap: 22px;
    margin-top: 22px;
  }

  .confirmation-card {
    padding: 20px 18px;
  }

  .public-page-header {
    min-height: 56px;
    margin-bottom: 20px;
  }

  .public-page-logo {
    width: min(260px, 82vw);
  }

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

  .public-hero-copy h1 {
    font-size: 2.55rem;
    line-height: 1.04;
  }

  .availability-row {
    grid-template-columns: 1fr auto;
  }

  .availability-row .time-range,
  .availability-row .quiet-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .stat-grid,
  .field-grid,
  .people-grid,
  .settings-grid,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .date-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .public-scheduler-heading {
    display: grid;
    gap: 10px;
  }

  .public-date-pill {
    width: fit-content;
  }

  .date-button {
    min-height: 52px;
  }

  .link-chip span {
    overflow-wrap: anywhere;
  }

  .event-card,
  .booking-card,
  .workflow-card,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .booking-card .card-actions {
    justify-content: flex-start;
  }

  .topbar-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .topbar-actions .ghost-button,
  .topbar-actions .primary-button {
    padding-inline: 10px;
  }

  .toolbar-actions,
  .integration-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .google-calendar-status {
    justify-items: start;
    text-align: left;
  }

  .profile-pill {
    display: none;
  }

  .ghost-button,
  .primary-button {
    width: 100%;
  }
}

/* ==========================================================================
   Second Unit look
   Shell, type and component shapes borrowed from secondunitagents.com:
   dark glass sidebar with blue glow, Lexend display type, DM Sans body,
   pill buttons, white hairline cards.
   ========================================================================== */

/* ---- type ---- */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.36rem;
}

h3 {
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mini-label,
.eyebrow,
.field-label,
.table-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.table-label {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.82rem;
}

/* ---- Second Unit logo ---- */

.su-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  line-height: 1;
}

.su-logo .mark {
  width: auto;
  height: 26px;
  flex: none;
}

.su-logo .word {
  display: inline-flex;
}

.su-logo .word svg {
  display: block;
  width: auto;
  height: 17px;
}

.su-logo.on-dark {
  color: #fff;
}

.su-logo.is-large .mark {
  height: 32px;
}

.su-logo.is-large .word svg {
  height: 22px;
}

/* ---- sidebar: the dark hero, turned on its side ---- */

.sidebar {
  border-right: 0;
  background:
    radial-gradient(90% 34% at 90% 4%, rgba(26, 115, 232, 0.3), transparent 72%),
    radial-gradient(80% 30% at 0% 100%, rgba(26, 115, 232, 0.16), transparent 72%),
    var(--night);
  color: #fff;
  backdrop-filter: none;
}

.brand-block {
  padding: 8px 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-stack {
  gap: 4px;
}

.nav-item {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sidebar-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.sidebar-card .mini-label {
  color: rgba(255, 255, 255, 0.5);
}

.link-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.2s ease;
}

.link-chip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.link-chip span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- top bar ---- */

.topbar {
  padding: 16px 28px;
  border-bottom: 1px solid var(--hair);
}

.search-box {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.16);
}

.content {
  padding: 28px;
}

/* ---- buttons: pills ---- */

.primary-button,
.ghost-button,
.icon-button,
.danger-button,
.quiet-button {
  min-height: 40px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-button:active,
.ghost-button:active,
.danger-button:active,
.quiet-button:active {
  transform: translateY(1px);
}

.primary-button {
  padding: 0 20px;
  border: 1px solid var(--blue);
  background: var(--blue);
  box-shadow: none;
}

.primary-button:hover {
  border-color: var(--blue-ink);
  background: var(--blue-ink);
}

.ghost-button,
.quiet-button {
  padding: 0 16px;
  background: #fff;
}

.ghost-button:hover,
.quiet-button:hover {
  border-color: var(--ink);
  background: #fff;
}

.danger-button {
  padding: 0 16px;
}

.icon-button {
  width: 40px;
  background: #fff;
}

.icon-button:hover {
  border-color: var(--ink);
}

.link-button {
  color: var(--blue);
  font-weight: 500;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.profile-pill {
  width: 40px;
  height: 40px;
}

.avatar {
  background: var(--night);
}

/* ---- cards ---- */

.panel,
.event-card,
.booking-card,
.workflow-card,
.person-card,
.settings-panel {
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.panel {
  padding: 22px;
}

.panel.public-card,
.panel.public-card-compact {
  padding: 0;
}

.event-card,
.booking-card,
.workflow-card,
.person-card,
.settings-panel {
  padding: 18px;
}

.panel .event-card,
.panel .booking-card,
.panel .workflow-card,
.panel .person-card,
.panel .settings-panel {
  border-radius: var(--r-tile);
  box-shadow: none;
}

.stat-card {
  min-height: 116px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: #fff;
}

.stat-card strong {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.stat-card span:last-child {
  font-size: 0.9rem;
  font-weight: 400;
}

/* a status dot instead of a coloured top rule */
.accent-moss,
.accent-cobalt,
.accent-rose,
.accent-amber {
  border-top: 1px solid var(--hair);
}

.stat-card .mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-card .mini-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.accent-cobalt .mini-label::before {
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 92, 250, 0.18);
}

.accent-rose .mini-label::before {
  background: #2bb673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
}

.accent-amber .mini-label::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 163, 58, 0.2);
}

.empty-state {
  border-radius: var(--r-tile);
  border-color: var(--hair);
}

.empty-state strong {
  font-weight: 400;
  letter-spacing: -0.015em;
}

.empty-icon,
.workflow-icon {
  border-radius: 12px;
}

.empty-icon {
  background: var(--blue-tint);
  color: var(--blue);
}

/* ---- chips ---- */

.meta-chip,
.status-chip,
.route-chip,
.slot-chip {
  padding: 0 11px;
  background: #fff;
}

.status-chip.active,
.route-chip {
  color: var(--blue-ink);
}

.event-color {
  width: 6px;
  flex-basis: 6px;
}

.switch span {
  border-color: transparent;
}

.switch input:checked + span {
  border-color: var(--blue);
}

/* ---- forms ---- */

.field input,
.field select,
.field textarea {
  border-radius: var(--r-field);
  background: #fff;
}

.field input,
.field select {
  height: 44px;
  padding: 0 13px;
}

.field textarea {
  padding: 12px 13px;
}

.field input::placeholder,
.field textarea::placeholder,
.search-box input::placeholder {
  color: var(--faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.16);
}

.segments {
  border-radius: 999px;
  background: #fff;
}

.segment-button,
.status-chip {
  text-transform: capitalize;
}

.segment-button {
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 500;
}

.segment-button:hover {
  background: rgba(26, 115, 232, 0.1);
}

.segment-button.is-active,
.segment-button.is-active:hover {
  background: var(--night);
  color: #fff;
}

/* ---- booking widget ---- */

.public-card-top {
  position: relative;
  padding: 20px;
  background:
    radial-gradient(80% 120% at 92% 0%, rgba(26, 115, 232, 0.42), transparent 70%),
    var(--night);
  color: #fff;
}

.public-badge {
  border-radius: 12px;
}

.booking-flow {
  padding: 18px;
}

.event-select {
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.event-select:hover {
  border-color: var(--hair-strong);
}

.event-select.is-selected {
  border-color: var(--blue);
  background: var(--blue-tint);
  box-shadow: none;
}

.date-button,
.slot-button {
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.date-button:hover,
.slot-button:hover:not(:disabled) {
  border-color: var(--blue);
}

.date-button strong {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.date-button.is-selected,
.public-card-compact .date-button.is-selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.slot-button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 500;
}

.slot-button.is-selected,
.public-card-compact .slot-button.is-selected {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-weight: 500;
}

.public-card-compact .slot-button {
  min-height: 44px;
}

.public-card-compact .primary-button,
.booking-form .primary-button {
  min-height: 46px;
}

.swatch.is-active,
.color-radio input:checked + span {
  box-shadow: 0 0 0 3px var(--ink);
}

/* ---- modal and toast ---- */

.modal {
  padding: 26px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

.modal-layer {
  backdrop-filter: blur(6px);
}

.toast {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
}

/* ---- guest pages: white card on the dark wall ---- */

body.public-route {
  background:
    radial-gradient(60% 50% at 80% 12%, rgba(26, 115, 232, 0.3), transparent 70%),
    radial-gradient(40% 40% at 8% 92%, rgba(26, 115, 232, 0.14), transparent 70%),
    var(--night);
  background-attachment: fixed;
}

.public-booking-page {
  padding: 28px clamp(16px, 4vw, 54px) 40px;
}

.public-topline,
.public-footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1040px, 100%);
  margin-inline: auto;
}

.public-topline {
  min-height: 56px;
  margin-bottom: 26px;
  padding: 0 10px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
}

.public-topline > a {
  display: inline-flex;
  text-decoration: none;
}

.public-topline-link {
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.public-topline-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.public-footline {
  justify-content: center;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.public-footline a {
  color: var(--blue-sky);
  text-decoration: none;
}

.public-booking-shell {
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.public-event-panel {
  min-height: 560px;
  padding: 34px 32px;
  background: var(--panel);
}

.public-event-title {
  font-size: 2.3rem;
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.public-event-description {
  color: var(--grey);
  font-size: 1rem;
}

.public-detail {
  font-weight: 400;
}

.public-detail .icon {
  color: var(--blue);
  stroke-width: 1.8;
}

.public-scheduler-panel {
  padding: 34px 32px 30px;
}

.public-scheduler-heading h2 {
  font-size: 1.4rem;
  font-weight: 400;
}

.public-date-pill {
  background: var(--blue-tint);
  border-color: var(--blue-tint-line);
  color: var(--blue-ink);
}

/* confirmation */

.confirmation-page {
  background: transparent;
}

.confirmation-check {
  width: 44px;
  height: 44px;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(26, 115, 232, 0.22);
}

.confirmation-check .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.confirmation-status {
  gap: 18px;
}

.confirmation-status h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.confirmation-status p {
  margin: 0;
  font-size: 1rem;
}

.confirmation-card {
  padding: 26px 24px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.confirmation-card h2 {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 400;
}

.confirmation-detail {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
}

.confirmation-detail .icon {
  color: var(--blue);
  stroke-width: 1.8;
}

.confirmation-page .link-button {
  color: var(--blue-sky);
}

/* link not found */

.public-page-centered {
  min-height: 100vh;
}

.public-not-found {
  gap: 18px;
  padding: 34px 32px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.public-not-found h1 {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.public-not-found p {
  margin: 0;
  color: var(--grey);
}

/* ---- small screens ---- */

@media (max-width: 860px) {
  .sidebar {
    border-bottom: 0;
  }

  .brand-block {
    min-height: 60px;
    padding: 4px 56px 4px 4px;
  }

  .mobile-menu-button,
  .mobile-menu-button:hover,
  .sidebar.is-menu-open .mobile-menu-button {
    top: 23px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: none;
  }

  .nav-stack {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  .content {
    padding: 16px;
  }

  .public-event-panel {
    min-height: auto;
    padding: 26px 22px;
  }

  .public-scheduler-panel {
    padding: 26px 22px 24px;
  }

  .public-topline {
    margin-bottom: 16px;
    padding: 0 16px;
  }

  .public-topline > .public-topline-link {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
