﻿/* Admin Calendar Dark Theme (Google Calendar-inspired, compact) */
:root{
  /* Inherit global site palette so Calendar matches other pages */
  --cal-bg: var(--bg);
  --cal-ink: var(--ink);
  --cal-ink-2: var(--muted);
  --cal-line: var(--line);
  --cal-card:rgba(255,255,255,0.06);
  --cal-radius:12px;
  --cal-blue:#3B82F6;
  --cal-green:#10B981;
  --cal-purple:#7C3AED;
  --cal-orange:#F59E0B;
  --cal-red:#EF4444;
  --cal-teal:#14B8A6;
  --cal-glow:rgba(24,144,255,0.28);
  --cal-surface:rgba(255,255,255,0.03);
  --cal-today:rgba(24,144,255,0.12);
}

body.admin-calendar{ background: var(--cal-bg); color: var(--cal-ink); }
/* Compact shell centered like Google Calendar */
.admin-calendar main.cal-container{ width:100%; max-width:1200px; padding-inline:16px }
.admin-calendar main{ overflow:visible }
.cal-hero{ display:grid; grid-template-columns:48px 1fr 48px; align-items:center; gap:8px; margin:12px 0; text-align:center }
.cal-title{ font-size:20px; font-weight:700; letter-spacing:.01em }
.icon-btn{ height:42px; width:42px; border-radius:12px; border:1px solid var(--cal-line); background:rgba(255,255,255,.03); color:var(--cal-ink); display:grid; place-items:center; transition:background .15s ease }
.icon-btn:hover{ background:rgba(255,255,255,.06) }
.cal-subbar{ display:flex; align-items:center; gap:10px; margin-bottom:12px; justify-content:flex-start; flex-wrap:wrap }
.cal-subbar .btn.ghost{ border:1px solid var(--cal-line); background:rgba(255,255,255,.03); color:var(--cal-ink); padding:8px 12px; border-radius:10px }
.cal-subbar .btn.ghost:hover{ background:rgba(255,255,255,.06) }
.cal-select.slim{ min-width:140px; padding:8px 10px; border-radius:10px; border:1px solid var(--cal-line); background:rgba(255,255,255,.03); color:var(--cal-ink); }
.cal-wrap{ position:relative; display:grid; grid-template-columns: 1fr; gap:16px; align-items:start }
.cal-wrap.with-left{ grid-template-columns: 1fr }
.cal-wrap section{ min-width:0 }
.cal-panel{ background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); border: 1px solid var(--cal-line); border-radius: 12px; padding: 14px; box-shadow:0 20px 60px rgba(0,0,0,.42) }
.cal-drawer-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.4); opacity:0; pointer-events:none; transition:opacity .22s ease; z-index:14000 }
.cal-wrap.drawer-open .cal-drawer-overlay{ opacity:1; pointer-events:auto; backdrop-filter: blur(1px); }
.cal-left{ position:fixed; left:18px; top:92px; width:min(380px,92vw); max-height:calc(100vh - 150px); overflow:auto; transform: translateX(-110%); opacity:0; pointer-events:none; z-index:15001; transition: transform .24s ease, opacity .24s ease }
.cal-wrap.drawer-open .cal-left{ transform: translateX(0); opacity:1; pointer-events:auto; }
.cal-wrap.overlay-drawer::before{ display:none }
.cal-toolbar{ display:flex; align-items:center; gap:8px; justify-content:flex-end; margin-bottom:8px }
.cal-toolbar .btn{ padding:6px 10px; border:1px solid var(--cal-line); border-radius:10px; color:var(--cal-ink) }
.cal-select{ padding:6px 10px; background:rgba(255,255,255,.03); border:1px solid var(--cal-line); border-radius:10px; color:var(--cal-ink); color-scheme:dark }
.cal-input{ padding:6px 10px; background:transparent; border:1px solid var(--cal-line); border-radius:10px; color:var(--cal-ink) }
.cal-right{ display:none }
.cal-left.is-hidden{ display:none }
@media (max-width:900px){
  .cal-hero{ grid-template-columns:42px 1fr 42px; margin:10px 0; }
  .cal-title{ font-size:18px; }
  .cal-subbar{ gap:8px; }
  .cal-left{ left:0; right:0; top:auto; bottom:0; width:100%; max-height:82vh; transform: translateY(105%); border-radius:16px 16px 0 0; box-shadow:0 -10px 40px rgba(0,0,0,.6); }
  .cal-wrap.drawer-open .cal-left{ transform: translateY(0); }
  #fc{ min-height:540px; }
}
@media (max-width:1100px){ .cal-left{ order:2 } }
@media (max-width:720px){
  #fc{ min-height:500px; }
}
.cal-left .cal-drawer-close{ display:block; width:100%; margin-top:12px }
@media (max-width:600px){
  .admin-calendar main.cal-container{ padding-inline:12px; }
  .cal-hero{ grid-template-columns:38px 1fr 38px; }
  .cal-title{ font-size:17px; }
  .cal-subbar{ gap:6px; }
  .cal-wrap{ gap:12px; }
  /* Mobile: stack day events vertically with breathing room */
  .fc .fc-daygrid-day-events{ display:grid; gap:10px; margin:8px 4px 12px; }
  .fc .fc-daygrid-event{ width:100%; margin:0; }
  .fc .fc-daygrid-event .fc-event-main{ display:block; width:100%; }
  .fc .fc-daygrid-day-frame{ padding:8px 4px; min-height:120px; }
  .fc .fc-daygrid-day-top{ align-items:flex-start; }
  .fc .fc-col-header-cell-cushion{ padding:6px 0; font-size:12px; }
  /* Keep touch targets comfortable */
  .fc .fc-button{ min-height:40px; padding:8px 12px; font-size:14px; }
  /* Mobile pill styling closer to reference */
  .vv-bar{ grid-template-columns:1fr; justify-items:flex-start; text-align:left; padding:10px 12px; border-radius:16px; }
  .vv-bar__left{ width:100%; }
  .vv-bar .dot{ display:none; }
  .vv-bar .badge{ justify-self:flex-start; }
  .vv-bar .title{ font-size:13px; font-weight:700; }
  .fc .fc-daygrid-day-frame{ min-height:100px; }
  .fc .fc-daygrid-day-top{ justify-content:center; }
  /* Force event harnesses to flow in document order (prevent overlays) */
  .fc .fc-daygrid-event-harness,
  .fc .fc-daygrid-event-harness-abs{
    position:static !important;
    inset:auto !important;
    transform:none !important;
    width:100% !important;
    margin-top:8px;
  }
}
.admin-calendar .pill{ display:inline-flex; align-items:center; gap:6px; padding:2px 8px; border-radius:999px; border:1px solid var(--cal-line); font-size:12px; color:var(--cal-ink-2) }
.admin-calendar .muted{ color:var(--cal-ink-2) }
/* Calendar height: let content grow so events don't overlap */
#fc{ position: relative; z-index: 1; height:auto; min-height:560px; }
.fc{ height: auto }

