/* ============================================================================
 * GRID-CALENDAR Design System
 * Visual DNA: GRID-MVC SandBox Aqua + Google Calendar Spatial Ergonomics
 * ============================================================================ */

:root,
[data-theme="light"] {
  --gc-font: "THICCCBOI", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* GRID-MVC SandBox Aqua Palette */
  --gc-primary: #54a8c7;
  --gc-primary-dark: #3f91b0;
  --gc-primary-deep: #0d7490;
  --gc-primary-soft: #eff7fa;
  --gc-primary-pale: #e4f1f6;
  --gc-emerald: #00b87c;
  --gc-emerald-soft: #e6f7f1;

  /* Neutrals */
  --gc-bg: #f6f8fb;
  --gc-surface: #ffffff;
  --gc-surface-soft: #f8fafc;
  --gc-surface-hover: #f1f5f9;
  --gc-border: #e5eaf0;
  --gc-grid-line: #edf1f6;
  --gc-text: #262b32;
  --gc-text-secondary: #596273;
  --gc-text-muted: #7c8596;

  /* Semantic & Category Pastel Tokens (GRID-MVC exact mapping) */
  --gc-audit-bg: #e0e9fa;     --gc-audit-fg: #2b63c9;   --gc-audit-bd: #5e8ce0;
  --gc-install-bg: #e1f6f0;   --gc-install-fg: #0f7b5f; --gc-install-bd: #22a684;
  --gc-interv-bg: #fef3e4;    --gc-interv-fg: #b4690e;  --gc-interv-bd: #fab758;
  --gc-meeting-bg: #e4f1f6;   --gc-meeting-fg: #0d7490; --gc-meeting-bd: #54a8c7;
  --gc-task-bg: #f0eaf6;      --gc-task-fg: #6d44a0;    --gc-task-bd: #8f65c4;
  --gc-personal-bg: #eaf3ef;  --gc-personal-fg: #2d7654;--gc-personal-bd: #4ea57c;
  --gc-work-bg: #e5f4fd;      --gc-work-fg: #096eb2;    --gc-work-bd: #3999d6;
  --gc-urgent-bg: #fae6e7;    --gc-urgent-fg: #c23b45;  --gc-urgent-bd: #e2626b;
  --gc-reminder-bg: #feece9;  --gc-reminder-fg: #b34932;--gc-reminder-bd: #e57a5c;
  --gc-blocked-bg: #e5e7eb;   --gc-blocked-fg: #262b32; --gc-blocked-bd: #4b5563;
  --gc-custom-bg: #eef0f4;    --gc-custom-fg: #4b5563;  --gc-custom-bd: #94a3b8;

  --gc-danger: #c23b45;
  --gc-danger-soft: #fcf0f1;
  --gc-success: #0f7b5f;
  --gc-success-soft: #e1f6f0;
  --gc-warning: #c87a10;
  --gc-warning-soft: #fef3e4;

  --gc-shadow-xs: 0 2px 8px rgba(30, 34, 40, 0.04);
  --gc-shadow-sm: 0 6px 24px rgba(30, 34, 40, 0.06);
  --gc-shadow-lg: 0 18px 46px rgba(30, 34, 40, 0.14);
  --gc-radius: 14px;
  --gc-radius-sm: 10px;
  --gc-radius-pill: 999px;
}

