/* ==========================================================================
   Way2Call Dashboard — Ultra-Modern Stripe/Linear-Inspired Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap');

.w2c-dash {
  --dash-bg: #F8FAFC;
  --dash-surface: #FFFFFF;
  --dash-surface-2: #F1F5F9;
  --dash-border: #E2E8F0;
  --dash-border-light: #EEF2F6;
  --dash-text: #0F172A;
  --dash-text-2: #334155;
  --dash-muted: #64748B;
  --dash-faint: #94A3B8;
  --dash-blue: #4F46E5;
  --dash-blue-hover: #4338CA;
  --dash-blue-active: #3730A3;
  --dash-blue-soft: #EEF2FF;
  --dash-blue-border: #C7D2FE;
  --dash-blue-ring: rgba(79, 70, 229, 0.15);
  --dash-accent: #6366F1;
  --dash-success: #10B981;
  --dash-success-soft: #ECFDF5;
  --dash-warning: #F59E0B;
  --dash-warning-soft: #FFFBEB;
  --dash-danger: #EF4444;
  --dash-danger-soft: #FEF2F2;
  --dash-violet: #8B5CF6;
  --dash-violet-soft: #F5F3FF;
  --dash-info: #3B82F6;
  --dash-info-soft: #EFF6FF;
  --dash-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --dash-shadow-hover: 0 12px 32px -4px rgba(15, 23, 42, 0.1);
  --dash-shadow-pop: 0 20px 48px -12px rgba(15, 23, 42, 0.18);
  --dash-radius: 16px;
  --dash-radius-sm: 10px;
  min-height: 100vh;
  background: var(--dash-bg);
  color: var(--dash-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html.dark .w2c-dash {
  --dash-bg: #090D16;
  --dash-surface: #111827;
  --dash-surface-2: #1F2937;
  --dash-border: #1F2937;
  --dash-border-light: #1E293B;
  --dash-text: #F8FAFC;
  --dash-text-2: #CBD5E1;
  --dash-muted: #94A3B8;
  --dash-faint: #64748B;
  --dash-blue: #6366F1;
  --dash-blue-hover: #818CF8;
  --dash-blue-active: #4F46E5;
  --dash-blue-soft: rgba(99, 102, 241, 0.15);
  --dash-blue-border: rgba(99, 102, 241, 0.35);
  --dash-accent: #818CF8;
  --dash-success: #34D399;
  --dash-success-soft: rgba(16, 185, 129, 0.15);
  --dash-warning: #FBBF24;
  --dash-warning-soft: rgba(245, 158, 11, 0.15);
  --dash-danger: #F87171;
  --dash-danger-soft: rgba(239, 68, 68, 0.15);
  --dash-violet: #A78BFA;
  --dash-violet-soft: rgba(139, 92, 246, 0.18);
  --dash-info: #60A5FA;
  --dash-info-soft: rgba(59, 130, 246, 0.15);
  --dash-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
  --dash-shadow-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --dash-shadow-pop: 0 20px 48px -12px rgba(0, 0, 0, 0.65);
}

/* ================= Sidebar (240px) ================= */
.w2c-shell { display: flex; min-height: 100vh; }
.w2c-sidebar {
  width: 240px; flex: none; background: var(--dash-surface);
  border-right: 1px solid var(--dash-border-light);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 40;
}
.w2c-brand {
  display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem;
  color: var(--dash-text); letter-spacing: -.02em;
}
.w2c-brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25); }
.w2c-nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.w2c-nav-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--dash-faint); padding: 16px 12px 6px; text-transform: uppercase; }
.w2c-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 40px; padding: 8px 12px; border-radius: 10px;
  color: var(--dash-muted); font-weight: 500; font-size: 13.5px;
  background: transparent; border: 0; cursor: pointer; text-align: left; text-decoration: none;
  transition: all 180ms ease; position: relative;
}
.w2c-nav-item:hover { background: var(--dash-surface-2); color: var(--dash-text); }
.w2c-nav-item.active {
  background: var(--dash-blue-soft); color: var(--dash-blue); font-weight: 600;
}
.w2c-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3.5px;
  background: var(--dash-blue); border-radius: 0 4px 4px 0;
}
.w2c-nav-item svg { width: 18px; height: 18px; flex: none; }

.w2c-userbox {
  border-top: 1px solid var(--dash-border-light); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; background: var(--dash-surface);
}
.w2c-userbox .w2c-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex: none; overflow: hidden;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.w2c-userbox .w2c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.w2c-userbox small { display: block; color: var(--dash-muted); font-size: 12px; font-weight: 500; }

