@font-face {
  font-family: "PP Montserrat";
  src: url("../fonts/body/Montserrat-Regular.otf") format("opentype");
  font-display: block;
}

@font-face {
  font-family: "PP Bryson";
  src: url("../fonts/title/Bryson-Regular.otf") format("opentype");
  font-display: block;
}

:root {
  --navy: #272b58;
  --orange: #ea8000;
  --ink: #16171c;
  --muted: #686d78;
  --line: #dedfe5;
  --soft: #f7f7f5;
  --panel: #ffffff;
  --success: #0f9f6e;
  --danger: #b83232;
  --shadow: 0 12px 32px rgba(28, 31, 45, .08);
  --calendar-sidebar: 214px;
  --calendar-sidebar-edge-gap: 12.5px;
  --calendar-sidebar-logo-gap: 5px;
  --calendar-sidebar-control-nudge: 1.5px;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "PP Montserrat", Arial, sans-serif;
  letter-spacing: 0;
}

body.soft-nav-loading {
  cursor: progress;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

main {
  min-height: calc(100vh - 72px);
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "PP Bryson", "PP Montserrat", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.brand span {
  color: var(--orange);
  font-size: 32px;
  line-height: .9;
}

.brand img,
.sidebar-profile img,
.booking-summary img,
.booking-page-head img {
  width: 38px;
  height: 38px;
}

.brand-wordmark {
  display: none;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  white-space: nowrap;
}

.primary-button {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.secondary-button {
  background: #fff;
  border-color: #cfd2da;
}

.ghost-button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding-inline: 8px;
}

.danger-button {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

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

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.wide-inline {
  flex: 1;
  min-width: 320px;
}

.flash-stack {
  position: fixed;
  right: 20px;
  top: 88px;
  z-index: 160;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.flash.success {
  border-color: rgba(15, 159, 110, .35);
}

.flash.error {
  border-color: rgba(184, 50, 50, .35);
}

.home {
  height: 100dvh;
  overflow: hidden;
  background: #f3e5d5;
}

.home .topbar {
  height: 112px;
  padding: 0 clamp(40px, 3.8vw, 72px);
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  position: relative;
}

.home .brand {
  gap: 0;
}

.home .brand .brand-mark {
  display: none;
}

.home .brand .brand-wordmark {
  display: block;
  width: auto;
  height: 74px;
  max-width: 260px;
  object-fit: contain;
}

.home .brand span {
  display: none;
}

.home .topnav {
  gap: 34px;
  color: var(--navy);
  font-size: clamp(18px, 1.2vw, 24px);
  font-weight: 650;
}

.home .topnav > a[href="/book/premium-productions"],
.home .topnav > a[data-href="/book/premium-productions"] {
  display: none;
}

.home .topnav .primary-button {
  min-height: 58px;
  border-radius: 10px;
  padding: 14px 30px;
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 14px 28px rgba(234, 128, 0, .22);
  font-size: clamp(20px, 1.25vw, 24px);
  font-weight: 650;
}

.home main {
  height: calc(100dvh - 112px);
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  background: #f3e5d5;
}

.home-shell {
  max-width: 1800px;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 clamp(40px, 3.8vw, 72px);
  display: grid;
  grid-template-columns: minmax(420px, .72fr) minmax(740px, 1.28fr);
  gap: clamp(52px, 6vw, 116px);
  align-items: center;
}

.home-panel h1,
.portal-hero h1,
.booking-page-head h1,
.page-title h1 {
  font-family: "PP Bryson", "PP Montserrat", Arial, sans-serif;
  text-transform: uppercase;
}

.home-panel h1 {
  max-width: 640px;
  margin: 0 0 34px;
  color: var(--orange);
  font-size: clamp(58px, 5vw, 96px);
  line-height: 1.02;
}

.home-panel p {
  max-width: 540px;
  color: var(--navy);
  font-size: clamp(20px, 1.42vw, 26px);
  line-height: 1.42;
  margin: 0;
}

.eyebrow {
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(14px, 2.6vh, 26px);
}

.home .home-actions {
  display: none;
}

.home-copy-mobile,
.home-mobile-meeting,
.home-public-mobile-link,
.home-scroll-hint {
  display: none;
}

.home-surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 2vw, 32px);
  box-shadow: none;
}

.surface-head {
  display: flex;
  gap: 16px;
  color: var(--navy);
  align-items: center;
  margin-bottom: 22px;
  font-size: clamp(24px, 1.9vw, 34px);
  font-weight: 800;
}

.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--success);
}

.home-month-label {
  margin-left: auto;
  color: var(--orange);
  font-size: clamp(20px, 1.45vw, 26px);
  font-weight: 800;
}

.home-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px 16px;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(13px, .95vw, 18px);
  font-weight: 800;
  text-align: center;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px 16px;
}

.mini-calendar button {
  min-height: clamp(40px, 4.9vh, 48px);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  color: #050b1f;
  font: inherit;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}

.mini-calendar button:not(:disabled):hover,
.mini-calendar button:focus-visible {
  border-color: var(--orange);
  background: #fff;
  outline: none;
}

.mini-calendar button:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: rgba(39, 43, 88, .42);
}

.mini-calendar span {
  color: inherit;
  font-size: clamp(10px, .82vw, 13px);
  font-weight: 750;
}

.mini-calendar .active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.mini-calendar .active span {
  color: #fff;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 10px;
}

