/* =====================================================================
   Calendar 2.0 — Premium Garden Calendar visual system
   Tokens, components, and layouts shared across Today, Week, Month,
   Season, and Plant views. All classes are namespaced gsf-cal2-* so
   they can coexist with the legacy gsf-calendar-/gsf-cal-/gsf-timeline-
   classes during the transition.
   ====================================================================== */

:root {
  /* Stage lifecycle palette — domain colors, kept distinct.
     Drives every chip/bar across the calendar. */
  --gsf-stage-germination: hsl(40 95% 65%);
  --gsf-stage-seedling: hsl(80 70% 55%);
  --gsf-stage-vegetative: hsl(140 55% 45%);
  --gsf-stage-flowering: hsl(330 70% 65%);
  --gsf-stage-fruiting: hsl(25 85% 55%);
  --gsf-stage-harvest: hsl(8 80% 55%);
  --gsf-stage-postharvest: hsl(220 10% 55%);
  --gsf-stage-care: hsl(200 65% 55%);
  --gsf-stage-other: hsl(220 8% 50%);

  /* Calendar tokens are now thin aliases over the global gsf-* tokens
     so the calendar surface matches the rest of the app. */
  --gsf-cal2-radius: var(--gsf-radius-sm);
  --gsf-cal2-radius-sm: 10px;
  --gsf-cal2-bar-h: 26px;
  --gsf-cal2-bar-h-sm: 18px;
  --gsf-cal2-row-pad-y: 0.55rem;

  --gsf-cal2-surface: var(--gsf-surface-2);
  --gsf-cal2-surface-2: var(--gsf-surface);
  --gsf-cal2-surface-3: var(--gsf-surface-3);
  --gsf-cal2-border: var(--gsf-border);
  --gsf-cal2-border-strong: var(--gsf-border-2);
  --gsf-cal2-text-muted: var(--gsf-muted-2);
  --gsf-cal2-text-faint: var(--gsf-muted-3);

  --gsf-cal2-today: var(--gsf-accent);
  --gsf-cal2-frost-late: hsl(200 70% 65%);
  --gsf-cal2-frost-first: hsl(220 70% 70%);
}

/* =====================================================================
   Calendar toolbar — single compact strip at the top of /calendar that
   replaces the previous eyebrow + title + subtitle + divider header. One
   flex row: view tabs · content filter chips · plant filter popover.
   Wraps gracefully on mobile (plant filter falls to its own row last).
   ===================================================================== */
.gsf-cal2-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.gsf-cal2-toolbar__tabs {
  display: inline-flex;
  background: var(--gsf-cal2-surface-2);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex: 0 0 auto;
}

.gsf-cal2-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

/* Subtle vertical separator that renders between groups on wide screens
   using the gap; on narrow screens groups stack so no separator is needed. */
.gsf-cal2-toolbar__tabs + .gsf-cal2-toolbar__chips,
.gsf-cal2-toolbar__chips + .gsf-cal2-toolbar__plant {
  position: relative;
}

.gsf-cal2-toolbar__tabs + .gsf-cal2-toolbar__chips::before,
.gsf-cal2-toolbar__chips + .gsf-cal2-toolbar__plant::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: var(--gsf-cal2-border);
}

/* Plant filter docks to the right on wide screens, falls below on narrow. */
.gsf-cal2-toolbar__plant {
  margin-left: auto;
  flex: 0 0 auto;
}

.gsf-cal2-toolbar .gsf-cal2-mobile-filter-toggle {
  display: none;
}

.gsf-cal2-filter-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gsf-cal2-surface-3);
  border: 1px solid var(--gsf-cal2-border-strong);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 720px) {
  .gsf-cal2-toolbar { padding: 0; gap: 0.5rem; }
  .gsf-cal2-toolbar__plant { margin-left: 0; }
  .gsf-cal2-toolbar__tabs + .gsf-cal2-toolbar__chips::before,
  .gsf-cal2-toolbar__chips + .gsf-cal2-toolbar__plant::before {
    display: none;
  }
}

/* =====================================================================
   View tabs (Season / Week) — pure-state click handlers, no navigation.
   The wrapper styling lives in .gsf-cal2-toolbar__tabs above.
   ===================================================================== */
.gsf-cal2-viewtab {
  border: 0;
  background: transparent;
  color: var(--gsf-cal2-text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.gsf-cal2-viewtab i { font-size: 0.9rem; }

.gsf-cal2-viewtab:hover:not(.is-active) { color: #fff; }

.gsf-cal2-viewtab.is-active {
  background: linear-gradient(135deg, hsl(140 55% 35%), hsl(150 60% 28%));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 4px 12px rgba(0,0,0,0.25);
}

/* =====================================================================
   Plant filter — toolbar pill that opens a popover with a checkbox list
   of every plant in the active garden.
   ===================================================================== */
.gsf-cal2-plantfilter {
  position: relative;
  display: inline-block;
}

.gsf-cal2-plantfilter-caret {
  font-size: 0.65rem !important;
  opacity: 0.7;
  margin-left: 2px;
}

.gsf-cal2-plantfilter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: transparent;
}

.gsf-cal2-plantfilter-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 31;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 24px));
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border-strong);
  border-radius: var(--gsf-cal2-radius);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  padding: 0.65rem 0.7rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 60vh;
}

.gsf-cal2-plantfilter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gsf-cal2-text-muted);
}

.gsf-cal2-plantfilter-actions { display: flex; gap: 0.35rem; }

.gsf-cal2-plantfilter-link {
  background: transparent;
  border: 0;
  color: var(--gsf-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gsf-cal2-plantfilter-link:hover:not(:disabled) { background: rgba(255,255,255,0.05); }
.gsf-cal2-plantfilter-link:disabled { opacity: 0.4; cursor: not-allowed; }

.gsf-cal2-plantfilter-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  margin: 0 -0.4rem;
}

.gsf-cal2-plantfilter-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.4rem;
  min-height: 38px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: #fff;
}

.gsf-cal2-plantfilter-row:hover { background: rgba(255,255,255,0.04); }

.gsf-cal2-plantfilter-row:has(input:checked) {
  background: hsla(140 50% 36% / 0.18);
  box-shadow: inset 0 0 0 1px hsla(140 50% 60% / 0.18);
}

.gsf-cal2-plantfilter-row input[type="checkbox"] {
  accent-color: var(--gsf-accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex: 0 0 auto;
}

.gsf-cal2-plantfilter-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--gsf-cal2-surface-3);
  border: 1px solid rgba(0,0,0,0.3);
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.gsf-cal2-plantfilter-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsf-cal2-plantfilter-close {
  background: var(--gsf-cal2-surface-2);
  border: 1px solid var(--gsf-cal2-border);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-end;
}

.gsf-cal2-plantfilter-close:hover {
  background: var(--gsf-cal2-surface-3);
  border-color: var(--gsf-cal2-border-strong);
}

/* On narrow viewports the popover docks to the bottom of the screen, clearing
   the GsfMobileDock (~120px tall including the safe-area inset) plus a small
   gutter so the "Done" button is always tappable. */
