/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-hover: #222222;
  --border: #2a2a2a;
  --border-light: #333333;
  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #555555;

  --color-professional: #3b82f6;
  --color-personal: #a855f7;
  --color-fitness: #22c55e;
  --color-leisure: #f59e0b;
  --color-travel: #06b6d4;
  --color-deadline: #ef4444;
  --color-birthday: #ec4899;

  --color-habit-1: #22c55e;
  --color-habit-2: #a855f7;
  --color-habit-3: #3b82f6;
  --color-habit-4: #f59e0b;
  --color-habit-5: #ef4444;
  --color-habit-6: #06b6d4;
  --color-habit-7: #ec4899;
  --color-habit-8: #f97316;
  --color-habit-9: #84cc16;
  --color-habit-10: #8b5cf6;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: var(--font);
  font-size: 13px;
}

/* ===========================
   TOP NAV
   =========================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  gap: 0;
}

.nav-left {
  flex: 1;
}

.wordmark {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.nav-center {
  display: flex;
  gap: 2px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
  margin-top: 52px;
  min-height: calc(100vh - 52px);
  padding: 32px 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.section.active {
  display: block;
  opacity: 1;
}

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-xs);
  padding: 7px 14px;
  font-weight: 500;
  font-size: 13px;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-primary.small {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-danger {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-xs);
  padding: 7px 14px;
  font-size: 13px;
  transition: background 0.15s;
}

.btn-danger:hover {
  background: rgba(239,68,68,0.22);
}

.modal-footer-split {
  justify-content: space-between !important;
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 7px 14px;
  font-size: 13px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ===========================
   HOME LAYOUT — vertical stack
   =========================== */
/* Must use #home.active so ID specificity doesn't override .section { display:none } */
#home.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tasks section needs full-viewport height for the split layout */
#tasks.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px - 64px);
  overflow: hidden;
}

/* ===========================
   DOSIS DIARIA WIDGET
   =========================== */
.dosis-widget {
  padding: 16px 20px 12px;
  position: relative;
}

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