.slot-list button {
  border: 1px solid var(--orange);
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 12px;
  background: #fff;
  color: #050b1f;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.slot-list button:hover,
.slot-list button:focus-visible {
  border-color: var(--orange);
  background: rgba(234, 128, 0, .08);
  outline: none;
}

.home-slots-label {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 650;
}

@media (min-width: 681px) and (max-height: 900px) {
  .home .topbar {
    height: 96px;
  }

  .home main {
    height: calc(100dvh - 96px);
  }

  .home .brand .brand-mark {
    width: 56px;
    height: 56px;
  }

  .home .brand .brand-wordmark {
    width: auto;
    height: 62px;
    max-width: 230px;
  }

  .home .home-panel h1 {
    margin-bottom: 24px;
    font-size: clamp(50px, 4.6vw, 72px);
  }

  .home .home-panel p {
    font-size: clamp(17px, 1.28vw, 21px);
  }

  .home .home-surface {
    padding: 16px 22px;
  }

  .home .surface-head {
    margin-bottom: 12px;
    font-size: 25px;
  }

  .home .status-dot {
    width: 12px;
    height: 12px;
  }

  .home .home-month-label {
    font-size: 20px;
  }

  .home .home-weekdays {
    gap: 6px 12px;
    margin-bottom: 6px;
    font-size: 13px;
  }

  .home .mini-calendar {
    gap: 6px 12px;
  }

  .home .mini-calendar button {
    min-height: 32px;
  }

  .home .mini-calendar span {
    font-size: 10px;
  }

  .home .slot-list {
    gap: 4px 14px;
    margin-top: 7px;
  }

  .home .slot-list button {
    min-height: 27px;
    padding: 4px 10px;
    font-size: 14px;
  }

  .home .home-slots-label {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 15px;
  }
}

.slot-list .empty-state {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px dashed #cdd1db;
  border-radius: 8px;
  color: var(--muted);
  background: #fafbfc;
}

.section-band {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 0;
}

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

.section-heading h2,
.panel h2 {
  margin: 0;
}

.section-heading p,
.muted {
  color: var(--muted);
}

.block {
  display: block;
  margin-top: 4px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.booking-card,
.panel,
.auth-card,
.event-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.booking-card {
  padding: 22px;
  min-height: 160px;
}

.home .booking-card {
  min-height: 0;
  padding: clamp(14px, 2vh, 20px);
}

.booking-card h3 {
  margin: 18px 0 10px;
}

.home .booking-card h3 {
  margin: 12px 0 6px;
}

.booking-card p,
.event-row p {
  color: var(--muted);
  line-height: 1.55;
}

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

.auth-page main {
  min-height: calc(100dvh - 72px);
}

.auth-shell {
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vh, 54px) 18px clamp(44px, 7vh, 78px);
}

.auth-stack {
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-card {
  width: 100%;
  padding: clamp(24px, 4vw, 32px);
  display: grid;
  gap: 17px;
}

.auth-stack .auth-card {
  box-shadow: 0 14px 42px rgba(24, 27, 43, .08);
}

.auth-card h1 {
  margin: 0 0 2px;
  font-family: "PP Montserrat", Arial, sans-serif;
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 750;
  line-height: 1.1;
  text-transform: none;
}

.auth-logo {
  width: min(330px, 82vw);
  max-height: min(24vh, 205px);
  object-fit: contain;
  display: block;
}

.auth-dev-note {
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.35;
}

.auth-mark {
  width: 54px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd2da;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}

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

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

.dashboard-shell {
  display: grid;
  grid-template-columns: var(--calendar-sidebar) minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.dashboard .topbar {
  display: none;
}

.dashboard main {
  min-height: 100vh;
}

.dashboard .dashboard-shell {
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid #e8e9ee;
  background: #f7f8fa;
  padding: 22px 12px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0 12px;
}

.sidebar-avatar {
  position: relative;
  display: block;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}

.sidebar-avatar img {
  width: 31px;
  height: 31px;
  display: block;
}

.sidebar-avatar > span {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid #f7f8fa;
  border-radius: 999px;
  background: #12c86b;
}

.sidebar-workspace-button {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}

.sidebar-profile strong {
  display: flex;
  flex-wrap: wrap;
  column-gap: .32em;
  row-gap: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  min-width: 0;
}

.sidebar-profile strong span {
  display: inline-block;
  white-space: nowrap;
}

.sidebar-workspace-button > span {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: 0 0 auto;
  background-color: #9aa0aa;
  mask: url("../icons/chevron-down.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/chevron-down.svg") center / contain no-repeat;
  transition: transform .16s ease;
}

.sidebar-workspace-button[aria-expanded="true"] > span {
  transform: rotate(180deg);
  background-color: #4d525d;
}

.sidebar-search-button {
  border: 0;
  background: transparent;
  color: #4d525d;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.sidebar-search-button:hover,
.sidebar-workspace-button:hover {
  background: #eceef2;
}

.sidebar-search-button > span {
  width: 22px;
  height: 22px;
  background-color: currentColor;
  mask: url("../icons/search.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/search.svg") center / contain no-repeat;
}

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

.side-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #3f444e;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.side-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background-color: currentColor;
  opacity: .9;
  mask: var(--side-icon) center / contain no-repeat;
  -webkit-mask: var(--side-icon) center / contain no-repeat;
}

.side-icon-link { --side-icon: url("../icons/link.svg"); }
.side-icon-calendar { --side-icon: url("../icons/calendar.svg"); }
.side-icon-clock { --side-icon: url("../icons/clock.svg"); }
.side-icon-building { --side-icon: url("../icons/building.svg"); }
.side-icon-user { --side-icon: url("../icons/user.svg"); }
.side-icon-permissions { --side-icon: url("../icons/permissions.svg"); }
.side-icon-meeting-pages { --side-icon: url("../icons/meeting-pages.svg"); }
.side-icon-calendar-connections { --side-icon: url("../icons/calendar-connections.svg"); }
.side-icon-grid { --side-icon: url("../icons/grid-3x3.svg"); }
.side-icon-zap { --side-icon: url("../icons/zap.svg"); }
.side-icon-insights { --side-icon: url("../icons/insights.svg"); }
.side-icon-studio { --side-icon: url("/studio/assets/uploads/icons/Studio Icon/Studio Icon.svg"); }
.side-icon-portal { --side-icon: url("/studio/assets/uploads/icons/Portal.svg"); }
.side-icon-billing { --side-icon: url("/studio/assets/uploads/icons/Billing.svg"); }
.side-icon-settings { --side-icon: url("../icons/settings.svg"); }
.side-icon-external-link { --side-icon: url("../icons/external-link.svg"); }
.side-icon-copy { --side-icon: url("../icons/copy.svg"); }
.side-icon-arrow-right { --side-icon: url("../icons/arrow-right.svg"); }

.workspace-menu {
  position: fixed;
  top: 72px;
  left: 24px;
  right: auto;
  z-index: 70;
  width: min(360px, calc(100vw - 48px));
  min-width: 292px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(18, 21, 33, .18);
  box-sizing: border-box;
}

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

.workspace-menu a,
.workspace-menu button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: transparent;
  color: #2f333b;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.workspace-menu-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-menu a:hover,
.workspace-menu button:hover,
.workspace-menu a:focus-visible,
.workspace-menu button:focus-visible {
  background: #f2f3f6;
  color: #171a22;
  outline: none;
}

.workspace-menu form {
  margin: 0;
}

.workspace-menu .danger {
  color: #c11414;
}

.workspace-menu-separator {
  height: 1px;
  margin: 8px 12px;
  background: var(--line);
}

.side-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav a.active {
  background: #e6e8ed;
  color: var(--ink);
  font-weight: 750;
}

.sidebar-bottom {
  margin-top: 0;
  display: grid;
  gap: 4px;
  padding-top: 18px;
}

.sidebar-bottom a,
.sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 8px 12px;
  color: #3f444e;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.sidebar-bottom a:hover,
.sidebar-bottom button:hover,
.side-nav a:hover {
  background: #eceef2;
}

.dashboard .dashboard-shell {
  grid-template-columns: var(--calendar-sidebar) minmax(0, 1fr);
}

.dashboard .sidebar {
  background: var(--navy);
  border-right: 1px solid var(--navy);
  padding: 0;
  scrollbar-width: none;
}

.dashboard .sidebar::-webkit-scrollbar {
  display: none;
}

.dashboard .sidebar-profile {
  display: grid;
  gap: var(--calendar-sidebar-logo-gap);
  min-height: 0;
  margin: 0 0 var(--calendar-sidebar-edge-gap);
  padding: var(--calendar-sidebar-edge-gap);
}

.dashboard .sidebar-brand-button {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.dashboard .sidebar-brand-logo {
  display: block;
  width: calc(100% + 3.5px);
  height: auto;
  object-fit: contain;
  transform: translateX(-2.5px);
}

.dashboard .sidebar-brand-button > span {
  display: none;
}

.dashboard .sidebar-search-button {
  width: calc(100% + var(--calendar-sidebar-control-nudge));
  min-height: 38px;
  height: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.dashboard .sidebar-search-button:hover,
.dashboard .sidebar-search-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: none;
}

.dashboard .sidebar-search-button > span:first-child {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.dashboard .sidebar-search-button > span:last-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: currentColor;
  font-size: 0.9rem;
  font-weight: 700;
}

.dashboard .side-nav {
  display: grid;
  gap: 4px;
  padding: 0 var(--calendar-sidebar-edge-gap) 4px;
  overflow: visible;
}

.dashboard .side-nav a,
.dashboard .sidebar-bottom a,
.dashboard .sidebar-bottom button {
  width: calc(100% + var(--calendar-sidebar-control-nudge));
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.dashboard .side-icon {
  width: 22px;
  height: 22px;
  color: currentColor;
  background-color: currentColor;
  opacity: 1;
}

.dashboard .side-nav a.active,
.dashboard .side-nav a:hover,
.dashboard .side-nav a:focus-visible,
.dashboard .sidebar-bottom a:hover,
.dashboard .sidebar-bottom a:focus-visible,
.dashboard .sidebar-bottom button:hover,
.dashboard .sidebar-bottom button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #050505;
  outline: none;
}

.dashboard .side-nav a.active .side-icon,
.dashboard .side-nav a:hover .side-icon,
.dashboard .side-nav a:focus-visible .side-icon,
.dashboard .sidebar-bottom a:hover .side-icon,
.dashboard .sidebar-bottom a:focus-visible .side-icon,
.dashboard .sidebar-bottom button:hover .side-icon,
.dashboard .sidebar-bottom button:focus-visible .side-icon {
  color: var(--orange);
}

.dashboard .side-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard .sidebar-bottom {
  margin-top: 0;
  gap: 4px;
  padding: 0 var(--calendar-sidebar-edge-gap) 18px;
}

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

.command-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 72px 18px 18px;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 23, 28, .34);
}

.command-dialog {
  position: relative;
  width: min(95vw, 640px);
  max-height: min(680px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(18, 21, 33, .18);
}

.command-search {
  position: relative;
  padding: 8px 10px;
}

.command-search > span {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-color: #5b606b;
  mask: url("../icons/search.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/search.svg") center / contain no-repeat;
}

.command-search input {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px 0 38px;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.command-list {
  min-height: 0;
  overflow: auto;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

.command-group + .command-group {
  margin-top: 6px;
}

.command-group-label {
  padding: 8px 8px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.command-item {
  min-height: 34px;
  border-radius: 7px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2f333b;
  font-size: 14px;
  font-weight: 600;
}

.command-item:hover,
.command-item.active {
  background: #f0f1f4;
}

.command-item > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-item-main {
  display: grid;
  gap: 2px;
}

.command-item-main strong,
.command-item-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-item-main strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.command-item-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.command-item kbd,
.command-footer kbd,
.kbd-icon {
  min-width: 20px;
  height: 20px;
  border: 0;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  background: #eef0f3;
  color: var(--muted);
  font: 700 11px/1 "PP Montserrat", Arial, sans-serif;
}

.command-separator {
  height: 1px;
  margin: 8px;
  background: var(--line);
}

.command-empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.command-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.command-footer div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kbd-icon {
  width: 20px;
  padding: 0;
  background-color: #eef0f3;
}

.kbd-icon::before {
  content: "";
  width: 13px;
  height: 13px;
  background-color: currentColor;
  display: block;
}

.kbd-icon.arrow-up::before {
  mask: url("../icons/arrow-up.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/arrow-up.svg") center / contain no-repeat;
}

.kbd-icon.arrow-down::before {
  mask: url("../icons/arrow-down.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/arrow-down.svg") center / contain no-repeat;
}

.kbd-icon.enter::before {
  mask: url("../icons/corner-down-left.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/corner-down-left.svg") center / contain no-repeat;
}

.kbd-icon.command::before {
  mask: url("../icons/command.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/command.svg") center / contain no-repeat;
}

.dashboard-content,
.client-shell {
  padding: 28px 28px 42px;
  display: grid;
  gap: 22px;
  align-content: start;
}

@media (min-width: 981px) {
  html:has(body.dashboard),
  body.dashboard {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.dashboard {
    height: 100dvh;
    min-height: 0;
  }

  .dashboard main,
  .dashboard .dashboard-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .dashboard .sidebar {
    position: relative;
    top: auto;
    height: 100dvh;
    max-height: 100dvh;
    overscroll-behavior: contain;
  }

  .dashboard .dashboard-content,
  .dashboard .client-shell {
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

.page-title,
.portal-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.page-title h1,
.portal-hero h1 {
  margin: 0 0 6px;
  font-size: 36px;
}

.page-title p,
.portal-hero p {
  margin: 0;
  color: var(--muted);
}

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

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

.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
}

.danger-soft {
  border-color: rgba(184, 50, 50, .26);
}

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

.panel {
  padding: 22px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3),
.users-table th:nth-child(4),
.users-table td:nth-child(4),
.users-table th:nth-child(5),
.users-table td:nth-child(5) {
  text-align: center;
}

.users-table td:nth-child(5) .inline-form {
  justify-content: center;
}

.calendar-user-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.calendar-user-avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.calendar-user-copy {
  min-width: 0;
}

.calendar-user-copy strong,
.calendar-user-copy span {
  display: block;
}

.calendar-user-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(39, 43, 88, 0.14);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.admin-preview-banner div {
  display: grid;
  gap: 3px;
}

.admin-preview-banner span {
  color: var(--muted);
}

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

.organisation-explainer > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 21, 33, .03);
}

.organisation-explainer strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.organisation-explainer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.permissions-overview article,
.permission-resource-group,
.permission-record {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 21, 33, .03);
}

.permissions-overview article {
  display: flex;
  gap: 14px;
  padding: 18px;
}

.permission-step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f0f1f6;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.permissions-overview h2,
.permission-panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
}

.permissions-overview p,
.permission-panel-head p,
.permission-record p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.permission-panel {
  display: grid;
  gap: 18px;
}

.permission-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.permission-form {
  max-width: 620px;
}

.permission-records-panel {
  display: grid;
  gap: 18px;
}

.permission-record-list,
.permission-resource-list {
  display: grid;
  gap: 10px;
}

.permission-resource-group {
  overflow: hidden;
}

.permission-resource-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.permission-resource-summary::-webkit-details-marker {
  display: none;
}

.permission-resource-summary:hover {
  background: #fbfcfd;
}

.permission-resource-summary strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-resource-summary p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.permission-resource-icon {
  width: 22px;
  height: 22px;
  color: #555b66;
}

.permission-resource-chevron {
  width: 16px;
  height: 16px;
  background: #5d6370;
  mask: url("../icons/chevron-down.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/chevron-down.svg") center / contain no-repeat;
  transition: transform .16s ease;
}

.permission-resource-group[open] .permission-resource-chevron {
  transform: rotate(180deg);
}

.permission-resource-rules {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.permission-resource-rules .permission-record {
  box-shadow: none;
}

.permission-record {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.permission-record strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.permission-record-icon {
  width: 22px;
  height: 22px;
  color: #555b66;
}

.permission-record-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.permission-record-edit {
  grid-column: 2 / -1;
  justify-self: start;
  width: min(680px, 100%);
}

.permission-record-edit summary {
  width: fit-content;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 8px 10px;
  color: #5b616d;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.permission-record-edit summary::-webkit-details-marker {
  display: none;
}

.permission-record-edit summary:hover,
.permission-record-edit[open] summary {
  border-color: var(--line);
  background: #f4f6f9;
  color: var(--ink);
}

.permission-inline-edit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fbfcfd;
}

select.enhanced-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  margin: -1px;
  padding: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.enhanced-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.enhanced-select-input {
  height: 38px;
  padding-right: 38px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 21, 33, .03);
}

.enhanced-select.open .enhanced-select-input {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--cal-focus);
}

.enhanced-select-chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform: translateY(-50%);
  background: #5d6370;
  mask: url("../icons/chevron-down.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/chevron-down.svg") center / contain no-repeat;
}

.enhanced-select.open .enhanced-select-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.enhanced-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 90;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #d9dce3;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(18, 21, 33, .18), 0 3px 8px rgba(18, 21, 33, .08);
}

.enhanced-select-group {
  padding: 8px 10px 4px;
  color: #9aa0aa;
  font-size: 13px;
  font-weight: 650;
}

.enhanced-select-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 32px;
  border-radius: 8px;
  padding: 6px 10px 6px 6px;
  color: #2d3139;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.enhanced-select-option span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enhanced-select-option:hover,
.enhanced-select-option.active {
  background: #f4f6f9;
}

.enhanced-select-option[aria-selected="true"] {
  background: #eef0f6;
  color: var(--ink);
}

.enhanced-select-check {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.enhanced-select-option[aria-selected="true"] .enhanced-select-check::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 9px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.enhanced-select-empty {
  padding: 12px 10px;
  color: var(--muted);
  font-size: 14px;
}

.context-access-manager {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.context-access-head,
.page-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.context-access-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
}

.context-access-head p,
.context-access-empty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.context-access-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.context-access-list {
  display: grid;
  gap: 8px;
}

.context-access-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.context-access-rule strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-access-rule p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.context-access-details {
  min-width: 0;
  margin-top: 14px;
}

.event-row-access {
  position: relative;
  flex: 0 0 auto;
  margin-top: 0;
}

.context-access-details > summary {
  width: fit-content;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.context-access-details > summary::-webkit-details-marker {
  display: none;
}

.context-access-details > summary:hover,
.context-access-details[open] > summary {
  border-color: var(--line);
  background: #f4f6f9;
  color: var(--ink);
}

.context-access-details[open] > .context-access-manager {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fbfcfd;
}

.event-row-access[open] > .context-access-manager {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 65;
  width: min(520px, calc(100vw - 48px));
  margin-top: 8px;
  box-shadow: 0 18px 48px rgba(18, 21, 33, .16);
}

.page-admin-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page-admin-card h3 {
  margin: 4px 0 0;
}

.page-admin-card p {
  margin: 0;
}

.page-admin-card .secondary-button {
  min-height: 32px;
}

.meeting-pages-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.meeting-pages-list-panel,
.meeting-page-editor-panel {
  min-width: 0;
}

.meeting-page-list {
  display: grid;
  gap: 12px;
}

.page-admin-card.active {
  border-color: #d7dae3;
  background: #fbfcfd;
  box-shadow: 0 0 0 1px #e7e9ef, 0 10px 24px rgba(18, 21, 33, .06);
}

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

.page-admin-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.meeting-page-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.meeting-page-editor-head h2 {
  margin: 0;
}

.meeting-page-editor-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.page-editor-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(180px, 240px);
}

.page-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}

.fieldset.selected-checkbox-picker {
  display: grid;
  gap: 12px;
}

.selected-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.selected-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 6px 4px 10px;
  background: #f0f1f4;
  color: #30343b;
  font-size: 13px;
  font-weight: 750;
}