[data-theme="dark"] {
  --gc-primary: #5cb7d8;
  --gc-primary-dark: #43a1c4;
  --gc-primary-deep: #7dd3fc;
  --gc-primary-soft: rgba(84, 168, 199, 0.14);
  --gc-primary-pale: rgba(84, 168, 199, 0.22);
  --gc-emerald: #10b981;
  --gc-emerald-soft: rgba(16, 185, 129, 0.16);

  --gc-bg: #0b111b;
  --gc-surface: #131b29;
  --gc-surface-soft: #1a2436;
  --gc-surface-hover: #222f46;
  --gc-border: #253247;
  --gc-grid-line: rgba(255, 255, 255, 0.06);
  --gc-text: #f1f5f9;
  --gc-text-secondary: #cbd5e1;
  --gc-text-muted: #8b9bb4;

  --gc-audit-bg: rgba(59, 130, 246, 0.18);    --gc-audit-fg: #93c5fd;    --gc-audit-bd: #3b82f6;
  --gc-install-bg: rgba(16, 185, 129, 0.18);  --gc-install-fg: #6ee7b7;  --gc-install-bd: #10b981;
  --gc-interv-bg: rgba(245, 158, 11, 0.18);   --gc-interv-fg: #fcd34d;   --gc-interv-bd: #f59e0b;
  --gc-meeting-bg: rgba(84, 168, 199, 0.22);  --gc-meeting-fg: #7dd3fc;  --gc-meeting-bd: #54a8c7;
  --gc-task-bg: rgba(139, 92, 246, 0.2);      --gc-task-fg: #c4b5fd;     --gc-task-bd: #8b5cf6;
  --gc-personal-bg: rgba(34, 197, 94, 0.18);  --gc-personal-fg: #86efac; --gc-personal-bd: #22c55e;
  --gc-work-bg: rgba(14, 165, 233, 0.18);     --gc-work-fg: #7dd3fc;     --gc-work-bd: #0ea5e9;
  --gc-urgent-bg: rgba(239, 68, 68, 0.2);     --gc-urgent-fg: #fca5a5;   --gc-urgent-bd: #ef4444;
  --gc-reminder-bg: rgba(249, 115, 22, 0.2);  --gc-reminder-fg: #fdba74; --gc-reminder-bd: #f97316;
  --gc-blocked-bg: rgba(148, 163, 184, 0.18); --gc-blocked-fg: #cbd5e1;  --gc-blocked-bd: #64748b;
  --gc-custom-bg: rgba(148, 163, 184, 0.15);  --gc-custom-fg: #cbd5e1;   --gc-custom-bd: #94a3b8;

  --gc-danger: #f87171;
  --gc-danger-soft: rgba(239, 68, 68, 0.18);
  --gc-success: #34d399;
  --gc-success-soft: rgba(16, 185, 129, 0.18);
  --gc-warning: #fbbf24;
  --gc-warning-soft: rgba(245, 158, 11, 0.18);

  --gc-shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.25);
  --gc-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --gc-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--gc-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gc-text);
  background: var(--gc-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gc-primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---- Scrollbars ---- */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124, 133, 150, 0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 133, 150, 0.5); }

/* ---- Buttons (GRID-MVC Pill Aesthetic) ---- */
.gc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--gc-border);
  background: var(--gc-surface);
  color: var(--gc-text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.2;
}
.gc-btn:hover { background: var(--gc-surface-hover); border-color: var(--gc-primary); }
.gc-btn:active { transform: translateY(1px); }
.gc-btn-pill { border-radius: var(--gc-radius-pill); }
.gc-btn-sm { padding: 6px 12px; font-size: 12.5px; }
.gc-btn-xs { padding: 4px 9px; font-size: 11.5px; }
.gc-btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; }

.gc-btn-primary {
  background: var(--gc-primary);
  border-color: var(--gc-primary);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(84, 168, 199, 0.32);
}
.gc-btn-primary:hover { background: var(--gc-primary-dark); border-color: var(--gc-primary-dark); color: #ffffff !important; }

.gc-btn-emerald {
  background: var(--gc-emerald);
  border-color: var(--gc-emerald);
  color: #ffffff !important;
}
.gc-btn-emerald:hover { filter: brightness(0.94); }

.gc-btn-outline-primary {
  background: transparent;
  border-color: var(--gc-primary);
  color: var(--gc-primary-deep);
}
.gc-btn-outline-primary:hover { background: var(--gc-primary-soft); }

.gc-btn-outline-dark {
  background: transparent;
  border-color: var(--gc-text);
  color: var(--gc-text);
}
.gc-btn-outline-dark:hover { background: var(--gc-surface-hover); }

.gc-btn-outline-success {
  background: transparent;
  border-color: var(--gc-emerald);
  color: var(--gc-success);
}
.gc-btn-outline-success:hover { background: var(--gc-success-soft); }

.gc-btn-outline-danger {
  background: transparent;
  border-color: var(--gc-danger);
  color: var(--gc-danger);
}
.gc-btn-outline-danger:hover { background: var(--gc-danger-soft); }

.gc-btn-soft-primary {
  background: var(--gc-primary-soft);
  border-color: transparent;
  color: var(--gc-primary-deep);
}
.gc-btn-soft-primary:hover { background: var(--gc-primary-pale); }

/* ---- Cards, Badges & Form Controls ---- */
.gc-card {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow-sm);
}