/* ================= Top navbar (64px) ================= */
.w2c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w2c-topbar {
  position: sticky; top: 0; z-index: 30; height: 64px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 32px; background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dash-border-light);
}
html.dark .w2c-topbar {
  background: rgba(17, 24, 39, 0.85);
}
.w2c-topbar h1 { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.w2c-topbar .spacer { flex: 1; }
.w2c-iconbtn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--dash-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
  transition: all 150ms ease;
}
.w2c-iconbtn:hover { background: var(--dash-surface-2); color: var(--dash-text); }
.w2c-iconbtn:active { transform: scale(.95); }
.w2c-iconbtn:focus-visible, .w2c-btn:focus-visible, .w2c-nav-item:focus-visible { outline: none; border-color: var(--dash-blue); box-shadow: 0 0 0 3px var(--dash-blue-ring); }
.w2c-iconbtn-sm { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.w2c-iconbtn-sm svg { width: 14px; height: 14px; }
.w2c-iconbtn.danger:hover { background: var(--dash-danger-soft); border-color: transparent; color: var(--dash-danger); }
.w2c-search {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--dash-border-light);
  border-radius: 10px; padding: 0 12px; height: 38px; color: var(--dash-muted); background: var(--dash-bg);
  min-width: 240px; font-size: 13px; transition: all 180ms ease;
}
.w2c-search:focus-within { border-color: var(--dash-blue); box-shadow: 0 0 0 3px var(--dash-blue-ring); background: var(--dash-surface); }
.w2c-search input { border: 0; outline: 0; background: transparent; color: var(--dash-text); width: 100%; font-size: 13px; }
.w2c-search input::placeholder { color: var(--dash-faint); }
.w2c-avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #4F46E5, #6366F1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; border: 0; cursor: pointer; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25); }
.w2c-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.w2c-menu-btn { display: none; }