.selected-picker-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-picker-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6c7280;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.selected-picker-chip button:hover {
  background: #e1e4ea;
  color: var(--ink);
}

.selected-picker-search {
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.selected-picker-options {
  display: grid;
  gap: 4px;
  max-width: 620px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 21, 33, .12);
}

.selected-picker-options[hidden],
.selected-picker-option[hidden],
.selected-picker-empty[hidden] {
  display: none;
}

.selected-picker-option {
  min-height: 36px;
  border-radius: 8px;
  padding: 7px 8px;
  color: #30343b;
  cursor: pointer;
}

.selected-picker-option:hover {
  background: #f4f6f9;
}

.selected-picker-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  border-radius: 8px;
  padding: 5px 9px;
  background: #f0f1f4;
  color: #3e424b;
  font-size: 12px;
  font-weight: 800;
}

.duration-chip {
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px 6px;
  background: #fff;
  color: #30343b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.duration-chip > span {
  width: 14px;
  height: 14px;
  background-color: currentColor;
  display: block;
  opacity: .8;
  mask: url("../icons/clock.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/clock.svg") center / contain no-repeat;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.event-type-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 10px;
}

.event-type-meta-row .chip-row {
  margin-top: 0;
}

.event-type-meta-row .event-row-access > summary {
  min-height: 22px;
  padding: 3px 8px;
  line-height: 1.1;
}

.event-list {
  display: grid;
}

.event-row {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.event-row-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.event-row-main > div {
  min-width: 0;
}

.meeting-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy);
  background: #f2f3f6;
  border: 1px solid var(--line);
}

.meeting-icon svg {
  width: 22px;
  height: 22px;
}

.meeting-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.meeting-icon-coffee,
.meeting-icon-spark {
  color: var(--orange);
  background: #fff4e5;
  border-color: #f1d6ad;
}

.event-row:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-top: 1px solid var(--line);
}

.event-row:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.event-row strong {
  font-size: 19px;
}

.event-row span {
  color: var(--muted);
  margin-left: 8px;
}

.event-row.public {
  max-width: 880px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.event-types-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}

.event-types-head h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-family: "PP Montserrat", Arial, sans-serif;
  text-transform: none;
}

.event-types-head p {
  margin: 0;
  color: var(--muted);
}

.event-types-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-search {
  position: relative;
}

.event-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.event-search input {
  min-width: 260px;
  height: 46px;
  min-height: 46px;
  border-radius: 9px;
  padding-left: 38px;
  background: linear-gradient(90deg, transparent 0 34px, #fff 34px);
}

.event-types-tools .primary-button {
  height: 46px;
  min-height: 46px;
  padding-top: 0;
  padding-bottom: 0;
}

.event-search::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  background-color: var(--muted);
  transform: translateY(-50%);
  mask: url("../icons/search.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/search.svg") center / contain no-repeat;
  z-index: 1;
}

.event-types-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: visible;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(18, 21, 33, .04);
}

.event-type-list {
  display: grid;
}

.event-type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

.event-type-row:last-child {
  border-bottom: 0;
}

.event-type-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.event-type-info .meeting-icon {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f333b;
  margin-top: 1px;
}

.event-type-info .meeting-icon svg {
  width: 16px;
  height: 16px;
}

.event-type-info .meeting-icon img {
  width: 16px;
  height: 16px;
}

.event-type-info > div {
  min-width: 0;
}

.event-type-titleline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.event-type-titleline strong {
  font-size: 15px;
}

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

.event-type-info p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.chip.warning {
  color: var(--orange);
  background: rgba(234, 128, 0, .1);
}

.hidden-chip {
  min-height: 22px;
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.hidden-chip > span {
  width: 14px;
  height: 14px;
  background-color: currentColor;
  display: block;
  mask: url("../icons/eye-off.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/eye-off.svg") center / contain no-repeat;
}

.event-type-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-toggle-form.is-updating {
  opacity: .7;
}

.switch {
  display: inline-flex;
  cursor: pointer;
  position: relative;
}

.switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch span {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #e7e8eb;
  position: relative;
  transition: background .16s ease;
  pointer-events: none;
}

.switch input:disabled + span {
  cursor: wait;
}

.switch input:disabled {
  cursor: wait;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(18, 21, 33, .18);
  transition: transform .16s ease;
}

.switch input:checked + span {
  background: var(--navy);
}

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

.event-action-group {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18, 21, 33, .08);
}

.event-action-button,
.event-options summary {
  position: relative;
  width: 42px;
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #3d414a;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.event-action-group > .event-action-button + .event-action-button,
.event-action-group > .event-action-button + .event-options {
  border-left: 1px solid var(--line);
}

.event-action-group > .event-action-button:first-child {
  border-radius: 11px 0 0 11px;
}

.event-action-group > .event-options summary {
  border-radius: 0 11px 11px 0;
}

.event-action-button:hover,
.event-options summary:hover {
  background: #f7f7f9;
}

.event-action-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.event-action-button:disabled:hover {
  background: transparent;
}

.event-action-button[data-copy-state="copied"] {
  color: var(--success);
}

.event-action-button[data-copy-state="error"] {
  color: #c21b1b;
}

.event-action-button::after,
.event-options summary::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  z-index: 30;
  width: max-content;
  max-width: 190px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(18, 21, 33, .12);
  font: 500 14px/1.2 "PP Montserrat", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  white-space: nowrap;
}

.event-action-button:hover::after,
.event-action-button:focus-visible::after,
.event-options summary:hover::after,
.event-options summary:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.event-action-button > span,
.event-options summary > span {
  width: 16px;
  height: 16px;
  background-color: currentColor;
  display: block;
}

.event-action-preview > span {
  mask: url("../icons/external-link.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/external-link.svg") center / contain no-repeat;
}

.event-action-copy > span {
  mask: url("../icons/link.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/link.svg") center / contain no-repeat;
}

.event-options summary > span {
  mask: url("../icons/more-horizontal.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/more-horizontal.svg") center / contain no-repeat;
}

.event-options {
  position: relative;
}

.event-options summary {
  list-style: none;
}

.event-options summary::-webkit-details-marker {
  display: none;
}

.event-options-menu {
  position: fixed;
  left: var(--event-options-menu-left, 0);
  top: var(--event-options-menu-top, 0);
  right: auto;
  width: 220px;
  z-index: 120;
  display: grid;
  gap: 1px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 18px 44px rgba(18, 21, 33, .16);
}

.event-options[open]:not(.is-positioned) .event-options-menu {
  visibility: hidden;
}

.event-options-form {
  margin: 0;
}

.event-options-item {
  border: 0;
  background: transparent;
  color: #2f333b;
  text-align: left;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.event-options-item:hover {
  background: #f5f6f8;
}

.event-options-item.danger {
  color: #c21b1b;
}

.event-options-separator {
  height: 1px;
  margin: 7px 10px;
  background: var(--line);
}

.menu-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  opacity: .82;
}

.menu-icon-edit {
  mask: url("../icons/pencil.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/pencil.svg") center / contain no-repeat;
}

.menu-icon-duplicate {
  mask: url("../icons/copy.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/copy.svg") center / contain no-repeat;
}

.menu-icon-embed {
  mask: url("../icons/code.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/code.svg") center / contain no-repeat;
}

.menu-icon-delete {
  mask: url("../icons/trash.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/trash.svg") center / contain no-repeat;
}

body.modal-open {
  overflow: hidden;
}

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

.meeting-type-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
}

.meeting-type-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 23, 28, .48);
}

.meeting-type-dialog {
  position: relative;
  width: min(95vw, 560px);
  max-height: 95vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(18, 21, 33, .24);
}

.meeting-type-dialog.is-editor {
  width: min(95vw, 1560px);
}

.meeting-type-dialog-head {
  position: relative;
  padding: 28px 32px 12px;
}

.meeting-type-dialog.is-editor .meeting-type-dialog-head {
  display: none;
}

.meeting-type-dialog-head h2 {
  margin: 0 34px 5px 0;
  font-family: "PP Montserrat", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.2;
  text-transform: none;
}

.meeting-type-dialog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.meeting-type-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.meeting-type-close:hover {
  background: #f2f3f6;
  color: var(--ink);
}

.meeting-type-dialog-form {
  padding: 10px 32px 0;
}

.meeting-type-dialog.is-editor .meeting-type-dialog-form {
  padding: 0;
}

.meeting-type-create-step {
  display: grid;
  gap: 22px;
  padding-bottom: 66px;
}

.meeting-type-dialog-form input,
.meeting-type-dialog-form select,
.meeting-type-dialog-form textarea {
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 14px;
}

.meeting-type-dialog-form textarea {
  min-height: 96px;
}

.meeting-type-dialog-form label,
.meeting-type-dialog-form legend {
  font-size: 14px;
}

.meeting-type-dialog-footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px -32px 0;
  padding: 14px 32px;
  background: #f7f7f5;
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
}

.meeting-type-dialog.is-editor .meeting-type-dialog-footer {
  margin: 0;
  border-radius: 0 0 16px 16px;
}

.meeting-type-dialog-footer .primary-button,
.meeting-type-dialog-footer .ghost-button {
  min-height: 38px;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
}

