:root {
  /* ===== Design system — palette "Mauve Bewil" ===== */
  --primary: #90417C;        /* Mauve Bewil (Primary) */
  --primary-dark: #6f3260;   /* Mauve foncé (hover / actif) */
  --primary-soft: #f3e8f0;   /* Mauve léger (fonds) */
  --secondary: #64748b;      /* Secondary (slate) */
  --secondary-soft: #eef1f5;
  --tertiary: #bc4800;       /* Tertiary (rouille) */
  --tertiary-soft: #f7e7dd;
  --neutral: #f8fafc;        /* Neutral (fond) */
  --surface: #ffffff;
  --ink: #0f172a;            /* texte principal */
  --muted: #64748b;          /* texte secondaire = Secondary */
  --line: #e2e8f0;           /* bordures */
  --inverted: #0f172a;       /* boutons/surfaces "Inverted" sombres */
  --danger: #dc2626;
  --warn: #9a6700;
  --warn-soft: #fff4d6;

  /* Alias hérités : les pages existantes adoptent la palette sans réécriture */
  --accent: var(--primary);
  --accent-dark: var(--primary-dark);
  --soft: var(--neutral);
  --soft-green: var(--primary-soft);
  --gold: var(--warn);
  --gold-soft: var(--warn-soft);
  --brand-blue: var(--primary);
  --brand-navy: var(--inverted);
  --brand-cyan: var(--primary);
  --brand-lime: var(--tertiary);
  --brand-violet: var(--secondary);

  --shadow: 0 18px 45px rgba(15,23,42,.08);
  --shadow-strong: 0 24px 70px rgba(15,23,42,.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(247,250,249,.96) 0%, rgba(238,244,242,.96) 100%),
    radial-gradient(circle at 80% 10%, rgba(144,65,124,.13), transparent 35%);
}
a { color: inherit; text-decoration: none; }
.topbar {
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { font-weight: 800; font-size: 1.05rem; }
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shell { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 56px; }
.hero {
  min-height: calc(100vh - 150px);
  display: grid;
  align-items: center;
  background: radial-gradient(circle at 80% 15%, rgba(144,65,124,.18), transparent 35%);
}
.hero h1 { max-width: 760px; font-size: clamp(2.4rem, 8vw, 5.8rem); line-height: .96; margin: 0; }
.lede { max-width: 620px; color: var(--muted); font-size: 1.18rem; line-height: 1.6; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.actions, .event-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button, button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--accent);
  color: white;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button:hover { background: var(--accent-dark); }
.button.ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.button.secondary { background: var(--secondary-soft); color: var(--ink); border: 1px solid var(--line); }
.button.secondary:hover { background: #e2e8f0; }
.button.inverted { background: var(--inverted); color: white; }
.button.inverted:hover { background: #1e293b; }
.button.tertiary { background: var(--tertiary); color: white; }
.button.tertiary:hover { background: #9e3d00; }
.button.small { padding: 8px 12px; font-size: .92rem; }

/* ===== App shell à sidebar (pages connectées) ===== */
.app-body { margin: 0; min-height: 100vh; background: var(--neutral); color: var(--ink); }
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  flex: 0 0 264px; width: 264px; background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px; padding: 18px 14px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; box-shadow: 0 6px 16px rgba(144,65,124,.30); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: .76rem; }
.sidebar-cta { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; border-radius: 11px; padding: 12px 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(144,65,124,.25); }
.sidebar-cta:hover { background: var(--primary-dark); }
.sidebar-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.sidebar-nav svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-nav a:hover { background: var(--neutral); color: var(--ink); }
.sidebar-nav a.active { background: var(--primary-soft); color: var(--primary); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar-user { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.user-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta strong { font-size: .9rem; }
.user-meta small { color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-logout { display: grid; place-items: center; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; width: 36px; height: 36px; cursor: pointer; padding: 0; }
.sidebar-logout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-logout:hover { color: var(--danger); border-color: var(--danger); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 12px clamp(18px, 3vw, 34px); background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-search { position: relative; flex: 1; max-width: 440px; display: flex; align-items: center; }
.topbar-search svg { position: absolute; left: 13px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.topbar-search input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px 0 40px; background: var(--neutral); color: var(--ink); }
.topbar-search input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill-warn { background: var(--warn-soft); color: var(--warn); border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.app-content { width: 100%; max-width: 1200px; padding: clamp(20px, 3vw, 34px); }
@media (max-width: 920px) {
  .app-layout { flex-direction: column; }
  .sidebar { position: static; height: auto; width: auto; flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; }
  .sidebar-brand { flex: 1; }
  .sidebar-cta { order: 4; flex: 1 1 100%; }
  .sidebar-nav { order: 5; flex-direction: row; flex-wrap: wrap; width: 100%; }
  .sidebar-nav a span { display: none; }
  .sidebar-foot { order: 3; margin: 0; border: 0; padding: 0; width: auto; }
  .user-meta { display: none; }
  .app-topbar { position: static; }
}

/* ===== Calendrier (grille semaine / jour / mois) ===== */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-steppers { display: flex; gap: 6px; }
.cal-step { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 1.25rem; background: var(--surface); line-height: 1; }
.cal-step:hover { background: var(--neutral); border-color: var(--primary); color: var(--primary); }
.cal-title { font-size: 1.35rem; margin: 0; text-transform: capitalize; }
.cal-views { display: inline-flex; background: var(--neutral); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.cal-views a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 650; font-size: .9rem; }
.cal-views a.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(15,23,42,.12); }

.cal-grid { display: grid; grid-template-columns: 62px 1fr; padding: 0; overflow: hidden; }
.cal-corner { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-head { display: grid; border-bottom: 1px solid var(--line); }
.cal-dhead { padding: 9px 6px; text-align: center; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.cal-dhead span { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; }
.cal-dhead strong { font-size: 1.05rem; }
.cal-dhead.today strong { color: #fff; background: var(--primary); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.cal-gutter { border-right: 1px solid var(--line); }
.cal-hour { height: var(--hour-h); position: relative; }
.cal-hour span { position: absolute; top: -8px; right: 8px; font-size: .72rem; color: var(--muted); }
.cal-canvas { display: grid; position: relative; }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line), var(--line) 1px, transparent 1px, transparent var(--hour-h)); }
.cal-col.today { background-color: var(--primary-soft); }
.cal-event { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 5px 8px; overflow: hidden; font-size: .78rem; line-height: 1.25; border-left: 3px solid var(--primary); background: var(--primary-soft); color: var(--ink); }
.cal-event b { display: block; color: var(--primary); font-size: .72rem; font-weight: 700; }
.cal-event span { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event.pending { border-left-color: var(--tertiary); background: var(--tertiary-soft); }
.cal-event.pending b { color: var(--tertiary); }

.cal-month { padding: 0; overflow: hidden; }
.cal-month-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.cal-month-head span { padding: 10px; text-align: center; font-size: .74rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cal-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-mcell { min-height: 110px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.cal-mcell:nth-child(7n+1) { border-left: 0; }
.cal-mcell.out { background: var(--neutral); }
.cal-mcell.out .mcell-num { color: var(--muted); }
.mcell-num { font-weight: 700; font-size: .85rem; align-self: flex-start; }
.cal-mcell.today .mcell-num { background: var(--primary); color: #fff; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; }
.cal-chip { font-size: .72rem; padding: 2px 6px; border-radius: 6px; background: var(--primary-soft); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip b { color: var(--primary); }
.cal-chip.pending { background: var(--tertiary-soft); }
.cal-chip.pending b { color: var(--tertiary); }
.cal-more { font-size: .7rem; color: var(--muted); font-weight: 600; }

.cal-list { margin-top: 18px; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-url-row { margin-bottom: 10px; }
.feed-url-input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--neutral); color: var(--ink); font-family: ui-monospace, monospace; font-size: .85rem; }

@media (max-width: 760px) {
  .cal-grid { grid-template-columns: 46px 1fr; }
  .cal-mcell { min-height: 84px; }
}
button:disabled { opacity: .55; cursor: not-allowed; }
.link-button { background: transparent; color: var(--ink); padding: 0; }
.danger { background: var(--danger); color: white; padding: 9px 12px; border-radius: 8px; }
.inline { display: inline; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; margin: 4px 0; }
h2 { font-size: 1.15rem; margin: 0 0 16px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}
.panel.narrow { max-width: 520px; margin: 0 auto; }
.center { text-align: center; }
.form { display: grid; gap: 14px; }
.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, .45fr) minmax(140px, .45fr) auto;
  gap: 12px;
  align-items: end;
}
.filters.compact {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .35fr) minmax(120px, .35fr) auto;
  margin-bottom: 18px;
}
label { display: grid; gap: 7px; font-weight: 700; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: white;
  min-height: 45px;
}
.alert { padding: 12px 14px; border-radius: 8px; margin: 0 0 18px; }
.alert.error { background: #fee4e2; color: #7a271a; }
.alert.success { background: #dcfae6; color: #085d3a; }
.muted { color: var(--muted); }
.share-link {
  overflow-wrap: anywhere;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px dashed var(--line);
}
.list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.list span { color: var(--muted); }
.calendar-list { display: grid; gap: 12px; }
.event {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}
.event.cancelled { border-left-color: var(--danger); opacity: .72; }
.event h2, .event p { margin: 4px 0; }
.date { color: var(--muted); font-weight: 700; }
.badge { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; font-size: .82rem; margin-top: 8px; }
.cancel-form { display: grid; grid-template-columns: minmax(160px, 1fr) auto; gap: 8px; }
.pagination { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
  border: 1px solid rgba(144,65,124,.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,246,242,.88)),
    radial-gradient(circle at 92% 8%, rgba(144,65,124,.18), transparent 32%);
  box-shadow: var(--shadow);
}
.dashboard-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  margin: 2px 0 14px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}
.status-pill.ok { background: #dcfae6; border-color: #abefc6; color: #067647; }
.status-pill.warn { background: var(--gold-soft); border-color: #fedf89; color: var(--gold); }
.status-pill.danger-pill { background: #fee4e2; border-color: #fecdca; color: #b42318; }
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.metric-tile {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: 0 12px 30px rgba(23,32,38,.05);
}
.metric-tile span { color: var(--muted); font-weight: 800; font-size: .88rem; }
.metric-tile strong { display: block; margin-top: 12px; font-size: 2.35rem; line-height: 1; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr);
  gap: 18px;
  margin-bottom: 18px;
}
.dashboard-grid.split-wide { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-title h2 { margin-bottom: 0; }
.share-link.prominent {
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(180deg, #f8fbfb, #eef6f4);
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.quick-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--accent);
  font-weight: 800;
  background: white;
  text-align: center;
}
.check-list, .summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}
.check-list li > span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  margin-top: 3px;
  background: white;
}
.check-list li.done > span { border-color: var(--accent); background: var(--accent); }
.check-list strong, .check-list small { display: block; }
.check-list small { color: var(--muted); margin-top: 2px; }
.inline-action { margin-top: 18px; }
.appointment-stack { display: grid; gap: 10px; }
.appointment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.appointment-row strong, .appointment-row span { display: block; }
.appointment-row span { color: var(--muted); margin-top: 4px; }
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--soft);
  margin-bottom: 12px;
}
.empty-state h3 { margin: 0 0 6px; }
.empty-state p { margin: 0; color: var(--muted); }
.summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list li:last-child { border-bottom: 0; }
.summary-list span { color: var(--muted); font-weight: 700; }
.summary-list strong { font-size: 1.05rem; }
.scheduling-page {
  background: #fbfcff;
}
.floating-alert {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 20;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  box-shadow: 0 18px 44px rgba(13,43,76,.12);
}
.shell:has(.scheduling-app) {
  width: 100%;
  padding: 0;
}
.scheduling-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(340px, 31vw);
  background: #fbfcff;
}
.scheduling-rail {
  border-right: 1px solid #dbe6f2;
  background: white;
  padding: 18px 10px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  justify-items: center;
  gap: 22px;
}
.rail-brand,
.rail-action {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-blue);
  font-weight: 950;
  border: 1px solid #cfe0f5;
  background: #f6faff;
}
.rail-action {
  color: var(--brand-navy);
  background: white;
  font-size: 1.6rem;
  line-height: 1;
}
.scheduling-rail nav {
  display: grid;
  align-content: start;
  gap: 8px;
  width: 100%;
}
.scheduling-rail nav a {
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 8px;
  color: var(--brand-navy);
  font-size: .72rem;
  font-weight: 850;
  text-align: center;
}
.scheduling-rail nav a span {
  font-size: 1.25rem;
  line-height: 1;
}
.scheduling-rail nav a.active {
  background: #edf5ff;
  color: var(--brand-blue);
}
.rail-logout {
  width: 100%;
  display: grid;
  justify-items: center;
}
.rail-logout button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  background: white;
  color: var(--brand-navy);
  font-size: 1.2rem;
}
.scheduling-main {
  padding: clamp(22px, 3vw, 44px);
  display: grid;
  align-content: start;
  gap: 22px;
}
.scheduling-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.scheduling-toolbar h1 {
  margin: 4px 0 0;
  color: var(--brand-navy);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.05;
}
.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.scheduling-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #dbe6f2;
}
.scheduling-tabs a {
  padding: 0 0 14px;
  color: #607697;
  font-weight: 850;
  border-bottom: 4px solid transparent;
}
.scheduling-tabs a.active {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-blue);
}
.event-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.search-field {
  width: min(420px, 100%);
  color: transparent;
}
.search-field input {
  min-height: 48px;
  border-color: #bcd0e8;
  font-size: 1rem;
}
.owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-navy);
}
.owner-chip span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1ff;
  border: 1px solid #c8dcf7;
  font-weight: 900;
}
.event-type-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
  min-height: 118px;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(13,43,76,.06);
  overflow: hidden;
}
.event-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--brand-violet);
}
.event-select {
  align-self: start;
  margin: 26px 0 0 22px;
}
.event-select input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 6px;
}
.event-type-body {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 24px 0;
}
.event-type-body h2 {
  margin: 0 0 8px;
  color: var(--brand-navy);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}