@media (max-width: 540px) {
  .gsf-cal2-plantfilter-pop {
    position: fixed;
    top: auto;
    right: 12px;
    left: 12px;
    bottom: calc(120px + var(--gsf-safe-bottom, 0px) + 12px);
    max-width: none;
    max-height: min(60vh, calc(100vh - 200px - var(--gsf-safe-bottom, 0px)));
    background: hsl(135 18% 10%);
    border-color: hsla(140 50% 56% / 0.35);
    box-shadow: 0 18px 50px rgba(0,0,0,0.62);
  }

  .gsf-cal2-plantfilter-backdrop {
    background: rgba(0,0,0,0.38);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  /* The inner list still owns its own scroll — it needs an explicit min-height
     above zero (some mobile browsers collapse it otherwise) so the bottom rows
     stay reachable when many plants are checked. */
  .gsf-cal2-plantfilter-list {
    min-height: 80px;
    flex: 1 1 auto;
  }

  .gsf-cal2-plantfilter-row {
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    gap: 0.65rem;
    border-radius: 9px;
    font-size: 0.92rem;
    background: hsl(135 16% 13%);
  }

  .gsf-cal2-plantfilter-row:has(input:checked) {
    background: hsl(138 28% 18%);
  }

  .gsf-cal2-plantfilter-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .gsf-cal2-plantfilter-swatch {
    width: 18px;
    height: 18px;
    border-radius: 5px;
  }

  .gsf-cal2-plantfilter-close {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }
}

/* =====================================================================
   Filter pills — toggleable content filters, visually distinct from
   the view tabs above them.
   ===================================================================== */
.gsf-cal2-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.7rem;
  background: transparent;
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 999px;
  color: var(--gsf-cal2-text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 100ms, color 100ms, border-color 100ms;
  white-space: nowrap;
  line-height: 1.5;
  text-decoration: none;
}

.gsf-cal2-filter-pill i { font-size: 0.8rem; }

.gsf-cal2-filter-pill:hover:not(:disabled) {
  color: #fff;
  border-color: var(--gsf-cal2-border-strong);
  background: rgba(255,255,255,0.05);
}

.gsf-cal2-filter-pill:disabled,
.gsf-cal2-filter-pill--locked {
  opacity: 0.35;
  cursor: not-allowed;
}

.gsf-cal2-filter-pill--on {
  background: rgba(255,255,255,0.09);
  color: #fff;
  border-color: var(--gsf-cal2-border-strong);
}

/* =====================================================================
   Shell — header tabs, garden picker, filters
   ===================================================================== */
.gsf-cal2-page {
  padding-bottom: 140px;
}

.gsf-cal2-page .gsf-pageheader {
  margin-bottom: 0.65rem;
}

@media (max-width: 720px) {
  .gsf-cal2-page .gsf-pageheader {
    margin-bottom: 0.45rem;
  }
}

@media (max-width: 575.98px) {
  .gsf-cal2-header.gsf-pageheader {
    gap: 7px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .gsf-cal2-header .gsf-pageheader__row {
    gap: 6px;
  }

  .gsf-cal2-header .gsf-pageheader__identity {
    gap: 2px;
  }

  .gsf-cal2-header .gsf-pageheader__eyebrow,
  .gsf-cal2-header .gsf-pageheader__subtitle,
  .gsf-cal2-header .gsf-pageheader__context {
    display: none;
  }

  .gsf-cal2-header .gsf-pageheader__title {
    font-size: 1.08rem;
    line-height: 1.1;
  }

  .gsf-cal2-header .gsf-pageheader__tabs {
    border-top: 0;
    padding-top: 4px;
  }

  .gsf-cal2-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.42rem;
  }

  .gsf-cal2-toolbar__tabs {
    min-width: 0;
  }

  .gsf-cal2-viewtab {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .gsf-cal2-toolbar .gsf-cal2-mobile-filter-toggle {
    display: inline-flex;
    min-height: 36px;
    justify-content: center;
  }

  .gsf-cal2-toolbar__chips {
    display: none;
    grid-column: 1 / -1;
    padding: 0.5rem;
    border: 1px solid var(--gsf-cal2-border);
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
  }

  .gsf-cal2-toolbar__chips.is-open {
    display: flex;
  }

  .gsf-cal2-toolbar__plant {
    min-width: 0;
    justify-self: end;
  }

  .gsf-cal2-toolbar__plant .gsf-cal2-filter-pill {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 390px) {
  .gsf-cal2-viewtab {
    padding-inline: 8px;
  }

  .gsf-cal2-mobile-filter-toggle {
    padding-inline: 0.55rem;
  }
}

.gsf-cal2-shell {
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(11, 15, 11, 0.92), rgba(11, 15, 11, 0.78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--gsf-cal2-radius);
  border: 1px solid var(--gsf-cal2-border);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.gsf-cal2-shell-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.gsf-cal2-shell-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gsf-cal2-text-faint);
}

.gsf-cal2-shell-h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gsf-cal2-shell-tabs {
  display: inline-flex;
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  overflow: auto;
  scrollbar-width: none;
}

.gsf-cal2-shell-tabs::-webkit-scrollbar { display: none; }

.gsf-cal2-shell-tab {
  border: 0;
  background: transparent;
  color: var(--gsf-cal2-text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.gsf-cal2-shell-tab:hover {
  color: #fff;
}

.gsf-cal2-shell-tab.active {
  background: linear-gradient(135deg, hsl(140 55% 35%), hsl(150 60% 28%));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 4px 12px rgba(0,0,0,0.25);
}

.gsf-cal2-shell-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.gsf-cal2-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 999px;
  color: var(--gsf-cal2-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease, border 100ms ease;
}

.gsf-cal2-chip:hover { color: #fff; border-color: var(--gsf-cal2-border-strong); }
.gsf-cal2-chip.active { background: var(--gsf-cal2-surface-3); color: #fff; border-color: var(--gsf-cal2-border-strong); }

/* =====================================================================
   Attention strip - compact answers to "what needs garden attention?"
   ===================================================================== */
.gsf-cal2-attention {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.gsf-cal2-attention-card {
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    var(--gsf-cal2-surface);
  color: #fff;
  min-height: 58px;
  padding: 0.55rem 0.65rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.05rem 0.5rem;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.gsf-cal2-attention-card:hover {
  border-color: var(--gsf-cal2-border-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    var(--gsf-cal2-surface-2);
  transform: translateY(-1px);
}

.gsf-cal2-attention-card:focus-visible,
.gsf-cal2-viewtab:focus-visible,
.gsf-cal2-filter-pill:focus-visible,
.gsf-cal2-plantfilter-link:focus-visible,
.gsf-cal2-plantfilter-close:focus-visible {
  outline: 2px solid hsl(150 70% 72%);
  outline-offset: 2px;
}

.gsf-cal2-attention-card i {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--gsf-cal2-text-muted);
}

.gsf-cal2-attention-num {
  font-size: 1.24rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.gsf-cal2-attention-label {
  color: var(--gsf-cal2-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gsf-cal2-attention-card.is-urgent {
  border-color: hsla(8 80% 60% / 0.5);
  background: linear-gradient(135deg, hsla(8 70% 35% / 0.28), hsla(25 70% 35% / 0.14)), var(--gsf-cal2-surface);
}

.gsf-cal2-attention-card.is-urgent i,
.gsf-cal2-attention-card.is-urgent .gsf-cal2-attention-num { color: hsl(8 100% 78%); }

.gsf-cal2-attention-card.is-today {
  border-color: hsla(45 95% 62% / 0.42);
}

.gsf-cal2-attention-card.is-today i,
.gsf-cal2-attention-card.is-today .gsf-cal2-attention-num { color: hsl(45 100% 76%); }

.gsf-cal2-attention-card.is-open {
  border-color: hsla(140 55% 60% / 0.45);
}

.gsf-cal2-attention-card.is-open i,
.gsf-cal2-attention-card.is-open .gsf-cal2-attention-num { color: hsl(140 62% 76%); }

.gsf-cal2-attention-card.is-harvest {
  border-color: hsla(25 85% 60% / 0.48);
}

.gsf-cal2-attention-card.is-harvest i,
.gsf-cal2-attention-card.is-harvest .gsf-cal2-attention-num { color: hsl(25 100% 76%); }

.gsf-cal2-attention-card.is-next {
  border-color: hsla(200 65% 60% / 0.36);
}

.gsf-cal2-attention-card.is-next i,
.gsf-cal2-attention-card.is-next .gsf-cal2-attention-num { color: hsl(200 78% 76%); }

@media (max-width: 860px) {
  .gsf-cal2-attention {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gsf-cal2-attention {
    margin-bottom: 0.55rem;
    gap: 0.4rem;
  }

  .gsf-cal2-attention-card {
    min-height: 52px;
    padding: 0.5rem 0.55rem;
  }

  .gsf-cal2-attention-card i {
    width: 25px;
    height: 25px;
  }

  .gsf-cal2-attention-num {
    font-size: 1.08rem;
  }
}

@media (max-width: 440px) {
  .gsf-cal2-attention {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(94px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 0;
    margin-right: 0;
  }

  .gsf-cal2-attention::-webkit-scrollbar { display: none; }

  .gsf-cal2-attention-card {
    min-width: 0;
    min-height: 44px;
    padding: 0.38rem 0.45rem;
    grid-template-columns: auto 1fr;
    gap: 0 0.38rem;
  }

  .gsf-cal2-attention-card i {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .gsf-cal2-attention-num {
    font-size: 1rem;
  }

  .gsf-cal2-attention-label {
    font-size: 0.6rem;
    line-height: 1.05;
  }
}

/* Compact preview of the actual work behind the attention counts. */
.gsf-cal2-todaywork {
  margin: 0 0 0.8rem;
  padding: 0.72rem;
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    var(--gsf-cal2-surface);
}

.gsf-cal2-todaywork-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.gsf-cal2-todaywork-kicker {
  color: var(--gsf-cal2-text-faint);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.gsf-cal2-todaywork h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.gsf-cal2-todaywork-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.45rem;
}

.gsf-cal2-todaywork-row {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--gsf-cal2-border);
  border-left: 4px solid var(--gsf-stage-care);
  background: var(--gsf-cal2-surface-2);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.gsf-cal2-todaywork-row:hover {
  border-color: var(--gsf-cal2-border-strong);
  background: var(--gsf-cal2-surface-3);
  color: #fff;
}

.gsf-cal2-todaywork-row:focus-visible {
  outline: 2px solid hsl(150 70% 72%);
  outline-offset: 2px;
}

.gsf-cal2-todaywork-row > i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--gsf-cal2-text-muted);
}

.gsf-cal2-todaywork-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.gsf-cal2-todaywork-main strong,
.gsf-cal2-todaywork-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsf-cal2-todaywork-main strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.gsf-cal2-todaywork-main span {
  color: var(--gsf-cal2-text-muted);
  font-size: 0.72rem;
}

.gsf-cal2-todaywork-status {
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--gsf-cal2-text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.gsf-cal2-todaywork-row.is-urgent {
  border-left-color: var(--gsf-stage-harvest);
  background: hsla(8 80% 30% / 0.18);
}

.gsf-cal2-todaywork-row.is-urgent > i,
.gsf-cal2-todaywork-row.is-urgent .gsf-cal2-todaywork-status {
  color: hsl(8 100% 78%);
}

.gsf-cal2-todaywork-row.is-harvest {
  border-left-color: var(--gsf-stage-harvest);
}

.gsf-cal2-todaywork-row.is-window {
  border-left-color: hsl(140 55% 60%);
}

.gsf-cal2-todaywork-row.is-stage {
  border-left-color: hsl(200 65% 60%);
}

.gsf-cal2-todaywork-empty {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.6rem;
  border-radius: 8px;
  border: 1px dashed var(--gsf-cal2-border);
  color: var(--gsf-cal2-text-muted);
  background: rgba(255,255,255,0.025);
}

.gsf-cal2-todaywork-empty i {
  color: hsl(140 60% 72%);
}

@media (max-width: 575.98px) {
  .gsf-cal2-todaywork {
    margin-bottom: 0.6rem;
    padding: 0.58rem;
  }

  .gsf-cal2-todaywork-head {
    margin-bottom: 0.45rem;
  }

  .gsf-cal2-todaywork h2 {
    font-size: 0.92rem;
  }

  .gsf-cal2-todaywork-list {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .gsf-cal2-todaywork-row {
    min-height: 44px;
    padding: 0.44rem 0.5rem;
  }
}

/* Stat tiles (.gsf-cal2-stat*) and .gsf-cal2-today removed — TodayView is gone;
   stats moved into the Tasks page metric strip (see tasks.css). */

/* =====================================================================
   Section primitives — still used by PlantTimelineView
   ===================================================================== */
.gsf-cal2-section {
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  padding: 0.95rem;
}

.gsf-cal2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.gsf-cal2-section-title {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gsf-cal2-section-sub {
  color: var(--gsf-cal2-text-faint);
  font-size: 0.75rem;
}

/* Sub-headers within a section (e.g. "Tasks" / "Active today" split) */
/* .gsf-cal2-sub-head* removed — TodayView is gone. Equivalent on Tasks page is .gsf-tasks-subhead. */

/* Item rows (still used by PlantTimelineView) */
.gsf-cal2-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  background: var(--gsf-cal2-surface-2);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius-sm);
  padding: 0.6rem 0.7rem;
  position: relative;
  user-select: none;
  touch-action: pan-y;
  overflow: hidden;
}

.gsf-cal2-item + .gsf-cal2-item { margin-top: 0.45rem; }

.gsf-cal2-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gsf-cal2-surface-3);
  font-size: 1rem;
  color: #fff;
}

.gsf-cal2-item--task .gsf-cal2-item-icon { background: hsla(40 70% 50% / 0.18); color: hsl(40 95% 75%); }
.gsf-cal2-item--log .gsf-cal2-item-icon { background: hsla(200 65% 50% / 0.18); color: hsl(200 80% 80%); }
.gsf-cal2-item--plant-window .gsf-cal2-item-icon { background: hsla(140 55% 45% / 0.20); color: hsl(140 60% 80%); }
.gsf-cal2-item--stage .gsf-cal2-item-icon { background: hsla(140 60% 50% / 0.15); color: #fff; }
.gsf-cal2-item--harvest .gsf-cal2-item-icon { background: hsla(8 80% 55% / 0.22); color: hsl(8 100% 80%); }

.gsf-cal2-item-body { min-width: 0; }
.gsf-cal2-item-title { font-weight: 600; font-size: 0.92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsf-cal2-item-sub { color: var(--gsf-cal2-text-muted); font-size: 0.78rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsf-cal2-item-meta { display: flex; gap: 0.3rem; align-items: center; flex-wrap: nowrap; }

.gsf-cal2-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--gsf-cal2-surface-3);
  color: var(--gsf-cal2-text-muted);
  border: 1px solid var(--gsf-cal2-border);
  white-space: nowrap;
}

.gsf-cal2-pill--danger { background: hsla(8 80% 55% / 0.25); color: hsl(8 100% 80%); border-color: hsla(8 80% 55% / 0.45); }
.gsf-cal2-pill--success { background: hsla(150 60% 45% / 0.20); color: hsl(150 70% 75%); border-color: hsla(150 60% 45% / 0.40); }
.gsf-cal2-pill--harvest { background: hsla(8 80% 55% / 0.20); color: hsl(8 100% 80%); border-color: hsla(8 80% 55% / 0.40); }

.gsf-cal2-item--overdue { border-color: hsla(8 80% 55% / 0.45); box-shadow: 0 0 0 1px hsla(8 80% 55% / 0.10) inset; }
.gsf-cal2-item--completed { opacity: 0.55; }
.gsf-cal2-item--completed .gsf-cal2-item-title { text-decoration: line-through; }

/* Stage strip on left edge */
.gsf-cal2-item[data-stage] { padding-left: 0.95rem; }
.gsf-cal2-item[data-stage]::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  border-radius: 2px;
  background: var(--gsf-stage-care);
}
.gsf-cal2-item[data-stage="Germination"]::before { background: var(--gsf-stage-germination); }
.gsf-cal2-item[data-stage="Seedling"]::before { background: var(--gsf-stage-seedling); }
.gsf-cal2-item[data-stage="Vegetative"]::before { background: var(--gsf-stage-vegetative); }
.gsf-cal2-item[data-stage="Flowering"]::before { background: var(--gsf-stage-flowering); }
.gsf-cal2-item[data-stage="Fruiting"]::before { background: var(--gsf-stage-fruiting); }
.gsf-cal2-item[data-stage="Harvest"]::before { background: var(--gsf-stage-harvest); }
.gsf-cal2-item[data-stage="PostHarvest"]::before { background: var(--gsf-stage-postharvest); }
.gsf-cal2-item[data-stage="Care"]::before { background: var(--gsf-stage-care); }
.gsf-cal2-item[data-stage="Other"]::before { background: var(--gsf-stage-other); }

.gsf-cal2-item-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gsf-cal2-border);
  color: var(--gsf-cal2-text-muted);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 120ms ease;
}

.gsf-cal2-item-action:hover { color: #fff; border-color: var(--gsf-cal2-border-strong); background: var(--gsf-cal2-surface); }

/* Swipe-to-complete overlay (mobile gestures) */
.gsf-cal2-item.is-swiping {
  transition: none !important;
}

.gsf-cal2-item-swipe-action {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.gsf-cal2-item-swipe-action--complete { right: 0; background: hsl(150 60% 35%); }
.gsf-cal2-item-swipe-action--snooze { left: 0; background: hsl(40 70% 45%); }

.gsf-cal2-item.is-swiping-left .gsf-cal2-item-swipe-action--complete,
.gsf-cal2-item.is-swiping-right .gsf-cal2-item-swipe-action--snooze {
  opacity: 1;
}

/* =====================================================================
   Mini 7-day agenda widget (Garden Hub)
   ===================================================================== */
.gsf-cal2-mini {
  padding: 0;
}

.gsf-cal2-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0 0.25rem;
}

@media (min-width: 768px) {
  .gsf-cal2-mini-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gsf-cal2-mini-day {
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius-sm);
  padding: 0.55rem 0.7rem 0.6rem;
}

.gsf-cal2-mini-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.gsf-cal2-mini-day-name { font-weight: 700; font-size: 0.85rem; }
.gsf-cal2-mini-day-date { color: var(--gsf-cal2-text-muted); font-size: 0.72rem; }
.gsf-cal2-mini-day--today { border-color: hsla(150 60% 60% / 0.55); box-shadow: 0 0 0 1px hsla(150 60% 60% / 0.15) inset; }
.gsf-cal2-mini-day--today .gsf-cal2-mini-day-name { color: hsl(150 60% 75%); }

.gsf-cal2-mini-empty { color: var(--gsf-cal2-text-faint); font-size: 0.78rem; padding: 0.25rem 0; }

.gsf-cal2-mini-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.25rem 0;
  cursor: pointer;
  border-radius: 6px;
}

.gsf-cal2-mini-row:hover { background: var(--gsf-cal2-surface); }
.gsf-cal2-mini-row > i { color: var(--gsf-cal2-text-muted); font-size: 0.85rem; }
.gsf-cal2-mini-row-title { font-size: 0.82rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =====================================================================
   Month view — FullCalendar overrides for richer events
   ===================================================================== */
.gsf-cal2-monthwrap {
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  padding: 0.85rem;
}

.gsf-cal2-monthwrap .fc-event { margin: 1px 0; }
.gsf-cal2-monthwrap .fc-daygrid-day.fc-day-today {
  background: hsla(150 60% 50% / 0.06) !important;
}

/* FullCalendar mount (.gsf-cal2-fc*), event templates (.gsf-cal2-event*), and
   mobile list mode (.gsf-cal2-mobile-list*, .gsf-cal2-monthwrap[data-mobile])
   removed — MonthView is gone and the FullCalendar bundle was dropped from App.razor.
   The stage color tokens (--gsf-stage-*) referenced above are still defined and
   still used by SeasonView's gsf-cal2-y-* bars. */

/* =====================================================================
   Week view — sidebar carousel
   ===================================================================== */
.gsf-cal2-weekwrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1200px) {
  .gsf-cal2-weekwrap { grid-template-columns: minmax(0, 1fr) 280px; }
}

.gsf-cal2-week-rail {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}
@media (min-width: 1200px) {
  .gsf-cal2-week-rail { display: flex; }
}

.gsf-cal2-rail-card {
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  padding: 0.85rem;
}

.gsf-cal2-rail-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gsf-cal2-text-muted);
  margin-bottom: 0.55rem;
}

.gsf-cal2-stage-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.gsf-cal2-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gsf-cal2-border);
  color: #fff;
}

.gsf-cal2-stage-chip[data-stage="Germination"] { background: hsla(40 95% 60% / 0.15); border-color: hsla(40 95% 60% / 0.35); }
.gsf-cal2-stage-chip[data-stage="Seedling"] { background: hsla(80 70% 55% / 0.15); border-color: hsla(80 70% 55% / 0.35); }
.gsf-cal2-stage-chip[data-stage="Vegetative"] { background: hsla(140 55% 45% / 0.15); border-color: hsla(140 55% 45% / 0.35); }
.gsf-cal2-stage-chip[data-stage="Flowering"] { background: hsla(330 70% 65% / 0.15); border-color: hsla(330 70% 65% / 0.35); }
.gsf-cal2-stage-chip[data-stage="Fruiting"] { background: hsla(25 85% 55% / 0.15); border-color: hsla(25 85% 55% / 0.35); }
.gsf-cal2-stage-chip[data-stage="Harvest"] { background: hsla(8 80% 55% / 0.20); border-color: hsla(8 80% 55% / 0.40); }

/* =====================================================================
   Season view — Gantt
   ===================================================================== */
.gsf-cal2-season {
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  padding: 0.85rem;
}

.gsf-cal2-season-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0.5rem;
  align-items: stretch;
  border-bottom: 1px solid var(--gsf-cal2-border);
  padding-bottom: 0.45rem;
  margin-bottom: 0.45rem;
}

.gsf-cal2-season-head-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gsf-cal2-text-muted);
  display: flex;
  align-items: center;
}

.gsf-cal2-season-track {
  position: relative;
  height: 28px;
}

.gsf-cal2-season-track--header { background: linear-gradient(180deg, transparent, var(--gsf-cal2-surface)); }

.gsf-cal2-season-month {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gsf-cal2-text-muted);
  border-left: 1px dashed var(--gsf-cal2-border);
}

.gsf-cal2-season-month:first-child { border-left: 0; }

.gsf-cal2-season-anchor {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 2px;
  background: hsla(150 60% 60% / 0.85);
  pointer-events: none;
  z-index: 2;
}

.gsf-cal2-season-anchor--today { background: hsl(150 65% 60%); box-shadow: 0 0 8px hsla(150 65% 60% / 0.5); }
.gsf-cal2-season-anchor--last-frost { background: var(--gsf-cal2-frost-late); }
.gsf-cal2-season-anchor--first-frost { background: var(--gsf-cal2-frost-first); }

.gsf-cal2-season-anchor-tag {
  position: absolute;
  top: -1.2rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  background: var(--gsf-cal2-surface-3);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  white-space: nowrap;
  pointer-events: none;
  color: #fff;
}

.gsf-cal2-season-anchor-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  pointer-events: none;
}