.url-input-shell,
.duration-input-shell {
  min-height: 36px;
  border: 1px solid #cfd2da;
  border-radius: 10px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.url-input-shell input,
.duration-input-shell input {
  min-height: 0;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.duration-input-shell span {
  flex: 0 0 auto;
}

.mini-editor-toolbar {
  min-height: 36px;
  border: 1px solid #cfd2da;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #f7f7f5;
}

.mini-editor-toolbar button {
  min-width: 28px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #5c616b;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.mini-editor-toolbar button:hover,
.mini-editor-toolbar button:focus-visible {
  background: #e9ebf0;
  border-color: #d9dce3;
  color: #252936;
  outline: none;
}

.mini-editor-toolbar + textarea {
  border-radius: 0 0 10px 10px;
}

.event-editor-top {
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-editor-top > a {
  color: var(--muted);
  font-size: 22px;
}

.event-editor-top > strong {
  min-width: 0;
  flex: 1;
  font-size: 18px;
}

.event-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-editor-actions > span {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.event-editor-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  padding: 18px 24px 32px;
}

.event-editor-tabs {
  display: grid;
  align-content: start;
  gap: 5px;
  position: sticky;
  top: 0;
}

.event-editor-tabs button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #444954;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  column-gap: 10px;
  align-items: start;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.event-editor-tabs button::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 2px;
  background: currentColor;
  opacity: 0;
  mask: url("../icons/chevron-right.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/chevron-right.svg") center / contain no-repeat;
}

.event-editor-tabs button.active {
  background: #eceef2;
  color: var(--ink);
}

.event-editor-tabs button.active::after {
  opacity: .9;
}

.event-editor-tabs strong,
.event-editor-tabs small {
  grid-column: 2;
}

.event-editor-tabs strong {
  font-size: 14px;
}

.event-editor-tabs small {
  margin-top: 4px;
  color: var(--muted);
}

.tab-icon,
.event-action-embed,
.event-action-delete {
  width: 16px;
  height: 16px;
  background: currentColor;
  display: block;
}

.tab-icon.link { mask: url("../icons/link.svg") center / contain no-repeat; -webkit-mask: url("../icons/link.svg") center / contain no-repeat; }
.tab-icon.calendar { mask: url("../icons/calendar.svg") center / contain no-repeat; -webkit-mask: url("../icons/calendar.svg") center / contain no-repeat; }
.tab-icon.clock { mask: url("../icons/clock.svg") center / contain no-repeat; -webkit-mask: url("../icons/clock.svg") center / contain no-repeat; }
.tab-icon.sliders { mask: url("../icons/sliders-vertical.svg") center / contain no-repeat; -webkit-mask: url("../icons/sliders-vertical.svg") center / contain no-repeat; }
.tab-icon.repeat { mask: url("../icons/repeat.svg") center / contain no-repeat; -webkit-mask: url("../icons/repeat.svg") center / contain no-repeat; }
.tab-icon.grid { mask: url("../icons/grid-3x3.svg") center / contain no-repeat; -webkit-mask: url("../icons/grid-3x3.svg") center / contain no-repeat; }
.tab-icon.zap { mask: url("../icons/zap.svg") center / contain no-repeat; -webkit-mask: url("../icons/zap.svg") center / contain no-repeat; }
.tab-icon.webhook { mask: url("../icons/webhook.svg") center / contain no-repeat; -webkit-mask: url("../icons/webhook.svg") center / contain no-repeat; }
.event-action-embed { mask: url("../icons/code.svg") center / contain no-repeat; -webkit-mask: url("../icons/code.svg") center / contain no-repeat; }
.event-action-delete { mask: url("../icons/trash.svg") center / contain no-repeat; -webkit-mask: url("../icons/trash.svg") center / contain no-repeat; }

.danger-lite {
  color: #c21b1b;
}

.event-editor-panels {
  min-width: 0;
}

.event-editor-panel {
  display: none;
  gap: 16px;
}

.event-editor-panel.active {
  display: grid;
}

.editor-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: #fff;
  display: grid;
  gap: 18px;
}

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

.icon-settings {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.icon-settings-preview {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f7f7f5;
  border: 1px solid var(--line);
}

.icon-settings-preview .meeting-icon {
  width: 42px;
  height: 42px;
}

.icon-settings-fields {
  display: grid;
  gap: 12px;
}

.icon-settings-fields label {
  margin: 0;
}

.icon-picker {
  border: 0;
  margin: 0;
  padding: 0;
}

.icon-picker legend {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.icon-select-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.icon-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.icon-choice:hover,
.icon-choice:has(input:focus-visible) {
  border-color: #c8ccda;
  box-shadow: 0 0 0 3px rgba(39, 43, 88, 0.08);
}

.icon-choice.active {
  border-color: var(--navy);
  background: #f6f7fb;
  box-shadow: 0 0 0 1px var(--navy);
}

.icon-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icon-choice .meeting-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.icon-choice .meeting-icon svg,
.icon-choice .meeting-icon img {
  width: 17px;
  height: 17px;
}

.icon-choice span:last-child {
  min-width: 0;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-choice.active span:last-child {
  color: var(--ink);
}

.icon-settings-fields input[type="file"] {
  width: 100%;
  padding: 6px 8px;
  background: #fff;
}

.field-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.icon-reset {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.option-list {
  gap: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.availability-summary {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.availability-summary li {
  display: grid;
  grid-template-columns: 140px 1fr;
  color: var(--ink);
}

.availability-summary .unavailable {
  color: var(--muted);
}

.availability-summary .unavailable strong {
  text-decoration: line-through;
}

.availability-admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.availability-list-panel,
.availability-editor-panel {
  display: grid;
  gap: 16px;
}

.availability-list-panel h2,
.availability-editor-panel h2 {
  margin: 0;
}

.availability-schedule-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.availability-schedule-row {
  display: grid;
  gap: 7px;
  padding: 18px;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background-color .14s ease;
}

.availability-schedule-row:last-child {
  border-bottom: 0;
}

.availability-schedule-row:hover,
.availability-schedule-row.active {
  background: #f4f6f9;
}

.availability-schedule-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.availability-schedule-row strong {
  font-size: 15px;
}

.availability-schedule-row p,
.availability-schedule-row small,
.availability-editor-head p,
.availability-meetings-head small {
  margin: 0;
  color: #6f7580;
  font-size: 14px;
}

.availability-schedule-row small,
.availability-meetings-head small {
  display: flex;
  align-items: center;
  gap: 6px;
}

.availability-schedule-row .button-icon {
  width: 14px;
  height: 14px;
}

.availability-editor-head,
.availability-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.availability-editor-head .pill {
  align-self: flex-start;
}

.availability-editor-form {
  display: grid;
  gap: 16px;
}

.availability-default-toggle {
  grid-column: 1 / -1;
  margin: 0;
}

.availability-week-editor {
  display: grid;
  gap: 10px;
}

.availability-week-editor legend {
  padding: 0 8px;
  font-weight: 750;
}

.availability-week-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) minmax(96px, 130px) auto minmax(96px, 130px);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.availability-week-row:last-child {
  border-bottom: 0;
}

.availability-week-row .availability-time-select {
  min-height: 36px;
  padding: 6px 10px;
}

.availability-time-separator {
  color: var(--muted);
}

.availability-meetings-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.availability-meetings-head strong,
.availability-meetings-head small {
  display: block;
}

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

.availability-meeting-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fbfcfd;
}

.availability-meeting-choice input {
  width: auto;
  margin-top: 2px;
}

.availability-meeting-choice strong,
.availability-meeting-choice small {
  display: block;
}

.availability-meeting-choice small {
  color: var(--muted);
  font-size: 13px;
}

.availability-preview-list {
  display: grid;
  gap: 14px;
}

.availability-schedule-picker {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.availability-schedule-picker legend {
  display: block;
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.availability-schedule-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.availability-schedule-choice:hover,
.availability-schedule-choice:has(input:focus-visible) {
  border-color: #c8ccda;
  box-shadow: 0 0 0 3px rgba(39, 43, 88, .08);
}

.availability-schedule-choice.active {
  border-color: var(--navy);
  background: #f6f7fb;
  box-shadow: 0 0 0 1px var(--navy);
}

.availability-schedule-choice input {
  width: auto;
  margin-top: 2px;
}

.availability-schedule-choice strong,
.availability-schedule-choice small {
  display: block;
}

.availability-schedule-choice strong {
  color: var(--ink);
}

.availability-schedule-choice em {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 5px;
  background: #edf0f5;
  color: var(--muted-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
}

.availability-schedule-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.availability-manage-link {
  width: fit-content;
}

.editor-alert {
  border-radius: 10px;
  padding: 13px 14px;
  background: rgba(39, 43, 88, .08);
  color: var(--navy);
  font-size: 14px;
}

@media (max-width: 980px) {
  .event-editor-layout {
    grid-template-columns: 1fr;
  }

  .event-editor-tabs {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .editor-card.two-col {
    grid-template-columns: 1fr;
  }

  .event-editor-top {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px 18px 0;
  }

  .event-editor-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

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

.embed-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
}

.embed-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 22, .68);
}

.embed-dialog {
  position: relative;
  z-index: 1;
  width: min(1480px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
}

.embed-close {
  position: absolute;
  top: 22px;
  right: 24px;
  border: 0;
  background: transparent;
  font-size: 34px;
  color: #555b66;
  cursor: pointer;
  z-index: 2;
}

.embed-choice-view {
  padding: 42px;
}

.embed-choice-view h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.embed-choice-view p {
  margin: 0 0 28px;
  color: var(--muted);
}

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

.embed-choice-grid button {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  display: grid;
  gap: 14px;
  cursor: pointer;
}

.embed-choice-grid button:hover {
  border-color: var(--navy);
}

.embed-choice-grid strong {
  font-size: 22px;
}

.embed-choice-grid small {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.embed-illustration {
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(#f4f5f7 0 0) 18% 16% / 68% 18px no-repeat,
    linear-gradient(#f4f5f7 0 0) 18% 82% / 68% 22px no-repeat,
    #fff;
  position: relative;
}

.embed-illustration::after {
  content: "";
  position: absolute;
  inset: 54px 34px;
  border: 2px solid #2e323a;
  border-radius: 6px;
}

.embed-illustration.floating::after {
  inset: auto 28px 28px auto;
  width: 82px;
  height: 28px;
  background: #111;
  border-color: #111;
  border-radius: 8px;
}

.embed-illustration.email::after {
  inset: 58px 22px 28px 86px;
}

.embed-detail-view {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: min(780px, 88vh);
}

.embed-side {
  background: #f7f7f8;
  border-right: 1px solid var(--line);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.embed-side h2 {
  margin: 0;
  font-size: 28px;
}

.embed-side p {
  margin: 0 0 14px;
  color: var(--muted);
}

.embed-code-panel {
  padding: 34px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 18px;
}

.embed-code-tabs {
  display: flex;
  gap: 12px;
  font-weight: 800;
}

.embed-code-tabs span:first-child {
  background: #f0f1f4;
  border-radius: 8px;
  padding: 8px 12px;
}

.embed-code-panel textarea {
  min-height: 170px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.embed-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 300px;
  padding: 24px;
  display: grid;
  place-items: center;
}

.embed-inline-preview,
.embed-email-preview {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: grid;
  gap: 12px;
}

.embed-inline-preview div {
  height: 120px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #eef0f4 0 12px, transparent 12px 22px);
}

.embed-email-preview a,
.embed-floating-preview,
.embed-element-preview {
  display: inline-flex;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 13px 18px;
  font-weight: 800;
}

.embed-element-preview {
  border-radius: 8px;
  background: #fff;
  color: #2f333b;
  border: 1px solid var(--line);
}

.embed-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 28px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.wide,
.fieldset {
  grid-column: 1 / -1;
}

.fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fieldset legend {
  font-weight: 800;
  padding: 0 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.check-row input {
  width: auto;
}

.availability-fieldset {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
}

.availability-day {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

.availability-day span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.availability-day input[type="checkbox"] {
  width: auto;
}

.availability-day .availability-time-select {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 14px;
}

.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.calendar-connect-panel {
  display: grid;
  gap: 18px;
}

.calendar-connect-head,
.calendar-provider-actions,
.calendar-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-connect-head h2 {
  margin: 0 0 4px;
}

.calendar-connect-head p {
  margin: 0;
  color: var(--muted);
}

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

.calendar-feed-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fff;
}

.calendar-feed-form select {
  min-width: 0;
}

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

@media (max-width: 760px) {
  .calendar-manual-grid {
    grid-template-columns: 1fr;
  }
}

.calendar-connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.calendar-connection-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px;
}

.calendar-connection-card.is-muted {
  opacity: .68;
}

.calendar-connection-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.calendar-connection-title strong,
.calendar-connection-title span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.calendar-colour-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--calendar-dot, var(--navy));
  box-shadow: 0 0 0 3px rgba(39, 43, 88, .08);
}

.calendar-meta-row,
.calendar-card-actions,
.calendar-disconnect-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-settings-form {
  display: grid;
  gap: 0;
}

.calendar-settings-form .toggle-row {
  padding: 10px 0;
}

.copy-field {
  min-width: 320px;
  font-size: 12px;
}

.calendar-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 0;
  padding: 0;
  overflow-x: auto;
}

.day-column {
  min-height: 420px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.day-column h3 {
  margin: 0 0 14px;
}

.calendar-event {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--orange);
  background: #fff8ef;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.activity-list,
.people-list,
.answer-list {
  display: grid;
  gap: 12px;
}

.activity-list div,
.people-list > div,
.answer-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.people-list > div {
  justify-content: start;
}

.answer-list > div {
  align-items: start;
}

.answer-list span {
  color: var(--muted);
  text-align: right;
  line-height: 1.45;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.has-image .avatar-initials {
  display: none;
}

.avatar.is-image-missing .avatar-initials,
.avatar:not(.has-image) .avatar-initials {
  display: grid;
  place-items: center;
}

.people-list > div > div span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

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

.settings-subnav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 6px;
}

.settings-subnav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #555b66;
  font-weight: 700;
}

.settings-subnav a:hover,
.settings-subnav a.active {
  background: #eceef2;
  color: var(--ink);
}

.profile-panel {
  display: grid;
  gap: 24px;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-summary h2 {
  margin: 0;
  font-size: 22px;
}

.profile-summary p {
  margin: 4px 0 0;
  color: var(--muted);
}

.profile-form .wide {
  grid-column: 1 / -1;
}

.booking-page-head {
  text-align: center;
  max-width: 720px;
  margin: 64px auto 28px;
  padding: 0 24px;
}

.booking-page-head h1 {
  margin: 18px 0 10px;
  font-size: 44px;
}

.booking-page-head p {
  color: var(--muted);
  line-height: 1.6;
}

.booking-page-list {
  padding: 0 24px 80px;
}

.booking-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: 680px;
  box-shadow: var(--shadow);
}

.booking-summary {
  border-right: 1px solid var(--line);
  padding: 32px;
}

.booking-summary h1 {
  font-size: 34px;
  margin: 22px 0 14px;
}

.booking-summary p {
  color: var(--muted);
  line-height: 1.6;
}

.summary-line {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #4f5663;
}

.booking-picker {
  padding: 28px;
}

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

.general-meeting-form > .primary-button {
  background: var(--orange);
  border-color: var(--orange);
  color: #171717;
  font-weight: 800;
}

.slot-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.slot-head {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
  background: #fafafa;
}

.date-strip button,
.slot-grid button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  min-width: 86px;
}

.date-strip button.active,
.slot-grid button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.slot-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.booking-flow-page {
  background: #eef0f5;
}

.booking-flow-page .topbar {
  display: none;
}

.booking-flow-page main {
  min-height: 100vh;
}

.booking-shell-v2 {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 34px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr;
}

.booking-form-v2 {
  display: block;
}

.booking-desktop-toolbar {
  width: min(1380px, calc(100vw - 68px));
  margin: 0 auto 12px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.booking-range-control,
.booking-view-controls,
.booking-view-toggle,
.booking-calendar-head,
.booking-times-head,
.booking-step-actions,
.question-step-head {
  display: flex;
  align-items: center;
}

.booking-range-control {
  gap: 14px;
  color: #4e535d;
}

.booking-range-control strong {
  font-size: 17px;
}

.booking-range-control button,
.booking-calendar-head button,
.booking-view-toggle button {
  border: 0;
  background: transparent;
  color: #6d7280;
  min-height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
}

.booking-view-controls {
  gap: 14px;
}

.booking-shell-v2[data-view="card"] .booking-range-control,
.booking-shell-v2[data-view="card"] .calendar-overlay-toggle {
  visibility: hidden;
}

.calendar-overlay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #2e3037;
}

.calendar-overlay-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calendar-overlay-toggle span {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--navy);
  position: relative;
  flex: 0 0 auto;
}

.calendar-overlay-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.booking-view-toggle {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(18, 21, 33, .08);
}

.booking-view-toggle button.active {
  background: #f1f2f6;
  color: var(--navy);
}

.view-icon {
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 4px;
  position: relative;
}

.view-icon.calendar::before,
.view-icon.columns::before,
.view-icon.columns::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.view-icon.calendar::before {
  left: 2px;
  right: 2px;
  top: 5px;
  height: 2px;
}

.view-icon.columns::before {
  left: 5px;
  top: 2px;
  bottom: 2px;
  width: 2px;
}

.view-icon.columns::after {
  right: 5px;
  top: 2px;
  bottom: 2px;
  width: 2px;
}

.booking-frame {
  width: min(1080px, calc(100vw - 68px));
  min-height: 540px;
  margin: 16vh auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 300px minmax(380px, 1fr) 300px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(35, 38, 52, .06);
}

.booking-side {
  display: contents;
}

.booking-details {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.booking-details img {
  width: 34px;
  height: 34px;
  display: block;
  margin-bottom: 16px;
}

.booking-brand {
  display: block;
  color: #6b707c;
  font-weight: 800;
  margin-bottom: 14px;
}

.booking-details h1 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.15;
}

.booking-meta-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: #3d414a;
  font-weight: 700;
}

.booking-meta-row select {
  width: auto;
  min-height: 34px;
  padding: 0 28px 0 0;
  border: 0;
  background-color: transparent;
  color: #3d414a;
  font-weight: 800;
}

.booking-meta-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  position: relative;
}

.booking-meta-icon.clock {
  border: 2px solid #3d414a;
  border-radius: 50%;
}

.booking-meta-icon.clock::before,
.booking-meta-icon.clock::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 2px;
  height: 6px;
  background: #3d414a;
  transform-origin: bottom;
}

.booking-meta-icon.clock::after {
  top: 7px;
  height: 5px;
  transform: rotate(90deg);
}

.booking-meta-icon.meet {
  border-radius: 3px;
  background: linear-gradient(90deg, #34a853 0 35%, #fbbc04 35% 55%, #4285f4 55% 100%);
}

.booking-meta-icon.meet::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 5px;
  border-left: 6px solid #34a853;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.booking-meta-icon.globe {
  border: 2px solid #3d414a;
  border-radius: 50%;
}

.booking-meta-icon.globe::before,
.booking-meta-icon.globe::after {
  content: "";
  position: absolute;
  inset: 3px 6px;
  border-left: 1px solid #3d414a;
  border-right: 1px solid #3d414a;
}

.booking-meta-icon.globe::after {
  inset: 7px 2px;
  border: 0;
  border-top: 1px solid #3d414a;
}

.booking-people {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.booking-people summary {
  cursor: pointer;
  font-weight: 900;
}

.booking-people-groups {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.booking-people fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.booking-people legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.booking-people label {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  color: #2e323a;
  font-weight: 800;
}

.booking-people small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.booking-calendar-card {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.booking-calendar-head {
  justify-content: space-between;
  margin-bottom: 22px;
}

.booking-calendar-head strong {
  font-size: 21px;
}

.booking-weekdays,
.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.booking-weekdays {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: #14161b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.booking-weekdays span {
  text-align: center;
}

.booking-calendar-grid {
  padding-top: 18px;
}

.calendar-day {
  aspect-ratio: 1 / .9;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4d515a;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 17px;
  cursor: pointer;
}

.calendar-day span {
  position: absolute;
  top: 7px;
  left: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-day strong {
  font-size: 18px;
}

.calendar-day.available {
  background: #e8ebf0;
  color: #16191f;
}

.calendar-day.active {
  background: var(--navy);
  color: #fff;
}

.calendar-day.today::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.calendar-day.active.today::after {
  background: #fff;
}

.calendar-day:disabled {
  cursor: default;
  opacity: .78;
}

.calendar-day.muted:not(.available) {
  opacity: .5;
}

.booking-times-card {
  padding: 24px;
}

.booking-times-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.booking-times-head strong {
  font-size: 18px;
}

.booking-time-list,
.booking-week-column {
  display: grid;
  gap: 10px;
}

.time-button {
  min-height: 40px;
  border: 1px solid #d8dbe2;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #3c4048;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(18, 21, 33, .08);
}

.time-button span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #13d6a0;
}

.time-button strong {
  font-size: 16px;
}

.time-button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.booking-week-panel {
  display: none;
}

.booking-shell-v2[data-view="week"] {
  padding: 0;
  background: #fff;
}

.booking-shell-v2[data-view="week"] .booking-frame {
  width: 100%;
  min-height: calc(100vh - 72px);
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: 430px 1fr;
}

.booking-shell-v2[data-view="week"] .booking-side {
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid var(--line);
}

.booking-shell-v2[data-view="week"] .booking-details,
.booking-shell-v2[data-view="week"] .booking-calendar-card {
  border-right: 0;
}

.booking-shell-v2[data-view="week"] .booking-calendar-card {
  padding-top: 8px;
}

.booking-shell-v2[data-view="week"] .booking-times-card {
  display: none;
}

.booking-shell-v2[data-view="week"] .booking-week-panel {
  display: block;
  padding: 22px 26px;
}

.booking-week-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 12px;
  align-items: start;
}

.booking-week-column h3 {
  margin: 0 0 12px;
  color: #777d89;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.booking-shell-v2[data-view="week"] .booking-step-actions {
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.booking-step-actions {
  width: min(1080px, calc(100vw - 68px));
  margin: 12px auto 0;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.booking-step-actions span {
  color: var(--muted);
  font-weight: 800;
}

.booking-step-actions .primary-button:disabled {
  opacity: .48;
  cursor: default;
}

.booking-question-step {
  width: min(980px, calc(100vw - 34px));
  margin: 34px auto;
  display: grid;
  gap: 16px;
}

.question-step-head {
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.question-step-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: right;
}

.question-step-head strong {
  display: block;
  text-align: right;
}

.booking-question-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.booking-question-card.secondary:empty {
  display: none;
}

.intake-form {
  border-radius: 8px;
  overflow: hidden;
  background: #7d82ad;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .82);
}

.intake-hero {
  background: var(--navy);
  text-align: center;
  padding: 42px 30px 48px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.intake-hero img {
  width: min(340px, 72%);
  margin-bottom: 24px;
}

.intake-hero h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

.intake-hero p {
  margin: 0 auto 28px;
  max-width: 920px;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  line-height: 1.5;
}

.intake-hero span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 900;
}

.intake-body {
  padding: 38px 42px 46px;
  display: grid;
  gap: 34px;
}

.intake-field,
.intake-checks {
  display: grid;
  gap: 10px;
  color: #fff;
}

.intake-field p,
.intake-checks p {
  margin: -4px 0 4px;
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
}

.question-title,
.intake-checks legend {
  font-size: 22px;
  font-weight: 800;
}

.intake-field input,
.intake-field textarea {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .95);
  color: #fff;
  min-height: 54px;
}

.intake-field textarea {
  min-height: 118px;
}

.intake-field input::placeholder,
.intake-field textarea::placeholder {
  color: rgba(255, 255, 255, .78);
}

.intake-checks {
  border: 0;
  padding: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.service-choice {
  min-height: 58px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.service-choice input {
  width: 24px;
  height: 24px;
  accent-color: var(--orange);
  flex: 0 0 auto;
}

.service-choice span {
  font-weight: 700;
}

.file-input-shell {
  min-height: 58px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 8px;
  display: grid;
  align-items: center;
  position: relative;
  padding: 0 18px;
  cursor: pointer;
}

.file-input-shell input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.manage-booking {
  max-width: 980px;
  margin: 52px auto;
  padding: 0 24px;
  display: grid;
  gap: 18px;
}

.empty-state {
  border: 1px dashed #cfd2da;
  border-radius: 8px;
  padding: 48px 24px;
  color: var(--muted);
  text-align: center;
}

.page-empty {
  max-width: 720px;
  margin: 80px auto;
}

@media (max-width: 980px) {
  .home-shell,
  .booking-shell,
  .split-grid,
  .organisation-explainer,
  .permissions-overview,
  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

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

  .booking-frame {
    grid-template-columns: minmax(260px, .8fr) minmax(340px, 1fr);
  }

  .booking-times-card {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .booking-shell-v2[data-view="week"] .booking-week-grid {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }

  .home .home-shell {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    gap: 22px;
  }

  .home-panel h1 {
    font-size: clamp(34px, 5.5vw, 58px);
  }

  .home .mini-calendar button {
    min-height: 48px;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 0 16px;
  }

  .brand span {
    display: none;
  }

  .topnav {
    gap: 10px;
    font-size: 14px;
  }

  .auth-page .topnav > a[href="/book/premium-productions"],
  .auth-page .topnav > a[data-href="/book/premium-productions"] {
    display: none;
  }

  .auth-page {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .auth-page main {
    height: calc(100dvh - 72px);
    min-height: 0;
    overflow: hidden;
  }

  .auth-shell {
    height: calc(100dvh - 72px);
    min-height: 0;
    align-items: flex-start;
    padding: 16px 14px 14px;
    overflow: hidden;
  }

  .auth-stack {
    width: min(420px, 100%);
    gap: 8px;
    max-height: 100%;
  }

  .auth-logo {
    width: min(240px, 72vw);
    max-height: 132px;
  }

  .auth-card {
    padding: 18px;
    gap: 10px;
  }

  .auth-card h1 {
    font-size: 24px;
    margin-bottom: 0;
  }

  .auth-card label {
    gap: 4px;
    font-size: 14px;
  }

  .auth-card input,
  .auth-card select,
  .auth-card textarea {
    min-height: 36px;
    padding: 8px 10px;
  }

  .auth-card .primary-button {
    min-height: 40px;
    padding: 9px 14px;
  }

  .home-shell {
    margin-top: 42px;
  }

  .home .home-shell {
    margin-top: 0;
    grid-template-columns: 1fr;
  }

  .home-panel h1 {
    font-size: 42px;
  }

  .home .home-panel h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

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

  .home .mini-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
  }

  .home .mini-calendar button {
    min-height: 40px;
    border-radius: 7px;
  }

  .home .mini-calendar span {
    font-size: 10px;
  }

  .home .slot-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .home .slot-list button {
    padding: 9px 10px;
    text-align: center;
  }

  .home .section-heading p {
    display: none;
  }

  .dashboard-content,
  .client-shell {
    padding: 18px;
  }

  .page-title,
  .portal-hero,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .event-types-head,
  .event-types-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .event-search input {
    min-width: 0;
    width: 100%;
  }

  .event-type-row {
    grid-template-columns: 1fr;
  }

  .event-type-actions {
    justify-content: flex-start;
  }

  .embed-choice-grid,
  .embed-detail-view {
    grid-template-columns: 1fr;
  }

  .embed-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-grid,
  .grid-form,
  .two-col,
  .field-row {
    grid-template-columns: 1fr;
  }

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

  .side-nav {
    grid-template-columns: 1fr;
  }

  .booking-picker,
  .booking-summary {
    padding: 20px;
  }

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

  .intake-hero {
    padding: 30px 18px 34px;
  }

  .intake-body {
    padding: 26px 20px 30px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .booking-flow-page {
    background: #fff;
  }

  .booking-shell-v2,
  .booking-shell-v2[data-view="week"] {
    min-height: 100vh;
    padding: 42px 24px 24px;
    background: #fff;
  }

  .booking-desktop-toolbar {
    display: none;
  }

  .booking-frame,
  .booking-shell-v2[data-view="week"] .booking-frame {
    width: 100%;
    min-height: auto;
    margin: 0;
    display: block;
    border: 0;
    box-shadow: none;
  }

  .booking-side,
  .booking-shell-v2[data-view="week"] .booking-side {
    display: block;
    border: 0;
  }

  .booking-details,
  .booking-calendar-card,
  .booking-times-card,
  .booking-shell-v2[data-view="week"] .booking-details,
  .booking-shell-v2[data-view="week"] .booking-calendar-card {
    border: 0;
    padding: 0;
  }

  .booking-details img {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
  }

  .booking-brand {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .booking-details h1 {
    font-size: 34px;
    margin-bottom: 22px;
  }

  .booking-meta-row {
    font-size: 22px;
    margin: 18px 0;
  }

  .booking-meta-row select {
    font-size: 22px;
  }

  .booking-people {
    margin: 24px 0 32px;
  }

  .booking-calendar-card {
    margin-top: 34px;
  }

  .booking-calendar-head {
    margin-bottom: 28px;
  }

  .booking-calendar-head strong {
    font-size: 30px;
  }

  .booking-weekdays {
    gap: 4px;
    padding: 18px 0;
    font-size: 15px;
  }

  .booking-calendar-grid {
    gap: 6px;
    padding-top: 22px;
  }

  .calendar-day {
    min-height: 62px;
    font-size: 22px;
  }

  .calendar-day.available {
    border-radius: 10px;
  }

  .calendar-day strong {
    font-size: 23px;
  }

  .booking-times-card,
  .booking-shell-v2[data-view="week"] .booking-times-card {
    display: block;
    margin-top: 72px;
  }

  .booking-week-panel,
  .booking-shell-v2[data-view="week"] .booking-week-panel {
    display: none;
  }

  .booking-times-head {
    margin-bottom: 24px;
  }

  .booking-times-head strong {
    font-size: 28px;
  }

  .booking-time-list {
    gap: 14px;
  }

  .time-button {
    min-height: 70px;
    border-radius: 14px;
  }

  .time-button strong {
    font-size: 27px;
  }

  .time-button span {
    width: 10px;
    height: 10px;
  }

  .booking-step-actions,
  .booking-shell-v2[data-view="week"] .booking-step-actions {
    width: 100%;
    margin: 24px 0 0;
    position: static;
    border-radius: 12px;
  }

  .booking-question-step {
    width: 100%;
    margin: 0;
  }

  .question-step-head {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .home .topbar {
    height: 60px;
  }

  .home main {
    height: calc(100dvh - 60px);
    padding: 12px 0;
    gap: 10px;
  }

  .home-shell,
  .section-band {
    padding: 0 18px;
  }

  .home .home-panel h1 {
    margin-bottom: 8px;
    font-size: clamp(27px, 8.2vw, 36px);
    line-height: .96;
  }

  .home-panel p {
    font-size: 13px;
    line-height: 1.38;
  }

  .home-actions {
    margin-top: 10px;
    gap: 8px;
  }

  .home-actions .primary-button,
  .home-actions .secondary-button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .home-surface {
    padding: 10px;
  }

  .surface-head {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .home .mini-calendar button {
    min-height: 34px;
  }

  .home .mini-calendar strong {
    font-size: 14px;
  }

  .home .slot-list {
    margin-top: 8px;
  }

  .home .slot-list button {
    padding: 7px 8px;
    font-size: 13px;
  }

  .section-heading {
    margin-bottom: 8px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .home .booking-card {
    padding: 11px;
  }

  .home .booking-card .pill {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .home .booking-card h3 {
    margin: 8px 0 4px;
    font-size: 16px;
  }

  .home .booking-card p {
    font-size: 13px;
    line-height: 1.35;
  }
}

@media (max-height: 760px) {
  .home main {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  .home-panel h1 {
    font-size: clamp(32px, 4vw, 60px);
  }

  .home-panel p {
    line-height: 1.42;
  }

  .home .mini-calendar button {
    min-height: 44px;
  }

  .home .booking-card {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Cal.com visual reference pass: component polish without changing product behavior. */
:root {
  --soft: #f8f9fb;
  --panel: #ffffff;
  --ink: #181a20;
  --muted: #6f7580;
  --line: #e4e6eb;
  --cal-muted: #f3f4f6;
  --cal-muted-strong: #e8eaef;
  --cal-hover: #eef0f4;
  --cal-focus: rgba(39, 43, 88, .18);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow: 0 1px 2px rgba(18, 21, 33, .05), 0 12px 32px rgba(18, 21, 33, .07);
}

body {
  background: var(--soft);
}

.button-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  background-color: currentColor;
  vertical-align: -2px;
  mask: var(--button-icon) center / contain no-repeat;
  -webkit-mask: var(--button-icon) center / contain no-repeat;
}

.button-icon-plus { --button-icon: url("../icons/plus.svg"); }
.button-icon-x { --button-icon: url("../icons/x.svg"); }
.button-icon-arrow-left { --button-icon: url("../icons/arrow-left.svg"); }
.button-icon-arrow-right { --button-icon: url("../icons/arrow-right.svg"); }
.button-icon-chevron-left { --button-icon: url("../icons/chevron-left.svg"); }
.button-icon-chevron-right { --button-icon: url("../icons/chevron-right.svg"); }
.button-icon-chevron-down { --button-icon: url("../icons/chevron-down.svg"); }
.button-icon-bold { --button-icon: url("../icons/bold.svg"); }
.button-icon-italic { --button-icon: url("../icons/italic.svg"); }
.button-icon-link { --button-icon: url("../icons/link.svg"); }
.button-icon-globe { --button-icon: url("../icons/globe.svg"); }

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 38px;
  border-radius: var(--radius-md);
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .08s ease;
}

.primary-button {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 1px 1px rgba(18, 21, 33, .08), 0 2px 8px rgba(39, 43, 88, .2);
}

.primary-button:hover {
  background: #202449;
  border-color: #202449;
}

.secondary-button,
.icon-button {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(18, 21, 33, .04);
}

.secondary-button:hover,
.icon-button:hover,
.ghost-button:hover {
  background: var(--cal-hover);
  color: var(--ink);
}

.ghost-button {
  color: #525864;
}

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

input,
select,
textarea {
  min-height: 38px;
  border-color: #d9dce3;
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #bcc2cc;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--cal-focus);
}

label {
  gap: 7px;
  color: #272b33;
  font-size: 14px;
  font-weight: 650;
}

textarea {
  line-height: 1.5;
}

.dashboard-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--soft);
}

.sidebar {
  background: #f5f6f8;
  border-color: #e1e4ea;
  padding: 24px 14px 18px;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-profile {
  min-height: 38px;
  margin-bottom: 26px;
  padding: 0 10px;
}

.sidebar-profile strong {
  font-size: 16px;
  letter-spacing: 0;
}

.sidebar-search-button {
  width: 36px;
  height: 36px;
  color: #424852;
}

.sidebar-search-button > span {
  width: 20px;
  height: 20px;
}

.side-nav {
  gap: 5px;
}

.side-nav a,
.sidebar-bottom a,
.sidebar-bottom button {
  border-radius: 12px;
  color: #464b55;
  font-size: 15px;
  font-weight: 620;
}

.side-nav a {
  min-height: 42px;
  padding: 9px 12px;
}

.side-nav a.active {
  background: #e7e9ee;
  color: #111318;
  font-weight: 750;
}

.side-icon {
  width: 19px;
  height: 19px;
}

.sidebar-bottom {
  gap: 5px;
  padding-top: 30px;
}

.dashboard-content,
.client-shell {
  width: 100%;
  max-width: 1520px;
  padding: 32px clamp(22px, 3vw, 38px) 46px;
  gap: 24px;
}

.page-title,
.portal-hero {
  min-height: 46px;
}

.page-title h1,
.portal-hero h1 {
  font-family: "PP Montserrat", Arial, sans-serif;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.15;
  text-transform: none;
}

.page-title p,
.portal-hero p,
.event-types-head p {
  color: #6f7580;
  font-size: 14px;
}

.panel,
.metric-card,
.booking-card,
.auth-card,
.event-types-panel,
.editor-card,
.booking-question-card,
.question-step-head,
.booking-step-actions {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(18, 21, 33, .03);
}

.panel,
.metric-card,
.editor-card,
.booking-question-card,
.question-step-head,
.booking-step-actions {
  background: #fff;
}

.panel {
  padding: 24px;
}

.panel h2 {
  font-size: 16px;
  font-weight: 750;
}

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

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

.metric-card span {
  font-size: 13px;
}

.metric-card strong {
  font-size: 30px;
  font-weight: 750;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.panel > .table-wrap:only-child {
  border: 0;
  border-radius: 0;
}

table {
  min-width: 640px;
}

th {
  background: #fafbfc;
  color: #737985;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

td {
  color: #2f343d;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.pill,
.chip {
  min-height: 24px;
  border-radius: 6px;
  background: #f0f2f5;
  color: #4b515c;
  font-size: 12px;
  font-weight: 650;
}

.event-types-head {
  margin-bottom: 24px;
  align-items: center;
}

.event-types-head h1 {
  font-size: 24px;
  font-weight: 750;
}

.event-search input {
  height: 38px;
  min-height: 38px;
  min-width: 260px;
  border-radius: var(--radius-md);
  background: #fff;
}

.event-types-tools .primary-button {
  height: 38px;
  min-height: 38px;
}

.event-types-panel {
  border-radius: var(--radius-xl);
  overflow: visible;
}

.event-type-row {
  padding: 20px 26px;
  transition: background-color .14s ease;
}

.event-type-row:hover {
  background: #fafbfc;
}

.event-type-titleline strong {
  font-size: 15px;
  font-weight: 750;
}

.event-type-titleline span,
.event-type-info p {
  color: #747a85;
}

.event-action-group,
.event-options-menu,
.command-dialog,
.meeting-type-dialog,
.embed-dialog {
  border-color: var(--line);
  box-shadow: 0 18px 48px rgba(18, 21, 33, .15);
}

.event-action-button,
.event-options summary {
  height: 36px;
  width: 40px;
}

.switch span {
  width: 42px;
  height: 24px;
  background: #dfe2e8;
}

.switch input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--cal-focus);
}

.command-modal {
  padding-top: 8vh;
}

.command-dialog {
  border-radius: 18px;
}

.command-search input {
  box-shadow: none;
}

.meeting-type-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
}

.meeting-type-dialog-head {
  padding: 30px 34px 12px;
}

.meeting-type-close,
.embed-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: #666c77;
}

.meeting-type-close .button-icon,
.embed-close .button-icon {
  width: 18px;
  height: 18px;
}

.event-editor-top {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.event-editor-top > a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  color: #535965;
}

.event-editor-top > a:hover {
  background: var(--cal-hover);
}

.event-editor-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  background: #fbfcfd;
}

.event-editor-tabs button {
  min-height: 56px;
  border-radius: 12px;
}

.event-editor-tabs button:hover {
  background: var(--cal-hover);
}

.event-editor-tabs button.active {
  background: #e9ebf0;
}

.event-editor-tabs strong {
  font-size: 15px;
  font-weight: 750;
}

.editor-card {
  padding: 24px;
  gap: 18px;
}

.mini-editor-toolbar {
  background: #f5f6f8;
  border-color: #d9dce3;
}

.mini-editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #555b66;
  font-weight: 650;
}

.mini-editor-toolbar button:hover,
.mini-editor-toolbar button:focus-visible {
  background: #e9ebf0;
}

.url-input-shell,
.duration-input-shell {
  border-color: #d9dce3;
}

.booking-page-head {
  margin: 56px auto 26px;
}

.booking-page-head img {
  border-radius: 999px;
}

.booking-page-head h1 {
  font-family: "PP Montserrat", Arial, sans-serif;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 750;
  text-transform: none;
}

.booking-page-list {
  display: grid;
  gap: 12px;
}

.event-row.public {
  width: min(900px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(18, 21, 33, .03);
}

.event-row.public:hover {
  border-color: #ccd1da;
  background: #fafbfc;
}

.booking-flow-page {
  background: #f5f6f8;
}

.booking-frame,
.booking-step-actions,
.question-step-head,
.booking-question-card {
  border-radius: var(--radius-xl);
}

.booking-frame {
  box-shadow: 0 16px 42px rgba(18, 21, 33, .08);
}

.booking-details h1,
.booking-calendar-head strong,
.booking-times-head strong {
  font-weight: 750;
}

.booking-range-control button,
.booking-calendar-head button,
.booking-view-toggle button {
  display: grid;
  place-items: center;
}

.booking-range-control button:hover,
.booking-calendar-head button:hover,
.booking-view-toggle button:hover {
  background: var(--cal-hover);
}

.calendar-day.available {
  background: #eef1f5;
}

.calendar-day.available:hover {
  background: #e2e6ed;
}

.time-button {
  box-shadow: 0 1px 2px rgba(18, 21, 33, .04);
}

.time-button:hover {
  border-color: #bfc5d0;
  background: #fafbfc;
}

.client-shell .portal-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 22px 24px;
}

.portal-app-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.manage-booking .panel:first-child {
  border-radius: var(--radius-xl);
}

.empty-state {
  border-color: #d5d9e1;
  border-radius: var(--radius-lg);
  background: #fbfcfd;
}

@media (max-width: 1180px) {
  .dashboard-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .side-nav a,
  .sidebar-bottom a,
  .sidebar-bottom button {
    font-size: 14px;
  }

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

  .availability-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .dashboard-shell {
    display: block;
  }

  .profile-settings-shell {
    grid-template-columns: 1fr;
  }

  .settings-subnav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 25;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    overflow-x: hidden;
  }

  .sidebar-profile {
    margin-bottom: 10px;
    padding: 0 4px;
  }

  .side-nav {
    display: flex;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .side-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .side-nav a::after {
    display: none;
  }

  .sidebar-bottom {
    display: none;
  }

  .dashboard-content,
  .client-shell {
    padding: 22px 18px 34px;
  }

  .event-editor-layout {
    grid-template-columns: 1fr;
    background: #fff;
  }

  .event-editor-tabs {
    position: static;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
  }
}

@media (max-width: 760px) {
  .page-title,
  .portal-hero,
  .event-types-head {
    align-items: stretch;
    flex-direction: column;
  }

  .page-title h1,
  .portal-hero h1 {
    font-size: 22px;
  }

  .panel {
    padding: 18px;
  }

  .table-wrap {
    margin: 0 -2px;
  }

  .metric-grid,
  .split-grid,
  .availability-meeting-list,
  .organisation-explainer,
  .permissions-overview,
  .permissions-grid,
  .grid-form,
  .two-col,
  .field-row,
  .editor-card.two-col {
    grid-template-columns: 1fr;
  }

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

  .permission-resource-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px;
  }

  .permission-resource-summary strong {
    white-space: normal;
  }

  .permission-resource-summary .pill {
    display: none;
  }

  .permission-record-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .permission-record-edit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .permission-inline-edit {
    grid-template-columns: 1fr;
  }

  .meeting-pages-layout,
  .page-editor-form {
    grid-template-columns: 1fr;
  }

  .meeting-page-editor-head,
  .context-access-head,
  .page-card-top {
    align-items: stretch;
    flex-direction: column;
  }

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

  .context-access-form {
    grid-template-columns: 1fr;
  }

  .context-access-rule {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .context-access-rule .inline-form {
    grid-column: 2;
    justify-content: flex-start;
  }

  .availability-week-row {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  }

  .availability-week-row .switch {
    grid-row: 1 / span 2;
  }

  .availability-week-row strong {
    grid-column: 2 / -1;
  }

  .availability-time-separator {
    display: none;
  }

  .availability-editor-head,
  .availability-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .event-type-row {
    padding: 18px;
  }

  .event-type-actions {
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .event-types-tools,
  .event-search {
    width: 100%;
  }

  .event-search input {
    width: 100%;
    min-width: 0;
  }

  .meeting-type-modal,
  .embed-modal,
  .command-modal {
    padding: 10px;
  }

  .meeting-type-dialog,
  .embed-dialog,
  .command-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .meeting-type-dialog-head,
  .meeting-type-dialog-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .meeting-type-dialog-footer {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .event-editor-layout {
    padding: 16px;
  }

  .event-editor-tabs {
    grid-auto-columns: minmax(170px, 74vw);
  }

  .booking-page-head {
    margin-top: 34px;
  }

  .event-row.public {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-shell-v2,
  .booking-shell-v2[data-view="week"] {
    padding: 26px 18px 20px;
  }

  .booking-details h1 {
    font-size: 30px;
  }

  .booking-meta-row,
  .booking-meta-row select {
    font-size: 18px;
  }

  .booking-calendar-head strong,
  .booking-times-head strong {
    font-size: 24px;
  }

  .calendar-day {
    min-height: 54px;
  }

  .time-button {
    min-height: 56px;
  }

  .time-button strong {
    font-size: 21px;
  }
}

@media (max-width: 520px) {
  .sidebar-profile strong {
    font-size: 15px;
  }

  .side-nav a {
    padding: 8px 10px;
  }

  .side-icon {
    width: 18px;
    height: 18px;
  }

  .dashboard-content,
  .client-shell {
    padding: 18px 14px 28px;
  }

  .event-types-tools,
  .event-search input,
  .event-types-tools .primary-button {
    width: 100%;
  }

  .event-action-group {
    margin-left: auto;
  }

  .command-footer {
    display: none;
  }

  .booking-calendar-grid,
  .booking-weekdays {
    gap: 4px;
  }

  .calendar-day strong {
    font-size: 18px;
  }

  .question-step-head {
    flex-direction: column;
  }

  .question-step-head span,
  .question-step-head strong {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .icon-settings {
    grid-template-columns: 1fr;
  }

  .icon-settings-preview {
    width: 48px;
    height: 48px;
  }

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

  .dashboard-shell {
    display: block;
    padding-bottom: 72px;
  }

  .sidebar {
    display: contents;
  }

  .sidebar-profile {
    position: sticky;
    top: 0;
    z-index: 45;
    min-height: 56px;
    margin: 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .sidebar-avatar,
  .sidebar-avatar img {
    width: 30px;
    height: 30px;
  }

  .sidebar-workspace-button > span {
    display: none;
  }

  .sidebar-search-button {
    margin-left: auto;
  }

  .workspace-menu {
    top: 66px;
    left: 16px;
    width: min(360px, calc(100vw - 32px));
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 82px);
  }

  .side-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    height: 66px;
    max-width: none;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    gap: 0;
    overflow-x: auto;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(18, 21, 33, .06);
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .side-nav a {
    flex: initial;
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-radius: 10px;
    padding: 6px 8px;
    color: #8a909b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    overflow: hidden;
  }

  .side-label {
    display: block;
    max-width: 100%;
  }

  .side-nav a.active {
    background: transparent;
    color: var(--navy);
  }

  .side-icon {
    width: 20px;
    height: 20px;
  }

  .dashboard-content,
  .client-shell {
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .event-types-head {
    display: block;
    margin-bottom: 14px;
  }

  .event-types-tools {
    position: fixed;
    right: 16px;
    bottom: 82px;
    z-index: 42;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    pointer-events: none;
  }

  .event-search {
    width: min(230px, calc(100vw - 92px));
    pointer-events: auto;
  }

  .event-search input {
    min-width: 0;
    height: 42px;
    min-height: 42px;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(18, 21, 33, .12);
  }

  .event-types-tools .primary-button {
    width: 52px;
    height: 52px;
    min-height: 52px;
    border-radius: 999px;
    padding: 0;
    box-shadow: 0 10px 28px rgba(39, 43, 88, .28);
    pointer-events: auto;
    font-size: 0;
  }

  .event-types-tools .primary-button .button-icon {
    width: 22px;
    height: 22px;
  }
}

.home-copy-mobile,
.home-mobile-meeting,
.home-public-mobile-link {
  display: none;
}

@media (max-width: 680px) {
  html:has(body.home) {
    background: #f3e5d5;
    background-image: none;
  }

  .home {
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    background: #f3e5d5;
    background-color: #f3e5d5;
    background-image: none;
  }

  body.home {
    background: #f3e5d5;
    background-color: #f3e5d5;
    background-image: none;
  }

  .home .topbar {
    height: 72px;
    padding: 0 18px;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    position: relative;
  }

  .home .brand img {
    width: 48px;
    height: 48px;
  }

  .home .brand .brand-mark {
    display: block;
  }

  .home .brand .brand-wordmark {
    display: none;
  }

  .home .brand span {
    display: none;
  }

  .home .topnav {
    gap: 14px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 650;
  }

  .home .topnav > a[href="/book/premium-productions"],
  .home .topnav > a[data-href="/book/premium-productions"] {
    display: none;
  }

  .home .topnav .home-private-nav {
    display: none;
  }

  .home .topnav .home-public-mobile-link {
    display: inline-flex;
  }

  .home .topnav .primary-button {
    min-height: 42px;
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 10px 22px rgba(234, 128, 0, .22);
    font-size: 17px;
  }

  .home main {
    height: calc(100dvh - 72px);
    min-height: 0;
    overflow: hidden;
    display: block;
    padding: 42px 0 12px;
    background: #f3e5d5;
    background-image: none;
  }

  .home .home-shell {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 18px;
    display: block;
    background: #f3e5d5;
    background-image: none;
  }

  .home .home-panel {
    text-align: center;
    background: #f3e5d5;
    background-image: none;
  }

  .home .home-panel h1 {
    width: min(100%, 390px);
    margin: 0 auto 18px;
    color: var(--orange);
    font-size: clamp(38px, 10.8vw, 46px);
    line-height: .94;
  }

  .home .home-copy-desktop,
  .home .home-actions {
    display: none;
  }

  .home .home-copy-mobile {
    display: block;
    max-width: 350px;
    margin: 0 auto;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.45;
  }

  .home .home-mobile-meeting {
    display: none;
  }

  .home .home-mobile-meeting-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(243, 229, 213, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  }

  .home .home-mobile-meeting-icon span {
    width: 28px;
    height: 26px;
    border: 3px solid var(--orange);
    border-radius: 6px;
    position: relative;
  }

  .home .home-mobile-meeting-icon span::before {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: 7px;
    border-top: 3px solid var(--orange);
  }

  .home .home-mobile-meeting-icon span::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    left: 7px;
    top: 15px;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 10px 0 0 var(--orange);
  }

  .home .home-mobile-meeting h2 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.08;
  }

  .home .home-mobile-meeting p {
    margin: 0;
    color: var(--navy);
    font-size: 12px;
    line-height: 1.33;
  }

  .home .home-mobile-duration {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 750;
  }

  .home .home-mobile-duration span {
    width: 15px;
    height: 15px;
    border: 2px solid var(--orange);
    border-radius: 999px;
    position: relative;
    flex: 0 0 auto;
  }

  .home .home-mobile-duration span::before,
  .home .home-mobile-duration span::after {
    content: "";
    position: absolute;
    background: var(--orange);
  }

  .home .home-mobile-duration span::before {
    left: 6px;
    top: 3px;
    width: 2px;
    height: 5px;
  }

  .home .home-mobile-duration span::after {
    left: 7px;
    top: 7px;
    width: 4px;
    height: 2px;
  }

  .home .home-surface {
    margin-top: 28px;
    padding: 16px 14px 16px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(39, 43, 88, .13);
  }

  .home .surface-head {
    margin-bottom: 15px;
    gap: 10px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    justify-content: flex-start;
  }

  .home .home-scroll-hint {
    display: inline-block;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
    transition: opacity .18s ease;
    pointer-events: none;
    animation: homeHintFloat 1.8s ease-in-out infinite;
  }

  .home .home-date-scroll-hint {
    margin-left: 2px;
    align-self: center;
  }

  .home .home-month-label {
    margin-left: auto;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
  }

  .home .status-dot {
    width: 10px;
    height: 10px;
  }

  .home .mini-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    max-height: 104px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-color: rgba(234, 128, 0, .55) transparent;
    position: relative;
  }

  .home .mini-calendar button {
    min-height: 49px;
    padding: 4px 2px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .8);
    border-color: rgba(39, 43, 88, .12);
    color: #050b1f;
  }

  .home .mini-calendar button:not(:disabled):hover,
  .home .mini-calendar button:focus-visible {
    background: rgba(255, 255, 255, .96);
    border-color: var(--orange);
    color: #050b1f;
    outline: none;
  }

  .home .mini-calendar button:not(:disabled):hover span,
  .home .mini-calendar button:focus-visible span {
    color: inherit;
  }

  .home .mini-calendar button:disabled {
    opacity: 1;
    color: rgba(39, 43, 88, .62);
    background: rgba(243, 229, 213, .58);
  }

  .home .mini-calendar span {
    color: inherit;
    font-size: 10px;
  }

  .home .mini-calendar strong {
    font-size: 19px;
    line-height: 1;
  }

  .home .mini-calendar .active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
  }

  .home .mini-calendar button.active:hover,
  .home .mini-calendar button.active:focus-visible {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
  }

  .home .mini-calendar button.active:hover span,
  .home .mini-calendar button.active:focus-visible span {
    color: #fff;
  }

  .home .mini-calendar .active span {
    color: #fff;
  }

  .home .slot-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    margin-top: 0;
    max-height: 152px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-color: rgba(234, 128, 0, .55) transparent;
    position: relative;
  }

  .home .home-time-scroll-hint {
    display: block;
    margin: 14px 4px 8px auto;
    text-align: right;
  }

  .home .home-weekdays,
  .home .home-slots-label {
    display: none;
  }

  .home .slot-list button {
    min-height: 44px;
    padding: 8px 6px;
    border-color: var(--orange);
    border-radius: 9px;
    background: #fff;
    color: #050b1f;
    text-align: center;
    font-size: 16px;
  }

  .home .slot-list button:hover,
  .home .slot-list button:focus-visible {
    border-color: var(--orange);
    background: rgba(234, 128, 0, .08);
  }

  @keyframes homeHintFloat {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-3px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .home .home-scroll-hint {
      animation: none;
      transition: none;
    }
  }
}

@media (max-width: 390px) {
  .home .topbar {
    padding: 0 14px;
  }

  .home .topnav {
    gap: 12px;
    font-size: 16px;
  }

  .home .topnav .primary-button {
    padding: 11px 13px;
    font-size: 16px;
  }

  .home .home-panel h1 {
    font-size: clamp(38px, 10.7vw, 50px);
  }

  .home .home-copy-mobile {
    font-size: 17px;
  }

  .home .home-mobile-meeting {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .home .home-mobile-meeting-icon {
    width: 64px;
    height: 64px;
  }

  .home .home-surface {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home .mini-calendar {
    gap: 6px;
    max-height: 122px;
  }

  .home .mini-calendar button {
    min-height: 58px;
  }

  .home .slot-list {
    gap: 12px;
  }

  .home .slot-list button {
    font-size: 18px;
  }
}

@media (max-width: 980px) {
  .dashboard .dashboard-shell {
    display: block;
    grid-template-columns: 1fr;
    padding-bottom: 72px;
  }

  .dashboard .sidebar {
    display: contents;
    background: transparent;
    border-right: 0;
    padding: 0;
    height: auto;
    overflow: visible;
  }

  .dashboard .sidebar-profile {
    position: sticky;
    top: 0;
    z-index: 45;
    min-height: 56px;
    margin: 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .dashboard .sidebar-brand-button {
    width: min(172px, 48vw);
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .dashboard .sidebar-brand-logo {
    width: 100%;
    transform: none;
  }

  .dashboard .sidebar-search-button {
    width: 38px;
    min-height: 38px;
    height: 38px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #424852;
    justify-content: center;
    padding: 0;
  }

  .dashboard .sidebar-search-button:hover,
  .dashboard .sidebar-search-button:focus-visible {
    background: #eceef2;
    color: #171a22;
  }

  .dashboard .sidebar-search-button > span:last-child {
    display: none;
  }

  .dashboard .side-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    height: 66px;
    max-width: none;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    gap: 0;
    overflow-x: auto;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(18, 21, 33, .06);
    scrollbar-width: none;
  }

  .dashboard .side-nav a {
    width: auto;
    flex: initial;
    min-width: 0;
    min-height: 52px;
    border: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-radius: 10px;
    padding: 6px 8px;
    color: #8a909b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    overflow: hidden;
  }

  .dashboard .side-nav a.active,
  .dashboard .side-nav a:hover,
  .dashboard .side-nav a:focus-visible {
    background: transparent;
    border-color: transparent;
    color: var(--navy);
  }

  .dashboard .side-nav a.active .side-icon,
  .dashboard .side-nav a:hover .side-icon,
  .dashboard .side-nav a:focus-visible .side-icon {
    color: currentColor;
  }

  .dashboard .side-icon {
    width: 20px;
    height: 20px;
  }

  .dashboard .sidebar-bottom {
    display: none;
  }

  .calendar-connect-head,
  .calendar-provider-actions,
  .calendar-card-actions,
  .calendar-disconnect-form {
    align-items: stretch;
  }

  .calendar-provider-actions,
  .calendar-feed-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .calendar-provider-actions .secondary-button,
  .calendar-feed-form .primary-button {
    width: 100%;
  }

  .calendar-connection-grid {
    grid-template-columns: 1fr;
  }
}