.dosis-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dosis-full-link {
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.dosis-full-link:hover {
  color: var(--text-secondary);
}

.dosis-grid-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dosis-grid-inner {
  flex: 1;
  overflow: hidden;
}

/* Clip height to 9 habit rows: each row is 32px + 4px gap = 36px × 9 = 324px */
.dosis-grid-inner .habits-grid-wrapper {
  max-height: 324px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.dosis-scroll-arrows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.dosis-arrow {
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.dosis-arrow:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.dosis-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ===========================
   HOME 3-COLUMN ROW
   =========================== */
.home-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.home-col {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 480px;
}

.home-col-heading {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-day-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.home-day-header .home-col-heading {
  flex: 1;
  margin-bottom: 0;
}
.day-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.day-nav-btn:hover {
  color: var(--text-primary);
}

.home-todo-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.home-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: var(--radius-xs);
  cursor: grab;
  transition: background 0.12s;
}

.home-todo-item:hover {
  background: var(--bg-hover);
}

.add-task-inline-btn {
  font-size: 12px;
  color: var(--text-muted);
  text-align: left;
  padding: 4px 0;
  transition: color 0.15s;
  margin-top: auto;
}

.add-task-inline-btn:hover {
  color: var(--text-secondary);
}

.home-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reading-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ===========================
   HOME WEEKLY CALENDAR WIDGET
   =========================== */
.home-week-widget {
  padding: 20px;
}

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

.week-widget-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.week-nav-arrows {
  display: flex;
  gap: 4px;
}

.week-nav-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.week-nav-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.week-widget-grid {
  display: flex;
  flex-direction: column;
}

.week-day-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  min-height: 120px;
  transition: background 0.15s;
  border: 1px solid transparent;
}

.week-day-col:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.week-day-col.today-col {
  border-color: var(--border-light);
  background: rgba(255,255,255,0.02);
}

.week-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.week-day-name {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.week-day-num {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1;
}

.week-day-col.today-col .week-day-num {
  color: var(--text-primary);
  font-weight: 600;
}

.week-day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.week-event-chip {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #fff;
}

.week-empty {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 8px;
}

/* ===========================
   CALENDAR — NAV ARROWS + TOOLBAR UPDATE
   =========================== */
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

/* ===========================
   TASKS — WEEKLY PLANNER
   =========================== */
.planner-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weekly-planner-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  height: calc(100% - 60px);
  overflow-y: auto;
}

.wk-col {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 400px;
}

.wk-col.wk-today {
  border-color: var(--border-light);
}

.wk-col-header {
  padding: 8px;
  text-align: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.wk-col-dayname {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wk-col-date {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.2;
}

.wk-today .wk-col-date {
  color: var(--text-primary);
  font-weight: 600;
}

.wk-col-body {
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100px;
  transition: background 0.1s;
}

.wk-col-body.drag-over {
  background: rgba(59, 130, 246, 0.06);
}

.wk-task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  color: var(--text-primary);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  line-height: 1.3;
}

.wk-task-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wk-task-remove {
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.wk-task-remove:hover {
  color: var(--text-secondary);
}

/* ===========================
   MINI CALENDAR STRIP
   =========================== */
.mini-cal-card {
  padding: 20px;
}

.mini-cal-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.mini-cal-month {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-cal-grid {
  width: 100%;
}

.mini-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.mini-cal-weekdays span {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 0;
}

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

.mini-cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  padding: 4px 2px;
  min-height: 48px;
  transition: background 0.15s;
  gap: 2px;
}

.mini-cal-day:hover {
  background: var(--bg-hover);
}

.mini-cal-day.today {
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.mini-cal-day.today .day-num {
  color: var(--text-primary);
  font-weight: 600;
}

.day-num {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1;
}

.day-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.day-dots {
  display: flex;
  gap: 2px;
  height: 5px;
  align-items: center;
}

.day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

/* ===========================
   TODAY CARD
   =========================== */
.today-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.today-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.today-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.today-time {
  font-size: 12px;
  color: var(--text-muted);
  width: 44px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.today-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.today-name {
  font-size: 13px;
  color: var(--text-primary);
}

/* ===========================
   QUICK ADD
   =========================== */
.quick-add {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
}

.quick-add-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
}

.quick-add-input::placeholder {
  color: var(--text-muted);
}

.quick-add-btn {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 5px 14px;
  font-size: 12px;
  transition: all 0.15s;
}

.quick-add-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ===========================
   HOME RIGHT — READING
   =========================== */
.reading-heading {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 0;
}

.reading-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: background 0.15s;
  cursor: pointer;
}

.reading-card:hover {
  background: var(--bg-hover);
}

.reading-source {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.reading-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reading-link {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.reading-card:hover .reading-link {
  color: var(--text-secondary);
}

.open-reader-link {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  transition: color 0.15s;
}

.open-reader-link:hover {
  color: var(--text-secondary);
}

/* ===========================
   CALENDAR SECTION
   =========================== */

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-view-btns {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 3px;
}

.view-btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.view-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.view-btn.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ===========================
   FULLCALENDAR DARK OVERRIDES
   =========================== */
#calendarEl {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.fc {
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
}

.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
  border-color: rgba(255,255,255,0.12) !important;
}

.fc-theme-standard .fc-scrollgrid {
  border: none !important;
}

.fc .fc-toolbar {
  display: none !important;
}

.fc .fc-col-header-cell {
  background: transparent;
  border-bottom: 1px solid var(--border) !important;
}

.fc .fc-col-header-cell-cushion {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 4px;
  text-decoration: none;
}

.fc .fc-daygrid-day {
  background: transparent;
}

.fc .fc-daygrid-day:hover {
  background: var(--bg-hover);
  cursor: pointer;
}

.fc .fc-daygrid-day-number {
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  padding: 6px 8px;
}

.fc .fc-day-today {
  background: rgba(255,255,255,0.03) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
  color: var(--text-primary);
  font-weight: 600;
}

.fc .fc-event {
  border: none;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}

.fc .fc-event-title {
  font-weight: 500;
}

.fc .fc-multimonth-title {
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 0 8px;
  cursor: pointer;
}

.fc .fc-multimonth-month {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}

.fc .fc-timegrid-slot {
  height: 28px;
  border-color: var(--border) !important;
}

.fc .fc-timegrid-slot-label {
  color: var(--text-muted);
  font-size: 11px;
  vertical-align: top;
  padding-top: 4px;
}

.fc .fc-timegrid-axis {
  border-color: var(--border) !important;
}

.fc .fc-popover {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.fc .fc-popover-header {
  background: var(--bg-hover);
  color: var(--text-primary);
  font-size: 12px;
  padding: 8px 12px;
}

.fc .fc-popover-body {
  padding: 8px;
}

.fc .fc-more-link {
  color: var(--text-secondary);
  font-size: 11px;
}

.fc .fc-daygrid-more-link {
  color: var(--text-muted);
  font-size: 10px;
}

/* ===========================
   TASKS SECTION
   =========================== */
.tasks-layout {
  display: flex;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

.tasks-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tasks-group {
  margin-bottom: 8px;
}

.tasks-group-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 0 8px;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius-xs);
  cursor: grab;
  transition: background 0.12s;
  user-select: none;
}

.task-item:hover {
  background: var(--bg-hover);
}

.task-item.dragging {
  opacity: 0.5;
}

.task-checkbox {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: transparent;
}

.task-checkbox.checked {
  background: var(--text-muted);
  border-color: var(--text-muted);
}

.task-checkbox.checked::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--bg-primary);
  border-bottom: 1.5px solid var(--bg-primary);
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.task-time {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  width: 36px;
  flex-shrink: 0;
}

.task-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.task-title {
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-item.completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.add-task-btn {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 4px;
  text-align: left;
  transition: color 0.15s;
  margin-top: 4px;
}

.add-task-btn:hover {
  color: var(--text-secondary);
}

.add-task-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.add-task-form input,
.add-task-form select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 7px 10px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  font-size: 12px;
  transition: border-color 0.15s;
}

.add-task-form input:focus,
.add-task-form select:focus {
  border-color: var(--border-light);
}

.add-task-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.hidden {
  display: none !important;
}

/* ===========================
   TASKS PLANNER PANEL
   =========================== */
.planner-panel {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
}

.planner-task-remove {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.planner-task-remove:hover {
  color: var(--text-secondary);
}

/* ===========================
   HABITS SECTION
   =========================== */
.habits-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.habits-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.habits-grid-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.habits-grid-wrapper {
  display: table;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Table structure approach for sticky left col */
.habits-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
}

.habits-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
  padding: 0;
}

.habits-table thead th:first-child {
  left: 0;
  z-index: 20;
  min-width: 180px;
}

.habits-table .habit-name-cell {
  position: sticky;
  left: 0;
  background: var(--bg-card);
  z-index: 5;
  min-width: 180px;
  max-width: 180px;
  padding: 4px 16px 4px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
}

.habit-color-sq {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.habit-name-text {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}

.habit-header-name {
  position: sticky;
  left: 0;
  background: var(--bg-card);
  z-index: 20;
  min-width: 180px;
  border-right: 1px solid var(--border);
  height: 28px;
}

.habit-month-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 6px 2px;
  white-space: nowrap;
}

.habit-month-spacer {
  height: 28px;
  min-width: 2px;
}

.habit-cell-td {
  padding: 2px;
  vertical-align: middle;
}

.habit-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: block;
  transition: opacity 0.12s, transform 0.1s;
  flex-shrink: 0;
}

.habit-cell:hover {
  transform: scale(1.2);
}

.habit-cell.filled {
  border-color: transparent;
}

.habit-cell.inactive {
  background: rgba(255,255,255,0.02);
  border-color: var(--border);
  cursor: default;
  opacity: 0.4;
}

.habit-cell.inactive:hover {
  transform: none;
}

.habit-month-divider {
  width: 2px;
  background: var(--border-light);
  padding: 0;
}

.habits-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Color swatches */
.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.1s;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.selected {
  border-color: var(--text-primary);
}

/* ===========================
   READER SECTION
   =========================== */
.reader-layout {
  display: flex;
  gap: 0;
  height: calc(100vh - 52px - 64px);
  overflow: hidden;
}

.reader-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reader-sidebar-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.reader-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 16px;
}

.reader-nav-link {
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.12s;
  display: block;
}

.reader-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.reader-nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.reader-sources-heading {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 0 4px;
}

.reader-sources {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.reader-source-item {
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.12s;
}

.reader-source-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.reader-source-item.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.source-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.add-feed-link {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 10px;
  margin-top: 8px;
  display: block;
  transition: color 0.15s;
}

.add-feed-link:hover {
  color: var(--text-secondary);
}

/* ===========================
   READER FEED
   =========================== */
.reader-feed {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px 28px;
}

.feed-group-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 24px 0 12px;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 2;
}

.article-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.article-card:last-child {
  border-bottom: none;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.article-source {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-date {
  font-size: 11px;
  color: var(--text-muted);
}

.article-headline {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-read-link {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.article-read-link:hover {
  color: var(--text-secondary);
}

/* ===========================
   ASSISTANT FLOATING
   =========================== */
.assistant-fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.assistant-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: all 0.2s;
  flex-shrink: 0;
}

.assistant-fab:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.assistant-panel {
  width: 400px;
  height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.2s ease;
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.assistant-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.assistant-close {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.15s;
}

.assistant-close:hover {
  color: var(--text-primary);
}

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assistant-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 80%;
}

.assistant-msg.user {
  align-self: flex-end;
  align-items: flex-end;
}

.assistant-msg.bot {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-time {
  font-size: 10px;
  color: var(--text-muted);
}

.msg-bubble {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.assistant-msg.user .msg-bubble {
  background: var(--color-professional);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.assistant-msg.bot .msg-bubble {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.assistant-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.assistant-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  color: var(--text-primary);
  outline: none;
  font-size: 13px;
  transition: border-color 0.15s;
}

.assistant-input:focus {
  border-color: var(--border-light);
}

.assistant-input::placeholder {
  color: var(--text-muted);
}

.assistant-send {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.assistant-send:hover {
  opacity: 0.85;
}

/* ===========================
   MODALS
   =========================== */
dialog.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 0;
  width: 420px;
  max-width: calc(100vw - 48px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

dialog.modal::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}

.modal-inner {
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: -6px;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 9px 12px;
  color: var(--text-primary);
  outline: none;
  font-size: 13px;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--border-light);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
  font-family: var(--font);
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

select.form-input option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===========================
   SCROLLBAR STYLING
   =========================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===========================
   RESPONSIVE UTILITY
   =========================== */
@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-right {
    display: none;
  }

  .tasks-sidebar {
    width: 220px;
  }
}

/* ===========================
   TIME GRID — shared by Tasks weekly planner + Home weekly widget
   PX_PER_HOUR = 52. Hours 7am–11pm shown = 16 hours = 832px grid height.
   =========================== */
:root {
  --tg-hour: 52px;
  --tg-start-hour: 7;   /* 7 AM */
  --tg-end-hour: 23;    /* 11 PM */
  --tg-hours: 16;
  --tg-height: calc(var(--tg-hour) * var(--tg-hours)); /* 832px */
}

/* Outer wrapper (contains time-axis + day columns) */
.tg-wrap {
  display: flex;
  flex: 1;
  overflow-y: auto;
  position: relative;
}

/* Thin left column with hour labels */
.tg-axis {
  width: 52px;
  flex-shrink: 0;
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--bg-primary);
}

.tg-axis-inner {
  height: var(--tg-height);
  position: relative;
}

.tg-hour-label {
  position: absolute;
  right: 8px;
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: translateY(-50%);  /* centre on grid line */
}

/* Day columns area */
.tg-days {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
}

/* Horizontal grid lines (background of the day area) */
.tg-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.tg-grid-line {
  position: absolute;
  left: 0; right: 0;
  border-top: 1px solid var(--border);
  height: 0;
}

/* Each day column */
.tg-day-col {
  position: relative;
  height: var(--tg-height);
  border-left: 1px solid var(--border);
}

.tg-day-col:first-child {
  border-left: none;
}

/* Today column highlight */
.tg-day-col.tg-today {
  background: rgba(255,255,255,0.015);
}

/* Drag-over highlight on day column (replaces overlay approach) */
.tg-day-col.drag-over {
  background: rgba(59,130,246,0.07);
}

/* Event/task chip inside time grid */
.tg-chip {
  position: absolute;
  left: 3px; right: 3px;
  min-height: 20px;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: default;
  z-index: 2;
}

.chip-drag-handle {
  cursor: grab;
  opacity: 0.5;
  font-size: 9px;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
}
.chip-drag-handle:active { cursor: grabbing; }

/* Drop zone overlay for drag-and-drop (covers full column) */
.tg-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: background 0.1s;
}

.tg-drop-overlay.drag-over {
  background: rgba(59,130,246,0.07);
}

/* ===========================
   HOME DAY PLANNER (Today's Activities column)
   =========================== */
.home-day-planner {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* ===========================
   HOME WEEKLY WIDGET — time grid version
   =========================== */
.home-week-widget {
  padding: 20px;
  /* taller than before */
}

.week-tg-wrap {
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  height: 340px;
  position: relative;
  margin-top: 12px;
}

/* Day headers row pinned above the scroll area */
.week-tg-headers {
  display: grid;
  grid-template-columns: 52px repeat(7, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.week-tg-header-axis {
  width: 52px;
}

.week-tg-header-day {
  text-align: center;
  padding: 8px 4px;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 1px solid var(--border);
}

.week-tg-header-day:hover {
  background: var(--bg-hover);
}

.week-tg-header-day.tg-today-header {
  background: rgba(255,255,255,0.02);
}

.week-tg-header-day .week-day-name {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.week-tg-header-day .week-day-num {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.1;
}

.week-tg-header-day.tg-today-header .week-day-num {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===========================
   TASKS WEEKLY PLANNER — time grid version
   =========================== */
.weekly-planner-grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.wk-headers-row {
  display: grid;
  grid-template-columns: 52px repeat(7, 1fr);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.wk-header-axis {
  width: 52px;
  background: var(--bg-primary);
}

.wk-col-header {
  text-align: center;
  padding: 8px 4px;
  border-left: 1px solid var(--border);
}

.wk-tg-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
}

/* Now-indicator line */
.tg-now-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: #ef4444;
  z-index: 10;
  pointer-events: none;
}

.tg-now-dot {
  position: absolute;
  left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  top: -3px;
}

/* ===========================
   FULLCALENDAR — DARK THEME OVERRIDES
   FullCalendar defaults to a white/light background.
   These overrides force it into our dark palette.
   =========================== */
.fc {
  --fc-page-bg-color:              var(--bg-card);
  --fc-neutral-bg-color:           var(--bg-secondary);
  --fc-neutral-text-color:         var(--text-secondary);
  --fc-border-color:               rgba(255,255,255,0.1);
  --fc-button-bg-color:            var(--bg-hover);
  --fc-button-border-color:        var(--border);
  --fc-button-hover-bg-color:      var(--bg-secondary);
  --fc-button-active-bg-color:     var(--border-light);
  --fc-today-bg-color:             rgba(255,255,255,0.03);
  --fc-list-event-hover-bg-color:  var(--bg-hover);
  color: var(--text-primary);
}

/* All cell borders */
.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
  border-color: rgba(255,255,255,0.1) !important;
}

/* All daygrid day cells */
.fc .fc-daygrid-day,
.fc .fc-timegrid-slot {
  background: var(--bg-card) !important;
}

/* Other-month days */
.fc .fc-daygrid-day.fc-day-other {
  background: var(--bg-secondary) !important;
}

/* Today highlight */
.fc .fc-daygrid-day.fc-day-today,
.fc .fc-timegrid-col.fc-day-today {
  background: rgba(255,255,255,0.025) !important;
}

/* Column headers (Mon, Tue…) */
.fc .fc-col-header-cell {
  background: var(--bg-secondary) !important;
}

.fc .fc-col-header-cell-cushion {
  color: var(--text-muted) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
}

/* Day number links */
.fc .fc-daygrid-day-number {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-size: 11px !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

/* MultiMonth specific — each mini month */
.fc .fc-multimonth,
.fc .fc-multimonth-month {
  background: var(--bg-card) !important;
}

.fc .fc-multimonth-header,
.fc .fc-multimonth-daygrid {
  background: var(--bg-card) !important;
}

.fc .fc-multimonth-title {
  color: var(--text-primary) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 10px 0 6px !important;
}

/* Timegrid slots */
.fc .fc-timegrid-slot-label-cushion {
  color: var(--text-muted) !important;
  font-size: 10px !important;
}

.fc .fc-timegrid-axis {
  background: var(--bg-card) !important;
}

/* Vertical day-column dividers in Week view — box-shadow bypasses border-collapse */
.fc .fc-timegrid-col,
.fc .fc-col-header-cell {
  box-shadow: inset -2px 0 0 rgba(255,255,255,0.45) !important;
}

/* ===========================
   FULLCALENDAR — COMPACT MONTH VIEW
   Same visual density as the mini-months in 3-month view,
   but scaled to full width (bigger cells, same proportions).
   =========================== */
.fc-dayGridMonth-view .fc-daygrid-day-frame {
  min-height: 52px !important;
}

.fc-dayGridMonth-view .fc-daygrid-day-top {
  padding: 2px 4px !important;
}

.fc-dayGridMonth-view .fc-daygrid-day-number {
  font-size: 11px !important;
  font-weight: 400 !important;
  padding: 2px 4px !important;
}

.fc-dayGridMonth-view .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  font-weight: 700 !important;
}

.fc-dayGridMonth-view .fc-col-header-cell-cushion {
  padding: 4px 0 !important;
}
