

  /* ─── THEME VARS ─── */
  :root {
    --tr: 0.25s;
    /* Shared status colors */
    --av-open: #4a9e6b;
    --av-limited: #c49234;
    --av-booked: #b8685a;
    --av-weekend: #8b8fa8;
    --av-holiday: #8b8fa8;
    --av-today: #d4836b;
  }

  /* ── DARK ── */
  [data-theme="dark"] {
    --bg: #151413;
    --bg-panel: #1a1918;
    --bg-card: #1e1d1b;
    --bg-card-hover: #252422;
    --bg-elevated: #1e1d1b;
    --text: rgba(230, 224, 216, 0.85);
    --text-dim: rgba(230, 224, 216, 0.42);
    --text-xdim: rgba(230, 224, 216, 0.2);
    --text-bright: rgba(230, 224, 216, 1);
    --fluo: #6bc87a;
    --fluo-dim: rgba(107,200,122,0.15);
    --fluo-bg: rgba(107,200,122,0.06);
    --salmon: #d4836b;
    --salmon-dim: rgba(212,131,107,0.15);
    --amber: #d4a84a;
    --amber-dim: rgba(212,168,74,0.12);
    --border: rgba(230, 224, 216, 0.08);
    --border-hover: rgba(230, 224, 216, 0.16);
    --shadow: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    /* Heatmap: sage → amber → coral */
    --hm0: rgba(107,200,122,0.18);
    --hm1: rgba(107,200,122,0.35);
    --hm2: rgba(170,190,80,0.38);
    --hm3: rgba(212,168,74,0.42);
    --hm4: rgba(212,131,107,0.48);
    --hm5: rgba(212,131,107,0.68);
    /* Weekend/holiday cells */
    --av-weekend-bg: rgba(139,143,168,0.08);
    --av-weekend-border: rgba(139,143,168,0.12);
    --av-weekend-text: rgba(139,143,168,0.5);
    /* Modal */
    --modal-bg: #1e1d1b;
    --modal-overlay: rgba(0,0,0,0.55);
    --modal-border: rgba(230,224,216,0.08);
    /* Slots */
    --slot-open-bg: rgba(107,200,122,0.08);
    --slot-open-border: rgba(107,200,122,0.22);
    --slot-open-bar: #6bc87a;
    --slot-limited-bg: rgba(212,168,74,0.08);
    --slot-limited-border: rgba(212,168,74,0.22);
    --slot-limited-bar: #d4a84a;
    --slot-booked-bg: rgba(212,131,107,0.06);
    --slot-booked-border: rgba(212,131,107,0.12);
    --slot-booked-bar: rgba(212,131,107,0.4);
    /* Button */
    --btn-bg: #d4836b;
    --btn-text: #fff;
  }

  /* ── LIGHT / DAYLIGHT ── */
  [data-theme="light"],
  [data-theme="daylight"] {
    --bg: #f5f2ee;
    --bg-panel: #f5f2ee;
    --bg-card: #edeae5;
    --bg-card-hover: #e5e2dc;
    --bg-elevated: #ffffff;
    --text: rgba(40, 36, 30, 0.82);
    --text-dim: rgba(40, 36, 30, 0.48);
    --text-xdim: rgba(40, 36, 30, 0.22);
    --text-bright: rgba(40, 36, 30, 1);
    --fluo: #3d8a4e;
    --fluo-dim: rgba(61,138,78,0.12);
    --fluo-bg: rgba(61,138,78,0.05);
    --salmon: #c0624e;
    --salmon-dim: rgba(192,98,78,0.1);
    --amber: #a87c2a;
    --amber-dim: rgba(168,124,42,0.08);
    --border: rgba(40, 36, 30, 0.1);
    --border-hover: rgba(40, 36, 30, 0.18);
    --shadow: 0 2px 12px rgba(40,36,30,0.06);
    --shadow-sm: 0 1px 4px rgba(40,36,30,0.04);
    /* Heatmap: sage → amber → coral (strong on warm grey) */
    --hm0: rgba(61,138,78,0.35);
    --hm1: rgba(61,138,78,0.55);
    --hm2: rgba(140,150,50,0.5);
    --hm3: rgba(180,130,50,0.55);
    --hm4: rgba(192,98,78,0.58);
    --hm5: rgba(192,98,78,0.75);
    /* Weekend/holiday cells */
    --av-weekend-bg: rgba(130,135,160,0.08);
    --av-weekend-border: rgba(130,135,160,0.15);
    --av-weekend-text: rgba(130,135,160,0.6);
    /* Modal */
    --modal-bg: #ffffff;
    --modal-overlay: rgba(40,36,30,0.18);
    --modal-border: rgba(40,36,30,0.08);
    /* Slots */
    --slot-open-bg: rgba(61,138,78,0.06);
    --slot-open-border: rgba(61,138,78,0.2);
    --slot-open-bar: #3d8a4e;
    --slot-limited-bg: rgba(168,124,42,0.06);
    --slot-limited-border: rgba(168,124,42,0.2);
    --slot-limited-bar: #a87c2a;
    --slot-booked-bg: rgba(192,98,78,0.05);
    --slot-booked-border: rgba(192,98,78,0.12);
    --slot-booked-bar: rgba(192,98,78,0.3);
    /* Button */
    --btn-bg: #c0624e;
    --btn-text: #fff;
  }

  /* Tooltip */
  .hm-tooltip {
    position: fixed; background: var(--bg-elevated); border: 1px solid var(--border-hover);
    border-radius: 0; padding: 8px 14px; pointer-events: none; opacity: 0;
    transition: opacity 0.12s; z-index: 1000; white-space: nowrap; box-shadow: var(--shadow-sm);
  }
  .hm-tooltip.is-visible { opacity: 1; }
  .hm-tip-week { font-size: 10px; color: var(--text-dim); margin-bottom: 2px; }
  .hm-tip-status { font-size: 12px; font-weight: 500; color: var(--text-bright); }
  .hm-tip-status.s-open { color: var(--av-open); }
  .hm-tip-status.s-booked { color: var(--salmon); }

  /* ─── MAIN WIDGET ─── */
  .main { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 100px 20px 40px; }
  .avail-full {
    width: 100%; max-width: 1000px;
    background: transparent; border: none; border-radius: 0;
    overflow: hidden; box-shadow: none;
    transition: background var(--tr);
  }

  /* Header */
  /* Intro */
  .af-intro { padding: 0 44px 28px; }
  .af-intro-title { font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 6px; letter-spacing: -0.01em; }
  .af-intro-text { font-size: 13px; color: var(--text-dim); line-height: 1.6; max-width: 480px; }

  .af-header {
    padding: 36px 44px 0;
    display: flex; align-items: flex-start; justify-content: space-between;
  }
  .af-header-left { display: flex; align-items: flex-start; gap: 14px; }
  .af-pulse-wrap { position: relative; width: 12px; height: 12px; margin-top: 6px; }
  .af-pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--av-today); position: relative; z-index: 2; }
  .af-pulse-ring { position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--av-today); opacity: 0; }
  .af-status { font-size: 17px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; display: block; }
  .af-header-right { display: flex; align-items: center; }
  .af-next-inline { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
  .af-next { font-size: 12px; color: var(--av-open); font-weight: 500; }
  .af-next-sub { font-size: 10px; color: var(--text-dim); }

  /* Stats */
  .af-stats { display: none; padding: 22px 44px; gap: 0; }
  .af-stat { flex: 1; padding-left: 16px; border-left: 2px solid var(--border); }
  .af-stat:nth-child(1) { border-color: var(--salmon); }
  .af-stat:nth-child(2) { border-color: var(--amber); }
  .af-stat:nth-child(3) { border-color: var(--av-open); }
  .af-stat-val { font-size: 26px; font-weight: 600; color: var(--text-bright); line-height: 1.1; letter-spacing: -0.03em; }
  .af-stat-label { font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px; }

  /* ─── VIEW TABS ─── */
  .af-view-bar {
    padding: 0 44px; margin-bottom: 16px; margin-top: 8px;
    display: flex; align-items: center; justify-content: flex-end;
  }
  .af-view-tabs { display: flex; gap: 2px; background: var(--bg-card); border-radius: 0; padding: 3px; }
  .af-view-tab {
    font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
    color: var(--text-dim); background: none; border: none;
    padding: 6px 16px; border-radius: 0; cursor: pointer;
    font-family: inherit; transition: all 0.2s; white-space: nowrap;
  }
  .af-view-tab:hover { color: var(--text); }
  .af-view-tab.is-active { background: var(--bg-elevated); color: var(--av-today); box-shadow: var(--shadow-sm); }

  .af-view-right { display: flex; align-items: center; gap: 12px; }
  .af-hm-legend { display: flex; align-items: center; gap: 3px; }
  .af-hm-legend-label { font-size: 8px; color: var(--text-xdim); margin: 0 5px; }
  .af-hm-legend-cell { width: 12px; height: 12px; border-radius: 0; }

  /* Navigation arrows for month/week/day */
  .af-nav-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 44px; margin-bottom: 16px;
  }
  .af-nav-btn {
    background: none; border: 1px solid var(--border); color: var(--text-dim);
    width: 30px; height: 30px; border-radius: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: inherit; transition: all 0.2s; padding: 0;
  }
  .af-nav-btn:hover { border-color: var(--border-hover); color: var(--text); }
  .af-nav-btn svg { width: 12px; height: 12px; }
  .af-nav-label { font-size: 14px; font-weight: 500; color: var(--text); }
  .af-nav-label span { color: var(--text-dim); font-weight: 400; font-size: 12px; margin-left: 6px; }
  .af-nav-today {
    font-size: 10px; color: var(--av-today); background: rgba(212,131,107,0.06); border: 1px solid rgba(212,131,107,0.15);
    padding: 3px 12px; border-radius: 0; cursor: pointer; font-family: inherit;
    transition: all 0.2s; font-weight: 500;
  }
  .af-nav-today:hover { background: rgba(212,131,107,0.12); }

  /* ─── PANELS ─── */
  .af-panel { padding: 0 44px 12px; display: none; }
  .af-panel.is-active { display: block; }

  /* ─── YEAR VIEW ─── */
  .af-year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .af-year-month {
    background: transparent; border: none; border-radius: 0;
    padding: 14px 10px; cursor: pointer; transition: all 0.2s;
  }
  .af-year-month:hover { background: var(--bg-card); }
  .af-year-month-name { font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; }
  .af-year-month.is-current .af-year-month-name { color: var(--av-today); }
  .af-year-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
  .af-year-day {
    aspect-ratio: 1; border-radius: 50%; min-width: 0;
    transition: transform 0.12s; position: relative;
  }
  .af-year-day:hover { transform: scale(1.4); z-index: 2; }
  .af-year-day.is-today { outline: 1.5px solid var(--av-today); outline-offset: 1px; border-radius: 50%; }
  .af-year-day.is-empty { background: transparent; }
  .af-year-bar {
    height: 4px; border-radius: 0; margin-top: 2px;
    background: linear-gradient(90deg, var(--av-open) 0%, var(--av-booked) 100%);
  }
  .af-year-month-footer { display: flex; justify-content: space-between; align-items: center; }
  .af-year-month-status { font-size: 9px; color: var(--text-dim); }
  .af-year-month-pct { font-size: 9px; font-weight: 600; }
  .af-year-month-pct.open { color: var(--av-open); }
  .af-year-month-pct.limited { color: var(--amber); }
  .af-year-month-pct.busy { color: var(--salmon); }

  /* ─── MONTH VIEW ─── */
  .af-month-grid-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
  .af-month-day-label { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-xdim); text-align: center; padding: 4px 0; }
  .af-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .af-month-cell {
    aspect-ratio: 1.15; border-radius: 0; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all 0.15s; position: relative; min-height: 60px;
    border: 1px solid transparent;
  }
  .af-month-cell:not(.is-empty):hover { border-color: var(--border-hover); transform: scale(1.04); z-index: 2; }
  .af-month-cell.is-today { border-color: var(--av-today) !important; }
  .af-month-cell.is-past { opacity: 0.35; }
  .af-month-cell-date { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
  .af-month-cell.is-today .af-month-cell-date { color: var(--av-today); font-weight: 600; }
  .af-month-cell-blocks { display: flex; gap: 3px; }
  .af-month-cell-block { width: 16px; height: 6px; border-radius: 0; }
  .af-month-cell.is-empty { cursor: default; }

  /* ─── WEEK VIEW ─── */
  .af-week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .af-day-col {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 0;
    padding: 14px 10px; min-height: 220px;
    display: flex; flex-direction: column; transition: border-color 0.2s;
  }
  .af-day-col:hover { border-color: var(--border-hover); }
  .af-day-col.is-today { border-color: rgba(212,131,107,0.25); }
  [data-theme="light"] .af-day-col.is-today,
  [data-theme="daylight"] .af-day-col.is-today { border-color: rgba(192,98,78,0.25); }
  .af-day-col.is-past { opacity: 0.4; }

  .af-day-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  }
  .af-day-name { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
  .af-day-col.is-today .af-day-name { color: var(--av-today); }
  .af-day-date { font-size: 20px; font-weight: 600; color: var(--text-bright); letter-spacing: -0.03em; }
  .af-day-col.is-today .af-day-date { color: var(--av-today); }

  .af-time-block {
    flex: 1; border-radius: 0; margin-bottom: 6px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 500; letter-spacing: 0.03em;
    color: var(--text-dim); min-height: 50px;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative; cursor: default;
  }
  .af-time-block:hover { transform: scale(1.03); }
  .af-time-block:last-child { margin-bottom: 0; }

  .af-tb-label { font-size: 8px; color: var(--text-xdim); margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
  .af-tb-status { font-size: 10px; font-weight: 500; }
  .af-tb-book {
    font-size: 8px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    margin-top: 6px; padding: 2px 10px; border-radius: 0; cursor: pointer;
    border: none; font-family: inherit; transition: all 0.2s; opacity: 0;
  }
  .af-time-block:hover .af-tb-book { opacity: 1; }

  .af-time-block.tb-open { background: var(--slot-open-bg); border: 1px dashed var(--slot-open-border); cursor: pointer; }
  .af-time-block.tb-open .af-tb-status { color: var(--av-open); opacity: 0.8; }
  .af-time-block.tb-open .af-tb-book { background: var(--btn-bg); color: var(--btn-text); }

  .af-time-block.tb-booked { background: var(--slot-booked-bg); border: 1px solid var(--slot-booked-border); }
  .af-time-block.tb-booked .af-tb-status { color: var(--av-booked); opacity: 0.7; }

  .af-time-block.tb-limited { background: var(--slot-limited-bg); border: 1px solid var(--slot-limited-border); cursor: pointer; }
  .af-time-block.tb-limited .af-tb-status { color: var(--av-limited); opacity: 0.8; }
  .af-time-block.tb-limited .af-tb-book { background: var(--btn-bg); color: var(--btn-text); }

  /* ─── DAY VIEW ─── */
  .af-day-detail { max-width: 640px; margin: 0 auto; }
  .af-day-detail-header { text-align: center; margin-bottom: 36px; }
  .af-day-detail-date { font-size: 40px; font-weight: 700; color: var(--text-bright); letter-spacing: -0.03em; }
  .af-day-detail-weekday { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
  .af-day-summary-bar {
    display: flex; justify-content: center; gap: 16px; margin-top: 12px;
  }
  .af-day-summary-chip {
    font-size: 10px; padding: 3px 12px; border-radius: 0; font-weight: 500;
  }
  .af-day-summary-chip.chip-open { background: var(--slot-open-bg); color: var(--av-open); border: 1px solid var(--slot-open-border); }
  .af-day-summary-chip.chip-booked { background: var(--salmon-dim); color: var(--salmon); border: 1px solid rgba(232,146,124,0.15); }
  .af-day-summary-chip.chip-limited { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(240,192,64,0.15); }

  .af-day-timeline { position: relative; }
  .af-day-now-line {
    position: absolute; left: 54px; right: 0; height: 2px; background: var(--av-today); z-index: 10;
    pointer-events: none;
  }
  .af-day-now-dot {
    position: absolute; left: -5px; top: -4px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--av-today);
  }
  .af-day-now-label {
    position: absolute; left: -52px; top: -7px; font-size: 10px; font-weight: 600;
    color: var(--av-today);
  }

  .af-hour-row {
    display: flex; align-items: stretch; min-height: 52px;
    border-bottom: 1px solid var(--border); position: relative;
  }
  .af-hour-row:last-child { border-bottom: none; }
  .af-hour-label {
    width: 54px; flex-shrink: 0; padding: 6px 8px 0 0;
    font-size: 10px; color: var(--text-xdim); text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .af-hour-cell {
    flex: 1; min-height: 60px; padding: 6px 10px;
    transition: background 0.15s; cursor: default; position: relative;
    border-left: 1px solid var(--border);
  }
  .af-hour-cell:hover { background: var(--bg-card); }

  .af-hour-event {
    border-radius: 0; padding: 12px 16px; margin: 2px 0;
    display: flex; align-items: center; justify-content: space-between;
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 50px;
  }
  .af-hour-event:hover { transform: translateX(2px); box-shadow: var(--shadow-sm); }
  .af-hour-event.ev-booked { background: var(--slot-booked-bg); border-left: 3px solid var(--slot-booked-bar); }
  .af-hour-event.ev-limited { background: var(--slot-limited-bg); border-left: 3px solid var(--slot-limited-bar); }
  .af-hour-event.ev-open { background: var(--slot-open-bg); border-left: 3px solid var(--slot-open-bar); cursor: pointer; }

  .af-ev-info { display: flex; flex-direction: column; gap: 1px; }
  .af-ev-status { font-size: 12px; font-weight: 500; }
  .af-hour-event.ev-booked .af-ev-status { color: var(--av-booked); }
  .af-hour-event.ev-limited .af-ev-status { color: var(--av-limited); }
  .af-hour-event.ev-open .af-ev-status { color: var(--av-open); }
  .af-ev-time { font-size: 9px; color: var(--text-dim); }

  .af-ev-book {
    font-size: 10px; font-weight: 500; padding: 5px 14px; border-radius: 0;
    cursor: pointer; border: none; font-family: inherit; transition: all 0.2s;
    white-space: nowrap; opacity: 0;
  }
  .af-hour-event:hover .af-ev-book { opacity: 1; }
  .af-hour-event.ev-open .af-ev-book { background: var(--btn-bg); color: var(--btn-text); }
  .af-hour-event.ev-limited .af-ev-book { background: var(--btn-bg); color: var(--btn-text); }

  .af-hour-open-cta {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    font-size: 9px; font-weight: 500; color: var(--av-open); opacity: 0;
    transition: opacity 0.2s; pointer-events: none;
  }
  .af-hour-cell:hover .af-hour-open-cta { opacity: 0.6; }

  /* Selection state */
  .af-hour-event.is-selected { outline: 2px solid var(--av-today); outline-offset: -2px; z-index: 3; }
  .af-hour-event.is-in-range { outline: 2px solid var(--av-today); outline-offset: -2px; opacity: 0.85; }
  .af-day-selection-bar {
    display: none; align-items: center; justify-content: center; gap: 16px;
    padding: 18px; margin-top: 24px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  }
  .af-day-selection-bar.is-visible { display: flex; }
  .af-sel-label { font-size: 13px; color: var(--text); font-weight: 500; }
  .af-sel-range { color: var(--av-open); font-weight: 600; }
  .af-sel-book {
    font-size: 12px; font-weight: 500; padding: 8px 20px; border-radius: 6px;
    border: none; background: var(--btn-bg); color: var(--btn-text);
    cursor: pointer; font-family: inherit; transition: all 0.2s;
  }
  .af-sel-book:hover { opacity: 0.88; transform: translateY(-1px); }
  .af-sel-clear {
    font-size: 11px; color: var(--text-dim); background: none; border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 0; cursor: pointer; font-family: inherit; transition: all 0.2s;
  }
  .af-sel-clear:hover { border-color: var(--border-hover); color: var(--text); }
  .af-day-slot.slot-booked .af-slot-book { background: transparent; border: 1px solid var(--border); color: var(--text-dim); cursor: default; }

  /* ─── HOLIDAYS ─── */
  .hm-holiday { background: rgba(100,140,255,0.25) !important; border-color: rgba(100,140,255,0.4) !important; }
  .af-hour-event.ev-holiday { background: rgba(100,140,255,0.08); border-left: 3px solid #7ea8ff; cursor: default; }
  .af-hour-event.ev-holiday .af-ev-status { color: #7ea8ff; }
  .af-month-cell.is-holiday,
  .af-month-cell.is-weekend { border: 1px solid var(--av-weekend-border); background: var(--av-weekend-bg); }
  .af-day-col.is-holiday .af-day-header,
  .af-day-col.is-weekend .af-day-header { color: var(--av-weekend-text); }
  .holiday-label { font-size: 9px; color: #7ea8ff; text-align: center; margin-top: 2px; letter-spacing: 0.02em; }

  /* ─── CALL TYPE SELECTOR ─── */
  .call-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .call-type-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 14px; border-radius: 10px; border: 1px solid var(--border);
    background: none; cursor: pointer; font-family: inherit; transition: all 0.2s;
    text-align: center;
  }
  .call-type-btn:hover { border-color: var(--border-hover); background: var(--bg-card); transform: translateY(-1px); }
  .call-type-btn.is-active { border-color: var(--btn-bg); background: rgba(212,131,107,0.06); }
  .call-type-btn .ct-icon { font-size: 20px; }
  .call-type-btn .ct-label { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.3; }
  .call-type-btn .ct-note { font-size: 10px; color: var(--text-dim); }
  .call-type-btn.is-active .ct-label { color: var(--btn-bg); }

  /* ─── BOOKING MODAL ─── */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: var(--modal-overlay);
    display: none; align-items: center; justify-content: center; padding: 20px;
  }
  .modal-overlay.is-visible { display: flex; }
  .modal {
    width: 100%; max-width: 440px; background: var(--modal-bg);
    border: 1px solid var(--modal-border); border-radius: 12px;
    overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  }
  .modal-header {
    padding: 24px 28px 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .modal-title { font-size: 16px; font-weight: 600; color: var(--text-bright); }
  .modal-close {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
    background: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); transition: all 0.2s; padding: 0;
  }
  .modal-close:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-card); }
  .modal-close svg { width: 12px; height: 12px; }
  .modal-body { padding: 24px 28px 28px; }
  .modal-slot-info {
    background: var(--bg-card); border-radius: 8px; padding: 16px 18px;
    margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
  }
  .modal-slot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--av-today); flex-shrink: 0; }
  .modal-slot-text { font-size: 13px; color: var(--text); line-height: 1.4; }
  .modal-slot-text strong { font-weight: 600; }
  .modal-actions { display: flex; flex-direction: column; gap: 8px; }
  .modal-action {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 18px; border-radius: 8px; border: 1px solid var(--border);
    cursor: pointer; transition: all 0.2s; background: none; text-align: left;
    font-family: inherit; width: 100%;
  }
  .modal-action:hover { border-color: var(--border-hover); background: var(--bg-card); }
  .modal-action-icon {
    width: 40px; height: 40px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .modal-action-icon svg { width: 18px; height: 18px; }
  .modal-action-icon.call { background: rgba(107,200,122,0.1); color: var(--av-open); }
  .modal-action-icon.slot { background: rgba(100,140,255,0.12); color: #7ea8ff; }
  .modal-action-icon.email { background: var(--amber-dim); color: var(--amber); }
  .modal-action-text { font-size: 13px; font-weight: 500; color: var(--text); }
  .modal-action-desc { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

  /* Summary + footer */
  .af-summary { display: none; padding: 20px 44px 28px; gap: 20px; align-items: center; }
  .af-sum-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); }
  .af-sum-dot { width: 8px; height: 8px; border-radius: 0; }
  .af-sum-count { font-weight: 600; color: var(--text); }

  .af-response { display: none; padding: 0 44px 20px; align-items: center; gap: 8px; }
  .af-response-icon { width: 14px; height: 14px; opacity: 0.35; flex-shrink: 0; }
  .af-response-text { font-size: 10px; color: var(--text-xdim); }
  .af-response-text strong { color: var(--text-dim); font-weight: 500; }

  .af-footer {
    display: none;
    padding: 18px 44px; border-top: 1px solid var(--border);
    align-items: center; justify-content: space-between;
    background: var(--slot-open-bg);
    transition: background var(--tr);
  }
  .af-footer-main { font-size: 14px; color: var(--text); }
  .af-footer-sub { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
  .af-cta {
    font-size: 12px; font-weight: 500; color: var(--btn-text); background: var(--btn-bg);
    border: none; padding: 10px 26px; border-radius: 0; cursor: pointer;
    font-family: inherit; display: flex; align-items: center; gap: 6px;
    transition: opacity 0.2s, transform 0.15s;
  }
  .af-cta:hover { opacity: 0.88; transform: translateY(-1px); }
  .af-cta svg { width: 12px; height: 12px; }

  /* Heatmap cell colors via CSS vars */
  .hm-0 { background: var(--hm0); }
  .hm-1 { background: var(--hm1); }
  .hm-2 { background: var(--hm2); }
  .hm-3 { background: var(--hm3); }
  .hm-4 { background: var(--hm4); }
  .hm-5 { background: var(--hm5); }

  /* Block colors for month view mini blocks */
  .block-open { background: var(--av-open); opacity: 0.5; }
  .block-limited { background: var(--amber); opacity: 0.5; }
  .block-booked { background: var(--salmon); opacity: 0.5; }

  /* Breadcrumb */
  .af-breadcrumb {
    display: none;
    padding: 0 44px; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px; font-size: 10px;
  }
  .af-crumb {
    color: var(--text-dim); cursor: pointer; background: none; border: none;
    font-family: inherit; font-size: 10px; transition: color 0.2s; padding: 0;
    letter-spacing: 0.03em;
  }
  .af-crumb:hover { color: var(--text); }
  .af-crumb.is-current { color: var(--av-today); cursor: default; }
  .af-crumb-sep { color: var(--text-xdim); font-size: 8px; }

  /* Modal form */
  .modal-form { display: flex; flex-direction: column; gap: 18px; }
  .modal-field { display: flex; flex-direction: column; gap: 6px; }
  .modal-label { font-size: 10px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }
  .modal-input {
    font-size: 14px; padding: 12px 16px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
    font-family: inherit; transition: border-color 0.2s; outline: none; width: 100%;
  }
  .modal-input:focus { border-color: var(--av-today); }
  .modal-input::placeholder { color: var(--text-xdim); }
  .modal-textarea { resize: vertical; min-height: 72px; }
  .modal-submit {
    font-size: 14px; font-weight: 600; padding: 14px 24px; border-radius: 8px;
    border: none; background: var(--btn-bg); color: var(--btn-text); width: 100%;
    cursor: pointer; font-family: inherit; transition: all 0.2s; margin-top: 6px;
    letter-spacing: 0.02em;
  }
  .modal-submit:hover { opacity: 0.88; transform: translateY(-1px); }
  .modal-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
  .modal-form-note { font-size: 11px; color: var(--text-xdim); text-align: center; margin-top: 4px; }