.gsf-cal2-season-anchor-line--today { background: hsla(150 65% 60% / 0.40); }
.gsf-cal2-season-anchor-line--last-frost { background: hsla(200 70% 65% / 0.25); }
.gsf-cal2-season-anchor-line--first-frost { background: hsla(220 70% 70% / 0.25); }

.gsf-cal2-season-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0.5rem;
  align-items: stretch;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.gsf-cal2-season-row:hover { background: rgba(255,255,255,0.02); }

.gsf-cal2-season-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.2rem 0.3rem 0.2rem 0;
  min-width: 0;
}

.gsf-cal2-season-label-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.gsf-cal2-season-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: hsl(140 60% 45%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}

.gsf-cal2-season-label-name { font-weight: 600; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsf-cal2-season-label-sub { color: var(--gsf-cal2-text-muted); font-size: 0.72rem; }

.gsf-cal2-season-track-row {
  position: relative;
  height: calc(var(--gsf-cal2-bar-h) + 12px);
}

.gsf-cal2-season-bar {
  position: absolute;
  top: 6px;
  height: var(--gsf-cal2-bar-h);
  display: flex;
  align-items: center;
  padding: 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  background: var(--gsf-stage-other);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.gsf-cal2-season-bar:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.10) inset;
}

.gsf-cal2-season-bar[data-stage="Germination"] { background: var(--gsf-stage-germination); color: #1a1a1a; }
.gsf-cal2-season-bar[data-stage="Seedling"] { background: var(--gsf-stage-seedling); color: #1a1a1a; }
.gsf-cal2-season-bar[data-stage="Vegetative"] { background: var(--gsf-stage-vegetative); }
.gsf-cal2-season-bar[data-stage="Flowering"] { background: var(--gsf-stage-flowering); color: #1a1a1a; }
.gsf-cal2-season-bar[data-stage="Fruiting"] { background: var(--gsf-stage-fruiting); }
.gsf-cal2-season-bar[data-stage="Harvest"] { background: var(--gsf-stage-harvest); }
.gsf-cal2-season-bar[data-stage="PostHarvest"] { background: var(--gsf-stage-postharvest); }
.gsf-cal2-season-bar[data-stage="Care"] { background: var(--gsf-stage-care); }

.gsf-cal2-season-bar--window {
  background: linear-gradient(90deg, hsla(140 55% 45% / 0.85), hsla(140 55% 25% / 0.85));
  border: 1px dashed hsla(140 55% 45% / 0.95);
  color: #fff;
}

.gsf-cal2-season-bar--planning-overlay {
  opacity: 0.78;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.10) 0 6px, transparent 6px 12px);
  border: 1px solid rgba(255,255,255,0.10);
}

.gsf-cal2-season-bar--harvest::after {
  content: "★";
  margin-left: 0.35rem;
  color: hsl(40 95% 80%);
  filter: drop-shadow(0 0 4px hsla(40 95% 60% / 0.6));
}

.gsf-cal2-season-lifecycle {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.gsf-cal2-season-lifecycle-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(140 55% 45%), hsl(150 60% 60%));
  width: 0;
}