.event-type-body p,
.event-type-body span {
  display: block;
  margin: 0;
  color: #607697;
  font-weight: 750;
  line-height: 1.45;
}
.event-type-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.event-type-actions a {
  color: var(--brand-blue);
  font-weight: 850;
}
.first-meeting-tip {
  justify-self: end;
  max-width: 430px;
  position: relative;
  margin-top: -92px;
  margin-right: 112px;
  padding: 24px 26px;
  border: 1px solid var(--brand-blue);
  border-radius: 8px;
  background: #f4f8ff;
  box-shadow: 0 18px 44px rgba(144,65,124,.12);
  color: var(--brand-navy);
}
.first-meeting-tip::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 52px;
  width: 26px;
  height: 26px;
  background: #f4f8ff;
  border-top: 1px solid var(--brand-blue);
  border-right: 1px solid var(--brand-blue);
  transform: rotate(45deg);
}
.first-meeting-tip button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: var(--brand-navy);
  font-size: 1.35rem;
}
.first-meeting-tip h2 {
  margin: 0 28px 10px 0;
  color: var(--brand-navy);
  font-size: 1.2rem;
}
.first-meeting-tip p {
  margin: 0 0 16px;
  color: #314766;
  line-height: 1.45;
}
.first-meeting-tip div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.first-meeting-tip a {
  color: var(--brand-blue);
  font-weight: 900;
}
.first-meeting-tip span {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #607697;
  font-weight: 750;
}
.dashboard-appointments {
  box-shadow: none;
}
.getting-started {
  border-left: 1px solid #dbe6f2;
  background: white;
  display: grid;
  align-content: start;
}
.getting-head {
  min-height: 86px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dbe6f2;
}
.getting-head h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}
.getting-head button {
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--brand-navy);
  background: transparent;
  font-size: 1.6rem;
}
.start-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #dbe6f2;
  color: var(--brand-navy);
}
.start-card strong,
.start-card small {
  display: block;
}
.start-card strong {
  font-size: 1rem;
  margin-bottom: 4px;
}
.start-card small {
  color: #607697;
  font-weight: 750;
}
.start-icon {
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #bdd3ec;
  border-radius: 16px;
  background: #f6faff;
  color: var(--brand-blue);
  font-weight: 900;
  font-size: 1.35rem;
}
.action-card {
  border: 0;
  text-align: left;
}
.action-card .button {
  grid-column: 2;
  justify-self: start;
  margin-top: 10px;
}
.hide-start {
  justify-self: center;
  margin: 28px;
  border-color: #93abc7;
  color: var(--brand-navy);
}
.booking-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.booking-host, .booking-confirm, .booking-step {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.booking-host {
  min-height: 620px;
  padding: 28px;
  position: sticky;
  top: 98px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(232,246,242,.9)),
    radial-gradient(circle at 80% 10%, rgba(144,65,124,.2), transparent 34%);
}
.host-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--accent);
  color: white;
  font-size: 1.45rem;
  font-weight: 900;
}
.booking-host h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  margin: 4px 0 12px;
}
.lede.small { font-size: 1rem; line-height: 1.55; }
.booking-facts {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.booking-facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(144,65,124,.16);
  padding-bottom: 12px;
}
.booking-facts span { color: var(--muted); font-weight: 700; text-align: right; }
.booking-workflow { display: grid; gap: 18px; }
.booking-step, .booking-confirm { padding: 24px; }
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.step-head > span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--soft-green);
  color: var(--accent);
  font-weight: 900;
  border: 1px solid rgba(144,65,124,.22);
}
.step-head h2 { margin: 0; }
.date-picker-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.slot-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.slot-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.slot-option span {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--accent);
  font-weight: 900;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.slot-option input:checked + span {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(144,65,124,.18);
}
.slot-option:hover span { border-color: var(--accent); }
.booking-confirm {
  position: sticky;
  top: 98px;
}
.booking-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
}
.privacy-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.empty-state.refined {
  background:
    linear-gradient(180deg, #fff, #f7faf9);
  padding: 26px;
}
.settings-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  margin-bottom: 18px;
  border: 1px solid rgba(144,65,124,.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(232,246,242,.88)),
    radial-gradient(circle at 90% 8%, rgba(144,65,124,.16), transparent 32%);
  box-shadow: var(--shadow);
}
.settings-hero h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.06;
  margin: 2px 0 10px;
  max-width: 850px;
}
.profile-hero h1 {
  font-size: clamp(2rem, 3vw, 2.85rem);
}
.settings-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.account-card {
  position: sticky;
  top: 98px;
}
.account-card h2 { margin: 0 0 4px; }
.account-card .host-avatar { margin-bottom: 18px; }
.status-row.stacked { margin-top: 18px; }
.account-summary { margin-top: 24px; }
.settings-editor {
  padding: 0;
  overflow: hidden;
}
.settings-editor > .panel-title {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.settings-editor .form {
  padding: 28px;
}
.settings-section {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.settings-section + .settings-section {
  padding-top: 24px;
}
.settings-section h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}
.settings-save {
  justify-self: start;
  margin-top: 8px;
  min-width: 230px;
}
.compact-strip .metric-tile { min-height: 92px; }
.compact-strip .metric-tile strong { font-size: 2rem; }
.availability-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.availability-form-panel {
  position: sticky;
  top: 98px;
}
.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.availability-main {
  display: grid;
  gap: 18px;
}
.week-schedule {
  display: grid;
  gap: 10px;
}
.day-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbfb);
}
.day-row.open {
  border-color: rgba(144,65,124,.28);
  background: linear-gradient(180deg, #fff, #f1faf7);
}
.day-name strong, .day-name span { display: block; }
.day-name span { color: var(--muted); margin-top: 3px; font-size: .9rem; }
.day-slots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 5px 5px 12px;
  border-radius: 999px;
  background: var(--soft-green);
  border: 1px solid rgba(144,65,124,.22);
  color: var(--accent);
  font-weight: 900;
}
.slot-chip button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  background: white;
  color: var(--accent);
  border: 1px solid rgba(144,65,124,.2);
  line-height: 1;
}
.closed-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
  border: 1px solid var(--line);
}
.exception-list {
  display: grid;
  gap: 10px;
}
.exception-row {
  display: grid;
  grid-template-columns: minmax(150px, .4fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.exception-row strong, .exception-row span { display: block; }
.exception-row span, .exception-row p { color: var(--muted); margin: 0; }
.calendar-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  margin-bottom: 18px;
  border: 1px solid rgba(144,65,124,.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(232,246,242,.88)),
    radial-gradient(circle at 90% 8%, rgba(144,65,124,.16), transparent 32%);
  box-shadow: var(--shadow);
}
.calendar-hero h1 {
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.06;
  margin: 2px 0 10px;
}
.calendar-board { padding: 0; overflow: hidden; }
.calendar-board > .panel-title {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.calendar-filters {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.calendar-timeline {
  display: grid;
}
.timeline-event {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(260px, .55fr);
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.timeline-event:last-child { border-bottom: 0; }
.timeline-event.cancelled { opacity: .72; }
.timeline-date {
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.timeline-event.cancelled .timeline-date { border-left-color: var(--danger); }
.timeline-date strong, .timeline-date span { display: block; }
.timeline-date strong { font-size: 1.25rem; }
.timeline-date span { color: var(--muted); margin-top: 4px; }
.timeline-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.timeline-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.timeline-body p { margin: 0; color: var(--muted); }
.timeline-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.calendar-empty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(180deg, #fff, #f8fbfb);
}
.calendar-empty h3 { margin: 4px 0 8px; }
.calendar-empty p { margin: 0; color: var(--muted); }
.onboarding-page {
  min-height: 100vh;
  background: #fbfcfe;
}
.onboarding-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 31vw);
}
.onboarding-main {
  padding: clamp(30px, 5vw, 64px) clamp(24px, 7vw, 116px);
  display: grid;
  align-content: start;
  gap: clamp(30px, 5vw, 62px);
}
.onboarding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.onboarding-brand {
  color: var(--brand-blue);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}
.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-navy);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.progress-track {
  width: 138px;
  height: 8px;
  border: 1px solid #c7d1dd;
  border-radius: 999px;
  overflow: hidden;
  background: white;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand-blue);
}
.onboarding-form {
  display: grid;
  gap: 28px;
  max-width: 900px;
}
.onboarding-copy h1 {
  max-width: 760px;
  margin: 6px 0 12px;
  color: var(--brand-navy);
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.08;
}
.onboarding-copy.compact h1 {
  max-width: 820px;
  font-size: clamp(1.85rem, 2.6vw, 2.75rem);
}
.section-intro h2 {
  margin: 0 0 8px;
  color: var(--brand-navy);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.section-intro p {
  margin: 0;
  color: var(--muted);
}
.choice-panel {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-strong);
}
.choice-grid {
  display: grid;
  gap: 14px;
}
.choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.choice-card {
  position: relative;
  display: block;
  min-height: 86px;
  font-weight: 700;
  cursor: pointer;
}
.choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-card span {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.choice-card strong {
  color: var(--brand-navy);
  font-size: 1.02rem;
}
.choice-card small {
  color: #5c7190;
  font-weight: 650;
  line-height: 1.4;
}
.choice-card:hover span,
.choice-card input:focus-visible + span {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(144,65,124,.12);
}
.choice-card input:checked + span {
  border-color: var(--brand-blue);
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px var(--brand-blue), 0 16px 30px rgba(144,65,124,.12);
}
.location-grid {
  align-items: stretch;
}
.location-card span {
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}
.location-card strong,
.location-card small {
  grid-column: 2;
}
.location-icon {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-blue);
  color: white;
  font-style: normal;
  font-weight: 900;
}
.location-icon.google_meet { background: linear-gradient(135deg, #4285f4, #34a853); }
.location-icon.teams { background: #635bff; }
.location-icon.in_person { background: var(--brand-navy); }
.location-icon.phone { background: var(--accent); }
.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.onboarding-actions.end {
  justify-content: flex-end;
}
.primary-wide {
  min-width: 190px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--brand-blue);
  box-shadow: 0 12px 24px rgba(144,65,124,.18);
}
.primary-wide:hover { background: #075bd4; }
.back-link {
  color: var(--brand-navy);
  font-weight: 850;
}
.connection-panel {
  display: grid;
  gap: 14px;
}
.integration-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  cursor: pointer;
}
.integration-row input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.integration-row:has(input:checked) {
  border-color: var(--brand-blue);
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px var(--brand-blue);
}
.integration-row strong,
.integration-row small {
  display: block;
}
.integration-row strong {
  color: var(--brand-navy);
  margin-bottom: 4px;
}
.integration-row small {
  color: #5c7190;
  font-weight: 650;
}
.integration-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
  color: white;
}
.google-mark { background: linear-gradient(135deg, #4285f4, #34a853 55%, #fbbc05); }
.outlook-mark { background: #90417C; }
.neutral-mark { background: #708198; }
.weekly-panel {
  display: grid;
  gap: 20px;
}
.week-selector {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.day-toggle {
  position: relative;
  display: block;
  cursor: pointer;
}
.day-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.day-toggle span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  color: var(--brand-navy);
  font-weight: 900;
}
.day-toggle input:checked + span {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: white;
}
.time-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}
.time-range > span {
  height: 2px;
  background: #9eb0c3;
  margin-bottom: 22px;
}
.onboarding-aside {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px;
  background: #edf5ff;
  border-left: 1px solid #dbe6f2;
}
.art-shape {
  position: absolute;
  pointer-events: none;
}
.shape-a {
  width: 260px;
  height: 210px;
  right: -60px;
  top: 12%;
  border: 7px solid var(--brand-lime);
  border-radius: 36% 64% 52% 48%;
}
.shape-b {
  width: 280px;
  height: 280px;
  right: -88px;
  bottom: 10%;
  background: var(--brand-violet);
  border-radius: 42% 58% 48% 52%;
}
.shape-c {
  width: 340px;
  height: 290px;
  left: -120px;
  bottom: -70px;
  background: var(--brand-navy);
  border-radius: 52% 48% 44% 56%;
}
.shape-d {
  width: 280px;
  height: 240px;
  right: -80px;
  top: -50px;
  background: var(--brand-violet);
  border-radius: 36% 64% 48% 52%;
}
.mini-calendar-card,
.mini-browser-card,
.booking-preview-card,
.meeting-booked-card,
.profile-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 58px rgba(13,43,76,.15);
}
.mini-calendar-card {
  padding: 26px;
}
.mini-card-head {
  display: grid;
  grid-template-columns: 36px 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
}
.mini-card-head span {
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0c6b3, #7f93aa);
}
.mini-card-head span + span {
  margin-left: -18px;
  background: linear-gradient(135deg, #192f4a, #8aa7d8);
}
.mini-card-head strong {
  color: var(--brand-navy);
  font-size: .9rem;
}
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.mini-calendar-grid span {
  height: 28px;
  display: grid;
  place-items: center;
  color: #8ba0bd;
  font-size: .78rem;
  font-weight: 800;
}
.mini-calendar-grid span.active {
  border-radius: 999px;
  background: #e3efff;
  color: var(--brand-blue);
}
.profile-stack {
  position: relative;
  width: min(100%, 430px);
  min-height: 430px;
}
.profile-card {
  position: absolute;
  width: 240px;
  padding: 26px;
}
.profile-card.one { right: 70px; top: 18px; }
.profile-card.two { right: 0; top: 160px; }
.profile-card.three { left: 26px; top: 285px; }
.profile-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--brand-navy);
  font-weight: 900;
}
.profile-card strong,
.profile-card small {
  display: block;
}
.profile-card strong {
  color: var(--brand-navy);
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.profile-card small {
  color: #5c7190;
  font-weight: 700;
}
.mini-browser-card {
  padding: 22px;
}
.browser-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #95b6d8;
}
.browser-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.browser-grid span {
  height: 42px;
  border-radius: 4px;
  background: #eef3f9;
}
.browser-grid .busy {
  background: var(--brand-blue);
}
.booking-preview-card {
  padding: 28px;
}
.booking-preview-card strong {
  display: block;
  text-align: center;
  color: var(--brand-navy);
  margin-bottom: 22px;
}
.preview-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}
.preview-days span {
  height: 34px;
  border-radius: 999px;
  background: #edf3fb;
}
.preview-days .selected {
  background: #d9eaff;
}
.preview-slots {
  display: grid;
  gap: 10px;
}
.preview-slots span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-blue);
  border-radius: 8px;
  color: var(--brand-blue);
  font-weight: 850;
}
.preview-slots .dark {
  background: var(--brand-navy);
  color: white;
  border-color: var(--brand-navy);
}
.meeting-booked-card {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  min-height: 360px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 34px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 58px rgba(13,43,76,.15);
  text-align: center;
}
.meeting-booked-card .host-photo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #a7f3d0);
  color: var(--brand-navy);
  font-weight: 900;
}
.meeting-booked-card strong {
  color: var(--brand-navy);
  font-size: 1.45rem;
}
.meeting-booked-card small {
  color: var(--brand-navy);
  font-weight: 900;
  text-transform: uppercase;
}
.meeting-booked-card p {
  margin: 0;
  color: #8ba0bd;
  font-weight: 750;
}
.location-pill-preview {
  width: 96px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand-blue);
}
.meeting-arrow {
  width: 34px;
  height: 34px;
  border-right: 3px solid var(--brand-blue);
  border-bottom: 3px solid var(--brand-blue);
  transform: rotate(45deg);
}
.video-tile {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #f8fbff;
  color: var(--brand-blue);
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(13,43,76,.14);
}
.admin-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-nav a { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: white; color: var(--accent); font-weight: 700; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.metric span { display: block; color: var(--muted); font-weight: 700; }
.metric strong { display: block; margin-top: 8px; font-size: 2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .86rem; }

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .grid.two { grid-template-columns: 1fr; }
  .scheduling-app { grid-template-columns: 1fr; }
  .scheduling-rail {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #dbe6f2;
  }
  .scheduling-rail nav {
    display: flex;
    min-width: max-content;
  }
  .scheduling-rail nav a {
    min-width: 86px;
  }
  .scheduling-main { padding: 18px 14px; }
  .scheduling-toolbar,
  .event-search-row,
  .event-type-body {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar-actions,
  .event-type-actions {
    justify-content: flex-start;
    white-space: normal;
    flex-wrap: wrap;
  }
  .scheduling-tabs {
    overflow-x: auto;
    gap: 22px;
  }
  .event-type-card { grid-template-columns: 1fr; }
  .event-select { margin: 18px 0 0 22px; }
  .event-type-body { padding: 0 20px 22px; }
  .first-meeting-tip {
    justify-self: stretch;
    max-width: none;
    margin: 0;
  }
  .first-meeting-tip::after { display: none; }
  .getting-started {
    border-left: 0;
    border-top: 1px solid #dbe6f2;
  }
  .metrics-grid, .metric-strip, .dashboard-grid, .dashboard-grid.split-wide { grid-template-columns: 1fr; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .hero-actions { justify-content: flex-start; }
  .quick-links { grid-template-columns: 1fr; }
  .appointment-row { grid-template-columns: 1fr; }
  .booking-shell { grid-template-columns: 1fr; }
  .booking-host, .booking-confirm { min-height: 0; position: static; }
  .date-picker-row, .slot-grid { grid-template-columns: 1fr; }
  .settings-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .settings-layout { grid-template-columns: 1fr; }
  .account-card { position: static; }
  .settings-editor .form, .settings-editor > .panel-title { padding: 20px; }
  .calendar-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .calendar-board > .panel-title, .timeline-body, .calendar-empty { align-items: flex-start; flex-direction: column; }
  .calendar-filters, .timeline-event { grid-template-columns: 1fr; }
  .timeline-actions { justify-content: flex-start; }
  .availability-layout, .day-row, .exception-row { grid-template-columns: 1fr; }
  .availability-form-panel { position: static; }
  .inline-fields { grid-template-columns: 1fr; }
  .day-slots { justify-content: flex-start; }
  .onboarding-shell { grid-template-columns: 1fr; }
  .onboarding-main { padding: 24px 16px 36px; }
  .onboarding-top { align-items: flex-start; flex-direction: column; }
  .onboarding-aside { display: none; }
  .choice-grid.two, .choice-grid.three, .time-range, .week-selector { grid-template-columns: 1fr; }
  .time-range > span { display: none; }
  .onboarding-actions { align-items: stretch; flex-direction: column-reverse; }
  .onboarding-actions.end { align-items: stretch; }
  .primary-wide { width: 100%; }
  .page-head, .event, .list li { align-items: stretch; flex-direction: column; }
  .cancel-form, .filters { grid-template-columns: 1fr; }
}

/* ===== Modernized Two-Column Calendar Layout & Topbar Icons ===== */
.calendar-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  width: 100%;
}

.calendar-internal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mini-calendar {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-cal-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: capitalize;
}

.mini-cal-nav {
  display: flex;
  gap: 4px;
}

.mini-cal-nav-btn {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  background: var(--surface);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mini-cal-nav-btn:hover {
  background: var(--neutral);
  border-color: var(--primary);
  color: var(--primary);
}

.mini-cal-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.mini-cal-weekday {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.mini-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mini-cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mini-cal-day:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.mini-cal-day.out {
  color: var(--muted);
  opacity: 0.45;
}

.mini-cal-day.today {
  border: 1.5px solid var(--primary);
  font-weight: 700;
}

.mini-cal-day.selected {
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
}

.calendar-filters {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.filters-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  user-select: none;
}

.filter-option input[type="checkbox"] {
  display: none;
}

.filter-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--line);
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.confirmed-filter .filter-box {
  border-color: var(--primary);
}

.confirmed-filter input:checked + .filter-box {
  background: var(--primary);
  border-color: var(--primary);
}

.pending-filter .filter-box {
  border-color: var(--tertiary);
}

.pending-filter input:checked + .filter-box {
  background: var(--tertiary);
  border-color: var(--tertiary);
}

.filter-box::after {
  content: '';
  position: absolute;
  display: none;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-option input:checked + .filter-box::after {
  display: block;
}

.filter-text {
  color: var(--ink);
}

.topbar-icon-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

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

.topbar-icon-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.calendar-main-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 920px) {
  .calendar-page-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== Calendly Booking Page Modern Styles ===== */
.booking-page-container {
  max-width: 1000px;
  margin: 20px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.booking-brand { display: inline-flex; align-items: center; line-height: 0; }
.booking-brand img { display: block; height: 26px; width: auto; }

.header-menu-container {
  display: flex;
  gap: 12px;
}

.header-menu-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 12px;
}

.header-copy-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-copy-btn:hover {
  background: var(--neutral);
  border-color: var(--primary);
  color: var(--primary);
}

.header-copy-btn svg {
  width: 14px;
  height: 14px;
}

.calendly-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(15,23,42,0.06);
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 560px;
  overflow: hidden;
}

/* Left side (Host details) */
.calendly-left {
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  position: relative;
}

.calendly-host-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.calendly-host-name {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.calendly-meeting-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 24px 0;
}

.calendly-meeting-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto;
}

.calendly-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.4;
}