.gc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--gc-radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}
.gc-badge-primary { background: var(--gc-primary-soft); color: var(--gc-primary-deep); }
.gc-badge-muted { background: var(--gc-surface-soft); color: var(--gc-text-secondary); border: 1px solid var(--gc-border); }
.gc-badge-danger { background: var(--gc-danger-soft); color: var(--gc-danger); border: 1px solid rgba(194, 59, 69, 0.25); }
.gc-badge-success { background: var(--gc-success-soft); color: var(--gc-success); }
.gc-badge-warning { background: var(--gc-warning-soft); color: var(--gc-warning); }

/* Category Pill & Card Color Classes */
.cat-audit        { background: var(--gc-audit-bg);    color: var(--gc-audit-fg);    border-color: var(--gc-audit-bd) !important; }
.cat-installation { background: var(--gc-install-bg);  color: var(--gc-install-fg);  border-color: var(--gc-install-bd) !important; }
.cat-intervention { background: var(--gc-interv-bg);   color: var(--gc-interv-fg);   border-color: var(--gc-interv-bd) !important; }
.cat-meeting      { background: var(--gc-meeting-bg);  color: var(--gc-meeting-fg);  border-color: var(--gc-meeting-bd) !important; }
.cat-task         { background: var(--gc-task-bg);     color: var(--gc-task-fg);     border-color: var(--gc-task-bd) !important; }
.cat-personal     { background: var(--gc-personal-bg); color: var(--gc-personal-fg); border-color: var(--gc-personal-bd) !important; }
.cat-work         { background: var(--gc-work-bg);     color: var(--gc-work-fg);     border-color: var(--gc-work-bd) !important; }
.cat-urgent       { background: var(--gc-urgent-bg);   color: var(--gc-urgent-fg);   border-color: var(--gc-urgent-bd) !important; }
.cat-reminder     { background: var(--gc-reminder-bg); color: var(--gc-reminder-fg); border-color: var(--gc-reminder-bd) !important; }
.cat-blocked      { background: var(--gc-blocked-bg);  color: var(--gc-blocked-fg);  border-color: var(--gc-blocked-bd) !important; }
.cat-custom       { background: var(--gc-custom-bg);   color: var(--gc-custom-fg);   border-color: var(--gc-custom-bd) !important; }

.gc-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gc-text-secondary);
  margin-bottom: 5px;
}
.gc-input, .gc-select, .gc-textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--gc-border);
  background: var(--gc-surface);
  color: var(--gc-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gc-input:focus, .gc-select:focus, .gc-textarea:focus {
  border-color: var(--gc-primary);
  box-shadow: 0 0 0 3px rgba(84, 168, 199, 0.18);
}
.gc-textarea { resize: vertical; min-height: 76px; }
.gc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gc-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gc-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.gc-alert {
  padding: 11px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 13px;
}
.gc-alert-danger { background: var(--gc-danger-soft); color: var(--gc-danger); border: 1px solid rgba(194, 59, 69, 0.25); }
.gc-alert-success { background: var(--gc-success-soft); color: var(--gc-success); border: 1px solid rgba(15, 123, 95, 0.25); }
.gc-alert-info { background: var(--gc-primary-soft); color: var(--gc-primary-deep); border: 1px solid rgba(84, 168, 199, 0.3); }

/* ============================================================================
 * APP SHELL (Google Calendar Layout + GRID-MVC Header & Aqua Surfaces)
 * ============================================================================ */
.gc-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.gc-topbar {
  height: 62px;
  flex-shrink: 0;
  background: var(--gc-surface);
  border-bottom: 1px solid var(--gc-border);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 30;
}
.gc-topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 0; }
.gc-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--gc-text);
  white-space: nowrap;
}
.gc-brand span.gc-brand-accent { color: var(--gc-primary-deep); }

/* Primary Section Tabs (Calendar | Kanban | Sync Hub | Bookings | Analytics) */
.gc-section-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gc-surface-soft);
  padding: 4px;
  border-radius: var(--gc-radius-pill);
  border: 1px solid var(--gc-border);
}
.gc-section-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--gc-radius-pill);
  border: none;
  background: transparent;
  color: var(--gc-text-secondary);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.gc-section-tab:hover { color: var(--gc-text); background: var(--gc-surface-hover); }
