:root {
  --ink: #111827;
  --muted: #667085;
  --subtle: #f7f9fc;
  --panel: #ffffff;
  --line: #e4e9f1;
  --line-strong: #ccd6e5;
  --blue: #006bff;
  --blue-dark: #0054cc;
  --blue-soft: #eef6ff;
  --green: #0f9f6e;
  --danger: #c73636;
  --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 18px 60px rgba(17, 24, 39, 0.1);
  --shadow-lg: 0 34px 100px rgba(17, 24, 39, 0.16);
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
}

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

button {
  cursor: pointer;
}

.app {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  align-items: start;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9fc 0%, #fbfcff 34%, #ffffff 100%);
  overflow-x: hidden;
}

.public-app {
  display: block;
  background: #ffffff;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 244px;
  min-height: 100vh;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid rgba(228, 233, 241, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

.public-app .sidebar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
}

.brand.compact {
  font-size: 18px;
}

.brand-mark,
.metric-icon,
.success-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4f8cff);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  box-shadow: none;
}

.public-app .brand-mark {
  width: 30px;
  height: 30px;
}

.public-app .brand {
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.nav button,
.nav a,
.event-actions button,
.event-action-link,
.back-button,
.icon-button,
.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: #344054;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav button:hover,
.nav a:hover,
.event-actions button:hover,
.event-action-link:hover,
.back-button:hover,
.logout-button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.nav button.active,
.nav a.active,
.tabs button.selected {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #cfe4ff;
}

.nav button,
.nav a {
  justify-content: flex-start;
  width: 100%;
  border-radius: 10px;
}

.nav a,
.event-action-link,
.primary {
  text-decoration: none;
}

.nav-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.profile-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 11px 6px 6px;
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.logout-button {
  justify-content: flex-start;
  width: 100%;
}

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

.profile-card strong {
  color: var(--ink);
  font-size: 14px;
}

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

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #334155);
  border-radius: 999px;
  font-weight: 850;
}

.avatar.large {
  width: 60px;
  height: 60px;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}

.main {
  width: min(1180px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  margin: 0 auto;
  padding: 44px 0 76px;
  overflow-x: clip;
}

.topbar-description {
  max-width: 640px;
  margin: 12px 0 0;
}

.public-app .main {
  width: min(1180px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  padding: 28px 0 58px;
}

.public-booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto 18px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.public-booking-header > span {
  display: none;
}

.topbar,
.panel-header,
.event-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.topbar > *,
.panel-header > *,
.event-heading > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 50px);
  letter-spacing: 0;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2f7fff);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 107, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  box-shadow: 0 16px 34px rgba(0, 107, 255, 0.28);
  transform: translateY(-1px);
}

.primary:disabled {
  cursor: not-allowed;
  background: #a9b6cc;
  box-shadow: none;
}

.primary.full {
  width: 100%;
}

.danger-primary {
  background: var(--danger);
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  color: #9b2525;
  background: #fff3f3;
  border: 1px solid #ffc9c9;
  border-radius: 14px;
}

.error-banner span {
  flex: 1;
}