.calendly-detail-item svg.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.calendly-detail-item.selected-time-badge {
  color: var(--primary);
  background: var(--primary-soft);
  padding: 8px 12px;
  border-radius: 8px;
}

.calendly-left-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendly-left-footer a {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.calendly-left-footer a:hover {
  text-decoration: underline;
}

/* Right side (Dynamic Picker / Form) */
.calendly-right {
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.calendly-screen {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.calendly-screen.hidden {
  display: none;
}

.calendly-right-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 24px 0;
}

.picker-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  flex: 1;
}

.picker-layout.no-date {
  grid-template-columns: 1fr;
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
}

.picker-layout.no-date .times-column {
  display: none;
}

.calendar-column {
  display: flex;
  flex-direction: column;
}

.booking-mini-calendar {
  width: 100%;
  margin-bottom: 24px;
}

.booking-mini-calendar .mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.booking-mini-calendar .mini-cal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.booking-mini-calendar .mini-cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.booking-mini-calendar .mini-cal-nav-btn:hover {
  background: var(--primary-soft);
}

.booking-mini-calendar .mini-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.booking-mini-calendar .mini-cal-weekday {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.booking-mini-calendar .mini-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.booking-mini-calendar .mini-cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: 50%;
  cursor: default;
  transition: all 0.2s ease;
  user-select: none;
}

.booking-mini-calendar .mini-cal-day.has-slots {
  background: var(--primary-soft);
  color: var(--primary);
  cursor: pointer;
}

.booking-mini-calendar .mini-cal-day.has-slots:hover {
  background: #c3dafe;
  color: var(--primary-dark);
}

.booking-mini-calendar .mini-cal-day.selected {
  background: var(--primary) !important;
  color: #fff !important;
}

.booking-mini-calendar .mini-cal-day.disabled {
  opacity: 0.35;
  font-weight: 500;
}

.timezone-section {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 650;
  margin-top: auto;
}

.timezone-section svg.icon {
  width: 16px;
  height: 16px;
}

.troubleshoot-container {
  margin-top: 14px;
}

.troubleshoot-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

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

.troubleshoot-btn svg.icon {
  width: 12px;
  height: 12px;
}

/* Times list Column */
.times-column {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
}

.times-date-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px 0;
  text-transform: capitalize;
}