.gc-section-tab.active {
  background: var(--gc-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(84, 168, 199, 0.35);
}

.gc-topbar-right { display: flex; align-items: center; gap: 6px; }

.gc-cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: var(--gc-radius-pill);
  border: 1.5px solid var(--gc-primary);
  background: var(--gc-surface);
  color: var(--gc-text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.gc-cmd-trigger:hover { background: var(--gc-primary-soft); color: var(--gc-text); }
.gc-kbd {
  font-family: var(--gc-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--gc-border);
  background: var(--gc-surface-soft);
  color: var(--gc-text-secondary);
  font-weight: 700;
}

.gc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Main Body (Sidebar + Workspace + Optional Right Tasks Drawer) ---- */
.gc-body {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.gc-sidebar {
  width: 274px;
  flex-shrink: 0;
  background: var(--gc-surface);
  border-right: 1px solid var(--gc-border);
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: margin-left 0.2s ease, opacity 0.2s ease;
}
.gc-sidebar.collapsed { margin-left: -274px; opacity: 0; pointer-events: none; }

.gc-create-fab {
  width: 100%;
  padding: 11px 18px;
  border-radius: var(--gc-radius-pill);
  border: none;
  background: var(--gc-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(84, 168, 199, 0.35);
  transition: transform 0.12s, background 0.15s;
}
.gc-create-fab:hover { background: var(--gc-primary-dark); transform: translateY(-1px); }

/* ---- Mini Month Picker (Google Calendar style) ---- */
.gc-mini-cal {
  background: var(--gc-surface-soft);
  border: 1px solid var(--gc-border);
  border-radius: 12px;
  padding: 10px;
}
.gc-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
}
.gc-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.gc-mini-dow {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gc-text-muted);
  padding: 3px 0;
}
.gc-mini-day {
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gc-text);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gc-mini-day:hover { background: var(--gc-primary-pale); }
.gc-mini-day.other { color: var(--gc-text-muted); opacity: 0.55; }
.gc-mini-day.today { background: var(--gc-primary); color: #ffffff; font-weight: 700; }
.gc-mini-day.selected:not(.today) { background: var(--gc-primary-pale); color: var(--gc-primary-deep); outline: 1.5px solid var(--gc-primary); }
.gc-mini-day.has-events::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gc-emerald);
}
.gc-mini-day.today.has-events::after { background: #ffffff; }

/* ---- Calendar Layer Checkboxes ---- */
.gc-sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gc-text-muted);
  margin-bottom: 8px;
}
.gc-cal-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.12s;
}
.gc-cal-layer:hover { background: var(--gc-surface-hover); }
.gc-cal-layer-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.gc-cal-actions { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.gc-cal-color-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1.5px solid var(--gc-border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}
.gc-cal-color-dot::-webkit-color-swatch-wrapper { padding: 0; }
.gc-cal-color-dot::-webkit-color-swatch { border: none; border-radius: 50%; }
.gc-cal-quick-btn {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--gc-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  padding: 0;
}
.gc-cal-quick-btn:hover { background: var(--gc-primary-soft); color: var(--gc-primary-deep); }
.gc-sortable-th { cursor: pointer; user-select: none; white-space: nowrap; }
.gc-sortable-th:hover { color: var(--gc-primary-deep); }
.gc-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--gc-primary-soft);
  border-bottom: 1px solid var(--gc-border);
  font-size: 12.5px;
}
.gc-att-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--gc-surface-soft);
  border: 1px solid var(--gc-border);
  font-size: 12px;
}
.gc-cal-swatch {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  border: 2px solid transparent;
}
.gc-cal-layer-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-source-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--gc-surface-soft);
  color: var(--gc-text-muted);
  border: 1px solid var(--gc-border);
  flex-shrink: 0;
}

/* ---- Main Workspace Area ---- */
.gc-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 18px 22px 28px;
}