/* ================= Content frame ================= */
.w2c-content { padding: 32px; max-width: 1380px; width: 100%; margin: 0 auto; }
@media (min-width: 1600px) { .w2c-content { padding: 40px; } }
.w2c-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.w2c-eyebrow { font-size: 14px; font-weight: 600; color: var(--dash-blue); margin: 0 0 4px; }
.w2c-pagehead h2 { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; line-height: 1.2; }
.w2c-pagehead p { margin: 0; color: var(--dash-muted); font-size: 14px; font-weight: 400; }
.w2c-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================= Buttons (single system) ================= */
.w2c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: all 180ms ease;
}
.w2c-btn:active { transform: scale(.98); }
.w2c-btn svg { width: 16px; height: 16px; }
.w2c-btn-primary { background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3); }
.w2c-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4); }
.w2c-btn-secondary { background: var(--dash-surface); border-color: var(--dash-border); color: var(--dash-text-2); }
html.dark .w2c-btn-secondary { color: var(--dash-text); }
.w2c-btn-secondary:hover { background: var(--dash-surface-2); border-color: var(--dash-faint); transform: translateY(-1px); }
.w2c-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.w2c-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ================= Stat cards ================= */
.w2c-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.w2c-stat {
  background: var(--dash-surface); border: 1px solid var(--dash-border-light); border-radius: 18px;
  padding: 22px; box-shadow: var(--dash-shadow); transition: all 200ms ease; position: relative; overflow: hidden;
}
.w2c-stat:hover { box-shadow: var(--dash-shadow-hover); transform: translateY(-2px); border-color: var(--dash-blue-border); }
.w2c-stat .w2c-stat-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.w2c-stat .w2c-stat-ic svg { width: 20px; height: 20px; }
.w2c-stat small { display: block; color: var(--dash-muted); font-size: 13px; font-weight: 500; }
.w2c-stat b { display: block; font-family: 'Sora', sans-serif; font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.w2c-stat span.hint { font-size: 12px; color: var(--dash-faint); font-weight: 500; }

/* ================= Sections / cards ================= */
.w2c-section { margin-bottom: 28px; }
.w2c-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.w2c-section-head h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.w2c-section-head a, .w2c-link { color: var(--dash-blue); font-weight: 600; font-size: 13.5px; text-decoration: none; border-radius: 8px; transition: color 150ms ease; }
.w2c-section-head a:hover, .w2c-link:hover { text-decoration: underline; color: var(--dash-blue-hover); }
.w2c-card {
  background: var(--dash-surface); border: 1px solid var(--dash-border-light); border-radius: 18px;
  box-shadow: var(--dash-shadow); padding: 22px;
}
.w2c-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.w2c-quick {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
  background: var(--dash-surface); border: 1px solid var(--dash-border-light); border-radius: 18px;
  padding: 18px; cursor: pointer; box-shadow: var(--dash-shadow); color: var(--dash-text);
  transition: all 200ms ease;
}
.w2c-quick:hover { box-shadow: var(--dash-shadow-hover); transform: translateY(-2px); border-color: var(--dash-blue-border); }
.w2c-quick .w2c-stat-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.w2c-quick .w2c-stat-ic svg { width: 20px; height: 20px; }
.w2c-quick b { display: block; font-size: 14.5px; font-weight: 700; }
.w2c-quick small { color: var(--dash-muted); font-size: 13px; font-weight: 400; margin-top: 2px; display: block; }
.w2c-quick .arrow { margin-left: auto; color: var(--dash-faint); align-self: center; transition: transform 180ms ease, color 180ms ease; }
.w2c-quick:hover .arrow { transform: translateX(3px); color: var(--dash-blue); }
.w2c-quick .arrow svg { width: 16px; height: 16px; }

/* ================= Empty + error states ================= */
.w2c-empty { text-align: center; padding: 48px 24px; }
.w2c-empty .w2c-empty-ic {
  width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 14px;
  background: var(--dash-blue-soft); color: var(--dash-blue);
  display: flex; align-items: center; justify-content: center;
}
.w2c-empty .w2c-empty-ic svg { width: 26px; height: 26px; }
.w2c-empty h4 { margin: 0 0 6px; font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; }
.w2c-empty p { margin: 0 auto 18px; color: var(--dash-muted); font-size: 14px; max-width: 420px; }
.w2c-empty .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.w2c-empty.w2c-error .w2c-empty-ic { background: var(--dash-danger-soft); color: var(--dash-danger); }

/* ================= Event types ================= */
.w2c-evlist { background: var(--dash-surface); border: 1px solid var(--dash-border-light); border-radius: 18px; box-shadow: var(--dash-shadow); overflow: hidden; }
.w2c-event { padding: 18px 22px; transition: background 150ms ease; }
.w2c-event + .w2c-event { border-top: 1px solid var(--dash-border-light); }
.w2c-event:hover { background: var(--dash-bg); }
.w2c-event.off { opacity: .6; }
.w2c-event-top { display: flex; align-items: center; gap: 8px; }
.w2c-event-top b { font-size: 15.5px; font-weight: 700; }
.w2c-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 10px; height: 26px; margin-left: auto; white-space: nowrap; }
.w2c-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.w2c-badge.on { color: var(--dash-success); background: var(--dash-success-soft); }
.w2c-badge.off { color: var(--dash-muted); background: var(--dash-surface-2); }
.w2c-event-sub { color: var(--dash-muted); font-size: 13px; font-weight: 400; margin: 4px 0 10px; }
.w2c-event-url { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dash-blue); background: var(--dash-blue-soft); border: 1px solid var(--dash-blue-border); border-radius: 10px; padding: 8px 14px; margin-bottom: 10px; overflow: hidden; }
.w2c-event-url a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.w2c-event-meta { font-size: 13px; color: var(--dash-muted); margin-bottom: 12px; }
.w2c-event-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.w2c-menuwrap { position: relative; margin-left: auto; }
.w2c-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--dash-surface); border: 1px solid var(--dash-border); border-radius: 12px; box-shadow: var(--dash-shadow-pop); padding: 6px; z-index: 20; animation: w2c-menu-in 150ms ease; }
@keyframes w2c-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.w2c-menu button { display: flex; width: 100%; gap: 8px; align-items: center; border: 0; background: transparent; padding: 0 12px; height: 36px; border-radius: 8px; font-size: 13px; color: var(--dash-text); cursor: pointer; text-align: left; transition: background 150ms ease; }
.w2c-menu button:hover { background: var(--dash-surface-2); }
.w2c-menu button.danger { color: var(--dash-danger); }
.w2c-menu button svg { width: 16px; height: 16px; }

/* ================= Tables ================= */
.w2c-tablewrap { overflow-x: auto; border: 1px solid var(--dash-border-light); border-radius: 18px; background: var(--dash-surface); box-shadow: var(--dash-shadow); }
table.w2c-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.w2c-table th { text-align: left; font-size: 12px; letter-spacing: .05em; color: var(--dash-muted); font-weight: 700; text-transform: uppercase; padding: 14px 18px; border-bottom: 1px solid var(--dash-border-light); background: var(--dash-surface); white-space: nowrap; }
.w2c-table td { padding: 16px 18px; border-bottom: 1px solid var(--dash-border-light); vertical-align: middle; }
.w2c-table tbody tr:last-child td { border-bottom: 0; }
.w2c-table tbody tr { transition: background 150ms ease; }
.w2c-table tbody tr:hover td { background: var(--dash-bg); }
.w2c-status { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 10px; height: 26px; white-space: nowrap; }
.w2c-status.confirmed { color: var(--dash-success); background: var(--dash-success-soft); }
.w2c-status.pending { color: var(--dash-warning); background: var(--dash-warning-soft); }
.w2c-status.cancelled { color: var(--dash-danger); background: var(--dash-danger-soft); }
.w2c-status.completed { color: var(--dash-muted); background: var(--dash-surface-2); }