.no-times-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.times-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 6px;
}

.time-option-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  transition: all 0.2s ease;
}

.time-option-row.active {
  grid-template-columns: 1fr 1fr;
}

.time-select-btn {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 14px;
  font-weight: 750;
  color: var(--primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-select-btn:hover {
  border-width: 2px;
  padding: 13px;
}

.time-option-row.active .time-select-btn {
  background: var(--muted);
  border-color: var(--muted);
  color: #fff;
}

.time-confirm-btn {
  background: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 14px;
  font-weight: 750;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: none;
  animation: slideInTime 0.2s forwards;
}

.time-option-row.active .time-confirm-btn {
  display: block;
}

@keyframes slideInTime {
  from { transform: translateX(10px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Back button */
.back-to-picker-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.back-to-picker-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.back-to-picker-btn svg.icon {
  width: 20px;
  height: 20px;
}

.form-header-spacing {
  margin-bottom: 28px;
}

.booking-details-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.booking-submit-btn {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.booking-submit-btn:hover {
  background: var(--primary-dark) !important;
}

.form-privacy-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 16px;
}

@media (max-width: 768px) {
  .calendly-card {
    grid-template-columns: 1fr;
  }
  .calendly-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .picker-layout {
    grid-template-columns: 1fr;
  }
  .times-column {
    border-left: none;
    padding-left: 0;
    margin-top: 24px;
  }
}

/* ===== Availability Redesign Styles (Calendly theme) ===== */
.availability-tabs-header {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding-bottom: 2px;
}

.availability-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 4px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.availability-tab-btn:hover {
  color: var(--primary);
  background: transparent;
}

.availability-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.availability-tab-panel.hidden {
  display: none !important;
}

.availability-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.column-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.status-badge {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.status-badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

/* Weekly row styles */
.weekly-hours-list {
  display: flex;
  flex-direction: column;
}

.weekly-day-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.day-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--inverted);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  user-select: none;
}

.inactive-day .day-circle {
  background: var(--neutral);
  border: 1px solid var(--line);
  color: var(--muted);
}

.day-slots-container {
  flex: 1;
  min-width: 0;
}

.day-slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.day-slot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--neutral);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
}

.slot-time-range {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.delete-slot-icon-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
  font-weight: 700;
  transition: color 0.2s ease;
}

.delete-slot-icon-btn:hover {
  color: var(--danger);
}

.day-status-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

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

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

.time-inputs-group input[type="time"] {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.82rem;
  min-height: 0;
  width: 92px;
}

.add-slot-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.add-slot-icon-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* Exceptions styles */
.exception-form-card {
  padding: 20px;
  margin-bottom: 24px;
}

.panel-subtitle {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px 0;
}

.list-header-spacing {
  margin-bottom: 12px;
}

.compact-empty {
  padding: 16px;
  font-size: 0.85rem;
}

.exceptions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.exception-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.exception-date {
  font-size: 0.9rem;
  color: var(--ink);
}

.exception-time {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.exception-reason {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Calendar & Advanced configuration views */
.panel-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.panel-description {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.settings-section-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

.calendar-sync-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.sync-row-meta, .calendar-add-section, .advanced-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.section-description {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.connected-calendar-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--neutral);
}

.calendar-card-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  user-select: none;
}

.calendar-brand-icon.google-color {
  background: #f3e8f0;
  color: #4285F4;
}

.calendar-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-brand-meta strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.calendar-brand-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.calendar-brand-meta .status-subtext {
  color: var(--primary);
  font-weight: 700;
}

.disconnect-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.select-wrapper select {
  max-width: 320px;
}

.calendar-checkboxes-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  min-height: 0;
}

.country-selector-group {
  margin-top: 16px;
}

.country-selector-group select {
  max-width: 240px;
}

.holidays-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--neutral);
  padding: 16px;
  max-height: 380px;
  overflow-y: auto;
}

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

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