/* ---- GRID-MVC Style Calendar Header & Toolbars ---- */
.gc-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.gc-page-title {
  margin: 4px 0 2px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gc-page-subtitle { margin: 0; color: var(--gc-text-muted); font-size: 13.5px; }

.gc-toolbar-card {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.gc-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gc-view-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  border-radius: var(--gc-radius-pill);
  background: var(--gc-surface-soft);
  border: 1px solid var(--gc-border);
}
.gc-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border: none;
  border-radius: var(--gc-radius-pill);
  background: transparent;
  color: var(--gc-text-muted);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.14s;
}
.gc-view-btn:hover { color: var(--gc-text); }
.gc-view-btn.active {
  background: var(--gc-primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(84, 168, 199, 0.35);
}

.gc-period-nav { display: flex; align-items: center; gap: 8px; }
.gc-period-label { font-size: 17px; font-weight: 700; margin-left: 6px; }

.gc-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.gc-legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--gc-grid-line);
  font-size: 12px;
  color: var(--gc-text-muted);
}
.gc-legend-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gc-legend-pill {
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
  cursor: pointer;
  transition: opacity 0.15s;
}
.gc-legend-pill:hover { opacity: 0.85; }

/* ============================================================================
 * TIME GRID (Google Calendar Proportional Week & Day Views)
 * ============================================================================ */