/* ================= Two-col ================= */
.w2c-cols { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }

/* ================= Activity timeline ================= */
.w2c-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.w2c-activity li { display: flex; gap: 12px; font-size: 13px; }
.w2c-activity .feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dash-blue); margin-top: 6px; flex: none; box-shadow: 0 0 0 3px var(--dash-blue-soft); }
.w2c-activity small { display: block; color: var(--dash-muted); margin-top: 2px; }
.w2c-act-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--dash-blue-soft); color: var(--dash-blue); }
.w2c-act-ic svg { width: 16px; height: 16px; }

/* ================= Booking link card ================= */
.w2c-booklink { background: var(--dash-surface); border: 1px solid var(--dash-border-light); border-radius: 18px; padding: 22px; box-shadow: var(--dash-shadow); }
.w2c-booklink .url {
  display: block; font-weight: 600; color: var(--dash-blue); word-break: break-all; font-size: 13.5px;
  background: var(--dash-blue-soft); border: 1px solid var(--dash-blue-border); border-radius: 10px; padding: 10px 14px; margin-top: 10px;
}

/* ================= Availability table ================= */
.w2c-avail-table td { padding: 14px 18px; }
.w2c-avail-table .w2c-day { font-weight: 700; width: 120px; }
.w2c-avdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #CBD5E1; }
.w2c-avdot.on { background: var(--dash-success); }
.w2c-avail-table .w2c-hours { font-variant-numeric: tabular-nums; color: var(--dash-muted); font-size: 13px; }
.w2c-avail-table .w2c-rowact { text-align: right; white-space: nowrap; }
.w2c-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; border: 1px solid var(--dash-border); border-radius: 999px; padding: 4px 6px 4px 12px; background: var(--dash-surface); }
.w2c-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 14px; padding: 0 6px; border-radius: 50%; min-width: 28px; min-height: 28px; }
.w2c-chip button:hover { color: var(--dash-danger); }
.w2c-input, .w2c-select {
  height: 42px; border: 1px solid var(--dash-border); border-radius: 12px; padding: 0 14px;
  font-size: 14px; background: var(--dash-surface); color: var(--dash-text);
  transition: all 180ms ease;
}
textarea.w2c-input { height: auto; padding: 12px; }
.w2c-input::placeholder { color: var(--dash-faint); }
.w2c-input:hover, .w2c-select:hover { border-color: var(--dash-faint); }
.w2c-input:focus, .w2c-select:focus { outline: none; border-color: var(--dash-blue); box-shadow: 0 0 0 3px var(--dash-blue-ring); }

/* ---- Date / time pickers ---- */
.w2c-input[type="date"], .w2c-input[type="time"] { color-scheme: light dark; }
html.dark .w2c-input[type="date"], html.dark .w2c-input[type="time"] { color-scheme: dark; }