/* Season hover scrubber */
.gsf-cal2-season-scrubber {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.30);
  pointer-events: none;
  display: none;
  z-index: 5;
}

.gsf-cal2-season:hover .gsf-cal2-season-scrubber { display: block; }

.gsf-cal2-season-scrubber-tag {
  position: absolute;
  top: 0;
  left: 6px;
  background: var(--gsf-cal2-surface-3);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  white-space: nowrap;
}

/* =====================================================================
   Plant timeline view (drill-in)
   ===================================================================== */
.gsf-cal2-plant {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gsf-cal2-plant-hero {
  background: linear-gradient(180deg, var(--gsf-cal2-surface-2), var(--gsf-cal2-surface));
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
}

.gsf-cal2-plant-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: hsl(140 55% 30%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.gsf-cal2-plant-name { font-size: 1.2rem; font-weight: 700; line-height: 1.1; }
.gsf-cal2-plant-meta { color: var(--gsf-cal2-text-muted); font-size: 0.84rem; margin-top: 0.15rem; }

.gsf-cal2-plant-day {
  font-weight: 700;
  font-size: 1rem;
}

.gsf-cal2-plant-progress {
  height: 8px;
  background: var(--gsf-cal2-surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.6rem;
}

.gsf-cal2-plant-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(140 55% 45%), hsl(150 65% 60%));
  border-radius: 999px;
}

.gsf-cal2-plant-tabs {
  display: inline-flex;
  border: 1px solid var(--gsf-cal2-border);
  background: var(--gsf-cal2-surface);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.gsf-cal2-plant-tab {
  background: transparent;
  border: 0;
  color: var(--gsf-cal2-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.gsf-cal2-plant-tab.active {
  background: hsl(140 55% 30%);
  color: #fff;
}

.gsf-cal2-plant-log-action {
  flex: 0 0 auto;
}

.gsf-cal2-plant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gsf-cal2-plant-delta {
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  padding: 0.65rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.gsf-cal2-plant-delta--early { border-color: hsla(200 65% 55% / 0.45); }
.gsf-cal2-plant-delta--late { border-color: hsla(8 80% 55% / 0.45); }
.gsf-cal2-plant-delta--ontime { border-color: hsla(150 60% 50% / 0.45); }

/* =====================================================================
   Mobile bottom-tab navigation
   ===================================================================== */
.gsf-cal2-bottomnav {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 30;
  display: flex;
  background: rgba(11, 15, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gsf-cal2-border-strong);
  border-radius: 16px;
  padding: 4px;
  gap: 2px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
  .gsf-cal2-bottomnav { display: none; }
}

.gsf-cal2-bottomnav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gsf-cal2-text-muted);
  text-decoration: none;
  border-radius: 12px;
  padding: 0.45rem 0.25rem 0.4rem;
}

.gsf-cal2-bottomnav-link i { font-size: 1.1rem; line-height: 1; margin-bottom: 0.2rem; }
.gsf-cal2-bottomnav-link.active {
  background: linear-gradient(135deg, hsl(140 55% 35%), hsl(150 60% 28%));
  color: #fff;
}

/* .gsf-cal2-quickbar* removed — TodayView is gone. */

/* =====================================================================
   Empty / loading states
   ===================================================================== */
.gsf-cal2-skeleton {
  display: block;
  background: linear-gradient(90deg, var(--gsf-cal2-surface), var(--gsf-cal2-surface-2), var(--gsf-cal2-surface));
  background-size: 200% 100%;
  animation: gsf-cal2-skeleton 1.4s linear infinite;
  border-radius: 8px;
}

/* Hidden-by-filter notice — shown above Week/Month grids when one or more
   filter chips are toggled off, so the user can see *why* events are missing
   (the chips themselves are subtle pills, easy to overlook). */
.gsf-cal2-filter-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.6rem;
  background: hsla(40 80% 50% / 0.10);
  border: 1px solid hsla(40 80% 50% / 0.30);
  border-radius: var(--gsf-cal2-radius-sm);
  color: hsl(40 90% 80%);
  font-size: 0.78rem;
}

.gsf-cal2-filter-notice i {
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.gsf-cal2-filter-notice strong {
  color: #fff;
  font-weight: 600;
}

/* .gsf-cal2-fc-wrap and .gsf-cal2-fc-loading removed — FullCalendar bundle dropped. */

@keyframes gsf-cal2-skeleton {
  0% { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}

/* Mobile breakpoint adjustments */
@media (max-width: 640px) {
  .gsf-cal2-season-head, .gsf-cal2-season-row { grid-template-columns: 130px 1fr; }
  .gsf-cal2-plant-hero {
    grid-template-columns: auto 1fr;
    padding: 0.85rem;
    gap: 0.7rem;
  }

  .gsf-cal2-plant-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .gsf-cal2-plant-name {
    font-size: 1.05rem;
  }

  .gsf-cal2-plant-day { grid-column: 1 / -1; }

  .gsf-cal2-plant .gsf-cal2-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .gsf-cal2-plant-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 12px;
    width: 100%;
  }

  .gsf-cal2-plant-tab {
    min-height: 40px;
    padding: 0.4rem 0.5rem;
    border-radius: 9px;
    font-size: 0.78rem;
  }

  .gsf-cal2-plant-log-action {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  .gsf-cal2-plant-actions .gsf-btn {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    min-width: 140px;
  }
}

/* .gsf-cal2-ptr* (pull-to-refresh) removed — TodayView is gone. */

/* =====================================================================
   Garden Hub mini 7-day agenda widget
   ===================================================================== */
.gsf-cal2-mini-agenda-teaser-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.gsf-cal2-mini-agenda {
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: #fff;
}

.gsf-cal2-mini-agenda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gsf-cal2-mini-agenda-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, hsl(140 55% 35%), hsl(150 60% 28%));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex: 0 0 auto;
}

.gsf-cal2-mini-agenda-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
}

.gsf-cal2-mini-agenda-sub {
  font-size: 0.78rem;
  color: var(--gsf-cal2-text-muted);
}

.gsf-cal2-mini-agenda-empty {
  text-align: center;
  padding: 1.25rem 0.5rem;
  color: var(--gsf-cal2-text-muted);
}

.gsf-cal2-mini-agenda-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

@media (max-width: 480px) {
  .gsf-cal2-mini-agenda-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gsf-cal2-mini-stat {
  background: var(--gsf-cal2-surface-2);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 12px;
  padding: 0.55rem 0.4rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.gsf-cal2-mini-stat:hover { background: var(--gsf-cal2-surface-3); transform: translateY(-1px); }
.gsf-cal2-mini-stat--warn { border-color: hsla(40 95% 65% / 0.55); background: hsla(40 95% 65% / 0.1); }
.gsf-cal2-mini-stat-num { font-weight: 800; font-size: 1.2rem; line-height: 1; }
.gsf-cal2-mini-stat-label { font-size: 0.68rem; color: var(--gsf-cal2-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.gsf-cal2-mini-agenda-overdue {
  background: hsla(40 95% 65% / 0.08);
  border: 1px solid hsla(40 95% 65% / 0.35);
  border-radius: var(--gsf-cal2-radius-sm);
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gsf-cal2-mini-agenda-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

@media (max-width: 1100px) {
  .gsf-cal2-mini-agenda-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .gsf-cal2-mini-agenda-days { grid-template-columns: 1fr; }
}

.gsf-cal2-mini-agenda-day {
  background: var(--gsf-cal2-surface-2);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 12px;
  padding: 0.55rem 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.gsf-cal2-mini-agenda-day--today {
  border-color: hsla(150 60% 60% / 0.55);
  background: hsla(150 60% 60% / 0.1);
}

.gsf-cal2-mini-agenda-day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
}

.gsf-cal2-mini-agenda-day-name { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.gsf-cal2-mini-agenda-day-date { font-size: 0.7rem; color: var(--gsf-cal2-text-muted); }
.gsf-cal2-mini-agenda-day-empty { font-size: 0.72rem; color: var(--gsf-cal2-text-faint); font-style: italic; }
.gsf-cal2-mini-agenda-more { display: block; font-size: 0.72rem; color: var(--gsf-cal2-text-muted); text-decoration: none; padding-top: 0.15rem; }
.gsf-cal2-mini-agenda-more:hover { color: #fff; text-decoration: underline; }

.gsf-cal2-mini-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 0.78rem;
  background: var(--gsf-cal2-surface);
  border: 1px solid transparent;
  min-width: 0;
}

.gsf-cal2-mini-row:hover { background: var(--gsf-cal2-surface-3); }
.gsf-cal2-mini-row i { flex: 0 0 auto; font-size: 0.85rem; }
.gsf-cal2-mini-row-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsf-cal2-mini-row-date { flex: 0 0 auto; font-size: 0.7rem; color: var(--gsf-cal2-text-muted); }

.gsf-cal2-mini-row--task { border-color: hsla(200 65% 55% / 0.4); }
.gsf-cal2-mini-row--task i { color: var(--gsf-stage-care); }
.gsf-cal2-mini-row--log { color: var(--gsf-cal2-text-muted); }
.gsf-cal2-mini-row--log i { color: var(--gsf-cal2-text-muted); }
.gsf-cal2-mini-row--window { border-color: hsla(140 55% 45% / 0.4); }
.gsf-cal2-mini-row--window i { color: var(--gsf-stage-vegetative); }
.gsf-cal2-mini-row--harvest { border-color: hsla(8 80% 55% / 0.55); background: hsla(8 80% 55% / 0.1); }
.gsf-cal2-mini-row--harvest i { color: var(--gsf-stage-harvest); }
.gsf-cal2-mini-row--stage[data-stage="Germination"] i { color: var(--gsf-stage-germination); }
.gsf-cal2-mini-row--stage[data-stage="Seedling"] i { color: var(--gsf-stage-seedling); }
.gsf-cal2-mini-row--stage[data-stage="Vegetative"] i { color: var(--gsf-stage-vegetative); }
.gsf-cal2-mini-row--stage[data-stage="Flowering"] i { color: var(--gsf-stage-flowering); }
.gsf-cal2-mini-row--stage[data-stage="Fruiting"] i { color: var(--gsf-stage-fruiting); }
.gsf-cal2-mini-row--stage[data-stage="Harvest"] i { color: var(--gsf-stage-harvest); }

.gsf-cal2-mini-row--overdue {
  border-color: hsla(8 80% 55% / 0.6);
  background: hsla(8 80% 55% / 0.12);
}

.gsf-cal2-mini-row--completed { opacity: 0.55; text-decoration: line-through; }

/* =====================================================================
   Week — "This Week's Agenda" 7-card layout. Day-specific items only
   (tasks due, stage transitions, harvest start/end, logs); multi-day
   stage *bars* belong to Season. Each card has a passive context footer
   showing what's currently active in the garden on that day.
   ===================================================================== */
.gsf-cal2-week-agenda {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.gsf-cal2-week-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gsf-cal2-week-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.gsf-cal2-week-toolbar-range {
  font-weight: 600;
  color: #fff;
  padding: 0 0.5rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* 7-column grid on desktop, collapses to 2 then 1 column as the viewport narrows. */
.gsf-cal2-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 1100px) {
  .gsf-cal2-week-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .gsf-cal2-week-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .gsf-cal2-week-days { grid-template-columns: 1fr; }
}

.gsf-cal2-week-day {
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  display: flex;
  flex-direction: column;
  min-height: 180px;
  overflow: hidden;
}

.gsf-cal2-week-day.is-today {
  border-color: hsla(45 100% 60% / 0.55);
  box-shadow: 0 0 0 1px hsla(45 100% 60% / 0.25) inset;
}

.gsf-cal2-week-day.is-quiet { opacity: 0.72; }

.gsf-cal2-week-day-head {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--gsf-cal2-border);
  background: var(--gsf-cal2-surface-2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
}

.gsf-cal2-week-day-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gsf-cal2-text-muted);
  margin-right: 0.4rem;
}

.gsf-cal2-week-day-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.gsf-cal2-week-day.is-today .gsf-cal2-week-day-name,
.gsf-cal2-week-day.is-today .gsf-cal2-week-day-num {
  color: hsl(45 100% 78%);
}

.gsf-cal2-week-day-today-pill {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: hsla(45 100% 50% / 0.18);
  color: hsl(45 100% 80%);
  border: 1px solid hsla(45 100% 60% / 0.4);
}

.gsf-cal2-week-day-count {
  margin-left: auto;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--gsf-cal2-surface-3);
  color: #fff;
  border: 1px solid var(--gsf-cal2-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.gsf-cal2-week-day-body {
  flex: 1;
  padding: 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.gsf-cal2-week-section-label {
  color: var(--gsf-cal2-text-faint);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.22rem 0 0.08rem;
}

.gsf-cal2-week-day-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--gsf-cal2-text-faint);
  font-size: 0.72rem;
  font-style: italic;
  flex: 1;
  padding: 0.8rem 0;
}

.gsf-cal2-week-day-empty i { font-size: 1rem; opacity: 0.5; }

.gsf-cal2-week-day-footer {
  border-top: 1px solid var(--gsf-cal2-border);
  padding: 0.4rem 0.7rem;
  font-size: 0.65rem;
  color: var(--gsf-cal2-text-faint);
  background: var(--gsf-cal2-surface-2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.01em;
}

.gsf-cal2-week-day-footer i { font-size: 0.7rem; opacity: 0.7; }

/* Individual items inside a day card. Plant color via --plant-color (set inline
   from item.HexColor), stage via the left-border colour. */
.gsf-cal2-week-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  background: var(--gsf-cal2-surface-2);
  border-radius: 6px;
  border-left: 3px solid var(--plant-color, var(--gsf-stage-care));
  font-size: 0.78rem;
  cursor: pointer;
  min-width: 0;
}

.gsf-cal2-week-item:hover {
  background: var(--gsf-cal2-surface-3);
}

.gsf-cal2-week-item:focus-visible,
.gsf-cal2-week-item-check:focus-visible,
.gsf-cal2-y-lane:focus-visible,
.gsf-cal2-plant-tab:focus-visible,
.gsf-cal2-bottomnav-link:focus-visible {
  outline: 2px solid hsl(150 70% 72%);
  outline-offset: 2px;
}

.gsf-cal2-week-item-icon {
  text-align: center;
  font-size: 0.85rem;
  color: var(--plant-color, var(--gsf-cal2-text-muted));
}

.gsf-cal2-week-item-body { min-width: 0; }

.gsf-cal2-week-item-title {
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsf-cal2-week-item-sub {
  color: var(--gsf-cal2-text-muted);
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsf-cal2-week-item-check {
  background: transparent;
  border: 1px solid var(--gsf-cal2-border);
  color: var(--gsf-cal2-text-muted);
  border-radius: 6px;
  padding: 0;
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.gsf-cal2-week-item-check:hover {
  color: hsl(150 60% 70%);
  border-color: hsla(150 60% 50% / 0.5);
  background: hsla(150 60% 50% / 0.12);
}

/* Stage stripe overlay — same palette as Season for consistency. */
.gsf-cal2-week-item[data-stage="Germination"] { border-left-color: var(--gsf-stage-germination); }
.gsf-cal2-week-item[data-stage="Seedling"]    { border-left-color: var(--gsf-stage-seedling); }
.gsf-cal2-week-item[data-stage="Vegetative"]  { border-left-color: var(--gsf-stage-vegetative); }
.gsf-cal2-week-item[data-stage="Flowering"]   { border-left-color: var(--gsf-stage-flowering); }
.gsf-cal2-week-item[data-stage="Fruiting"]    { border-left-color: var(--gsf-stage-fruiting); }
.gsf-cal2-week-item[data-stage="Harvest"]     { border-left-color: var(--gsf-stage-harvest); }
.gsf-cal2-week-item[data-stage="Care"]        { border-left-color: var(--gsf-stage-care); }

/* Task overdue state. */
.gsf-cal2-week-item--task.is-overdue {
  border-color: hsla(8 80% 55% / 0.55);
  background: hsla(8 80% 30% / 0.18);
}

.gsf-cal2-week-item--task.is-completed { opacity: 0.5; }
.gsf-cal2-week-item--task.is-completed .gsf-cal2-week-item-title { text-decoration: line-through; }

/* Start vs End transitions — arrow direction in the icon column. */
.gsf-cal2-week-item--start .gsf-cal2-week-item-icon::before { content: "\F12E"; /* bi-arrow-up-right-circle is unicode-only; use icon class instead */ }

/* Harvest gets the standout warm gradient like the Season bar. */
.gsf-cal2-week-item--harvest {
  background: linear-gradient(90deg, hsla(8 85% 45% / 0.25), hsla(25 85% 45% / 0.18));
}

/* Logs are de-emphasised (they're historical, not actionable). */
.gsf-cal2-week-item--log { opacity: 0.85; }

/* Plant windows render quieter — they're informational. */
.gsf-cal2-week-item--window {
  background: hsla(140 55% 35% / 0.18);
}

/* =====================================================================
   Season Year View — stacked month rows with day-resolution Gantt bars
   ===================================================================== */
@media (max-width: 460px) {
  .gsf-cal2-week-toolbar {
    gap: 0.45rem;
  }

  .gsf-cal2-week-day {
    min-height: 0;
  }

  .gsf-cal2-week-day-head {
    padding: 0.62rem 0.7rem;
    align-items: center;
  }

  .gsf-cal2-week-day-name {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .gsf-cal2-week-day-num {
    font-size: 1.22rem;
  }

  .gsf-cal2-week-day-body {
    padding: 0.58rem;
    gap: 0.36rem;
  }

  .gsf-cal2-week-section-label {
    font-size: 0.68rem;
    margin-top: 0.28rem;
  }

  .gsf-cal2-week-item {
    grid-template-columns: 22px 1fr auto;
    min-height: 44px;
    padding: 0.5rem 0.55rem;
    gap: 0.48rem;
    font-size: 0.86rem;
  }

  .gsf-cal2-week-item-sub {
    font-size: 0.72rem;
  }

  .gsf-cal2-week-item-check {
    min-width: 34px;
    min-height: 34px;
  }

  .gsf-cal2-week-day-footer {
    font-size: 0.72rem;
    padding: 0.48rem 0.7rem;
  }
}

.gsf-cal2-y {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gsf-cal2-y-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.gsf-cal2-y-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.gsf-cal2-y-toolbar-nav > .gsf-cal2-y-toolbar-range {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsf-cal2-y-toolbar-range {
  font-weight: 600;
  color: #fff;
  padding: 0 0.5rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.gsf-cal2-y-toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Tiny segmented group used for span / group-by toggles */
.gsf-cal2-y-segment {
  display: inline-flex;
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 999px;
  padding: 2px;
}

.gsf-cal2-y-segment-btn {
  border: 0;
  background: transparent;
  color: var(--gsf-cal2-text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 100ms, color 100ms;
}

.gsf-cal2-y-segment-btn:hover { color: #fff; }
.gsf-cal2-y-segment-btn.is-active {
  background: linear-gradient(135deg, hsl(140 55% 35%), hsl(150 60% 28%));
  color: #fff;
}

.gsf-cal2-y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  background: transparent;
  border: 1px solid var(--gsf-cal2-border);
  border-radius: 999px;
  color: var(--gsf-cal2-text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 100ms, color 100ms, border-color 100ms;
  white-space: nowrap;
}

.gsf-cal2-y-toggle:hover { color: #fff; border-color: var(--gsf-cal2-border-strong); }
.gsf-cal2-y-toggle.is-on {
  background: hsla(40 80% 50% / 0.18);
  color: hsl(40 95% 75%);
  border-color: hsla(40 80% 50% / 0.5);
}

.gsf-cal2-y-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.gsf-cal2-y-summary-card {
  min-width: 0;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius-sm);
  background: var(--gsf-cal2-surface);
  display: grid;
  gap: 0.12rem;
}

.gsf-cal2-y-summary-label {
  color: var(--gsf-cal2-text-faint);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.gsf-cal2-y-summary-card strong {
  min-width: 0;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsf-cal2-y-summary-card span:last-child {
  min-width: 0;
  color: var(--gsf-cal2-text-muted);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsf-cal2-y-summary-card.is-open {
  border-color: hsla(140 55% 60% / 0.45);
}

.gsf-cal2-y-summary-card.is-harvest {
  border-color: hsla(25 85% 60% / 0.5);
}

.gsf-cal2-y-summary-card.is-next {
  border-color: hsla(200 65% 60% / 0.36);
}

.gsf-cal2-y-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border: 1px dashed hsla(140 55% 65% / 0.32);
  border-radius: var(--gsf-cal2-radius);
  background:
    linear-gradient(135deg, hsla(140 45% 28% / 0.12), rgba(255,255,255,0.018)),
    var(--gsf-cal2-surface);
}

.gsf-cal2-y-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsla(140 55% 40% / 0.16);
  color: hsl(140 65% 76%);
  font-size: 1.1rem;
}

.gsf-cal2-y-empty-copy {
  min-width: 0;
}

.gsf-cal2-y-empty-copy h2 {
  margin: 0 0 0.22rem;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.2;
}

.gsf-cal2-y-empty-copy p {
  margin: 0;
  color: var(--gsf-cal2-text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.gsf-cal2-y-empty-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Months container */
.gsf-cal2-y-months {
  background: var(--gsf-cal2-surface);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  overflow: hidden;
}

.gsf-cal2-y-month {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  border-top: 1px solid var(--gsf-cal2-border);
  min-height: 56px;
}

.gsf-cal2-y-month:first-child { border-top: 0; }

.gsf-cal2-y-month.is-current {
  background: linear-gradient(180deg, hsla(150 60% 35% / 0.08), transparent);
}

.gsf-cal2-y-month.is-current .gsf-cal2-y-month-head {
  box-shadow: inset 3px 0 0 hsl(45 95% 62%);
}

.gsf-cal2-y-month.is-empty {
  opacity: 0.55;
}

.gsf-cal2-y-month-head {
  padding: 12px 14px;
  border-right: 1px solid var(--gsf-cal2-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gsf-cal2-surface-2);
}

.gsf-cal2-y-month-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.gsf-cal2-y-month-year {
  color: var(--gsf-cal2-text-faint);
  font-size: 0.72rem;
  margin-top: 1px;
}

.gsf-cal2-y-month-count {
  color: var(--gsf-cal2-text-muted);
  font-size: 0.68rem;
  margin-top: 6px;
}

.gsf-cal2-y-month.is-current .gsf-cal2-y-month-name {
  color: hsl(150 60% 75%);
}

/* month-body becomes a grid (day-columns wide) so day-strip, lanes, and
   anchor lines all share the same column layout. Day-strip and lanes are
   full-width children (grid-column: 1 / -1) and keep their own internal
   grids; anchors are placed at the single day column they belong to and
   stretch from the day-strip down through every lane. */
.gsf-cal2-y-month-body {
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(0, 1fr));
  grid-auto-rows: auto;
  padding: 6px 8px 8px;
  min-width: 0;
  row-gap: 3px;
}

.gsf-cal2-y-days,
.gsf-cal2-y-lane,
.gsf-cal2-y-empty {
  grid-column: 1 / -1;
}

/* Day-number strip — sticky to the top of the viewport while scrolling through
   this month's lanes. Each month owns its own sticky strip. */
.gsf-cal2-y-days {
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(0, 1fr));
  border-bottom: 1px solid var(--gsf-cal2-border);
  padding-bottom: 4px;
  margin-bottom: 2px;
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--gsf-cal2-surface);
}

/* Frost / today anchor markers — placed at a single day column, spanning every
   row in the month body via grid-row: 1 / -1. A thin 2px colored line down the
   center; the small label chip sits inside the day-strip cell above it. */
.gsf-cal2-y-anchor {
  grid-row: 1 / -1;
  position: relative;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.gsf-cal2-y-anchor::before {
  content: "";
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--gsf-cal2-text-muted);
}

.gsf-cal2-y-anchor-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--gsf-cal2-surface-2);
  border: 1px solid var(--gsf-cal2-border);
  color: var(--gsf-cal2-text-muted);
  pointer-events: auto;
  z-index: 5;
  line-height: 1.2;
}

.gsf-cal2-y-anchor--last-frost::before  { background: hsl(200 70% 65%); box-shadow: 0 0 6px hsla(200 70% 65% / 0.45); }
.gsf-cal2-y-anchor--first-frost::before { background: hsl(220 70% 70%); box-shadow: 0 0 6px hsla(220 70% 70% / 0.45); }
.gsf-cal2-y-anchor--today::before       { background: hsl(45 100% 65%); box-shadow: 0 0 8px hsla(45 100% 65% / 0.55); width: 3px; }
.gsf-cal2-y-anchor--other::before       { background: var(--gsf-cal2-text-muted); }

.gsf-cal2-y-anchor--last-frost  .gsf-cal2-y-anchor-label { color: hsl(200 90% 82%); border-color: hsla(200 70% 60% / 0.55); background: hsla(200 70% 30% / 0.55); }
.gsf-cal2-y-anchor--first-frost .gsf-cal2-y-anchor-label { color: hsl(220 90% 85%); border-color: hsla(220 70% 65% / 0.55); background: hsla(220 70% 30% / 0.55); }
.gsf-cal2-y-anchor--today       .gsf-cal2-y-anchor-label { color: hsl(45 100% 82%); border-color: hsla(45 100% 60% / 0.5); background: hsla(45 100% 35% / 0.45); }

.gsf-cal2-y-day {
  text-align: center;
  padding: 2px 1px;
  min-width: 0;
  line-height: 1.1;
  color: var(--gsf-cal2-text-faint);
  border-right: 1px solid rgba(255,255,255,0.025);
  border-radius: 3px;
}

.gsf-cal2-y-day:last-child { border-right: 0; }

.gsf-cal2-y-day.is-weekend { background: rgba(255,255,255,0.025); }

.gsf-cal2-y-day.is-today {
  background: hsla(45, 95%, 60%, 0.18);
  box-shadow: inset 0 -2px 0 hsla(45, 95%, 60%, 0.7);
}

.gsf-cal2-y-day-dow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.55rem;
  color: var(--gsf-cal2-text-faint);
}

.gsf-cal2-y-day-num {
  display: block;
  font-size: 0.7rem;
  color: var(--gsf-cal2-text-muted);
  font-weight: 600;
}

.gsf-cal2-y-day.is-today .gsf-cal2-y-day-num,
.gsf-cal2-y-day.is-today .gsf-cal2-y-day-dow {
  color: hsl(45, 100%, 80%);
}

/* Lanes inside each month — one lane per plant with bars positioned by day.
   Bars that overlap in time get assigned different sub-lanes by the server, then
   stack vertically here via grid-template-rows: repeat(--sublanes, auto). */
.gsf-cal2-y-lane {
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(0, 1fr));
  grid-template-rows: repeat(var(--sublanes, 1), minmax(26px, auto));
  row-gap: 2px;
  cursor: pointer;
  position: relative;
  padding: 2px 0;
}

/* Mini lifecycle progress fill — only set on non-aggregated single-planting lanes.
   A 2px line at the bottom of the lane, filled to --lifecycle% with the plant
   color. Gives "Tomato is 60% through its life" at a glance without crowding the
   bars themselves. */
.gsf-cal2-y-lane.has-lifecycle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--plant-color, var(--gsf-stage-care)) var(--lifecycle, 0%),
    rgba(255, 255, 255, 0.04) var(--lifecycle, 0%)
  );
  pointer-events: none;
  opacity: 0.85;
}

.gsf-cal2-y-lane:hover .gsf-cal2-y-bar {
  filter: brightness(1.08);
}

.gsf-cal2-y-bar {
  grid-row: 1;
  border-radius: 4px;
  padding: 3px 7px 3px 8px;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.55);
  font-size: 0.68rem;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  margin: 0 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.22);
  transition: transform 80ms ease, filter 80ms ease;
  /* Plant color (set inline as --plant-color) tinted by a dark overlay so
     white text reads on any hue, light or dark. Falls back to the Care
     stage color when no plant hex is provided. */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.30)),
    var(--plant-color, var(--gsf-stage-care));
  border-left: 4px solid var(--gsf-stage-care);
}

.gsf-cal2-y-bar:hover { transform: translateY(-1px); z-index: 2; filter: brightness(1.08); }

.gsf-cal2-y-bar-icon {
  margin-right: 4px;
  font-size: 0.78rem;
  opacity: 0.95;
}

.gsf-cal2-y-bar-label { font-weight: 700; }

.gsf-cal2-y-bar-plant {
  font-weight: 500;
  opacity: 0.92;
}

.gsf-cal2-y-bar-plant::before {
  content: " · ";
  opacity: 0.65;
  font-weight: 400;
}

/* Stage left-stripe — the only stage-colored element on the bar. */
.gsf-cal2-y-bar[data-stage="Germination"] { border-left-color: var(--gsf-stage-germination); }
.gsf-cal2-y-bar[data-stage="Seedling"]    { border-left-color: var(--gsf-stage-seedling); }
.gsf-cal2-y-bar[data-stage="Vegetative"]  { border-left-color: var(--gsf-stage-vegetative); }
.gsf-cal2-y-bar[data-stage="Flowering"]   { border-left-color: var(--gsf-stage-flowering); }
.gsf-cal2-y-bar[data-stage="Fruiting"]    { border-left-color: var(--gsf-stage-fruiting); }
.gsf-cal2-y-bar[data-stage="Harvest"]     { border-left-color: var(--gsf-stage-harvest); }
.gsf-cal2-y-bar[data-stage="Care"]        { border-left-color: var(--gsf-stage-care); }
.gsf-cal2-y-bar[data-stage="PostHarvest"] { border-left-color: var(--gsf-stage-postharvest); }
.gsf-cal2-y-bar[data-stage="Other"]       { border-left-color: var(--gsf-stage-other); }

/* Plant window — semi-transparent, dashed border (no plant color). */
.gsf-cal2-y-bar--window {
  background: linear-gradient(135deg, hsla(140 55% 45% / 0.45), hsla(140 55% 30% / 0.45));
  border: 1px dashed hsla(140 55% 65% / 0.55);
  border-left: 4px solid hsla(140 55% 60% / 0.7);
  text-shadow: none;
  color: hsl(140 60% 90%);
}

/* Harvest — keep the plant color but force the harvest stage stripe so it
   reads as the most important bar in any row. */
.gsf-cal2-y-bar--harvest {
  font-weight: 700;
  border-left-color: var(--gsf-stage-harvest) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Planning overlay — dashed translucent, not plant-colored. */
.gsf-cal2-y-bar--planning {
  background: rgba(255,255,255,0.05) !important;
  border: 1px dashed rgba(255,255,255,0.3);
  border-left: 4px dashed rgba(255,255,255,0.4);
  color: var(--gsf-cal2-text-muted);
  text-shadow: none;
}

.gsf-cal2-y-empty {
  color: var(--gsf-cal2-text-faint);
  font-size: 0.72rem;
  padding: 6px 2px;
  font-style: italic;
}

/* Legend at the bottom */
.gsf-cal2-y-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.65rem 0.85rem;
  background: var(--gsf-cal2-surface-2);
  border: 1px solid var(--gsf-cal2-border);
  border-radius: var(--gsf-cal2-radius);
  font-size: 0.72rem;
  color: var(--gsf-cal2-text-muted);
}

.gsf-cal2-y-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }

.gsf-cal2-y-legend-note {
  flex: 1 1 100%;
  color: var(--gsf-cal2-text-faint);
  font-size: 0.7rem;
  font-style: italic;
  margin-bottom: 0.15rem;
}

.gsf-cal2-y-legend-item i {
  font-size: 0.85rem;
  color: var(--gsf-stage-care);
}

.gsf-cal2-y-legend-item i[data-stage="Germination"] { color: var(--gsf-stage-germination); }
.gsf-cal2-y-legend-item i[data-stage="Seedling"]    { color: var(--gsf-stage-seedling); }
.gsf-cal2-y-legend-item i[data-stage="Vegetative"]  { color: var(--gsf-stage-vegetative); }
.gsf-cal2-y-legend-item i[data-stage="Flowering"]   { color: var(--gsf-stage-flowering); }
.gsf-cal2-y-legend-item i[data-stage="Fruiting"]    { color: var(--gsf-stage-fruiting); }
.gsf-cal2-y-legend-item i[data-stage="Harvest"]     { color: var(--gsf-stage-harvest); }

.gsf-cal2-y-legend-dot {
  width: 14px; height: 14px; border-radius: 3px;
  background: var(--gsf-stage-care);
  flex: 0 0 auto;
}

.gsf-cal2-y-legend-dot--window {
  background: linear-gradient(135deg, hsla(140 55% 45% / 0.55), hsla(140 55% 30% / 0.55));
  border: 1px dashed hsla(140 55% 65% / 0.6);
}

/* =====================================================================
   Mobile — stack month label above grid, hide weekday letters, etc.
   ===================================================================== */
.gsf-cal2-mobile-hint {
  display: none;
}

@media (max-width: 720px) {
  .gsf-cal2-mobile-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid hsla(140 55% 65% / 0.22);
    background: hsla(140 45% 35% / 0.12);
    color: var(--gsf-cal2-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .gsf-cal2-mobile-hint i {
    color: hsl(140 65% 78%);
    margin-top: 2px;
  }

  .gsf-cal2-y-month { grid-template-columns: 1fr; }

  .gsf-cal2-y-month-head {
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--gsf-cal2-border);
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .gsf-cal2-y-month-name { font-size: 0.95rem; }
  .gsf-cal2-y-month-year { font-size: 0.7rem; margin-top: 0; }
  .gsf-cal2-y-month-count { margin-top: 0; margin-left: auto; }

  .gsf-cal2-y-day { padding: 1px 0; }
  .gsf-cal2-y-day-dow { display: none; }
  .gsf-cal2-y-day-num { font-size: 0.68rem; }

  .gsf-cal2-y-lane {
    min-height: 30px;
    grid-template-rows: repeat(var(--sublanes, 1), minmax(30px, auto));
  }

  .gsf-cal2-y-bar {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    padding: 4px 6px;
    gap: 2px;
  }

  .gsf-cal2-y-bar-plant,
  .gsf-cal2-y-bar-plant::before { display: none; }

  .gsf-cal2-y-toolbar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .gsf-cal2-y-toolbar-range { font-size: 0.78rem; padding: 0 0.25rem; }

  .gsf-cal2-y-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .gsf-cal2-y-summary-card {
    padding: 0.52rem 0.58rem;
  }

  .gsf-cal2-y-empty-state {
    grid-template-columns: 1fr;
    padding: 0.82rem;
  }

  .gsf-cal2-y-empty-icon {
    width: 36px;
    height: 36px;
  }

  .gsf-cal2-y-empty-actions .gsf-btn {
    flex: 1 1 calc(50% - 0.45rem);
    justify-content: center;
    min-width: 132px;
  }
}

@media (max-width: 420px) {
  .gsf-cal2-y-month-body { padding: 4px 4px 6px; }
  .gsf-cal2-y-bar { font-size: 0.64rem; padding: 3px 5px; border-radius: 4px; }
  .gsf-cal2-y-bar-label { font-weight: 600; }

  .gsf-cal2-y-summary {
    grid-template-columns: 1fr;
  }
}