.gc-timegrid-card {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow-sm);
  overflow: hidden;
}
.gc-tg-header {
  display: grid;
  background: var(--gc-surface-soft);
  border-bottom: 1px solid var(--gc-border);
}
.gc-tg-gutter-head {
  padding: 10px 6px;
  border-right: 1px solid var(--gc-border);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-tg-day-head {
  padding: 10px 6px;
  text-align: center;
  border-right: 1px solid var(--gc-grid-line);
  cursor: pointer;
  transition: background 0.12s;
}
.gc-tg-day-head:last-child { border-right: none; }
.gc-tg-day-head:hover { background: var(--gc-surface-hover); }
.gc-tg-day-head.today { background: var(--gc-primary-soft); }
.gc-tg-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gc-text-muted); }
.gc-tg-dom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}
.gc-tg-day-head.today .gc-tg-dom { background: var(--gc-primary); color: #ffffff; }

.gc-allday-row {
  display: grid;
  border-bottom: 1px solid var(--gc-border);
  min-height: 36px;
  background: var(--gc-surface);
}
.gc-allday-label {
  border-right: 1px solid var(--gc-border);
  background: var(--gc-surface-soft);
  font-size: 10px;
  font-weight: 700;
  color: var(--gc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.gc-allday-cell {
  border-right: 1px solid var(--gc-grid-line);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.gc-allday-cell:last-child { border-right: none; }
.gc-allday-cell.today { background: var(--gc-primary-soft); }

.gc-tg-scroll {
  max-height: calc(100vh - 300px);
  min-height: 520px;
  overflow-y: auto;
  position: relative;
}
.gc-tg-body {
  display: grid;
  position: relative;
}
.gc-tg-hours {
  border-right: 1px solid var(--gc-border);
  background: var(--gc-surface-soft);
}
.gc-tg-hour-label {
  height: 56px;
  padding: 2px 8px 0 0;
  text-align: right;
  font-family: var(--gc-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gc-text-muted);
  border-bottom: 1px solid transparent;
}
.gc-tg-col {
  position: relative;
  border-right: 1px solid var(--gc-grid-line);
  min-width: 0;
}
.gc-tg-col:last-child { border-right: none; }
.gc-tg-col.today { background: rgba(84, 168, 199, 0.045); }
.gc-tg-slot {
  height: 56px;
  border-bottom: 1px solid var(--gc-grid-line);
  position: relative;
  cursor: pointer;
}
.gc-tg-slot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed rgba(124, 133, 150, 0.14);
  pointer-events: none;
}
.gc-tg-slot:hover { background: rgba(84, 168, 199, 0.06); }
.gc-tg-slot.drop-over { background: var(--gc-primary-pale) !important; outline: 2px dashed var(--gc-primary); outline-offset: -2px; }

.gc-tg-event {
  position: absolute;
  border-radius: 9px;
  border-left: 4px solid;
  padding: 4px 7px;
  font-size: 11.5px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--gc-shadow-xs);
  transition: box-shadow 0.12s, transform 0.1s;
  z-index: 4;
  user-select: none;
}
.gc-tg-event:hover { box-shadow: 0 6px 16px rgba(30, 34, 40, 0.15); z-index: 8; }
.gc-tg-event.conflict { outline: 2px solid var(--gc-danger); }
.gc-tg-event-time { font-family: var(--gc-mono); font-size: 10.5px; font-weight: 700; opacity: 0.9; }
.gc-tg-event-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-tg-event-meta { font-size: 10.5px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-tg-resize-handle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  cursor: ns-resize;
}
.gc-tg-resize-handle:hover { background: rgba(0, 0, 0, 0.12); }

.gc-now-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px solid #ef4444;
  z-index: 12;
  pointer-events: none;
}
.gc-now-dot {
  position: absolute;
  left: -5px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

/* ============================================================================
 * GRID-MVC WEEK CARD-STACK & TEAM RESOURCE DISPATCH VIEWS
 * ============================================================================ */
.gc-week-cards-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
}
.gc-day-col-card {
  background: var(--gc-surface-soft);
  border: 1px solid var(--gc-border);
  border-radius: 13px;
  min-height: 490px;
  display: flex;
  flex-direction: column;
}
.gc-day-col-card.today { background: var(--gc-primary-soft); border-color: var(--gc-primary); }
.gc-day-col-card.drop-over { outline: 2px dashed var(--gc-primary); background: var(--gc-primary-pale); }
.gc-day-col-head {
  padding: 12px;
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.gc-day-col-body { padding: 9px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.gc-app-card {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-left: 4px solid var(--gc-primary);
  border-radius: 11px;
  padding: 9px 10px;
  cursor: pointer;
  box-shadow: var(--gc-shadow-xs);
  transition: transform 0.12s, box-shadow 0.12s;
}
.gc-app-card:hover { transform: translateY(-1px); box-shadow: var(--gc-shadow-sm); }
.gc-app-card.conflict { border-color: var(--gc-danger); box-shadow: 0 0 0 1px var(--gc-danger); }

/* ============================================================================
 * MONTH GRID & YEAR OVERVIEW
 * ============================================================================ */
.gc-month-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.gc-month-table th {
  padding: 10px 6px;
  background: var(--gc-surface-soft);
  border-bottom: 1px solid var(--gc-border);
  border-right: 1px solid var(--gc-grid-line);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gc-text-muted);
}
.gc-month-table td {
  height: 126px;
  vertical-align: top;
  padding: 6px;
  border-right: 1px solid var(--gc-grid-line);
  border-bottom: 1px solid var(--gc-grid-line);
  background: var(--gc-surface);
  cursor: pointer;
  transition: background 0.12s;
}
.gc-month-table td:hover { background: var(--gc-primary-soft); }
.gc-month-table td.other-month { background: var(--gc-surface-soft); opacity: 0.65; }
.gc-month-table td.today { background: var(--gc-primary-soft); }
.gc-month-table td.drop-over { outline: 2px dashed var(--gc-primary); background: var(--gc-primary-pale); }

.gc-month-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 6px;
  border-left: 3px solid;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  cursor: pointer;
}
.gc-month-chip:hover { filter: brightness(0.96); }

.gc-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

/* ============================================================================
 * RIGHT-HAND TASKS TIME-BLOCKING DRAWER
 * ============================================================================ */
.gc-tasks-drawer {
  width: 310px;
  flex-shrink: 0;
  background: var(--gc-surface);
  border-left: 1px solid var(--gc-border);
  display: flex;
  flex-direction: column;
  transition: margin-right 0.2s ease, opacity 0.2s ease;
}
.gc-tasks-drawer.collapsed { margin-right: -310px; opacity: 0; pointer-events: none; }
.gc-drawer-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gc-drawer-body { padding: 12px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gc-drawer-task {
  background: var(--gc-surface-soft);
  border: 1px solid var(--gc-border);
  border-left: 4px solid var(--gc-primary);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: grab;
  transition: box-shadow 0.12s, transform 0.12s;
}
.gc-drawer-task:hover { box-shadow: var(--gc-shadow-xs); transform: translateY(-1px); }
.gc-drawer-task:active { cursor: grabbing; }

/* ============================================================================
 * KANBAN BOARD (GRID-MVC Style + Drag-and-Drop Columns + Subtasks + Pomodoro)
 * ============================================================================ */
.gc-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.gc-stat-card {
  border-radius: var(--gc-radius);
  padding: 14px 16px;
  text-align: center;
  border: 1px solid var(--gc-border);
  box-shadow: var(--gc-shadow-xs);
}
.gc-stat-num { font-size: 24px; font-weight: 700; line-height: 1.1; }
.gc-stat-label { font-size: 12px; font-weight: 600; margin-top: 3px; }

.gc-kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(195px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.gc-kanban-col {
  background: var(--gc-surface-soft);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.gc-kanban-col.drop-over { outline: 2px dashed var(--gc-primary); background: var(--gc-primary-soft); }
.gc-kanban-col-head {
  background: var(--gc-surface);
  padding: 12px 14px;
  border-radius: var(--gc-radius) var(--gc-radius) 0 0;
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.gc-kanban-col-body { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.gc-kanban-card {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--gc-shadow-xs);
  cursor: grab;
  transition: transform 0.14s, box-shadow 0.14s;
}
.gc-kanban-card:hover { transform: translateY(-2px); box-shadow: var(--gc-shadow-sm); }
.gc-progress-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--gc-border);
  overflow: hidden;
  margin-top: 5px;
}
.gc-progress-fill { height: 100%; background: var(--gc-emerald); border-radius: 99px; transition: width 0.2s; }

/* ---- Priority Badges ---- */
.prio-urgent { background: var(--gc-danger); color: #fff; }
.prio-high   { background: #fab758; color: #262b32; }
.prio-medium { background: var(--gc-primary); color: #fff; }
.prio-low    { background: #64748b; color: #fff; }

/* ============================================================================
 * MODALS, POPOVER, COMMAND PALETTE (Ctrl+K) & TOASTS
 * ============================================================================ */
.gc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 100;
}
.gc-modal-backdrop.open { display: flex; }
.gc-modal {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--gc-shadow-lg);
  overflow: hidden;
}
.gc-modal-sm { max-width: 480px; }
.gc-modal-lg { max-width: 780px; }
.gc-modal-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gc-modal-body { padding: 20px 22px; overflow-y: auto; }
.gc-modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--gc-surface-soft);
}

/* Command Palette */
.gc-cmd-modal { max-width: 660px; align-self: flex-start; margin-top: 8vh; }
.gc-cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gc-border);
}
.gc-cmd-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--gc-text);
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.gc-toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc-toast {
  background: var(--gc-text);
  color: var(--gc-surface);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--gc-shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: gcFadeUp 0.18s ease;
}
@keyframes gcFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Tables & Analytics Bars ---- */
.gc-table { width: 100%; border-collapse: collapse; }
.gc-table th, .gc-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gc-grid-line);
  text-align: left;
  font-size: 13px;
}
.gc-table th { background: var(--gc-surface-soft); font-size: 11.5px; text-transform: uppercase; color: var(--gc-text-muted); font-weight: 700; }