/* ---- Custom calendar popover ---- */
.w2c-calwrap { position: relative; display: inline-flex; }
.w2c-datebtn { display: inline-flex; align-items: center; gap: 9px; min-width: 200px; height: 42px; cursor: pointer; font-variant-numeric: tabular-nums; text-align: left; font-size: 14px; }
.w2c-datebtn .placeholder { color: var(--dash-faint); }
.w2c-datebtn-ic { display: inline-flex; color: var(--dash-muted); flex: none; }
.w2c-datebtn-ic svg { width: 16px; height: 16px; }
.w2c-calpop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 292px; background: var(--dash-surface); border: 1px solid var(--dash-border); border-radius: 18px; box-shadow: var(--dash-shadow-pop); padding: 16px; animation: w2c-menu-in 150ms ease; }
.w2c-calnav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.w2c-calnav b { flex: 1; text-align: center; font-size: 14px; font-weight: 600; }
.w2c-calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.w2c-calgrid .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--dash-muted); padding: 4px 0; }
.w2c-calgrid button.day { aspect-ratio: 1; border: 0; background: transparent; color: var(--dash-text); border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; min-height: 34px; transition: all 150ms ease; }
.w2c-calgrid button.day:hover:not(:disabled) { background: var(--dash-blue-soft); color: var(--dash-blue); }
.w2c-calgrid button.day:disabled { opacity: .3; cursor: default; }
.w2c-calgrid button.day.sel { background: var(--dash-blue); color: #fff; font-weight: 700; }
.w2c-calgrid button.day.today:not(.sel) { box-shadow: inset 0 0 0 1.5px var(--dash-blue); }
.w2c-calfoot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--dash-border-light); }
.w2c-calfoot button { background: none; border: 0; color: var(--dash-blue); font-weight: 600; font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.w2c-calfoot button:hover { background: var(--dash-blue-soft); }

/* ================= Notification prefs + Apple switches ================= */
.w2c-notif-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--dash-border-light); }
.w2c-notif-row:last-child { border-bottom: 0; }
.w2c-notif-row > div { flex: 1; min-width: 0; }
.w2c-notif-row b { display: block; font-size: 14px; font-weight: 600; }
.w2c-notif-row small { display: block; color: var(--dash-muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.w2c-switch { position: relative; width: 40px; height: 22px; border-radius: 999px; border: 0; background: #CBD5E1; cursor: pointer; transition: background 150ms ease; flex: none; padding: 0; min-width: 40px; }
.w2c-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left 150ms ease; }
.w2c-switch[aria-checked="true"] { background: var(--dash-blue); }
.w2c-switch[aria-checked="true"]::after { left: 20px; }
.w2c-switch:disabled { opacity: .45; cursor: not-allowed; }
.w2c-switch:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--dash-blue-ring); }
html.dark .w2c-switch { background: #475569; }
html.dark .w2c-switch[aria-checked="true"] { background: var(--dash-blue); }

/* ================= Tabs ================= */
.w2c-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--dash-surface-2); margin-bottom: 16px; }
.w2c-tabs button { border: 0; background: transparent; color: var(--dash-muted); border-radius: 9px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all 150ms ease; }
.w2c-tabs button:hover { color: var(--dash-text); }
.w2c-tabs button[aria-selected="true"] { background: var(--dash-surface); color: var(--dash-blue); box-shadow: var(--dash-shadow); }
.w2c-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--dash-blue); color: #fff; font-size: 11px; font-weight: 700; }

/* ================= Modal / drawer ================= */
.w2c-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: w2c-fade 180ms ease; }
@keyframes w2c-fade { from { opacity: 0; } to { opacity: 1; } }
.w2c-modal {
  width: 100%; max-width: 480px; background: var(--dash-surface); color: var(--dash-text);
  border: 1px solid var(--dash-border-light); border-radius: 22px; box-shadow: var(--dash-shadow-pop);
  animation: w2c-slide 180ms ease; max-height: 90vh; overflow-y: auto;
}
@keyframes w2c-slide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.w2c-modal header { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 0; }
.w2c-modal header h3 { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.w2c-modal .body { padding: 18px 24px 24px; display: grid; gap: 14px; }
.w2c-modal label { font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
.w2c-modal .hint { font-size: 12px; color: var(--dash-muted); font-weight: 400; }
.w2c-dur-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.w2c-dur { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--dash-border); background: var(--dash-surface); color: var(--dash-muted); border-radius: 10px; padding: 0 8px; height: 42px; font-weight: 600; font-size: 13px; cursor: pointer; transition: all 150ms ease; }
.w2c-dur:hover { border-color: var(--dash-faint); color: var(--dash-text); }
.w2c-dur[aria-pressed="true"] { border-color: var(--dash-blue); color: var(--dash-blue); background: var(--dash-blue-soft); font-weight: 700; }
.w2c-modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 24px; }

/* Responsive */
@media (max-width: 1100px) {
  .w2c-stats { grid-template-columns: repeat(2, 1fr); }
  .w2c-cols { grid-template-columns: 1fr; }
  .w2c-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .w2c-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform 200ms ease; box-shadow: var(--dash-shadow-pop); }
  .w2c-shell.nav-open .w2c-sidebar { transform: none; }
  .w2c-shell.nav-open .w2c-scrim { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(4px); z-index: 35; border: 0; }
  .w2c-menu-btn { display: inline-flex; }
  .w2c-search { display: none; }
  .w2c-content { padding: 24px; }
  .w2c-topbar { padding: 0 24px; }
  .w2c-shell[aria-busy="true"] .w2c-sidebar { display: none; }
}
@media (max-width: 640px) {
  .w2c-stats { grid-template-columns: 1fr; gap: 14px; }
  .w2c-grid-3 { grid-template-columns: 1fr; }
  .w2c-pagehead h2 { font-size: 24px; }
  .w2c-content { padding: 18px 16px 24px; }
}