.holiday-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.holiday-meta strong {
  font-size: 0.88rem;
  color: var(--ink);
}

.holiday-meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Toggle Switch */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--line);
  transition: .3s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--primary);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
}

@media (max-width: 920px) {
  .availability-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== Dashboard Redesign Styles ===== */
.dashboard-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 20px;
}

.hero-left-meta h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.hero-subtitle-subtext {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.hero-right-actions {
  display: flex;
  gap: 12px;
}

.dashboard-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.kpi-card-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.kpi-card-icon.blue-theme {
  background: #f3e8f0;
  color: #4285F4;
}

.kpi-card-icon.orange-theme {
  background: #FFF2E6;
  color: #FF8533;
}

.kpi-card-icon.green-theme {
  background: #E6F7ED;
  color: #00B341;
}

.kpi-card-value-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-card-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.kpi-card-trend-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.kpi-card-trend-label.positive {
  color: var(--primary);
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: start;
}

.column-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.grid-column-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.link-view-all {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.link-view-all:hover {
  text-decoration: underline;
}

/* Event type card */
.booking-event-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.event-card-border-stripe {
  width: 6px;
  background: var(--primary);
  align-self: stretch;
}

.event-card-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.event-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.event-card-menu-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.event-card-duration-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.event-card-url-subtext {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  word-break: break-all;
}

.event-card-actions-row {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

/* Filter card */
.dashboard-filter-card {
  padding: 16px;
  margin-bottom: 24px;
}

.dashboard-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-input-wrapper input {
  width: 100%;
}

.filter-selects-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filter-submit-btn {
  width: 100%;
}

/* Timeline stack */
.dashboard-timeline-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-row-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease;
}

.timeline-row-item:hover {
  transform: translateX(2px);
}

.timeline-time-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--neutral);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 90px;
  text-align: center;
  flex-shrink: 0;
}