.gc-bar-track { height: 10px; border-radius: 99px; background: var(--gc-surface-soft); overflow: hidden; border: 1px solid var(--gc-border); }
.gc-bar-fill { height: 100%; border-radius: 99px; background: var(--gc-primary); transition: width 0.3s ease; }

/* ---- Public Auth & Booking Pages ---- */
.gc-public-body {
  min-height: 100vh;
  background: radial-gradient(circle at top right, var(--gc-primary-pale), transparent 55%), var(--gc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.gc-auth-wrap { width: 100%; max-width: 460px; }

.gc-slot-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--gc-border);
  background: var(--gc-surface);
  color: var(--gc-text);
  font-weight: 700;
  font-family: var(--gc-mono);
  cursor: pointer;
  transition: all 0.15s;
}
.gc-slot-btn:hover { border-color: var(--gc-primary); background: var(--gc-primary-soft); }
.gc-slot-btn.selected { border-color: var(--gc-primary); background: var(--gc-primary); color: #ffffff; }

/* ---- GRID-MAIL Contacts Picker & Inline Autocomplete ---- */
.gc-contact-picker {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.gc-contact-results {
  margin-top: 8px;
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid var(--gc-border);
  border-radius: 9px;
  background: var(--gc-surface);
}
.gc-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--gc-grid-line);
  transition: background 0.12s;
}
.gc-contact-row:last-child { border-bottom: none; }
.gc-contact-row:hover { background: var(--gc-primary-soft); }
.gc-contact-avatar {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--gc-emerald), var(--gc-primary));
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gc-contact-meta { min-width: 0; flex: 1; }
.gc-contact-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-contact-sub {
  font-size: 11px;
  color: var(--gc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.gc-contact-ac {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  max-height: 190px;
  overflow-y: auto;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: 10px;
  box-shadow: var(--gc-shadow-lg);
}
.gc-contact-ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-bottom: 1px solid var(--gc-grid-line);
  background: transparent;
  color: var(--gc-text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}
.gc-contact-ac-item:last-child { border-bottom: none; }
.gc-contact-ac-item:hover { background: var(--gc-primary-soft); }

/* ---- Settings Pages (Normal User Basic & Admin Advanced) ---- */
.gc-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: var(--gc-radius);
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  box-shadow: var(--gc-shadow-xs);
  margin-bottom: 18px;
}
.gc-settings-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--gc-text-secondary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gc-settings-tab:hover {
  color: var(--gc-text);
  background: var(--gc-surface-hover);
}
.gc-settings-tab.active {
  background: var(--gc-primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(84, 168, 199, 0.3);
}
.gc-settings-card {
  padding: 20px;
}
.gc-settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gc-grid-line);
}
.gc-settings-card-head h3 {
  margin: 0 0 3px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.gc-settings-card-head p {
  margin: 0;
  font-size: 12.5px;
}
.gc-avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 17px;
  box-shadow: var(--gc-shadow-xs);
}
.gc-swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--gc-surface);
  box-shadow: 0 0 0 1px var(--gc-border);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.gc-swatch-btn:hover { transform: scale(1.14); }