/* FullCalendar overrides */
.fc{
  --fc-page-bg-color: var(--cal-bg);
  --fc-neutral-bg-color: transparent;
  --fc-border-color: rgba(255,255,255,0.08); /* thinner grid lines for Google-like clarity */
  --fc-more-link-bg-color: transparent;
  --fc-more-link-text-color: var(--cal-ink-2);
}
.fc .fc-toolbar-title{ color: var(--cal-ink); font-weight:600 }
.fc .fc-col-header-cell-cushion{
  color: var(--cal-ink-2);
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:12px 0;
}
.fc .fc-daygrid-day{ border-color: var(--cal-line); padding:2px; }
.fc .fc-daygrid-day-frame{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  padding:10px 8px;
  min-height:112px;
  background: rgba(255,255,255,.02);
  border-radius:12px;
  border:1px solid rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 26px rgba(0,0,0,.32);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.fc .fc-daygrid-day:hover .fc-daygrid-day-frame{
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 32px rgba(0,0,0,.4);
}
.fc .fc-daygrid-day-top{ justify-content:space-between; display:flex; align-items:center; gap:6px; }
.fc .fc-daygrid-day-number{
  color: var(--cal-ink);
  font-weight:700;
  text-align:left;
  width:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border-radius:10px;
  background: rgba(0,0,0,.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number{
  background: var(--cal-today);
  color: #fff;
  box-shadow: 0 0 0 1px var(--cal-glow), 0 12px 30px rgba(0,0,0,.45);
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame{
  border-color: var(--cal-glow);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.5);
}
.fc .fc-daygrid-day.fc-day-other .fc-daygrid-day-frame{ opacity:.7; }
.fc .fc-daygrid-day.fc-day-other .fc-daygrid-day-number{ color: var(--cal-ink-2); }
.fc-scrollgrid, .fc .fc-timegrid-slot{ border-color: var(--cal-line) }
.fc .fc-list{
  border-color: var(--cal-line);
  color:var(--cal-ink);
  border-collapse:separate;
  border-spacing:0 10px;
  width:100%;
  display:block;
}
.fc .fc-list-table{ width:100%; border-collapse:separate; border-spacing:0 10px; }
.fc .fc-list thead{ display:none; }
.fc .fc-list-sticky .fc-list-day-cushion{ background:transparent; color:var(--cal-ink-2) }
.fc .fc-list tbody{ display:block; width:100%; }
.fc .fc-list tr{ display:block; width:100%; margin:0 auto 12px auto; }
.fc .fc-list .fc-list-event td{ background:transparent; display:block; width:100%; box-sizing:border-box; }
/* Dark hover for list rows so it isn't blinding */
.fc .fc-list .fc-list-event:hover td,
.fc .fc-list .fc-list-event:focus-within td{ background: rgba(255,255,255,.06) !important; color: var(--cal-ink); }
/* Nudge inner custom card a bit on hover for feedback */
.fc .fc-list .fc-list-event:hover .vv-bar{ background: rgba(255,255,255,.08); }
.fc .fc-button{ background:transparent; border:1px solid var(--cal-line); color:var(--cal-ink) }
.fc .fc-button:hover{ background:rgba(255,255,255,.04) }
.fc .fc-daygrid-event{ margin:0; white-space:normal; }
.fc .fc-daygrid-more-link{ font-size:12px }
.fc .fc-timegrid-event{ border:0 }
.fc .fc-timegrid-event-harness{ margin-bottom:8px; }
.fc .fc-timegrid-col-events{ margin:0 6px; }
.fc-non-business{ background:transparent }

/* Event bars (Google-like horizontal pills) */
.vv-bar{
  --bar-accent: var(--cal-blue);
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:10px;
  padding:8px 14px 8px 10px;
  border-radius:12px;
  background: rgba(12,16,22,.78);
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 10px 24px rgba(0,0,0,.38), 0 0 0 1px color-mix(in srgb, var(--bar-accent) 35%, transparent);
  color: var(--cal-ink);
  width:100%;
  position:relative;
  overflow:visible;
}
.vv-bar:before{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--bar-accent) 20%, transparent), transparent);
  opacity:.12;
  pointer-events:none;
}
.vv-bar__left{ display:flex; align-items:center; gap:10px; min-width:0; position:relative; z-index:1; }
.vv-bar__text{ display:grid; gap:4px; min-width:0; }
.vv-bar .title{ font-weight:800; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:normal; min-width:0; letter-spacing:.005em; color:#f5f8ff; line-height:1.25; }
.vv-bar .sub{ font-size:11.5px; color: #d7deeb; overflow:hidden; text-overflow:ellipsis; white-space:normal; line-height:1.3; }
.vv-bar .dot{ width:12px; height:12px; border-radius:50%; border:1px solid var(--cal-line); background: var(--bar-accent); box-shadow:0 0 0 3px rgba(255,255,255,.06); }
.vv-bar .badge{ position:relative; z-index:1; font-size:11px; padding:4px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background:rgba(0,0,0,.45); color:#f4f7ff; letter-spacing:.02em; font-weight:700; }
.vv-bar .badge.is-open{ background:rgba(16,185,129,.18); border-color:rgba(16,185,129,.45); color:#a8f3d2; }
.vv-bar .badge.is-mine{ background:rgba(24,144,255,.18); border-color:rgba(24,144,255,.45); color:#c7deff; }
.vv-bar .badge.is-full{ background:rgba(245,158,11,.18); border-color:rgba(245,158,11,.42); color:#f7d593; }
.vv-bar .badge.is-hold{ background:rgba(124,58,237,.16); border-color:rgba(124,58,237,.4); color:#e6d8ff; }
.vv-bar .badge.is-cancelled{ background:rgba(239,68,68,.18); border-color:rgba(239,68,68,.45); color:#ffc6c6; }
.vv-bar .badge.is-past{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.12); color:var(--cal-ink-2); }
.vv-bar.is-open{ border-color:rgba(16,185,129,.45); background: color-mix(in srgb, #0c1016 55%, #10b981 45%); }
.vv-bar.is-mine{ border-color:rgba(24,144,255,.45); background: color-mix(in srgb, #0c1016 55%, #1890ff 45%); }
.vv-bar.is-full{ border-color:rgba(245,158,11,.35); background: color-mix(in srgb, #0c1016 55%, #f59e0b 45%); }
.vv-bar.is-hold{ border-color:rgba(124,58,237,.3); background: color-mix(in srgb, #0c1016 55%, #7c3aed 45%); }
.vv-bar.is-cancelled{ border-color:rgba(239,68,68,.32); background: color-mix(in srgb, #0c1016 55%, #ef4444 45%); }
.vv-past .vv-bar{ opacity:.82; filter:saturate(.65); }
.vv-full .vv-bar{ opacity:.85; filter:saturate(.65); }
.vv-mine .vv-bar{ box-shadow:0 0 0 2px rgba(59,130,246,.35), 0 12px 30px rgba(0,0,0,.4); }
.fc .fc-daygrid-day-events{ display:grid; gap:8px; position:relative; margin-top:4px; }
.fc .fc-daygrid-event-harness{ width:100%; position:relative !important; }
.fc .fc-daygrid-event-harness-abs{ position:relative !important; }
.fc .fc-daygrid-event{ padding:0; width:100%; }
.fc .fc-daygrid-event:hover .vv-bar{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.18); }

/* List view polish */
.fc .fc-list-day-cushion{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  border:1px solid var(--cal-line);
  border-radius:12px;
  color:var(--cal-ink);
  font-weight:700;
  letter-spacing:.01em;
  text-transform:none;
  box-shadow:0 12px 28px rgba(0,0,0,.32);
  margin:16px auto 6px auto;
  max-width:95%;
}
.fc .fc-list-day-text{ font-size:13px; color:var(--cal-ink-2); text-transform:uppercase; letter-spacing:.12em; }
.fc .fc-list-day-number{ font-size:14px; color:#fff; font-weight:800; }
.fc .fc-list .fc-list-event{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border:1px solid var(--cal-line);
  border-radius:10px;
  box-shadow:0 8px 18px rgba(0,0,0,.28);
  overflow:hidden;
  position:relative;
  display:block;
  padding:0;
  max-width:95%;
  margin-inline:auto;
}
.fc .fc-list .fc-list-event td{ padding:0; border:0; vertical-align:top; }
.fc .fc-list .fc-list-event-time{
  padding:0 0 4px 0;
  font-weight:700;
  color:#f7f9ff;
  letter-spacing:.01em;
  white-space:normal;
  line-height:1.35;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 auto 6px auto;
  max-width:95%;
}
.fc .fc-list .fc-list-event-time:before{
  content:'';
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--cal-blue);
  box-shadow:0 0 0 2px rgba(255,255,255,.06);
  flex:0 0 auto;
}
.fc .fc-list .fc-list-event-title{ padding:0 12px 12px 12px; }
.fc .fc-list .fc-list-event-graphic{ display:none; }
.fc .fc-list .vv-bar{
  grid-template-columns:1fr;
  gap:8px;
  padding:12px;
  border-radius:10px;
  background:rgba(12,16,22,.9);
  align-items:flex-start;
  justify-items:flex-start;
  row-gap:6px;
  width:100%;
  box-shadow:0 8px 18px rgba(0,0,0,.26);
}
.fc .fc-list .vv-bar .dot{ display:none; }
.fc .fc-list .vv-bar .badge{ justify-self:flex-start; }
.fc .fc-list .vv-bar .title{ font-size:13.5px; line-height:1.3; }
.fc .fc-list .vv-bar .sub{ font-size:11.5px; color:var(--cal-ink-2); }

@media (max-width:900px){
  .fc .fc-list{ border-spacing:0 10px; }
  .fc .fc-list-table{ display:block; border:0; }
  .fc .fc-list tbody{ gap:10px; }
  .fc .fc-list-day-cushion{ margin:16px auto 6px auto; }
  .fc .fc-list .fc-list-event{ margin:0 auto 12px auto; width:100%; }
  .fc .fc-list .fc-list-event-time{ font-size:12.5px; padding:0 0 4px 0; }
  .fc .fc-list .vv-bar{ padding:12px; }
  .fc .fc-list .vv-bar .title{ font-size:13px; }
  .fc .fc-list .vv-bar .sub{ font-size:11px; }
}

/* Mobile calendar UI (public calendar only) */
.vv-calendar-public .vv-mobile-cal{ display:none; }
.vv-calendar-public .vv-mobile-cal__views{ display:none; }
@media (max-width:768px){
  .vv-calendar-public #fc{ display:none; }
  .vv-calendar-public .cal-subbar #cal-view{ display:none; }
  .vv-calendar-public .vv-mobile-cal{ display:grid; gap:16px; max-width:100%; overflow:hidden; }
  .vv-calendar-public .vv-mobile-cal{
    transition: none;
    will-change: transform;
  }
  .vv-calendar-public .vv-mobile-cal--transition{
    transition: transform .32s ease;
  }
  .vv-calendar-public .vv-mobile-cal--from-right{
    transform: translateX(100%);
  }
  .vv-calendar-public .vv-mobile-cal--from-left{
    transform: translateX(-100%);
  }
  .vv-calendar-public .vv-mobile-cal__views{
    display:flex;
    gap:6px;
    padding:4px;
    border:1px solid var(--cal-line);
    border-radius:999px;
    background:rgba(255,255,255,.03);
  }
  .vv-calendar-public .vv-mobile-cal__view-btn{
    flex:1;
    min-height:36px;
    border-radius:999px;
    border:0;
    background:transparent;
    color:var(--cal-ink-2);
    font-weight:600;
    font-size:12px;
    letter-spacing:.04em;
    text-transform:uppercase;
  }
  .vv-calendar-public .vv-mobile-cal__view-btn[aria-pressed="true"]{
    background:rgba(24,144,255,.22);
    color:#fff;
    box-shadow:0 10px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(24,144,255,.35);
  }
  .vv-calendar-public .vv-mobile-cal__weekdays{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:6px;
    text-align:center;
    font-size:11px;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:var(--cal-ink-2);
  }
  .vv-calendar-public .vv-mobile-cal__weekday{ padding:4px 0; }
  .vv-calendar-public .vv-mobile-cal__grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:8px;
  }
  .vv-calendar-public .vv-mobile-cal{
    width:100vw;
    max-width:100vw;
    padding-inline:6px;
    margin-inline:auto;
    box-sizing:border-box;
  }
  .vv-calendar-public .vv-mobile-cal__grid{
    width:100%;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:4px;
  }
  .vv-calendar-public .vv-mobile-cal__grid[data-view="timeGridDay"]{
    grid-template-columns:1fr;
  }
  .vv-calendar-public .vv-mobile-cal__day{
    position:relative;
    display:grid;
    place-items:center;
    min-height:42px;
    border-radius:14px;
    border:1px solid var(--cal-line);
    background:rgba(255,255,255,.03);
    color:var(--cal-ink);
    font-weight:700;
    font-size:13px;
    padding:2px;
    text-align:center;
    cursor:pointer;
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  }
  .vv-calendar-public .vv-mobile-cal__day:active{ transform:translateY(1px); }
  .vv-calendar-public .vv-mobile-cal__day.is-outside{ opacity:.45; }
  .vv-calendar-public .vv-mobile-cal__day.is-today{
    border-color:var(--cal-glow);
    box-shadow:0 0 0 1px var(--cal-glow), 0 10px 24px rgba(0,0,0,.35);
  }
  .vv-calendar-public .vv-mobile-cal__day.is-selected{
    border-color:rgba(24,144,255,.5);
    box-shadow:0 0 0 1px rgba(24,144,255,.45), 0 14px 30px rgba(0,0,0,.45);
    background:rgba(24,144,255,.12);
  }
  .vv-calendar-public .vv-mobile-cal__day.is-open-day{
    border-color:rgba(16,185,129,.9);
    box-shadow:0 0 0 1px rgba(16,185,129,.5), 0 12px 28px rgba(0,0,0,.45);
  }
  .vv-calendar-public .vv-mobile-cal__day-num{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:26px;
    height:26px;
    border-radius:999px;
  }
  .vv-calendar-public .vv-mobile-cal__day.is-selected .vv-mobile-cal__day-num{
    background:rgba(24,144,255,.85);
    color:#fff;
    box-shadow:0 6px 16px rgba(24,144,255,.35);
  }
  .vv-calendar-public .vv-mobile-cal__dot{
    position:absolute;
    bottom:6px;
    right:6px;
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--cal-blue);
    box-shadow:0 0 0 2px rgba(255,255,255,.08);
  }
  .vv-calendar-public .vv-mobile-cal__badge{
    position:absolute;
    bottom:6px;
    right:6px;
    min-width:16px;
    height:16px;
    padding:0 4px;
    border-radius:999px;
    background:var(--cal-blue);
    color:#fff;
    font-size:10px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 0 0 2px rgba(255,255,255,.08);
  }
  .vv-calendar-public .vv-mobile-cal__agenda{
    display:grid;
    gap:12px;
    padding:14px;
    border-radius:16px;
    border:1px solid var(--cal-line);
    background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
    box-shadow:0 16px 32px rgba(0,0,0,.35);
  }
  .vv-calendar-public .vv-mobile-cal__agenda-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .vv-calendar-public .vv-mobile-cal__agenda-title{ font-weight:800; letter-spacing:.02em; }
  .vv-calendar-public .vv-mobile-cal__agenda-date{
    color:var(--cal-ink-2);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.12em;
  }
  .vv-calendar-public .vv-mobile-cal__agenda-list{ display:grid; gap:10px; }
  .vv-calendar-public .vv-mobile-cal__empty{
    padding:16px;
    border-radius:12px;
    border:1px dashed var(--cal-line);
    color:var(--cal-ink-2);
    text-align:center;
  }
  .vv-calendar-public .vv-mobile-event{
    width:100%;
    display:grid;
    grid-template-columns:4px 1fr auto;
    gap:12px;
    align-items:center;
    padding:12px;
    border-radius:14px;
    border:1px solid var(--cal-line);
    background:rgba(12,16,22,.78);
    color:var(--cal-ink);
    text-align:left;
    cursor:pointer;
  }
  .vv-calendar-public .vv-mobile-event__body{ display:grid; gap:4px; }
  .vv-calendar-public .vv-mobile-event:active{ transform:translateY(1px); }
  .vv-calendar-public .vv-mobile-event.is-disabled{ opacity:.6; cursor:not-allowed; }
  .vv-calendar-public .vv-mobile-event__accent{
    width:4px;
    height:100%;
    border-radius:999px;
    background:var(--accent, var(--cal-blue));
    box-shadow:0 0 0 1px rgba(255,255,255,.12);
  }
  .vv-calendar-public .vv-mobile-event__title{ font-weight:700; font-size:14px; line-height:1.2; }
  .vv-calendar-public .vv-mobile-event__time{ font-size:12px; color:var(--cal-ink-2); }
  .vv-calendar-public .vv-mobile-event__badge{
    font-size:11px;
    padding:4px 8px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(0,0,0,.4);
    font-weight:700;
  }
  .vv-calendar-public .vv-mobile-event__badge.is-open{ background:rgba(16,185,129,.18); border-color:rgba(16,185,129,.45); color:#a8f3d2; }
  .vv-calendar-public .vv-mobile-event__badge.is-mine{ background:rgba(24,144,255,.18); border-color:rgba(24,144,255,.45); color:#c7deff; }
  .vv-calendar-public .vv-mobile-event__badge.is-full{ background:rgba(245,158,11,.18); border-color:rgba(245,158,11,.42); color:#f7d593; }
  .vv-calendar-public .vv-mobile-event__badge.is-hold{ background:rgba(124,58,237,.16); border-color:rgba(124,58,237,.4); color:#e6d8ff; }
  .vv-calendar-public .vv-mobile-event__badge.is-cancelled{ background:rgba(239,68,68,.18); border-color:rgba(239,68,68,.45); color:#ffc6c6; }
  .vv-calendar-public .vv-mobile-event__badge.is-past{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.12); color:var(--cal-ink-2); }
  .vv-calendar-public .vv-mobile-fab{
    position:fixed;
    right:18px;
    bottom:22px;
    width:54px;
    height:54px;
    border-radius:999px;
    border:0;
    background:linear-gradient(145deg, #1f7cff, #4bd5ff);
    color:#fff;
    font-size:28px;
    font-weight:700;
    box-shadow:0 18px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12);
    z-index:16000;
  }
  .vv-calendar-public .vv-mobile-fab:active{ transform:translateY(1px); }
  .vv-calendar-public main.cal-container,
  .vv-calendar-public section,
  .vv-calendar-public .cal-wrap,
  .vv-calendar-public #cal-shell{
    width:100%;
    max-width:100vw;
    min-width:0;
    overflow-x:hidden;
    padding-inline:0;
    margin-inline:0;
    box-sizing:border-box;
  }
  body.admin-calendar.vv-calendar-public,
  html{
    overflow-x:hidden;
  }
  .vv-calendar-public{
    overflow-x:hidden;
  }
}


/* Inline create popup */
.vv-pop{ position:fixed; z-index:20000; background:var(--cal-bg); border:1px solid var(--cal-line); border-radius:12px; padding:10px; box-shadow:0 12px 40px rgba(0,0,0,.45); width:min(420px,94vw); max-height:calc(100vh - 96px); overflow:auto; word-break:break-word }
.vv-pop .row{ display:flex; gap:8px; align-items:center; overflow:hidden }
.vv-pop .row input[type="datetime-local"]{ flex:1; min-width:0 }
.vv-pop .stack{ display:grid; gap:8px }
.vv-pop label{ display:grid; gap:6px; width:100% }
.vv-pop .cal-input, .vv-pop .cal-select, .vv-pop textarea{ width:100%; box-sizing:border-box }
.vv-pop .vv-two{ display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center }
.vv-pop .sep{ opacity:.55 }

/* Dropdown (members/labels) */
.vv-dd{ display:grid; gap:6px }
.vv-dd-btn{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:flex-start; padding:6px 10px; background:transparent; border:1px solid var(--cal-line); border-radius:10px; color:var(--cal-ink); min-height:36px; cursor:pointer; width:100%; box-sizing:border-box }
.vv-chip{ display:inline-flex; align-items:center; gap:6px; padding:2px 8px; border-radius:999px; border:1px solid var(--cal-line); background:rgba(255,255,255,.04); color:var(--cal-ink-2); font-size:12px }
.vv-chip .av{ width:18px; height:18px; border-radius:50%; object-fit:cover; background:#2a2f3a }
.vv-dot{ width:10px; height:10px; border-radius:50%; border:1px solid var(--cal-line) }
.vv-menu{ position:fixed; z-index:22000; background:var(--cal-bg); border:1px solid var(--cal-line); border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.45); width:min(320px,92vw); max-height:calc(100vh - 120px); overflow:auto; padding:6px }
.vv-menu .item{ display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; cursor:pointer }
.vv-menu .item:hover{ background:rgba(255,255,255,.05) }
.vv-menu .item .av{ width:24px; height:24px; border-radius:50%; object-fit:cover; background:#2a2f3a }
.vv-menu .item .name{ flex:1 }
.vv-menu .item .check{ opacity:.6 }


/* Drawer */
.vv-drawer{ background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border:1px solid var(--cal-line); border-radius:12px; padding:12px }
.cal-right .vv-drawer{ max-height: calc(100vh - 140px); overflow:auto }
.vv-drawer h3{ margin:0 0 8px 0 }
.vv-drawer .stack{ display:grid; gap:8px }

/* Collapsible sections */
.vv-sec{ border:1px solid var(--cal-line); border-radius:12px; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); overflow:hidden }
.vv-sec summary{ list-style:none; cursor:pointer; padding:10px 12px; font-weight:600; color:var(--cal-ink); display:flex; align-items:center; gap:8px }
.vv-sec summary::-webkit-details-marker{ display:none }
.vv-sec .vv-sec-body{ padding:10px 12px; display:grid; gap:8px }
.vv-sec[open]{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.03) }