.timeline-time-badge strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.timeline-time-badge span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.timeline-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.timeline-item-details .guest-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.timeline-item-details .guest-email {
  font-size: 0.82rem;
  color: var(--muted);
}

.timeline-item-details .location-subtext {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.timeline-item-status {
  flex-shrink: 0;
}

.status-pill.pending-pill {
  background: var(--neutral);
  color: var(--muted);
}

@media (max-width: 960px) {
  .dashboard-kpi-ribbon {
    grid-template-columns: 1fr;
  }
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
}

.timeline-meeting-btn-link {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.timeline-meeting-btn-link:hover {
  text-decoration: underline;
}

.day-label-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 130px;
  flex-shrink: 0;
}

.day-name-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.inactive-day .day-name-text {
  color: var(--muted);
}

/* ===================================================================
   Pages d'authentification — Bewil Calendar (style "Bewil app")
   =================================================================== */
.auth-body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fdf8fa;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

/* Bulles décoratives */
.auth-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.auth-bubbles .bubble { position: absolute; border-radius: 50%; }
.auth-bubbles .b1 { bottom: -160px; left: -140px; width: 600px; height: 600px;
  background: radial-gradient(circle, #f6c9e6 0%, #de77b6 60%, transparent 100%); opacity: .55; }
.auth-bubbles .b2 { top: -120px; left: 42%; width: 360px; height: 360px;
  background: radial-gradient(circle, #ddd6fe 0%, #c4b5fd 60%, transparent 100%); opacity: .5; }
.auth-bubbles .b3 { top: 34%; left: 24%; width: 190px; height: 190px;
  background: radial-gradient(circle, #fed7aa 0%, #fdba74 60%, transparent 100%); opacity: .35; }
.auth-bubbles .b4 { bottom: 4%; right: 6%; width: 360px; height: 360px;
  background: radial-gradient(circle, #ecd2e6 0%, #cf9dc4 60%, transparent 100%); opacity: .45; }

/* Illustration produit — aperçu honnête du sélecteur de créneau (aucune
   donnée ni utilisateur fictif : c'est une maquette de l'UI du produit) */
.auth-illus {
  margin-top: 36px;
  max-width: 320px;
  background: #fff;
  border: 1px solid rgba(241,245,249,.9);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 24px 48px -22px rgba(15,23,42,.28);
  animation: floaty 5s ease-in-out infinite;
}
.illus-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.illus-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: 0 0 10px; }
.illus-label { font-size: 13px; font-weight: 800; color: #1e293b; }
.illus-day { margin: 0 0 14px; padding-left: 20px; font-size: 12px; font-weight: 600; color: #94a3b8; }
.illus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.illus-slot {
  text-align: center; padding: 9px 0; font-size: 13px; font-weight: 700;
  border-radius: 10px; border: 1px solid #e9eef4; color: #475569; background: #f8fafc;
}
.illus-slot.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 16px -8px rgba(144,65,124,.55); }
.illus-slot.muted { color: #cbd5e1; }
.illus-cta {
  text-align: center; padding: 11px 0; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary); font-size: 13.5px; font-weight: 800;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* En-tête : lockup de marque */
.auth-top { position: relative; z-index: 2; text-align: center; padding: 38px 20px 0; }
.auth-logo { font-family: Georgia, "Times New Roman", serif; font-size: 30px; color: #1e293b; letter-spacing: -.5px; }
.auth-logo-tag {
  margin-left: 10px; font-size: 10px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--primary); vertical-align: middle;
}

/* Scène : hero éditorial + formulaire */
.auth-stage {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 64px; padding: 24px 28px 8px;
  max-width: 1180px; margin: 0 auto; width: 100%;
}
.auth-hero { flex: 1; max-width: 540px; }
.auth-hero h1 {
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  font-weight: 900; line-height: 1.04; letter-spacing: -1.5px;
  color: #1e293b; margin: 0;
}
.auth-hero h1 .accent { color: var(--primary); }
.auth-formwrap { width: 100%; max-width: 420px; flex-shrink: 0; }

/* Carte formulaire */
.auth-card {
  background: #fff;
  border: 1px solid rgba(241,245,249,.9);
  border-radius: 26px;
  padding: 34px 32px;
  box-shadow: 0 30px 60px -24px rgba(15,23,42,.28);
}
.auth-card-head { margin-bottom: 24px; }
.auth-card-head h2 { font-size: 24px; font-weight: 900; letter-spacing: -.4px; margin: 0 0 4px; color: #1e293b; }
.auth-card-head p { margin: 0; font-size: 13.5px; color: #94a3b8; font-weight: 500; }

/* Champs avec icônes */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-labelrow { display: flex; align-items: baseline; justify-content: space-between; }
.field-label { font-size: 12.5px; font-weight: 700; color: #334155; }
.field-link { font-size: 12.5px; font-weight: 700; color: var(--primary); text-decoration: none; }
.field-link:hover { text-decoration: underline; }
.field-control { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: #cbd5e1; pointer-events: none; }
.field-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #e9eef4;
  border-radius: 14px;
  padding: 0 14px 0 44px;
  font-size: 15px;
  background: #f8fafc;
  color: #1e293b;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field-input::placeholder { color: #94a3b8; }
.field-input:focus {
  outline: none; background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field-eye {
  position: absolute; right: 10px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  color: #94a3b8; border-radius: 8px;
}
.field-eye:hover { color: #475569; background: #f1f5f9; }
.field-hint { font-size: 11.5px; color: #94a3b8; }

/* Bouton */
.auth-button {
  margin-top: 4px; width: 100%;
  min-height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 14px;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(144,65,124,.55);
  transition: background .15s, transform .05s;
}
.auth-button:hover { background: var(--primary-dark); }
.auth-button:active { transform: translateY(1px); }

.auth-switch { margin: 20px 0 0; text-align: center; font-size: 13.5px; color: #64748b; font-weight: 500; }
.auth-switch a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-card .alert { margin: 0 0 18px; }

/* Pied de page */
.auth-foot {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px; font-size: 12px; font-weight: 600; color: #94a3b8;
}
.auth-foot a { color: #94a3b8; text-decoration: none; }
.auth-foot a:hover { color: #475569; }

/* Responsive : on masque hero + cartes, on centre le formulaire */
@media (max-width: 980px) {
  .auth-cards, .auth-hero { display: none; }
  .auth-stage { gap: 0; }
  .auth-formwrap { max-width: 440px; }
}

.auth-hero-sub { margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: #64748b; max-width: 430px; font-weight: 500; }

a.sidebar-user { text-decoration: none; color: inherit; border-radius: 10px; transition: background .12s; }
a.sidebar-user:hover { background: rgba(144, 65, 124, .07); }