.gc-switch-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--gc-surface-soft);
  border: 1px solid var(--gc-border);
  cursor: pointer;
}
.gc-switch-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--gc-primary);
  flex-shrink: 0;
}
.gc-switch-label {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}
.gc-day-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gc-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--gc-radius-pill);
  border: 1px solid var(--gc-border);
  background: var(--gc-surface-soft);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.gc-day-pill:has(input:checked) {
  background: var(--gc-primary-soft);
  border-color: var(--gc-primary);
  color: var(--gc-primary-deep);
}
.gc-settings-savebar {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--gc-radius);
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  box-shadow: var(--gc-shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.gc-maint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--gc-surface-soft);
  border: 1px solid var(--gc-border);
  font-size: 13px;
}
.gc-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}
.gc-qr-box {
  background: #ffffff;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--gc-border);
  box-shadow: var(--gc-shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Utilities ---- */
.gc-hidden { display: none !important; }
.gc-mono { font-family: var(--gc-mono); }
.gc-muted { color: var(--gc-text-muted); }
.gc-flex { display: flex; align-items: center; gap: 8px; }
.gc-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---- Responsive (Compact Desktop 1440px, Tablet & Mobile 390px) ---- */
@media (max-width: 1520px) {
  .gc-cmd-trigger span { display: none; }
  .gc-section-tab { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 1080px) {
  .gc-sidebar { position: absolute; left: 0; top: 0; bottom: 0; z-index: 45; box-shadow: var(--gc-shadow-lg); }
  .gc-tasks-drawer { position: absolute; right: 0; top: 0; bottom: 0; z-index: 45; box-shadow: var(--gc-shadow-lg); }
  .gc-filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .gc-topbar { padding: 0 8px; gap: 6px; overflow-x: auto; justify-content: flex-start; }
  .gc-topbar-left, .gc-section-nav, .gc-topbar-right { flex-shrink: 0; }
  .gc-brand-text, .gc-hide-sm, .gc-cmd-trigger span, .gc-cmd-trigger .gc-kbd, #btnShowShortcuts { display: none; }
  .gc-section-tab { padding: 6px 9px; }
  .gc-section-tab span { display: none; }
  .gc-topbar-left, .gc-topbar-right { gap: 4px; }
  .gc-cmd-trigger { padding: 6px 9px; }
  .gc-main { padding: 12px 10px 24px; }
  .gc-grid-2, .gc-grid-3, .gc-grid-4, .gc-filter-bar { grid-template-columns: 1fr; }
  .gc-week-cards-grid { grid-template-columns: repeat(7, minmax(220px, 1fr)); }
}
@media (max-width: 480px) {
  .gc-brand { display: none; }
  #selTopLang { display: none; }
}