.error-banner button {
  min-height: 34px;
  padding: 0 12px;
  color: #9b2525;
  background: #fff;
  border: 1px solid #efabab;
  border-radius: 999px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.metric,
.panel,
.event-card,
.booking-shell,
.confirmation,
.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.metric {
  display: grid;
  gap: 8px;
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.metric:hover,
.event-card:hover {
  border-color: #cfd8e6;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.metric-icon svg {
  width: 19px;
}

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

.metric strong {
  color: var(--ink);
  font-size: 30px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs button {
  min-height: 40px;
  padding: 0 15px;
  color: #344054;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tabs button:hover {
  border-color: #c8d3e2;
  background: #f8fafc;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 18px;
}

.event-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.event-color {
  height: 5px;
}

.event-body,
.panel,
.confirmation,
.auth-panel {
  padding: 26px;
}

.event-meta,
.detail-list,
.meeting-summary,
.confirmation-details {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  color: #475569;
}

.event-meta span,
.detail-list span,
.meeting-summary span,
.confirmation-details span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

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

.event-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: #344054;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.event-actions.center {
  justify-content: center;
}

.section-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.editor-panel {
  margin-bottom: 18px;
}

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

.editor-grid label,
.auth-panel label,
.guest-pane label {
  display: grid;
  gap: 8px;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.editor-grid .wide {
  grid-column: 1 / -1;
}

.editor-grid input[type="color"] {
  width: 72px;
  padding: 4px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.form-actions button {
  min-height: 42px;
  padding: 0 16px;
  color: #344054;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
}

.form-actions .primary {
  color: #fff;
  background: var(--blue);
  border: 0;
}

.danger-text {
  color: var(--danger) !important;
}

.danger-text:disabled {
  cursor: not-allowed;
  color: #a9b6cc !important;
}

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

.switch span {
  display: block;
  width: 44px;
  height: 24px;
  position: relative;
  background: #c8d0dd;
  border-radius: 999px;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.18s ease;
}

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

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

.booking-list,
.availability-list {
  display: grid;
  gap: 12px;
}

.booking-sections,
.availability-sections {
  display: grid;
  gap: 18px;
}

.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  margin-left: 6px;
  padding: 0 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 14px;
  vertical-align: 2px;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 46px 24px 34px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--subtle);
}

.empty-state h3 {
  margin: 14px 0 6px;
}

.empty-state p {
  max-width: 520px;
  margin-bottom: 20px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 16px;
}

.booking-row,
.availability-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.booking-row {
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
}

.booking-row:hover,
.availability-row:hover {
  border-color: #cfd8e6;
  box-shadow: var(--shadow-sm);
}

.booking-row.cancelled {
  opacity: 0.58;
}

.booking-date {
  display: grid;
  place-items: center;
  height: 54px;
  border: 1px solid #d9deea;
  border-radius: 14px;
}

.booking-date strong {
  color: var(--blue);
  font-size: 12px;
}

.booking-info span,
.booking-info small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.inline-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.inline-links button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #cfe4ff;
  border-radius: 999px;
}

.status {
  padding: 6px 10px;
  color: #08784f;
  background: #edf8f3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.cancelled .status {
  color: var(--muted);
  background: #f1f5f9;
}

.icon-button {
  width: 42px;
  padding: 0;
}

.icon-button.danger {
  color: var(--danger);
}

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

.override-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 18px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.override-form label {
  display: grid;
  gap: 8px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

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

.override-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.override-row strong,
.override-row span {
  display: block;
}

.override-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.override-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.time-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #ddecff;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(0, 107, 255, 0.14);
}

textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.back-button {
  margin-bottom: 18px;
}

.booking-shell {
  display: grid;
  grid-template-columns: 300px minmax(430px, 1fr) 300px;
  min-height: 680px;
  overflow: hidden;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.host-pane,
.calendar-pane,
.guest-pane {
  padding: 32px;
}

.host-pane,
.calendar-pane {
  border-right: 1px solid var(--line);
}

.host-pane {
  background: #fff;
}

.calendar-pane {
  background: #fff;
}

.guest-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}

.host-name {
  margin: 14px 0 10px;
  color: #344054;
  font-weight: 800;
}

.host-pane select {
  margin-bottom: 8px;
}

.host-pane h1 {
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.12;
}

.section-title h2 {
  margin-bottom: 4px;
}

.section-title.compact {
  margin-top: 26px;
}

.month-title {
  margin: 22px 0 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

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

.date-card,
.slot {
  min-height: 46px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.date-card {
  display: grid;
  place-items: center;
  gap: 0;
  padding: 2px;
}

.date-card span {
  display: none;
}

.date-card small {
  display: none;
  color: var(--muted);
}

.date-card strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 15px;
}

.date-card.selected,
.date-card:hover:not(:disabled) {
  color: var(--blue);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.date-card.selected strong,
.date-card:hover:not(:disabled) strong {
  color: #fff;
  background: var(--blue);
}

.date-card:disabled,
.date-card:disabled strong {
  cursor: not-allowed;
  color: #9ba6b8;
  background: #fff;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 336px;
  overflow: auto;
  padding-right: 4px;
}

.slot {
  min-height: 48px;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 6px;
  font-weight: 800;
}

.slot:hover:not(:disabled),
.slot.selected {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: none;
  transform: none;
}

.slot:disabled {
  cursor: not-allowed;
  color: #9ba6b8;
  background: #f4f6f9;
  border-color: #dbe2ea;
}

.reschedule-grid {
  margin: 22px 0;
}

.reschedule-slots {
  margin-bottom: 18px;
}

.input-wrap {
  position: relative;
}

.input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.input-wrap input {
  padding-left: 40px;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  color: #9b2525;
  background: #fff3f3;
  border: 1px solid #ffc9c9;
  border-radius: 14px;
}

.form-error.neutral {
  color: #344054;
  background: #f8fafc;
  border-color: #dbe2ea;
}

.center-button {
  margin: 16px auto 0;
}

.confirmation {
  max-width: 660px;
  margin: 7vh auto 0;
  text-align: center;
}

.success-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  background: var(--green);
  border-radius: 999px;
}

.confirmation-details {
  padding: 18px;
  text-align: left;
  background: #f8fafc;
  border-radius: 16px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - 140px);
}

.auth-shell > div:first-child {
  padding: 34px;
  background: linear-gradient(145deg, #ffffff, #f7faff);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.auth-panel {
  display: grid;
  gap: 16px;
}

.hint {
  margin: 0;
  font-size: 13px;
}

.demo-login {
  min-height: 42px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #cfe4ff;
  border-radius: 999px;
  font-weight: 800;
}

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

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

  .host-pane,
  .calendar-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .app {
    display: block;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    min-height: auto;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(228, 233, 241, 0.82);
  }

  .nav {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav button,
  .nav a {
    width: auto;
  }

  .profile-card {
    margin-top: 0;
    margin-left: 0;
  }

  .logout-button {
    width: auto;
  }

  .main,
  .public-app .main {
    width: min(100vw - 28px, 680px);
    padding-top: 22px;
  }

  .public-booking-header,
  .topbar,
  .panel-header,
  .event-heading {
    display: grid;
  }

  .metrics,
  .event-grid,
  .editor-grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

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

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

  .override-form {
    grid-template-columns: 1fr 1fr;
  }

  .time-inputs {
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .tabs,
  .event-actions,
  .time-inputs {
    display: grid;
  }

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

  .host-pane,
  .calendar-pane,
  .guest-pane {
    padding: 24px;
  }

  .app:not(.public-app) {
    padding-bottom: 76px;
  }

  .sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 0 -10px 30px rgba(17, 24, 39, 0.08);
  }

  .sidebar .brand,
  .sidebar .profile-card,
  .sidebar .logout-button {
    display: none;
  }

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

  .override-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav button,
  .nav a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 56px;
    padding: 5px 2px;
    border: 0;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
  }

  .nav a svg:last-child,
  .nav-count {
    display: none;
  }

  .topbar .primary {
    width: 100%;
  }

  h1 {
    font-size: 34px;
  }

  .event-body,
  .panel,
  .confirmation,
  .auth-panel {
    padding: 20px;
  }

  .booking-row {
    padding: 16px;
  }

.inline-links button {
    min-height: 38px;
  }
}

/* 2026 product refresh: restrained, calendar-first, and mobile-safe. */
:root {
  --ink: #101828;
  --muted: #667085;
  --subtle: #f8fafc;
  --panel: #fff;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --blue: #006bff;
  --blue-dark: #0056d6;
  --blue-soft: #eff6ff;
  --green: #079455;
  --danger: #d92d20;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .04);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, .08);
}

body { color: var(--ink); background: #f8fafc; }
.app { grid-template-columns: 236px minmax(0, 1fr); background: #f8fafc; }
.sidebar {
  width: 236px;
  gap: 22px;
  padding: 24px 14px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}
.brand { padding: 0 8px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark, .metric-icon, .success-mark { background: var(--blue); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.nav { gap: 4px; }
.nav button, .nav a, .logout-button {
  min-height: 42px;
  padding: 0 12px;
  color: #475467;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
}
.nav button:hover, .nav a:hover, .logout-button:hover {
  color: var(--ink);
  background: #f2f4f7;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.nav button.active, .nav a.active { color: #0056d6; background: #eff6ff; border-color: transparent; }
.nav-count { min-width: 21px; height: 21px; color: #0056d6; background: #dbeafe; font-size: 11px; }
.profile-card { padding: 10px; background: #f8fafc; border-radius: 10px; }
.avatar { background: #172033; }
.main { width: min(1120px, calc(100vw - 284px)); max-width: none; padding: 38px 0 72px; }
.topbar { align-items: center; }
.eyebrow { margin-bottom: 6px; color: #667085; font-size: 11px; letter-spacing: .1em; }
h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 750; letter-spacing: -.035em; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 720; letter-spacing: -.015em; }
.topbar-description { margin-top: 8px; }
.primary {
  min-height: 42px;
  padding: 0 16px;
  background: var(--blue);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
  font-size: 14px;
  font-weight: 700;
}
.primary:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 2px 5px rgba(16, 24, 40, .12); transform: none; }
.metric, .panel, .event-card, .confirmation, .auth-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.metric { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 18px; }
.metric-icon { grid-row: 1 / 3; width: 40px; height: 40px; color: #175cd3; background: #eff6ff; border-radius: 9px; }
.metric span { align-self: end; font-size: 13px; }
.metric strong { align-self: start; font-size: 24px; }
.metric:hover, .event-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: none; }
.tabs { gap: 24px; margin: 4px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 650;
}
.tabs button:hover { background: transparent; border-color: #98a2b3; }
.tabs button.selected { color: var(--blue); background: transparent; border-color: var(--blue); }
.event-grid { grid-template-columns: 1fr; gap: 12px; }
.event-card { display: grid; grid-template-columns: 5px minmax(0, 1fr); overflow: hidden; }
.event-color { width: 5px; height: 100%; }
.event-body, .panel, .confirmation, .auth-panel { padding: 24px; }
.event-heading { align-items: center; }
.event-body h2 { margin-bottom: 5px; font-size: 18px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 18px; font-size: 14px; }
.event-actions button, .event-action-link, .back-button, .icon-button, .form-actions button {
  min-height: 38px;
  padding: 0 12px;
  color: #344054;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.event-actions button:hover, .event-action-link:hover, .back-button:hover { background: #f9fafb; box-shadow: none; transform: none; }
input, select, textarea { min-height: 42px; border-color: var(--line-strong); border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
input:focus, select:focus, textarea:focus { outline: 3px solid #dbeafe; box-shadow: none; }
.booking-sections, .availability-sections { gap: 16px; }
.booking-list, .availability-list { gap: 8px; }
.booking-row, .availability-row { border-radius: 9px; box-shadow: none; }
.booking-row { grid-template-columns: 56px minmax(0, 1fr) auto auto; padding: 12px 14px; }
.booking-date { height: 50px; background: #f8fafc; border-radius: 8px; }
.status, .count-pill, .inline-links button { border-radius: 6px; }
.empty-state { border-radius: 10px; }
.override-form { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; padding: 16px; background: #f8fafc; border-radius: 10px; }
.override-row, .override-empty { border-radius: 9px; }

/* Public booking flow */
.public-app { min-height: 100vh; background: #f5f7fa; }
.public-app .main { width: min(1080px, calc(100vw - 40px)); max-width: none; padding: 24px 0 56px; }
.public-booking-header { max-width: 1020px; margin-bottom: 20px; padding: 0; }
.public-booking-header > span { display: block; color: #98a2b3; font-size: 12px; }
.public-app .brand { padding: 0; color: #172033; font-size: 16px; }
.booking-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  width: 100%;
  max-width: 1020px;
  min-height: 610px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .1);
}
.host-pane { padding: 32px 28px; background: #fbfcfe; border-right: 1px solid var(--line); border-bottom: 0; }
.avatar.large { width: 52px; height: 52px; border-radius: 14px; box-shadow: none; font-size: 19px; }
.host-name { margin: 18px 0 8px; color: #667085; font-size: 14px; }
.host-pane select { margin-bottom: 0; background-color: #fff; }
.host-pane h1 { margin-top: 24px; font-size: 27px; }
.host-pane > p:not(.host-name) { margin: 10px 0 0; font-size: 14px; }
.detail-list { gap: 12px; margin: 22px 0 0; color: #475467; font-size: 13px; }
.detail-list svg { color: #667085; }
.booking-step-pane { min-width: 0; padding: 34px 36px; }
.booking-step-title { margin-bottom: 28px; }
.booking-step-title h2, .guest-pane h2 { margin-bottom: 5px; font-size: 24px; }
.booking-step-title > p:last-child, .guest-pane .section-title > p:last-child { margin: 0; font-size: 13px; }
.step-label { margin-bottom: 6px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.scheduler-grid { display: grid; grid-template-columns: minmax(360px, 1fr) 210px; gap: 30px; min-width: 0; }
.calendar-pane { min-width: 0; padding: 0; border: 0; }
.month-title { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; margin: 0 0 20px; font-size: 15px; text-align: center; }
.month-title button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: #344054; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.month-title button:hover:not(:disabled) { background: #f9fafb; }
.month-title button:disabled { cursor: default; color: #d0d5dd; }
.weekday-grid, .date-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.weekday-grid { gap: 2px; margin-bottom: 7px; color: #98a2b3; font-size: 10px; letter-spacing: .03em; }
.date-grid { gap: 3px; }
.calendar-placeholder, .date-card { min-width: 0; min-height: 43px; }
.date-card { position: relative; border-radius: 8px; }
.date-card strong { width: 36px; height: 36px; font-size: 14px; }
.date-card.available small { position: absolute; bottom: 2px; display: block; width: 3px; height: 3px; padding: 0; background: var(--blue); border-radius: 999px; }
.date-card.selected small { background: #fff; }
.date-card:hover:not(:disabled) strong { color: var(--blue); background: var(--blue-soft); }
.date-card.selected strong, .date-card.selected:hover strong { color: #fff; background: var(--blue); }
.time-pane { min-width: 0; padding-left: 26px; border-left: 1px solid var(--line); }
.time-pane-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; margin-bottom: 18px; font-size: 13px; }
.time-pane-heading span { color: #98a2b3; font-size: 11px; }
.slot-grid { gap: 8px; max-height: 390px; }
.slot { min-height: 43px; border-color: #84adff; border-radius: 7px; font-size: 13px; font-weight: 700; }
.guest-pane { max-width: 520px; padding: 0; gap: 17px; }
.guest-pane label { gap: 7px; font-size: 13px; font-weight: 650; }
.guest-pane label em { color: #98a2b3; font-size: 12px; font-style: normal; font-weight: 500; }
.change-time { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; min-height: 34px; margin-bottom: 4px; padding: 0; color: #475467; background: transparent; border: 0; font-size: 13px; font-weight: 650; }
.selected-meeting-summary { display: grid; gap: 9px; margin: 0 0 4px; padding: 14px; color: #344054; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.selected-meeting-summary span { display: flex; align-items: center; gap: 9px; }
.confirmation { max-width: 620px; margin: 7vh auto 0; background: #fff; }
.success-mark { width: 64px; height: 64px; }
.confirmation-details { border: 1px solid var(--line); border-radius: 9px; }

/* Auth */
.auth-shell { grid-template-columns: minmax(0, 1fr) 430px; gap: 0; min-height: calc(100vh - 120px); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); }
.auth-shell > div:first-child { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 72px); color: #fff; background: #101828; border: 0; border-radius: 0; box-shadow: none; }
.auth-shell > div:first-child h1, .auth-shell > div:first-child h2 { color: #fff; }
.auth-shell > div:first-child p { max-width: 540px; color: #cbd5e1; }
.auth-shell .auth-panel { align-self: center; margin: 34px; border: 0; box-shadow: none; }
.demo-login { border-radius: 8px; font-weight: 700; }

@media (max-width: 1080px) {
  .main { width: calc(100vw - 276px); }
  .override-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .booking-step-pane { padding: 30px; }
  .scheduler-grid { grid-template-columns: minmax(330px, 1fr) 190px; gap: 22px; }
}

@media (max-width: 820px) {
  .app:not(.public-app) { display: block; padding-bottom: 84px; }
  .app:not(.public-app) .sidebar { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 40; display: block; width: 100%; min-height: 0; padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(255, 255, 255, .97); border: 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 24, 40, .06); }
  .sidebar .brand, .sidebar .profile-card, .sidebar .logout-button { display: none; }
  .nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .nav button, .nav a { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 100%; min-height: 54px; padding: 4px 2px; font-size: 10px; line-height: 1.1; }
  .nav a svg:last-child, .nav-count { display: none; }
  .main, .public-app .main { width: min(100% - 32px, 720px); padding: 26px 0 44px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell > div:first-child { min-height: 250px; }
  .booking-shell { grid-template-columns: 1fr; max-width: 680px; }
  .host-pane { padding: 26px 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .host-pane .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scheduler-grid { grid-template-columns: minmax(0, 1fr) 190px; }
  .booking-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .booking-row > :last-child { grid-column: 2 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  .public-app .main { width: 100%; padding: 0 0 28px; }
  .public-booking-header { margin: 0; padding: 15px 18px; background: #fff; border-bottom: 1px solid var(--line); }
  .public-booking-header > span { display: none; }
  .booking-shell { min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .host-pane { padding: 22px 20px; }
  .host-pane h1 { margin-top: 18px; font-size: 24px; }
  .host-pane .detail-list { grid-template-columns: 1fr 1fr; gap: 9px 12px; margin-top: 17px; }
  .detail-list span:nth-last-child(-n + 2) { grid-column: 1 / -1; }
  .booking-step-pane { padding: 24px 18px 30px; }
  .booking-step-title { margin-bottom: 22px; }
  .booking-step-title h2, .guest-pane h2 { font-size: 22px; }
  .scheduler-grid { grid-template-columns: 1fr; gap: 24px; }
  .time-pane { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; padding-right: 0; }
  .weekday-grid, .date-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
  .calendar-placeholder, .date-card { min-height: 41px; }
  .date-card strong { width: 34px; height: 34px; }
  .metrics { grid-template-columns: 1fr; }
  .topbar, .panel-header, .event-heading { display: flex; }
  .topbar { align-items: flex-start; }
  .topbar .primary { width: auto; flex: none; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-grid .wide { grid-column: auto; }
  .override-form { grid-template-columns: 1fr 1fr; }
  .override-form .primary, .override-status { grid-column: 1 / -1; }
  .booking-row, .availability-row { grid-template-columns: 1fr; }
  .booking-row > :last-child { grid-column: auto; }
  .auth-shell { border: 0; border-radius: 0; box-shadow: none; }
  .auth-shell > div:first-child { min-height: 210px; padding: 30px 24px; }
  .auth-shell .auth-panel { margin: 0; padding: 28px 22px; }
}

@media (max-width: 430px) {
  .main { width: calc(100% - 24px); }
  h1 { font-size: 28px; }
  .topbar { display: grid; gap: 16px; }
  .topbar .primary { width: 100%; min-width: 42px; padding: 0 11px; }
  .tabs { display: flex; flex-wrap: nowrap; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; }
  .event-body, .panel, .confirmation, .auth-panel { padding: 18px; }
  .host-pane .detail-list { grid-template-columns: 1fr; }
  .detail-list span:nth-last-child(-n + 2) { grid-column: auto; }
  .month-title { margin-bottom: 16px; }
  .weekday-grid { font-size: 9px; }
  .calendar-placeholder, .date-card { min-height: 38px; }
  .date-card strong { width: 32px; height: 32px; font-size: 13px; }
  .override-form { grid-template-columns: 1fr; }
  .override-form > * { grid-column: auto; }
  .form-actions, .event-actions { display: flex; }
}

/* Availability rebuilt as one deliberate scheduling surface. */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  box-shadow: none;
}

.schedule-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  margin-top: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
}

.schedule-column { min-width: 0; padding: 24px; }
.schedule-column + .schedule-column { border-left: 1px solid #dfe6ec; }
.schedule-column-header { min-height: 70px; padding-bottom: 20px; border-bottom: 1px solid #e6ecf1; }
.schedule-column-header h2 { margin: 0 0 5px; color: #173f5f; font-size: 16px; }
.schedule-column-header p { margin: 0; color: #6b7c8a; font-size: 12px; }
.schedule-rows { padding-top: 8px; }
.schedule-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #edf1f4;
}
.schedule-row:last-child { border-bottom: 0; }
.day-control { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.day-control input { position: absolute; opacity: 0; pointer-events: none; }
.day-check { display: grid; place-items: center; width: 16px; height: 16px; flex: 0 0 16px; color: #fff; background: #fff; border: 1px solid #aebdca; border-radius: 3px; }
.schedule-row.enabled .day-check { background: #006bff; border-color: #006bff; }
.day-control strong { color: #244760; font-size: 11px; letter-spacing: .03em; }
.schedule-time-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; }
.schedule-time-range input { min-width: 0; min-height: 36px; padding: 0 9px; color: #203f56; border-color: #cfd9e1; border-radius: 5px; font-size: 12px; }
.schedule-time-range span { color: #91a0ac; font-size: 12px; }
.unavailable-label { color: #98a5af; font-size: 12px; }
.range-editor { display: grid; gap: 14px; padding: 18px 0; border-bottom: 1px solid #e6ecf1; }
.range-editor label { display: grid; gap: 6px; min-width: 0; color: #425e72; font-size: 11px; font-weight: 700; }
.range-editor input, .range-editor select { min-width: 0; min-height: 38px; border-radius: 5px; font-size: 12px; }
.range-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range-time-fields { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }
.range-time-fields > span { padding-bottom: 10px; color: #91a0ac; }
.range-editor .primary { justify-self: start; min-height: 38px; border-radius: 999px; font-size: 12px; }
.override-list { padding-top: 16px; }
.schedule-surface .override-empty { display: grid; justify-items: start; gap: 4px; margin: 0; padding: 18px; color: #6b7c8a; background: #f8fafc; border: 0; border-radius: 6px; text-align: left; }
.schedule-surface .override-empty svg { margin-bottom: 4px; color: #7b91a3; }
.schedule-surface .override-empty strong { color: #294c68; font-size: 12px; }
.schedule-surface .override-empty span { font-size: 11px; }
.schedule-surface .override-row { padding: 12px; background: #fff; }

@media (max-width: 900px) {
  .schedule-surface { grid-template-columns: 1fr; }
  .schedule-column + .schedule-column { border-top: 1px solid #dfe6ec; border-left: 0; }
}

@media (max-width: 820px) {
  .app:not(.public-app) .sidebar .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app:not(.public-app) .sidebar .nav > a { display: none; }
}

@media (max-width: 560px) {
  .schedule-surface { margin-top: 18px; border-right: 0; border-left: 0; border-radius: 0; }
  .schedule-column { padding: 20px 16px; }
  .schedule-column-header { min-height: 0; padding-bottom: 16px; }
  .schedule-row { grid-template-columns: 74px minmax(0, 1fr); min-height: 50px; }
  .day-control { gap: 8px; }
  .schedule-time-range { gap: 5px; }
  .schedule-time-range input { min-height: 36px; padding: 0 6px; font-size: 11px; }
  .range-date-fields { gap: 8px; }
  .app:not(.public-app) .topbar { padding-bottom: 18px; }
  .app:not(.public-app) .topbar .eyebrow { display: none; }
  .app:not(.public-app) .topbar h1 { font-size: 26px; }
  .app:not(.public-app) .topbar-description { max-width: 290px; font-size: 13px; }
}

@media (max-width: 380px) {
  .schedule-row { grid-template-columns: 68px minmax(0, 1fr); }
  .schedule-time-range input { font-size: 10px; }
  .range-date-fields { grid-template-columns: 1fr; }
}

/* Innovated Scheduling identity */
:root {
  --ink: #242238;
  --muted: #6f6b7d;
  --subtle: #f7f5f2;
  --panel: #fffefa;
  --line: #e3dfd8;
  --line-strong: #ccc6bc;
  --blue: #6558d9;
  --blue-dark: #4d42bd;
  --blue-soft: #f0eefe;
  --green: #248266;
  --danger: #bd4b4b;
}

body { color: var(--ink); background: #f7f5f2; }
.app { background: #f7f5f2; }
.sidebar { background: #1d1b2f; border-right: 0; }
.brand { color: #fff; }
.brand-copy { display: block; min-width: 0; }
.brand-copy span { display: block; color: inherit; font-size: 15px; font-weight: 760; letter-spacing: -.015em; white-space: nowrap; }
.brand-mark { position: relative; color: #fff; background: #7164e8; border-radius: 9px; box-shadow: none; }
.brand-mark svg { display: none; }
.brand-mark::before { content: "IS"; font-size: 10px; font-weight: 850; letter-spacing: -.04em; }
.nav button, .nav a, .logout-button { color: #c9c5d7; }
.nav button:hover, .nav a:hover, .logout-button:hover { color: #fff; background: rgba(255,255,255,.075); }
.nav button.active, .nav a.active { color: #fff; background: rgba(126,112,240,.22); }
.nav-count { color: #fff; background: #7164e8; }
.profile-card { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.profile-card strong { color: #fff; }
.profile-card span { color: #aaa5ba; }
.sidebar .avatar { color: #fff; background: #7164e8; }
.main { color: var(--ink); }
h1, h2 { color: #242238; }
.eyebrow { color: #7a718e; }
.topbar { border-color: #e3dfd8; }
.primary { color: #fff; background: #6558d9; border-radius: 7px; box-shadow: 0 1px 2px rgba(35,31,65,.16); }
.primary:hover:not(:disabled) { background: #4d42bd; }
.panel, .event-card, .confirmation, .auth-panel, .schedule-surface { background: #fffefa; border-color: #e3dfd8; box-shadow: 0 1px 2px rgba(45,39,71,.035); }
.event-body h2, .event-owner strong, .asset-copy strong, .schedule-column-header h2 { color: #2c2942; }
.event-owner span, .event-meta span:last-child, .event-actions button, .event-action-link, .change-time { color: #5b50c5; }
.event-actions button:hover, .event-action-link:hover { color: #493ead; background: #f2f0fc; }
.event-owner .avatar, .empty-icon, .metric-icon { color: #5b50c5; background: #f0eefe; }
input:focus, select:focus, textarea:focus { outline-color: #ded9ff; border-color: #6558d9; }
.switch input:checked + span, .schedule-row.enabled .day-check { background: #6558d9; border-color: #6558d9; }
.count-pill, .inline-links button { color: #5b50c5; background: #f0eefe; border-color: #dad5fb; }
.schedule-column + .schedule-column, .schedule-column-header, .range-editor { border-color: #e7e2db; }
.schedule-surface .override-empty, .override-form { background: #faf8f5; }
.status { color: #216d58; background: #edf7f2; }

.public-app { background: #f4f1ec; }
.public-app .brand { color: #242238; }
.public-app .brand-mark { background: #6558d9; }
.booking-shell { background: #fffefa; border-color: #ddd7ce; box-shadow: 0 12px 34px rgba(43,37,66,.09); }
.host-pane { background: #fcfaf6; border-color: #e3dfd8; }
.host-pane h1, .booking-step-title h2, .month-title, .time-pane-heading { color: #29263f; }
.host-pane select, .month-title button, .slot, .date-card:disabled { background-color: #fffefa; }
.month-title button { color: #514b60; background: #f3f0ea; }
.date-card.available:not(.selected) strong { color: #5b50c5; background: #f0eefe; }
.date-card:hover:not(:disabled) strong { color: #493ead; background: #e7e3fc; }
.date-card.selected strong, .date-card.selected:hover strong { color: #fff; background: #6558d9; box-shadow: 0 3px 8px rgba(101,88,217,.22); }
.slot { color: #5b50c5; border-color: #8f85df; }
.slot:hover:not(:disabled), .slot.selected { color: #fff; background: #6558d9; border-color: #6558d9; }
.timezone-row select { color: #5b50c5; }
.selected-meeting-summary, .confirmation-details { background: #faf8f5; border-color: #e3dfd8; }

.auth-shell { border-color: #ddd7ce; background: #fffefa; }
.auth-shell > div:first-child { background: #1d1b2f; }
.auth-shell > div:first-child .eyebrow { color: #b8b0ff; }
.demo-login { color: #5b50c5; background: #f0eefe; border-color: #d8d2fb; }

@media (max-width: 820px) {
  .app:not(.public-app) .sidebar { background: rgba(255,254,250,.98); border-top-color: #ddd8d0; }
  .app:not(.public-app) .nav button { color: #595568; }
  .app:not(.public-app) .nav button:hover { color: #242238; background: #f3f0eb; }
  .app:not(.public-app) .nav button.active { color: #5548c9; background: #f0eefe; }
}

@media (max-width: 560px) {
  .app:not(.public-app) .main { width: calc(100% - 28px); }
  .schedule-surface { margin-inline: -14px; }
  .public-booking-header { background: #fffefa; border-color: #e3dfd8; }
}

/* Integrated personal and company branding */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.brand-asset-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #fbfcfd;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
}
.asset-preview { display: grid; place-items: center; overflow: hidden; color: #607487; background: #eef3f7; border: 1px solid #d8e2ea; font-size: 11px; font-weight: 700; }
.asset-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview { width: 58px; height: 58px; border-radius: 50%; }
.photo-preview span { font-size: 19px; }
.logo-preview { width: 62px; height: 58px; padding: 7px; background: #fff; border-radius: 7px; }
.logo-preview img { object-fit: contain; }
.asset-copy { min-width: 0; }
.asset-copy strong, .asset-copy span { display: block; }
.asset-copy strong { color: #173f5f; font-size: 13px; }
.asset-copy span { margin-top: 4px; color: #6c7e8d; font-size: 11px; line-height: 1.4; }
.asset-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #e4ebf0; }
.asset-upload, .asset-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  color: #1265bf;
  background: #fff;
  border: 1px solid #b9cee2;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.asset-actions button { color: #6b7c8a; border-color: transparent; background: transparent; }
.asset-upload:hover { background: #eef6ff; }
.asset-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.brand-error { margin: 14px 0 0; }
.profile-fields { margin-top: 22px; padding-top: 22px; border-top: 1px solid #e4ebf0; }
.company-logo { display: block; width: auto; max-width: 122px; height: 30px; object-fit: contain; }
.public-booking-header .brand:has(.company-logo) .brand-mark { display: none; }
.public-booking-header .brand:has(.company-logo) span { color: #294c68; font-weight: 700; }
.public-app .avatar.large { display: grid; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 50%; background: #e7eff7; color: #294c68; }
.public-app .avatar.large img { width: 100%; height: 100%; object-fit: cover; }
.confirmation-logo { display: block; max-width: 150px; max-height: 44px; margin: 0 auto 24px; object-fit: contain; }

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

@media (max-width: 700px) {
  .public-app .avatar.large { grid-row: 1 / 3; align-self: center; width: 44px; height: 44px; margin: 0 13px 0 0; }
  .host-pane:has(.avatar.large) { grid-template-columns: 44px minmax(0, 1fr); }
  .host-pane .host-name { grid-column: 2; align-self: end; }
  .host-pane h1 { grid-column: 2; align-self: start; }
  .host-pane .detail-list { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .brand-asset-card { grid-template-columns: 54px minmax(0, 1fr); padding: 14px; }
  .photo-preview, .logo-preview { width: 52px; height: 52px; }
  .company-logo { max-width: 96px; height: 27px; }
  .public-booking-header .brand:has(.company-logo) span { display: none; }
}

/* Premium workspace pass — modeled on focused one-to-one scheduling products. */
:root {
  --ink: #0b3558;
  --muted: #5f7181;
  --line: #d8e2ea;
  --line-strong: #bdcbd6;
  --blue: #006bff;
  --blue-dark: #004eba;
  --blue-soft: #edf5ff;
}

body { background: #fafbfc; }
.app { grid-template-columns: 216px minmax(0, 1fr); background: #fafbfc; }
.sidebar { width: 216px; padding: 22px 12px 16px; border-color: #dfe5ea; }
.brand { color: #0b3558; font-size: 17px; }
.brand-mark { border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.nav button, .nav a, .logout-button { min-height: 40px; color: #243f54; border-radius: 6px; font-size: 13px; }
.nav button.active, .nav a.active { color: #006bff; background: #eef5ff; }
.profile-card { background: #fff; border-radius: 7px; }
.main { width: min(1180px, calc(100vw - 264px)); padding: 40px 0 80px; }
.topbar { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 30px; }
.topbar-description { margin-bottom: 0; font-size: 14px; }
.eyebrow { color: #7b8c9a; }
.primary { border-radius: 999px; padding: 0 18px; }
.panel, .event-card, .confirmation, .auth-panel { border-color: var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgba(14, 44, 67, .05); }
.section-actions { align-items: center; justify-content: space-between; margin: 24px 0 16px; }
.event-owner { display: flex; align-items: center; gap: 11px; min-width: 0; }
.event-owner .avatar { width: 36px; height: 36px; background: #e7eff7; color: #294c68; font-size: 13px; }
.event-owner strong, .event-owner span { display: block; }
.event-owner strong { color: #173f5f; font-size: 13px; }
.event-owner span { max-width: 440px; margin-top: 2px; color: #2672c9; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.event-card { display: grid; grid-template-columns: 1fr; grid-template-rows: 4px minmax(0, 1fr); min-height: 312px; background: #fff; }
.event-color { width: 100%; height: 4px; }
.event-body { display: flex; flex-direction: column; padding: 20px; }
.event-heading { align-items: flex-start; gap: 12px; }
.event-heading > div { min-width: 0; }
.event-body h2 { color: #173f5f; font-size: 16px; }
.event-heading p { display: -webkit-box; min-height: 42px; margin: 0; overflow: hidden; color: #6a7b89; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-meta { display: grid; gap: 8px; margin: 16px 0; color: #53697a; font-size: 12px; }
.event-meta span:last-child { color: #2672c9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-actions { align-items: center; gap: 6px; margin-top: auto; padding-top: 15px; border-top: 1px solid #e7edf2; }
.event-actions button, .event-action-link { min-height: 34px; padding: 0 9px; border: 0; border-radius: 5px; color: #1265bf; background: transparent; font-size: 12px; }
.event-actions button:hover, .event-action-link:hover { color: #004eba; background: #f0f6fc; }
.event-actions .danger-text { margin-left: auto; color: #9d3b3b !important; }
.switch span { width: 38px; height: 22px; }
.switch span::after { width: 16px; height: 16px; }
.switch input:checked + span::after { transform: translateX(16px); }
.panel { margin-top: 24px; }
.panel-header { padding-bottom: 18px; border-bottom: 1px solid #e7edf2; }
.panel-header p { margin-bottom: 0; font-size: 13px; }
.booking-row, .availability-row, .override-row { border-color: #e3eaf0; border-radius: 6px; }
.booking-row:hover, .availability-row:hover { border-color: #c3d0da; box-shadow: 0 2px 8px rgba(14,44,67,.05); }
.availability-row { padding: 16px; }
.override-form { margin-top: 18px; border-radius: 6px; }
.override-empty { border-radius: 6px; }
.editor-panel { position: relative; z-index: 2; }

/* Premium one-to-one booking surface */
.public-app { background: #f7f9fb; }
.public-app .main { width: min(980px, calc(100vw - 40px)); padding-top: 28px; }
.public-booking-header { max-width: 940px; margin-bottom: 18px; }
.public-booking-header > span { display: none; }
.public-app .brand-mark { width: 28px; height: 28px; }
.booking-shell { grid-template-columns: 290px minmax(0, 1fr); max-width: 940px; min-height: 590px; border-color: #d7e0e8; border-radius: 8px; box-shadow: 0 8px 26px rgba(25, 54, 78, .09); }
.host-pane { padding: 38px 30px; background: #fff; }
.public-app .avatar.large { display: none; }
.host-name { margin: 0 0 10px; color: #6a7b89; font-size: 13px; }
.host-pane select { min-height: 36px; margin-bottom: 18px; color: #314d63; border-color: #dfe6ec; box-shadow: none; font-size: 12px; }
.host-pane h1 { margin: 0; color: #183b56; font-size: 25px; }
.host-pane > p:not(.host-name) { color: #53697a; font-size: 13px; }
.detail-list { gap: 11px; color: #53697a; font-size: 12px; }
.detail-list svg { width: 16px; }
.booking-step-pane { padding: 38px 34px; }
.booking-step-title { margin-bottom: 24px; }
.booking-step-title h2 { color: #183b56; font-size: 21px; }
.step-label { display: none; }
.scheduler-grid { grid-template-columns: minmax(330px, 1fr) 190px; gap: 26px; }
.month-title { margin-bottom: 16px; color: #183b56; font-size: 13px; }
.month-title button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f3f7fb; }
.weekday-grid { color: #7a8d9d; font-size: 9px; }
.calendar-placeholder, .date-card { min-height: 40px; }
.date-card strong { width: 34px; height: 34px; color: #183b56; font-size: 12px; }
.date-card:disabled strong { color: #b2bec8; }
.date-card.available:not(.selected) strong { color: #006bff; background: #edf5ff; }
.date-card.available small { display: none; }
.date-card:hover:not(:disabled) strong { color: #0054c7; background: #dcecff; }
.date-card.selected strong, .date-card.selected:hover strong { color: #fff; background: #006bff; box-shadow: 0 3px 8px rgba(0,107,255,.22); }
.timezone-row { display: grid; grid-template-columns: 16px auto minmax(0,1fr); align-items: center; gap: 7px; margin-top: 18px; color: #53697a; font-size: 11px; }
.timezone-row select { min-height: 32px; padding: 0 28px 0 8px; border: 0; box-shadow: none; color: #1265bf; background-color: transparent; font-size: 11px; }
.time-pane { padding-left: 22px; }
.time-pane-heading { margin-bottom: 14px; color: #183b56; font-size: 12px; }
.slot-grid { gap: 7px; max-height: 416px; }
.slot { min-height: 42px; border-color: #6da6ef; border-radius: 3px; color: #006bff; background: #fff; font-size: 12px; }
.slot:hover:not(:disabled), .slot.selected { background: #006bff; }
.guest-pane { max-width: 500px; }
.guest-pane .step-label { display: block; }
.selected-meeting-summary { border-radius: 6px; }
.change-time { color: #1265bf; }

@media (max-width: 1080px) {
  .main { width: calc(100vw - 252px); }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-app .main { width: min(940px, calc(100vw - 32px)); }
}

@media (max-width: 820px) {
  .app:not(.public-app) .sidebar .nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .main { width: min(100% - 36px, 720px); }
  .topbar { padding-bottom: 22px; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .host-pane { border-right: 1px solid var(--line); border-bottom: 0; }
  .host-pane .detail-list { grid-template-columns: 1fr; }
  .scheduler-grid { grid-template-columns: minmax(300px, 1fr) 170px; gap: 18px; }
  .booking-step-pane { padding: 32px 26px; }
}

@media (max-width: 700px) {
  .public-app .main { width: 100%; padding: 0 0 30px; }
  .public-booking-header { padding: 14px 18px; }
  .booking-shell { grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
  .host-pane { display: grid; grid-template-columns: minmax(0, 1fr); padding: 22px 20px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .host-name { margin: 0 0 6px; }
  .host-pane select { display: none; }
  .host-pane h1 { margin: 0; font-size: 21px; }
  .host-pane > p:not(.host-name) { display: none; }
  .host-pane .detail-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; }
  .host-pane .detail-list span:nth-child(2), .host-pane .detail-list span:nth-child(4), .host-pane .detail-list span:nth-child(5) { display: none; }
  .booking-step-pane { padding: 26px 20px 32px; }
  .scheduler-grid { grid-template-columns: 1fr; gap: 22px; }
  .time-pane { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
}

@media (max-width: 640px) {
  .event-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 280px; }
  .section-actions { align-items: flex-end; gap: 12px; }
  .event-owner { min-width: 0; }
  .event-owner span { max-width: 170px; }
  .section-actions .primary { flex: none; padding: 0 13px; }
  .topbar .primary { border-radius: 7px; }
}

@media (max-width: 430px) {
  .app:not(.public-app) .sidebar .nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav button, .nav a { font-size: 9px; }
  .nav button svg, .nav a svg { width: 17px; height: 17px; }
  .topbar { gap: 14px; }
  .topbar .primary { width: auto; justify-self: start; }
  .event-owner .avatar { display: none; }
  .event-actions { gap: 2px; }
  .event-actions button, .event-action-link { padding: 0 6px; font-size: 11px; }
  .booking-step-pane { padding-inline: 18px; }
  .month-title { margin-bottom: 13px; }
  .calendar-placeholder, .date-card { min-height: 39px; }
  .date-card strong { width: 33px; height: 33px; }
  .timezone-row { grid-template-columns: 16px auto minmax(0, 1fr); }
}

/* Innovated Scheduling — original marketing and workspace system */
.marketing-app { display: block; min-height: 100vh; background: #f7f5f2; }
.marketing-app .sidebar { display: none; }
.marketing-app .main { width: 100%; max-width: none; padding: 0; }
.marketing-page { min-height: 100vh; color: #201d31; background: #f7f5f2; }
.marketing-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(1180px, calc(100% - 48px)); min-height: 78px; margin: 0 auto; border-bottom: 1px solid #dedad4; }
.marketing-brand { display: inline-flex; align-items: center; gap: 11px; color: #201d31; text-decoration: none; }
.marketing-brand strong { font-size: 15px; letter-spacing: -.02em; }
.marketing-nav nav { display: flex; gap: 28px; }
.marketing-nav nav a, .hero-actions a { color: #575165; font-size: 13px; font-weight: 650; text-decoration: none; }
.marketing-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.marketing-actions .text-button { min-height: 38px; padding: 0 12px; border: 0; color: #423d4e; background: transparent; }
.marketing-page .primary { min-height: 44px; padding-inline: 20px; border: 1px solid #5e47df; border-radius: 8px; background: #5e47df; box-shadow: none; }
.marketing-page .primary:hover { background: #4f3bc4; }
.marketing-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); align-items: center; gap: 76px; width: min(1180px, calc(100% - 48px)); min-height: 670px; margin: 0 auto; padding: 72px 0 86px; }
.marketing-kicker { margin: 0 0 20px; color: #5e47df; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-copy h1 { max-width: 640px; margin: 0; color: #201d31; font-size: clamp(44px, 5vw, 68px); font-weight: 710; line-height: .99; letter-spacing: -.055em; }
.hero-copy h1 em { color: #5e47df; font-style: normal; }
.hero-copy > p:not(.marketing-kicker):not(.hero-note) { max-width: 560px; margin: 28px 0 0; color: #665f70; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.hero-actions a { color: #282338; border-bottom: 1px solid #aaa3b1; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin: 22px 0 0; color: #7c7582; font-size: 12px; }
.hero-note svg { color: #5e47df; }
.hero-product { overflow: hidden; border: 1px solid #dad4cf; border-radius: 16px; background: #fff; box-shadow: 0 28px 70px rgba(48, 40, 67, .14); }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; border-bottom: 1px solid #ebe7e2; }
.preview-top > div { display: flex; align-items: center; gap: 10px; color: #29243a; font-size: 13px; }
.preview-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #211d34; font-size: 11px; }
.preview-status { color: #248269; font-size: 11px; font-weight: 700; }
.preview-status::before { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #35a987; content: ""; }
.preview-body { display: grid; grid-template-columns: minmax(0, 1fr) 156px; min-height: 330px; }
.preview-calendar { padding: 28px 26px; }
.preview-month { display: flex; justify-content: space-between; margin-bottom: 24px; color: #2d283d; font-size: 13px; }
.preview-month span { color: #98919f; }
.preview-weekdays, .preview-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.preview-weekdays { margin-bottom: 10px; color: #a099a6; font-size: 9px; font-weight: 800; }
.preview-days span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; color: #88818f; font-size: 11px; }
.preview-days span.available { color: #5e47df; background: #f0edff; font-weight: 800; }
.preview-days span.selected { color: #fff; background: #5e47df; font-weight: 800; }
.preview-times { display: flex; flex-direction: column; gap: 9px; padding: 30px 18px; border-left: 1px solid #ebe7e2; background: #fbfaf9; }
.preview-times > span { margin-bottom: 6px; color: #645d6c; font-size: 10px; }
.preview-times button { min-height: 42px; border: 1px solid #c5baf6; border-radius: 6px; color: #5e47df; background: #fff; font-size: 11px; font-weight: 750; }
.marketing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0 110px; border-top: 1px solid #dedad4; }
.marketing-features > div { padding-top: 24px; border-top: 2px solid #302a43; }
.marketing-features span { color: #8e8793; font-size: 11px; font-weight: 800; }
.marketing-features h2 { max-width: 300px; margin: 28px 0 14px; color: #262137; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.marketing-features p { margin: 0; color: #716a76; font-size: 14px; line-height: 1.7; }
.marketing-process { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; padding: 108px max(24px, calc((100vw - 1180px) / 2)); color: #fff; background: #211d34; }
.process-copy h2 { max-width: 420px; margin: 0; font-size: 46px; line-height: 1.05; letter-spacing: -.045em; }
.process-copy > p:last-child { color: #aaa4b7; }
.marketing-process ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.marketing-process li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid #454053; }
.marketing-process li > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #7168a5; border-radius: 50%; color: #bfb4ff; font-size: 12px; }
.marketing-process li strong { font-size: 18px; }
.marketing-process li p { margin: 8px 0 0; color: #aaa4b7; font-size: 13px; line-height: 1.6; }
.marketing-cta { padding: 118px 24px; text-align: center; }
.marketing-cta p { color: #5e47df; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.marketing-cta h2 { max-width: 690px; margin: 16px auto 30px; color: #241f34; font-size: 48px; line-height: 1.07; letter-spacing: -.045em; }
.marketing-footer { display: flex; justify-content: space-between; align-items: center; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0; border-top: 1px solid #dedad4; color: #7b7480; font-size: 12px; }
.marketing-footer nav { display: flex; align-items: center; gap: 22px; }
.marketing-footer nav a { color: #625b69; font-weight: 700; text-decoration: none; }
.marketing-footer nav a:hover { color: #5e47df; }
.marketing-trust { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0; border-bottom: 1px solid #dedad4; }
.marketing-trust h2 { max-width: 430px; margin: 0; color: #241f34; font-size: 46px; line-height: 1.05; letter-spacing: -.045em; }
.marketing-trust > div:last-child { padding-top: 30px; }
.marketing-trust > div:last-child p { max-width: 620px; margin: 0 0 17px; color: #6b6472; font-size: 15px; line-height: 1.7; }
.marketing-trust a { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: #5e47df; font-size: 13px; font-weight: 780; text-decoration: none; }
.legal-header { display: flex; justify-content: space-between; align-items: center; width: min(1180px, calc(100% - 48px)); min-height: 78px; margin: 0 auto; border-bottom: 1px solid #dedad4; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; color: #625b69; font-size: 12px; font-weight: 720; text-decoration: none; }
.legal-shell { width: min(1060px, calc(100% - 48px)); margin: 0 auto; padding: 92px 0 110px; }
.legal-hero { max-width: 760px; padding-bottom: 52px; }
.legal-hero h1 { margin: 0; color: #211d34; font-size: clamp(48px, 7vw, 76px); font-weight: 720; line-height: .98; letter-spacing: -.055em; }
.legal-hero > p:not(.marketing-kicker) { max-width: 630px; margin: 25px 0 14px; color: #6a6371; font-size: 18px; line-height: 1.55; }
.legal-hero time { color: #938c97; font-size: 12px; font-weight: 670; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 74px; }
.legal-layout > aside { position: sticky; top: 28px; padding: 24px; border: 1px solid #ded9e8; border-radius: 18px; background: rgba(255,255,255,.76); box-shadow: 0 14px 40px rgba(43,34,62,.06); }
.legal-layout > aside strong { color: #272138; font-size: 14px; }
.legal-layout > aside p { margin: 12px 0 0; color: #746d79; font-size: 12px; line-height: 1.6; }
.legal-layout > aside a { display: block; overflow-wrap: anywhere; margin-top: 18px; color: #5e47df; font-size: 11px; font-weight: 750; text-decoration: none; }
.legal-copy { min-width: 0; }
.legal-copy section { padding: 0 0 34px; border-bottom: 1px solid #e1ddd8; }
.legal-copy section + section { padding-top: 34px; }
.legal-copy h2 { margin: 0 0 14px; color: #282238; font-size: 21px; letter-spacing: -.025em; }
.legal-copy p, .legal-copy li { color: #69626e; font-size: 14px; line-height: 1.78; }
.legal-copy p { margin: 0; }
.legal-copy p + p { margin-top: 14px; }
.legal-copy ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.legal-copy a { color: #5e47df; font-weight: 670; }

.overview-layout { display: grid; gap: 18px; margin-top: 24px; }
.overview-layout .panel { margin: 0; padding: 0; }
.overview-events, .overview-calendar, .overview-upcoming { overflow: hidden; background: #fff; }
.overview-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; border-bottom: 1px solid #e8edf1; }
.overview-section-heading span { display: block; margin-bottom: 4px; color: #81909d; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.overview-section-heading h2 { margin: 0; color: #183b56; font-size: 17px; letter-spacing: -.02em; }
.overview-section-heading button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 3px; border: 0; color: #1166be; background: transparent; font-size: 12px; font-weight: 700; }
.overview-event-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.overview-event-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 84px; padding: 16px; border: 1px solid #e4e9ee; border-top: 3px solid; border-radius: 7px; }
.overview-event-card strong, .overview-event-card span { display: block; }
.overview-event-card strong { color: #173f5f; font-size: 13px; }
.overview-event-card span { margin-top: 6px; color: #748492; font-size: 11px; }
.overview-event-card a { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #166ac0; background: #f0f6fc; }
.overview-create-event { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 84px; border: 1px dashed #bdc9d3; border-radius: 7px; color: #456074; background: #fbfcfd; font-size: 12px; font-weight: 700; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 18px; }
.overview-calendar { padding-bottom: 20px !important; }
.overview-weekdays, .overview-days { display: grid; grid-template-columns: repeat(7, 1fr); padding-inline: 20px; }
.overview-weekdays { padding-top: 18px; color: #8a98a4; font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.overview-days { row-gap: 8px; padding-top: 10px; }
.overview-day { position: relative; display: grid; place-items: center; min-height: 50px; color: #385268; font-size: 12px; }
.overview-day strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.overview-day.today strong { color: #fff; background: #5e47df; }
.overview-day.booked:not(.today) strong { color: #1265bf; background: #edf5ff; }
.overview-day small { position: absolute; right: calc(50% - 20px); bottom: 4px; display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 8px; color: #fff; background: #23836a; font-size: 8px; }
.overview-upcoming { display: flex; flex-direction: column; min-height: 440px; }
.overview-upcoming .overview-section-heading > svg { color: #6c7f8e; }
.upcoming-list { display: grid; padding: 4px 20px; }
.upcoming-item { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid #edf0f3; }
.upcoming-item time { display: grid; place-items: center; width: 40px; height: 46px; border-radius: 6px; color: #173f5f; background: #f0f4f7; }
.upcoming-item time strong { font-size: 15px; line-height: 1; }
.upcoming-item time span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.upcoming-item div strong, .upcoming-item div span { display: block; }
.upcoming-item div strong { color: #173f5f; font-size: 12px; }
.upcoming-item div span { margin-top: 5px; color: #718290; font-size: 10px; }
.overview-empty { display: grid; place-items: center; margin: auto; padding: 40px 30px; color: #768693; text-align: center; }
.overview-empty svg { margin-bottom: 14px; color: #5e47df; }
.overview-empty strong { color: #294c68; font-size: 13px; }
.overview-empty p { max-width: 230px; margin: 8px 0 0; font-size: 11px; line-height: 1.55; }
.overview-upcoming-link { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-top: auto; padding: 0 20px; border: 0; border-top: 1px solid #edf0f3; color: #1265bf; background: #fbfcfd; font-size: 11px; font-weight: 750; }
.overview-upcoming-link svg { transform: rotate(180deg); }

@media (max-width: 900px) {
  .marketing-hero { grid-template-columns: 1fr; gap: 52px; padding-top: 70px; }
  .hero-copy { max-width: 700px; }
  .hero-product { width: min(650px, 100%); }
  .marketing-process { gap: 50px; }
  .marketing-trust { gap: 50px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-upcoming { min-height: 0; }
}

@media (max-width: 820px) {
  .app:not(.public-app):not(.marketing-app) .sidebar .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app:not(.public-app):not(.marketing-app) .nav .nav-events { display: none; }
  .marketing-nav { grid-template-columns: 1fr auto; }
  .marketing-nav nav { display: none; }
  .marketing-features { grid-template-columns: 1fr; gap: 34px; }
  .marketing-process { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .marketing-nav { width: calc(100% - 32px); min-height: 68px; }
  .marketing-brand strong { font-size: 13px; }
  .marketing-actions .text-button { display: none; }
  .marketing-actions .primary { min-height: 38px; padding-inline: 13px; font-size: 11px; }
  .marketing-hero { width: calc(100% - 32px); min-height: auto; padding: 58px 0 70px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-copy > p:not(.marketing-kicker):not(.hero-note) { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-calendar { padding: 24px 18px; }
  .preview-times { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px; border-top: 1px solid #ebe7e2; border-left: 0; }
  .preview-times > span { grid-column: 1 / -1; }
  .marketing-features { width: calc(100% - 32px); padding: 68px 0 78px; }
  .marketing-process { padding-block: 78px; }
  .marketing-trust { grid-template-columns: 1fr; gap: 10px; width: calc(100% - 32px); padding: 72px 0; }
  .process-copy h2, .marketing-cta h2, .marketing-trust h2 { font-size: 38px; }
  .marketing-cta { padding: 82px 20px; }
  .marketing-footer { align-items: flex-start; flex-direction: column; gap: 16px; width: calc(100% - 32px); }
  .marketing-footer nav { gap: 18px; }
  .legal-header { width: calc(100% - 32px); min-height: 68px; }
  .legal-shell { width: calc(100% - 32px); padding: 62px 0 78px; }
  .legal-hero { padding-bottom: 42px; }
  .legal-hero h1 { font-size: 48px; }
  .legal-hero > p:not(.marketing-kicker) { font-size: 16px; }
  .legal-layout { grid-template-columns: 1fr; gap: 42px; }
  .legal-layout > aside { position: static; }
  .overview-event-row { grid-template-columns: 1fr; }
  .overview-section-heading { padding: 18px; }
  .overview-section-heading button { font-size: 0; }
  .overview-section-heading button svg { width: 18px; height: 18px; }
  .overview-weekdays, .overview-days { padding-inline: 10px; }
  .overview-day { min-height: 42px; }
}

/* Mobile-native refinement — compact, deliberate, and touch-first. */
@media (max-width: 620px) {
  body { background: #f7f8fa; }

  .app:not(.public-app):not(.marketing-app) { display: block; min-height: 100dvh; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .app:not(.public-app):not(.marketing-app) .main { width: 100%; max-width: none; padding: 24px 14px 36px; }
  .app:not(.public-app):not(.marketing-app) .topbar { display: block; padding: 0 2px 18px; }
  .app:not(.public-app):not(.marketing-app) .topbar .eyebrow { display: none; }
  .app:not(.public-app):not(.marketing-app) .topbar h1 { font-size: 25px; line-height: 1.08; letter-spacing: -.035em; }
  .app:not(.public-app):not(.marketing-app) .topbar-description { max-width: 320px; margin-top: 8px; font-size: 13px; line-height: 1.5; }
  .app:not(.public-app):not(.marketing-app) .sidebar { height: calc(66px + env(safe-area-inset-bottom)); padding: 6px 7px env(safe-area-inset-bottom); border-top: 1px solid #e1e4e8; background: rgba(255,255,255,.96); box-shadow: 0 -8px 24px rgba(28,37,49,.06); backdrop-filter: blur(18px); }
  .app:not(.public-app):not(.marketing-app) .sidebar .nav { gap: 3px; }
  .app:not(.public-app):not(.marketing-app) .nav button,
  .app:not(.public-app):not(.marketing-app) .nav a { min-height: 54px; gap: 3px; padding: 5px 2px; border: 0; border-radius: 9px; font-size: 9px; font-weight: 750; }
  .app:not(.public-app):not(.marketing-app) .nav button.active,
  .app:not(.public-app):not(.marketing-app) .nav a.active { color: #5e47df; background: #f0edff; box-shadow: none; outline: none; }
  .app:not(.public-app):not(.marketing-app) .nav button svg,
  .app:not(.public-app):not(.marketing-app) .nav a svg { width: 18px; height: 18px; }

  .overview-layout { gap: 14px; margin-top: 18px; }
  .overview-layout .panel { border-radius: 12px; box-shadow: 0 1px 2px rgba(19,34,51,.04); }
  .overview-section-heading { padding: 16px 17px; }
  .overview-section-heading h2 { font-size: 16px; }
  .overview-event-row { gap: 10px; padding: 12px; }
  .overview-event-card, .overview-create-event { min-height: 72px; padding: 13px 14px; }
  .overview-weekdays { padding-top: 14px; font-size: 8px; }
  .overview-days { row-gap: 2px; padding-top: 7px; padding-bottom: 2px; }
  .overview-day { min-height: 39px; }
  .overview-day strong { width: 31px; height: 31px; font-size: 11px; }
  .overview-day small { right: calc(50% - 18px); bottom: 1px; }

  .panel { border-radius: 12px; }
  .panel-header { padding-bottom: 15px; }
  .availability-layout { gap: 14px; margin-top: 18px; }
  .availability-panel { padding: 0; }
  .availability-panel .panel-header { padding: 18px 16px 14px; }
  .availability-row { min-height: 50px; padding: 8px 2px; border-width: 0 0 1px; border-radius: 0; }
  .availability-row:last-child { border-bottom: 0; }
  .availability-row strong { font-size: 10px; letter-spacing: .06em; }
  .availability-row input[type="time"] { min-width: 0; min-height: 38px; padding: 0 8px; font-size: 11px; }
  .override-form { padding: 14px; }

  .auth-shell { display: block; min-height: auto; margin: 0; border: 0; background: #fff; }
  .auth-shell > div:first-child { min-height: 0; padding: 28px 24px 24px; border-radius: 0; }
  .auth-shell > div:first-child .eyebrow { margin-bottom: 10px; font-size: 9px; }
  .auth-shell > div:first-child h1 { max-width: 290px; margin: 0; font-size: 29px; line-height: 1.04; }
  .auth-shell > div:first-child > p:last-child { display: none; }
  .auth-shell .auth-panel { margin: 0; padding: 24px 22px 30px; }
  .auth-panel .tabs { margin-bottom: 24px; }

  .public-app { background: #fff; }
  .public-app .main { width: 100%; padding: 0 0 28px; }
  .public-booking-header { min-height: 58px; margin: 0; padding: 13px 17px; border-bottom: 1px solid #e8ebef; background: #fff; }
  .public-booking-header .brand { font-size: 13px; }
  .public-booking-header .brand-mark { width: 26px; height: 26px; }
  .booking-shell { min-height: 0; border: 0; border-radius: 0; background: #fff; }
  .host-pane { padding: 20px 18px 17px; background: #fafbfc; }
  .host-name { color: #71808d; font-size: 11px; }
  .host-pane h1 { font-size: 20px; }
  .host-pane .detail-list { gap: 7px 15px; margin-top: 11px; font-size: 11px; }
  .booking-step-pane { padding: 22px 16px 30px; }
  .booking-step-title { margin-bottom: 18px; }
  .booking-step-title h2 { font-size: 20px; letter-spacing: -.025em; }
  .booking-step-title > p:last-child { font-size: 11px; }
  .scheduler-grid { gap: 18px; }
  .calendar-pane { padding: 0; }
  .month-title { margin-bottom: 12px; }
  .month-title button { width: 32px; height: 32px; }
  .weekday-grid { font-size: 8px; }
  .calendar-placeholder, .date-card { min-height: 38px; }
  .date-card strong { width: 32px; height: 32px; font-size: 11px; }
  .timezone-row { margin-top: 12px; padding: 9px 10px; border-radius: 7px; background: #f6f8fa; }
  .time-pane { padding-top: 17px; }
  .time-pane-heading { margin-bottom: 10px; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .slot { min-height: 44px; border-radius: 7px; font-size: 12px; }
  .guest-pane { max-width: none; }

  .marketing-nav { min-height: 64px; }
  .marketing-nav .brand-mark { width: 28px; height: 28px; }
  .marketing-nav .marketing-brand strong { max-width: 150px; font-size: 12px; }
  .marketing-hero { gap: 38px; padding: 48px 0 58px; }
  .marketing-kicker { margin-bottom: 14px; font-size: 9px; letter-spacing: .14em; }
  .hero-copy h1 { max-width: 350px; font-size: clamp(39px, 11.5vw, 46px); line-height: .98; }
  .hero-copy > p:not(.marketing-kicker):not(.hero-note) { margin-top: 22px; font-size: 15px; line-height: 1.58; }
  .hero-actions { margin-top: 26px; }
  .hero-note { margin-top: 18px; font-size: 10px; }
  .hero-product { border-radius: 12px; box-shadow: 0 18px 44px rgba(48,40,67,.12); }
  .preview-top { padding: 14px 15px; }
  .preview-calendar { padding: 21px 15px; }
  .preview-times { padding: 14px; }
  .preview-times button { min-height: 38px; }
  .marketing-features { gap: 26px; padding: 56px 0 66px; }
  .marketing-features > div { padding-top: 18px; }
  .marketing-features h2 { margin: 18px 0 10px; font-size: 22px; }
  .marketing-process { gap: 34px; padding-block: 66px; }
  .process-copy h2, .marketing-cta h2 { font-size: 34px; }
  .marketing-process li { padding: 21px 0; }
  .marketing-cta { padding: 70px 20px; }
}

@media (max-width: 380px) {
  .marketing-actions .primary { padding-inline: 11px; }
  .marketing-actions .primary { font-size: 10px; }
  .hero-copy h1 { font-size: 38px; }
  .preview-times { grid-template-columns: 1fr; }
  .preview-times > span { grid-column: auto; }
  .booking-step-pane { padding-inline: 14px; }
  .availability-row { grid-template-columns: 66px minmax(0, 1fr); }
}

/* Slotly-depth application shell, expressed in the Innovated Scheduling system. */
.mobile-appbar, .sidebar-close, .sidebar-scrim { display: none; }
.people-header, .activity-header { align-items: center; }
.quick-contact-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e8edf1; background: #fbfcfd; }
.quick-contact-form label { margin: 0; }
.quick-contact-form input { min-height: 42px; }
.contact-list { display: grid; }
.contact-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 90px 145px; align-items: center; gap: 14px; min-height: 78px; padding: 14px 22px; border-bottom: 1px solid #edf0f3; }
.contact-row:last-child { border-bottom: 0; }
.contact-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #5741cd; background: #eeeaff; font-size: 13px; font-weight: 800; }
.contact-row > div:nth-child(2) strong, .contact-row > div:nth-child(2) span { display: block; }
.contact-row > div:nth-child(2) strong { color: #183b56; font-size: 13px; }
.contact-row > div:nth-child(2) span { margin-top: 4px; color: #758593; font-size: 11px; }
.contact-meta { text-align: right; }
.contact-meta strong, .contact-meta span { display: block; }
.contact-meta strong { color: #314f65; font-size: 12px; }
.contact-meta span { margin-top: 3px; color: #8a97a2; font-size: 9px; text-transform: uppercase; }
.people-empty .primary { margin-top: 10px; }
.activity-filters { display: flex; gap: 7px; padding: 14px 22px; border-bottom: 1px solid #e8edf1; overflow-x: auto; }
.activity-filters button { flex: none; min-height: 34px; padding: 0 13px; border: 1px solid #dce3e9; border-radius: 999px; color: #5c6f7f; background: #fff; font-size: 10px; font-weight: 750; }
.activity-filters button.active { color: #5b43d7; border-color: #c8befa; background: #f1eeff; }
.activity-header > button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid #dce3e9; border-radius: 7px; color: #4f3bc4; background: #fff; font-size: 11px; font-weight: 750; }
.activity-list { display: grid; }
.activity-row { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #edf0f3; }
.activity-row.unread { background: #faf9ff; }
.activity-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #5e47df; background: #eeeaff; }
.activity-icon.cancellation { color: #b64e55; background: #fff0f1; }
.activity-icon.system { color: #248269; background: #eaf9f4; }
.activity-row strong { color: #183b56; font-size: 13px; }
.activity-row p { margin: 5px 0; color: #617584; font-size: 11px; line-height: 1.5; }
.activity-row span { color: #909ca5; font-size: 9px; }
.activity-row small { padding: 4px 7px; border-radius: 10px; color: #fff; background: #5e47df; font-size: 8px; font-weight: 800; text-transform: uppercase; }

@media (max-width: 820px) {
  .app:not(.public-app):not(.marketing-app) { padding-bottom: 0; }
  .mobile-appbar { position: sticky; top: 0; z-index: 55; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 58px; padding: 8px 12px; border-bottom: 1px solid #e4e7eb; background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
  .mobile-appbar > button:first-child { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #e1e5e9; border-radius: 10px; color: #29495f; background: #fff; }
  .mobile-appbar strong { overflow: hidden; color: #1b2630; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-appbar .mobile-new { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 13px; border: 0; border-radius: 10px; color: #fff; background: #5e47df; font-size: 11px; font-weight: 800; }
  .sidebar-scrim { position: fixed; z-index: 79; inset: 0; display: block; border: 0; background: rgba(14,18,29,.46); backdrop-filter: blur(2px); }
  .app:not(.public-app):not(.marketing-app) .sidebar { z-index: 80; top: 0; bottom: auto; left: 0; display: flex; flex-direction: column; width: min(286px, 84vw); height: 100dvh; padding: 22px 14px 18px; border: 0; border-right: 1px solid #e4e6ea; background: #fff; box-shadow: 18px 0 50px rgba(18,24,38,.18); transform: translateX(-104%); transition: transform .22s ease; }
  .app:not(.public-app):not(.marketing-app) .sidebar { align-items: stretch; flex-wrap: nowrap; gap: 0; }
  .app:not(.public-app):not(.marketing-app) .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-close { position: absolute; top: 18px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; color: #647381; background: #f4f6f8; }
  .app:not(.public-app):not(.marketing-app) .sidebar .brand { display: flex; margin: 0 42px 24px 2px; padding: 0; }
  .app:not(.public-app):not(.marketing-app) .sidebar .nav { display: grid; flex: 1 1 auto; grid-template-columns: 1fr !important; align-content: start; width: 100%; height: auto; min-height: 0; gap: 4px; overflow: auto; }
  .app:not(.public-app):not(.marketing-app) .nav .nav-events { display: flex !important; }
  .app:not(.public-app):not(.marketing-app) .nav button,
  .app:not(.public-app):not(.marketing-app) .nav a { position: relative; display: flex; flex-direction: row; justify-content: flex-start; gap: 11px; min-height: 44px; padding: 0 12px; border-radius: 9px; color: #405568; font-size: 12px; }
  .app:not(.public-app):not(.marketing-app) .nav button.active,
  .app:not(.public-app):not(.marketing-app) .nav a.active { color: #5b43d7; background: #f0edff; }
  .app:not(.public-app):not(.marketing-app) .nav-count { position: static; margin-left: auto; }
  .app:not(.public-app):not(.marketing-app) .profile-card { display: flex; flex: none; margin-top: auto; }
  .app:not(.public-app):not(.marketing-app) .logout-button { display: flex; flex: none; margin-top: 8px; }
  .app:not(.public-app):not(.marketing-app) .main { padding-top: 22px; }
  .editor-panel { position: fixed; z-index: 100; inset: 10px; max-height: calc(100dvh - 20px); margin: 0; padding: 20px 18px; overflow-y: auto; border-radius: 16px; box-shadow: 0 24px 80px rgba(20,26,38,.26); }
  .quick-contact-form { grid-template-columns: 1fr; padding: 16px; }
  .contact-row { grid-template-columns: 38px minmax(0, 1fr) 58px; gap: 10px; padding: 14px 16px; }
  .contact-last { display: none; }
  .contact-avatar { width: 36px; height: 36px; }
  .activity-filters { padding-inline: 16px; }
  .activity-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; padding: 16px; }
  .activity-icon { width: 36px; height: 36px; }
}

@media (max-width: 520px) {
  .people-header, .activity-header { align-items: flex-start; }
  .people-header .primary { min-height: 38px; padding-inline: 12px; font-size: 0; }
  .people-header .primary svg { margin: 0; }
  .activity-header > button { font-size: 0; }
  .activity-header > button .count-pill { font-size: 9px; }
  .contact-row > div:nth-child(2) span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Soft geometry pass — align the product's radius language with Slotly's warmth. */
:root {
  --radius-surface: 24px;
  --radius-card: 20px;
  --radius-control: 14px;
}

.app:not(.public-app):not(.marketing-app) .panel,
.app:not(.public-app):not(.marketing-app) .event-card,
.app:not(.public-app):not(.marketing-app) .schedule-column,
.app:not(.public-app):not(.marketing-app) .confirmation,
.app:not(.public-app):not(.marketing-app) .auth-panel {
  border-radius: var(--radius-surface);
  box-shadow: 0 4px 18px rgba(25, 34, 48, .055);
}

.overview-event-card,
.overview-create-event,
.booking-row,
.override-row,
.override-empty,
.brand-asset-card,
.quick-contact-form,
.selected-meeting-summary,
.confirmation-details,
.empty-state {
  border-radius: var(--radius-card);
}

.overview-event-card a,
.event-actions button,
.event-action-link,
.icon-button,
.month-title button,
.activity-header > button,
.demo-login,
.timezone-row,
.slot,
input,
select,
textarea {
  border-radius: var(--radius-control);
}

.primary,
.marketing-page .primary,
.form-actions button,
.mobile-appbar .mobile-new {
  border-radius: 16px;
}

.profile-card { border-radius: 18px; }
.booking-date, .upcoming-item time { border-radius: 14px; }
.event-card .event-color { border-radius: 24px 24px 0 0; }
.hero-product, .auth-shell { border-radius: 28px; }
.booking-shell { border-radius: 28px; }
.preview-times button { border-radius: 12px; }

@media (max-width: 820px) {
  .app:not(.public-app):not(.marketing-app) .sidebar {
    border-radius: 0 28px 28px 0;
  }
  .mobile-appbar > button:first-child,
  .sidebar-close {
    border-radius: 14px;
  }
  .app:not(.public-app):not(.marketing-app) .nav button,
  .app:not(.public-app):not(.marketing-app) .nav a {
    border-radius: 15px;
  }
  .app:not(.public-app):not(.marketing-app) .panel,
  .app:not(.public-app):not(.marketing-app) .event-card,
  .app:not(.public-app):not(.marketing-app) .schedule-column {
    border-radius: 22px;
  }
  .editor-panel {
    inset: 8px;
    max-height: calc(100dvh - 16px);
    border-radius: 26px;
  }
  .overview-event-card,
  .overview-create-event,
  .booking-row,
  .override-row,
  .override-empty,
  .brand-asset-card,
  .empty-state {
    border-radius: 18px;
  }
  .public-app .booking-shell,
  .auth-shell {
    border-radius: 0;
  }
  .public-app .slot,
  .public-app .timezone-row,
  .public-app input,
  .public-app select,
  .public-app textarea {
    border-radius: 14px;
  }
  .marketing-page .hero-product { border-radius: 24px; }
}

/* iOS PWA surface — compact, tactile, and distinctly Innovated Scheduling. */
:root {
  --ios-purple: #5f49df;
  --ios-purple-dark: #4d36d2;
  --ios-purple-soft: #efecff;
  --ios-canvas: #f2f2f7;
  --ios-card: rgba(255, 255, 255, .94);
  --ios-line: #dddde8;
  --ios-label: #17152a;
  --ios-secondary: #77768a;
  --ios-shadow: 0 12px 32px rgba(44, 38, 78, .07);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
}

html { min-height: 100%; background: var(--ios-canvas); overscroll-behavior-y: none; }
body { min-height: 100%; color: var(--ios-label); background: var(--ios-canvas); -webkit-tap-highlight-color: transparent; }
button, a, label, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }

.app:not(.public-app):not(.marketing-app) { background: var(--ios-canvas); }
.app:not(.public-app):not(.marketing-app) .sidebar { background: rgba(255, 255, 255, .92); border-color: var(--ios-line); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); }
.app:not(.public-app):not(.marketing-app) .main { color: var(--ios-label); }
.app:not(.public-app):not(.marketing-app) .topbar { border-color: rgba(210, 210, 222, .84); }
.app:not(.public-app):not(.marketing-app) .topbar h1,
.app:not(.public-app):not(.marketing-app) .panel h2,
.app:not(.public-app):not(.marketing-app) .event-card h2 { color: var(--ios-label); letter-spacing: -.035em; }
.app:not(.public-app):not(.marketing-app) .topbar-description,
.app:not(.public-app):not(.marketing-app) .panel-header p { color: var(--ios-secondary); }

.app:not(.public-app):not(.marketing-app) .panel,
.app:not(.public-app):not(.marketing-app) .event-card,
.app:not(.public-app):not(.marketing-app) .schedule-column {
  background: var(--ios-card);
  border: 1px solid var(--ios-line);
  border-radius: 24px;
  box-shadow: var(--ios-shadow);
}

.app:not(.public-app):not(.marketing-app) .primary,
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s ease, color .18s ease, box-shadow .18s ease;
}
.app:not(.public-app):not(.marketing-app) .primary { color: #fff; background: linear-gradient(180deg, #6c57e9, var(--ios-purple)); box-shadow: 0 5px 14px rgba(95,73,223,.22); }
.save-button { color: var(--ios-purple-dark); background: var(--ios-purple-soft); border-color: #d6cffb; }
.save-button.unsaved { color: #fff; background: var(--ios-purple); border-color: var(--ios-purple); box-shadow: 0 5px 14px rgba(95,73,223,.2); }
.save-button.saved { color: #137a59; background: #e8f7f1; border-color: #c9ecde; animation: ios-saved-pop .32s cubic-bezier(.2,.9,.3,1); }
.save-button.error { color: #a53c47; background: #fff0f1; border-color: #f2cfd3; }
.save-button:disabled { opacity: .72; }
.save-button.idle:disabled { cursor: default; color: #8a8796; background: #f2f1f5; border-color: #e4e2e9; box-shadow: none; }
.save-button.saving:disabled { cursor: wait; }
.save-spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ios-spin .7s linear infinite; }
.section-action-buttons { display: flex; align-items: center; gap: 9px; }
.section-save-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ios-line); }
.section-save-footer > span { color: var(--ios-secondary); font-size: 12px; }
.schedule-column-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.schedule-column-header .save-button { min-height: 36px; padding-inline: 13px; font-size: 10px; }
.schedule-surface { gap: 18px; overflow: visible; background: transparent; border: 0; }
.schedule-column + .schedule-column { border-left: 1px solid var(--ios-line); }

.mobile-tabbar { display: none; }
.editor-scrim { position: fixed; z-index: 94; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(22, 20, 36, .42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: ios-scrim-in .2s ease both; }
.event-editor { z-index: 95; }

.onboarding-layer { display: none; }

.dashboard-screen { animation: ios-screen-in .36s cubic-bezier(.2,.78,.2,1) both; }
.dashboard-screen .panel,
.dashboard-screen .event-card,
.dashboard-screen .schedule-column { animation: ios-card-in .42s cubic-bezier(.2,.78,.2,1) both; }
.dashboard-screen .event-card:nth-child(2),
.dashboard-screen .schedule-column:nth-child(2) { animation-delay: .045s; }
.dashboard-screen .event-card:nth-child(3) { animation-delay: .09s; }
.app:not(.public-app):not(.marketing-app) button:active,
.app:not(.public-app):not(.marketing-app) a:active { transform: scale(.965); }
.switch span, .switch span::after { transition: transform .24s cubic-bezier(.34,1.45,.64,1), background .2s ease, border-color .2s ease; }
.schedule-row { transition: background .2s ease; }
.day-check { transition: transform .18s cubic-bezier(.2,.9,.3,1), background .18s ease, border-color .18s ease; }
.schedule-row.enabled .day-check { background: var(--ios-purple); border-color: var(--ios-purple); transform: scale(1.04); }

@keyframes ios-screen-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes ios-card-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ios-sheet-up { from { opacity: 0; transform: translateY(42px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ios-coach-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ios-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ios-spin { to { transform: rotate(360deg); } }
@keyframes ios-saved-pop { 50% { transform: scale(1.045); } }

@media (max-width: 820px) {
  body { background: var(--ios-canvas); }
  .app:not(.public-app):not(.marketing-app) { display: block; min-height: 100dvh; padding: 0 0 env(safe-area-inset-bottom); }
  .mobile-appbar {
    top: 0;
    min-height: calc(58px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
    border-color: rgba(210,210,222,.78);
    background: rgba(248,248,251,.82);
    backdrop-filter: saturate(190%) blur(22px);
    -webkit-backdrop-filter: saturate(190%) blur(22px);
  }
  .mobile-appbar.touring { z-index: 180; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-appbar > button:first-child { width: 42px; height: 42px; color: var(--ios-label); border-color: #dedee8; border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 4px 14px rgba(30,27,50,.08); }
  .mobile-appbar > button:first-child.tour-anchor { width: 54px; height: 54px; margin: -6px; border: 7px solid rgba(255,255,255,.85); border-radius: 20px; box-shadow: 0 7px 22px rgba(25,22,44,.2); }
  .mobile-appbar strong { color: var(--ios-label); font-size: 15px; font-weight: 760; letter-spacing: -.02em; }
  .mobile-appbar .mobile-new { min-height: 40px; padding-inline: 15px; border-radius: 14px; background: var(--ios-purple); box-shadow: 0 4px 14px rgba(95,73,223,.23); }

  .app:not(.public-app):not(.marketing-app) .main { width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 14px 26px; }
  .app:not(.public-app):not(.marketing-app) .topbar { gap: 10px; margin: 0 3px 18px; padding: 0 2px 17px; }
  .app:not(.public-app):not(.marketing-app) .topbar .eyebrow { display: none; }
  .app:not(.public-app):not(.marketing-app) .topbar h1 { font-size: clamp(29px, 8vw, 36px); line-height: 1.04; }
  .app:not(.public-app):not(.marketing-app) .topbar-description { max-width: 330px; margin-top: 7px; font-size: 13px; line-height: 1.45; }
  .app:not(.public-app):not(.marketing-app) .topbar > .primary { min-height: 40px; border-radius: 14px; }

  .app:not(.public-app):not(.marketing-app) .sidebar { border-radius: 0 30px 30px 0; box-shadow: 24px 0 60px rgba(27,24,45,.18); transition: transform .32s cubic-bezier(.25,.85,.25,1); }
  .app:not(.public-app):not(.marketing-app) .sidebar .nav button,
  .app:not(.public-app):not(.marketing-app) .sidebar .nav a { min-height: 48px; border-radius: 16px; font-size: 13px; }
  .app:not(.public-app):not(.marketing-app) .sidebar .nav button.active,
  .app:not(.public-app):not(.marketing-app) .sidebar .nav a.active { color: var(--ios-purple); background: var(--ios-purple-soft); }
  .sidebar-scrim { z-index: 78; background: rgba(30,28,42,.42); animation: ios-scrim-in .2s ease both; }

  .section-actions { align-items: center; gap: 12px; margin: 14px 2px 13px; }
  .section-action-buttons { margin-left: auto; }
  .section-action-buttons .save-button span,
  .section-action-buttons .primary { white-space: nowrap; }
  .section-action-buttons .save-button { width: 42px; min-height: 42px; padding: 0; }
  .section-action-buttons .save-button > span:not(.save-spinner) { display: none; }

  .app:not(.public-app):not(.marketing-app) .panel,
  .app:not(.public-app):not(.marketing-app) .event-card,
  .app:not(.public-app):not(.marketing-app) .schedule-column { border-radius: 23px; }
  .event-grid { gap: 13px; }
  .event-card { min-height: 0; overflow: hidden; }
  .event-body { min-height: 250px; padding: 19px; }
  .event-heading p { min-height: 0; margin-top: 6px; }
  .event-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
  .event-meta span { padding: 6px 9px; border: 1px solid #e5e3ef; border-radius: 999px; background: #f8f7fb; }
  .event-meta span:last-child { flex-basis: 100%; color: #6453c8; border: 0; background: transparent; }
  .event-actions { flex-wrap: wrap; gap: 5px; padding-top: 13px; }
  .event-actions button, .event-action-link { flex: 0 0 auto; min-height: 36px; padding-inline: 10px; border-radius: 12px; color: var(--ios-purple-dark); background: #f4f2fd; }
  .event-actions .danger-text { margin-left: auto; background: #fff3f4; }

  .schedule-surface { grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
  .schedule-column { padding: 18px 16px; }
  .schedule-column + .schedule-column { border-top: 1px solid var(--ios-line); border-left: 1px solid var(--ios-line); }
  .schedule-column-header { align-items: center; min-height: 0; padding-bottom: 16px; }
  .schedule-column-header h2 { color: var(--ios-label); font-size: 18px; letter-spacing: -.025em; }
  .schedule-column-header p { max-width: 230px; font-size: 11px; line-height: 1.4; }
  .schedule-column-header .save-button { width: 38px; min-height: 38px; padding: 0; }
  .schedule-column-header .save-button > span:not(.save-spinner) { display: none; }
  .schedule-row { grid-template-columns: 82px minmax(0, 1fr); min-height: 62px; }
  .schedule-time-range { gap: 5px; }
  .schedule-time-range input { min-height: 40px; padding: 0 7px; border-color: #d8d7e1; border-radius: 11px; background: #fff; font-size: 11px; text-align: center; }
  .day-control strong { color: #3d3b50; font-size: 11px; }
  .day-check { width: 20px; height: 20px; flex-basis: 20px; border-radius: 6px; }
  .range-editor input, .range-editor select { min-height: 46px; border-color: #d8d7e1; border-radius: 13px; background-color: #fff; }
  .range-editor .primary { min-height: 44px; border-radius: 999px; }
  .schedule-surface .override-empty { border-radius: 17px; background: #f7f6fa; }

  .profile-editor { position: static !important; inset: auto !important; z-index: auto; max-height: none !important; margin-top: 0; padding: 18px 16px 22px !important; overflow: visible !important; box-shadow: var(--ios-shadow) !important; }
  .profile-editor .panel-header { align-items: center; }
  .profile-editor .panel-header .save-button { min-height: 38px; padding-inline: 12px; }
  .profile-editor .panel-header .save-button span { display: none; }
  .profile-editor .brand-assets { grid-template-columns: 1fr; }
  .section-save-footer { position: sticky; z-index: 8; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 22px -4px -10px; padding: 10px; border: 1px solid rgba(215,212,232,.9); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 8px 28px rgba(36,31,66,.1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .section-save-footer > span { display: none; }
  .section-save-footer .save-button { width: 100%; }

  .event-editor { position: fixed !important; z-index: 101 !important; inset: auto 8px 8px !important; width: auto; max-height: min(88dvh, 760px) !important; margin: 0 !important; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)) !important; overflow-y: auto !important; border-radius: 28px !important; box-shadow: 0 24px 80px rgba(20,18,38,.28) !important; animation: ios-sheet-up .34s cubic-bezier(.2,.85,.2,1) both; }
  .event-editor::before { content: ""; display: block; width: 38px; height: 5px; margin: -7px auto 15px; border-radius: 999px; background: #d4d2dd; }
  .event-editor .form-actions { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); margin: 22px -18px calc(-18px - env(safe-area-inset-bottom)); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); border-top: .5px solid var(--ios-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .editor-scrim { z-index: 100; }

  .onboarding-layer { position: fixed; z-index: 160; inset: 0; display: block; pointer-events: none; }
  .onboarding-scrim { position: absolute; inset: 0; background: rgba(47,48,62,.43); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); animation: ios-scrim-in .2s ease both; }
  .coachmark { position: absolute; top: calc(env(safe-area-inset-top) + 70px); right: 10px; left: 94px; pointer-events: auto; padding: 23px 22px 18px; border: 1px solid #cfc9fb; border-radius: 25px; color: var(--ios-label); background: rgba(255,255,255,.98); box-shadow: 0 18px 55px rgba(25,22,45,.22); animation: ios-coach-in .38s cubic-bezier(.2,.86,.2,1) both; }
  .coachmark::before { content: ""; position: absolute; top: 22px; left: -10px; width: 20px; height: 20px; background: #fff; border-bottom: 1px solid #cfc9fb; border-left: 1px solid #cfc9fb; transform: rotate(45deg); }
  .onboarding-layer.step-1 .coachmark,
  .onboarding-layer.step-2 .coachmark { top: calc(env(safe-area-inset-top) + 98px); right: 12px; left: 12px; }
  .onboarding-layer.step-1 .coachmark::before,
  .onboarding-layer.step-2 .coachmark::before { display: none; }
  .coachmark h2 { margin: 0 26px 10px 0; color: var(--ios-label); font-size: 19px; letter-spacing: -.03em; }
  .coachmark p { margin: 0; color: #5d5b70; font-size: 14px; line-height: 1.5; }
  .coachmark-close { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; color: #9a98a7; border: 0; border-radius: 50%; background: #f4f3f8; }
  .coachmark footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
  .coachmark footer strong { color: #67657c; font-size: 12px; }
  .coachmark footer div { display: flex; gap: 7px; }
  .coachmark footer button { min-height: 38px; padding: 0 13px; border: 1px solid #e2e0e9; border-radius: 999px; color: #6d6a7d; background: #fff; font-size: 12px; font-weight: 750; }
  .coachmark footer button:disabled { opacity: .38; }
  .coachmark footer .primary { color: #fff; border-color: var(--ios-purple); background: var(--ios-purple); box-shadow: none; }
}

@media (max-width: 390px) {
  .app:not(.public-app):not(.marketing-app) .main { padding-inline: 10px; }
  .section-action-buttons { gap: 6px; }
  .section-action-buttons .primary { padding-inline: 12px; font-size: 11px; }
  .schedule-column { padding-inline: 12px; }
  .schedule-row { grid-template-columns: 74px minmax(0, 1fr); }
  .schedule-time-range input { padding-inline: 3px; font-size: 10px; }
  .coachmark { left: 82px; padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Calendar integrations */
.sidebar-integration-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 10px 0 12px;
  padding: 10px;
  color: #e9e7f5;
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}
.sidebar-integration-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #c9c2ff; border-radius: 10px; background: rgba(113,100,232,.22); }
.sidebar-integration-card > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.sidebar-integration-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-integration-card small { overflow: hidden; color: #aaa6bb; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.integrations-layout { display: grid; gap: 16px; }
.integration-intro { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 22px 24px; }
.integration-intro-icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--ios-purple); border-radius: 17px; background: var(--ios-purple-soft); }
.integration-intro h2, .integration-card h2 { margin: 0; color: var(--ios-label); font-size: 18px; letter-spacing: -.025em; }
.integration-intro p, .integration-card p { margin: 5px 0 0; color: var(--ios-secondary); font-size: 12px; line-height: 1.5; }
.integration-message { display: flex; align-items: center; gap: 9px; padding: 12px 15px; color: #28745c; border: 1px solid #cbe8dc; border-radius: 15px; background: #eef9f4; font-size: 12px; }
.integration-message button { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; padding: 0; color: inherit; border: 0; border-radius: 50%; background: rgba(255,255,255,.7); }
.integration-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.integration-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 21px; overflow: hidden; }
.integration-card.connected { border-color: #d5d0f3; box-shadow: 0 12px 32px rgba(65,55,120,.09); }
.provider-mark { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; border-radius: 16px; font-size: 20px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.provider-mark.google { background: linear-gradient(135deg, #4285f4 0 45%, #34a853 45% 65%, #fbbc05 65% 82%, #ea4335 82%); }
.provider-mark.microsoft { background: linear-gradient(135deg, #f35325 0 48%, #81bc06 48% 52%, #05a6f0 52% 78%, #ffba08 78%); }
.integration-card-copy { min-width: 0; }
.integration-card-title { display: flex; align-items: center; gap: 8px; }
.integration-card-title span { display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px; color: #147457; border-radius: 999px; background: #e6f6ef; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.integration-card-copy p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.integration-action a, .integration-action button { min-height: 38px; padding: 0 14px; border: 1px solid #dedbe8; border-radius: 999px; color: var(--ios-purple-dark); background: #fff; font-size: 11px; font-weight: 760; }
.integration-action a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.integration-action button:disabled { cursor: default; color: #9996a4; background: #f6f5f8; }
.integration-options { grid-column: 1 / -1; display: grid; gap: 0; margin: 4px -21px -21px; border-top: 1px solid var(--ios-line); background: #fbfafc; }
.integration-options label { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 15px; min-height: 70px; padding: 12px 21px; cursor: pointer; }
.integration-options label + label { border-top: 1px solid var(--ios-line); }
.integration-options label > span { display: grid; gap: 3px; }
.integration-options strong { color: #363348; font-size: 12px; }
.integration-options small { color: #7a7788; font-size: 10px; line-height: 1.4; }
.integration-options input { position: absolute; opacity: 0; pointer-events: none; }
.integration-options i { position: relative; width: 42px; height: 25px; border-radius: 999px; background: #d8d6df; transition: background .2s ease; }
.integration-options i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(20,18,35,.22); transition: transform .24s cubic-bezier(.34,1.35,.64,1); }
.integration-options input:checked + i { background: var(--ios-purple); }
.integration-options input:checked + i::after { transform: translateX(17px); }
.integration-options label.disabled { cursor: default; opacity: .5; }
.integration-setup-note { grid-column: 1 / -1; margin: 10px 0 -3px !important; padding-top: 10px; border-top: 1px dashed #dedbe7; font-size: 10px !important; }
.integration-privacy { display: flex; align-items: flex-start; gap: 11px; padding: 4px 7px; color: #777484; }
.integration-privacy > div { display: grid; gap: 3px; }
.integration-privacy strong { color: #4d4a5c; font-size: 11px; }
.integration-privacy span { max-width: 680px; font-size: 10px; line-height: 1.45; }

@media (max-width: 820px) {
  .sidebar-integration-card { flex: 0 0 auto; color: #383449; border-color: #e4e1ed; background: #f7f5fc; }
  .sidebar-integration-card small { color: #777384; }
  .integration-intro { grid-template-columns: 48px minmax(0, 1fr); padding: 18px; }
  .integration-intro-icon { width: 48px; height: 48px; border-radius: 15px; }
  .integration-intro .save-button { grid-column: 1 / -1; width: 100%; }
  .integration-list { grid-template-columns: 1fr; }
  .integration-card { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 17px; border-radius: 23px; }
  .provider-mark { width: 44px; height: 44px; border-radius: 14px; font-size: 18px; }
  .integration-card h2 { font-size: 15px; }
  .integration-card-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .integration-action a, .integration-action button { min-height: 36px; padding-inline: 11px; }
  .integration-options { margin: 5px -17px -17px; }
  .integration-options label { padding-inline: 17px; }
}

/* Context-aware mobile workspace tour */
.mobile-appbar-actions { display: flex; align-items: center; gap: 7px; }
.mobile-help { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--ios-purple); border: 1px solid #dedbe9; border-radius: 13px; background: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(34,30,58,.07); font-size: 13px; font-weight: 850; }

@media (max-width: 820px) {
  .mobile-appbar { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .mobile-appbar-actions { position: relative; z-index: 2; }
  .mobile-appbar .mobile-help { display: grid; }
  .mobile-appbar .mobile-new { position: relative; }

  .tour-step-0 .mobile-appbar,
  .tour-step-3 .mobile-appbar { z-index: 180; border-color: transparent; background: rgba(56,55,68,.48); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
  .tour-step-0 .mobile-appbar strong,
  .tour-step-0 .mobile-appbar-actions,
  .tour-step-3 .mobile-appbar > button:first-child,
  .tour-step-3 .mobile-appbar strong,
  .tour-step-3 .mobile-help { opacity: .38; }
  .tour-step-0 .mobile-appbar > button:first-child,
  .tour-step-3 .mobile-new { z-index: 3; opacity: 1; }
  .tour-step-0 .mobile-appbar > button:first-child.tour-anchor,
  .tour-step-3 .mobile-new.tour-anchor { border: 7px solid rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(24,21,43,.22); transform: none; }
  .tour-step-0 .mobile-appbar > button:first-child.tour-anchor { width: 54px; height: 54px; margin: -6px; border-radius: 20px; }
  .tour-step-3 .mobile-new.tour-anchor { min-height: 54px; margin: -7px; padding-inline: 15px; border-radius: 20px; }

  .tour-step-2 .mobile-appbar { z-index: 180; margin: 10px 8px 0; border: 1px solid #d9d5f3; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 13px 35px rgba(27,24,49,.18); }

  .onboarding-layer.step-0 .coachmark { top: calc(env(safe-area-inset-top) + 72px); right: 8px; left: 64px; }
  .onboarding-layer.step-0 .coachmark::before { top: 20px; left: -10px; }

  .onboarding-layer.step-1 .coachmark { top: auto; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); left: 36px; }
  .onboarding-layer.step-1 .coachmark::before { display: block; top: -10px; right: 46%; left: auto; border: 0; border-top: 1px solid #cfc9fb; border-left: 1px solid #cfc9fb; }

  .onboarding-layer.step-2 .coachmark { top: calc(env(safe-area-inset-top) + 92px); right: 10px; left: 46px; }
  .onboarding-layer.step-2 .coachmark::before { display: block; top: -10px; right: 40px; left: auto; border: 0; border-top: 1px solid #cfc9fb; border-left: 1px solid #cfc9fb; }

  .onboarding-layer.step-3 .coachmark { top: calc(env(safe-area-inset-top) + 76px); right: 8px; left: 62px; }
  .onboarding-layer.step-3 .coachmark::before { top: -10px; right: 28px; left: auto; border: 0; border-top: 1px solid #cfc9fb; border-left: 1px solid #cfc9fb; }

  .onboarding-layer.step-4 .coachmark { top: auto; right: 34px; bottom: calc(18px + env(safe-area-inset-bottom)); left: 14px; }
  .onboarding-layer.step-4 .coachmark::before { top: -10px; right: 43%; left: auto; border: 0; border-top: 1px solid #cfc9fb; border-left: 1px solid #cfc9fb; }

  .tour-step-1 .overview-events,
  .tour-step-4 .overview-events { outline: 2px solid rgba(109,87,232,.32); outline-offset: 4px; }
}

@media (max-width: 390px) {
  .mobile-appbar { gap: 6px; padding-inline: 10px; }
  .mobile-appbar strong { font-size: 13px; }
  .mobile-appbar-actions { gap: 5px; }
  .mobile-help { width: 36px; height: 36px; }
  .mobile-appbar .mobile-new { padding-inline: 11px; }
  .onboarding-layer .coachmark { padding: 21px 18px 17px; }
  .onboarding-layer.step-0 .coachmark { left: 58px; }
  .onboarding-layer.step-2 .coachmark,
  .onboarding-layer.step-3 .coachmark { left: 32px; }
  .coachmark h2 { font-size: 18px; }
  .coachmark p { font-size: 13px; }
}
